:root {
  --bg: #eef2f5;
  --bg-deep: #e8edf2;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --surface-alt: #f6f8fb;
  --border: #d9e1e8;
  --border-strong: #c8d2dc;
  --text: #16202a;
  --muted: #667687;
  --muted-strong: #475664;
  --accent: #0f766e;
  --accent-soft: #ddf4f0;
  --success: #11825f;
  --danger: #c24848;
  --danger-soft: #fdecec;
  --shadow: 0 20px 44px rgba(19, 30, 41, 0.08);
  --shadow-soft: 0 10px 24px rgba(19, 30, 41, 0.05);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(141, 161, 182, 0.14), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
}

body.support-prompt-open {
  overflow: hidden;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero {
  margin-bottom: 36px;
}

.hero__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.hero__support {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__support-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.hero__support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(221, 244, 240, 0.88) 0%, rgba(255, 255, 255, 0.96) 100%);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.hero__support-link:hover {
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(255, 255, 255, 0.98);
}

.hero__title {
  margin: 0 0 18px;
  max-width: 11ch;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__copy {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.toolkit-shell {
  display: grid;
  gap: 24px;
}

.toolkit-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(201, 211, 221, 0.82);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.toolkit-intro__copy {
  margin-bottom: 0;
  max-width: 620px;
}

.toolkit-intro__copy.section-heading {
  gap: 1px;
  margin-bottom: 0;
}

.toolkit-intro__copy .tool-card__tag {
  margin-bottom: 0;
  padding-top: 5px;
  padding-bottom: 5px;
}

.toolkit-intro__copy h2 {
  font-size: 1.55rem;
  line-height: 1.05;
}

.toolkit-intro__copy p {
  margin-top: -1px;
  line-height: 1.5;
}

.toolkit-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.toolkit-nav-mobile {
  display: none;
}

.toolkit-nav-mobile__label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toolkit-nav-mobile__select {
  width: 100%;
}

.toolkit-nav__button {
  display: grid;
  gap: 6px;
  min-width: 160px;
  padding: 14px 16px;
  border: 1px solid rgba(201, 211, 221, 0.82);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.toolkit-nav__button:hover {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.toolkit-nav__button.is-active {
  border-color: rgba(15, 118, 110, 0.28);
  background: linear-gradient(180deg, rgba(221, 244, 240, 0.88) 0%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow: var(--shadow-soft);
}

.toolkit-nav__label {
  font-size: 1rem;
  font-weight: 700;
}

.toolkit-nav__meta {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toolkit-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.toolkit-sidebar {
  display: grid;
  gap: 18px;
  align-self: start;
  position: sticky;
  top: 20px;
}

.toolkit-sidebar__group {
  display: grid;
  gap: 18px;
}

.toolkit-panels {
  min-width: 0;
}

.sidebar-card {
  padding: 20px;
  border: 1px solid rgba(201, 211, 221, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.sidebar-card h3 {
  margin: 10px 0 12px;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.ad-slot {
  display: none;
}

body[data-ads-enabled="true"] .ad-slot {
  display: grid;
  gap: 10px;
}

.ad-slot__label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ad-slot__box {
  min-height: 140px;
  padding: 18px;
  border: 1px dashed rgba(184, 195, 206, 0.95);
  border-radius: 20px;
  background: rgba(246, 248, 251, 0.72);
}

.ad-slot__box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.ad-slot--sidebar {
  padding: 20px;
  border: 1px solid rgba(201, 211, 221, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.ad-slot--inline {
  margin-bottom: 18px;
}

.roadmap-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.roadmap-list__item {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(217, 225, 232, 0.9);
}

.roadmap-list__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.roadmap-list__item strong {
  display: block;
  margin-bottom: 6px;
}

.sidebar-link {
  color: var(--text);
  text-decoration: none;
}

.sidebar-link:hover {
  color: var(--accent);
}

.roadmap-list__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.tool-panel {
  display: none;
}

.tool-panel.is-active {
  display: block;
}

.tool-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.tool-card--primary {
  grid-column: span 2;
  position: relative;
}

.tool-workspace-card {
  width: 100%;
}

.tool-card__body {
  padding: 28px;
}

.tool-card__tag {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-card h2,
.tool-card h3 {
  margin: 0;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.value-bet-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(200, 210, 220, 0.7);
}

.value-bet-hero__copy {
  max-width: 620px;
}

.value-bet-hero__copy h2 {
  margin-top: 16px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.value-bet-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
  min-width: min(320px, 100%);
}

.value-bet-summary__item {
  padding: 16px 18px;
  border: 1px solid rgba(200, 210, 220, 0.82);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 248, 251, 0.92) 100%);
  box-shadow: var(--shadow-soft);
}

.value-bet-summary__label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.value-bet-summary__value {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.metric-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.metric-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.metric-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.metric-label {
  color: var(--muted);
}

.metric-value--positive {
  color: var(--success);
  font-weight: 700;
}

.value-bet-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.market-layout {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.parlay-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.share-calculation {
  display: grid;
  gap: 10px;
  padding: 18px 20px 20px;
}

.share-action-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.share-action-button__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.share-action-button__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.share-calculation__message {
  min-height: 1.2em;
  margin: 0;
  color: var(--success);
  font-size: 0.85rem;
  line-height: 1.45;
}

.share-calculation__message--error {
  color: var(--danger);
}

.calculator-panel {
  padding: 22px;
  border: 1px solid rgba(201, 211, 221, 0.82);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(244, 247, 250, 0.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.calculator-panel--outputs {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 249, 252, 0.96) 100%);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.section-heading--compact {
  margin-bottom: 0;
}

.section-heading__eyebrow {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-heading h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.section-heading p {
  max-width: 42ch;
  font-size: 0.95rem;
  line-height: 1.68;
}

.panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.bet-form {
  display: grid;
  gap: 18px;
}

.bet-form--compact {
  gap: 16px;
}

.mode-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid rgba(201, 211, 221, 0.82);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.mode-toggle__button {
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted-strong);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.mode-toggle__button.is-active {
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.action-button,
.icon-button {
  border: 1px solid rgba(201, 211, 221, 0.9);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.action-button {
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.icon-button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
}

.action-button:hover,
.icon-button:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.action-button:disabled,
.icon-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-strong);
}

.form-field input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-field input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-strong);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.input-invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 4px rgba(194, 72, 72, 0.1);
}

.is-hidden {
  display: none;
}

.field-hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.field-error {
  min-height: 1em;
  color: var(--danger);
  font-size: 0.82rem;
  line-height: 1.35;
}

.probability-inputs {
  display: grid;
  gap: 12px;
}

.probability-inputs input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
  box-shadow: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 211, 221, 0.8);
  background: rgba(238, 242, 246, 0.8);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-badge--positive {
  background: var(--accent-soft);
  color: var(--success);
}

.status-badge--negative {
  background: var(--danger-soft);
  color: var(--danger);
}

.result-grid,
.kelly-grid {
  display: grid;
  gap: 14px;
}

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

.result-grid--summary {
  margin-bottom: 8px;
}

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

.result-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(205, 214, 223, 0.82);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 251, 252, 0.98) 100%);
  box-shadow: var(--shadow-soft);
}

.result-card__label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-card__value {
  font-size: 1.45rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.result-card__subvalue {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.advanced-panel {
  margin-top: 20px;
  border: 1px solid rgba(205, 214, 223, 0.82);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.advanced-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
}

.advanced-panel summary::-webkit-details-marker {
  display: none;
}

.advanced-panel[open] summary {
  border-bottom: 1px solid var(--border);
}

.advanced-panel > *:not(summary) {
  padding: 18px 20px 20px;
}

.advanced-panel__hint {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
}

.advanced-panel--static {
  padding: 0;
}

.advanced-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  line-height: 1.3;
}

.leg-card {
  padding: 18px;
  border: 1px solid rgba(205, 214, 223, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.leg-card + .leg-card {
  margin-top: 14px;
}

.leg-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.leg-card__header h3 {
  margin-top: 6px;
  font-size: 1rem;
}

.leg-card__grid {
  display: grid;
  gap: 14px;
}

.leg-card__grid--advanced {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.parlay-kelly {
  padding: 18px 20px 20px;
}

.table-wrap {
  overflow-x: auto;
}

.sensitivity-table {
  width: 100%;
  border-collapse: collapse;
}

.sensitivity-table th,
.sensitivity-table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  line-height: 1.45;
}

.sensitivity-table th {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.table-empty {
  color: var(--muted);
}

.metric-positive {
  color: var(--success);
}

.metric-negative {
  color: var(--danger);
}

.seo-page {
  display: grid;
  gap: 18px;
}

.seo-page__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-page__nav-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(201, 211, 221, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.seo-page__nav-link.is-active {
  border-color: rgba(15, 118, 110, 0.28);
  background: linear-gradient(180deg, rgba(221, 244, 240, 0.88) 0%, rgba(255, 255, 255, 0.96) 100%);
  color: var(--text);
}

.seo-page__header,
.seo-page__section {
  padding: 22px 24px;
  border: 1px solid rgba(201, 211, 221, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.seo-page__header h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.028em;
  line-height: 1.04;
  text-wrap: balance;
}

.seo-page__header p,
.seo-page__section p {
  margin: 0;
  max-width: 72ch;
  color: var(--muted-strong);
  line-height: 1.78;
}

.seo-page__section h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.18;
  text-wrap: balance;
}

.seo-page__section p + p {
  margin-top: 14px;
}

.faq-item + .faq-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(217, 225, 232, 0.9);
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.03rem;
  line-height: 1.22;
}

.odds-select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.support-prompt {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
}

.support-prompt__panel {
  padding: 18px;
  border: 1px solid rgba(201, 211, 221, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 52px rgba(19, 30, 41, 0.16);
  backdrop-filter: blur(18px);
}

.support-prompt__eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.support-prompt__panel h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.support-prompt__copy {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.94rem;
  line-height: 1.55;
}

.support-prompt__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.support-prompt__button {
  flex: 1 1 0;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.support-prompt__button--dismiss {
  display: none;
}

.support-prompt__button--primary {
  border-color: rgba(15, 118, 110, 0.22);
  background: linear-gradient(180deg, rgba(221, 244, 240, 0.88) 0%, rgba(255, 255, 255, 0.96) 100%);
}

@media (max-width: 960px) {
  .toolkit-intro {
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
  }

  .toolkit-workspace {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .toolkit-sidebar {
    display: contents;
    position: static;
  }

  .toolkit-sidebar__group {
    gap: 14px;
  }

  .toolkit-sidebar__group--primary {
    order: 1;
  }

  .toolkit-panels {
    order: 2;
  }

  .tool-card--primary {
    grid-column: span 2;
  }

  .toolkit-sidebar__group--secondary {
    order: 3;
  }

  .value-bet-hero {
    flex-direction: column;
    gap: 16px;
    padding-bottom: 18px;
  }

  .value-bet-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .kelly-grid {
    grid-template-columns: 1fr;
  }

  .advanced-panel__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100% - 24px, 1180px);
    padding: 20px 0 32px;
  }

  .hero {
    margin-bottom: 24px;
  }

  .hero__topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 6px;
    gap: 8px;
  }

  .hero__eyebrow {
    margin-bottom: 8px;
  }

  .hero__support-link {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .hero__title {
    margin-bottom: 12px;
    font-size: clamp(2.2rem, 10vw, 3.1rem);
  }

  .hero__copy {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .toolkit-intro {
    display: none;
  }

  .toolkit-sidebar {
    gap: 14px;
  }

  .toolkit-shell,
  .toolkit-workspace,
  .toolkit-panels,
  .tool-panel,
  .tool-card,
  .calculator-panel,
  .advanced-panel,
  .sidebar-card,
  .result-card {
    min-width: 0;
  }

  .toolkit-nav {
    display: none;
  }

  .toolkit-nav-mobile {
    display: block;
  }

  .tool-card--primary {
    grid-column: span 1;
  }

  .tool-card__body {
    padding: 18px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .value-bet-summary {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
    gap: 8px;
  }

  .seo-page__header,
  .seo-page__section {
    padding: 16px;
  }

  .toolkit-nav__button {
    width: 100%;
    min-width: 0;
    gap: 4px;
    padding: 11px 12px;
  }

  .mode-toggle {
    width: 100%;
    margin-bottom: 14px;
  }

  .result-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .advanced-panel summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
  }

  .leg-card__header {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
  }

  .leg-card__grid--advanced {
    grid-template-columns: 1fr;
  }

  .calculator-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .sidebar-card {
    padding: 16px;
    border-radius: 18px;
  }

  .ad-slot--sidebar {
    padding: 16px;
    border-radius: 18px;
  }

  .section-heading {
    gap: 8px;
    margin-bottom: 16px;
  }

  .section-heading h3 {
    font-size: 1.05rem;
  }

  .section-heading p {
    font-size: 0.9rem;
    line-height: 1.56;
  }

  .bet-form,
  .bet-form--compact,
  .roadmap-list,
  .leg-card__grid {
    gap: 12px;
  }

  .form-field {
    gap: 6px;
  }

  .form-field input,
  .odds-select {
    padding: 11px 12px;
  }

  .probability-inputs {
    gap: 10px;
  }

  .result-card {
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
  }

  .result-card__value {
    font-size: 1.28rem;
  }

  .advanced-panel {
    margin-top: 16px;
    border-radius: 18px;
  }

  .advanced-panel > *:not(summary) {
    padding: 14px 16px 16px;
  }

  .advanced-panel__header {
    padding: 14px 16px;
  }

  .parlay-actions {
    margin: 14px 0;
    flex-direction: column;
  }

  .parlay-actions .action-button,
  .parlay-actions .icon-button,
  .share-calculation .action-button {
    width: 100%;
    min-width: 0;
  }

  .share-calculation {
    gap: 8px;
    padding: 14px 16px 16px;
  }

  .sensitivity-table th,
  .sensitivity-table td {
    padding: 10px 8px;
  }

  .faq-item + .faq-item {
    margin-top: 12px;
    padding-top: 12px;
  }

  .support-prompt {
    right: 12px;
    bottom: 12px;
    width: min(100vw - 24px, 360px);
  }

  .support-prompt__panel {
    padding: 16px;
    border-radius: 18px;
  }

  .support-prompt__actions {
    flex-direction: column;
  }

  .support-prompt__button--dismiss {
    display: inline-flex;
  }
}
