/* Entry links shared with the main dashboard. */
.topbar-actions,
.future-research-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.future-research-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.research-nav-link,
.research-inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid #d7d3ca;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #171b25;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(23, 27, 37, .06);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.research-inline-link {
  border-color: rgba(237, 68, 56, .35);
  color: #d7392f;
}

.research-nav-link:hover,
.research-inline-link:hover {
  transform: translateY(-1px);
  border-color: #ed4438;
  box-shadow: 0 12px 28px rgba(237, 68, 56, .12);
}

/* Dedicated no-peek research room. */
.research-page {
  --research-ink: #111722;
  --research-ink-soft: #202938;
  --research-paper: #f4f1e9;
  --research-surface: rgba(255, 255, 255, .9);
  --research-line: #dfdacf;
  --research-muted: #777d8b;
  --research-red: #d7352b;
  --research-orange: #ff7650;
  --research-lime: #d8f56a;
  --red: #d7352b;
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% 23%, rgba(255, 170, 120, .22), transparent 28%),
    radial-gradient(circle at 6% 74%, rgba(216, 245, 106, .18), transparent 25%),
    var(--research-paper);
}

.research-page [hidden] {
  display: none !important;
}

.research-page button,
.research-page select {
  font-family: inherit;
}

.research-page :is(a, button, select):focus-visible {
  outline: 3px solid rgba(215, 53, 43, .42);
  outline-offset: 3px;
}

.research-topbar {
  max-width: 1320px;
}

.research-back {
  color: var(--research-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}

.research-back:hover {
  color: var(--research-red);
}

.research-main {
  max-width: 1320px;
  padding-bottom: 90px;
}

.research-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  padding: 64px 0 38px;
}

.research-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.065em;
}

.research-hero h1 em {
  color: var(--research-red);
  font-style: normal;
}

.research-hero > div > p:last-child {
  max-width: 730px;
  margin: 22px 0 0;
  color: var(--research-muted);
  font-size: 14px;
  line-height: 1.75;
}

.research-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  background: linear-gradient(145deg, #111722, #222b3a);
  color: #fff;
  box-shadow: 0 20px 60px rgba(17, 23, 34, .2);
}

.research-flow span {
  display: grid;
  grid-template-columns: 28px auto;
  gap: 8px;
  align-items: center;
  color: #dfe4ec;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.research-flow b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--research-lime);
  color: var(--research-ink);
  font: 700 11px 'DM Mono';
}

.research-flow i {
  color: #697487;
  font-style: normal;
}

.research-shell {
  overflow: hidden;
  border: 1px solid rgba(211, 206, 195, .95);
  border-radius: 20px;
  background: var(--research-surface);
  box-shadow: 0 22px 70px rgba(37, 31, 23, .08);
  backdrop-filter: blur(18px);
}

.research-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 7px;
  border-bottom: 1px solid var(--research-line);
  background: #ece9e1;
}

.research-mode-tabs button {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #8b8f99;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.research-mode-tabs button.active {
  background: #fff;
  color: var(--research-ink);
  box-shadow: 0 5px 18px rgba(17, 23, 34, .08), inset 0 -3px 0 var(--research-red);
}

.research-controls {
  display: grid;
  grid-template-columns: minmax(145px, .65fr) minmax(285px, 1.45fr) minmax(125px, .55fr) minmax(145px, .65fr) minmax(190px, .8fr);
  gap: 14px;
  align-items: end;
  padding: 25px;
}

.research-controls label {
  display: block;
  margin: 0 0 9px;
  color: #7b7f8b;
  font: 500 9px 'DM Mono';
  letter-spacing: .12em;
}

.research-controls select,
.research-target-preview {
  width: 100%;
  height: 49px;
  border: 1px solid #dad6cd;
  border-radius: 11px;
  background: #faf9f6;
  color: var(--research-ink);
  font-size: 12px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.research-controls select:focus {
  border-color: var(--research-red);
  box-shadow: 0 0 0 4px rgba(237, 68, 56, .1);
}

.research-target-preview {
  display: flex;
  align-items: center;
  padding: 0 13px;
  border-style: dashed;
  font: 500 10px 'DM Mono';
  line-height: 1.45;
}

.research-controls .primary {
  width: 100%;
  height: 49px;
  border-radius: 11px;
}

.research-notice {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 25px;
  border-top: 1px solid var(--research-line);
  background: linear-gradient(90deg, #f0f8d7, #f7faed);
  color: #687248;
  font-size: 10px;
  line-height: 1.55;
}

.research-notice b {
  color: #414c22;
}

.research-workspace {
  margin-top: 18px;
}

.research-integrity-card {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  padding: 23px 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 15%, rgba(216, 245, 106, .13), transparent 30%),
    linear-gradient(135deg, #101620, #1d2737);
  color: #fff;
  box-shadow: 0 20px 55px rgba(17, 23, 34, .16);
}

.research-integrity-card small,
.research-signal-grid > article > small,
.grid-label,
.comparison-flow small {
  display: block;
  margin: 0 0 10px;
  color: #99717c;
  font: 500 9px 'DM Mono';
  letter-spacing: .11em;
}

.research-integrity-card small {
  color: #a6afbf;
}

.research-integrity-card h3 {
  margin: 5px 0 5px;
  font-size: 21px;
  letter-spacing: -.025em;
}

.research-integrity-card p {
  margin: 0;
  color: #aab3c2;
  font-size: 10px;
  line-height: 1.6;
}

.portfolio-objective-research {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(460px, 1.15fr);
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #b7c979;
  border-radius: 15px;
  background: linear-gradient(135deg, #f8fce9, #fff 58%, #fff5ee);
  box-shadow: 0 10px 28px rgba(72, 91, 28, .07);
}

.portfolio-objective-research.research-only {
  border-color: #e1aa84;
  background: linear-gradient(135deg, #fff8f1, #fff 58%, #f8f7f2);
}

.portfolio-objective-status {
  display: inline-flex;
  width: max-content;
  margin-top: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e8f5b7;
  color: #435516;
  font: 700 8px 'DM Mono';
}

.research-only .portfolio-objective-status {
  background: #fff0e5;
  color: #9a4c2d;
}

.portfolio-objective-research > div:first-child > small,
.interaction-evidence-grid > div > small {
  color: #71804b;
  font: 700 8px 'DM Mono';
  letter-spacing: .08em;
}

.portfolio-objective-research h3 {
  margin: 7px 0 5px;
  color: #29350f;
  font-size: 18px;
  letter-spacing: -.025em;
}

.portfolio-objective-research p {
  margin: 0;
  color: #747c61;
  font-size: 9px;
  line-height: 1.6;
}

.portfolio-objective-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.portfolio-objective-kpis span {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #e1e5d2;
  border-radius: 11px;
  background: rgba(255, 255, 255, .84);
}

.portfolio-objective-kpis span.improved {
  border-color: #96b337;
  background: #effbc8;
  box-shadow: inset 0 -3px 0 #a9cf37;
}

.portfolio-objective-kpis span.failed {
  border-color: #e5b9a0;
  background: #fff4ed;
}

.portfolio-objective-kpis span.failed b { color: #a54b2d; }
.portfolio-objective-kpis span.passed { border-color: #96b337; background: #effbc8; }

.portfolio-objective-kpis b { color: #27320f; font: 700 18px 'DM Mono'; }
.portfolio-objective-kpis small { color: #7b836b; font-size: 7px; line-height: 1.4; }
.portfolio-objective-research > details { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid rgba(91, 109, 48, .18); }
.portfolio-objective-research > details > summary { color: #61712e; font: 700 9px 'DM Mono'; cursor: pointer; }
.portfolio-objective-research > details > p { margin-top: 10px; }

.interaction-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.interaction-evidence-grid > div {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid #e4e1d5;
  border-radius: 11px;
  background: rgba(255, 255, 255, .78);
}

.interaction-evidence-grid span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.interaction-evidence-grid b { color: #303925; font: 700 9px 'DM Mono'; }
.interaction-evidence-grid em { color: #8b765f; font-size: 7px; font-style: normal; }

.integrity-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.integrity-pills span {
  padding: 8px 11px;
  border: 1px solid #3d485b;
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--research-lime);
  font: 500 9px 'DM Mono';
  white-space: nowrap;
}

.research-section-block,
.ticket-builder,
.sealed-session,
.comparison-result {
  margin-top: 16px;
  padding: 27px;
  border: 1px solid var(--research-line);
  border-radius: 19px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 45px rgba(37, 31, 23, .055);
}

.research-section-head,
.ticket-builder-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--research-line);
}

.research-section-head .eyebrow,
.ticket-builder-head .eyebrow {
  margin-bottom: 8px;
}

.research-section-head h2,
.ticket-builder h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -.045em;
}

.research-section-head > span,
.ticket-builder-head p {
  margin: 6px 0 0;
  color: var(--research-muted);
  font-size: 10px;
  line-height: 1.55;
}

.research-references {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.research-reference {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid #dedbd3;
  border-radius: 13px;
  background: #fbfaf7;
  color: var(--research-ink);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.research-reference:hover {
  transform: translateY(-2px);
  border-color: rgba(237, 68, 56, .65);
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 23, 34, .08);
}

.research-reference.selected {
  border-color: var(--research-ink);
  background: var(--research-ink);
  color: #fff;
  box-shadow: 0 0 0 3px var(--research-lime), 0 12px 30px rgba(17, 23, 34, .13);
}

.research-reference.selected > small,
.research-reference.selected > strong {
  color: var(--research-lime);
}

.research-reference.selected b:not(.bonus) {
  background: #fff;
  color: var(--research-ink);
}

.research-reference:focus-visible,
.number-choice:focus-visible,
.research-mode-tabs button:focus-visible {
  outline: 3px solid rgba(237, 68, 56, .25);
  outline-offset: 2px;
}

.research-reference > small {
  color: #a0a3ab;
  font: 600 10px 'DM Mono';
}

.research-reference > span {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.research-reference b,
.research-ball,
.selected-ball,
.actual-ball {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #efede7;
  color: var(--research-ink);
  font: 600 11px 'DM Mono';
  box-shadow: inset 0 -3px 0 rgba(17, 23, 34, .08);
}

.research-reference b.bonus,
.research-ball.bonus,
.selected-ball.bonus,
.actual-ball.bonus {
  border: 1px solid var(--research-orange);
  background: #fff7f2;
  color: #d84a2d;
  box-shadow: none;
}

.research-reference i {
  width: 1px;
  height: 29px;
  margin: 0 2px;
  background: #cbc7be;
  font-style: normal;
}

.research-reference > strong {
  color: #7b818d;
  font: 600 10px 'DM Mono';
  white-space: nowrap;
}

.coverage-research-section {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.coverage-planner {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #d7d2c7;
  border-radius: 23px;
  background:
    radial-gradient(circle at 96% 3%, rgba(216, 245, 106, .26), transparent 24%),
    radial-gradient(circle at 3% 100%, rgba(255, 118, 80, .11), transparent 25%),
    rgba(255, 255, 255, .96);
  box-shadow: 0 22px 54px rgba(36, 31, 24, .08);
}

.coverage-planner::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--research-orange), var(--research-lime) 58%, #7658d6);
}

.coverage-planner::after {
  content: '';
  position: absolute;
  top: -90px;
  right: -70px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(17, 23, 34, .06);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(17, 23, 34, .018), 0 0 0 58px rgba(17, 23, 34, .012);
  pointer-events: none;
}

.coverage-planner > * {
  position: relative;
  z-index: 1;
}

.coverage-planner-head,
.coverage-pool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.coverage-planner-head h2 {
  max-width: 760px;
  margin: 6px 0 8px;
  font-size: clamp(25px, 3vw, 37px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.coverage-planner-head > div > p:last-child {
  max-width: 820px;
  margin: 0;
  color: var(--research-muted);
  font-size: 11px;
  line-height: 1.65;
}

.coverage-status {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid #dbd6cb;
  border-radius: 999px;
  background: rgba(244, 241, 233, .84);
  color: #686e7a;
  font: 600 9px 'DM Mono';
  letter-spacing: .06em;
  white-space: nowrap;
}

.decision-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #b9d54d;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7fbdc, #fff 58%, #fff4ef);
  box-shadow: 0 14px 30px rgba(94, 111, 29, .10);
}

.decision-ticket-copy {
  min-width: 0;
}

.decision-ticket-copy > small {
  color: #687a24;
  font: 700 9px 'DM Mono';
  letter-spacing: .08em;
}

.decision-ticket-copy h3 {
  margin: 7px 0 7px;
  font-size: clamp(20px, 2.5vw, 28px);
  letter-spacing: -.035em;
}

.decision-ticket-copy p,
.decision-ticket-copy em {
  display: block;
  max-width: 720px;
  margin: 0;
  color: #656c78;
  font-size: 11px;
  font-style: normal;
  line-height: 1.55;
}

.decision-ticket-copy em {
  margin-top: 6px;
  color: #8a5447;
  font-weight: 650;
}

.decision-ticket-pick {
  display: grid;
  justify-items: end;
  gap: 13px;
}

.decision-ticket-balls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  white-space: nowrap;
}

.decision-ticket-balls span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--research-ink);
  color: #fff;
  font: 700 12px 'DM Mono';
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .12);
}

.decision-ticket-balls .priority-ball {
  display: grid;
  grid-template-rows: 1fr auto;
  width: 48px;
  height: 54px;
  padding: 7px 3px 5px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #f0eee8;
  color: var(--research-ink);
  box-shadow: inset 0 -3px 0 rgba(25, 31, 43, .08);
}

.decision-ticket-balls .priority-ball b {
  align-self: center;
  font: 800 13px 'DM Mono';
}

.decision-ticket-balls .priority-ball small {
  font: 700 6px 'DM Mono';
  letter-spacing: .04em;
  text-transform: uppercase;
}

.decision-ticket-balls .priority-ball.core {
  border-color: #9ab52f;
  background: var(--research-lime);
}

.decision-ticket-balls .priority-ball.keep {
  border-color: #d9b06b;
  background: #fff1dc;
}

.decision-ticket-balls .priority-ball.balance {
  border-color: #d7d3ca;
  background: #fff;
}

.decision-ticket-reserves {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px dashed #d7c9a9;
  border-radius: 10px;
  background: rgba(255, 255, 255, .68);
}

.decision-ticket-reserves > small {
  color: #7d6537;
  font: 700 8px 'DM Mono';
}

.decision-ticket-reserves > span {
  display: flex;
  gap: 5px;
}

.decision-ticket-reserves > span b {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  color: #9a552f;
  font: 700 9px 'DM Mono';
}

.decision-ticket-reserves > em {
  flex: 1 1 220px;
  margin: 0;
  color: #81796c;
  font-size: 8px;
}

.decision-ticket-balls span.bonus {
  width: auto;
  padding: 0 12px;
  border: 1px solid #ff7959;
  border-radius: 999px;
  background: #fff;
  color: #d54a2b;
  box-shadow: none;
}

.decision-ticket-balls i {
  width: 1px;
  height: 30px;
  margin: 0 2px;
  background: #d7d2c7;
}

.decision-ticket-pick .primary {
  min-width: 205px;
}

.coverage-levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 25px;
}

.coverage-levels.single-level {
  grid-template-columns: minmax(240px, 420px);
}

.coverage-level {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 104px;
  padding: 15px 16px;
  border: 1px solid #ddd8ce;
  border-radius: 15px;
  background: rgba(246, 244, 238, .86);
  color: var(--research-ink);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(17, 23, 34, .025);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.coverage-level:hover {
  z-index: 1;
  transform: translateY(-2px);
  border-color: #aaa398;
  box-shadow: 0 12px 24px rgba(17, 23, 34, .08);
}

.coverage-level small {
  color: #8a7581;
  font: 600 8px 'DM Mono';
  letter-spacing: .08em;
}

.coverage-level strong {
  font: 700 28px 'DM Mono';
  letter-spacing: -.06em;
}

.coverage-level span {
  overflow: hidden;
  color: #737986;
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.coverage-level[aria-pressed='true'],
.coverage-level.active {
  border-color: var(--research-ink);
  background: var(--research-ink);
  color: #fff;
  box-shadow: 0 15px 30px rgba(17, 23, 34, .18), inset 0 -4px 0 rgba(255, 255, 255, .06);
}

.coverage-level[aria-pressed='true'] small,
.coverage-level[aria-pressed='true'] span,
.coverage-level.active small,
.coverage-level.active span {
  color: #c7ccd5;
}

.coverage-level.guaranteed {
  border-color: #baca76;
  background: linear-gradient(145deg, #f7fbdc, #edf7bd);
}

.coverage-level.guaranteed::after {
  content: '∞';
  position: absolute;
  top: 10px;
  right: 13px;
  color: #718227;
  font: 700 17px 'DM Mono';
}

.coverage-level.guaranteed[aria-pressed='true'],
.coverage-level.guaranteed.active {
  border-color: #bcd84f;
  background: #d8f56a;
  color: var(--research-ink);
  box-shadow: 0 15px 30px rgba(113, 130, 39, .19), inset 0 -4px 0 rgba(73, 91, 15, .1);
}

.coverage-level.guaranteed[aria-pressed='true'] small,
.coverage-level.guaranteed[aria-pressed='true'] span,
.coverage-level.guaranteed.active small,
.coverage-level.guaranteed.active span {
  color: #56621f;
}

.coverage-board {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, .8fr);
  gap: 12px;
  align-items: start;
  margin-top: 13px;
}

.coverage-pool,
.coverage-excluded {
  min-width: 0;
  border-radius: 17px;
}

.coverage-pool {
  padding: 21px;
  border: 1px solid #2a3445;
  background:
    radial-gradient(circle at 100% 0, rgba(216, 245, 106, .12), transparent 34%),
    linear-gradient(145deg, var(--research-ink), #1c2534);
  color: #fff;
  box-shadow: 0 14px 30px rgba(17, 23, 34, .15);
}

.coverage-pool-head small,
.coverage-excluded summary small {
  color: #a6adba;
  font: 600 8px 'DM Mono';
  letter-spacing: .08em;
}

.coverage-pool-head h3 {
  margin: 5px 0 0;
  font-size: 18px;
  letter-spacing: -.03em;
}

.coverage-pool-head > strong {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--research-lime);
  color: var(--research-ink);
  font: 700 10px 'DM Mono';
  white-space: nowrap;
}

.coverage-number-list,
.coverage-excluded-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.coverage-number {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 50%;
  background: #fff;
  color: var(--research-ink);
  font: 700 11px 'DM Mono';
  box-shadow: inset 0 -3px 0 #dcd8cf, 0 7px 16px rgba(0, 0, 0, .14);
}

.coverage-number-list.suspicion-list {
  align-items: flex-start;
  gap: 14px 10px;
}

.coverage-candidate {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 64px;
}

.coverage-candidate > small {
  max-width: 68px;
  color: #aeb5c1;
  font: 600 7px/1.2 'DM Mono';
  text-align: center;
  text-transform: uppercase;
}

.coverage-candidate > em {
  position: absolute;
  top: -5px;
  right: 5px;
  z-index: 2;
  min-width: 20px;
  padding: 3px 4px;
  border-radius: 999px;
  background: #161c27;
  color: #fff;
  font: 700 7px 'DM Mono';
  text-align: center;
}

.coverage-candidate.suspicion-strong .coverage-number {
  border-color: var(--research-lime);
  background: var(--research-lime);
  box-shadow: inset 0 -3px 0 #b9dc42, 0 0 0 4px rgba(213, 255, 88, .14), 0 8px 18px rgba(0, 0, 0, .18);
}

.coverage-candidate.suspicion-strong > small {
  color: var(--research-lime);
}

.coverage-candidate.suspicion-attention .coverage-number {
  border-color: #ffbd7d;
  background: #fff0df;
  box-shadow: inset 0 -3px 0 #e6b078, 0 7px 16px rgba(0, 0, 0, .14);
}

.coverage-candidate.suspicion-attention > small {
  color: #ffc58e;
}

.coverage-candidate.suspicion-watch .coverage-number {
  border-color: #d6dce5;
  background: #f7f8fa;
}

.suspicion-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.suspicion-legend > span {
  padding: 5px 8px;
  border-radius: 999px;
  font: 700 7px 'DM Mono';
  text-transform: uppercase;
}

.suspicion-legend .strong { background: var(--research-lime); color: var(--research-ink); }
.suspicion-legend .attention { background: #fff0df; color: #8b5427; }
.suspicion-legend .watch { background: #f2f4f7; color: #626b79; }
.suspicion-legend > small { color: #aeb5c1; font-size: 8px; }

.coverage-excluded-numbers.excluded-suspicion-list {
  align-items: flex-start;
  gap: 13px 8px;
}

.coverage-excluded-candidate {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 50px;
}

.coverage-excluded-candidate > small {
  max-width: 58px;
  color: #9a6a47;
  font: 600 6px/1.2 'DM Mono';
  text-align: center;
  text-transform: uppercase;
}

.coverage-excluded-candidate > em {
  position: absolute;
  top: -5px;
  left: 3px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid #f7f5ef;
  border-radius: 50%;
  background: #ef7b49;
  color: #fff;
  font: 800 9px 'DM Mono';
}

.coverage-excluded-candidate.excluded-strong .coverage-number {
  border-color: #ef7b49;
  background: #fff2e9;
  color: #9b3f25;
  box-shadow: inset 0 -3px 0 #efc0a7, 0 0 0 3px rgba(239, 123, 73, .13);
}

.coverage-excluded-candidate.excluded-elevated .coverage-number {
  border-color: #d9322b;
  outline: 2px solid rgba(217, 50, 43, .85);
  outline-offset: 2px;
  background: #fff0ed;
  color: #a5231e;
}

.coverage-excluded-candidate.excluded-elevated > em { background: #d9322b; }
.coverage-excluded-candidate.excluded-attention .coverage-number { border-color: #ef7b49; background: #fff2e9; color: #9b3f25; }

.coverage-excluded-candidate.excluded-watch .coverage-number {
  border-color: #e8ad84;
  background: #fffaf5;
}

.coverage-excluded-candidate.excluded-fusion .coverage-number {
  border-color: #b9bdc4;
  border-style: dashed;
  background: #f5f6f7;
  color: #676d76;
}

.coverage-excluded-candidate.excluded-fusion > small { color: #777e88; }
.coverage-excluded-candidate.excluded-fusion > em { background: #7c838d; }

.excluded-suspicion-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #82634d;
}

.excluded-suspicion-legend > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef7b49;
  color: #fff;
  font: 800 9px 'DM Mono';
}

.excluded-suspicion-legend > small { font-size: 8px; }

.coverage-empty {
  color: #a9b0bd;
  font-size: 10px;
  line-height: 1.55;
}

.coverage-excluded {
  padding: 0 18px 17px;
  border: 1px solid #ddd8ce;
  background: rgba(247, 245, 239, .88);
}

.coverage-excluded > summary,
.signal-diagnostics > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.coverage-excluded > summary {
  min-height: 78px;
}

.coverage-excluded > summary::-webkit-details-marker,
.signal-diagnostics > summary::-webkit-details-marker {
  display: none;
}

.coverage-excluded > summary > span,
.signal-diagnostics > summary > span {
  display: grid;
  gap: 5px;
}

.coverage-excluded > summary strong {
  color: var(--research-ink);
  font-size: 14px;
}

.coverage-excluded > summary > b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid #d4cfc5;
  border-radius: 50%;
  background: #fff;
  font-size: 16px;
  transition: transform .18s ease;
}

.coverage-excluded[open] > summary > b {
  transform: rotate(45deg);
}

.coverage-excluded > p {
  margin: 0;
  padding-top: 13px;
  border-top: 1px solid #dfdad0;
  color: #747a86;
  font-size: 9px;
  line-height: 1.55;
}

.coverage-excluded .coverage-number {
  width: 36px;
  height: 36px;
  border-color: #d2cdc3;
  background: #ebe8e1;
  color: #555c69;
  box-shadow: inset 0 -3px 0 #d7d2c8;
  font-size: 10px;
}

.coverage-audit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.coverage-audit-grid > span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #e0dcd3;
  border-radius: 12px;
  background: rgba(246, 244, 238, .82);
}

.coverage-audit-grid small {
  color: #8b7380;
  font: 600 8px 'DM Mono';
  letter-spacing: .06em;
}

.coverage-audit-grid strong {
  overflow: hidden;
  color: var(--research-ink);
  font: 700 17px 'DM Mono';
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coverage-audit-grid em {
  overflow: hidden;
  color: #858a95;
  font-size: 8px;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.coverage-actual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 101, 79, .38);
  border-radius: 13px;
  background: #fff2ed;
  color: #7c2c20;
  font-size: 10px;
  line-height: 1.55;
}

.coverage-actual strong {
  color: var(--research-red);
  font: 700 18px 'DM Mono';
}

.coverage-actual > div:first-child { display: grid; gap: 4px; min-width: 220px; }
.coverage-actual > div:first-child > span { max-width: 520px; color: #8a594e; font-size: 9px; }
.coverage-result-buckets { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 7px; flex: 1 1 620px; }
.coverage-result-bucket { display: grid; gap: 6px; min-width: 0; padding: 9px; border: 1px solid #e7d9cf; border-radius: 9px; background: rgba(255, 255, 255, .8); }
.coverage-result-bucket > small { color: #8b756c; font: 700 7px 'DM Mono'; letter-spacing: .04em; }
.coverage-result-bucket > strong { display: flex; flex-wrap: wrap; gap: 5px; }
.coverage-result-bucket > strong > b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 700 10px 'DM Mono'; }
.coverage-result-bucket > strong > em { color: #999187; font: 500 9px/28px 'Be Vietnam Pro'; }
.coverage-result-bucket.signal-hit { border-color: #a9c854; background: #f5fbdc; }
.coverage-result-bucket.signal-hit > strong > b { background: var(--research-lime); color: #2d3b0d; }
.coverage-result-bucket.pool-hit { border-color: #edbd91; background: #fff8ef; }
.coverage-result-bucket.pool-hit > strong > b { background: #ffe4c7; color: #8b4a23; }
.coverage-result-bucket.outside-hit { border-color: #edaaa3; background: #fff4f2; }
.coverage-result-bucket.outside-hit > strong > b { background: #d83a31; color: #fff; }

.coverage-warning {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #ebd7a3;
  border-radius: 11px;
  background: #fff9e8;
  color: #75643d;
  font-size: 9px;
  line-height: 1.6;
}

.coverage-warning b {
  color: #5c4c29;
}

.coverage-method-alert {
  margin: 12px 0;
  padding: 11px 14px;
  border: 1px solid rgba(127, 157, 41, .38);
  border-radius: 11px;
  background: #f7fce8;
  color: #52631f;
  font-size: 10px;
  line-height: 1.55;
}

.coverage-method-alert b {
  color: #34430f;
}

.planner-hit-forecast {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(360px, 1.2fr);
  gap: 18px;
  align-items: center;
  margin: 12px 0;
  padding: 16px 18px;
  border: 1px solid rgba(86, 113, 154, .25);
  border-radius: 14px;
  background: linear-gradient(135deg, #f7f9ff, #fbfff0);
}

.planner-hit-forecast small {
  color: #77839a;
  font: 700 9px 'DM Mono';
  letter-spacing: .08em;
}

.planner-hit-forecast h3 {
  margin: 7px 0 5px;
  font-size: 18px;
}

.planner-hit-forecast h3 b { color: #55720e; }
.planner-hit-forecast p { margin: 0; color: #697285; font-size: 10px; line-height: 1.55; }

.planner-hit-forecast-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.planner-hit-forecast-kpis span {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .78);
}

.planner-hit-forecast-kpis b { color: #17202e; font: 700 16px 'DM Mono'; }
.planner-hit-forecast-kpis small { letter-spacing: 0; line-height: 1.35; }

.top20-zero-signal {
  display: grid;
  grid-template-columns: 42px minmax(240px, .75fr) minmax(320px, 1.25fr);
  gap: 13px;
  align-items: center;
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid #c9d5ad;
  border-radius: 14px;
  background: #f8fbed;
}

.top20-zero-signal.watch {
  border-color: #edb47f;
  background: linear-gradient(135deg, #fff8ef, #fffdf8);
}

.top20-zero-signal.alert {
  border-color: #e4776e;
  background: linear-gradient(135deg, #fff0ee, #fff8f3);
  box-shadow: 0 9px 24px rgba(178, 50, 42, .10);
}

.zero-signal-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #758d35;
  color: #fff;
  font: 800 18px 'DM Mono';
}

.top20-zero-signal.watch .zero-signal-icon { background: #d97832; }
.top20-zero-signal.alert .zero-signal-icon { background: #d7352b; }
.top20-zero-signal > div:nth-child(2) { min-width: 0; }
.top20-zero-signal > div:nth-child(2) > small { color: #798464; font: 700 8px 'DM Mono'; letter-spacing: .08em; }
.top20-zero-signal.watch > div:nth-child(2) > small { color: #a46434; }
.top20-zero-signal.alert > div:nth-child(2) > small { color: #a64842; }
.top20-zero-signal h3 { margin: 5px 0 4px; color: #26320e; font-size: 15px; line-height: 1.3; }
.top20-zero-signal.watch h3 { color: #7b3c18; }
.top20-zero-signal.alert h3 { color: #852922; }
.top20-zero-signal p { margin: 0; color: #758066; font-size: 8px; line-height: 1.55; }
.top20-zero-signal:is(.watch, .alert) p { color: #8a6650; }

.zero-signal-suspects {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-left: 13px;
  border-left: 1px solid rgba(165, 92, 51, .2);
}

.zero-signal-suspects > small { color: #9a6849; font: 700 7px 'DM Mono'; letter-spacing: .06em; }
.zero-signal-suspects > div { display: flex; flex-wrap: wrap; gap: 5px; }
.zero-signal-suspects span { display: flex; align-items: center; gap: 5px; max-width: 145px; padding: 4px 7px 4px 4px; border: 1px solid #efd1bd; border-radius: 999px; background: rgba(255, 255, 255, .82); }
.zero-signal-suspects span.elevated { border-color: #e67369; }
.zero-signal-suspects span.attention { border-color: #efaa77; }
.zero-signal-suspects b { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #d8643a; color: #fff; font: 700 9px 'DM Mono'; }
.zero-signal-suspects span.elevated b { background: #cf332b; }
.zero-signal-suspects em { overflow: hidden; color: #8b5c43; font-size: 7px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

.top20-signal-audit { margin: 14px 0 20px; padding: 20px; border: 1px solid #ccd5e3; border-radius: 17px; background: linear-gradient(145deg, #f7f9fd, #fff 55%, #f8fce9); box-shadow: 0 12px 28px rgba(33, 44, 63, .06); }
.top20-audit-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.top20-audit-head small,
.top20-regimes > div > small { color: #7b879b; font: 700 8px 'DM Mono'; letter-spacing: .09em; }
.top20-audit-head h3 { margin: 7px 0 5px; font-size: 21px; letter-spacing: -.035em; }
.top20-audit-head p { max-width: 820px; margin: 0; color: #667184; font-size: 10px; line-height: 1.6; }
.top20-audit-head > strong { display: grid; width: 54px; height: 54px; flex: 0 0 auto; place-items: center; border-radius: 16px; background: var(--research-ink); color: var(--research-lime); font: 700 18px 'DM Mono'; }
.top20-audit-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.top20-audit-kpis > span { display: grid; gap: 4px; min-width: 0; padding: 12px; border: 1px solid #e2e5ea; border-radius: 11px; background: rgba(255, 255, 255, .88); }
.top20-audit-kpis small { color: #8b94a3; font: 700 7px 'DM Mono'; letter-spacing: .06em; }
.top20-audit-kpis b { color: #17202e; font: 700 18px 'DM Mono'; }
.top20-audit-kpis em { overflow: hidden; color: #7a8391; font-size: 8px; font-style: normal; line-height: 1.35; text-overflow: ellipsis; }
.top20-regimes { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .75fr); gap: 10px; margin-top: 10px; }
.top20-regimes > div { display: flex; align-content: flex-start; flex-wrap: wrap; gap: 7px; padding: 13px; border: 1px solid #e2e0d9; border-radius: 12px; background: rgba(248, 247, 243, .78); }
.top20-regimes > div > small { flex-basis: 100%; }
.top20-regime { display: grid; gap: 3px; min-width: 155px; flex: 1 1 155px; padding: 10px; border-left: 3px solid #9aa5b5; border-radius: 8px; background: #fff; }
.top20-regime.risk { border-left-color: #df3b32; background: #fff4f2; }
.top20-regime.positive { border-left-color: #86a82c; background: #f7fce8; }
.top20-regime b { color: #202936; font: 700 13px 'DM Mono'; }
.top20-regime em { color: #606b7d; font-size: 8px; font-style: normal; }
.top20-regime i { color: #9299a5; font-size: 7px; font-style: normal; line-height: 1.4; }
.top20-no-regime { margin: 0; color: #77808f; font-size: 9px; line-height: 1.5; }
.outside-rule-audit > span { display: grid; flex: 1 1 100%; gap: 3px; padding: 8px 10px; border-radius: 8px; background: #fff; }
.outside-rule-audit > span b { color: #603e2e; font-size: 9px; }
.outside-rule-audit > span small { color: #8b796f; font-size: 8px; }
.signal-rule-guide { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; padding: 14px; border: 1px solid #cfd9ad; border-radius: 13px; background: #f9fcec; }
.signal-rule-guide > div { min-width: 0; }
.signal-rule-guide > div > small,
.signal-rule-guide-head > small { color: #718052; font: 700 8px 'DM Mono'; letter-spacing: .07em; }
.signal-rule-guide-head { display: grid; align-content: start; gap: 6px; }
.signal-rule-guide-head strong { color: #24300e; font-size: 14px; line-height: 1.3; }
.signal-rule-guide-head p,
.signal-rule-cards > p { margin: 0; color: #727b61; font-size: 8px; line-height: 1.5; }
.signal-rule-cards { display: grid; gap: 6px; margin-top: 7px; }
.signal-rule-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 7px; border: 1px solid #e3e7d5; border-radius: 10px; background: #fff; }
.signal-rule-card > b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eef2e2; color: #4b572d; font: 700 13px 'DM Mono'; }
.signal-rule-card > span { display: grid; gap: 2px; min-width: 0; }
.signal-rule-card > span strong { overflow: hidden; color: #303727; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.signal-rule-card > span small { overflow: hidden; color: #899080; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.signal-rule-card > em { max-width: 70px; padding: 4px 6px; border-radius: 999px; background: #eef0ea; color: #6d7465; font: 700 6px/1.25 'DM Mono'; font-style: normal; text-align: center; text-transform: uppercase; }
.signal-rule-card.elevated { border-color: #9fbd42; box-shadow: inset 3px 0 0 #92b72d; }
.signal-rule-card.elevated > b { background: var(--research-lime); color: #26320d; }
.signal-rule-card.elevated > em { background: #dfff77; color: #34470b; }
.signal-rule-card.attention { border-color: #efc0a5; }
.signal-rule-card.attention > b { background: #fff0e6; color: #a14b2c; }
.signal-rule-card.attention > em { background: #fff0e6; color: #944b31; }
.signal-fusion-strip { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; padding: 13px; border: 1px solid rgba(121, 148, 50, .28); border-radius: 12px; background: rgba(247, 251, 232, .8); }
.signal-fusion-strip > div { min-width: 0; }
.signal-fusion-strip > div > small,
.signal-fusion-title > small { color: #76845a; font: 700 8px 'DM Mono'; letter-spacing: .07em; }
.signal-fusion-title { display: grid; align-content: start; gap: 5px; }
.signal-fusion-title strong { color: #273214; font-size: 13px; }
.signal-fusion-title p,
.signal-fusion-chips > p { margin: 0; color: #778064; font-size: 8px; line-height: 1.5; }
.signal-fusion-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.signal-fusion-chip { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1px 6px; min-width: 92px; padding: 7px 9px; border: 1px solid #dbe5b8; border-radius: 10px; background: #fff; }
.signal-fusion-chip.outside { border-color: #f0c6ae; background: #fff9f5; }
.signal-fusion-chip b { grid-row: 1 / 3; color: #26320d; font: 700 15px 'DM Mono'; }
.signal-fusion-chip.outside b { color: #a64e2d; }
.signal-fusion-chip em { color: #586c26; font: 700 8px 'DM Mono'; font-style: normal; }
.signal-fusion-chip small { overflow: hidden; color: #8a9278; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.top20-audit-warning { margin: 11px 0 0; color: #8a6b55; font-size: 8px; line-height: 1.55; }

.outcome-candidate-strip { display: grid; grid-template-columns: minmax(230px, .62fr) minmax(0, 1.38fr); gap: 14px; align-items: center; margin: 14px 0 18px; padding: 15px; border: 1px solid #a99ad3; border-radius: 14px; background: linear-gradient(135deg, #f8f5ff, #fff); box-shadow: 0 9px 24px rgba(83, 55, 145, .08); }
.outcome-candidate-strip.empty { grid-template-columns: 1fr; border-style: dashed; box-shadow: none; }
.outcome-candidate-strip > div:first-child { display: grid; gap: 4px; }
.outcome-candidate-strip > div:first-child > small { color: #77649e; font: 700 8px 'DM Mono'; letter-spacing: .08em; }
.outcome-candidate-strip > div:first-child > strong { color: #302447; font-size: 15px; }
.outcome-candidate-strip p { margin: 0; color: #7e758d; font-size: 8px; line-height: 1.5; }
.outcome-candidate-strip > div:last-child { display: flex; flex-wrap: wrap; gap: 7px; }
.outcome-candidate-chip { display: grid; grid-template-columns: 34px minmax(90px, 1fr); align-items: center; gap: 7px; min-width: 155px; flex: 1 1 155px; padding: 7px; border: 1px solid #c9bde6; border-radius: 10px; background: #fff; }
.outcome-candidate-chip > b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #7252ae; color: #fff; font: 700 12px 'DM Mono'; }
.outcome-candidate-chip.outside > b { background: #8a4774; }
.outcome-candidate-chip > span { display: grid; gap: 2px; min-width: 0; }
.outcome-candidate-chip > span strong { overflow: hidden; color: #3c3152; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.outcome-candidate-chip > span small { color: #887d97; font-size: 7px; line-height: 1.35; }

.unmarked-pool-audit {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid #9db6d5;
  border-radius: 15px;
  background: linear-gradient(135deg, #f3f8ff, #fff);
  box-shadow: 0 10px 28px rgba(53, 91, 139, .08);
}

.unmarked-audit-head {
  display: flex;
  gap: 14px;
  align-items: start;
  justify-content: space-between;
}

.unmarked-audit-head > div { display: grid; gap: 4px; }
.unmarked-audit-head small,
.unmarked-audit-groups small { color: #59769a; font: 700 8px 'DM Mono'; letter-spacing: .08em; }
.unmarked-audit-head h3 { margin: 0; color: #203a59; font-size: 16px; }
.unmarked-audit-head p { max-width: 760px; margin: 0; color: #6c7d91; font-size: 9px; line-height: 1.5; }
.unmarked-audit-head > span { flex: 0 0 auto; padding: 8px 11px; border: 1px solid #b7cae2; border-radius: 999px; background: #fff; color: #315b88; font: 700 10px 'DM Mono'; }

.unmarked-audit-groups { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 10px; }
.unmarked-audit-groups > div { display: grid; gap: 7px; padding: 11px; border: 1px solid #cedbea; border-radius: 11px; background: rgba(255, 255, 255, .75); }
.unmarked-audit-groups > div > div { display: flex; flex-wrap: wrap; gap: 6px; }
.unmarked-audit-groups b { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #dfe8f3; color: #3e5877; font: 700 10px 'DM Mono'; }
.unmarked-audit-groups > div:last-child b { background: #dff56f; color: #26380a; }
.unmarked-audit-groups em { color: #7c8795; font-size: 9px; }

.unmarked-audit-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.unmarked-audit-kpis > span { display: grid; gap: 3px; min-height: 75px; padding: 10px; border: 1px solid #d4e0ed; border-radius: 10px; background: #fff; }
.unmarked-audit-kpis small { color: #6c8098; font: 700 7px 'DM Mono'; letter-spacing: .05em; }
.unmarked-audit-kpis b { color: #243e5e; font: 700 17px 'DM Mono'; }
.unmarked-audit-kpis em { color: #7b8999; font-size: 7px; font-style: normal; line-height: 1.4; }

.unmarked-pool-audit details { padding: 10px 11px; border: 1px dashed #b9cbe0; border-radius: 10px; }
.unmarked-pool-audit summary { cursor: pointer; color: #486b92; font-size: 9px; font-weight: 700; }
.unmarked-history-rows { display: grid; gap: 6px; margin-top: 10px; }
.unmarked-history-rows span { display: grid; grid-template-columns: 62px 1fr; gap: 9px; padding-bottom: 6px; border-bottom: 1px solid #e5ebf2; }
.unmarked-history-rows b { color: #304f72; font: 700 9px 'DM Mono'; }
.unmarked-history-rows em,
.unmarked-pool-audit details p { margin: 0; color: #758394; font-size: 8px; font-style: normal; line-height: 1.5; }
.unmarked-pool-audit details p { margin-top: 9px; }
.unmarked-audit-actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.unmarked-audit-actions p { margin: 0; color: #586e87; font-size: 9px; line-height: 1.5; }
.unmarked-audit-actions button { flex: 0 0 auto; }

.coverage-candidate.is-outcome-candidate,
.coverage-excluded-candidate.is-outcome-candidate { position: relative; }
.is-outcome-candidate .coverage-number:not(.is-actual-hit):not(.is-actual-outside) { box-shadow: 0 0 0 3px rgba(114, 82, 174, .25), inset 0 -3px 0 rgba(74, 48, 121, .13); }
.outcome-candidate-badge { position: absolute; right: -8px; bottom: 13px; z-index: 5; display: grid; place-items: center; width: 22px; height: 17px; border: 2px solid #fff; border-radius: 999px; background: #7252ae; color: #fff; font: 800 7px 'DM Mono'; font-style: normal; box-shadow: 0 3px 8px rgba(69, 43, 116, .25); }

.coverage-excluded-candidate.is-zero-signal-suspect { position: relative; }
.is-zero-signal-suspect .coverage-number:not(.is-actual-hit):not(.is-actual-outside) {
  outline: 2px dashed #db713d;
  outline-offset: 3px;
}

.zero-signal-suspect-badge {
  position: absolute;
  top: -10px;
  left: -8px;
  z-index: 6;
  display: grid;
  width: 21px;
  height: 18px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d9532d;
  color: #fff;
  font: 800 7px 'DM Mono';
  font-style: normal;
  box-shadow: 0 3px 8px rgba(138, 58, 28, .24);
}

.inline-pool-forecast {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, max-content)) 1fr;
  gap: 10px;
  align-items: center;
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(123, 151, 51, .25);
  border-radius: 11px;
  background: rgba(246, 252, 228, .78);
}

.inline-pool-forecast span { display: grid; gap: 3px; padding-right: 12px; border-right: 1px solid rgba(74, 91, 38, .14); }
.inline-pool-forecast small { color: #778260; font: 700 8px 'DM Mono'; letter-spacing: .06em; }
.inline-pool-forecast b { color: #34430f; font: 700 13px 'DM Mono'; }
.inline-pool-forecast p { margin: 0; color: #6f7860; font-size: 9px; line-height: 1.45; }

.coverage-excluded > .inline-pool-forecast {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  min-height: 0;
}

.coverage-excluded > .inline-pool-forecast span {
  min-width: 0;
  padding-right: 8px;
}

.coverage-excluded > .inline-pool-forecast p {
  grid-column: 1 / -1;
}

.coverage-candidate.is-likely-hit,
.coverage-excluded-candidate.is-likely-hit { position: relative; }

.likely-hit-badge {
  position: absolute;
  top: -8px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #26340e;
  color: #d9ff54;
  font: 700 10px/1 sans-serif;
  box-shadow: 0 3px 8px rgba(27, 39, 8, .25);
  z-index: 4;
}

.is-likely-hit .coverage-number:not(.is-actual-hit):not(.is-actual-outside) {
  outline: 2px solid rgba(130, 169, 29, .62);
  outline-offset: 2px;
}

.coverage-number.is-boundary-watch { position: relative; overflow: visible; }

.boundary-watch-badge {
  position: absolute;
  top: -9px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 17px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff4d9;
  color: #b16a18;
  font: 800 11px/1 sans-serif;
  box-shadow: 0 3px 8px rgba(92, 53, 8, .2);
  z-index: 3;
}

.coverage-number.is-counter-model-watch { position: relative; overflow: visible; }

.counter-model-badge {
  position: absolute;
  bottom: -9px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e9efff;
  color: #435f9d;
  font: 800 11px/1 sans-serif;
  box-shadow: 0 3px 8px rgba(31, 54, 103, .2);
  z-index: 3;
}

@media (max-width: 760px) {
  .planner-hit-forecast { grid-template-columns: 1fr; }
  .planner-hit-forecast-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top20-audit-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top20-regimes { grid-template-columns: 1fr; }
  .signal-rule-guide { grid-template-columns: 1fr; }
  .signal-fusion-strip { grid-template-columns: 1fr; }
  .outcome-candidate-strip { grid-template-columns: 1fr; }
  .inline-pool-forecast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inline-pool-forecast p { grid-column: 1 / -1; }
}

.coverage-number.is-actual-hit {
  border-color: #ff654f;
  outline: 3px solid #ff654f;
  outline-offset: 2px;
  background: #ff654f;
  color: #fff;
  box-shadow: inset 0 -3px 0 rgba(112, 27, 16, .16), 0 8px 18px rgba(255, 101, 79, .3);
}

.coverage-number.is-actual-outside {
  border-color: #c92f27;
  outline: 3px solid #c92f27;
  outline-offset: 2px;
  background: #fff;
  color: #a4231d;
  box-shadow: inset 0 -3px 0 #f2cdc8, 0 8px 18px rgba(201, 47, 39, .18);
}

.coverage-number.is-actual-hit::after,
.coverage-number.is-actual-outside::after {
  position: absolute;
  top: -8px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--research-ink);
  color: #fff;
  font: 700 8px 'DM Mono';
}

.coverage-number.is-actual-hit::after {
  content: 'KQ';
}

.coverage-number.is-actual-outside::after {
  content: 'KQ';
  background: #c92f27;
}

.coverage-excluded > summary:focus-visible,
.signal-diagnostics > summary:focus-visible {
  outline: 3px solid rgba(215, 53, 43, .42);
  outline-offset: 4px;
  border-radius: 8px;
}

.signal-diagnostics {
  padding: 0 18px 18px;
  border: 1px dashed #cfc9bd;
  border-radius: 16px;
  background: rgba(255, 255, 255, .56);
}

.signal-diagnostics > summary {
  min-height: 70px;
}

.signal-diagnostics > summary small {
  color: #987380;
  font: 600 8px 'DM Mono';
  letter-spacing: .08em;
}

.signal-diagnostics > summary strong {
  color: var(--research-ink);
  font-size: 13px;
}

.signal-diagnostics > summary > b {
  color: #737985;
  font: 600 9px 'DM Mono';
  white-space: nowrap;
}

.signal-diagnostics[open] > summary > b {
  color: var(--research-red);
}

.signal-diagnostics .research-signal-grid {
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid #ddd8ce;
}

.research-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.research-signal-grid > article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--research-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 13px 34px rgba(37, 31, 23, .045);
}

.research-signal-grid > article:first-child {
  border-color: #dbe7a4;
  background: linear-gradient(145deg, #fbfdec, #fff);
}

.research-signal-grid > article:nth-child(2) {
  border-color: #efcfbf;
  background: linear-gradient(145deg, #fff8f2, #fff);
}

.research-signal-grid h3 {
  margin: 0 0 7px;
  font-size: 19px;
  letter-spacing: -.03em;
}

.research-signal-grid p {
  min-height: 45px;
  margin: 0 0 17px;
  color: var(--research-muted);
  font-size: 10px;
  line-height: 1.55;
}

.research-ball-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.research-ball.priority {
  background: var(--research-ink);
  color: #fff;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .11);
}

.research-ball.rescue {
  background: var(--research-lime);
  box-shadow: inset 0 -3px 0 rgba(91, 111, 23, .14);
}

.convergence-shortlist {
  padding: 12px;
  border: 1px solid #dce6a8;
  border-radius: 12px;
  background: #fbfff0;
}

.research-ball.suspicious {
  background: var(--research-lime);
  color: var(--research-ink);
  box-shadow: inset 0 -3px 0 #c6dc68;
}

.use-convergence-shortlist {
  align-self: flex-start;
  margin-top: 12px;
  border-color: var(--research-ink);
  background: var(--research-ink);
  color: #fff;
}

.convergence-extended {
  margin-top: 13px;
  padding: 11px 12px;
  border: 1px solid #e4e1d9;
  border-radius: 10px;
  background: #faf9f6;
}

.convergence-extended summary {
  cursor: pointer;
  color: #666d79;
  font: 9px 'DM Mono';
}

.research-signal-grid .convergence-extended > p,
.research-signal-grid .convergence-audit-note {
  min-height: 0;
  color: #8b909a;
  font-size: 8px;
}

.research-signal-grid .convergence-extended > p { margin: 9px 0; }
.research-signal-grid .convergence-audit-note { margin: 12px 0 0; }

.research-stat-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.research-stat-list span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 9px;
  background: #f2f0ea;
}

.research-stat-list b {
  font: 700 12px 'DM Mono';
}

.research-stat-list small {
  overflow: hidden;
  color: #858a95;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-coverage-summary {
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid #e5e1d8;
}

.research-ball-row + .signal-coverage-summary,
.research-stat-list + .signal-coverage-summary {
  margin-top: 18px;
}

.signal-coverage-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.signal-coverage-head > div {
  display: grid;
  gap: 4px;
}

.signal-coverage-head small {
  color: #8b7180;
  font: 500 8px 'DM Mono';
  letter-spacing: .08em;
}

.signal-coverage-head > div > strong {
  color: var(--research-ink);
  font: 700 18px 'DM Mono';
}

.signal-actual-result {
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--research-orange);
  color: #fff;
  font: 600 9px 'DM Mono';
  white-space: nowrap;
}

.signal-coverage-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 11px;
}

.signal-coverage-kpis span {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(239, 237, 231, .75);
  color: #858a94;
  font-size: 8px;
}

.signal-coverage-kpis b {
  color: var(--research-ink);
  font: 700 11px 'DM Mono';
}

.research-signal-grid .signal-coverage-summary > p {
  min-height: 0;
  margin: 10px 0 0;
  color: #818691;
  font-size: 8px;
  line-height: 1.55;
}

[data-signal-number] {
  position: relative;
}

[data-signal-number].is-forecast-highlight {
  outline: 2px dashed #7658d6;
  outline-offset: 2px;
}

[data-signal-number].is-forecast-highlight::before {
  content: '◆';
  position: absolute;
  z-index: 2;
  top: -7px;
  left: -5px;
  color: #7658d6;
  font-size: 8px;
  text-shadow: 0 0 0 #fff, 0 1px 3px #fff;
}

.signal-revealed [data-signal-number].is-actual-miss {
  opacity: .48;
}

.signal-revealed [data-signal-number].is-actual-hit {
  z-index: 1;
  border-color: #ff654f;
  outline: 2px solid #ff654f;
  outline-offset: 2px;
  background: #ff654f;
  color: #fff;
  opacity: 1;
  box-shadow: inset 0 -3px 0 rgba(113, 28, 17, .14), 0 7px 15px rgba(255, 101, 79, .23);
}

.signal-revealed [data-signal-number].is-actual-hit small,
.signal-revealed [data-signal-number].is-actual-hit b {
  color: #fff;
}

.signal-revealed [data-signal-number].is-actual-hit::after {
  content: '✓';
  position: absolute;
  z-index: 3;
  top: -8px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--research-ink);
  color: #fff;
  font: 700 8px 'DM Mono';
}

.ticket-builder {
  border-color: #d8d4ca;
  background:
    linear-gradient(rgba(255, 255, 255, .96), rgba(255, 255, 255, .96)),
    radial-gradient(circle at 93% 5%, rgba(216, 245, 106, .28), transparent 26%);
}

.selected-ticket-preview {
  display: flex;
  min-height: 54px;
  max-width: 520px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.selected-ball {
  width: 46px;
  height: 46px;
  background: var(--research-ink);
  color: #fff;
  font-size: 12px;
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, .1), 0 8px 18px rgba(17, 23, 34, .12);
}

.selected-ball.empty {
  border: 1px dashed #c7c3ba;
  background: #f1efe9;
  color: #aaaeb6;
  box-shadow: none;
}

.selected-ball.bonus {
  background: #fff8f3;
}

.ticket-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.ticket-quick-actions .ghost {
  min-height: 44px;
  border-radius: 9px;
  background: #faf9f5;
  font-size: 11px;
}

.research-ticket-generator {
  margin: 0 0 26px;
  padding: 19px;
  border: 1px solid #d9dfbd;
  border-radius: 15px;
  background: linear-gradient(135deg, #fbfff0, #f6f8ed);
}

.research-ticket-generator-head,
.research-generator-pool,
.research-generator-actions {
  display: flex;
  align-items: center;
}

.research-ticket-generator-head { justify-content: space-between; gap: 24px; align-items: flex-start; }
.research-ticket-generator-head small { font: 8px 'DM Mono'; letter-spacing: .09em; color: #7b8752; }
.research-ticket-generator-head h3 { margin: 5px 0 7px; font-size: 20px; }
.research-ticket-generator-head p,
.research-generator-note { margin: 0; color: #777c88; font-size: 9px; line-height: 1.55; }
.research-ticket-generator-head > span { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #e8f2bd; color: #4f5b27; font: 8px 'DM Mono'; }
.research-generator-pool { flex-wrap: wrap; gap: 8px; margin-top: 17px; padding-top: 16px; border-top: 1px solid #dfe4c9; }
.generator-pool-ball { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #d1d7b5; border-radius: 50%; background: #fff; font: 600 11px 'DM Mono'; }
.generator-pool-ball.core { background: var(--research-lime); border-color: #c5dc68; }
.generator-pool-ball.selected { background: var(--research-lime); border-color: #aeca43; color: #27320e; cursor: pointer; }
.generator-pool-ball.selected:hover { border-color: var(--research-red); box-shadow: 0 0 0 3px rgba(217, 53, 43, .1); }
.generator-pool-empty { margin: 3px 0; color: #858b78; font-size: 9px; }
.generator-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; }
.generator-picker-head > small { color: #788357; font: 700 8px 'DM Mono'; letter-spacing: .08em; }
.generator-picker-head .ghost { min-height: 31px; padding: 6px 10px; font-size: 8px; }
.generator-number-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(37px, 1fr)); gap: 6px; margin-top: 8px; padding: 12px; border: 1px solid #dde2cd; border-radius: 11px; background: rgba(255, 255, 255, .65); }
.generator-number-choice { display: grid; place-items: center; min-width: 0; height: 35px; border: 1px solid #d9ddcf; border-radius: 9px; background: #fff; color: #626a5b; font: 700 9px 'DM Mono'; transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.generator-number-choice:hover { transform: translateY(-1px); border-color: #a9bb67; }
.generator-number-choice.selected { border-color: #a6c33f; background: var(--research-lime); color: #27320e; box-shadow: inset 0 -2px 0 rgba(75, 96, 21, .14); }
.generator-special { display: flex; align-items: center; gap: 5px; min-height: 35px; margin-left: 7px; padding: 0 10px; border-left: 1px solid #ccd2b3; color: #98532f; font: 8px 'DM Mono'; }
.generator-special b { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--research-orange); color: #fff; font-size: 10px; }
.research-generator-actions { justify-content: space-between; gap: 14px; margin-top: 17px; }
.research-generator-actions label { display: grid; grid-template-columns:auto 112px; align-items:center; gap: 12px; color: #777c88; font: 8px 'DM Mono'; letter-spacing: .07em; }
.research-generator-actions select { min-width: 112px; }
.research-generator-actions .primary { min-width: 250px; }
.research-generator-actions .primary:disabled { cursor: not-allowed; opacity: .5; box-shadow: none; }
.research-generator-note { margin-top: 12px; }

.marked-neighbor-portfolio {
  margin: 14px 0 20px;
  padding: 18px;
  border: 1px solid #d9dfbd;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbfff1, #fff 58%, #fff7f1);
  box-shadow: 0 12px 30px rgba(36, 47, 22, .06);
}

.marked-neighbor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.marked-neighbor-head small,
.marked-history-audit small {
  color: #75824f;
  font: 700 8px 'DM Mono';
  letter-spacing: .08em;
}

.marked-neighbor-head h3 {
  margin: 6px 0;
  font-size: 20px;
}

.marked-neighbor-head p,
.marked-history-audit p,
.marked-audit-warning {
  margin: 0;
  color: #727b68;
  font-size: 9px;
  line-height: 1.55;
}

.marked-neighbor-head .primary {
  min-width: 210px;
}

.marked-ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 15px;
}

.marked-ticket-line {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #e1e3d8;
  border-radius: 10px;
  background: rgba(255, 255, 255, .88);
}

.marked-ticket-line > small { color: #899078; font: 700 7px 'DM Mono'; }
.marked-ticket-line > strong { display: flex; flex-wrap: wrap; gap: 5px; }
.marked-ticket-line > strong b {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #cad798;
  border-radius: 50%;
  background: #f1facd;
  color: #303b16;
  font: 700 8px 'DM Mono';
}
.marked-ticket-line > i { color: #ad5c32; font: 700 8px 'DM Mono'; font-style: normal; }

.marked-coverage-kpis {
  display: grid;
  grid-template-columns: 150px 150px minmax(0, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.marked-coverage-kpis > span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #dce4be;
  border-radius: 10px;
  background: #f7fce7;
}

.marked-coverage-kpis small { color: #7c865e; font: 700 7px 'DM Mono'; letter-spacing: .06em; }
.marked-coverage-kpis strong { color: #293412; font: 700 17px 'DM Mono'; }
.marked-coverage-kpis em { color: #879071; font-size: 7px; font-style: normal; }
.marked-coverage-kpis > p { align-self: center; margin: 0; color: #717967; font-size: 8px; line-height: 1.55; }

.marked-history-audit {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: 12px;
  margin-top: 12px;
  padding: 13px;
  border-radius: 11px;
  background: #1b2330;
  color: #fff;
}

.marked-history-audit strong { display: block; margin: 5px 0; font-size: 13px; }
.marked-history-audit p { color: #b7c0cb; }
.marked-history-audit > em { align-self: center; color: #b7c0cb; font-size: 9px; font-style: normal; }
.marked-winning-examples { display: grid; gap: 5px; }
.marked-winning-examples span { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 5px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.marked-winning-examples span:last-child { padding-bottom: 0; border-bottom: 0; }
.marked-winning-examples b { color: var(--research-lime); font: 700 8px 'DM Mono'; }
.marked-winning-examples em { color: #c8d0da; font-size: 8px; font-style: normal; text-align: right; }
.marked-audit-warning { margin-top: 10px; color: #8b735f; }

.grid-label {
  margin-bottom: 11px;
  color: #777c88;
}

.number-choice-grid {
  display: grid;
  grid-template-columns: repeat(11, 48px);
  gap: 9px;
  justify-content: start;
  margin-bottom: 25px;
}

.number-choice {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #d8d5cd;
  border-radius: 50%;
  background: #f2f0ea;
  color: var(--research-ink);
  font: 600 12px 'DM Mono';
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(17, 23, 34, .07);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.number-choice:hover {
  transform: translateY(-2px);
  border-color: #999eaa;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 23, 34, .08);
}

.number-choice.selected {
  transform: translateY(-2px);
  border-color: var(--research-ink);
  background: var(--research-ink);
  color: #fff;
  box-shadow: 0 0 0 4px var(--research-lime), 0 10px 22px rgba(17, 23, 34, .16);
}

.number-choice.priority:not(.selected)::after {
  content: 'ƯT';
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 17px;
  padding: 0 3px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--research-lime);
  color: #26300c;
  font: 700 7px 'DM Mono';
}

.number-choice.champion:not(.selected) {
  border-color: var(--research-red);
  box-shadow: inset 0 0 0 2px rgba(237, 68, 56, .18), inset 0 -3px 0 rgba(17, 23, 34, .06);
}

.special-choice-grid {
  grid-template-columns: repeat(12, 48px);
}

.lotto-special-research {
  margin: 8px 0 22px;
  padding: 20px;
  border: 1px solid #efcbbb;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffaf6, #fff3eb);
}

.lotto-special-research-head,
.lotto-special-decision,
.lotto-special-recommendation,
.lotto-special-audit {
  display: flex;
  align-items: center;
}

.lotto-special-research-head { justify-content: space-between; gap: 24px; align-items: flex-start; }
.lotto-special-research-head small,
.lotto-special-recommendation small { font: 8px 'DM Mono'; letter-spacing: .09em; color: #a76550; }
.lotto-special-research-head h3 { margin: 5px 0 7px; font-size: 20px; }
.lotto-special-research-head p,
.lotto-special-recommendation p,
.lotto-special-method { margin: 0; color: #777c88; font-size: 9px; line-height: 1.55; }
.lotto-special-status { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #fff0df; color: #98532f; font: 8px 'DM Mono'; }
.lotto-special-status.validated { background: var(--research-lime); color: #34400f; }
.lotto-special-decision { justify-content: space-between; gap: 22px; margin-top: 18px; padding-top: 17px; border-top: 1px solid #efd9ce; }
.lotto-special-recommendation { gap: 13px; }
.lotto-special-recommendation strong { display: block; margin: 3px 0; font-size: 16px; }
.lotto-special-recommendation .ghost { margin-left: 8px; white-space: nowrap; background: #fff; }
.lotto-special-ball { display: grid; place-items: center; flex: 0 0 54px; width: 54px; height: 54px; border-radius: 50%; background: var(--research-orange); color: #fff; font: 700 15px 'DM Mono'; box-shadow: inset 0 -4px 0 rgba(112,27,16,.14); }
.lotto-special-audit { gap: 7px; }
.lotto-special-audit span { display: grid; gap: 3px; min-width: 112px; padding: 10px; border-radius: 9px; background: rgba(255,255,255,.72); }
.lotto-special-audit b { font: 600 14px 'DM Mono'; }
.lotto-special-audit small { color: #8a8f99; font-size: 7px; line-height: 1.4; }
.lotto-special-method { margin-top: 13px; }
.special-choice-grid .number-choice { align-content: center; gap: 1px; }
.special-choice-grid .number-choice b { font: inherit; }
.special-choice-grid .number-choice small { font: 7px 'DM Mono'; color: #999; }
.special-choice-grid .number-choice.special-shortlist { border-color: #ef9d79; background: #fff8f3; }
.special-choice-grid .number-choice.special-recommended { border-color: var(--research-orange); background: #ffe1d2; box-shadow: 0 0 0 3px rgba(255,118,80,.15); }

.special-choice-grid .number-choice.selected {
  border-color: var(--research-orange);
  background: #fff1e9;
  color: #d4472b;
  box-shadow: 0 0 0 4px rgba(255, 118, 80, .22), 0 10px 22px rgba(216, 71, 43, .1);
}

.special-choice-grid .number-choice.selected small { color: #d4472b; }

.ticket-draft-panel {
  margin: 4px 0 18px;
  padding: 16px;
  border: 1px solid #dedad1;
  border-radius: 14px;
  background: #f8f7f3;
}

.ticket-draft-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
}

.ticket-draft-head > div {
  display: grid;
  gap: 4px;
}

.ticket-draft-head small,
.ticket-draft-index small {
  color: #8b7180;
  font: 500 8px 'DM Mono';
  letter-spacing: .11em;
}

.ticket-draft-head strong {
  font-size: 14px;
}

.ticket-draft-head .ghost {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 9px;
  background: #fff;
}

.ticket-draft-list {
  display: grid;
  gap: 8px;
}

.ticket-draft-empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed #cbc6bb;
  border-radius: 11px;
  color: #858a94;
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.ticket-portfolio-audit {
  margin-top: 13px;
  padding: 14px;
  border: 1px solid #d9d5ca;
  border-radius: 12px;
  background: #fff;
}

.portfolio-audit-empty {
  margin: 0;
  color: #8a8f99;
  font-size: 9px;
  text-align: center;
}

.portfolio-audit-head,
.portfolio-audit-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.portfolio-audit-head > div { display: grid; gap: 4px; }
.portfolio-audit-head small { color: #8b7180; font: 8px 'DM Mono'; letter-spacing: .09em; }
.portfolio-audit-head strong { font-size: 14px; }
.portfolio-audit-status { padding: 6px 9px; border-radius: 999px; background: #eef0f3; color: #626a77; font: 8px 'DM Mono'; }
.portfolio-audit-status.good { background: var(--research-lime); color: #394512; }
.portfolio-audit-status.warning { background: #ffe5dc; color: #a44634; }
.portfolio-audit-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; margin-top: 12px; }
.portfolio-audit-grid span { display: grid; gap: 3px; padding: 9px; border-radius: 8px; background: #f4f2ed; }
.portfolio-audit-grid b { font: 600 13px 'DM Mono'; }
.portfolio-audit-grid small { color: #858a94; font-size: 7px; line-height: 1.4; }
.portfolio-audit-warning { margin: 10px 0 0; padding: 9px 10px; border-radius: 8px; background: #fff1eb; color: #9b4a38; font-size: 8px; line-height: 1.5; }
.portfolio-audit-foot { margin-top: 11px; padding-top: 10px; border-top: 1px solid #ebe8e0; }
.portfolio-audit-foot p { margin: 0; color: #8a8f99; font-size: 8px; line-height: 1.5; }
.portfolio-audit-foot .ghost { flex: 0 0 auto; min-height: 36px; background: #faf9f6; }
.ticket-portfolio-audit.locked { border-color: #d2df9e; background: #fbfdf3; }

.ticket-draft-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 68px;
  padding: 10px 11px;
  border: 1px solid #dfdcd4;
  border-radius: 12px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.ticket-draft-line.active {
  border-color: #a6c63a;
  box-shadow: 0 0 0 3px rgba(216, 245, 106, .45);
  transform: translateY(-1px);
}

.ticket-draft-index {
  display: grid;
  place-items: center;
  gap: 3px;
  align-self: stretch;
  border-right: 1px solid #ece8df;
}

.ticket-draft-index strong {
  font: 700 12px 'DM Mono';
}

.ticket-draft-balls,
.ticket-line-actions,
.ticket-commit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.ticket-draft-balls .selected-ball,
.sealed-ticket-line .selected-ball,
.comparison-ticket-row .selected-ball {
  width: 38px;
  height: 38px;
  font-size: 10px;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .1);
}

.ticket-line-actions {
  justify-content: flex-end;
}

.ticket-line-actions .ghost {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f6f4ef;
}

.ticket-line-actions .danger {
  border-color: #f0c5bb;
  color: #bd4d3e;
}

.ticket-line-locked {
  padding: 7px 9px;
  border-radius: 999px;
  background: #eaf6b6;
  color: #45560f;
  font: 600 8px 'DM Mono';
  letter-spacing: .08em;
  white-space: nowrap;
}

.ticket-commit-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin: 4px -8px -8px;
  padding: 18px;
  border: 0;
  border-radius: 14px;
  background: var(--research-ink);
  color: #fff;
}

.ticket-commit-row > div {
  display: grid;
  gap: 4px;
}

.ticket-commit-row strong {
  font-size: 14px;
}

.ticket-commit-row span {
  color: #aab2c0;
  font-size: 10px;
}

.ticket-commit-row .primary {
  min-width: 205px;
  height: 48px;
  border-radius: 11px;
}

.ticket-commit-actions {
  justify-content: flex-end;
  flex-shrink: 0;
}

.ticket-commit-actions .ghost {
  min-height: 48px;
  padding: 0 17px;
  border-color: #4a5568;
  border-radius: 11px;
  background: #242e3e;
  color: #fff;
}

.ticket-commit-actions button b {
  margin-left: 8px;
}

.ticket-builder.locked {
  border-color: #9ebc32;
  box-shadow: 0 16px 45px rgba(103, 123, 29, .11);
}

.ticket-builder.locked .ticket-draft-panel {
  border-color: #d6e5a1;
  background: linear-gradient(145deg, #fbfdf2, #f5f8e8);
}

.compare-ticket-button {
  min-width: 230px;
}

.ticket-commit-row .primary:disabled {
  cursor: not-allowed;
  filter: grayscale(.35);
}

.sealed-session {
  overflow: hidden;
  border-color: #9ebc32;
  background:
    radial-gradient(circle at 92% 8%, rgba(216, 245, 106, .16), transparent 30%),
    linear-gradient(135deg, #101620, #202a3a);
  color: #fff;
  box-shadow: 0 22px 60px rgba(17, 23, 34, .2);
}

.sealed-ticket-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0;
}

.sealed-ticket-line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 11px;
  background: rgba(255, 255, 255, .055);
}

.sealed-ticket-line small {
  color: var(--research-lime);
  font: 500 8px 'DM Mono';
}

.sealed-ticket-line > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sealed-ticket-line .selected-ball {
  background: #fff;
  color: var(--research-ink);
  box-shadow: inset 0 -3px 0 #dfdcd4;
}

.sealed-ticket-line .selected-ball.bonus {
  color: #d4472b;
}

.sealed-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.sealed-head small {
  color: var(--research-lime);
  font: 500 9px 'DM Mono';
  letter-spacing: .1em;
}

.sealed-head h2 {
  margin: 7px 0 5px;
  font-size: 26px;
  letter-spacing: -.04em;
}

.sealed-head p {
  margin: 0;
  color: #aab3c2;
  font-size: 10px;
  line-height: 1.55;
}

.sealed-badge {
  padding: 9px 12px;
  border: 1px solid var(--research-lime);
  border-radius: 999px;
  color: var(--research-lime);
  font: 500 8px 'DM Mono';
  white-space: nowrap;
}

.sealed-ticket {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 22px 0;
}

.sealed-ticket .selected-ball {
  background: #fff;
  color: var(--research-ink);
  box-shadow: inset 0 -4px 0 #dfdcd4;
}

.sealed-ticket .selected-ball.bonus {
  color: #d4472b;
}

.sealed-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sealed-meta div {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 10px;
  background: rgba(255, 255, 255, .055);
}

.sealed-meta b {
  display: block;
  overflow: hidden;
  color: var(--research-lime);
  font: 600 10px 'DM Mono';
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sealed-meta span {
  color: #929dad;
  font-size: 8px;
}

.sealed-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}

.sealed-actions .ghost {
  border-color: #465267;
  background: transparent;
  color: #fff;
}

.sealed-actions .primary {
  min-width: 235px;
}

.comparison-result {
  border-color: #e8b198;
  background: linear-gradient(145deg, #fff8f3, #fff);
}

.comparison-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.comparison-head h2 {
  margin: 5px 0;
  font-size: 28px;
  letter-spacing: -.045em;
}

.comparison-head span {
  color: var(--research-muted);
  font-size: 11px;
}

.comparison-score {
  color: var(--research-red);
  font: 700 43px 'DM Mono';
  text-align: right;
}

.comparison-score small {
  display: block;
  margin-top: 2px;
  color: #858a94;
  font: 500 8px 'DM Mono';
  letter-spacing: .08em;
}

.inline-comparison {
  margin-top: 20px;
  padding: 20px;
  border-radius: 15px;
}

.comparison-actual-summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: var(--research-ink);
  color: #fff;
}

.comparison-actual-summary > div:first-child {
  display: grid;
  gap: 5px;
}

.comparison-actual-summary small {
  color: var(--research-lime);
  font: 500 8px 'DM Mono';
  letter-spacing: .08em;
}

.comparison-actual-summary strong {
  font-size: 12px;
}

.comparison-actual-summary .actual-ball {
  background: #fff;
  color: var(--research-ink);
}

.comparison-ticket-results {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.comparison-ticket-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 95px;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid #e3dfd6;
  border-radius: 12px;
  background: #fff;
}

.comparison-ticket-row.best {
  border-color: #a6c63a;
  box-shadow: inset 4px 0 0 var(--research-lime);
}

.comparison-line-label,
.comparison-line-score {
  display: grid;
  gap: 4px;
}

.comparison-line-label small {
  color: #8b7180;
  font: 500 8px 'DM Mono';
}

.comparison-line-label strong {
  font-size: 10px;
}

.comparison-line-score {
  justify-items: end;
}

.comparison-line-score strong {
  color: var(--research-red);
  font: 700 20px 'DM Mono';
}

.comparison-line-score span {
  color: #858a94;
  font-size: 8px;
  text-align: right;
}

.comparison-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 22px;
}

.comparison-ticket,
.comparison-actual {
  padding: 18px;
  border: 1px solid var(--research-line);
  border-radius: 14px;
  background: #fff;
}

.comparison-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.actual-ball.matched,
.selected-ball.matched {
  outline: 2px solid var(--research-ink);
  background: var(--research-lime);
  color: var(--research-ink);
}

.comparison-arrow {
  color: var(--research-red);
  font-size: 25px;
}

.comparison-verdict {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 10px;
  background: #f0eee8;
  color: #5d616b;
  font-size: 10px;
  line-height: 1.55;
}

.research-page #researchToast {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 17px;
  border-radius: 11px;
  background: var(--research-ink);
  color: #fff;
  font-size: 11px;
  opacity: 0;
  transform: translateY(90px);
  transition: opacity .2s ease, transform .2s ease;
}

.research-page #researchToast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .research-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #historicalTargetField:not([hidden]),
  #futureTargetField:not([hidden]) {
    grid-column: span 2;
  }

  .coverage-levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coverage-board {
    grid-template-columns: 1fr;
  }

  .research-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-signal-grid > article:last-child {
    grid-column: 1 / -1;
  }

  .number-choice-grid {
    grid-template-columns: repeat(9, 48px);
  }

  .special-choice-grid {
    grid-template-columns: repeat(12, 48px);
  }
}

@media (max-width: 820px) {
  .unmarked-audit-groups,
  .unmarked-audit-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .unmarked-audit-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .research-hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 48px;
  }

  .research-flow {
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
  }

  .coverage-planner-head,
  .coverage-pool-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .portfolio-objective-research {
    grid-template-columns: 1fr;
  }

  .portfolio-objective-research > details {
    grid-column: auto;
  }

  .top20-zero-signal {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .zero-signal-suspects {
    grid-column: 1 / -1;
    padding: 10px 0 0;
    border-top: 1px solid rgba(165, 92, 51, .2);
    border-left: 0;
  }

  .decision-ticket {
    grid-template-columns: 1fr;
  }

  .decision-ticket-pick {
    justify-items: start;
    width: 100%;
  }

  .decision-ticket-balls {
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
  }

  .coverage-audit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-references,
  .research-signal-grid {
    grid-template-columns: 1fr;
  }

  .research-signal-grid > article:last-child {
    grid-column: auto;
  }

  .research-section-head,
  .ticket-builder-head,
  .research-integrity-card,
  .ticket-commit-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .selected-ticket-preview,
  .integrity-pills {
    max-width: none;
    justify-content: flex-start;
  }

  .number-choice-grid {
    grid-template-columns: repeat(7, 46px);
  }

  .number-choice {
    width: 46px;
    height: 46px;
  }

  .special-choice-grid {
    grid-template-columns: repeat(6, 46px);
  }

  .portfolio-audit-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }

  .research-ticket-generator-head,
  .research-generator-actions,
  .marked-neighbor-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .research-generator-actions .primary {
    width: 100%;
  }

  .marked-neighbor-head .primary { width: 100%; }
  .marked-ticket-grid,
  .marked-history-audit,
  .marked-coverage-kpis { grid-template-columns: 1fr; }

  .lotto-special-decision {
    align-items: flex-start;
    flex-direction: column;
  }

  .lotto-special-audit {
    width: 100%;
    flex-wrap: wrap;
  }

  .lotto-special-audit span {
    flex: 1 1 112px;
  }

  .sealed-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticket-commit-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .sealed-ticket-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .unmarked-audit-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .unmarked-audit-groups,
  .unmarked-audit-kpis {
    grid-template-columns: 1fr;
  }

  .portfolio-objective-kpis,
  .interaction-evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top20-zero-signal {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .zero-signal-icon {
    width: 34px;
    height: 34px;
  }

  .zero-signal-suspects {
    grid-column: auto;
  }

  .zero-signal-suspects span {
    max-width: 100%;
  }

  .research-main {
    padding: 0 14px 65px;
  }

  .portfolio-audit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portfolio-audit-head,
  .portfolio-audit-foot { align-items: flex-start; flex-direction: column; }
  .portfolio-audit-foot .ghost { width: 100%; }

  .research-ticket-generator {
    padding: 16px;
  }

  .research-generator-actions label {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .lotto-special-research {
    padding: 16px;
  }

  .lotto-special-research-head,
  .lotto-special-recommendation {
    align-items: flex-start;
    flex-direction: column;
  }

  .lotto-special-recommendation .ghost {
    width: 100%;
    margin-left: 0;
  }

  .decision-ticket {
    padding: 17px;
  }

  .decision-ticket-pick .primary {
    width: 100%;
  }

  .research-topbar {
    padding: 0 14px;
  }

  .research-back {
    font-size: 0;
  }

  .research-back::after {
    content: '←';
    font-size: 20px;
  }

  .research-hero h1 {
    font-size: 43px;
  }

  .research-controls {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  #historicalTargetField:not([hidden]),
  #futureTargetField:not([hidden]) {
    grid-column: auto;
  }

  .research-notice,
  .sealed-head,
  .comparison-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .coverage-planner {
    padding: 19px;
    border-radius: 17px;
  }

  .coverage-planner-head h2 {
    font-size: 28px;
  }

  .coverage-status {
    white-space: normal;
  }

  .coverage-levels {
    gap: 7px;
    margin-top: 20px;
  }

  .coverage-level {
    min-height: 98px;
    padding: 13px;
  }

  .coverage-level strong {
    font-size: 24px;
  }

  .coverage-pool {
    padding: 17px;
  }

  .coverage-number-list,
  .coverage-excluded-numbers {
    gap: 7px;
  }

  .coverage-number {
    width: 38px;
    height: 38px;
  }

  .coverage-audit-grid {
    grid-template-columns: 1fr;
  }

  .coverage-actual,
  .signal-diagnostics > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .coverage-result-buckets { width: 100%; grid-template-columns: 1fr; flex-basis: auto; }

  .signal-diagnostics {
    padding: 0 14px 14px;
  }

  .signal-diagnostics > summary > b {
    white-space: normal;
  }

  .research-section-block,
  .ticket-builder,
  .sealed-session,
  .comparison-result {
    padding: 19px;
    border-radius: 16px;
  }

  .research-reference {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 11px;
  }

  .research-reference > span {
    gap: 4px;
  }

  .research-reference b {
    width: 33px;
    height: 33px;
    font-size: 10px;
  }

  .research-reference > strong {
    display: none;
  }

  .number-choice-grid {
    grid-template-columns: repeat(6, 44px);
    gap: 8px;
  }

  .number-choice {
    width: 44px;
    height: 44px;
  }

  .special-choice-grid {
    grid-template-columns: repeat(6, 44px);
  }

  .ticket-commit-row .primary,
  .ticket-commit-row .ghost,
  .sealed-actions button {
    width: 100%;
  }

  .ticket-commit-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ticket-draft-panel {
    padding: 12px;
  }

  .ticket-draft-head {
    align-items: flex-start;
  }

  .ticket-draft-line {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .ticket-line-actions,
  .ticket-line-locked {
    grid-column: 2;
    justify-self: start;
  }

  .comparison-actual-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .comparison-ticket-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .comparison-ticket-row .comparison-balls {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .sealed-actions {
    flex-direction: column;
  }

  .comparison-flow {
    grid-template-columns: 1fr;
  }

  .comparison-arrow {
    transform: rotate(90deg);
    text-align: center;
  }
}

@media (max-width: 390px) {
  .coverage-level {
    min-height: 106px;
    padding: 12px;
  }

  .coverage-level span {
    white-space: normal;
  }

  .coverage-number {
    width: 36px;
    height: 36px;
  }

  .number-choice-grid,
  .special-choice-grid {
    grid-template-columns: repeat(5, 44px);
  }

  .number-choice {
    width: 44px;
    height: 44px;
  }

  .research-flow {
    gap: 7px;
    padding: 13px;
  }

  .ticket-draft-head {
    flex-direction: column;
  }

  .ticket-draft-head .ghost {
    width: 100%;
  }

  .ticket-draft-balls .selected-ball,
  .sealed-ticket-line .selected-ball,
  .comparison-ticket-row .selected-ball {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .research-page *,
  .research-nav-link,
  .research-inline-link {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .number-choice.selected,
  .research-reference.selected,
  .actual-ball.matched,
  .selected-ball.matched,
  [data-signal-number].is-forecast-highlight,
  .signal-revealed [data-signal-number].is-actual-hit,
  .coverage-level[aria-pressed='true'],
  .coverage-number.is-actual-hit,
  .coverage-number.is-actual-outside {
    border: 3px solid Highlight;
  }
}
