:root {
  --ink: #17212b;
  --muted: #64717f;
  --line: #d9e1e8;
  --surface: #ffffff;
  --soft: #f4f7f9;
  --accent: #0f766e;
  --accent-2: #c2410c;
  --accent-3: #2563eb;
  --good: #166534;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f3ed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 245px; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: block;
  flex: 0 0 44px;
  background: transparent;
  border-radius: 8px;
}
.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
}
.brand h1 { margin: 0; font-size: 18px; letter-spacing: 0; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.brand-logo-full { display: block; height: 40px; width: auto; max-width: 240px; }
.brand-icon { display: block; height: 28px; width: auto; flex: 0 0 auto; }
.brand-stack { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.brand-wordmark-row { display: inline-flex; align-items: flex-start; }
.brand-tm { font-size: 8px; font-weight: 800; line-height: 1; margin: 1px 0 0 1px; color: var(--ink); }
.brand-wordmark { display: block; height: 22px; width: auto; }
.brand .brand-tagline {
  margin: 0;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0;
  word-spacing: 2.5px;
  color: #1f3a5f;
  white-space: nowrap;
  line-height: 1;
}
.brand-text-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tab {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 650;
}
.tab.active { background: var(--ink); color: white; border-color: var(--ink); }

main { max-width: 1220px; margin: 0 auto; padding: 24px; }
.auth-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-links a,
.auth-links button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.auth-links form {
  margin: 0;
}
/* Admin button/tab is hidden until the 7639 code is typed (handled in app.js,
   which adds .revealed). Targeted by href/data-view so NO template change is
   needed. The surrounding flex gap collapses when hidden, so the menu spacing
   stays correct either way. */
.auth-links a[href*="/admin"]:not(.revealed),
.tabs .tab[data-view="admin"]:not(.revealed) { display: none; }
.server-page {
  max-width: 980px;
  margin: 32px auto 48px;
}
.auth-panel,
.account-panel {
  max-width: 760px;
  margin: 0 auto;
}
.auth-form {
  display: grid;
  gap: 16px;
  max-width: 460px;
}
.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}
.auth-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  font: inherit;
}
.flash-panel {
  margin-bottom: 18px;
}
.flash-panel p,
.server-note {
  margin: 0;
  color: var(--muted);
}
.account-access-panel {
  margin-top: 18px;
}
.account-link-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.billing-success-return {
  margin-top: 22px;
}
.admin-panel {
  max-width: 1180px;
  margin: 0 auto;
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.admin-nav a,
.admin-nav button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.admin-nav form,
.admin-actions form {
  margin: 0;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.admin-stats .metric {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.admin-subpanel {
  margin-top: 16px;
}
.admin-subpanel {
  padding: 24px;
}
.admin-subpanel h3 {
  margin: 0 0 20px;
}
.admin-subpanel p {
  margin: 0 0 28px;
  line-height: 1.7;
}
.admin-subpanel .account-link-button {
  display: inline-block;
  margin-top: 8px;
}
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #fff;
}
.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.admin-table th {
  background: #eaf1f6;
  color: #334155;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-actions a,
.admin-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 7px 10px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.admin-actions button.admin-danger {
  border-color: #e6b3b3;
  color: #b3261e;
}
.admin-actions button.admin-danger:hover {
  background: #fdeceb;
  border-color: #d9534f;
}
/* Password field with a show/hide eye toggle */
.pw-field { position: relative; display: block; }
.pw-field input { width: 100%; box-sizing: border-box; padding-right: 42px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; padding: 4px; margin: 0; cursor: pointer;
  color: #7a8794; display: inline-flex; align-items: center; line-height: 0;
}
.pw-toggle:hover { color: var(--ink); }
.pw-toggle svg { width: 20px; height: 20px; display: block; }
.field-hint { display: block; margin: -4px 0 4px; color: var(--muted); font-size: 12.5px; }
.admin-draw-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 14px;
}
.admin-draw-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}
.admin-draw-form input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  font: inherit;
}
.admin-draw-form input.field-invalid {
  border-color: #dc2626;
  background: #fff5f5;
}
.draw-range-popup {
  margin-top: 14px;
  max-width: 420px;
  border: 1px solid #f2c9c9;
  border-radius: 14px;
  background: #fff7f7;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  padding: 12px 14px 14px;
}
.draw-range-popup.hidden {
  display: none !important;
}
.draw-range-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.draw-range-popup-head strong {
  color: #9f3a3a;
  font-size: 13px;
  font-weight: 850;
}
.draw-range-popup p {
  margin: 0;
  color: #5a2830;
  line-height: 1.45;
  font-weight: 650;
}
.draw-range-popup-close {
  border: 0;
  background: transparent;
  color: #9f3a3a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.admin-form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .75fr);
  gap: 24px;
  align-items: stretch;
  padding: 30px;
  background: #fffaf1;
  border-bottom: 1px solid var(--line);
}
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.hero h2 { margin: 8px 0 10px; font-size: 42px; line-height: 1.05; letter-spacing: 0; max-width: 760px; }
.hero p { color: #475569; max-width: 790px; font-size: 17px; line-height: 1.55; margin: 0; }

.view { display: none; padding-top: 24px; }
.view.active { display: block; }
.grid { display: grid; gap: 16px; }
.grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.panel, .metric, .product-card, .draw-card, .journey-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.journey-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  background: #12312e;
  color: white;
}
.journey-card span { color: #a7f3d0; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.journey-card strong { font-size: 24px; line-height: 1.15; }
.journey-card p { color: #d7fff1; font-size: 14px; margin: 0; }

/* ===== Landing page (lp-) — value-first, single-product launch ===== */
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.lp-cta-row .primary-action, .lp-cta-row .secondary-action { font-size: 15px; padding: 12px 22px; }
.lp-proof { gap: 12px; justify-content: flex-start; }
.lp-proof-stats { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; }
.lp-proof-stats li { color: #d7fff1; font-size: 14.5px; line-height: 1.3; padding-left: 20px; position: relative; }
.lp-proof-stats li::before { content: "✓"; position: absolute; left: 0; color: #6ee7b7; font-weight: 900; }
.lp-proof-stats li b { color: #fff; font-weight: 850; }
.lp-proof-draw { margin-top: 4px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.15); }
.lp-proof-draw .latest-draw-line { color: #eafff7; }
.lp-proof-draw .draw-main-numbers { color: #eafff7; font-weight: 700; }
.lp-proof-draw .draw-separator { color: rgba(255,255,255,.4); }

.lp-tiers .lp-tier { position: relative; display: flex; flex-direction: column; }
.lp-tier h4 { margin: 0 0 6px; font-size: 19px; color: var(--ink); }
.lp-tier-price { margin: 0 0 12px; font-size: 26px; font-weight: 900; color: var(--ink); }
.lp-tier-price small { font-size: 14px; font-weight: 700; color: var(--muted); }
.lp-tier-price em { font-size: 13px; font-weight: 700; color: var(--muted); font-style: normal; }
.lp-tier-note { margin: 0; color: #475569; font-size: 14px; line-height: 1.5; }
.lp-tier-prime { border-color: transparent; background: linear-gradient(#fff,#fff) padding-box, linear-gradient(135deg,#1d4ed8,#7dd3fc 46%,#1e3a8a) border-box; }
.lp-tier-prime h4 { color: #1d4ed8; }
.lp-tier-intel { border-color: transparent; background: linear-gradient(#fff,#fff) padding-box, linear-gradient(135deg,#8a6a09,#d4af37 24%,#fff2a8 44%,#b8860b 67%,#7a5a00) border-box; }
/* Intel heading — true shiny gold: a bright metallic light-streak, not flat brown-gold */
.lp-tier-intel h4 {
  color: #d4a017; /* fallback if background-clip:text is unsupported */
  background: linear-gradient(100deg, #d4a017 0%, #efc64c 20%, #f9e39a 42%, #fff7d6 50%, #f9e39a 58%, #efc64c 80%, #d4a017 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 1px rgba(120, 82, 6, .12);
}
.lp-tier-badge { position: absolute; top: -11px; right: 16px; background: #7a5a00; color: #fff2a8; font-size: 11px; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.lp-tiers-foot { display: flex; justify-content: center; margin: 16px 0 4px; }
.lp-roadmap-card { cursor: default; }
.lp-roadmap-card.lp-roadmap-live { border-color: var(--good); background: #f2fbf5; }
.lp-roadmap-card.lp-roadmap-live small { color: var(--good); font-weight: 800; }
.lp-roadmap-card.lp-roadmap-live strong { color: var(--good); }
/* World-level country finder: available = green, coming-soon still clickable */
.country-card.lp-roadmap-live { border-color: var(--good); background: #f2fbf5; }
.country-card.lp-roadmap-live small { color: var(--good); font-weight: 800; }
.country-card.lp-finder-soon small { color: var(--muted); }
/* Countries with no live product yet: greyed and non-clickable */
.country-card.lp-finder-off { cursor: default; background: #f4f7f9; opacity: .68; }
.country-card.lp-finder-off strong,
.country-card.lp-finder-off small { color: var(--muted); }
/* Breadcrumb / back navigation between levels */
.lp-crumb { margin: 4px 0 12px; }
.lp-back { background: none; border: 0; color: var(--accent-3); font-weight: 800; font-size: 14px; cursor: pointer; padding: 6px 2px; }
.lp-back:hover { text-decoration: underline; }
/* Country-page access options */
.lp-access-card h4 { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
.lp-access-card p { margin: 0; color: #475569; font-size: 14px; line-height: 1.5; }
/* Coming-soon product rows are non-interactive */
.product-row-soon { cursor: default; opacity: .82; }
.lp-soon-eta { margin: 12px 0 0; font-weight: 800; color: var(--accent-2); }
.metric span, .panel-label { display: block; color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.metric strong { display: block; font-size: 28px; line-height: 1.1; }
.metric small { color: var(--muted); }
.latest-draw-line { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.draw-main-numbers { color: var(--muted); font-weight: 400; white-space: nowrap; }
.draw-separator { color: var(--muted); font-style: normal; }
.powerball-chip { width: 24px; height: 24px; flex: 0 0 auto; box-sizing: border-box; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #00B0F0; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 12px;
}
.section-title h3 { margin: 0 0 8px; font-size: 22px; }
.section-title p { margin: 0; color: var(--muted); }
.section-title.compact { margin-top: 0; }
#dashboard .section-title.dashboard-title {
  margin-top: 12px;
}
#dashboard .section-title.dashboard-title h3 {
  font-size: 32px;
  line-height: 1.15;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.country-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.country-card span { font-size: 22px; font-weight: 850; }
.country-card strong { color: var(--accent); }
.country-card small { color: var(--muted); }
.country-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .13);
}

.catalogue-layout {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 22px;
}
.product-list { display: grid; gap: 10px; }
.product-row {
  border: 1px solid var(--line);
  background: #fbfcfd;
  border-radius: 8px;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}
.product-row span { display: grid; gap: 3px; }
.product-row small { color: var(--muted); }
.product-row em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: #eef6f4;
  padding: 5px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.product-row em.future { color: var(--accent-2); background: #fff2e7; }
.product-row.selected { border-color: var(--accent-3); background: #eff6ff; }

/* Single-product launch: muted "coming soon" cards + product stage badges. */
.country-card-soon { cursor: default; opacity: .72; background: #f6f8fa; border-style: dashed; }
.country-card-soon strong { color: var(--muted); }
.prod-badge.available { color: var(--accent); background: #eef6f4; }
.prod-badge.dev { color: #1d4ed8; background: #eaf1ff; }
.prod-badge.soon { color: var(--accent-2); background: #fff2e7; }
.panel-soon { opacity: .74; background: #f6f8fa; border-style: dashed; }
.soon-tag { font-size: 11px; font-weight: 800; color: var(--accent-2); background: #fff2e7; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.product-card-soon { opacity: .82; border-style: dashed; }
/* Analysis-tab count split by tier (Basic / Prime / Intel). */
.tab-tier-split { display: flex; flex-wrap: nowrap; gap: 4px; margin-top: 6px; }
.tab-tier-split b { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 999px; white-space: nowrap; }
.tab-tier-split .tt-basic { color: #475569; background: #eef2f6; }
.tab-tier-split .tt-prime { color: #1d4ed8; background: #eaf1ff; }
.tab-tier-split .tt-intel { color: #8a6a09; background: #fbf3d9; }

.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.detail-stats div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.detail-stats span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.detail-stats strong { display: block; margin-top: 4px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.primary-action, .secondary-action {
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 10px 13px;
  font-weight: 800;
  cursor: pointer;
}
.primary-action { background: var(--ink); color: white; }
.secondary-action { background: white; color: var(--ink); border-color: var(--line); }
.secondary-action:disabled { color: var(--muted); cursor: not-allowed; }

/* Small "back to country list" arrow next to the country name — same dark,
   rounded look as the Open Dashboard button, about a quarter of the size. */
.country-heading { display: flex; align-items: center; gap: 12px; }
.scroll-up-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; flex: 0 0 auto;
  border: 1px solid var(--ink); border-radius: 9px;
  background: var(--ink); color: #fff; cursor: pointer;
}
.scroll-up-btn:hover { opacity: 0.88; }
.account-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.account-action-form { margin: 0; }
.account-action-button {
  width: 190px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}
.account-link-button { text-decoration: none; }
.admin-entry-panel { margin-bottom: 18px; }
.draw-entry-form {
  display: grid;
  grid-template-columns: 150px repeat(4, minmax(72px, 1fr));
  gap: 10px;
  align-items: end;
}
.draw-entry-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.draw-entry-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--ink);
  font: inherit;
}
.draw-entry-form input.field-invalid {
  border-color: #dc2626;
  background: #fff5f5;
}
.admin-message {
  margin: 10px 0 0;
  color: var(--accent-2);
  font-weight: 750;
}
.hidden { display: none !important; }
.small-action {
  padding: 6px 8px;
  font-size: 12px;
  margin-right: 6px;
}
.admin-draw-table td:last-child {
  white-space: nowrap;
}
.product-card.subscribed { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 118, 110, .10); }
.latest-draw { margin: 16px 0; }

.workbook-shell {
  margin-top: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: visible;
}
.workbook-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: #edf3f7;
  border-bottom: 1px solid var(--line);
}
.workbook-topbar h3 { margin: 0; font-size: 20px; }
.latest-mini {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.latest-mini span { color: var(--muted); font-size: 13px; font-weight: 800; margin-right: 4px; }
.latest-mini b {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dfe8ef;
  font-size: 12px;
}
.latest-mini b.power { background: var(--accent-2); color: white; }
.worksheet-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 10px 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
.worksheet-tabs::-webkit-scrollbar {
  display: none;
}
.worksheet-tab {
  flex: 0 0 auto;
  min-height: 43px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #eef2f5;
  color: #334155;
  border-radius: 7px 7px 0 0;
  padding: 9px 12px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.worksheet-tab.active {
  background: white;
  color: var(--accent);
  border-color: var(--accent);
}
.worksheet-tab.prime-master-tab {
  position: relative;
  min-width: 88px;
  min-height: 43px;
  padding: 9px 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1.5px solid transparent;
  border-bottom: 0;
  background:
    linear-gradient(#eef6fb, #eef6fb) padding-box,
    linear-gradient(135deg, #1d4ed8 0%, #7dd3fc 22%, #eef6fb 45%, #94a3b8 66%, #cbd5e1 83%, #1e3a8a 100%) border-box;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 1px 4px rgba(29, 78, 216, .12);
}
.worksheet-tab.prime-master-tab::after {
  content: "";
  position: absolute;
  inset: 2px auto 2px -28px;
  width: 24px;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  opacity: .8;
}
.worksheet-tab.prime-master-tab.active {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #1d4ed8 0%, #7dd3fc 22%, #eef6fb 45%, #94a3b8 66%, #cbd5e1 83%, #1e3a8a 100%) border-box;
  border-color: transparent;
}
.worksheet-tab.prime-master-tab .prime-master-main {
  position: relative;
  z-index: 1;
  display: block;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.05;
  text-transform: none;
  white-space: nowrap;
  align-self: center;
  transform: none;
}
.worksheet-tab.prime-master-tab .prime-master-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  z-index: 1;
  display: block;
  color: #1d4ed8;
  font-size: 7.5px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: none;
  white-space: nowrap;
  align-self: center;
  transform: translateY(0);
}
.worksheet-tab.intel-master-tab {
  position: relative;
  min-width: 78px;
  min-height: 43px;
  padding: 9px 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1.5px solid transparent;
  border-bottom: 0;
  background:
    linear-gradient(#eef2f5, #eef2f5) padding-box,
    linear-gradient(135deg, #8a6a09 0%, #d4af37 22%, #fff2a8 43%, #b8860b 64%, #f6d86b 82%, #7a5a00 100%) border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 243, 176, .55);
}
.worksheet-tab.intel-master-tab::after {
  content: "";
  position: absolute;
  inset: 2px auto 2px -28px;
  width: 24px;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  opacity: .8;
}
.worksheet-tab.intel-master-tab.active {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #8a6a09 0%, #d4af37 22%, #fff2a8 43%, #b8860b 64%, #f6d86b 82%, #7a5a00 100%) border-box;
  border-color: transparent;
}
.worksheet-tab.intel-master-tab .intel-master-main {
  position: relative;
  z-index: 1;
  display: block;
  color: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.05;
  text-transform: none;
  white-space: nowrap;
  align-self: center;
  transform: none;
}
.worksheet-tab.intel-master-tab .intel-master-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  z-index: 1;
  display: block;
  color: #9a7200;
  font-size: 7.5px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: none;
  white-space: nowrap;
  align-self: center;
  transform: translateY(0);
}
.worksheet-tab.intel-master-tab.active .intel-master-main,
.worksheet-tab.intel-master-tab.active .intel-master-label {
  color: #9a7200;
}
#worksheetPanel { padding: 10px 18px 18px; }
.worksheet-header {
  position: sticky;
  top: var(--app-header-h, 80px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  background: white;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}
.worksheet-header span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.worksheet-header h3 { margin: 0; font-size: 12px; line-height: 1.15; }
.worksheet-header p { margin: 0; color: var(--muted); }
.worksheet-title-with-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.worksheet-heading-note em {
  left: 100%;
  top: 50%;
  width: 390px;
  font-weight: 400;
  line-height: 1.45;
}
.worksheet-note {
  background: #fffaf1;
  border: 1px solid #ead9bd;
  border-radius: 8px;
  padding: 12px;
  color: #60441e;
  margin-bottom: 14px;
  line-height: 1.45;
}
.analysis-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
  color: white;
}
.analysis-hero span {
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: .86;
  margin-bottom: 6px;
}
.analysis-hero h4 { margin: 0; font-size: 22px; line-height: 1.15; max-width: 660px; }
.analysis-hero p { margin: 0; color: rgba(255,255,255,.86); max-width: 380px; line-height: 1.45; }
.analysis-hero.data { background: #0f766e; }
.analysis-hero.group { background: #334155; }
.analysis-hero.segment { background: #2563eb; }
.analysis-hero.variation { background: #7c3aed; }
.analysis-hero.number { background: #166534; }
.analysis-hero.powerball { background: #c2410c; }
.analysis-hero.ratio { background: #4338ca; }
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pattern-card {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px;
}
.pattern-card strong { display: block; font-size: 19px; }
.pattern-card span, .pattern-card small { display: block; color: var(--muted); margin-top: 3px; }
.raw-sheet {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}
.raw-sheet summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 850;
}
.raw-sheet .sheet-preview-wrap { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.heatmap-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  background: white;
}
.heatmap { min-width: 760px; padding: 10px; display: grid; gap: 4px; }
.heat-row { display: grid; grid-template-columns: repeat(10, minmax(58px, 1fr)); gap: 4px; }
.heat-row span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 750;
  padding: 5px;
  border: 1px solid rgba(15, 23, 42, .08);
}
.empty-state { color: var(--muted); margin: 0; }
.sheet-preview-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.sheet-preview {
  border: 0;
  min-width: 820px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.sheet-preview td {
  min-width: 96px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  padding: 8px 10px;
}
.sheet-preview tr:first-child td {
  background: #edf3f7;
  font-weight: 800;
}
.worksheet-summary { margin-top: 16px; }

.graph-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}
.graph-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.graph-summary div {
  background: #f8fafc;
  padding: 13px 15px;
}
.graph-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}
.graph-summary strong {
  font-size: 16px;
}
/* The "Draw order" box is a clickable toggle (flips the chart oldest<->latest). */
.graph-summary div.graph-order-toggle { cursor: pointer; user-select: none; }
.graph-summary div.graph-order-toggle:hover { background: #eef2f7; }
.graph-order-icon { font-style: normal; color: var(--accent); font-weight: 800; margin-left: 2px; }
.graph-scroll {
  max-width: 100%;
  overflow: auto;
  background: #ffffff;
}
.graph-fixed-title {
  padding: 14px 16px 0 92px;
  color: #17212b;
  font-size: 17px;
  font-weight: 850;
}
.graph-chart-body {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  background: #ffffff;
}
.graph-axis-svg {
  display: block;
  border-right: 1px solid #94a3b8;
  background: #ffffff;
  position: relative;
  z-index: 2;
}
.source-line-chart {
  display: block;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.graph-title {
  fill: #17212b;
  font-size: 17px;
  font-weight: 850;
}
.graph-axis-label {
  fill: #334155;
  font-size: 8px;
  font-weight: 400;
}
/* Sharper segment/value numbers inside the trajectory axis boxes (bolder + darker).
   Only the box labels carry both classes — the up/down move arrows do not, so they
   keep their own styling. */
.graph-axis-label.graph-axis-option {
  fill: #17212b;
  font-weight: 700;
}
.graph-axis-option {
  cursor: pointer;
}
.graph-axis-option:hover {
  opacity: 0.82;
}
.graph-move-up {
  fill: #2563eb;
  font-weight: 800;
}
.graph-move-down {
  fill: #d1495b;
  font-weight: 800;
}
.graph-date-label {
  fill: #64717f;
  font-size: 10px;
}

.seg-bridge-panel { margin-top: 18px; border: 1px solid #b8c2ce; border-radius: 8px; background: #fff; padding: 18px 24px 20px; }
.seg-bridge-panel .graph-fixed-title { margin-bottom: 6px; }
.seg-bridge-body { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 40px; align-items: start; margin-top: 8px; }
.seg-bridge-subtitle { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 14px; }
.seg-bridge-grid { display: grid; grid-template-columns: 84px 1fr 1fr; gap: 6px; }
.seg-bridge-corner { }
.seg-bridge-colhead { font-size: 11px; font-weight: 800; text-align: center; padding: 4px 0; border-radius: 5px; }
.seg-bridge-colhead.up { color: #2563eb; background: #eaf1fb; }
.seg-bridge-colhead.down { color: #d1495b; background: #fbeef0; }
.seg-bridge-rowhead { font-size: 11px; font-weight: 800; color: #17212b; display: flex; align-items: center; }
.seg-bridge-cell { border-radius: 6px; padding: 10px 8px; text-align: center; border: 1px solid rgba(23,33,43,0.06); }
.seg-bridge-cell.up { background: #eaf1fb; }
.seg-bridge-cell.down { background: #fbeef0; }
.seg-bridge-cell-label { display: block; font-size: 10.5px; font-weight: 700; color: #475569; margin-bottom: 3px; }
.seg-bridge-cell strong { font-size: 20px; font-weight: 850; color: #17212b; }
.seg-bridge-cell i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); margin-left: 5px; }
.seg-bridge-summary { margin: 14px 0 0; font-size: 13px; color: #2b3a3a; line-height: 1.55; }
.seg-bridge-summary b { color: #17212b; }
.seg-bridge-empty { font-size: 13px; color: var(--muted); line-height: 1.5; }
.seg-bridge-bar-row { display: grid; grid-template-columns: 56px 1fr 58px; align-items: center; gap: 10px; margin-bottom: 6px; padding: 2px 4px; border-radius: 5px; }
.seg-bridge-bar-row.sel { background: #f1f6f5; outline: 1px solid #cfe3df; }
.seg-bridge-key { font-size: 11px; font-weight: 700; text-align: center; padding: 3px 0; border-radius: 4px; color: #17212b; border: 1px solid rgba(23,33,43,0.08); }
.seg-bridge-track { background: #eef2f7; border-radius: 5px; height: 15px; }
.seg-bridge-fill { height: 100%; border-radius: 5px; background: #5b86a8; min-width: 3px; }
.seg-bridge-bar-row.sel .seg-bridge-fill { background: #2a9d8f; }
.seg-bridge-num { font-size: 12px; font-weight: 750; color: #17212b; text-align: right; }
.seg-bridge-num i { font-style: normal; font-size: 10px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.seg-bridge-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.seg-bridge-note b { color: #17212b; }
.seg-bridge-caveat { margin: 16px 0 0; font-size: 11.5px; color: var(--muted); font-style: italic; }
@media (max-width: 820px) { .seg-bridge-body { grid-template-columns: 1fr; } }

.conc-view { max-width: 880px; }
.conc-hero { border: 1px solid #cfe3df; border-left: 4px solid #2a9d8f; background: #f1f6f5; border-radius: 10px; padding: 18px 22px; }
.conc-eyebrow { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #2a7d72; margin-bottom: 8px; }
.conc-hero h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.3; color: #17212b; }
.conc-hero-seg { display: inline-block; padding: 1px 9px; border-radius: 6px; font-weight: 800; color: #17212b; border: 1px solid rgba(23,33,43,0.1); }
.conc-hero p { margin: 0; font-size: 14px; color: #2b3a3a; line-height: 1.55; }
.conc-hero b { color: #17212b; }
.conc-section { margin-top: 24px; }
.conc-section h4 { margin: 0 0 8px; font-size: 15px; color: #17212b; }
.conc-section > p { margin: 0 0 14px; font-size: 13.5px; color: #475569; line-height: 1.6; }
.conc-section b { color: #17212b; }
.conc-tv-legend { display: flex; gap: 18px; font-size: 12px; font-weight: 700; color: #334155; margin-bottom: 10px; }
.conc-tv-legend span { display: flex; align-items: center; gap: 7px; }
.conc-tv-legend i { width: 14px; height: 10px; border-radius: 3px; }
.conc-tv-legend i.theory, .conc-tv-bar.theory { background: #2a9d8f; }
.conc-tv-legend i.obs, .conc-tv-bar.obs { background: #aebfd4; }
.conc-tv-row { display: grid; grid-template-columns: 56px 1fr 78px; align-items: center; gap: 12px; margin-bottom: 7px; padding: 2px 4px; border-radius: 5px; }
.conc-tv-row.top { background: #f1f6f5; }
.conc-seg-key { font-size: 11px; font-weight: 700; text-align: center; padding: 3px 0; border-radius: 4px; color: #17212b; border: 1px solid rgba(23,33,43,0.08); }
.conc-tv-bars { display: flex; flex-direction: column; gap: 3px; }
.conc-tv-bar { height: 9px; border-radius: 3px; min-width: 2px; }
.conc-tv-num { text-align: right; line-height: 1.15; }
.conc-tv-num b { display: block; font-size: 12px; color: #17212b; }
.conc-tv-num i { font-style: normal; font-size: 10.5px; color: var(--muted); }
.conc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.conc-chip { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 5px; color: #17212b; border: 1px solid rgba(23,33,43,0.1); cursor: pointer; }
.conc-chip.sel { outline: 2px solid #17212b; outline-offset: -1px; }
.conc-cond-head { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 12px; font-size: 11px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.conc-cond-head span:nth-child(3) { color: #2a7d72; }
.conc-cond-row { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 12px; align-items: center; margin-bottom: 7px; }
.conc-cond-pair { display: flex; align-items: center; gap: 8px; }
.conc-cond-track { flex: 1; background: #eef2f7; border-radius: 5px; height: 15px; }
.conc-cond-fill { height: 100%; border-radius: 5px; min-width: 3px; }
.conc-cond-fill.base { background: #aebfd4; }
.conc-cond-fill.cond { background: #2a9d8f; }
.conc-cond-val { font-size: 11.5px; font-weight: 700; color: #17212b; width: 42px; text-align: right; }
.conc-verdict { margin: 14px 0 0; font-size: 13px; line-height: 1.55; padding: 12px 14px; border-radius: 8px; }
.conc-verdict.ok { background: #eef6f4; border: 1px solid #cfe3df; color: #2b3a3a; }
.conc-verdict.warn { background: #fbf3ec; border: 1px solid #ecd9c3; color: #5c4a33; }
.conc-verdict b { color: #17212b; }
.conc-ladder { margin: 4px 0 4px; }
.conc-ladder-row { display: grid; grid-template-columns: 230px 1fr 48px; align-items: center; gap: 14px; margin-bottom: 10px; }
.conc-ladder-label b { display: block; font-size: 13px; font-weight: 800; color: #17212b; }
.conc-ladder-label i { font-style: normal; font-size: 11px; color: var(--muted); }
.conc-ladder-track { background: #eef2f7; border-radius: 6px; height: 22px; }
.conc-ladder-fill { height: 100%; border-radius: 6px; min-width: 3px; }
.conc-ladder-fill.base { background: #2a9d8f; }
.conc-ladder-fill.one { background: #5b86a8; }
.conc-ladder-fill.two { background: #c1666b; }
.conc-ladder-num { font-size: 13px; font-weight: 800; color: #17212b; text-align: right; }
.conc-bottomline { margin-top: 24px; background: #17212b; border-radius: 10px; padding: 16px 20px; }
.conc-bottomline strong { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #5eaa9c; margin-bottom: 6px; }
.conc-bottomline p { margin: 0; font-size: 14px; color: #e8eef0; line-height: 1.55; }
.conc-bottomline b { color: #ffffff; }
.conc-disclaimer { margin: 18px 0 0; font-size: 11.5px; color: var(--muted); font-style: italic; line-height: 1.5; }

/* ---- S4 - Verdict · last-segment-conditional ---- */
.intel-seg { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 1px 7px; border-radius: 4px; color: #17212b; vertical-align: middle; }
.intel-opener { margin-bottom: 18px; }
.intel-opener p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: #2b3a3a; }
.intel-honesty { font-style: italic; font-size: 12.5px; color: var(--muted); }

.intel-now { background: linear-gradient(180deg,#f5f9fc,#eaeff5); border: 1px solid #d8e0ea; border-radius: 12px; padding: 18px 20px; margin-bottom: 22px; }
.intel-now .conc-eyebrow { margin-bottom: 4px; }
.intel-now-banner { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: #17212b; margin: 4px 0 5px; flex-wrap: wrap; }
.intel-now-arrow { color: #5b86a8; font-size: 20px; }
.intel-now-seg { font-size: 18px; padding: 3px 13px; border-radius: 7px; color: #17212b; }
.intel-now-conc { font-size: 11.5px; font-weight: 700; color: #5b6b7b; background: #fff; border: 1px solid #d8e0ea; padding: 2px 9px; border-radius: 20px; }
.intel-now-sub { font-size: 12px; color: var(--muted); }
.intel-now-sub b { color: #17212b; }
.intel-sample { font-weight: 700; padding: 1px 8px; border-radius: 20px; font-size: 11px; }
.intel-sample.solid { background: #e4f1ee; color: #2a7d72; }
.intel-sample.usable { background: #eef2f7; color: #5b6b7b; }
.intel-sample.thin { background: #fbf0e6; color: #9a6a33; }

.intel-tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 16px 0 14px; }
.intel-tile { background: #fff; border: 1px solid #e1e7ee; border-radius: 9px; padding: 13px 10px; text-align: center; }
.intel-tile span { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 7px; }
.intel-tile .intel-seg { font-size: 15px; padding: 2px 10px; }
.intel-tile strong { display: inline-block; font-size: 16px; font-weight: 800; color: #17212b; }
.intel-tile b { display: block; font-size: 12px; font-weight: 700; color: #2a7d72; margin-top: 5px; }

.intel-control { border-top: 1px solid #dde4ec; padding-top: 13px; }
.intel-control-label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.intel-control .conc-chips { margin-bottom: 0; }

.intel-bars { margin: 12px 0 4px; }
.intel-bar-row { display: grid; grid-template-columns: 62px 1fr 58px 16px; align-items: center; gap: 10px; margin-bottom: 6px; }
.intel-bar-row.self .conc-seg-key { outline: 1.5px dashed #5b86a8; outline-offset: 1px; }
.intel-bar-track { position: relative; background: #eef2f7; border-radius: 6px; height: 18px; }
.intel-bar-fill { height: 100%; border-radius: 6px; min-width: 3px; background: #2a9d8f; }
.intel-bar-fill.came { background: #5b86a8; }
.intel-bar-fill.two { background: #8fb0c9; }
.intel-bar-base { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 2px dotted #44546a; opacity: .5; }
.intel-bar-num { font-size: 12px; font-weight: 800; color: #17212b; text-align: right; }
.intel-bar-num i { display: block; font-style: normal; font-size: 9.5px; font-weight: 600; color: var(--muted); }
.intel-over { color: #2a7d72; font-weight: 900; font-size: 13px; text-align: center; }

.intel-dir { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 12px 0; }
.intel-dir-col { border-radius: 10px; padding: 14px 10px; text-align: center; border: 1px solid; }
.intel-dir-col.down { background: #eef6f4; border-color: #cfe3df; }
.intel-dir-col.same { background: #f3f5f8; border-color: #e0e5ec; }
.intel-dir-col.up { background: #fbf1ec; border-color: #ecd5cb; }
.intel-dir-cap { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: #5b6b7b; }
.intel-dir-col b { display: block; font-size: 26px; font-weight: 800; color: #17212b; margin: 5px 0; line-height: 1; }
.intel-dir-col.down b { color: #2a7d72; }
.intel-dir-col.up b { color: #b3503f; }
.intel-dir-dest { font-size: 11.5px; color: #4a5662; }
.intel-read { margin: 8px 0 0; font-size: 13px; color: #2b3a3a; line-height: 1.55; }

.intel-bridge-verdict { font-size: 14.5px; font-weight: 700; color: #17212b; line-height: 1.5; margin: 4px 0 14px; }
.intel-bridge-stack { display: flex; height: 26px; border-radius: 7px; overflow: hidden; border: 1px solid #dde4ec; }
.intel-role { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; min-width: 0; }
.intel-role.rising { background: #5b86a8; }
.intel-role.peak { background: #2a9d8f; }
.intel-role.trough { background: #c08552; }
.intel-role.falling { background: #aebfd4; color: #2b3a3a; }
.intel-bridge-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 9px 0 14px; font-size: 11.5px; color: #4a5662; }
.intel-bridge-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.intel-gauge { display: grid; grid-template-columns: 116px 1fr 44px; align-items: center; gap: 12px; margin: 4px 0; }
.intel-gauge-label { font-size: 11.5px; font-weight: 700; color: #4a5662; }
.intel-gauge-track { position: relative; background: #eef2f7; border-radius: 7px; height: 20px; }
.intel-gauge-fill { height: 100%; border-radius: 7px; background: #2a9d8f; min-width: 3px; }
.intel-gauge-tick { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 2px dashed #44546a; }
.intel-gauge-num { font-size: 13px; font-weight: 800; color: #17212b; text-align: right; }
.intel-note { font-size: 11px; color: var(--muted); line-height: 1.5; margin: 10px 0 0; font-style: italic; }

.intel-twostep { border: 1px solid #e1e7ee; border-radius: 9px; padding: 2px 16px; }
.intel-twostep summary { cursor: pointer; list-style: none; padding: 6px 0; }
.intel-twostep summary::-webkit-details-marker { display: none; }
.intel-twostep summary h4 { display: inline; margin: 0; }
.intel-twostep summary::after { content: " ▾"; color: var(--muted); font-weight: 700; }
.intel-twostep[open] summary::after { content: " ▴"; }

.intel-todo { margin: 8px 0 0; padding-left: 20px; }
.intel-todo li { font-size: 13.5px; color: #e8eef0; line-height: 1.6; margin-bottom: 7px; }
.intel-todo li b { color: #fff; }
.intel-cta { margin: 13px 0 0; font-size: 12.5px; color: #b9c6cb; }
.intel-cta b { color: #fff; }

/* ---- Intel - 2 · multi-lens synthesis ---- */
.i2-view { font-size: 13px; color: #2b3a3a; }
.i2-seg { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 1px 7px; border-radius: 4px; color: #17212b; vertical-align: middle; border: 1px solid rgba(23,33,43,0.06); }
.i2-hero { background: linear-gradient(180deg,#f5f9fc,#eaeff5); border: 1px solid #d8e0ea; border-radius: 12px; padding: 20px 22px; margin-bottom: 6px; }
.i2-title { font-size: 20px; font-weight: 800; color: #17212b; margin: 6px 0 10px; }
.i2-lede { margin: 0; font-size: 14px; line-height: 1.62; color: #2b3a3a; }
.i2-section { margin: 26px 0; padding-top: 22px; border-top: 1px solid #e3e8ee; }
.i2-featured { background: #fbfcfe; border: 1px solid #e1e8f0; border-radius: 12px; padding: 18px 20px; margin: 26px 0; }
.i2-note { margin: 12px 0 0; font-size: 12.5px; color: #4a5662; line-height: 1.55; }
.i2-note b { color: #17212b; }
.i2-warn { background: #fbf5ee; border: 1px solid #ecd9c3; border-radius: 8px; padding: 11px 13px; color: #5c4a33; }
.i2-pos { color: #2a7d72; font-weight: 700; }
.i2-neg { color: #b3503f; font-weight: 700; }

.i2-table { width: 100%; border-collapse: collapse; margin: 14px 0 4px; font-size: 12px; }
.i2-table th { text-align: left; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); border-bottom: 1px solid #dde4ec; padding: 5px 8px; }
.i2-table td { padding: 6px 8px; border-bottom: 1px solid #f0f3f7; color: #2b3a3a; }
.i2-table tr.i2-mute td { color: #9aa7b4; }

.i2-diverging { margin: 14px 0 4px; }
.i2-div-row { display: grid; grid-template-columns: 60px 1fr 96px 130px; align-items: center; gap: 10px; margin-bottom: 5px; }
.i2-div-row.thin { opacity: .5; }
.i2-div-track { position: relative; height: 16px; background: #f3f5f8; border-radius: 5px; }
.i2-div-mid { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 0; border-left: 1.5px dotted #44546a; }
.i2-div-fill { position: absolute; top: 0; height: 100%; }
.i2-div-fill.over { background: #2a9d8f; border-radius: 0 5px 5px 0; }
.i2-div-fill.under { background: #c1666b; border-radius: 5px 0 0 5px; }
.i2-div-num { text-align: right; font-size: 12px; line-height: 1.1; }
.i2-div-num b { color: #17212b; font-weight: 800; }
.i2-div-num i { display: block; font-style: normal; font-size: 9.5px; color: var(--muted); }
.i2-div-flag { font-size: 10px; color: var(--muted); }

.i2-reads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.i2-read { background: #fff; border: 1px solid #e1e7ee; border-radius: 9px; padding: 12px 14px; font-size: 12.5px; line-height: 1.5; color: #2b3a3a; }
.i2-read b { color: #17212b; }
.i2-read i { font-style: normal; color: #5b6b7b; font-weight: 700; }

.i2-heat-title, .i2-bars-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin: 18px 0 9px; }
.i2-heat { display: grid; gap: 3px; align-items: stretch; }
.i2-heat-corner { font-size: 9px; font-weight: 700; color: var(--muted); display: flex; align-items: flex-end; }
.i2-heat-ch { font-size: 9px; font-weight: 800; color: #475569; text-align: center; align-self: end; padding-bottom: 2px; }
.i2-heat-rl { font-size: 10px; font-weight: 800; color: #17212b; border-radius: 4px; display: flex; align-items: center; justify-content: center; height: 22px; }
.i2-heat-cell { border-radius: 4px; font-size: 9px; font-weight: 700; color: #17212b; display: flex; align-items: center; justify-content: center; height: 22px; }
.i2-heat-cell.empty { background: #f4f6f9; }
.i2-heat-cell.thin { outline: 1px dashed rgba(23,33,43,0.25); outline-offset: -2px; }
.i2-heat-score { font-size: 10.5px; font-weight: 800; color: #17212b; display: flex; align-items: center; justify-content: center; background: #f0f3f7; border-radius: 4px; }
.i2-heat-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 9px 0 0; font-size: 10.5px; color: var(--muted); }
.i2-heat-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.i2-bars { margin: 8px 0 4px; }
.i2-bar-row { display: grid; grid-template-columns: 56px 1fr 120px; align-items: center; gap: 10px; margin-bottom: 6px; }
.i2-bar-row.i2-live .i2-bar-track { outline: 1.5px solid #2563eb; outline-offset: 1px; border-radius: 6px; }
.i2-bar-track { position: relative; background: #eef2f7; border-radius: 6px; height: 16px; }
.i2-bar-fill { height: 100%; border-radius: 6px; min-width: 3px; }
.i2-bar-tick { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 2px dotted #44546a; opacity: .6; }
.i2-bar-num { text-align: right; font-size: 12px; font-weight: 800; color: #17212b; line-height: 1.1; }
.i2-bar-num i { display: block; font-style: normal; font-size: 9.5px; font-weight: 600; color: var(--muted); }
.i2-pair { display: flex; align-items: center; gap: 4px; }
.i2-arrow { color: var(--muted); font-weight: 800; }

.i2-reality { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin: 12px 0; align-items: start; }
.i2-reality-main { background: #f1f6f5; border: 1px solid #d7e7e3; border-left: 3px solid #2a9d8f; border-radius: 9px; padding: 14px 16px; }
.i2-reality-side { background: #fff; border: 1px solid #e1e7ee; border-radius: 9px; padding: 14px 16px; }
.i2-reality-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin-bottom: 10px; }
.i2-twin { display: grid; grid-template-columns: 88px 1fr 96px; align-items: center; gap: 10px; }
.i2-twin-lab { font-size: 11px; font-weight: 800; color: #17212b; }
.i2-reality-verdict { margin: 12px 0 0; font-size: 12.5px; line-height: 1.55; color: #2b3a3a; }
.i2-reality-verdict b { color: #17212b; }
.i2-reality-strong { display: block; margin-top: 6px; color: #2a7d72; font-weight: 700; }
.i2-mini-row { display: grid; grid-template-columns: 56px 1fr 96px; align-items: center; gap: 9px; margin-bottom: 7px; }
.i2-mini-k { font-size: 12px; font-weight: 800; color: #17212b; text-align: center; }

.i2-line-wrap { margin: 10px 0 4px; }
.i2-svg { width: 100%; height: auto; display: block; }
.i2-ax { font-size: 10px; fill: var(--muted); }
.i2-ax-t { font-size: 10.5px; font-weight: 700; fill: #5b6b7b; }
.i2-line-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; font-size: 11.5px; color: #4a5662; }
.i2-line-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: 3px; }
.i2-line-legend b { color: #17212b; }

.i2-struct { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 12px 0; }
.i2-struct-card { background: #fff; border: 1px solid #e1e7ee; border-radius: 9px; padding: 13px 15px; }
.i2-skel { display: grid; gap: 9px; margin: 4px 0; }
.i2-skel-row { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 14px; }
.i2-skel-name i { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 4px; }
.i2-skel-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; max-width: 360px; }
.i2-skel-slot { height: 34px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; background: #eef2f7; }
.i2-skel-slot.c0 { background: #eef2f7; color: transparent; border: 1px dashed #cbd5e1; }
.i2-skel-slot.c1 { background: #5b86a8; }
.i2-skel-slot.c2 { background: #2a9d8f; }
.i2-skel-slot.c3 { background: #1f7d72; }
.i2-skel-slot.c4 { background: #c1666b; }
.i2-skel-slot.c5 { background: #b3503f; }

.i2-verdict { margin-top: 28px; background: #17212b; border-radius: 12px; padding: 20px 22px; }
.i2-verdict-eyebrow { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #5eaa9c; margin-bottom: 8px; }
.i2-verdict-intro { margin: 0 0 16px; font-size: 13px; color: #c6d0d4; line-height: 1.6; }
.i2-verdict-intro, .i2-verdict-honest { }
.i2-verdict-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.i2-vc { background: #1f2a36; border: 1px solid #2c3a48; border-radius: 10px; padding: 14px 15px; }
.i2-vc.edge { border-top: 3px solid #2a9d8f; }
.i2-vc.volume { border-top: 3px solid #5b86a8; }
.i2-vc.watch { border-top: 3px solid #c08552; }
.i2-vc-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.i2-vc-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: #93a3ad; }
.i2-vc-reason { margin: 0; font-size: 12.5px; line-height: 1.55; color: #d6dee2; }
.i2-vc-reason b { color: #fff; }
.i2-vc-reason i { color: #aebcc4; }
.i2-verdict-honest { margin: 16px 0 0; font-size: 12.5px; color: #aeb9c0; line-height: 1.6; }
.i2-verdict-honest b { color: #fff; }
.i2-disclaimer { margin: 16px 0 0; font-size: 11.5px; color: var(--muted); font-style: italic; line-height: 1.5; }
@media (max-width: 820px) { .i2-reads, .i2-reality, .i2-struct, .i2-verdict-cards { grid-template-columns: 1fr; } .i2-skel-row { grid-template-columns: 1fr; } }

/* Intel - 2 · sequential 'line as a signal' section */
.i2-occ { margin: 8px 0 4px; }
.i2-occ-row { display: grid; grid-template-columns: 56px 1fr 84px; align-items: center; gap: 10px; margin-bottom: 4px; }
.i2-occ-row.band .i2-seg { outline: 1.5px solid #2a9d8f; outline-offset: 1px; }
.i2-occ-num { text-align: right; font-size: 11.5px; font-weight: 800; color: #17212b; line-height: 1.1; }
.i2-occ-num i { display: block; font-style: normal; font-size: 9.5px; font-weight: 600; color: var(--muted); }
.i2-seq-lv { font-size: 11px; color: var(--muted); font-weight: 600; }
.i2-seq-conc { margin-top: 18px; background: #f1f6f5; border: 1px solid #d7e7e3; border-left: 3px solid #2a9d8f; border-radius: 10px; padding: 16px 18px; }
.i2-seq-conc-eyebrow { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #2a7d72; margin-bottom: 12px; }
.i2-seq-conc-picks { display: grid; gap: 12px; }
.i2-seq-pick { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.i2-seq-pick > div p { margin: 4px 0 0; font-size: 12.5px; color: #2b3a3a; line-height: 1.5; }
.i2-seq-rank { width: 26px; height: 26px; border-radius: 50%; background: #2a9d8f; color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.i2-seq-pick:nth-child(2) .i2-seq-rank { background: #5b86a8; }
.i2-seq-uncertainty { margin: 14px 0 0; font-size: 12.5px; color: #4a5662; line-height: 1.55; }
.i2-seq-uncertainty b { color: #17212b; }

/* Intel - 2 · two-step signature match section */
.i2-2s-sig { background: #f6f8fb; border: 1px solid #e1e8f0; border-radius: 10px; padding: 14px 16px; margin: 12px 0; }
.i2-2s-sig-lab { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 9px; }
.i2-2s-sig-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.i2-2s-sig-flow .i2-seg { font-size: 13px; padding: 3px 10px; }
.i2-2s-arrow { color: #9aa7b4; font-weight: 800; }
.i2-2s-now { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: #2a7d72; background: #e4f1ee; border-radius: 10px; padding: 1px 7px; }
.i2-2s-next { font-size: 15px; font-weight: 800; color: #9aa7b4; border: 1.5px dashed #c2ccd6; border-radius: 6px; padding: 1px 11px; }
.i2-2s-matches { margin: 11px 0 0; font-size: 12.5px; color: #4a5662; line-height: 1.5; }
.i2-2s-matches b { color: #17212b; }
.i2-table tr.i2-2s-top td { background: #f1f6f5; }
.i2-2s-conc { margin-top: 18px; background: #17212b; border-radius: 11px; padding: 16px 18px; }
.i2-2s-conc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.i2-2s-conc-eyebrow { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #5eaa9c; }
.i2-conf { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 3px 10px; border-radius: 20px; }
.i2-conf.lo { background: #4a2f2f; color: #e6b9b0; }
.i2-conf.mod { background: #463b25; color: #e8cf9a; }
.i2-conf.hi { background: #1f3d34; color: #7fd8c4; }
.i2-2s-conc .i2-seq-conc-picks { gap: 12px; }
.i2-2s-conc .i2-seq-pick > div { color: #d6dee2; }
.i2-2s-conc .i2-seq-pick > div b { color: #fff; }
.i2-2s-conc .i2-seq-pick > div p { color: #c0cace; }
.i2-2s-conc .i2-seq-rank { background: #2a9d8f; }
.i2-2s-conc .i2-seq-pick:nth-child(2) .i2-seq-rank { background: #5b86a8; }
.i2-2s-why { margin: 14px 0 0; font-size: 12.5px; color: #aeb9c0; line-height: 1.6; }
.i2-2s-why b { color: #fff; }

/* ---- Intel - 4 · master segment decision ---- */
.i4-view { max-width: 1120px; }
.i4-hero .i2-lede { max-width: 920px; }
.i4-now {
  margin: 18px 0 6px;
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  background: #fbfcfe;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr);
  gap: 18px;
  align-items: start;
}
.i4-now h4 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; color: #17212b; }
.i4-now h4 span { color: #9aa7b4; font-weight: 800; }
.i4-now h4 em { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: #2a7d72; background: #e4f1ee; padding: 2px 8px; border-radius: 20px; }
.i4-now p { margin: 0; color: #4a5662; line-height: 1.55; font-size: 12.5px; }
.i4-now-stats { display: grid; gap: 8px; }
.i4-now-stats span { border: 1px solid #e1e7ee; background: #fff; border-radius: 8px; padding: 9px 11px; color: #4a5662; font-size: 12px; }
.i4-now-stats b { color: #17212b; font-size: 15px; margin-right: 5px; }
.i4-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 4px; }
.i4-card {
  border: 1px solid #e1e7ee;
  border-top: 3px solid #2a9d8f;
  border-radius: 10px;
  background: #fff;
  padding: 13px 14px;
  min-width: 0;
}
.i4-card:nth-child(2) { border-top-color: #5b86a8; }
.i4-card:nth-child(3) { border-top-color: #c08552; }
.i4-card:nth-child(4) { border-top-color: #c1666b; }
.i4-card > span { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.i4-card b { display: block; margin: 9px 0 6px; font-size: 19px; color: #17212b; }
.i4-card p { margin: 0; color: #4a5662; line-height: 1.45; font-size: 12px; }
.i4-scoreboard { margin: 12px 0 16px; }
.i4-score-row {
  display: grid;
  grid-template-columns: 64px 1fr 104px;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
}
.i4-score-row.top .i2-seg { outline: 1.5px solid #17212b; outline-offset: 1px; }
.i4-score-track { height: 20px; border-radius: 7px; background: #eef2f7; overflow: hidden; }
.i4-score-fill { height: 100%; min-width: 3px; border-radius: 7px; background: linear-gradient(90deg, #2a9d8f, #5b86a8); }
.i4-score-row span:last-child { text-align: right; line-height: 1.1; }
.i4-score-row span:last-child b { display: block; color: #17212b; font-size: 13px; }
.i4-score-row span:last-child i { display: block; color: var(--muted); font-size: 9.5px; font-style: normal; font-weight: 650; }
.i4-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.i4-split .i2-section { min-width: 0; }
.i4-build { display: grid; gap: 11px; margin-top: 12px; }
.i4-build-row {
  display: grid;
  grid-template-columns: 150px minmax(220px, 360px) 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid #e1e7ee;
  border-radius: 9px;
  background: #fff;
  padding: 11px 13px;
}
.i4-build-row > div:first-child span:last-child {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.i4-build-row p { margin: 0; color: #4a5662; line-height: 1.45; font-size: 12.5px; }
.i4-build-row p b { color: #17212b; }
@media (max-width: 980px) {
  .i4-now, .i4-card-grid, .i4-split, .i4-build-row { grid-template-columns: 1fr; }
}

/* ---- Intel - 5 · deep segment verdict ---- */
.i5-view { max-width: 1180px; }
.i5-hero .i2-lede { max-width: 1040px; }
.i5-final-strip {
  margin: 18px 0 6px;
  background: #17212b;
  color: #d6dee2;
  border-radius: 12px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: center;
}
.i5-final-strip h4 { margin: 4px 0 9px; color: #fff; font-size: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.i5-final-strip p { margin: 0; font-size: 12.8px; line-height: 1.58; color: #c6d0d4; }
.i5-conviction {
  border: 1px solid #2c3a48;
  background: #1f2a36;
  border-radius: 10px;
  padding: 13px 14px;
  text-align: center;
}
.i5-conviction b { display: block; color: #7fd8c4; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; }
.i5-conviction span { display: block; margin-top: 4px; color: #aebcc4; font-size: 11.5px; line-height: 1.35; }
.i5-verdict-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 6px; }
.i5-verdict-card {
  background: #fff;
  border: 1px solid #e1e7ee;
  border-top: 3px solid #2a9d8f;
  border-radius: 10px;
  padding: 13px 14px;
  min-width: 0;
}
.i5-verdict-card.cover { border-top-color: #5b86a8; }
.i5-verdict-card.watch { border-top-color: #c08552; }
.i5-verdict-card.raw { border-top-color: #9aa7b4; }
.i5-verdict-card > span { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.i5-verdict-card b { display: block; margin: 8px 0 6px; font-size: 19px; color: #17212b; }
.i5-verdict-card p { margin: 0; color: #4a5662; line-height: 1.45; font-size: 12px; }
.i5-scoreboard { margin: 14px 0 4px; }
.i5-score-row {
  display: grid;
  grid-template-columns: 28px 64px 1fr 48px minmax(120px, 190px);
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 12px;
}
.i5-score-row > span:first-child { color: var(--muted); font-weight: 800; text-align: right; }
.i5-score-row.top .i2-seg { outline: 1.5px solid #17212b; outline-offset: 1px; }
.i5-score-track { height: 20px; background: #eef2f7; border-radius: 7px; overflow: hidden; }
.i5-score-track div { height: 100%; min-width: 3px; border-radius: 7px; }
.i5-score-row strong { color: #17212b; font-size: 13px; text-align: right; }
.i5-score-row em { color: var(--muted); font-style: normal; font-weight: 650; font-size: 10.5px; line-height: 1.15; }
.i5-wide-panel {
  margin: 28px 0;
  border-top: 1px solid #e3e8ee;
  padding-top: 22px;
}
.i5-chart-wrap {
  background: #fbfcfe;
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  padding: 12px;
  overflow-x: auto;
}
.i5-spark { width: 100%; min-width: 760px; height: auto; display: block; }
.i5-svg-label { font-size: 11px; fill: #17212b; font-weight: 800; }
.i5-svg-note { font-size: 10.5px; fill: #5b6b7b; font-weight: 700; }
.i5-svg-estimate { text-anchor: end; }
.i5-chart-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0;
}
.i5-chart-grid div {
  background: #fff;
  border: 1px solid #e1e7ee;
  border-radius: 9px;
  padding: 10px 11px;
}
.i5-chart-grid b { display: block; color: #17212b; font-size: 14px; margin-bottom: 4px; }
.i5-chart-grid span { color: var(--muted); font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .03em; }
.i5-chart-list { display: grid; gap: 7px; margin: 12px 0 4px; }
.i5-chart-row {
  display: grid;
  grid-template-columns: 64px 1fr 58px minmax(160px, 260px);
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.i5-chart-track { height: 16px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.i5-chart-track div { height: 100%; min-width: 3px; border-radius: 6px; }
.i5-chart-row span { color: #17212b; font-weight: 800; text-align: right; }
.i5-chart-row em { color: var(--muted); font-style: normal; line-height: 1.2; }
.i5-table td, .i5-table th { vertical-align: top; }
.i5-table td { line-height: 1.35; }
.i5-path-stack { display: grid; gap: 12px; }
.i5-path-stack h5 { margin: 0 0 6px; font-size: 11px; color: #17212b; text-transform: uppercase; letter-spacing: .03em; }
.i5-audit {
  background: #fbfcfe;
  border: 1px solid #e1e7ee;
  border-radius: 12px;
  padding: 18px 20px;
}
.i5-full { min-width: 980px; }
.i5-build { display: grid; gap: 11px; margin-top: 12px; }
.i5-build-row {
  display: grid;
  grid-template-columns: 150px minmax(220px, 360px) 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid #e1e7ee;
  border-radius: 9px;
  background: #fff;
  padding: 11px 13px;
}
.i5-build-row > div:first-child span:last-child {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.i5-build-row p { margin: 0; color: #4a5662; line-height: 1.45; font-size: 12.5px; }
.i5-master-verdict {
  margin-top: 30px;
  background: #17212b;
  border-radius: 12px;
  padding: 20px 22px;
  color: #d6dee2;
}
.i5-master-verdict h4 { margin: 0 0 12px; color: #fff; font-size: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.i5-master-verdict p { margin: 11px 0 0; font-size: 13px; line-height: 1.6; color: #c6d0d4; }
.i5-master-verdict b { color: #fff; }
@media (max-width: 980px) {
  .i5-final-strip, .i5-verdict-grid, .i5-chart-grid, .i5-build-row { grid-template-columns: 1fr; }
  .i5-score-row { grid-template-columns: 24px 64px 1fr 42px; }
  .i5-score-row em { grid-column: 3 / 5; }
  .i5-chart-row { grid-template-columns: 64px 1fr 54px; }
  .i5-chart-row em { grid-column: 2 / 4; }
}

/* ---- S4 - Verdict · Segment Isolation ---- */
.s5-view { max-width: 1220px; }
.s5-hero {
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(250,252,255,.96)) padding-box,
    linear-gradient(135deg, #8a6a09, #d4af37 24%, #fff2a8 44%, #b8860b 67%, #7a5a00) border-box;
  border: 1.5px solid transparent;
}
.s5-output {
  margin: 18px 0 8px;
  background: #17212b;
  color: #d6dee2;
  border-radius: 12px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: center;
}
.s5-output h4 { margin: 4px 0 9px; color: #fff; font-size: 18px; line-height: 1.35; display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.s5-output p { margin: 0; color: #c6d0d4; font-size: 12.8px; line-height: 1.6; }
.s5-output-count {
  border: 1px solid #3a4653;
  background: #1f2a36;
  border-radius: 10px;
  padding: 13px 14px;
  text-align: center;
}
.s5-output-count b { display: block; color: #f6d86b; font-size: 30px; line-height: 1; }
.s5-output-count span { display: block; color: #aebcc4; font-size: 10.5px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; margin-top: 7px; }
.s5-isolated-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 8px; }
.s5-isolated-card {
  border: 1px solid #e0e7ef;
  border-top: 4px solid #d4af37;
  border-radius: 11px;
  background: #fff;
  padding: 16px 18px;
  min-width: 0;
}
.s5-isolated-card.cover { border-top-color: #5b86a8; }
.s5-isolated-card > span { display: block; color: var(--muted); font-size: 10.5px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.s5-isolated-card b { display: block; margin: 10px 0 8px; color: #17212b; font-size: 28px; line-height: 1; }
.s5-isolated-card p { margin: 0; color: #455464; font-size: 12.8px; line-height: 1.55; }
.s5-scoreboard { display: grid; gap: 8px; margin: 14px 0 4px; }
.s5-score-row {
  display: grid;
  grid-template-columns: 28px 64px minmax(180px, 1fr) 44px minmax(190px, .7fr);
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.s5-score-row > span:first-child { color: var(--muted); font-weight: 900; text-align: right; }
.s5-score-row.isolated .i2-seg { outline: 1.5px solid #17212b; outline-offset: 1px; }
.s5-score-track, .s5-perm-row div, .s5-chart-row div {
  height: 18px;
  background: #eef2f7;
  border-radius: 7px;
  overflow: hidden;
}
.s5-score-track i, .s5-perm-row i, .s5-chart-row i {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: 7px;
}
.s5-score-row b { text-align: right; color: #17212b; font-size: 13px; }
.s5-score-row em { color: var(--muted); font-style: normal; font-size: 10.5px; font-weight: 700; line-height: 1.2; }
.s5-wide {
  margin: 28px 0;
  border-top: 1px solid #e3e8ee;
  padding-top: 22px;
}
.s5-perm-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, .75fr);
  gap: 18px;
  align-items: start;
}
.s5-perm-list { display: grid; gap: 8px; }
.s5-perm-row {
  display: grid;
  grid-template-columns: 64px minmax(160px, 1fr) 52px minmax(120px, .65fr);
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.s5-perm-row i { background: linear-gradient(90deg, #d4af37, #5b86a8); }
.s5-perm-row b { text-align: right; color: #17212b; }
.s5-perm-row span { color: var(--muted); font-size: 10.5px; font-weight: 700; }
.s5-method-card {
  border: 1px solid #e0e7ef;
  border-radius: 11px;
  background: #fbfcfe;
  padding: 15px 17px;
}
.s5-method-card b { display: block; color: #17212b; font-size: 14px; margin-bottom: 8px; }
.s5-method-card p { margin: 0 0 11px; color: #4a5662; font-size: 12.5px; line-height: 1.55; }
.s5-method-card p:last-child { margin-bottom: 0; }
.s5-chart { width: 100%; min-width: 760px; height: auto; display: block; }
.s5-chart-list { display: grid; gap: 8px; margin: 12px 0 4px; }
.s5-chart-row {
  display: grid;
  grid-template-columns: 64px minmax(170px, 1fr) 58px minmax(145px, .65fr);
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.s5-chart-row b { text-align: right; color: #17212b; font-size: 12px; }
.s5-chart-row span { color: var(--muted); font-size: 11px; line-height: 1.2; }
.s5-lens-table td:first-child span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  margin-top: 2px;
}
.s5-full-table { min-width: 1050px; }
.s5-final {
  margin-top: 30px;
  background: #17212b;
  color: #d6dee2;
  border-radius: 12px;
  padding: 20px 22px;
}
.s5-final h4 { margin: 0 0 12px; color: #fff; font-size: 18px; line-height: 1.35; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.s5-final p { margin: 11px 0 0; color: #c6d0d4; font-size: 13px; line-height: 1.6; }
.s5-final b { color: #fff; }
.s5-retained {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 2px solid #e3e8ee;
}
@media (max-width: 980px) {
  .s5-output, .s5-isolated-grid, .s5-perm-grid { grid-template-columns: 1fr; }
  .s5-score-row { grid-template-columns: 24px 64px 1fr 42px; }
  .s5-score-row em { grid-column: 3 / 5; }
  .s5-perm-row, .s5-chart-row { grid-template-columns: 64px 1fr 54px; }
  .s5-perm-row span, .s5-chart-row span { grid-column: 2 / 4; }
}
.decision-view { max-width: 1040px; }
.decision-hero { border: 1px solid #cfe3df; border-left: 4px solid #2a9d8f; background: #f1f6f5; border-radius: 10px; padding: 18px 22px; margin-bottom: 22px; }
.decision-hero h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; color: #17212b; }
.decision-hero p { margin: 0; font-size: 14px; color: #2b3a3a; line-height: 1.55; }
.decision-section { margin-top: 24px; }
.decision-section h4 { margin: 0 0 10px; font-size: 15px; color: #17212b; }
.decision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 24px; }
.decision-note { margin: 12px 0 0; font-size: 12.5px; color: #4a5662; line-height: 1.55; background: #f6f8fb; border: 1px solid #e3e8ee; border-radius: 8px; padding: 12px 14px; }
.decision-note b { color: #17212b; }
.decision-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.decision-picks div { border: 1px solid #dde4ec; border-radius: 8px; padding: 12px 14px; background: #fff; min-width: 0; }
.decision-picks span { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.decision-picks b { display: block; font-size: 18px; color: #17212b; line-height: 1.2; overflow-wrap: anywhere; }
.decision-picks em { display: block; font-style: normal; font-size: 11.5px; color: #64748b; margin-top: 4px; overflow-wrap: anywhere; }
.distance-column-details { border: 1px solid #dde4ec; border-radius: 8px; background: #fff; padding: 10px 14px; margin: 0 0 12px; }
.distance-column-details summary { cursor: pointer; font-size: 13px; font-weight: 800; color: #17212b; list-style: none; }
.distance-column-details summary::-webkit-details-marker { display: none; }
.distance-column-body { margin-top: 12px; display: grid; gap: 10px; }
.distance-mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.distance-mini-grid div { border: 1px solid #e5ebf2; border-radius: 8px; padding: 10px 11px; background: #f8fafc; }
.distance-mini-grid span { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 5px; }
.distance-mini-grid b { display: block; font-size: 16px; color: #17212b; line-height: 1.2; overflow-wrap: anywhere; }
.distance-mini-grid em { display: block; font-style: normal; font-size: 11px; color: #64748b; margin-top: 4px; overflow-wrap: anywhere; }
.ticket-form { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 12px; margin: 12px 0 16px; }
.ticket-form label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ticket-form input, .coverage-input { width: 100%; box-sizing: border-box; margin-top: 6px; border: 1px solid #cfd8e3; border-radius: 7px; padding: 10px 12px; font: inherit; color: #17212b; background: #fff; }
.coverage-input { min-height: 108px; resize: vertical; line-height: 1.5; }
@media (max-width: 880px) {
  .decision-grid, .decision-picks, .ticket-form { grid-template-columns: 1fr; }
  .distance-mini-grid { grid-template-columns: 1fr 1fr; }
}

.segment-analysis-view {
  border: 1px solid #b8c2ce;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}
.segment-two-view {
  border: 1px solid #b8c2ce;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}
.segment-two-scroll {
  overflow: auto;
}
.segment-two-grid {
  min-width: 780px;
  display: grid;
  grid-template-columns: 570px 150px;
  column-gap: 36px;
  align-items: start;
}
.seg2-table {
  border-top: 3px solid #1D2330;
  border-bottom: 3px solid #1D2330;
}
.seg2-header,
.seg2-row,
.seg2-sum {
  display: grid;
  grid-template-columns: 176px 112px 282px;
  align-items: stretch;
}
.seg2-header {
  background: #284460;
  color: #ffffff;
  font-weight: 850;
  font-size: 12px;
  min-height: 28px;
}
.seg2-header div,
.seg2-row > div,
.seg2-sum div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.seg2-row {
  min-height: 24px;
  background: #ffffff;
}
.seg2-row.top,
.seg2-row.middle {
  background: #e9f0f8;
}
.seg2-pattern {
  color: #17212b;
  font-weight: 850;
  font-size: 11px;
}
.seg2-bar-cell {
  position: relative;
  overflow: hidden;
  font-size: 11px;
  color: #17212b;
}
.seg2-bar-cell span {
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  border-radius: 2px;
  border: 1px solid rgba(23, 33, 43, 0.12);
}
.seg2-bar-cell.occurrence span {
  background: #aebfd4;
}
.seg2-bar-cell.probability span {
  background: #5b86a8;
}
.seg2-bar-cell b {
  position: relative;
  z-index: 1;
  font-weight: 650;
}
.seg2-sum {
  margin-top: 12px;
  min-height: 30px;
  background: #e5e7eb;
  color: #111827;
  font-weight: 850;
  font-size: 12px;
  border-top: 2px solid #1D2330;
}
.seg2-side {
  position: relative;
  min-height: 370px;
}
.seg2-summary {
  position: absolute;
  left: 0;
}
.seg2-summary.top { top: 64px; }
.seg2-summary.middle { top: 204px; }
.seg2-summary.bottom { top: 318px; }
.seg2-summary button {
  min-width: 70px;
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid rgba(23, 33, 43, 0.22);
  box-shadow: 0 1px 3px rgba(23, 33, 43, 0.12);
  background: #2a9d8f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.seg2-summary.middle button,
.seg2-summary.bottom button {
  background: #284460;
  color: #ffffff;
}
.segment-two-note {
  position: absolute;
  left: 0;
  top: 142px;
  z-index: 4;
  width: 148px;
  padding: 10px 12px;
  border: 2px solid #17212b;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(23, 33, 43, .16);
  color: #17212b;
  text-align: center;
}
.segment-two-note[hidden] {
  display: none;
}
.segment-two-note strong {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}
.segment-two-note p {
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
}
.segment-three-view {
  border: 1px solid #b8c2ce;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}
.segment-three-scroll {
  max-height: calc(100vh - 285px);
  overflow: auto;
}
.segment-three-grid {
  min-width: max-content;
  display: flex;
  align-items: flex-start;
}
.seg3-block {
  width: 218px;
  flex: 0 0 218px;
  border-right: 1px solid #cbd5e1;
}
.seg3-source {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 42px;
  background: #284460;
  color: #ffffff;
  border-bottom: 2px solid #1D2330;
}
.seg3-source {
  display: grid;
  grid-template-rows: 15px 1fr;
  place-items: center;
  padding: 3px;
}
.seg3-source span {
  font-size: 9px;
  font-weight: 800;
}
.seg3-source b {
  width: 100%;
  padding: 3px 2px;
  border: 1px solid rgba(23, 33, 43, .2);
  color: #17212b;
  font-size: 10px;
  text-align: center;
}
.seg3-subheader,
.seg3-row {
  display: grid;
  grid-template-columns: 90px 64px 64px;
}
.seg3-subheader {
  position: sticky;
  top: 42px;
  z-index: 2;
  min-height: 20px;
  background: #eef4fb;
  color: #334155;
  border-bottom: 1px solid #cbd5e1;
  font-size: 9px;
  font-weight: 850;
}
.seg3-subheader span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}
.seg3-row-label {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #cbd5e1;
  border-bottom: 1px solid #e2e8f0;
  color: #17212b;
  font-size: 10px;
  font-weight: 500;
}
.seg3-metric {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #edf2f7;
  color: #17212b;
  font-size: 9px;
  font-weight: 750;
}
.seg3-metric.empty {
  background: #ffffff;
}
.number-analysis-one-view {
  border: 1px solid #b8c2ce;
  border-radius: 6px;
  overflow: auto;
  background: #ffffff;
  padding: 14px;
}
.number-analysis-summary {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 0;
  margin-bottom: 14px;
  border: 1px solid #d7e0ea;
  position: sticky;
  left: 0;
  z-index: 8;
  background: #ffffff;
}
.number-analysis-summary span,
.number-analysis-summary strong {
  min-height: 30px;
  padding: 6px 10px;
  border-right: 1px solid #d7e0ea;
  color: #17212b;
  font-size: 12px;
  white-space: nowrap;
}
.number-analysis-summary span {
  background: #eaf1f8;
  font-weight: 850;
}
.number-analysis-summary .logic-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-right: 12px;
  position: relative;
}
.logic-info {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #64748b;
  background: #ffffff;
  color: #17212b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}
.logic-info em {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(10px, -50%);
  width: 430px;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
  color: #17212b;
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.35;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}
.logic-info:hover em,
.logic-info:focus em {
  opacity: 1;
}
.number-analysis-summary .logic-info em {
  left: 0;
  top: 100%;
  transform: translateY(8px);
}
.number-analysis-summary strong {
  text-align: center;
}
.number-analysis-summary strong:last-child {
  border-right: 0;
}
.number-analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, 430px);
  gap: 18px 22px;
  align-items: start;
}
.number-analysis-two-grid {
  display: grid;
  grid-template-columns: repeat(7, 340px);
  gap: 18px;
  align-items: start;
}
.number-analysis-three-grid {
  display: grid;
  grid-template-columns: 340px 340px 340px;
  gap: 22px;
  align-items: start;
}
.number-analysis-block {
  border: 1px solid #d7e0ea;
  background: #ffffff;
}
.number-analysis-head,
.number-analysis-row {
  display: grid;
  grid-template-columns: 72px 112px 112px 112px;
  align-items: center;
  min-height: 29px;
  border-bottom: 1px solid #e2e8f0;
}
.number-analysis-block.compact .number-analysis-head,
.number-analysis-row.compact {
  grid-template-columns: 76px 126px 126px;
}
.number-analysis-head {
  background: #284460;
}
.number-analysis-head span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}
.number-analysis-row span,
.number-analysis-row b {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: 3px 6px;
  color: #17212b;
  font-size: 12px;
  white-space: nowrap;
}
.number-analysis-row span {
  background: #eef4fb;
  font-weight: 850;
}
.number-analysis-row b {
  font-weight: 650;
}
.number-analysis-row.total {
  background: #f8fafc;
}
.number-analysis-row.total span,
.number-analysis-row.total b {
  font-weight: 850;
}
.number-analysis-row.compact span,
.number-analysis-row.compact b {
  font-size: 11px;
}
.number-data-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 22px;
  overflow: hidden;
  background: #ffffff;
}
.number-data-bar i {
  position: absolute;
  inset: 3px auto 3px 0;
  width: var(--bar-width);
  background: var(--bar-color, #b7d7ef);
}
.number-data-bar strong {
  position: relative;
  z-index: 1;
  font-weight: 750;
}
.na-depth {
  min-width: 1180px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #dce6f0;
}
.na-depth-hero {
  padding: 18px 20px;
  border-radius: 13px;
  background: linear-gradient(135deg, #17212b 0%, #284460 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(23, 33, 43, .10);
}
.na-depth-hero span,
.na-depth-title span,
.na-depth-final span,
.na-depth-cards span {
  display: block;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.na-depth-hero span {
  color: #8ed8cb;
}
.na-depth-hero h4 {
  margin: 7px 0 8px;
  font-size: 22px;
  line-height: 1.2;
}
.na-depth-hero p {
  max-width: 1040px;
  margin: 0;
  color: #d5dee7;
  font-size: 13.5px;
  line-height: 1.6;
}
.na-depth-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.na-depth-cards div {
  padding: 13px 14px;
  border: 1px solid #dce6f0;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(23, 33, 43, .05);
}
.na-depth-cards span,
.na-depth-cards em {
  color: #64748b;
  font-style: normal;
}
.na-depth-cards b {
  display: block;
  margin: 5px 0 2px;
  color: #17212b;
  font-size: 24px;
  line-height: 1;
}
.na-depth-cards em {
  font-size: 12px;
  font-weight: 750;
}
.na-depth-section {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(23, 33, 43, .04);
}
.na-depth-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.na-depth-title span {
  color: #0f766e;
}
.na-depth-title h4 {
  margin: 5px 0 5px;
  color: #17212b;
  font-size: 16px;
}
.na-depth-title p {
  margin: 0 0 10px;
  color: #586678;
  font-size: 12.5px;
  line-height: 1.5;
}
.na-depth-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12px;
}
.na-depth-table th {
  padding: 8px 9px;
  background: #17212b;
  color: #ffffff;
  font-weight: 850;
  text-align: left;
  white-space: nowrap;
}
.na-depth-table td {
  padding: 7px 9px;
  border-bottom: 1px solid #edf2f7;
  color: #263442;
  vertical-align: middle;
}
.na-depth-table tr:nth-child(even) td {
  background: #fbfdff;
}
.na-depth-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 96px;
  min-height: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3f8;
}
.na-depth-bar i {
  position: absolute;
  left: 3px;
  top: 3px;
  bottom: 3px;
  border-radius: 999px;
}
.na-depth-bar strong {
  position: relative;
  z-index: 1;
  padding: 0 8px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 850;
}
.na-depth-lanes {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
  height: 230px;
  padding: 12px 8px 0;
}
.na-depth-lane {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  text-align: center;
}
.na-depth-lane span,
.na-depth-lane b,
.na-depth-lane em {
  position: relative;
  z-index: 2;
}
.na-depth-lane span {
  color: #17212b;
  font-size: 13px;
  font-weight: 850;
}
.na-depth-lane b {
  color: #17212b;
  font-size: 18px;
}
.na-depth-lane i {
  width: 100%;
  min-height: 18px;
  border-radius: 10px 10px 5px 5px;
  box-shadow: inset 0 0 0 1px rgba(23, 33, 43, .10), 0 8px 16px rgba(23, 33, 43, .08);
}
.na-depth-lane em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.na-parity-chart {
  display: grid;
  grid-template-columns: repeat(8, minmax(86px, 1fr));
  gap: 10px;
  align-items: end;
  height: 230px;
  padding: 12px 8px 0;
}
.na-parity-tile {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  text-align: center;
}
.na-parity-tile.current {
  padding: 8px;
  border: 1px solid #d0a617;
  border-radius: 12px;
  background: #fffaf0;
}
.na-parity-tile span,
.na-parity-tile b {
  position: relative;
  z-index: 2;
  color: #17212b;
  font-weight: 850;
}
.na-parity-tile i {
  width: 100%;
  min-height: 14px;
  border-radius: 10px 10px 5px 5px;
  box-shadow: inset 0 0 0 1px rgba(23, 33, 43, .10), 0 8px 16px rgba(23, 33, 43, .08);
}
.na-repeat-counts {
  display: grid;
  grid-template-columns: repeat(8, minmax(96px, 1fr));
  gap: 10px;
  align-items: end;
  height: 250px;
  padding: 12px 8px 0;
}
.na-repeat-count {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  background: #fbfdff;
  text-align: center;
}
.na-repeat-count.primary {
  border-color: #0f766e;
  background: #f0fdfa;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .12);
}
.na-repeat-count.cover {
  border-color: #d0a617;
  background: #fffaf0;
  box-shadow: 0 8px 18px rgba(155, 122, 32, .12);
}
.na-repeat-count span,
.na-repeat-count b,
.na-repeat-count em {
  position: relative;
  z-index: 2;
}
.na-repeat-count span {
  color: #17212b;
  font-size: 12px;
  font-weight: 850;
}
.na-repeat-count b {
  color: #17212b;
  font-size: 18px;
}
.na-repeat-count i {
  width: 100%;
  min-height: 14px;
  border-radius: 10px 10px 5px 5px;
  box-shadow: inset 0 0 0 1px rgba(23, 33, 43, .10), 0 8px 16px rgba(23, 33, 43, .08);
}
.na-repeat-count em {
  color: #64748b;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}
.na-repeat-chip {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 3px 6px;
  border-radius: 999px;
  background: #eef3f8;
  color: #334155;
  font-size: 11px;
  font-weight: 750;
}
.na4-block-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.na4-block-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  background: #fbfdff;
  box-shadow: 0 8px 18px rgba(23, 33, 43, .04);
}
.na4-block-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid #edf2f7;
}
.na4-block-card-head b {
  color: #17212b;
  font-size: 15px;
}
.na4-block-card-head span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.na4-mini-row {
  display: grid;
  grid-template-columns: 22px minmax(90px, 1fr) 34px;
  gap: 7px;
  align-items: center;
  padding: 4px;
  border-radius: 8px;
}
.na4-mini-row.primary {
  background: #edfdf8;
}
.na4-mini-row.cover {
  background: #fff8e6;
}
.na4-mini-row > span,
.na4-mini-row > em {
  color: #334155;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-align: center;
}
.segment-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 7px;
  color: #17212b;
  font-weight: 850;
  border: 1px solid rgba(23, 33, 43, .08);
}
.na-depth-final {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f6f9fc;
  border: 1px solid #dce6f0;
}
.na-depth-final span {
  color: #0f766e;
}
.na-depth-final p {
  margin: 6px 0 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .na-depth-cards,
  .na-depth-two {
    grid-template-columns: 1fr;
  }
  .na-depth-lanes,
  .na-parity-chart,
  .na-repeat-counts,
  .na4-block-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    height: auto;
  }
}
.number-analysis-four-view {
  overflow: auto;
}
.number-co-grid {
  display: grid;
  grid-template-columns: repeat(35, 430px);
  gap: 18px;
  align-items: start;
  min-width: max-content;
}
.number-co-block {
  border: 1px solid #d7e0ea;
  background: #ffffff;
}
.number-co-title {
  background: #f6d75b;
  color: #17212b;
  font-size: 18px;
  font-weight: 850;
  text-align: center;
  padding: 7px 8px;
  border-bottom: 1px solid #d7e0ea;
}
.number-co-head,
.number-co-row {
  display: grid;
  grid-template-columns: 72px 112px 112px 112px;
  align-items: center;
  min-height: 27px;
  border-bottom: 1px solid #e2e8f0;
}
.number-analysis-four-view:not(.number-analysis-five-view) .number-co-grid {
  grid-template-columns: repeat(35, 460px);
}
.number-analysis-four-view:not(.number-analysis-five-view) .number-co-head,
.number-analysis-four-view:not(.number-analysis-five-view) .number-co-row {
  grid-template-columns: 72px 104px 104px 104px 60px;
}
.number-analysis-five-view .number-co-grid {
  grid-template-columns: repeat(35, 460px);
}
.number-analysis-five-view .number-co-head,
.number-analysis-five-view .number-co-row {
  grid-template-columns: 72px 104px 104px 104px 60px;
}
.number-co-head {
  background: #284460;
}
.number-co-head span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}
.number-filter-select {
  width: 18px;
  min-width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #9fb2c5;
  border-radius: 3px;
  background: #ffffff;
  color: #17212b;
  font-size: 0;
  cursor: pointer;
}
.number-filter-select option {
  font-size: 12px;
}
.number-heading-info {
  color: #17212b;
  flex: 0 0 16px;
}
.number-co-head .logic-info em {
  left: 0;
  top: 100%;
  transform: translateY(8px);
  text-align: left;
}
.number-co-row span,
.number-co-row b {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 3px 6px;
  color: #17212b;
  font-size: 11px;
  white-space: nowrap;
}
.number-co-row span {
  background: #fff8d6;
  font-weight: 800;
}
.number-co-row b {
  background: #ffffff;
  font-weight: 650;
}
.number-co-row.same-number span,
.number-co-row.same-number b {
  background: #f8fafc;
  color: #94a3b8;
}
.number-analysis-five-view .number-co-title {
  background: #9bd18b;
}
.number-analysis-five-view .number-co-row span {
  background: #edf8e9;
}
.pb-analysis-three-view .number-co-grid {
  grid-template-columns: repeat(20, 460px);
  align-items: stretch;
}
.pb-analysis-three-view .number-co-block {
  display: grid;
  grid-template-rows: 36px 31px repeat(20, 29px);
}
.pb-analysis-three-view .number-co-head,
.pb-analysis-three-view .number-co-row {
  grid-template-columns: 72px 104px 104px 104px 60px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.pb-analysis-three-view .number-co-title {
  background: #7dd3fc;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  padding: 0 8px;
}
.pb-analysis-three-view .number-co-row span {
  background: #e0f5fe;
}
.pb-analysis-three-view .number-co-head span,
.pb-analysis-three-view .number-co-row span,
.pb-analysis-three-view .number-co-row b {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.pb-analysis-three-view .number-data-bar {
  min-height: 0;
  height: 100%;
}
.pb-analysis-four-view {
  border: 1px solid #b8c2ce;
  border-radius: 6px;
  background: #ffffff;
  overflow: auto;
  padding: 12px;
}
.pb4-summary {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  border: 1px solid #d7e0ea;
  margin-bottom: 14px;
}
.pb4-summary span,
.pb4-summary strong {
  min-height: 30px;
  padding: 6px 10px;
  border-right: 1px solid #d7e0ea;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}
.pb4-summary span {
  background: #eaf1f8;
  font-weight: 850;
}
.pb4-summary strong {
  background: #ffffff;
  font-weight: 850;
}
.pb4-grid {
  display: grid;
  grid-template-columns: repeat(5, 170px);
  gap: 12px;
  min-width: max-content;
}
.pb4-block {
  border: 1px solid #d7e0ea;
  background: #ffffff;
}
.pb4-title {
  background: #7dd3fc;
  color: #17212b;
  font-weight: 850;
  text-align: center;
  padding: 7px 8px;
}
.pb4-head,
.pb4-row,
.pb4-total {
  display: grid;
  grid-template-columns: 72px 96px;
  min-height: 28px;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}
.pb4-head {
  background: #284460;
}
.pb4-head span {
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}
.pb4-row span,
.pb4-row b,
.pb4-total span,
.pb4-total b {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 6px;
  font-size: 11px;
  color: #17212b;
}
.pb4-row span {
  background: #e0f5fe;
  font-weight: 800;
}
.pb4-row b,
.pb4-total b {
  background: #ffffff;
  font-weight: 700;
}
.pb4-total {
  background: #f8fafc;
  border-bottom: 0;
  font-weight: 850;
}
.pb4-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  width: 100%;
  background: #ffffff;
  overflow: hidden;
}
.pb4-bar i {
  position: absolute;
  inset: 3px auto 3px 0;
  width: var(--bar-width);
  background: #7dd3fc;
}
.pb4-bar strong {
  position: relative;
  z-index: 1;
}
.pb4-hover-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: 360px;
  max-height: 260px;
  overflow: auto;
  padding: 8px 10px;
  border: 1px solid #17212b;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  color: #17212b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  white-space: pre;
  pointer-events: none;
}
.pb4-hover-tooltip[hidden] {
  display: none;
}
.powerball-segment-ratio-view {
  border: 1px solid #b8c2ce;
  border-radius: 6px;
  background: #ffffff;
  overflow: auto;
  padding: 12px;
}
.powerball-segment-grid {
  display: grid;
  grid-template-columns: repeat(20, 560px);
  gap: 12px;
  min-width: max-content;
}
.powerball-segment-block {
  border: 1px solid #d7e0ea;
  background: #ffffff;
}
.powerball-segment-title {
  background: #c4b5fd;
  color: #17212b;
  font-weight: 850;
  text-align: center;
  padding: 7px 8px;
}
.powerball-segment-head,
.powerball-segment-row,
.powerball-segment-total {
  display: grid;
  grid-template-columns: 86px 108px 108px 108px 78px 60px;
  min-height: 28px;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}
.oe-ratio { font-weight: 850; font-size: 11px; }
.oe-ratio.oe-high { color: #166534; }  /* above expected */
.oe-ratio.oe-low { color: #b91c1c; }   /* below expected */
.oe-ratio.oe-mid { color: #64748b; }   /* ~ as expected */
.powerball-segment-head {
  background: #284460;
}
.powerball-segment-head span {
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}
.powerball-segment-row span,
.powerball-segment-row b,
.powerball-segment-total span,
.powerball-segment-total b {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 6px;
  font-size: 11px;
  color: #17212b;
}
.powerball-segment-row span {
  font-weight: 800;
}
.powerball-segment-row b,
.powerball-segment-total b {
  background: #ffffff;
  font-weight: 700;
}
.powerball-segment-total {
  background: #f8fafc;
  border-bottom: 0;
  font-weight: 850;
}
.ratio-data-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  width: 100%;
  background: #ffffff;
  overflow: hidden;
}
.ratio-data-bar i {
  position: absolute;
  inset: 3px auto 3px 0;
  width: var(--bar-width);
  background: #c4b5fd;
}
.ratio-data-bar strong {
  position: relative;
  z-index: 1;
}
.powerball-number-ratio-view .powerball-segment-title {
  background: #99f6e4;
}
.powerball-number-ratio-view .powerball-segment-row span {
  background: #ecfdf5;
}
.powerball-number-ratio-view .ratio-data-bar i {
  background: #2dd4bf;
}
.pb-analysis-one-view {
  border: 1px solid #b8c2ce;
  border-radius: 6px;
  background: #ffffff;
  overflow: auto;
  max-width: 100%;
  padding: 10px;
}
.pb-excel-view {
  min-width: 1260px;
}
.pb-excel-title {
  display: grid;
  grid-template-columns: 1fr 240px;
  align-items: center;
  margin-bottom: 8px;
}
.pb-excel-title strong,
.pb-excel-title span {
  min-height: 30px;
  padding: 6px 10px;
  background: #1f2937;
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
}
.pb-excel-title span {
  text-align: center;
}
.pb-excel-range-strip {
  display: grid;
  grid-template-columns: repeat(5, 88px) 208px;
  width: 648px;
  margin-bottom: 10px;
  border: 1px solid #d7e0ea;
}
.pb-excel-range-strip span,
.pb-excel-range-strip b,
.pb-excel-range-strip em {
  min-height: 27px;
  padding: 4px 8px;
  border-right: 1px solid #d7e0ea;
  border-bottom: 1px solid #d7e0ea;
  color: #17212b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}
.pb-excel-range-strip span {
  background: color-mix(in srgb, var(--range-color, #d9eaf7) 60%, white);
}
.pb-excel-range-strip > :nth-child(6n) {
  border-right: 0;
}
.pb-excel-range-strip > :nth-child(n+13) {
  border-bottom: 0;
}
.pb-excel-main {
  display: grid;
  grid-template-columns: 650px 620px;
  gap: 12px;
  align-items: start;
}
.pb-excel-left {
  display: grid;
  gap: 0;
}
.pb-seg-grid {
  display: grid;
  grid-template-columns: repeat(2, 318px);
  gap: 10px 12px;
  align-items: start;
}
.pb-seg-block {
  border: 1px solid #d7e0ea;
}
.pb-seg-head,
.pb-seg-row,
.pb-seg-total {
  display: grid;
  grid-template-columns: 54px 74px 92px 92px;
  align-items: center;
  min-height: 24px;
  border-bottom: 1px solid #e2e8f0;
}
.pb-seg-head {
  background: #284460;
}
.pb-seg-head span {
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}
.pb-seg-row span,
.pb-seg-total span {
  min-height: 24px;
  padding: 3px 6px;
  background: color-mix(in srgb, var(--range-color) 58%, white);
  color: #17212b;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}
.pb-seg-row b,
.pb-seg-row em,
.pb-seg-total b,
.pb-seg-total em {
  min-height: 24px;
  padding: 2px 5px;
  color: #17212b;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}
.pb-seg-total {
  background: #f8fafc;
  border-bottom: 0;
}
.pb-excel-side {
  display: grid;
  grid-template-columns: 300px 300px;
  gap: 10px;
  align-items: start;
}
.pb-summary-strip {
  display: inline-grid;
  grid-template-columns: max-content 86px max-content 150px;
  margin-bottom: 14px;
  border: 1px solid #d7e0ea;
}
.pb-summary-strip span,
.pb-summary-strip strong {
  min-height: 30px;
  padding: 6px 10px;
  border-right: 1px solid #d7e0ea;
  color: #17212b;
  font-size: 12px;
  white-space: nowrap;
}
.pb-summary-strip span {
  background: #eaf1f8;
  font-weight: 850;
}
.pb-summary-strip strong {
  text-align: center;
}
.pb-summary-strip strong:last-child {
  border-right: 0;
}
.pb-analysis-grid {
  display: grid;
  grid-template-columns: 430px 560px 360px;
  gap: 20px;
  align-items: start;
  min-width: max-content;
}
.pb-card {
  border: 1px solid #d7e0ea;
  background: #ffffff;
}
.pb-card h4 {
  margin: 0;
  padding: 7px 8px;
  background: #1f4e78;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}
.pb-heading-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  white-space: nowrap;
}
.pb-heading-note .logic-info {
  color: #17212b;
  flex: 0 0 16px;
}

.pb1-depth {
  min-width: 1260px;
}
.pb1-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0 3px 3px 0;
  border-radius: 50%;
  border: 2px solid rgba(31, 78, 120, 0.28);
  background: #ffffff;
  color: #17212b;
  font-size: 14px;
  font-weight: 900;
}
.pb1-range-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  border-radius: 7px;
  padding: 5px 8px;
  background: color-mix(in srgb, var(--pb1-range, #eef2f7) 72%, #ffffff);
  color: #17212b;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(23, 33, 43, .08);
}
.pb1-range-graph {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  height: 250px;
  align-items: end;
  padding: 12px 8px 0;
}
.pb1-range-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  padding: 10px;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  background: #fbfdff;
  text-align: center;
  overflow: hidden;
}
.pb1-range-card span,
.pb1-range-card b,
.pb1-range-card em {
  position: relative;
  z-index: 2;
}
.pb1-range-card span {
  color: #17212b;
  font-size: 13px;
  font-weight: 900;
}
.pb1-range-card b {
  color: #17212b;
  font-size: 20px;
}
.pb1-range-card i {
  width: 100%;
  min-height: 18px;
  border-radius: 10px 10px 5px 5px;
  background: color-mix(in srgb, var(--pb1-range, #5b86a8) 80%, #284460);
  box-shadow: inset 0 0 0 1px rgba(23, 33, 43, .12), 0 8px 16px rgba(23, 33, 43, .08);
}
.pb1-range-card em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}
.pb1-table tr.primary td {
  background: #f0fdfa;
}
.pb1-table tr.cover td {
  background: #fffaf0;
}

.pb2-depth {
  min-width: 1180px;
}
.pb2-distance-graph {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
  height: 250px;
  align-items: end;
  padding: 12px 8px 0;
}
.pb2-distance-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  padding: 10px;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  background: #fbfdff;
  text-align: center;
  overflow: hidden;
}
.pb2-distance-card span,
.pb2-distance-card b,
.pb2-distance-card em {
  position: relative;
  z-index: 2;
}
.pb2-distance-card span {
  color: #17212b;
  font-size: 13px;
  font-weight: 900;
}
.pb2-distance-card b {
  color: #17212b;
  font-size: 22px;
}
.pb2-distance-card i {
  width: 100%;
  min-height: 18px;
  border-radius: 10px 10px 5px 5px;
  background: var(--pb2-band);
  box-shadow: inset 0 0 0 1px rgba(23, 33, 43, .12), 0 8px 16px rgba(23, 33, 43, .08);
}
.pb2-distance-card em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}
.pb2-table tr.primary td {
  background: #f0fdfa;
}
.pb2-table tr.cover td {
  background: #fffaf0;
}
.pb2-journey-table tr.selected td {
  background: #eef7ff;
  box-shadow: inset 3px 0 0 #0ea5e9;
}

.pb3-depth {
  min-width: 1180px;
}
.pb3-table tr.primary td {
  background: #f0fdfa;
}
.pb3-table tr.cover td {
  background: #fffaf0;
}
.pb3-edge-table tr.latest td {
  background: #eefdf8;
  box-shadow: inset 3px 0 0 #2a9d8f;
}

.pb4-depth {
  min-width: 1180px;
}
.pb4-depth-range-graph {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
  height: 250px;
  align-items: end;
  padding: 12px 8px 0;
}
.pb4-depth-range-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  padding: 10px;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  background: #fbfdff;
  text-align: center;
  overflow: hidden;
}
.pb4-depth-range-card span,
.pb4-depth-range-card b,
.pb4-depth-range-card em {
  position: relative;
  z-index: 2;
}
.pb4-depth-range-card span {
  color: #17212b;
  font-size: 13px;
  font-weight: 900;
}
.pb4-depth-range-card b {
  color: #17212b;
  font-size: 20px;
}
.pb4-depth-range-card i {
  width: 100%;
  min-height: 18px;
  border-radius: 10px 10px 5px 5px;
  background: linear-gradient(180deg, #7dd3fc 0%, #0ea5e9 100%);
  box-shadow: inset 0 0 0 1px rgba(23, 33, 43, .12), 0 8px 16px rgba(23, 33, 43, .08);
}
.pb4-depth-range-card em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}
.pb4-depth-table tr.primary td {
  background: #f0fdfa;
}
.pb4-depth-table tr.cover td {
  background: #fffaf0;
}

@media (max-width: 900px) {
  .pb2-distance-graph,
  .pb4-depth-range-graph {
    grid-template-columns: 1fr;
    height: auto;
  }
  .pb2-distance-card,
  .pb4-depth-range-card {
    min-height: 150px;
  }
}

@media (max-width: 900px) {
  .pb1-range-graph {
    grid-template-columns: 1fr;
    height: auto;
  }
  .pb1-range-card {
    min-height: 150px;
  }
}
.pb-heading-note .logic-info em {
  left: auto;
  right: 0;
  top: 100%;
  transform: translateY(8px);
  text-align: left;
}
.pb-range-head,
.pb-range-row,
.pb-number-head,
.pb-number-row,
.pb-dist-head,
.pb-dist-row {
  display: grid;
  align-items: center;
  min-height: 30px;
  border-bottom: 1px solid #e2e8f0;
}
.pb-range-head,
.pb-range-row {
  grid-template-columns: 116px 168px 110px;
}
.pb-number-head,
.pb-number-row {
  grid-template-columns: 88px 96px 112px;
}
.pb-dist-head,
.pb-dist-row {
  grid-template-columns: 166px 66px 64px;
}
.pb-range-head,
.pb-number-head,
.pb-dist-head {
  background: #284460;
}
.pb-range-head span,
.pb-number-head span,
.pb-dist-head span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}
.pb-filter-select {
  width: 18px;
  min-width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #9fb2c5;
  border-radius: 3px;
  background: #ffffff;
  color: #17212b;
  font-size: 0;
  cursor: pointer;
}
.pb-filter-select option {
  font-size: 12px;
}
.pb-range-row span,
.pb-number-row span,
.pb-dist-row span {
  min-height: 24px;
  padding: 3px 6px;
  background: color-mix(in srgb, var(--range-color, #eaf1f8) 54%, white);
  color: #17212b;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}
.pb-range-row b,
.pb-number-row b,
.pb-number-row em,
.pb-dist-row b,
.pb-dist-row em,
.pb-range-row em {
  min-height: 24px;
  padding: 2px 5px;
  color: #17212b;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}
.pb-data-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 19px;
  overflow: hidden;
  background: #ffffff;
}
.pb-data-bar i {
  position: absolute;
  inset: 2px auto 2px 0;
  width: var(--bar-width);
  background: color-mix(in srgb, var(--bar-color) 78%, white);
}
.pb-data-bar strong {
  position: relative;
  z-index: 1;
  font-weight: 800;
}
.variation-one-view {
  border: 1px solid #b8c2ce;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}
.variation-one-grid {
  display: grid;
  grid-template-columns: 620px 470px 300px 480px 780px;
  gap: 26px;
  align-items: start;
  overflow: auto;
  padding: 14px;
}
.variation-family-card,
.variation-main-table,
.variation-bucket-table,
.variation-summary-stack,
.variation-recent-stack {
  min-width: 0;
}
.variation-summary-stack {
  min-width: 480px;
}
.variation-recent-stack {
  min-width: 780px;
}
.variation-main-table,
.variation-bucket-table,
.variation-summary-stack,
.variation-recent-stack {
  margin-top: 37px;
}
.variation-family-card h4 {
  margin: 0 0 8px;
  padding: 8px 10px;
  color: #17212b;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}
.variation-summary-row,
.variation-summary-head,
.variation-window-table-head,
.variation-window-table-row {
  display: grid;
  align-items: center;
  min-height: 26px;
  border-bottom: 1px solid #e2e8f0;
}
.variation-summary-row,
.variation-summary-head {
  grid-template-columns: minmax(300px, 1fr) 86px 86px;
}
.variation-summary-row span {
  padding: 4px 8px;
  color: #17212b;
  font-size: 12px;
  white-space: nowrap;
}
.variation-summary-row b,
.variation-summary-row em,
.variation-summary-head b,
.variation-summary-head em {
  padding: 4px 6px;
  text-align: center;
  font-size: 12px;
  font-style: normal;
}
.variation-summary-head span {
  padding: 4px 8px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}
.variation-window-table {
  margin-top: 12px;
}
.variation-or-table {
  width: 250px;
  margin-top: 12px;
}
.variation-or-row {
  display: grid;
  grid-template-columns: 178px 72px;
  min-height: 25px;
  border-bottom: 1px solid #e2e8f0;
}
.variation-or-row span,
.variation-or-row b {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  color: #17212b;
  font-size: 11px;
  white-space: nowrap;
}
.variation-or-row b {
  justify-content: center;
  font-weight: 750;
}
.variation-window-table-head,
.variation-window-table-row {
  grid-template-columns: 160px 112px 86px 104px 138px;
}
.variation-window-table-head,
.variation-table-head,
.variation-summary-head,
.variation-window-title {
  background: #284460;
  color: #ffffff;
  font-weight: 850;
}
.variation-window-table-head span,
.variation-window-table-row span,
.variation-window-table-row b {
  padding: 4px 6px;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
}
.variation-window-table-row span {
  text-align: left;
}
.variation-table-head,
.variation-table-row,
.variation-bucket-row {
  display: grid;
  align-items: center;
  min-height: 27px;
  border-bottom: 1px solid #e2e8f0;
}
.variation-table-head {
  grid-template-columns: 160px 100px 104px 104px;
  font-size: 12px;
}
.variation-table-row {
  grid-template-columns: 160px 100px 104px 104px;
}
.variation-bucket-table .variation-table-head,
.variation-bucket-row {
  grid-template-columns: 136px 78px 86px;
}
.variation-table-head span,
.variation-table-head em,
.variation-table-row span,
.variation-table-row b,
.variation-bucket-row span,
.variation-bucket-row b {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 3px 6px;
  font-size: 11px;
  color: #17212b;
  white-space: nowrap;
}
.variation-table-head span {
  color: #ffffff;
}
.variation-table-head em {
  color: #ffffff;
  font-style: normal;
  font-weight: 850;
}
.variation-table-row span {
  background: #eef4fb;
  font-weight: 800;
}
.variation-table-row b,
.variation-bucket-row b {
  background: #ffffff;
  font-weight: 650;
}
.variation-recent-row b {
  background: #ffffff;
}
.variation-data-bar {
  position: relative;
  width: 100%;
  min-height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
}
.variation-data-bar i {
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: var(--bar-width);
  background: var(--bar-color);
}
.variation-data-bar strong {
  position: relative;
  z-index: 1;
  color: #0f172a;
  font-size: inherit;
  font-weight: inherit;
}
.variation-window-title {
  min-height: 27px;
  display: flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 12px;
}
.variation-window-block {
  margin-bottom: 12px;
  border: 1px solid #d8e0ea;
}
.variation-recent-heading {
  min-height: 27px;
  display: flex;
  align-items: center;
  padding: 4px 8px;
  background: #284460;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}
.variation-recent-grid {
  display: grid;
  grid-template-columns: repeat(4, 180px);
  gap: 12px;
  align-items: start;
  margin-top: 8px;
}
.variation-recent-block {
  border: 1px solid #d8e0ea;
}
.variation-recent-title {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4fb;
  color: #17212b;
  font-size: 12px;
  font-weight: 850;
}
.variation-recent-head,
.variation-recent-row {
  display: grid;
  grid-template-columns: 72px 48px 60px;
  min-height: 26px;
  border-bottom: 1px solid #e2e8f0;
}
.variation-recent-head {
  background: #284460;
  color: #ffffff;
  font-weight: 850;
}
.variation-recent-head span,
.variation-recent-row span,
.variation-recent-row b {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px 5px;
  font-size: 10px;
  white-space: nowrap;
}
.variation-recent-row span {
  background: #eef4fb;
  color: #17212b;
  font-weight: 750;
}
.or-tooltip {
  position: relative;
  cursor: help;
}
.variation-table-row b,
.variation-bucket-row b,
.variation-recent-row b {
  background: #ffffff !important;
}
.or-tooltip span {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  display: none;
  width: 170px;
  padding: 7px 9px;
  border: 1px solid #17212b;
  border-radius: 8px;
  background: #ffffff;
  color: #17212b;
  box-shadow: 0 10px 22px rgba(23, 33, 43, .16);
  font-size: 11px;
  line-height: 1.3;
  z-index: 5;
}
.or-tooltip:hover span {
  display: block;
}

/* V1-V13 premium skin: premium presentation without changing the underlying analysis. */
.variation-one-view.variation-premium-view {
  border: 1px solid #d7e1ec;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--variation-premium-accent, #bfd0e4) 42%, rgba(255, 255, 255, 0)), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 42%);
  box-shadow: 0 16px 36px rgba(23, 33, 43, .08);
}
.variation-premium-view .variation-one-grid {
  gap: 18px;
  padding: 20px;
  background: transparent;
}
.variation-premium-view .variation-family-card,
.variation-premium-view .variation-main-table,
.variation-premium-view .variation-bucket-table,
.variation-premium-view .variation-summary-stack,
.variation-premium-view .variation-recent-stack {
  border: 1px solid #dce6f0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 24px rgba(23, 33, 43, .06);
}
.variation-premium-view .variation-main-table,
.variation-premium-view .variation-bucket-table,
.variation-premium-view .variation-summary-stack,
.variation-premium-view .variation-recent-stack {
  margin-top: 0;
}
.variation-premium-view .variation-family-card {
  border-top: 4px solid var(--variation-premium-accent, #bfd0e4);
}
.variation-premium-view .variation-family-card h4 {
  margin: 0;
  padding: 12px 14px;
  background: linear-gradient(135deg, #17212b 0%, #2b4967 100%) !important;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: .01em;
}
.variation-premium-view .variation-window-table {
  padding: 0 12px 12px;
}
.variation-premium-view .variation-or-table {
  margin: 12px 12px 14px;
}
.variation-premium-view .variation-window-table-head,
.variation-premium-view .variation-table-head,
.variation-premium-view .variation-summary-head,
.variation-premium-view .variation-window-title,
.variation-premium-view .variation-recent-heading,
.variation-premium-view .variation-recent-head {
  background: linear-gradient(135deg, #17212b 0%, #284460 100%);
  color: #ffffff;
}
.variation-premium-view .variation-summary-row,
.variation-premium-view .variation-window-table-row,
.variation-premium-view .variation-table-row,
.variation-premium-view .variation-bucket-row,
.variation-premium-view .variation-recent-row,
.variation-premium-view .variation-or-row {
  border-bottom-color: #edf2f7;
}
.variation-premium-view .variation-summary-row:nth-of-type(even),
.variation-premium-view .variation-window-table-row:nth-of-type(even),
.variation-premium-view .variation-table-row:nth-child(odd),
.variation-premium-view .variation-bucket-row:nth-child(odd),
.variation-premium-view .variation-recent-row:nth-child(odd) {
  background: #fbfdff;
}
.variation-premium-view .variation-table-row span,
.variation-premium-view .variation-recent-row span,
.variation-premium-view .variation-recent-title {
  background: #f0f5fb;
  color: #1e2c3a;
}
.variation-premium-view .variation-table-row span {
  min-height: 23px;
  margin: 3px 5px;
  border-radius: 7px;
  background: linear-gradient(180deg, #f5f9fd 0%, #eaf1f8 100%);
  box-shadow: inset 0 0 0 1px rgba(139, 161, 184, .22);
}
.variation-premium-view .variation-table-row b,
.variation-premium-view .variation-bucket-row b,
.variation-premium-view .variation-recent-row b {
  background: transparent !important;
}
.variation-premium-view .variation-data-bar {
  min-height: 22px;
  border: 1px solid #e2eaf3;
  border-radius: 999px;
  background: #f3f7fb;
  box-shadow: inset 0 1px 2px rgba(23, 33, 43, .04);
}
.variation-premium-view .variation-data-bar i {
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(var(--bar-width) - 6px);
  min-width: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bar-color) 82%, #ffffff), var(--bar-color));
  box-shadow: 0 1px 4px rgba(69, 92, 115, .18);
}
.variation-premium-view .variation-data-bar strong {
  color: #0f172a;
  font-weight: 800;
}
.variation-premium-view .variation-window-block,
.variation-premium-view .variation-recent-block {
  overflow: hidden;
  border: 1px solid #dce6f0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(23, 33, 43, .04);
}
.variation-premium-view .variation-recent-grid {
  gap: 14px;
  padding: 0 12px 14px;
}
.variation-premium-view .variation-recent-heading {
  padding: 10px 12px;
}

/* ---- Variation Analysis · deeper-read insight graphs ---- */
.var-ins { margin: 26px 0 6px; padding: 20px 18px 0; border-top: 1px solid #e3e8ee; }
.var-ins-head h4 { font-size: 15px; font-weight: 800; color: #17212b; margin: 0 0 6px; }
.var-ins-head p { margin: 0 0 4px; font-size: 13px; color: #475569; line-height: 1.55; }
.var-ins-head b { color: #17212b; }
.var-ins-empty { font-size: 13px; color: #4a5662; line-height: 1.55; background: #f6f8fb; border: 1px solid #e3e8ee; border-radius: 9px; padding: 14px 16px; }
.var-ins-empty b { color: #17212b; }
.var-ins-card { background: #fff; border: 1px solid #e1e7ee; border-radius: 10px; padding: 14px 16px; margin-top: 14px; }
.var-ins-card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.var-ins-card-head h5 { margin: 0; font-size: 13px; font-weight: 800; color: #17212b; }
.var-ins-n { width: 24px; height: 24px; border-radius: 50%; background: #17212b; color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1; display: flex; align-items: center; justify-content: center; flex: none; }
.var-ins-note { margin: 9px 0 0; font-size: 12.5px; color: #4a5662; line-height: 1.55; }
.var-ins-note b { color: #17212b; }
.vi-svg { width: 100%; height: auto; display: block; }
.vi-ax { font-size: 10px; fill: var(--muted); }
.vi-axt { font-size: 10.5px; font-weight: 700; fill: #5b6b7b; }
.vi-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 2px 0 8px; font-size: 11px; color: #4a5662; }
.vi-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.vi-legend i.vi-dash { width: 14px; height: 0; border-top: 2px dashed #44546a; border-radius: 0; vertical-align: 2px; }
.vi-row { display: grid; grid-template-columns: 90px 1fr 52px; align-items: center; gap: 10px; margin-bottom: 6px; }
.vi-row-lab { font-size: 11.5px; font-weight: 700; color: #4a5662; }
.vi-track { position: relative; background: #eef2f7; border-radius: 6px; height: 16px; }
.vi-fill { height: 100%; border-radius: 6px; min-width: 3px; }
.vi-tick { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 2px dotted #44546a; opacity: .6; }
.vi-row-num { text-align: right; font-size: 12px; font-weight: 800; color: #17212b; }
.vi-rp { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.vi-gap-title, .vi-gap-none { font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.vi-gap-none { font-style: italic; }
.vi-build { margin-top: 12px; }
.vi-build-lab { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.vi-skel { display: flex; gap: 7px; }
.vi-slot { width: 46px; height: 34px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #fff; background: #eef2f7; }
.vi-slot.c0 { background: #eef2f7; color: transparent; border: 1px dashed #cbd5e1; }
.vi-slot.c1 { background: #5b86a8; }
.vi-slot.c2 { background: #2a9d8f; }
.vi-slot.c3 { background: #1f7d72; }
.vi-slot.c4 { background: #c1666b; }
.vi-slot.c5 { background: #b3503f; }
.vi-slot.c6 { background: #9a4040; }
.vi-slot.c7 { background: #7a2f2f; }
@media (max-width: 760px) { .vi-rp { grid-template-columns: 1fr; gap: 12px; } }

/* ---- Variation Analysis · which arrangement next ---- */
.var-next { margin-top: 18px; padding: 0 18px; }
.vt-panel .graph-summary div { padding: 10px 14px; }
.vt-panel .graph-summary span { font-size: 11px; }
.vt-panel .graph-summary strong { font-size: 14px; }
.vn-list { margin: 8px 0 2px; }
.vn-row { display: grid; grid-template-columns: 64px 86px 110px 1fr; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid #f0f3f7; font-size: 12.5px; }
.vn-arr { font-weight: 800; color: #17212b; text-align: center; padding: 2px 6px; border-radius: 5px; border: 1px solid rgba(23,33,43,0.06); }
.vn-seen { color: #4a5662; }
.vn-ago { color: #17212b; font-weight: 700; }
.vn-tag { font-weight: 700; }
.vn-table { width: 100%; border-collapse: collapse; margin: 10px 0 4px; font-size: 12.5px; }
.vn-table th { text-align: left; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); border-bottom: 1px solid #dde4ec; padding: 6px 8px; }
.vn-table td { padding: 7px 8px; border-bottom: 1px solid #f0f3f7; color: #2b3a3a; }
.vn-table td:first-child { font-weight: 700; color: #17212b; }
.vn-final { margin-top: 18px; background: #17212b; border-radius: 12px; padding: 18px 20px; }
.vn-final-eyebrow { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #5eaa9c; margin-bottom: 10px; }
.vn-final-intro { margin: 0 0 14px; font-size: 13.5px; color: #d2dadf; line-height: 1.6; }
.vn-final-intro b { color: #fff; }
.vn-pick-list { display: grid; gap: 10px; }
.vn-pick { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; background: #1f2a36; border: 1px solid #2c3a48; border-radius: 9px; padding: 12px 14px; }
.vn-pick-rank { width: 26px; height: 26px; border-radius: 50%; background: #2a9d8f; color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.vn-pick-arr { display: inline-block; font-size: 15px; font-weight: 800; color: #17212b; padding: 2px 10px; border-radius: 6px; }
.vn-pick > div p { margin: 6px 0 0; font-size: 12.5px; color: #c0cace; line-height: 1.5; }
.vn-pick > div p b { color: #fff; }
.vn-final-note { margin: 14px 0 0; font-size: 12px; color: #aeb9c0; line-height: 1.55; font-style: italic; }
.vn-final-note b { color: #fff; }
@media (max-width: 760px) { .vn-row { grid-template-columns: 56px 1fr; row-gap: 2px; } .vn-row .vn-tag { grid-column: 2; } }
.vt-panel { margin: 8px 0 2px; }
.vt-empty { font-size: 13px; color: #4a5662; background: #f6f8fb; border: 1px solid #e3e8ee; border-radius: 9px; padding: 12px 14px; }

/* ---- Variation Analysis - decision intelligence layer ---- */
.vintel-report {
  margin: 26px 18px 6px;
  padding: 22px;
  border: 1px solid #d7e0eb;
  border-radius: 13px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 46%);
  box-shadow: 0 10px 24px rgba(23, 33, 43, .05);
}
.vintel-hero {
  padding: 20px 22px;
  border-radius: 12px;
  background: #17212b;
  color: #ffffff;
}
.vintel-hero span,
.vintel-pick-card span,
.vintel-context-card span,
.vintel-final span {
  display: block;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.vintel-hero span {
  color: #7dd3c7;
}
.vintel-hero h4 {
  margin: 7px 0 8px;
  font-size: 24px;
  line-height: 1.15;
}
.vintel-hero p {
  max-width: 940px;
  margin: 0;
  color: #d3dde6;
  font-size: 14px;
  line-height: 1.65;
}
.vintel-depth-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
}
.vintel-depth-grid div {
  padding: 12px 13px;
  border: 1px solid #dce6f0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(23, 33, 43, .04);
}
.vintel-depth-grid span,
.vintel-depth-grid em {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.vintel-depth-grid b {
  display: block;
  margin: 5px 0 2px;
  color: #17212b;
  font-size: 22px;
  line-height: 1;
}
.vintel-exec-grid {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(210px, .8fr) minmax(300px, 1.4fr);
  gap: 14px;
  margin: 16px 0;
}
.vintel-pick-card,
.vintel-context-card,
.vintel-section {
  border: 1px solid #dde6f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(23, 33, 43, .04);
}
.vintel-pick-card {
  padding: 17px;
  border-top-width: 4px;
}
.vintel-pick-card.lead {
  border-top-color: var(--vintel-lead, #4f83c2);
}
.vintel-pick-card.cover {
  border-top-color: #5b86a8;
}
.vintel-pick-card span,
.vintel-context-card span {
  color: #64748b;
}
.vintel-pick-card b {
  display: block;
  margin: 5px 0 4px;
  color: #17212b;
  font-size: 34px;
  line-height: 1;
}
.vintel-pick-card em {
  display: block;
  color: #0f766e;
  font-size: 13px;
  font-weight: 850;
  font-style: normal;
}
.vintel-pick-card p,
.vintel-context-card p,
.vintel-note {
  margin: 10px 0 0;
  color: #4a5662;
  font-size: 13px;
  line-height: 1.55;
}
.vintel-context-card {
  padding: 17px 18px;
}
.vintel-section {
  margin-top: 14px;
  padding: 17px 18px;
}
.vintel-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.vintel-scoreboard {
  display: grid;
  gap: 8px;
}
.vintel-score-row {
  display: grid;
  grid-template-columns: 30px 84px minmax(160px, 1fr) 76px minmax(180px, .8fr);
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid #e4ebf3;
  border-radius: 9px;
  background: #fbfdff;
}
.vintel-score-row.lead {
  border-color: #9cc1df;
  background: #f3f8ff;
}
.vintel-score-row.cover {
  border-color: #b8cad9;
  background: #f7fafc;
}
.vintel-score-row > span:first-child {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}
.vintel-score-row div {
  height: 15px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}
.vintel-score-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.vintel-score-row b {
  color: #17212b;
  font-size: 13px;
}
.vintel-score-row em {
  color: #586678;
  font-size: 12px;
  font-style: normal;
}
.vintel-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 3px 9px;
  border: 1px solid rgba(23, 33, 43, .1);
  border-radius: 7px;
  background: color-mix(in srgb, var(--vintel-chip) 24%, #ffffff);
  color: #17212b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  vertical-align: middle;
}
.vintel-chip.cover {
  background: #e7eef5;
}
.vintel-table {
  width: 100%;
  margin-top: 8px;
}
.vintel-table td,
.vintel-table th {
  vertical-align: middle;
}
.vintel-table td:first-child {
  font-weight: 800;
  color: #17212b;
}
.vintel-bar-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 120px;
  min-height: 22px;
  overflow: hidden;
  border-radius: 7px;
  background: #eef3f8;
}
.vintel-bar-cell i {
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  border-radius: 6px;
}
.vintel-bar-cell strong {
  position: relative;
  z-index: 1;
  padding: 0 7px;
  color: #17212b;
  font-size: 12px;
}
.vintel-list {
  margin: 10px 0 14px;
  padding-left: 0;
  list-style: none;
}
.vintel-list li {
  position: relative;
  margin: 7px 0;
  padding-left: 22px;
  color: #4a5662;
  font-size: 13px;
  line-height: 1.45;
}
.vintel-list li::before {
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  content: "";
}
.vintel-list.support li::before {
  background: #2a9d8f;
}
.vintel-list.conflict li::before {
  background: #c1666b;
}
.vintel-section h5 {
  margin: 10px 0 0;
  color: #17212b;
  font-size: 13px;
  font-weight: 850;
}
.vintel-risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.vintel-risk-grid div {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
}
.vintel-risk-grid span,
.vintel-risk-grid em {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}
.vintel-risk-grid b {
  display: block;
  margin: 4px 0 1px;
  color: #17212b;
  font-size: 22px;
  line-height: 1;
}
.vintel-audit {
  font-size: 12px;
}
.vintel-audit .vintel-chip {
  min-width: 54px;
}
.vintel-final {
  margin-top: 16px;
  padding: 20px 22px;
  border-radius: 13px;
  background: linear-gradient(135deg, #17212b 0%, #243446 100%);
  color: #ffffff;
}
.vintel-final span {
  color: #7dd3c7;
}
.vintel-final h4 {
  margin: 7px 0 8px;
  font-size: 22px;
  line-height: 1.25;
}
.vintel-final p {
  margin: 0;
  color: #d5dee7;
  font-size: 14px;
  line-height: 1.6;
}
.vintel-final .vintel-disclaimer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: #afbbc8;
  font-size: 12.5px;
  font-style: italic;
}
.vintel-final .vintel-chip {
  background: #ffffff;
}
.v14-report {
  border-color: #d0a617;
  background: linear-gradient(180deg, #fffdf6 0%, #ffffff 42%);
}
.v14-hero {
  background: linear-gradient(135deg, #17212b 0%, #243446 64%, #3b2f0d 100%);
}
.v14-exec-grid .vintel-pick-card strong {
  display: block;
  margin: 4px 0 6px;
  color: #334155;
  font-size: 20px;
  line-height: 1;
}
.v14-seg-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 3px 9px;
  border: 1px solid rgba(23, 33, 43, .10);
  border-radius: 7px;
  background: color-mix(in srgb, var(--v14-seg) 58%, #ffffff);
  color: #17212b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  vertical-align: middle;
}
.v14-scoreboard {
  display: grid;
  gap: 8px;
}
.v14-score-row {
  display: grid;
  grid-template-columns: 30px 82px 82px 58px minmax(150px, 1fr) 76px minmax(190px, .8fr);
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid #e4ebf3;
  border-radius: 9px;
  background: #fbfdff;
}
.v14-score-row.lead {
  border-color: #d0a617;
  background: #fffaf0;
}
.v14-score-row.cover {
  border-color: #b8cad9;
  background: #f7fafc;
}
.v14-score-row > span:first-child,
.v14-score-row small {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}
.v14-score-row div {
  height: 15px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f7;
}
.v14-score-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.v14-score-row b {
  color: #17212b;
  font-size: 13px;
}
.v14-score-row em {
  color: #586678;
  font-size: 12px;
  font-style: normal;
}
.v14-table td,
.v14-audit td {
  font-size: 12.5px;
}
@media (max-width: 980px) {
  .vintel-exec-grid,
  .vintel-two-col {
    grid-template-columns: 1fr;
  }
  .vintel-depth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vintel-score-row {
    grid-template-columns: 26px 72px minmax(120px, 1fr) 66px;
  }
  .vintel-score-row em {
    grid-column: 3 / -1;
  }
  .v14-score-row {
    grid-template-columns: 28px 76px 76px 52px minmax(140px, 1fr) 70px;
  }
  .v14-score-row em {
    grid-column: 5 / -1;
  }
}
@media (max-width: 640px) {
  .vintel-report {
    margin-left: 0;
    margin-right: 0;
    padding: 14px;
  }
  .vintel-score-row {
    grid-template-columns: 24px 70px 1fr;
  }
  .vintel-score-row b,
  .vintel-score-row em {
    grid-column: 2 / -1;
  }
  .vintel-risk-grid {
    grid-template-columns: 1fr;
  }
  .vintel-depth-grid {
    grid-template-columns: 1fr;
  }
  .v14-score-row {
    grid-template-columns: 24px 70px 70px 1fr;
  }
  .v14-score-row div,
  .v14-score-row b,
  .v14-score-row em {
    grid-column: 2 / -1;
  }
}

.segment-analysis-title {
  background: #1D2330;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 850;
  padding: 8px 12px;
  text-transform: uppercase;
}
.segment-analysis-scroll {
  overflow: auto;
}
.segment-analysis-grid {
  min-width: 1160px;
  display: grid;
  grid-template-columns: minmax(470px, 1fr) 150px minmax(470px, 1fr);
  align-items: start;
  background: #ffffff;
}
.seg-left,
.seg-right {
  display: grid;
  align-content: start;
}
.seg-header,
.seg-row {
  display: grid;
  min-height: 30px;
  border-bottom: 1px solid #dbe4ef;
}
.seg-header {
  background: #284460;
  color: #ffffff;
  font-weight: 850;
  font-size: 13px;
}
.seg-header.left,
.seg-row {
  grid-template-columns: minmax(190px, 1fr) 92px 90px 90px;
}
.seg-header.left {
  grid-template-columns: 32px minmax(158px, 1fr) 92px 90px 90px;
}
.seg-header.right,
.seg-right .seg-row {
  grid-template-columns: 90px 90px 92px minmax(158px, 1fr) 32px;
}
.seg-header span,
.seg-row > div {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 4px 6px;
  border-right: 1px solid #dbe4ef;
}
.seg-header span {
  justify-content: center;
  border-right-color: #8fa3b8;
}
.seg-condition {
  gap: 6px;
  background: #eef4fb;
  font-size: 12px;
}
.seg-condition.right {
  justify-content: space-between;
}
.seg-condition strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seg-indicator {
  flex: 0 0 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: #e8eef5;
  border: 1px solid #c2cedd;
  color: #2f4a68;
  font-weight: 800;
}
.seg-pattern {
  justify-content: center;
  font-weight: 650;
  font-size: 10px;
}
.seg-value {
  position: relative;
  justify-content: center;
  overflow: hidden;
}
.seg-value .seg-bar {
  position: absolute;
  left: 4px;
  top: 5px;
  bottom: 5px;
  border-radius: 2px;
  border: 1px solid rgba(23, 33, 43, 0.12);
}
.seg-value.occurrence .seg-bar {
  background: #aebfd4;
}
.seg-value.probability .seg-bar {
  background: #5b86a8;
}
.seg-value b {
  position: relative;
  z-index: 3;
  font-weight: 500;
  font-size: 10px;
}
.seg-block {
  display: grid;
  align-content: start;
  margin-bottom: 14px;
}
.seg-graphs {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 20px 24px 24px;
}
.seg-graph-head h4 { margin: 0 0 5px; font-size: 16px; color: #17212b; }
.seg-graph-head p { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 760px; }
.seg-graph-head p b { color: #17212b; }
.seg-graph-body { display: grid; grid-template-columns: 232px 1fr; gap: 36px; align-items: start; }
.seg-donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.seg-donut { width: 200px; height: 200px; }
.seg-donut-value { font-size: 30px; font-weight: 850; fill: #17212b; }
.seg-donut-label { font-size: 12px; font-weight: 700; fill: var(--muted); }
.seg-donut-legend { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: #334155; font-weight: 600; }
.seg-donut-legend span { display: flex; align-items: center; gap: 8px; }
.seg-donut-legend i { width: 12px; height: 12px; border-radius: 3px; }
.seg-bars-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 14px; }
.seg-bar-row { display: grid; grid-template-columns: 56px 1fr 70px; align-items: center; gap: 12px; margin-bottom: 9px; }
.seg-bar-key { font-size: 11px; font-weight: 700; text-align: center; padding: 3px 0; border-radius: 4px; color: #17212b; border: 1px solid rgba(23, 33, 43, 0.08); }
.seg-bar-track { background: #eef2f7; border-radius: 5px; height: 18px; }
.seg-bar-fill { height: 100%; border-radius: 5px; min-width: 3px; }
.seg-bar-num { font-size: 12px; font-weight: 750; color: #17212b; text-align: right; line-height: 1.1; }
.seg-bar-num i { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.seg-tier-block { width: 100%; margin-top: 4px; }
.seg-tier-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; text-align: center; }
.seg-tier-bar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(23, 33, 43, 0.10); }
.seg-tier-bar span { display: flex; align-items: center; justify-content: center; color: #ffffff; font-size: 11px; font-weight: 800; min-width: 2px; }
.seg-tier-legend { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: 12px; color: #334155; font-weight: 600; }
.seg-tier-legend span { display: flex; align-items: center; gap: 8px; }
.seg-tier-legend i { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; }
@media (max-width: 760px) {
  .seg-graph-body { grid-template-columns: 1fr; }
}
.seg-decision { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; }
.seg-decision-body { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.seg-dec-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 14px; }
.seg-dec-row { display: grid; grid-template-columns: 80px 1fr 52px; align-items: center; gap: 12px; margin-bottom: 9px; }
.seg-dec-label { font-size: 12px; font-weight: 700; color: #17212b; }
.seg-dec-track { background: #eef2f7; border-radius: 5px; height: 18px; }
.seg-dec-fill { height: 100%; border-radius: 5px; background: #aebfd4; min-width: 3px; }
.seg-dec-fill.hi { background: #2a9d8f; }
.seg-dec-num { font-size: 12px; font-weight: 750; color: #17212b; text-align: right; }
.seg-dec-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.seg-dec-note b { color: #17212b; }
.seg-dec-takeaway { margin-top: 22px; background: #f1f6f5; border: 1px solid #d7e7e3; border-left: 3px solid #2a9d8f; border-radius: 8px; padding: 14px 16px; }
.seg-dec-takeaway strong { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #2a7d72; margin-bottom: 6px; }
.seg-dec-takeaway p { margin: 0; font-size: 13px; color: #2b3a3a; line-height: 1.55; }
.seg-dec-takeaway b { color: #17212b; }
@media (max-width: 760px) { .seg-decision-body { grid-template-columns: 1fr; } }

/* ---- Segment Analysis 1 · conditions deep-dive (before the bottom line) ---- */
.seg-cond-deep { margin-top: 30px; padding-top: 22px; border-top: 1px solid #e3e8ee; }
.seg-cond-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 10px; }
.seg-cond-card { background: #fff; border: 1px solid #e1e7ee; border-radius: 9px; padding: 13px 15px; }
.seg-cond-card-head { display: flex; align-items: center; gap: 8px; }
.seg-cond-card-head b { font-size: 14px; color: #17212b; }
.seg-cond-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.seg-cond-badge { margin-left: auto; font-size: 10.5px; font-weight: 700; color: #5b6b7b; background: #eef2f7; border-radius: 20px; padding: 2px 9px; }
.seg-cond-mean { font-size: 11.5px; color: var(--muted); line-height: 1.45; margin: 5px 0 8px; }
.seg-cond-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.seg-cond-chip { font-size: 11px; font-weight: 800; color: #17212b; padding: 2px 7px; border-radius: 5px; border: 1px solid rgba(23,33,43,0.08); }
.seg-cond-track { position: relative; background: #eef2f7; border-radius: 6px; height: 16px; }
.seg-cond-fill { height: 100%; border-radius: 6px; min-width: 3px; }
.seg-cond-tick { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 2px dotted #44546a; opacity: .6; }
.seg-cond-foot { margin-top: 7px; font-size: 11.5px; color: #4a5662; }
.seg-cond-foot b { color: #17212b; font-weight: 800; }
.seg-cond-legend { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); font-style: italic; margin: 2px 0 18px; }
.seg-cond-tickkey { display: inline-block; width: 0; height: 13px; border-left: 2px dotted #44546a; }
.seg-cond-relate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 28px; align-items: center; margin: 6px 0 6px; }
.seg-cond-relate-chart { min-width: 0; }
.seg-sc { width: 100%; height: auto; display: block; }
.seg-sc-tick { font-size: 10px; fill: var(--muted); }
.seg-sc-lab { font-size: 10px; font-weight: 700; fill: #44546a; }
.seg-sc-axis { font-size: 10.5px; font-weight: 700; fill: #5b6b7b; }
.seg-cond-relate-read p { margin: 0 0 11px; font-size: 13px; color: #2b3a3a; line-height: 1.55; }
.seg-cond-relate-read b { color: #17212b; }
.seg-cond-notes { margin-top: 14px; display: grid; gap: 11px; }
.seg-cond-notes p { margin: 0; font-size: 13px; color: #2b3a3a; line-height: 1.55; }
.seg-cond-notes b { color: #17212b; }
@media (max-width: 760px) { .seg-cond-grid { grid-template-columns: 1fr; } .seg-cond-relate { grid-template-columns: 1fr; } }

.seg3-graph-body { display: grid; grid-template-columns: minmax(0, 540px) 1fr; gap: 34px; align-items: start; }
.seg3-heat-grid { display: grid; gap: 2px; }
.seg3-heat-corner { font-size: 9px; font-weight: 700; color: var(--muted); display: flex; align-items: flex-end; }
.seg3-heat-colhead { font-size: 8px; font-weight: 700; color: #475569; text-align: center; align-self: end; padding-bottom: 3px; }
.seg3-heat-row-label { font-size: 9.5px; font-weight: 800; color: #17212b; border: 1px solid rgba(23, 33, 43, 0.10); border-radius: 4px; cursor: pointer; padding: 0; height: 26px; }
.seg3-heat-row-label.sel { outline: 2px solid #17212b; outline-offset: -1px; }
.seg3-heat-cell { height: 26px; border-radius: 3px; }
.seg3-heat-cell.rowsel { box-shadow: inset 0 0 0 1px rgba(23, 33, 43, 0.18); }
.seg3-heat-scale { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 11px; color: var(--muted); font-weight: 600; }
.seg3-heat-scale i { flex: 1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(42, 157, 143, 0.14), rgba(42, 157, 143, 0.96)); }
.seg3-side-wrap { display: flex; flex-direction: column; gap: 26px; }
.seg3-drill-title { font-size: 13px; font-weight: 700; color: #17212b; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.5; }
.seg3-top-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 14px; }
.seg3-chip { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; color: #17212b; border: 1px solid rgba(23, 33, 43, 0.08); }
.seg3-bar-row { display: grid; grid-template-columns: 52px 1fr 60px; align-items: center; gap: 10px; margin-bottom: 8px; }
.seg3-bar-key { font-size: 11px; font-weight: 700; text-align: center; padding: 3px 0; border-radius: 4px; color: #17212b; border: 1px solid rgba(23, 33, 43, 0.08); }
.seg3-bar-track { background: #eef2f7; border-radius: 5px; height: 16px; }
.seg3-bar-fill { height: 100%; border-radius: 5px; background: #2a9d8f; min-width: 3px; }
.seg3-bar-num { font-size: 12px; font-weight: 750; color: #17212b; text-align: right; line-height: 1.1; }
.seg3-bar-num i { display: block; font-style: normal; font-size: 10px; color: var(--muted); font-weight: 600; }
.seg3-seq-row { display: grid; grid-template-columns: auto auto auto 1fr auto; align-items: center; gap: 8px; margin-bottom: 8px; }
.seg3-seq-arrow { color: var(--muted); font-weight: 800; }
.seg3-empty { color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .seg3-graph-body { grid-template-columns: 1fr; } }
.seg3-trend { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 22px; }
.seg3-trend-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.seg3-trend-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: #334155; }
.seg3-trend-legend span { display: flex; align-items: center; gap: 7px; }
.seg3-trend-legend i { width: 16px; height: 3px; border-radius: 2px; }
.seg3-trend-svg { width: 100%; height: auto; display: block; }
.seg-trend-axis { font-size: 10px; fill: var(--muted); font-weight: 600; }
.seg3-trend-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.seg3-trend-note b { color: #17212b; }
.seg3-trend-block { margin-top: 20px; }
.seg3-trend-blockhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.seg3-trend-subtitle { font-size: 12.5px; font-weight: 800; color: #17212b; }
.seg3-trend-legend b { color: #17212b; font-weight: 800; }

/* ---- Segment Analysis 2 · signal views (after the full-history note) ---- */
.seg3-signals { margin-top: 26px; padding-top: 22px; border-top: 1px solid #e3e8ee; }
.seg3-signals-body { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; margin-top: 4px; }
.seg3-sig-card { min-width: 0; }
.seg3-sig-sub { margin: 0 0 12px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.seg3-sig-key { font-weight: 800; }
.seg3-sig-key.up { color: #2a9d8f; }
.seg3-sig-key.down { color: #8a97a6; }
.seg3-sig-row { display: grid; grid-template-columns: 132px minmax(0, 1fr) 64px 40px; align-items: center; gap: 9px; margin-bottom: 7px; }
.seg3-sig-pair { display: flex; align-items: center; gap: 3px; }
.seg3-sig-pair.single { justify-content: flex-start; }
.seg3-sig-track { position: relative; background: #eef2f7; border-radius: 6px; height: 16px; }
.seg3-sig-fill { height: 100%; border-radius: 6px; min-width: 3px; }
.seg3-sig-fill.up { background: #2a9d8f; }
.seg3-sig-fill.down { background: #b7c2d0; }
.seg3-sig-tick { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 2px dotted #44546a; opacity: .6; }
.seg3-sig-num { text-align: right; line-height: 1.1; }
.seg3-sig-num b { font-size: 12.5px; font-weight: 800; color: #17212b; }
.seg3-sig-num i { display: block; font-style: normal; font-size: 9.5px; color: var(--muted); }
.seg3-sig-n { text-align: right; font-size: 10.5px; color: var(--muted); }
.seg3-sig-foot { margin: 18px 0 0; font-size: 12.5px; color: #4a5662; line-height: 1.55; background: #f6f8fb; border: 1px solid #e3e8ee; border-radius: 8px; padding: 12px 14px; }
.seg3-sig-foot b { color: #17212b; }
@media (max-width: 760px) { .seg3-signals-body { grid-template-columns: 1fr; } }
.trajectory-support { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e3e8ee; }
.trajectory-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 22px; }
.trajectory-card { border: 1px solid #dbe3ec; border-radius: 8px; background: #f8fbfd; padding: 13px 14px; min-width: 0; }
.trajectory-card span { display: block; color: #66758a; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.trajectory-card strong { display: block; color: #17212b; font-size: 24px; line-height: 1; margin-bottom: 6px; }
.trajectory-card i { display: block; color: #66758a; font-style: normal; font-size: 12px; line-height: 1.35; }
.trajectory-decision-grid { display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(360px, .9fr); gap: 18px; margin: 0 0 24px; }
.trajectory-decision-panel { border: 1px solid #dbe3ec; border-radius: 8px; background: #fff; padding: 16px; min-width: 0; }
.trajectory-mini-note { margin: -4px 0 14px; color: #5b6878; font-size: 12.5px; line-height: 1.5; }
.trajectory-score-row { display: grid; grid-template-columns: 58px minmax(160px, 1fr) 54px minmax(116px, .8fr); gap: 10px; align-items: center; margin-bottom: 8px; }
.trajectory-score-track, .trajectory-direction-track { height: 16px; border-radius: 6px; background: #eef2f7; overflow: hidden; }
.trajectory-score-fill { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2a9d8f, #2563eb); min-width: 3px; }
.trajectory-score-num { text-align: right; color: #17212b; font-size: 12px; font-weight: 850; }
.trajectory-action { color: #4a5662; font-size: 11.5px; font-weight: 750; }
.trajectory-direction-row { display: grid; grid-template-columns: 172px minmax(120px, 1fr) 54px; gap: 10px; align-items: center; margin-bottom: 10px; }
.trajectory-direction-row span { color: #334155; font-size: 12px; font-weight: 750; }
.trajectory-direction-track i { display: block; height: 100%; border-radius: 6px; min-width: 3px; }
.trajectory-direction-row b { text-align: right; color: #17212b; font-size: 12px; }
.trajectory-support-grid { grid-template-columns: minmax(360px, .92fr) minmax(520px, 1.25fr); }
.trajectory-follow-row { display: grid; grid-template-columns: 58px minmax(140px, 1fr) 70px minmax(140px, 1.1fr); gap: 10px; align-items: center; margin-bottom: 8px; }
.trajectory-fill { background: #2563eb; }
.trajectory-read { color: #4a5662; font-size: 11.5px; line-height: 1.25; }
.trajectory-table td span { color: #66758a; font-size: 10.5px; }
.trajectory-two-step { display: grid; grid-template-columns: minmax(380px, .9fr) minmax(360px, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.trajectory-verdict { border: 1px solid #cfe4df; border-radius: 8px; background: #f4fbf9; padding: 16px 18px; color: #314045; }
.trajectory-verdict strong { display: block; color: #0f766e; font-size: 15px; margin-bottom: 9px; text-transform: uppercase; letter-spacing: .04em; }
.trajectory-verdict p { margin: 0 0 10px; font-size: 13px; line-height: 1.55; }
.trajectory-verdict p:last-child { margin-bottom: 0; }
.s3-depth { margin-top: 30px; padding-top: 24px; border-top: 1px solid #dfe6ee; }
.s3-depth-verdict { border: 1px solid #b8d8d1; border-radius: 8px; background: linear-gradient(180deg, #f4fbf9, #ffffff); padding: 16px 18px; margin: 16px 0 20px; }
.s3-depth-verdict span { display: block; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: #0f766e; margin-bottom: 8px; }
.s3-depth-verdict h4 { margin: 0 0 8px; color: #17212b; font-size: 18px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.s3-depth-verdict p { margin: 0; color: #445466; font-size: 13px; line-height: 1.55; }
.s3-depth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.s3-depth-card { border: 1px solid #dbe3ec; border-radius: 8px; background: #fff; padding: 16px; min-width: 0; }
.s3-depth-card.wide { grid-column: 1 / -1; }
.s3-depth-card h5 { margin: 0 0 7px; color: #17212b; font-size: 15px; line-height: 1.25; }
.s3-depth-card p { margin: 0 0 13px; color: #5b6878; font-size: 12.5px; line-height: 1.5; }
.s3-depth-bar-row { display: grid; grid-template-columns: 58px minmax(180px, 1fr) 62px minmax(170px, .9fr); gap: 10px; align-items: center; margin-bottom: 8px; }
.s3-depth-track, .s3-depth-minirow div, .s3-depth-drift-track, .s3-depth-score { height: 16px; border-radius: 6px; background: #eef2f7; overflow: hidden; }
.s3-depth-track i, .s3-depth-minirow i, .s3-depth-drift-track i, .s3-depth-score i { display: block; height: 100%; min-width: 3px; border-radius: 6px; background: #2a9d8f; }
.s3-depth-bar-row b { color: #17212b; font-size: 12px; text-align: right; }
.s3-depth-bar-row span:last-child { color: #566473; font-size: 11.5px; line-height: 1.25; }
.s3-depth-minirow { display: grid; grid-template-columns: 172px minmax(110px, 1fr) 58px; align-items: center; gap: 10px; margin-bottom: 9px; }
.s3-depth-minirow span { color: #334155; font-size: 12px; font-weight: 750; }
.s3-depth-minirow b { text-align: right; color: #17212b; font-size: 12px; }
.s3-depth-divider { height: 1px; background: #e3e8ee; margin: 13px 0; }
.s3-depth-pair { display: grid; gap: 7px; margin-bottom: 12px; }
.s3-depth-drift-row { display: grid; grid-template-columns: 58px minmax(120px, 1fr) 58px; gap: 10px; align-items: center; }
.s3-depth-drift-track i.pos { background: #2a9d8f; }
.s3-depth-drift-track i.neg { background: #d1495b; }
.s3-depth-drift-row b { color: #17212b; font-size: 12px; text-align: right; }
.s3-depth-statline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.s3-depth-statline div { border: 1px solid #e0e7ef; border-radius: 8px; background: #f8fbfd; padding: 12px; }
.s3-depth-statline b { display: block; color: #17212b; font-size: 20px; line-height: 1; margin-bottom: 6px; }
.s3-depth-statline span { display: block; color: #66758a; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
.s3-depth-table td:nth-child(3) { min-width: 120px; }
.s3-depth-table td:nth-child(3) b { display: block; margin-top: 3px; color: #17212b; font-size: 11px; }
@media (max-width: 980px) {
  .trajectory-card-grid, .trajectory-decision-grid, .trajectory-support-grid, .trajectory-two-step, .s3-depth-grid, .s3-depth-statline { grid-template-columns: 1fr; }
  .trajectory-follow-row { grid-template-columns: 58px minmax(120px, 1fr) 66px; }
  .trajectory-read { grid-column: 2 / -1; }
  .s3-depth-card.wide { grid-column: auto; }
  .s3-depth-bar-row { grid-template-columns: 58px minmax(120px, 1fr) 58px; }
  .s3-depth-bar-row span:last-child { grid-column: 2 / -1; }
}

.seg-center {
  min-height: 100%;
  min-height: 640px;
  position: relative;
  border-left: 1px solid #e6edf5;
  border-right: 1px solid #e6edf5;
  background: #f8fafc;
}
.seg-card-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.seg-card-wrap.major { top: 123px; }
.seg-card-wrap.minor { top: 383px; }
.seg-card-wrap:hover { z-index: 20; }
.seg-center-card {
  min-width: 82px;
  padding: 5px 10px;
  text-align: center;
  color: #ffffff;
  font-weight: 850;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid rgba(23, 33, 43, 0.22);
  box-shadow: 0 1px 3px rgba(23, 33, 43, 0.12);
  cursor: default;
  transition: filter .15s ease;
}
.seg-card-wrap:hover .seg-center-card { filter: brightness(1.06); }
.seg-center-card.major { background: #2a9d8f; color: #ffffff; }
.seg-center-card.minor { background: #284460; }
.seg-center-note {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 232px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(23, 33, 43, 0.18);
  padding: 12px 14px;
  z-index: 30;
  text-align: left;
}
.seg-card-wrap:hover .seg-center-note { display: block; }
.seg-center-note strong { display: block; font-size: 12.5px; color: #17212b; margin-bottom: 6px; }
.seg-center-note p { margin: 0; font-size: 12px; color: #475569; line-height: 1.5; font-weight: 400; }
.seg-info-button {
  position: absolute;
  left: calc(50% + 48px);
  z-index: 3;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #17212b;
  border-radius: 50%;
  background: #ffffff;
  color: #17212b;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}
.seg-info-button:hover {
  background: #eef4fb;
}
.seg-info-button.major-info {
  top: 127px;
}
.seg-info-button.minor-info {
  top: 387px;
}
.segment-summary-note {
  position: absolute;
  left: 50%;
  top: 330px;
  transform: translateX(-50%);
  z-index: 5;
  width: 230px;
  padding: 14px 16px;
  border: 2px solid #17212b;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(23, 33, 43, .16);
  color: #17212b;
  text-align: center;
}
.segment-summary-note[hidden] {
  display: none;
}
.segment-summary-note strong {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}
.segment-summary-note p {
  margin: 5px 0;
  font-size: 11px;
  line-height: 1.35;
}
.segment-note-close {
  position: absolute;
  top: 6px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #17212b;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.excel-sheet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  /* Contain the table's sticky z-indexes in their own layer so the dark header
     and row-number gutter slide BEHIND the sticky "Engine" title bar
     (z-index 20) instead of poking over it while page-scrolling. */
  position: relative;
  z-index: 0;
}

.excel-sheet-layout.with-reference-panel {
  grid-template-columns: minmax(0, 1fr) 190px;
}
.excel-sheet-shell {
  display: grid;
  grid-template-columns: 46px max-content;
  grid-template-rows: 28px max-content;
  max-width: 100%;
  max-height: calc(100vh - 260px);
  min-height: 430px;
  overflow: auto;
  border: 1px solid #b8c2ce;
  background: white;
  border-radius: 6px;
}
.excel-reference-panel {
  position: sticky;
  top: 76px;
  z-index: 8;
  background: white;
  border: 1px solid #b8c2ce;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: -2px 0 0 rgba(23, 33, 43, .08);
}
.reference-col-headers {
  display: grid;
  grid-template-columns: 112px 78px;
}
.reference-col-headers div {
  height: 28px;
  display: grid;
  place-items: center;
  background: #e9eef3;
  color: #3f4d5f;
  font-size: 12px;
  font-weight: 700;
  border-right: 1px solid #c8d1dc;
  border-bottom: 1px solid #c8d1dc;
}
.reference-grid {
  display: grid;
  grid-template-columns: 112px 78px;
  grid-auto-rows: 30px;
}
.reference-grid .excel-cell {
  width: auto;
}
.excel-corner {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 40;
  background: #e9eef3;
  border-right: 1px solid #c8d1dc;
  border-bottom: 1px solid #c8d1dc;
}
.excel-col-headers {
  position: sticky;
  top: 0;
  z-index: 10;
  grid-column: 2;
  grid-row: 1;
  display: grid;
}
.excel-col-headers div,
.sticky-col-headers div {
  height: 28px;
  display: grid;
  place-items: center;
  background: #e9eef3;
  color: #3f4d5f;
  font-size: 12px;
  font-weight: 700;
  border-right: 1px solid #c8d1dc;
  border-bottom: 1px solid #c8d1dc;
}
.excel-col-headers div.sticky-helper-col,
.sticky-col-headers div.sticky-helper-col {
  position: sticky;
  z-index: 12;
}
.excel-col-headers div.separator-col,
.sticky-col-headers div.separator-col {
  background: white;
  color: transparent;
  border-right: 0;
  border-bottom: 0;
}
.excel-col-headers div.after-separator-col,
.sticky-col-headers div.after-separator-col {
  border-left: 1px solid #c8d1dc;
}
.sticky-col-headers {
  position: sticky;
  top: 0;
  z-index: 20;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  pointer-events: none;
}
.frozen-col-headers {
  position: sticky;
  top: 0;
  left: 46px;
  z-index: 30;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  pointer-events: none;
}
.frozen-col-headers div {
  height: 28px;
  display: grid;
  place-items: center;
  background: #e9eef3;
  color: #3f4d5f;
  font-size: 12px;
  font-weight: 700;
  border-right: 1px solid #c8d1dc;
  border-bottom: 1px solid #c8d1dc;
}
.excel-body {
  display: contents;
}
.excel-row-headers {
  position: sticky;
  left: 0;
  z-index: 16;
  grid-column: 1;
  grid-row: 2;
}
.excel-row-headers div {
  height: 30px;
  display: grid;
  place-items: center;
  background: #e9eef3;
  color: #3f4d5f;
  font-size: 12px;
  font-weight: 700;
  border-right: 1px solid #c8d1dc;
  border-bottom: 1px solid #d8dee7;
}
.excel-grid {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-auto-rows: 30px;
  align-items: stretch;
  position: relative;
}
.segment-analysis-one-shell .excel-grid {
  grid-auto-rows: 26px;
}
.segment-analysis-one-shell .excel-row-headers div {
  height: 26px;
}
.segment-analysis-one-shell .excel-cell {
  padding: 3px 6px;
  font-size: 11px;
}
.excel-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 4px 7px;
  border-right: 1px solid #d8dee7;
  border-bottom: 1px solid #d8dee7;
  color: #17212b;
  background: white;
  font-size: 12px;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.excel-cell.sticky-helper-col {
  position: sticky;
  z-index: 9;
}
.excel-cell.sticky-helper-col.sticky-sheet-header {
  z-index: 14;
}
.excel-cell.sticky-reference-cell {
  position: sticky;
  z-index: 5;
  box-shadow: 0 1px 0 #b8c2ce;
}
.excel-cell.no-inner-border {
  border-right-color: #1D2330;
  border-left-color: #1D2330;
}
.excel-cell.no-border {
  border-right-color: transparent;
  border-bottom-color: transparent;
}
.group-analysis-shell .excel-col-headers div,
.group-analysis-shell .sticky-col-headers div,
.group-analysis-shell .frozen-col-headers div,
.group-analysis-shell .excel-row-headers div,
.group-analysis-shell .excel-corner {
  border-right-color: transparent;
  border-bottom-color: transparent;
}
.excel-cell.no-grid,
.excel-cell.separator-col {
  background: white !important;
  color: transparent !important;
  border-right: 0;
  border-bottom: 0;
  box-shadow: none;
}
.excel-cell.after-separator-col {
  border-left: 1px solid #d8dee7;
}

/* Engine — borderless (no grid lines) */
.source-data-sheet .excel-cell { border-color: transparent !important; }
.source-data-sheet .excel-cell.after-separator-col { border-left-color: transparent !important; }
.source-data-sheet .excel-cell.sticky-reference-cell { box-shadow: none !important; }
.source-data-sheet .excel-row-headers div { border-color: transparent !important; }
.source-data-sheet .excel-corner { border-color: transparent !important; }

/* Engine — professional polish */
.source-data-sheet .pb-circle { position: relative; z-index: 6; width: 22px; height: 22px; flex: 0 0 auto; box-sizing: border-box; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #00B0F0; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1; }
.source-data-sheet .pb-circle,
.source-data-sheet .num-repeat-ring { cursor: pointer; }
.source-data-sheet .pb-circle:hover,
.source-data-sheet .num-repeat-ring:hover { filter: brightness(0.95); }
.source-data-sheet .excel-cell:has(.pb-circle) { padding-left: 0; padding-right: 0; overflow: visible; }
/* The ring background MUST stay transparent so the faint relationship lines
   (drawn in an SVG above the frozen number cells) read cleanly between circles. */
.source-data-sheet .num-repeat-ring { width: 22px; height: 22px; flex: 0 0 auto; box-sizing: border-box; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid rgba(23,33,43,0.55); background: transparent; font-size: 10.5px; font-weight: 700; line-height: 1; }
.source-data-sheet .num-repeat-ring.num-repeat-blue { border-color: #2563eb; }
.source-data-sheet .num-repeat-ring.num-repeat-green { border-color: #16a34a; }
.source-data-sheet .num-repeat-ring.num-repeat-red { border-color: #dc2626; }
.source-data-sheet .excel-cell:has(.num-repeat-ring) { padding-left: 0; padding-right: 0; overflow: visible; }
/* Powerball-match number that is also part of a run: filled pb circle PLUS a tier
   outline ring (box-shadow follows the circle's border-radius). */
.source-data-sheet .pb-circle.pb-ring { box-shadow: 0 0 0 1.5px rgba(23,33,43,0.7); }
.source-data-sheet .pb-circle.pb-ring.num-repeat-blue { box-shadow: 0 0 0 1.5px #2563eb; }
.source-data-sheet .pb-circle.pb-ring.num-repeat-green { box-shadow: 0 0 0 1.5px #16a34a; }
.source-data-sheet .pb-circle.pb-ring.num-repeat-red { box-shadow: 0 0 0 1.5px #dc2626; }
/* Default mode: relationship circles vanish and their numbers are NOT bold (the
   Powerball-match filled circle stays as the only highlight). */
.source-data-sheet.circles-hidden .num-repeat-ring { border-color: transparent; background: transparent; font-weight: 400; }
.source-data-sheet.circles-hidden .pb-circle.pb-ring { box-shadow: none; }
.source-data-sheet.circles-hidden .num-repeat-ring,
.source-data-sheet.circles-hidden .pb-circle.pb-ring { pointer-events: none; }
.source-data-sheet.circles-hidden .pb-match,
.source-data-sheet.circles-hidden .pb-match .pb-circle.pb-ring,
.source-data-sheet.circles-hidden .pb-match .num-repeat-ring { pointer-events: auto; }
/* Quick-nav buttons (SD/S/V/N/P/L-Tabs + Taskpad), centred in the header.
   When NOT selected they match the "Circles" button: white fill, light-grey
   border, dark bold text. flex:1 keeps them centred between the heading group
   and the right-hand Taskpad button. */
.worksheet-quicknav { display: flex; gap: 6px; justify-content: center; flex: 1 1 auto; min-width: 0; }
.worksheet-tab.quicknav-tab { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 13px; font-weight: 800; }
/* No hover highlight — only the SELECTED (active) group button is highlighted
   (green border + green text), exactly as before. */
.worksheet-tab.quicknav-tab.active { background: #fff; color: var(--accent); border-color: var(--accent); }
/* Intel-styled quick-nav button (e.g. Conclusion): restore the gold gradient
   the plain .quicknav-tab background would otherwise flatten. */
.worksheet-tab.quicknav-tab.intel-master-tab,
.worksheet-tab.quicknav-tab.intel-master-tab.active {
  border: 1.5px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #8a6a09 0%, #d4af37 22%, #fff2a8 43%, #b8860b 64%, #f6d86b 82%, #7a5a00 100%) border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 243, 176, .65), 0 1px 4px rgba(138, 106, 9, .16);
  padding: 6px 15px;
}
.worksheet-tab.quicknav-tab.taskpad-intel-tab {
  position: relative;
  width: 74px;
  min-height: 44px;
  padding: 5px 7px 4px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  overflow: hidden;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #8a6a09 0%, #d4af37 22%, #fff2a8 43%, #b8860b 64%, #f6d86b 82%, #7a5a00 100%) border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 243, 176, .65), 0 1px 4px rgba(138, 106, 9, .16);
}
/* Taskpad is a Prime feature: it reuses the aligned intel-master-tab layout
   (so it lines up with the Conclusion button) but wears the blue Prime metallic
   treatment instead of gold. */
.worksheet-tab.quicknav-tab.intel-master-tab.taskpad-prime-btn {
  background:
    linear-gradient(#eef6fb, #eef6fb) padding-box,
    linear-gradient(135deg, #1d4ed8 0%, #7dd3fc 22%, #eef6fb 45%, #94a3b8 66%, #cbd5e1 83%, #1e3a8a 100%) border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 1px 4px rgba(29, 78, 216, .12);
}
.worksheet-tab.quicknav-tab.taskpad-prime-btn .intel-master-main,
.worksheet-tab.quicknav-tab.taskpad-prime-btn.active .intel-master-main { color: #17212b; }
.worksheet-tab.quicknav-tab.taskpad-prime-btn .intel-master-label,
.worksheet-tab.quicknav-tab.taskpad-prime-btn.active .intel-master-label { color: #1d4ed8; }
.worksheet-tab.quicknav-tab.taskpad-intel-tab::after {
  content: "";
  position: absolute;
  inset: 2px auto 2px -28px;
  width: 24px;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  opacity: .8;
}
.worksheet-header .taskpad-intel-main {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.05;
  text-transform: none;
  white-space: nowrap;
}
.worksheet-header .taskpad-intel-label {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  color: #9a7200;
  font-size: 7.5px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: none;
  white-space: nowrap;
}
.worksheet-tab.quicknav-tab.taskpad-intel-tab.active {
  border-color: transparent;
}
.worksheet-tab.quicknav-tab.taskpad-intel-tab.active .taskpad-intel-main,
.worksheet-tab.quicknav-tab.taskpad-intel-tab.active .taskpad-intel-label {
  color: #9a7200;
}
/* Taskpad board — a plain writing surface (Arial 12pt, 1.15 line spacing). */
/* Taskpad board — dark "blackboard" theme (charcoal background, white text, Inter
   font by default), matching the site's dark pages. */
.notes-board-wrap { border: 1px solid #3a3a3a; border-radius: 6px; background: #262626; overflow: hidden; }
/* Multi-document Taskpad: left sidebar (doc list, search, storage) + main editor. */
.notes-app { display: flex; border: 1px solid #3a3a3a; border-radius: 6px; background: #262626; overflow: hidden; min-height: calc(100vh - 300px); }
.notes-sidebar { flex: 0 0 232px; width: 232px; background: #1f1f1f; border-right: 1px solid #3a3a3a; display: flex; flex-direction: column; }
.notes-side-head { display: flex; gap: 6px; padding: 8px; border-bottom: 1px solid #3a3a3a; flex-wrap: wrap; }
.notes-search { flex: 1 1 auto; min-width: 0; height: 30px; border: 1px solid #4a4a4a; background: #2a2a2a; color: #f3f4f6; border-radius: 6px; padding: 0 9px; font-size: 12px; }
.notes-new-btn { flex: 0 0 auto; height: 30px; border: 1px solid #4a4a4a; background: #0d6aa0; color: #fff; border-radius: 6px; padding: 0 9px; cursor: pointer; font-size: 12px; font-weight: 800; }
.notes-folder-new-btn { background: #116fb8; }
.notes-new-btn:hover { background: #0b5c8c; }
.notes-doc-list { flex: 1 1 auto; overflow: auto; padding: 6px; }
.notes-doc { display: flex; align-items: center; gap: 4px; padding: 7px 8px; border-radius: 6px; cursor: pointer; color: #d4d6d9; }
.notes-doc.child { margin-left: 18px; padding-left: 7px; }
.notes-doc:hover { background: #2c2c2c; }
.notes-doc.active { background: #0d6aa0; color: #fff; }
.notes-doc-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.notes-doc-rename, .notes-doc-del, .notes-doc-move, .notes-folder-rename, .notes-folder-del { flex: 0 0 auto; width: 22px; height: 22px; border: none; background: transparent; color: inherit; opacity: .5; cursor: pointer; border-radius: 4px; font-size: 13px; line-height: 1; padding: 0; }
.notes-doc-del { font-size: 17px; }
.notes-folder-del { font-size: 17px; }
.notes-doc-rename:hover, .notes-doc-del:hover, .notes-doc-move:hover, .notes-folder-rename:hover, .notes-folder-del:hover { opacity: 1; background: rgba(255,255,255,.16); }
.notes-doc-empty { color: #8a8f95; font-size: 12px; padding: 12px 8px; text-align: center; }
.notes-folder { display: flex; align-items: center; gap: 6px; margin: 5px 0 2px; padding: 7px 8px; border-radius: 6px; color: #dbeafe; cursor: pointer; }
.notes-folder:hover, .notes-folder.active { background: #27384d; }
.notes-folder-icon { position: relative; flex: 0 0 20px; width: 20px; height: 14px; margin-top: 2px; border-radius: 3px; background: linear-gradient(180deg, #4bb3ff, #0a6fc2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.notes-folder-icon::before { content: ''; position: absolute; left: 2px; top: -4px; width: 9px; height: 5px; border-radius: 3px 3px 0 0; background: #6fc5ff; }
.notes-folder-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 800; }
.notes-folder-docs { margin-bottom: 5px; }
.notes-folder-empty { margin: 1px 0 4px 28px; color: #737b85; font-size: 11px; }
.notes-loose-title { margin: 10px 8px 4px; color: #8a8f95; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.notes-storage { padding: 8px 10px; border-top: 1px solid #3a3a3a; font-size: 11px; color: #9aa0a6; }
.notes-storage-bar { height: 6px; background: #333; border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.notes-storage-bar i { display: block; height: 100%; width: 0; background: #2a9d8f; transition: width .2s; }
.notes-storage-bar i.full { background: #c0392b; }
.notes-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.notes-app .notes-board { flex: 1 1 auto; min-height: 240px; }
.notes-sep { display: inline-block; width: 1px; height: 18px; background: #4a4a4a; margin: 0 2px; }
.notes-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.notes-modal { background: #fff; color: #17212b; border-radius: 10px; padding: 22px 24px; max-width: 360px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.notes-modal h4 { margin: 0 0 8px; font-size: 17px; }
.notes-modal p { margin: 0 0 16px; color: #475569; font-size: 14px; line-height: 1.45; }
.source-circle-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 1020; }
.source-circle-modal { position: relative; background: #fff; color: #17212b; border-radius: 10px; padding: 22px 24px 20px; max-width: 460px; width: min(92vw, 460px); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.source-circle-modal h4 { margin: 0 0 10px; padding-right: 38px; font-size: 17px; }
.source-circle-modal p { margin: 0 0 12px; color: #475569; font-size: 14px; line-height: 1.5; }
.source-circle-modal p:last-child { margin-bottom: 0; }
.source-circle-modal-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 999px; background: #eef2f7; color: #17212b; font-size: 20px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.source-circle-modal-close:hover { background: #dfe6ef; }
.notes-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(10px); background: #17212b; color: #fff; padding: 11px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1100; max-width: 90vw; text-align: center; }
.notes-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.notes-toolbar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #3a3a3a; background: #2f2f2f; flex-wrap: wrap; }
.notes-toolbar button, .notes-toolbar select { height: 30px; min-width: 30px; border: 1px solid #4a4a4a; background: #3a3a3a; border-radius: 6px; padding: 0 9px; cursor: pointer; font-size: 13px; color: #f3f4f6; }
.notes-toolbar button:hover, .notes-toolbar select:hover { background: #474747; }
.notes-color { display: inline-flex; align-items: center; gap: 5px; height: 30px; border: 1px solid #4a4a4a; border-radius: 6px; padding: 0 8px; cursor: pointer; background: #3a3a3a; color: #f3f4f6; }
.notes-color input { width: 22px; height: 20px; border: none; background: none; padding: 0; cursor: pointer; }
.notes-status { margin-left: auto; font-size: 12px; color: #9aa0a6; }
.notes-status.err { color: #f3a8a8; }
.notes-board { min-height: calc(100vh - 340px); padding: 16px 18px; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 12pt; line-height: 1.15; color: #ffffff; background: #262626; outline: none; overflow: auto; }
.notes-board:empty::before { content: 'Jot down your findings before placing bets, or plan future bets…'; color: #8a8f95; }
.notes-board ul, .notes-board ol { margin: 8px 0 8px 26px; padding-left: 20px; }
.notes-board li { margin: 4px 0; padding-left: 3px; }
/* Pasted images keep their ORIGINAL size (never shrunk or enlarged); the board
   scrolls if an image is wider than the area. Still click-to-select for delete. */
.notes-board img { max-width: none; height: auto; cursor: pointer; border-radius: 3px; }
/* When an image is click-selected, the browser draws its selection highlight;
   add a clear ring too so it's obviously selected and ready to delete. */
.notes-board img::selection { background: rgba(37,99,235,0.25); }
.notes-board ::selection { background: rgba(37,99,235,0.25); }
/* Circles toggle button states */
.worksheet-title-group { display: flex; align-items: center; gap: 12px; }
.circles-toggle-btn {
  position: relative;
  width: 74px;
  min-height: 44px;
  padding: 5px 7px 4px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  overflow: hidden;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #8a6a09 0%, #d4af37 22%, #fff2a8 43%, #b8860b 64%, #f6d86b 82%, #7a5a00 100%) border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 243, 176, .65), 0 1px 4px rgba(138, 106, 9, .16);
}
.circles-toggle-btn::after {
  content: "";
  position: absolute;
  inset: 2px auto 2px -28px;
  width: 24px;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  opacity: .8;
}
.worksheet-header .circles-toggle-main {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.05;
  text-transform: none;
  white-space: nowrap;
}
.worksheet-header .circles-toggle-intel {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  color: #9a7200;
  font-size: 7.5px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: none;
  white-space: nowrap;
}
.circles-toggle-btn.circles-on,
.circles-toggle-btn.circles-clines { border-color: transparent; color: #9a7200; }
.circles-toggle-btn.circles-on .circles-toggle-main,
.circles-toggle-btn.circles-clines .circles-toggle-main { color: #9a7200; }
.source-data-sheet .cell-stack { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.source-data-sheet .cell-stack b { font-size: 11px; font-weight: 700; }
.source-data-sheet .cell-stack i { font-size: 8px; font-style: normal; opacity: 0.72; margin-top: 1px; }
.source-data-sheet .excel-cell:has(.cell-stack) { padding-left: 3px; padding-right: 3px; }
.source-data-sheet .repeat-pill { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; box-sizing: border-box; min-width: 56px; height: 21px; padding: 0 12px; border: 1px solid rgba(23,33,43,0.55); border-radius: 999px; }
.source-data-sheet .repeat-pill.repeat-pill-big { border-color: #2563eb; }
.source-data-sheet .repeat-pill.repeat-pill-green { border-color: #16a34a; }
.source-data-sheet .repeat-pill.repeat-pill-red { border-color: #dc2626; }
.source-data-sheet .excel-cell:has(.repeat-pill) { overflow: visible; }
.source-data-sheet .excel-row-headers div { background: #f4f6f9; color: #8a97a8; font-weight: 600; }
.source-data-sheet .excel-column-header { color: #8a97a8; font-weight: 600; }
.source-data-sheet .excel-corner { background: #f4f6f9; }
.source-data-sheet .excel-cell { color: #2b3a4a; }

/* Engine: NO A-T column letters at all — just a clean 8px grey strip above
   the frozen black title row (no letters, no gridlines). */
.source-data-sheet { background: #e9eef3; grid-template-rows: 8px max-content; }
.source-data-sheet .excel-col-headers { display: none; }
.source-data-sheet .excel-corner { display: none; }
/* box-shadow paints an opaque 8px grey bar directly above each frozen header cell,
   so rows scrolling under the strip never peek through — strip stays clean grey. */
.source-data-sheet .excel-cell.sticky-sheet-header { top: 8px; z-index: 22; box-shadow: 0 -8px 0 0 #e9eef3; }
.source-data-sheet .excel-cell.sticky-helper-col.sticky-sheet-header { z-index: 30; }
.source-data-sheet .excel-row-headers div:first-child { position: sticky; top: 8px; z-index: 20; box-shadow: 0 -8px 0 0 #e9eef3; }
/* Reverse-order arrow button at the table's top-left (same dark rounded look as
   the catalogue scroll-up button). Rotates to point down when reversed. */
.source-order-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0; flex: 0 0 auto;
  border: 1px solid var(--ink); border-radius: 7px;
  background: var(--ink); color: #fff; cursor: pointer;
}
.source-order-toggle:hover { opacity: 0.88; }
.source-order-toggle svg { transition: transform 0.15s ease; }
.source-order-toggle.reversed svg { transform: rotate(180deg); }

.excel-cell.sticky-sheet-header {
  position: sticky;
  top: 28px;
  z-index: 7;
}
.excel-cell.allow-overflow {
  overflow: visible;
  text-overflow: clip;
  justify-content: center;
  z-index: 30;
}
.excel-cell.allow-overflow.sticky-sheet-header {
  z-index: 35;
}
.excel-cell.header-label-cell {
  z-index: 50;
  color: #FFFFFF;
  font-weight: 700;
}

.group-analysis-view {
  display: grid;
  gap: 24px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 0 12px;
}
.group-analysis-row {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 26px;
  align-items: start;
}
.group-analysis-row.two-blocks {
  grid-template-columns: repeat(2, max-content);
}
.group-block {
  display: grid;
  gap: 6px;
}
.group-title {
  color: #17212b;
  font-size: 15px;
  font-weight: 750;
  text-align: center;
}
.group-matrix {
  display: grid;
  grid-template-columns: 28px repeat(8, 56px);
  grid-auto-rows: 24px;
  align-items: stretch;
}
.group-header,
.group-row-label,
.group-cell,
.group-total-label {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  font-size: 9px;
  line-height: 1;
}
.group-header {
  color: #3f4d5f;
  font-weight: 650;
  white-space: nowrap;
}
.group-row-label {
  color: #17212b;
  font-weight: 500;
}
.group-cell {
  color: #0F2417;
  font-weight: 400;
}
.group-total-cell {
  margin-top: 3px;
  font-weight: 650;
  color: #17212b;
  background: transparent;
}
.group-header.active-after {
  outline: 2px solid #0f766e;
  outline-offset: -2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}
.group-header.active-after {
  background: #E8F5EE;
  color: #0f5132;
}

.balls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ball {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #e8eef4;
  color: var(--ink);
}
.ball.power { background: var(--accent-2); color: white; }

.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 56px; gap: 10px; align-items: center; font-size: 13px; }
.bar-track { background: #e8eef4; height: 12px; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent-3); border-radius: 999px; }

table { width: 100%; border-collapse: collapse; background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
th { background: #edf3f7; color: #314151; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; background: #eef6f4; color: var(--accent); font-weight: 750; font-size: 12px; }
.status.future { background: #fff2e7; color: var(--accent-2); }

.product-card h4, .panel h4 { margin: 0 0 8px; font-size: 18px; }
.product-card p, .panel p { color: var(--muted); margin: 0; line-height: 1.45; }
.module-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.module { background: var(--soft); border: 1px solid var(--line); padding: 7px 9px; border-radius: 8px; font-size: 13px; font-weight: 650; }
.search-row { margin: 18px 0 12px; }
.search-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
}

canvas { width: 100%; height: 260px; background: #fbfcfd; border: 1px solid var(--line); border-radius: 8px; }

@media (max-width: 860px) {
  .app-header { align-items: flex-start; flex-direction: column; }
  .tabs { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; padding: 22px; }
  .hero h2 { font-size: 32px; }
  .grid.cols-5, .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .country-grid, .catalogue-layout { grid-template-columns: 1fr; }
  .workbook-topbar, .worksheet-header { flex-direction: column; align-items: stretch; }
  .latest-mini { justify-content: flex-start; }
}

/* Legal / business content pages */
.content-page { max-width: 820px; line-height: 1.65; color: var(--ink); }
.content-page h2 { margin: 0 0 8px; }
.content-page h3 { margin: 26px 0 8px; font-size: 17px; }
.content-page p, .content-page li { color: var(--ink); }
.content-page ul { margin: 8px 0 8px 18px; }
.content-page li { margin: 4px 0; }
.draft-notice {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 650;
  font-size: 13px;
  margin-bottom: 16px;
}

/* Subscribe consent checkbox */
.consent-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}
.consent-checkbox input[type="checkbox"] { margin-top: 3px; flex: 0 0 auto; width: 16px; height: 16px; }

/* Subscription plans page */
.plans-page, .consent-page { max-width: 760px; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 8px;
}
.plan-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-card-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.plan-card h3 { margin: 0; font-size: 18px; }
.plan-price { font-size: 30px; font-weight: 800; color: var(--ink); }
.plan-price span { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.plan-note { margin: 0; color: var(--muted); font-size: 13px; min-height: 34px; }
.plan-choose { margin-top: 6px; text-align: center; }

/* Subscription consent page */
.consent-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  padding: 16px 18px;
  margin: 16px 0;
}
.consent-summary-label { display: block; font-weight: 800; }
.consent-summary-note { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.consent-summary-price { font-size: 22px; font-weight: 800; white-space: nowrap; }
.consent-summary-price span { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.consent-form { display: flex; flex-direction: column; gap: 16px; }
.consent-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

@media (max-width: 620px) {
  .plan-grid { grid-template-columns: 1fr; }
  .consent-summary { flex-direction: column; align-items: flex-start; }
}

/* Site footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
  margin-top: auto;
  padding: 24px 28px;
}
.site-footer-inner { max-width: 1220px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.site-footer-note { color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer-links a { color: var(--ink); text-decoration: none; font-size: 10.5px; font-weight: 650; }
.site-footer-links a:hover { color: var(--accent); text-decoration: underline; }
.site-footer-copy { color: var(--muted); font-size: 10.5px; }

/* 18+ age gate */
.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 27, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.age-gate[hidden] { display: none; }
.age-gate-card {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--line);
  max-width: 440px;
  width: 100%;
  padding: 28px;
  text-align: center;
}
.age-gate-logo-wrap { position: relative; display: block; width: fit-content; margin: 0 auto 14px; }
.age-gate-logo { height: 46px; width: auto; max-width: 220px; display: block; }
.age-gate-tm { position: absolute; top: 1px; right: -8px; font-size: 11px; font-weight: 800; line-height: 1; color: var(--ink); }
.age-gate-card h2 { margin: 0 0 8px; }
.age-gate-card p { color: var(--muted); }
.age-gate-actions { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 12px; }
.age-gate-help { font-size: 13px; }

.nverdict-view { --nverdict-primary: #1f8a78; --nverdict-cover: #496f96; }
.nverdict-hero { border-color: rgba(181, 135, 16, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 218, 109, 0.28); }
.nverdict-depth div { min-height: 96px; }
.nverdict-final-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}
.nverdict-pick {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbfb 100%);
  box-shadow: 0 14px 32px rgba(18, 35, 46, 0.08);
}
.nverdict-pick.cover { background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%); }
.nverdict-pick span,
.nverdict-final span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nverdict-pick strong {
  display: block;
  margin-top: 14px;
  font-size: 20px;
  color: var(--ink);
}
.nverdict-pick p { color: var(--muted); line-height: 1.55; }
.nverdict-strength-note { display: block; margin-top: 4px; font-size: 12px; font-style: normal; color: var(--muted); }
.nverdict-honesty {
  margin: 12px 0 4px;
  padding: 9px 14px;
  border-radius: 8px;
  background: #f6f8fa;
  border: 1px solid #e6eaef;
  color: #5c6672;
  font-size: 12.5px;
  line-height: 1.5;
}
.nverdict-honesty strong { color: #2f3a47; font-weight: 700; }
.nverdict-edge {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #ecfdf3;
  border: 1px solid #b7e4c7;
}
.nverdict-edge > i {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #166534; color: #ffffff;
  font-size: 13px; font-weight: 900; font-style: normal;
}
.nverdict-edge strong { display: block; color: #166534; font-weight: 900; font-size: 13.5px; }
.nverdict-edge p { margin: 3px 0 0; color: #1f5133; line-height: 1.5; font-size: 13px; }
.streak-view { padding: 4px 0; }
.streak-hero { background: #17212b; border-radius: 12px; padding: 18px 22px; margin-bottom: 16px; }
.streak-hero > span { display: block; font-size: 11.5px; letter-spacing: .05em; color: #7fd0c0; font-weight: 900; text-transform: uppercase; margin-bottom: 4px; }
.streak-hero h4 { margin: 0 0 8px; color: #ffffff; font-size: 20px; }
.streak-hero p { margin: 0; color: #d7e0ea; line-height: 1.55; font-size: 14px; }
.streak-hero b { color: #ffffff; }
.streak-cur-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.streak-cur-grid > div { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.streak-cur-grid span { display: block; font-size: 11px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.streak-cur-grid b { display: block; font-size: 22px; color: var(--ink); margin: 3px 0; }
.streak-cur-grid em { font-style: normal; font-size: 12px; color: var(--muted); }
.streak-section { margin: 16px 0; }
.streak-rows { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.streak-row { display: grid; grid-template-columns: 70px 1fr 60px 96px 52px auto; align-items: center; gap: 12px; padding: 5px 8px; border-radius: 8px; }
.streak-row.live { background: #f1f8f5; }
.streak-seg { display: inline-flex; align-items: center; justify-content: center; padding: 3px 8px; border-radius: 6px; font-weight: 850; font-size: 12px; color: #17212b; }
.streak-seg.sm { padding: 2px 6px; font-size: 11px; }
.streak-arrow { color: var(--muted); }
.streak-bar { position: relative; height: 10px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.streak-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #5b86a8; border-radius: 99px; }
.streak-row .streak-up { color: #166534; font-weight: 850; }
.streak-row .streak-down { color: #b91c1c; font-weight: 850; }
.streak-row .streak-flat { color: var(--ink); font-weight: 800; }
.streak-base { font-size: 12px; color: var(--muted); }
.streak-mult { font-size: 12px; color: var(--muted); font-weight: 800; text-align: right; }
.streak-chip { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.streak-high { background: #dcfce7; color: #166534; }
.streak-med { background: #e0edff; color: #0d4a8a; }
.streak-low { background: #f1f0e8; color: #5f5e5a; }
.streak-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 10px; }
.streak-table th { text-align: left; padding: 7px 10px; background: #284460; color: #ffffff; font-weight: 800; font-size: 11px; }
.streak-table td { padding: 6px 10px; border-bottom: 1px solid #eef2f7; }
.streak-table small { color: var(--muted); }
.streak-empty { color: var(--muted); font-style: italic; padding: 8px; }
.tedge-table td small { color: var(--muted); margin-left: 3px; }
.tedge-table .oe-ratio { font-size: 13px; }
.tedge-table tr.tedge-hot td { background: #fdf7e7; }
.tedge-thin { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 800; color: #8a6d1a; background: #f7ecc8; border-radius: 99px; padding: 2px 8px; }
.tedge-view .nverdict-honesty { margin-top: 16px; }
.sprd-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.sprd-lane { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #ffffff; }
.sprd-lane.current { border-color: #0d6aa0; box-shadow: inset 0 0 0 1px #0d6aa0; }
.sprd-lane-head { margin-bottom: 10px; }
.sprd-lane-head b { display: block; font-size: 14px; color: var(--ink); }
.sprd-lane-head span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.sprd-lane-head i { display: inline-block; margin-top: 6px; font-style: normal; font-size: 10.5px; font-weight: 800; color: #0d4a8a; background: #e0edff; border-radius: 99px; padding: 2px 9px; }
.sprd-row { display: grid; grid-template-columns: 62px 52px 1fr 44px auto; align-items: center; gap: 8px; padding: 5px 2px; border-top: 1px solid #eef2f7; font-size: 12px; }
.sprd-row b { color: var(--ink); }
.sprd-row small { color: var(--muted); }
.sprd-row em { font-style: normal; font-weight: 800; text-align: right; }
@media (max-width: 900px) { .sprd-lanes { grid-template-columns: 1fr; } }
.sverdict-lens td small { color: var(--muted); font-weight: 700; }
.sverdict-read { background: #f8fafc; border: 1px solid var(--line); border-left: 4px solid #0d6aa0; border-radius: 0 10px 10px 0; padding: 16px 18px; font-size: 14.5px; line-height: 1.75; color: #24313f; }
.sverdict-scope { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.sverdict-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #ffffff; display: flex; flex-direction: column; gap: 8px; }
.sverdict-card > span { font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sverdict-card.anchor { border-top: 4px solid #0d6aa0; }
.sverdict-card.cover { border-top: 4px solid #64748b; }
.sverdict-card.dark { border-top: 4px solid #166534; }
.sverdict-card.avoid { border-top: 4px solid #b91c1c; }
.sverdict-chip { font-size: 16px; }
.sverdict-card p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.sverdict-none { color: var(--muted); font-weight: 800; }
@media (max-width: 1000px) { .sverdict-scope { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nedge-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #cbd5e1; background: #ffffff; color: var(--ink); font-weight: 850; font-size: 13px; margin: 1px; }
.nedge-num.above { border-color: #166534; background: #ecfdf3; color: #166534; }
.nedge-num.below { border-color: #b91c1c; background: #fef2f2; color: #b91c1c; }
.nedge-none { color: var(--muted); font-style: italic; font-size: 12px; }
.nedge-table td small { color: var(--muted); margin-left: 3px; }
.rheat-wrap { overflow-x: auto; margin-top: 10px; }
.rheat { border-collapse: collapse; font-size: 11px; }
.rheat th { background: #284460; color: #ffffff; font-weight: 800; padding: 5px 6px; font-size: 10.5px; white-space: nowrap; }
.rheat td { padding: 4px 7px; text-align: center; border: 1px solid #ffffff; min-width: 30px; font-weight: 700; color: #17212b; cursor: default; }
.rheat .rheat-pb { background: #eef2f7; font-weight: 850; }
.rheat .rheat-hi2 { background: #86efac; }
.rheat .rheat-hi1 { background: #d1fae5; }
.rheat .rheat-mid { background: #f4f6f8; color: #5c6672; }
.rheat .rheat-lo1 { background: #fee2e2; }
.rheat .rheat-lo2 { background: #fca5a5; }
.rheat .rheat-dim { background: #fafafa; color: #b8c2ce; }
.rfun { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.rfun-row { display: grid; grid-template-columns: 170px 1fr 76px minmax(0, 1.2fr); align-items: center; gap: 12px; }
.rfun-row.ghost { opacity: .62; }
.rfun-row.ghost .rfun-fill { background: repeating-linear-gradient(45deg, #b8c2ce, #b8c2ce 6px, #d7dee6 6px, #d7dee6 12px); }
.rfun-label { font-size: 12px; font-weight: 800; color: var(--ink); }
.rfun-track { height: 18px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.rfun-fill { height: 100%; background: #17212b; border-radius: 99px; }
.rfun-num { font-size: 15px; color: var(--ink); text-align: right; }
.rfun-note { font-size: 11.5px; color: var(--muted); }
.rhist-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 12px; }
.rhist b { display: block; font-size: 12.5px; color: var(--ink); margin-bottom: 8px; }
.rhist-cols { display: flex; align-items: flex-end; gap: 3px; height: 72px; }
.rhist-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; }
.rhist-col i { display: block; width: 16px; background: #cbd5e1; border-radius: 3px 3px 0 0; }
.rhist-col.obs i { background: #17212b; }
.rhist-col span { font-size: 9.5px; color: var(--muted); }
.rhist-col.obs span { font-weight: 900; color: var(--ink); }
.rhist small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
@media (max-width: 900px) { .rhist-pair { grid-template-columns: 1fr; } .rfun-row { grid-template-columns: 130px 1fr 60px; } .rfun-note { display: none; } }
.verdict-hero-gold { border: 1.5px solid rgba(212, 175, 55, 0.65); box-shadow: inset 0 0 0 1px rgba(255, 218, 109, 0.28), 0 18px 36px rgba(34, 27, 9, 0.06); }
.v14-hero { border: 1.5px solid rgba(212, 175, 55, 0.65); box-shadow: inset 0 0 0 1px rgba(255, 218, 109, 0.28); }
/* THE VERDICT PLAQUE — every group verdict opens with the S4 treatment: a light
   glossy body framed by a METALLIC gold gradient border (the gradient is what
   makes it read as gold, not yellow). Overrides the dark hero base. */
.verdict-hero-plaque {
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(250,252,255,.96)) padding-box,
    linear-gradient(135deg, #8a6a09, #d4af37 24%, #fff2a8 44%, #b8860b 67%, #7a5a00) border-box;
  border: 1.5px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 243, 176, 0.55), 0 14px 30px rgba(34, 27, 9, 0.08);
}
.verdict-hero-plaque > span, .verdict-hero-plaque .conc-eyebrow { color: #7a5a00; }
.verdict-hero-plaque h3, .verdict-hero-plaque h4 { color: #17212b; }
.verdict-hero-plaque p { color: #33404d; }
.verdict-hero-plaque p b, .verdict-hero-plaque h4 b { color: #17212b; }
/* THE CROWN PLAQUE — the same metallic plaque, but the border gradient weaves
   deep ruby (#9b111e) through the gold: golden-red, not yellow-and-red. */
.crown-plaque {
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,251,246,.97)) padding-box,
    linear-gradient(135deg, #8a6a09 0%, #d4af37 16%, #9b111e 34%, #fff2a8 50%, #9b111e 66%, #b8860b 82%, #7a5a00 100%) border-box;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 243, 176, 0.6), 0 16px 34px rgba(74, 18, 18, 0.10);
}
.crown-plaque > span { color: #8a1a1a; }
.crown-plaque h4 { color: #17212b; }
.crown-plaque p { color: #33404d; }
.crown-plaque p b, .crown-plaque h4 b { color: #17212b; }
/* --- Conclusion teaser gating --- */
.crown-preview-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 4px; background: #eef2f7; border-radius: 999px; font-size: 12px; }
.crown-preview-toggle > span { color: var(--muted); font-weight: 700; padding: 0 6px; }
.crown-preview-toggle button { border: 0; background: transparent; color: #445; font-weight: 800; font-size: 12px; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.crown-preview-toggle button.on { background: #17212b; color: #fff; }
.crown-free-row { background: #fbfdf8; }
.crown-free-tag { display: inline-block; margin-left: 6px; font-size: 9px; font-weight: 850; color: #166534; background: #dcfce7; border-radius: 4px; padding: 1px 5px; vertical-align: middle; text-transform: uppercase; letter-spacing: .03em; }
.crown-locked-row { opacity: .95; }
.crown-locked-row td { background: repeating-linear-gradient(135deg, #f7f8fa, #f7f8fa 9px, #f1f3f6 9px, #f1f3f6 18px); }
.nedge-num.crown-lock-num { color: #b8c2ce; border-color: #dde3ea; background: #fbfcfd; filter: blur(0.6px); }
.crown-lock-mini { color: #9aa6b2; font-weight: 800; font-size: 12px; }
.crown-lock-panel { text-align: center; border: 1.5px solid transparent; border-radius: 14px; padding: 26px 22px; margin: 16px 0; background: linear-gradient(180deg, #fffdf7, #fff8ec) padding-box, linear-gradient(135deg, #8a6a09, #d4af37 24%, #fff2a8 44%, #b8860b 67%, #7a5a00) border-box; box-shadow: inset 0 0 0 1px rgba(255, 243, 176, 0.5); }
.crown-lock-panel-badge { display: inline-block; font-size: 11px; font-weight: 850; color: #7a5a00; background: #fdf2cf; border-radius: 999px; padding: 4px 12px; letter-spacing: .02em; }
.crown-lock-panel h4 { margin: 12px 0 6px; font-size: 19px; color: #17212b; }
.crown-lock-panel p { margin: 0 auto 14px; max-width: 560px; color: #43506b; line-height: 1.55; font-size: 14px; }
.crown-upsell-btn { border: 0; border-radius: 999px; padding: 12px 26px; font-size: 15px; font-weight: 850; color: #fff; background: linear-gradient(135deg, #b8860b, #8a1a1a); cursor: pointer; box-shadow: 0 8px 20px rgba(122, 26, 26, 0.22); }
.crown-upsell-btn:hover { filter: brightness(1.06); }
.crown-lock-foot { font-size: 12px !important; color: #8a94a2 !important; margin-top: 12px !important; }
/* --- Plans page --- */
/* Plans is a normal Basic-access tab — no special gold styling. */
.plans-billing-note { font-size: 12px; color: #64748b; margin: 10px auto 0; max-width: 520px; }
.plans-view { padding: 6px 2px 20px; }
.plans-hero { text-align: center; margin-bottom: 20px; }
.plans-hero h3 { font-size: 24px; color: #17212b; margin: 4px 0 8px; }
.plans-hero p { max-width: 620px; margin: 0 auto 16px; color: #43506b; line-height: 1.6; font-size: 14px; }
.plans-billing-toggle { display: inline-flex; gap: 4px; padding: 4px; background: #eef2f7; border-radius: 999px; }
.plans-billing-toggle button { border: 0; background: transparent; color: #445; font-weight: 800; font-size: 13px; padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.plans-billing-toggle button.on { background: #17212b; color: #fff; }
.plans-save { font-size: 10px; font-weight: 850; color: #166534; background: #dcfce7; border-radius: 4px; padding: 1px 5px; margin-left: 4px; }
.plans-billing-toggle button.on .plans-save { color: #166534; }
.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.plan-card { position: relative; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px 20px; background: #fff; display: flex; flex-direction: column; }
.plan-card.featured { border: 1.5px solid transparent; background: linear-gradient(180deg, #fffdf7, #fffaf0) padding-box, linear-gradient(135deg, #8a6a09, #d4af37 24%, #fff2a8 44%, #b8860b 67%, #7a5a00) border-box; box-shadow: 0 16px 34px rgba(138, 106, 9, 0.12); }
/* Prime = blue (matches the Prime tab badge). */
.plan-card-prime { border: 1.5px solid transparent; background: linear-gradient(180deg, #f7faff, #f0f6ff) padding-box, linear-gradient(135deg, #1d4ed8, #7dd3fc 46%, #1e3a8a) border-box; box-shadow: 0 12px 28px rgba(29, 78, 216, 0.10); }
.plan-card-prime .plan-name { color: #1d4ed8; }
.plan-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: linear-gradient(135deg, #b8860b, #8a1a1a); border-radius: 999px; padding: 4px 12px; }
.plan-save-badge { display: inline-block; font-size: 10px; font-weight: 850; color: #166534; background: #dcfce7; border-radius: 5px; padding: 2px 7px; margin-left: 8px; vertical-align: middle; }
.plan-name { font-size: 16px; font-weight: 850; color: #17212b; }
.plan-price { margin: 10px 0 16px; color: #17212b; }
.plan-price b { font-size: 30px; }
.plan-price span { color: var(--muted); font-size: 13px; margin-left: 3px; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.plan-feats li { position: relative; padding: 6px 0 6px 24px; font-size: 13px; color: #2b3a4a; border-top: 1px solid #f0f3f7; line-height: 1.4; }
.plan-feats li::before { content: "✓"; position: absolute; left: 2px; color: #2a9d8f; font-weight: 850; }
.plan-feats li.off { color: #aeb8c2; }
.plan-feats li.off::before { content: "✕"; color: #cfd6de; }
.plan-cta { border: 0; border-radius: 999px; padding: 12px 18px; font-size: 14px; font-weight: 850; cursor: pointer; background: #17212b; color: #fff; }
.plan-cta.gold { background: linear-gradient(135deg, #8a6a09, #b8860b 55%, #7a5a00); color: #fff5d6; }
.plan-cta.blue { background: linear-gradient(135deg, #2563eb, #1e3a8a); }
.plan-cta.ghost { background: #eef2f7; color: #8a94a2; cursor: default; }
.plan-cta:hover:not(.ghost) { filter: brightness(1.08); }
.plans-checkout-note { text-align: center; color: #166534; font-weight: 700; font-size: 13px; margin: 14px 0 0; min-height: 18px; }
.plans-foot { text-align: center; max-width: 640px; margin: 16px auto 0; color: #8a94a2; font-size: 12px; line-height: 1.5; }
@media (max-width: 760px) { .plans-grid { grid-template-columns: 1fr; } }
.nverdict-number-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.nverdict-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(31, 138, 120, 0.35);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  margin: 0 3px 3px 0;
}
.nverdict-pick .nverdict-number {
  display: inline-flex;
  font-size: 16px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.nverdict-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  border-radius: 7px;
  padding: 5px 9px;
  background: var(--chip);
  color: var(--ink);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.nverdict-target-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.nverdict-target-grid div {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft);
  padding: 13px 15px;
}
.nverdict-target-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.nverdict-target-grid b { display: block; margin-top: 4px; font-size: 24px; color: var(--ink); }
.nverdict-target-grid em { color: var(--muted); font-size: 12px; font-style: normal; }
.nverdict-bar {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 34px;
  align-items: center;
  gap: 8px;
}
.nverdict-bar i {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: #5b86a8;
}
.nverdict-bar b { font-size: 12px; }
.nverdict-anchor-table td,
.nverdict-combo-table td { vertical-align: middle; }
.nverdict-combo-table tr.lead { background: rgba(42, 157, 143, 0.10); }
.nverdict-combo-table tr.cover { background: rgba(91, 134, 168, 0.10); }
.nverdict-final { border-color: rgba(181, 135, 16, 0.58); }

@media (max-width: 900px) {
  .nverdict-final-grid,
  .nverdict-target-grid { grid-template-columns: 1fr; }
}

.p7-report { --p7-primary: #1f8a78; --p7-cover: #b58710; --p7-blue: #496f96; }
.p7-hero {
  border-color: rgba(181, 135, 16, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 218, 109, 0.28), 0 18px 36px rgba(34, 27, 9, 0.06);
}
.p7-depth-grid div { min-height: 96px; }
.p7-final-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}
.p7-pick {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbfb 100%);
  box-shadow: 0 14px 32px rgba(18, 35, 46, 0.08);
}
.p7-pick.cover { background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%); }
.p7-pick span,
.p7-final span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.p7-pick strong {
  display: block;
  margin-top: 14px;
  font-size: 20px;
  color: var(--ink);
}
.p7-pick p { color: var(--muted); line-height: 1.55; }
.p7-pb-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 999px;
  border: 2px solid rgba(31, 138, 120, 0.35);
  background: #ffffff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  margin: 0 4px 4px 0;
}
.p7-pb-chip.cover {
  border-color: rgba(181, 135, 16, 0.48);
  background: #fff8dc;
}
.p7-pb-chip.large {
  width: 58px;
  height: 58px;
  font-size: 28px;
  border-width: 3px;
  margin-top: 12px;
}
.p7-group-chip {
  display: inline-flex;
  min-width: 58px;
  justify-content: center;
  border-radius: 7px;
  padding: 5px 9px;
  background: var(--p7-group);
  color: var(--ink);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.p7-bar {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 44px;
  align-items: center;
  gap: 8px;
}
.p7-bar i {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: var(--p7-blue);
}
.p7-bar b { font-size: 12px; color: var(--ink); }
.p7-table td { vertical-align: middle; }
.p7-table tr.primary { background: rgba(42, 157, 143, 0.10); }
.p7-table tr.cover { background: rgba(181, 135, 16, 0.10); }
.p7-final { border-color: rgba(181, 135, 16, 0.62); }

@media (max-width: 900px) {
  .p7-final-grid { grid-template-columns: 1fr; }
}

/* ===== Tier gating: locked tabs + upgrade panels ===== */
.tab-lock { margin-left: 5px; font-size: 10px; opacity: .8; }
.worksheet-tab.tab-is-locked { opacity: .82; }
.upgrade-gate {
  max-width: 720px; margin: 20px auto; padding: 30px 32px; border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f7f9fc); text-align: center;
  border: 1.5px solid transparent;
}
.upgrade-gate.upgrade-intel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,251,244,.98)) padding-box,
    linear-gradient(135deg, #8a6a09, #d4af37 24%, #fff2a8 44%, #b8860b 67%, #7a5a00) border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 243, 176, .5), 0 18px 40px rgba(74, 40, 9, .1);
}
.upgrade-gate.upgrade-prime {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(244,249,255,.98)) padding-box,
    linear-gradient(135deg, #1f4e78, #4a90d9 45%, #1f4e78) border-box;
  box-shadow: 0 18px 40px rgba(9, 40, 74, .08);
}
.upgrade-badge {
  display: inline-block; font-size: 11px; font-weight: 850; letter-spacing: .04em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.upgrade-intel .upgrade-badge { background: #7a5a00; color: #fff2a8; }
.upgrade-prime .upgrade-badge { background: #1f4e78; color: #eaf3ff; }
.upgrade-gate h3 { margin: 0 0 8px; font-size: 26px; color: #17212b; }
.upgrade-lede { margin: 0 auto 18px; max-width: 560px; font-size: 15px; line-height: 1.6; color: #33404d; }
.upgrade-feats { list-style: none; margin: 0 auto 22px; padding: 0; max-width: 520px; text-align: left; }
.upgrade-feats li { position: relative; padding: 8px 0 8px 28px; font-size: 14px; color: #2b3a3a; border-bottom: 1px solid #eef2f7; }
.upgrade-feats li::before { content: "✓"; position: absolute; left: 4px; font-weight: 900; color: #2a9d8f; }
.upgrade-intel .upgrade-feats li::before { color: #b8860b; }
.upgrade-cta-row { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.upgrade-price { font-size: 20px; font-weight: 900; color: #17212b; }
.upgrade-price small { font-size: 12px; color: #7a8794; font-weight: 700; }
.upgrade-cta {
  border: 0; border-radius: 10px; padding: 13px 24px; font: inherit; font-weight: 850; font-size: 15px;
  color: #fff; cursor: pointer;
}
.upgrade-intel .upgrade-cta { background: linear-gradient(135deg, #b8860b, #7a5a00); }
.upgrade-prime .upgrade-cta { background: linear-gradient(135deg, #4a90d9, #1f4e78); }
.upgrade-cta:hover { filter: brightness(1.07); }
.upgrade-foot { margin: 0; font-size: 12.5px; color: #667; line-height: 1.55; }

/* ===== Three-tier subscribe page (billing/plans_au.html) ===== */
.au-billing-toggle { display: inline-flex; gap: 4px; padding: 4px; background: #eef2f7; border-radius: 999px; margin: 6px 0 20px; }
.au-billing-toggle button { border: 0; background: transparent; color: #445; font-weight: 800; font-size: 14px; padding: 9px 22px; border-radius: 999px; cursor: pointer; }
.au-billing-toggle button.on { background: #17212b; color: #fff; }
.au-save { color: #166534; font-weight: 800; font-size: 12px; }
.au-billing-toggle button.on .au-save { color: #86efac; }
.au-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 18px; }
.au-plan-card { position: relative; border: 1.5px solid #e1e8f0; border-radius: 14px; padding: 24px 22px; background: #fff; display: flex; flex-direction: column; }
.au-plan-card.au-featured {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #8a6a09, #d4af37 24%, #fff2a8 44%, #b8860b 67%, #7a5a00) border-box;
  box-shadow: 0 16px 34px rgba(74, 40, 9, .08);
}
.au-plan-card.au-plan-prime {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #1d4ed8, #7dd3fc 46%, #1e3a8a) border-box;
  box-shadow: 0 12px 28px rgba(29, 78, 216, .09);
}
.au-plan-card.au-plan-prime h3 { color: #1d4ed8; }
.au-plan-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: #7a5a00; color: #fff2a8; font-size: 11px; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.au-plan-card h3 { margin: 0 0 6px; font-size: 20px; color: #17212b; }
/* Intel plan heading — true shiny gold (matches the landing tier cards) */
.au-plan-card.au-featured h3 {
  color: #d4a017; /* fallback if background-clip:text is unsupported */
  background: linear-gradient(100deg, #d4a017 0%, #efc64c 20%, #f9e39a 42%, #fff7d6 50%, #f9e39a 58%, #efc64c 80%, #d4a017 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 1px rgba(120, 82, 6, .12);
}
.au-plan-price { margin: 4px 0 2px; }
.au-plan-price .au-price { font-size: 32px; font-weight: 900; color: #17212b; }
.au-plan-price .au-per { font-size: 14px; color: #7a8794; font-weight: 700; }
.au-price-hint { margin: 0 0 14px; font-size: 12.5px; font-weight: 700; color: #166534; min-height: 16px; }
.au-price-hint .au-hint-yearly { color: #7a8794; font-weight: 600; }
.au-save-flag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #166534; color: #d9f7e0; font-size: 11px; font-weight: 850; letter-spacing: .01em; vertical-align: middle; }
.au-billing-toggle button.on .au-save-flag { background: #22c55e; color: #06230f; }
.au-plan-feats { list-style: none; margin: 0 0 20px; padding: 0; flex: 1 1 auto; }
.au-plan-feats li { position: relative; padding: 7px 0 7px 24px; font-size: 13.5px; color: #2b3a3a; }
.au-plan-feats li::before { content: "✓"; position: absolute; left: 2px; font-weight: 900; color: #2a9d8f; }
.au-plan-cta { text-align: center; border-color: transparent; }
/* Each tier's CTA wears its own colour scheme. */
.au-plan-cta.au-cta-basic { background: #17212b; color: #fff; }
.au-plan-cta.au-cta-basic:hover { background: #232f3d; }
.au-plan-cta.au-cta-prime { background: linear-gradient(135deg, #2563eb, #1e3a8a); color: #fff; }
.au-plan-cta.au-cta-prime:hover { filter: brightness(1.06); }
.au-plan-cta.au-cta-intel { background: linear-gradient(135deg, #8a6a09, #b8860b 55%, #7a5a00); color: #fff5d6; }
.au-plan-cta.au-cta-intel:hover { filter: brightness(1.07); }
/* Footer: prices note + a real Back button instead of an inline link. */
.au-plan-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid #e6ebf1; }
.au-plan-foot-note { font-size: 13px; color: #64748b; }
.au-back-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1.5px solid #cbd5e1; border-radius: 10px; background: #fff; color: #17212b; font-weight: 800; font-size: 13px; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.au-back-btn:hover { background: #f1f5f9; border-color: #94a3b8; }
@media (max-width: 820px) { .au-plan-grid { grid-template-columns: 1fr; } }

/* Email-verification reminder on the Account page */
.verify-banner { background: #fff8e6; border: 1px solid #f0d98a; border-radius: 8px; margin: 12px 0 4px; }
.verify-banner p { margin: 0; color: #6b5a12; }
.verify-ok { color: #166534; font-weight: 800; font-size: 12px; margin-left: 6px; }
