.game-script-report.refined {
  padding: 0;
  overflow: hidden;
  background: var(--card);
}

.game-script-picker .custom-select {
  width: 100%;
}

.game-script-picker .select-menu {
  width: 100%;
  max-width: none;
}

.game-script-report.refined .game-script-title {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--soft), transparent 70%);
}

.game-script-report.refined .game-script-title h4 {
  margin: 5px 0 2px;
  font-size: 30px;
}

.game-script-report.refined .game-script-title p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.game-script-fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 24px 0;
}

.game-script-fact-row span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 8px;
}

.game-script-fact-row b {
  color: var(--ink);
}

.game-script-thesis {
  max-width: 870px;
  padding: 22px 24px 20px;
}

.game-script-thesis > span,
.game-script-support section > span {
  color: var(--green);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
}

.game-script-thesis p {
  margin: 7px 0 0;
  font: 700 18px/1.5 Georgia, serif;
}

.scenario-paths {
  margin: 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scenario-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.scenario-row:last-child {
  border-bottom: 0;
}

.scenario-marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #dcebe1;
  color: #3d6c50;
  font: 700 9px Georgia, serif;
}

.scenario-row.ceiling .scenario-marker {
  background: #dceaf4;
  color: #45697e;
}

.scenario-row.downside .scenario-marker {
  background: #f6ecc5;
  color: #76652d;
}

.scenario-row div > span {
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .1em;
}

.scenario-row h5 {
  margin: 2px 0 5px;
  font-size: 13px;
}

.scenario-row p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.game-script-support {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  padding: 21px 24px;
}

.game-script-evidence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 20px 24px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--line);
}

.game-script-evidence section {
  padding: 16px;
  background: var(--card);
}

.game-script-evidence section > span {
  color: var(--green);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .11em;
}

.game-script-evidence h5 {
  margin: 3px 0 7px;
  font-size: 12px;
}

.game-script-evidence p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.game-script-source {
  margin: 7px 24px 0;
  color: var(--muted);
  font-size: 7px;
  text-align: right;
}

.game-script-source a {
  color: var(--green);
}

.game-script-support p,
.game-script-support ul {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.game-script-support .injury-usage-read {
  grid-column: 1 / -1;
  padding: 14px 15px;
  border-left: 3px solid #d2ae3e;
  border-radius: 0 9px 9px 0;
  background: var(--soft);
}

.game-script-support ul {
  padding-left: 17px;
}

.game-script-support li + li {
  margin-top: 4px;
}

.game-script-data-gap {
  margin: 0;
  padding: 10px 24px;
  border-top: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 8px;
}

.game-script-data-gap strong {
  color: var(--ink);
}

html[data-theme="dark"] .game-script-report.refined {
  background: #363d39;
}

html[data-theme="dark"] .game-script-evidence section {
  background: #363d39;
}

html[data-theme="dark"] .scenario-marker {
  background: #415a4c;
  color: #cee5d7;
}

html[data-theme="dark"] .scenario-row.ceiling .scenario-marker {
  background: #405563;
  color: #d2e3ed;
}

html[data-theme="dark"] .scenario-row.downside .scenario-marker {
  background: #5b5337;
  color: #f0dfa4;
}

@media (max-width: 620px) {
  .game-script-report.refined .game-script-title {
    display: block;
    padding: 18px;
  }

  .game-script-confidence {
    display: inline-block;
    margin-top: 10px;
  }

  .game-script-fact-row,
  .game-script-thesis {
    padding-right: 18px;
    padding-left: 18px;
  }

  .scenario-paths {
    margin-right: 18px;
    margin-left: 18px;
  }

  .game-script-support {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .game-script-evidence {
    grid-template-columns: 1fr;
    margin-right: 18px;
    margin-left: 18px;
  }
}
