.odds-workspace { padding: 24px; border: 1px solid var(--line); border-top-color: #8d7c59; border-radius: 11px; background: var(--surface); }
.mode-switch { display: flex; gap: 5px; padding: 4px; border: 1px solid #48536a; border-radius: 7px; margin: 0 0 23px; background: var(--inset); width: fit-content; }
.mode-switch label { position: relative; display: flex; cursor: pointer; }
.mode-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mode-switch span { display: block; padding: 6px 17px; border-radius: 4px; color: var(--muted); font-size: 14px; font-weight: 550; }
.mode-switch input:checked + span { background: #3d465b; color: var(--text); }
.mode-switch input:focus-visible + span { outline: 2px solid #a2b8ff; outline-offset: 3px; }
.mode-switch.mode-links { padding: 4px; }
.mode-links a { display: flex; min-width: 0; color: inherit; }
.mode-links a[aria-current="page"]>span { background: #3d465b; color: var(--text); }
.mode-links a:focus-visible { outline: 2px solid #a2b8ff; outline-offset: 3px; border-radius: 4px; }
.calc-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 235px; align-items: end; gap: 18px; }
.calc-fields label { display: block; margin-bottom: 10px; color: #c5cddb; font-size: 14px; }
.calc-fields input { min-width: 0; width: 100%; height: 52px; border: 1px solid #526079; border-radius: 7px; background: var(--inset); color: var(--text); padding: 0 14px; font-size: 18px; font-variant-numeric: tabular-nums; }
.calc-fields .primary { justify-content: center; }
.calc-fields-3 { grid-template-columns: repeat(3,minmax(0,1fr)) 235px; }
.calc-fields-4 { grid-template-columns: repeat(4,minmax(0,1fr)) 235px; }
.calc-fields select { width: 100%; min-width: 0; height: 52px; padding: 0 14px; background: var(--inset); color: var(--text); border: 1px solid #526079; border-radius: 7px; font: inherit; font-size: 18px; }
.lottery-odds-form { margin: 0; }
.lottery-odds-form .cy-number-input { margin-top: 18px; }
.lottery-odds-form .cy-number-input label { display: block; margin-bottom: 10px; color: #c5cddb; font-size: 14px; }
.lottery-odds-form .cy-number-input input { width: 100%; height: 52px; padding: 0 14px; background: var(--inset); color: var(--text); border: 1px solid #526079; border-radius: 7px; font: inherit; }
.odds-note { margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.game-type-switch { margin-bottom: 16px; }
.calc-error { color: #ffd0bc; font-size: 14px; margin: 16px 0 0; }
.scenario-result { margin-top: 22px; background: var(--inset); border: 1px solid #48546c; border-radius: 9px; padding: 21px 23px; }
.scenario-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin-bottom: 18px; }
.scenario-heading h2 { font-size: 15px; font-weight: 550; margin: 0; color: #c4cddd; }
.scenario-heading span { font-size: 13px; color: var(--muted); }
.scenario-summary { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; align-items: start; }
.scenario-chance strong { display: block; font-size: 29px; font-weight: 600; color: var(--text); line-height: 1.35; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.scenario-chance>span { display: block; color: #c2cbe0; font-size: 15px; margin-top: 8px; }
.scenario-stat { margin: 0; padding-left: 24px; border-left: 1px solid #424f67; }
.scenario-stat dt { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.scenario-stat dd { margin: 0; font-size: 25px; font-weight: 550; font-variant-numeric: tabular-nums; line-height: 1.4; }
.scenario-caption { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 12px; border-top: 1px solid #39475e; padding-top: 15px; margin-top: 20px; }
.odds-breakdown { margin-top: 29px; }
.odds-table-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 17px; }
.odds-table-heading h2 { font-size: 21px; font-weight: 600; margin: 0; }
.odds-table-heading span { color: #b8c3d6; font-size: 13px; }
.base-any { display: flex; align-items: center; gap: 16px; padding: 17px 20px; border: 1px solid var(--line); border-bottom: 0; border-radius: 9px 9px 0 0; background: var(--surface); }
.base-any>span { font-size: 14px; color: #c6cfdf; }
.base-any strong { font-size: 17px; font-weight: 550; }
.base-any small { font-size: 13px; color: var(--muted); margin-left: auto; }
.tier-wrap { border: 1px solid var(--line); border-radius: 0 0 9px 9px; background: var(--surface); overflow: hidden; }
.tier-wrap.standalone-tiers { border-radius: 9px; }
.tier-table .tier-name { width: 17%; }
.tier-table .tier-prize { width: 27%; }
.tier-table .tier-chance { width: 31%; }
.tier-table .tier-percent { width: 25%; text-align: right; }
.tier-table th { padding: 14px 20px; font-size: 13px; }
.tier-table td { padding: 15px 20px; font-variant-numeric: tabular-nums; font-size: 15px; color: #e2e8f3; }
.tier-table td:first-child { color: var(--text); font-size: 16px; font-weight: 550; }
.tier-table .top-tier td { background: #272b35; }
.tier-table .top-tier .tier-prize { color: var(--signature); }
.tier-table .tier-prize small { color: var(--muted); font-size: 12px; }
.tier-table .tier-prefix { font-size: 12px; color: var(--muted); margin-right: 7px; white-space: nowrap; }
.tier-table .tier-chance>span:last-child { white-space: nowrap; }
.short-tier-label { display: none; }
.odds-footnote { color: var(--muted); font-size: 12px; line-height: 1.75; margin: 12px 0 0; }
@media (max-width: 900px) {
  .calc-fields { grid-template-columns: 1fr 1fr; }
  .calc-fields .primary { grid-column: 1 / -1; }
  .scenario-summary { grid-template-columns: 1fr 1fr; }
  .scenario-chance { grid-column: 1 / -1; }
  .scenario-stat { padding-left: 0; border: 0; }
}
@media (max-width: 700px) {
  .odds-workspace { padding: 19px 17px; }
  .mode-switch { margin-bottom: 20px; }
  .mode-switch span { padding-inline: 15px; }
  .calc-fields { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 14px; }
  .calc-fields label { font-size: 13px; }
  .calc-fields input { font-size: 17px; height: 50px; }
  .calc-fields select { font-size: 17px; height: 50px; }
  .scenario-result { margin-top: 19px; padding: 18px 15px; }
  .scenario-heading { flex-wrap: wrap; gap: 6px 12px; margin-bottom: 15px; }
  .scenario-heading span { font-size: 12px; }
  .scenario-summary { gap: 20px 15px; }
  .scenario-chance strong { font-size: 24px; }
  .scenario-chance>span { font-size: 14px; margin-top: 6px; }
  .scenario-stat dt { font-size: 11px; }
  .scenario-stat dd { font-size: 21px; }
  .scenario-caption { display: block; font-size: 11px; }
  .scenario-caption span { display: block; margin-top: 6px; }
  .odds-breakdown { margin-top: 24px; }
  .odds-table-heading { display: block; }
  .odds-table-heading h2 { font-size: 20px; }
  .odds-table-heading span { display: block; font-size: 12px; margin-top: 5px; }
  .base-any { padding: 14px 12px; gap: 10px; flex-wrap: wrap; }
  .base-any>span { font-size: 13px; }
  .base-any strong { font-size: 15px; }
  .base-any small { font-size: 12px; }
  .tier-table .tier-percent { display: none; }
  .full-tier-label { display: none; }
  .short-tier-label { display: inline; }
  .tier-table .tier-name { width: 21%; }
  .tier-table .tier-prize { width: 32%; }
  .tier-table .tier-chance { width: 47%; text-align: right; }
  .tier-table th { padding: 12px 10px; font-size: 11px; }
  .tier-table td { padding: 13px 10px; font-size: 13px; }
  .tier-table td:first-child { font-size: 14px; }
  .tier-table .tier-prefix { display: block; margin: 0 0 2px; font-size: 11px; }
  .odds-footnote { font-size: 11px; }
}
.generic-modes{display:flex;gap:20px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:24px}.generic-modes a{color:var(--muted);padding:8px 0}.generic-modes a[aria-current]{color:var(--text);border-bottom:2px solid var(--signature)}.generic-tiers{width:100%;border-collapse:collapse}.generic-tiers th,.generic-tiers td{padding:12px 8px;text-align:left;border-bottom:1px solid var(--line)}#generic-numbers{grid-column:1/-1}
.generic-tiers th:first-child{width:22%}.generic-tiers th:nth-child(2){width:41%}.generic-tiers th:nth-child(3){width:37%}
.generic-tiers th,.generic-tiers td{white-space:normal;overflow-wrap:anywhere}
.scenario-result .result-value{display:block;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.scenario-chance strong,.scenario-stat dd{overflow-wrap:anywhere}
.mode-switch{min-width:0;min-inline-size:0;max-width:100%;flex-wrap:wrap}
.mode-switch label{min-width:0;max-width:100%}.mode-switch span{white-space:normal;overflow-wrap:anywhere}
.tier-table th,.tier-table td{overflow-wrap:anywhere}.tier-table .tier-chance>span:last-child{white-space:normal}
