.strategy-setup {
  grid-column: 1/-1;
  min-width: 0;
}
.sg-kicker {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 750;
  color: #087e83;
}
.sg-setup-intro h3 {
  font-size: 25px;
  margin: 10px 0;
}
.sg-setup-intro p {
  max-width: 720px;
  line-height: 1.65;
}
.sg-stage-list {
  border: 1px solid #d5e3e5;
  border-radius: 14px;
  overflow: hidden;
  margin: 20px 0 8px;
}
.sg-stage-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 110px 100px;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  background: #fff;
  border-bottom: 1px solid #e3ebed;
}
.sg-stage-row:last-child {
  border: 0;
}
.sg-stage-row:has([data-sg-enabled]:checked) {
  background: #edf7f5;
}
.sg-stage-row > label:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 650;
}
.sg-stage-row input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: #087e83;
}
.sg-count {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.sg-count input {
  width: 60px !important;
  padding: 8px !important;
}
.sg-stage-row .btn {
  padding: 7px 11px;
  min-width: 34px;
}
.sg-plan-note {
  color: #087e83;
  font-weight: 650;
  font-size: 13px;
}
.sg-advanced {
  border-top: 1px solid #dbe5e8;
  padding-top: 18px;
  margin-top: 18px;
}
.sg-advanced > summary {
  font-weight: 700;
  cursor: pointer;
  padding: 8px 0;
}
.sg-advanced .formgrid {
  margin-top: 15px;
}
.sg-hero {
  padding: 26px;
  background: linear-gradient(115deg, #eef7f5, #f8fafb);
  border-left: 4px solid var(--sg-accent, #087e83);
  border-radius: 12px;
  margin-bottom: 18px;
}
.sg-hero h2 {
  margin: 10px 0;
  font-size: 26px;
}
.sg-hero p {
  line-height: 1.7;
  max-width: 850px;
}
.sg-context {
  padding-top: 12px;
  border-top: 1px solid #cddcde;
}
.sg-condition-track {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.sg-condition {
  background: #fff;
  color: #556c75;
  border: 1px solid #d6e3e6;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 650;
}
.sg-condition.active {
  background: #087e83;
  color: white;
  border-color: #087e83;
}
.sg-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 22px 0;
}
.sg-status h3 {
  margin: 5px 0;
}
.sg-status > div:last-child {
  text-align: right;
}
.sg-status > div:last-child strong {
  font-size: 28px;
}
.sg-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  padding: 18px 0;
}
.sg-role-grid > div {
  padding: 14px;
  background: #f5f8f9;
  border-radius: 10px;
}
.sg-role-grid p {
  margin: 12px 0 0;
}
.sg-profile {
  margin: 18px 0;
}
.sg-profile p,
.sg-rules li {
  line-height: 1.65;
}
.sg-release {
  border-top: 1px solid #dbe5e8;
  margin-top: 24px;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.sg-release h3,
.sg-release p {
  width: 100%;
  margin-bottom: 0;
}
.sg-release label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}
.sg-release input {
  accent-color: #087e83;
  width: 17px;
  height: 17px;
}
.sg-player-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: 15px;
}
.sg-player-heading h2 {
  font-size: 32px;
  margin: 8px 0;
}
.sg-player-heading p {
  color: #61757c;
  font-size: 13px;
}
.sg-role-badge {
  padding: 9px 12px;
  color: #087e83;
  background: #e2f2ef;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.sg-decision-card {
  border-top: 4px solid #087e83 !important;
}
.sg-decision-card h2 {
  font-size: 25px;
  line-height: 1.35;
}
.sg-number-control {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 24px 0 8px;
}
.sg-number-control input[type="range"] {
  flex: 1;
  min-width: 80px;
  accent-color: #087e83;
  padding: 0;
}
.sg-number-control > label {
  width: 150px;
  flex-shrink: 0;
  font-size: 12px;
}
.sg-number-control input[type="number"] {
  font-size: 24px;
  font-weight: 700;
  margin-top: 7px;
  text-align: center;
}
.sg-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.sg-option {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  border: 2px solid #d7e3e6;
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.45;
}
.sg-option:has(input:checked) {
  border-color: #087e83;
  background: #eef8f5;
}
.sg-option input {
  accent-color: #087e83;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.sg-decision textarea {
  width: 100%;
  resize: vertical;
}
.sg-rules summary {
  font-weight: 700;
  cursor: pointer;
}
.sg-rules ul {
  padding-left: 22px;
}
.sg-rules li {
  margin: 9px 0;
}
.sg-wait {
  text-align: center;
  padding: 24px 12px;
}
.sg-wait-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #087e83;
  border: 5px solid #c7e8e0;
  border-radius: 50%;
  box-sizing: content-box;
}
.sg-matrix {
  font-size: 14px;
  margin: 20px 0;
}
.sg-matrix caption {
  font-size: 12px;
  text-align: left;
  color: #62777f;
  margin-bottom: 8px;
}
.sg-matrix td {
  text-align: center;
  font-size: 20px;
  background: #f2f8f7;
}
.sg-chart {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  overflow: visible;
  margin: 14px 0 6px;
  font-family: inherit;
}
.sg-chart text {
  font-family: inherit;
  font-size: 12px;
  fill: #526d76;
}
.sg-chart.sg-street {
  max-height: 160px;
}
.sg-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #52717b;
  margin: 3px 0 16px;
}
.sg-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
}
.sg-results-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}
.sg-results-heading h2 {
  margin: 10px 0;
}
.sg-results-heading p {
  font-size: 12px;
  color: #62777f;
}
.sg-results-heading > label {
  max-width: 240px;
  min-width: 170px;
}
.sg-round-section {
  border-top: 1px solid #dbe5e8;
  margin-top: 28px;
  padding-top: 22px;
}
.sg-round-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sg-round-heading h3 {
  margin: 0 0 4px;
}
.sg-round-number {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #18333c;
  color: white;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-weight: 750;
  font-size: 20px;
  flex-shrink: 0;
}
.sg-group {
  margin: 18px 0;
  border: 1px solid #dbe5e8;
  border-radius: 12px;
  padding: 20px;
  overflow: hidden;
}
.sg-group h4 {
  margin: 10px 0;
}
.sg-group details {
  padding: 13px 0;
  border-top: 1px solid #e0e9eb;
  margin-top: 12px;
}
.sg-group summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 14px;
}
.sg-group li,
.sg-whatif p {
  line-height: 1.55;
}
.sg-group table {
  font-size: 13px;
}
.sg-group td {
  vertical-align: top;
}
.sg-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.sg-flow > div {
  background: #f1f6f7;
  padding: 17px 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  min-width: 0;
}
.sg-flow span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #62777f;
}
.sg-flow strong {
  font-size: 25px;
  overflow-wrap: anywhere;
}
.sg-flow small {
  font-size: 11px;
}
.sg-flow .sg-flow-total {
  background: #e6f3ee;
}
.sg-payoff-bars {
  margin: 22px 0;
}
.sg-payoff-bars > div {
  display: grid;
  grid-template-columns: 130px 1fr 110px;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  font-size: 12px;
}
.sg-bar-track {
  height: 15px;
  border-radius: 7px;
  background: #eef3f4;
  overflow: hidden;
}
.sg-bar-track i {
  height: 100%;
  display: block;
  min-width: 1px;
}
.sg-payoff-bars strong {
  text-align: right;
}
.sg-payoff-bars small {
  font-weight: 400;
}
.sg-bid-ladder {
  display: grid;
  gap: 5px;
}
.sg-bid-ladder > div {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 12px;
  padding: 10px;
  background: #f3f6f7;
  border-radius: 6px;
  font-size: 12px;
}
.sg-bid-ladder > div.winner {
  background: #e0f1e9;
  border-left: 3px solid #087e83;
}
.sg-bargain {
  height: 28px;
  border-radius: 12px;
  background: #c28326;
  overflow: hidden;
  margin: 22px 0;
}
.sg-bargain > div {
  background: #087e83;
  height: 100%;
}
.sg-replay input {
  width: 100%;
  accent-color: #087e83;
  margin: 20px 0 6px;
}
.sg-replay ol {
  list-style: none;
  padding: 0;
}
.sg-replay li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 16px;
  border-left: 3px solid #087e83;
  margin: 8px 0;
  background: #f2f7f7;
}
.sg-replay li[hidden] {
  display: none;
}
.sg-replay li > span,
.sg-replay li > small {
  font-size: 11px;
  color: #62777f;
}
.sg-theory {
  background: #f7f8fc;
  border-radius: 10px;
  padding: 16px !important;
}
.sg-personal > h2 {
  font-size: 36px;
  margin: 10px 0;
}
.sg-personal > details {
  border-top: 1px solid #dbe5e8;
  padding: 16px 0;
}
.sg-personal summary {
  font-weight: 650;
  cursor: pointer;
}
.sg-personal .sg-whatif {
  padding: 16px;
  border-radius: 10px;
  background: #f3f6fa;
}
.sg-catalogue-tools {
  display: flex;
  gap: 12px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.sg-compare-picks {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.sg-compare-picks label {
  padding: 12px;
  background: #f3f7f8;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.sg-compare-picks input {
  width: 18px;
  height: 18px;
  accent-color: #087e83;
}
@media (max-width: 700px) {
  .sg-stage-row {
    grid-template-columns: 1fr 85px;
    gap: 10px;
    padding: 12px;
  }
  .sg-stage-row > div {
    grid-column: 1/-1;
    text-align: right;
  }
  .sg-hero {
    padding: 19px;
  }
  .sg-hero h2 {
    font-size: 23px;
  }
  .sg-results-heading {
    display: block;
  }
  .sg-results-heading > label {
    max-width: none;
  }
  .sg-group {
    padding: 14px;
  }
  .sg-player-heading h2 {
    font-size: 27px;
  }
  .sg-options {
    grid-template-columns: 1fr;
  }
  .sg-option {
    min-height: 65px;
  }
  .sg-number-control {
    gap: 14px;
  }
  .sg-number-control > label {
    width: 110px;
  }
  .sg-flow strong {
    font-size: 20px;
  }
  .sg-flow > div {
    padding: 12px 7px;
  }
  .sg-payoff-bars > div {
    grid-template-columns: 85px 1fr 83px;
    gap: 8px;
  }
  .sg-bid-ladder > div {
    grid-template-columns: 1fr 1fr;
  }
  .sg-bid-ladder > div > span:last-child {
    grid-column: 1/-1;
  }
  .sg-role-badge {
    white-space: normal;
    text-align: center;
  }
  .sg-chart text {
    font-size: 13px;
  }
}
@media (max-width: 700px) {
  .sg-chart text {
    font-size: 22px;
  }
  .sg-street text {
    font-size: 22px;
  }
}
