.fot-page {
  --fot-ink: #122033;
  --fot-muted: #617086;
  --fot-line: #d8e2eb;
  --fot-soft: #f5f8fb;
  --fot-accent: #087f72;
  --fot-accent-dark: #05645b;
  --fot-warm: #b56f16;
  color: var(--fot-ink);
}

.fot-page *, .fot-page *::before, .fot-page *::after { box-sizing: border-box; letter-spacing: 0; }
.fot-heading { margin-bottom: 1.65rem; }
.fot-heading h1 { margin: .25rem 0 .75rem; overflow-wrap: break-word; color: var(--fot-ink); font-size: 2.1rem; line-height: 1.25; word-break: keep-all; }
.fot-heading > p:last-child { margin: 0; color: #43536a; font-size: 1.02rem; line-height: 1.8; }
.fot-eyebrow, .fot-step { margin: 0; color: var(--fot-accent); font-size: .82rem; font-weight: 800; }

.fot-calculator { margin-bottom: 2.5rem; overflow: hidden; border: 1px solid var(--fot-line); border-radius: 8px; background: #fff; }
.fot-tool-head { padding: 1.35rem 1.4rem 1rem; }
.fot-tool-head h2, .fot-result h2, .fot-guide h2, .fot-faq h2, .fot-sources h2, .fot-related h2 { margin: .2rem 0 .65rem; color: var(--fot-ink); font-size: 1.5rem; line-height: 1.35; }
.fot-tool-head > p:last-child, .fot-guide > p, .fot-sources > p { margin: .25rem 0 0; color: #52627a; font-size: .9rem; line-height: 1.7; }
.fot-tool-head h2, .fot-guide h2 { overflow-wrap: break-word; word-break: keep-all; }
.fot-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--fot-line); border-bottom: 1px solid var(--fot-line); }
.fot-tabs button { min-height: 50px; border: 0; border-radius: 0; background: var(--fot-soft); color: #526177; font-weight: 800; cursor: pointer; }
.fot-tabs button + button { border-left: 1px solid var(--fot-line); }
.fot-tabs button.is-active { background: #fff; color: var(--fot-accent-dark); box-shadow: inset 0 -3px 0 var(--fot-accent); }

.fot-player-lookup { padding: 1.25rem 1.4rem; border-top: 1px solid var(--fot-line); background: #fbfcfd; }
.fot-lookup-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: start; margin-bottom: .9rem; }
.fot-lookup-heading > div { display: flex; gap: .55rem; align-items: center; }
.fot-lookup-heading h3 { margin: 0; color: var(--fot-ink); font-size: 1.05rem; line-height: 1.4; }
.fot-lookup-heading p { max-width: 390px; margin: 0; color: var(--fot-muted); font-size: .73rem; line-height: 1.55; text-align: right; }
.fot-lookup-number { display: grid; flex: 0 0 25px; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--fot-accent); color: #fff; font-size: .72rem; font-weight: 900; }
.fot-player-search-wrap { position: relative; }
.fot-player-search-wrap > label, .fot-recent-body > label, .fot-search-filter label { display: block; margin-bottom: .35rem; color: #33475f; font-size: .78rem; font-weight: 800; }
.fot-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
.fot-search-row input, .fot-search-filter input { width: 100%; height: 48px; margin: 0; padding: 0 .8rem; border: 1px solid #c5d3df; border-radius: 6px; background: #fff; color: var(--fot-ink); font-size: .9rem; }
.fot-search-row button, .fot-ranker-body > button { min-height: 48px; padding: .55rem 1rem; border: 1px solid var(--fot-accent); border-radius: 6px; background: var(--fot-accent); color: #fff; font-size: .8rem; font-weight: 800; cursor: pointer; }
.fot-search-row button:disabled, .fot-ranker-body > button:disabled { opacity: .55; cursor: wait; }
.fot-search-filter { display: grid; grid-template-columns: 115px minmax(0, 220px); gap: .55rem; align-items: center; margin-top: .65rem; }
.fot-search-filter label { margin: 0; }
.fot-search-filter input { height: 40px; font-size: .78rem; }
.fot-player-status { min-height: 1.35rem; margin: .55rem 0 0; color: var(--fot-muted); font-size: .72rem; line-height: 1.5; }
.fot-player-status.is-success { color: #216f66; }
.fot-player-status.is-error, .fot-ranker-body .is-error { color: #a43b36; }
.fot-manual-link { margin-top: .25rem; padding: .15rem 0; border: 0; background: transparent; color: var(--fot-accent-dark); font-size: .7rem; font-weight: 800; text-decoration: underline; cursor: pointer; }
.fot-search-loading { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: .7rem; }
.fot-search-loading i { height: 68px; border-radius: 5px; background: linear-gradient(90deg, #edf1f4 20%, #f8fafb 50%, #edf1f4 80%); background-size: 220% 100%; animation: fot-loading 1.1s linear infinite; }
@keyframes fot-loading { to { background-position: -220% 0; } }
.fot-player-results { display: grid; gap: .45rem; max-height: 390px; margin-top: .65rem; padding: .35rem; overflow-y: auto; border: 1px solid var(--fot-line); border-radius: 6px; background: #fff; }
.fot-player-results > button, .fot-recent-results > button { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: .75rem; align-items: center; width: 100%; min-height: 82px; padding: .45rem .65rem; border: 1px solid transparent; border-radius: 5px; background: #fff; color: var(--fot-ink); text-align: left; cursor: pointer; }
.fot-player-results > button:hover, .fot-player-results > button[aria-selected="true"] { border-color: #9ecbc5; background: #f1f8f7; }
.fot-player-results > button em { color: var(--fot-accent-dark); font-size: .75rem; font-style: normal; font-weight: 900; }
.fot-player-media { position: relative; display: grid; place-items: center; width: 70px; height: 70px; overflow: hidden; border-radius: 5px; background: #edf2f5; color: #8693a3; font-size: .62rem; line-height: 1.3; text-align: center; }
.fot-player-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fot-player-media.is-compact { width: 58px; height: 58px; }
.fot-player-media.is-missing { border: 1px dashed #bdcbd6; }
.fot-player-card-copy, .fot-player-card-copy > span { min-width: 0; }
.fot-player-card-copy strong { display: block; overflow-wrap: anywhere; color: var(--fot-ink); font-size: .88rem; }
.fot-player-card-copy > span { display: flex; gap: .4rem; align-items: center; margin-top: .25rem; color: var(--fot-muted); font-size: .7rem; line-height: 1.45; }
.fot-player-card-copy > span img { flex: 0 0 auto; width: 28px; height: 20px; object-fit: contain; }
.fot-player-card-copy > span b, .fot-player-card-copy > span em { min-width: 0; overflow-wrap: anywhere; color: var(--fot-muted); font-style: normal; font-weight: 600; }
.fot-player-card-copy small { display: block; margin-top: .2rem; color: var(--fot-muted); font-size: .67rem; }
.fot-season-fallback { display: inline-grid; flex: 0 0 auto; place-items: center; min-width: 28px; height: 20px; border: 1px solid #d0dae3; border-radius: 3px; color: #6f7f91; font-size: .55rem; }
.fot-player-empty { padding: 1rem; color: var(--fot-muted); font-size: .76rem; line-height: 1.6; text-align: center; }
.fot-recent-history { margin-top: .8rem; }
.fot-recent-history > div:first-child { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.fot-recent-history > div:first-child strong { color: #475b71; font-size: .72rem; }
.fot-recent-history > div:first-child button { padding: .15rem .25rem; border: 0; background: transparent; color: var(--fot-muted); font-size: .66rem; cursor: pointer; }
.fot-recent-history > div:last-child { display: flex; flex-wrap: wrap; gap: .4rem; }
.fot-recent-history > div:last-child > button { display: flex; gap: .35rem; align-items: center; min-height: 40px; padding: .35rem .55rem; border: 1px solid #ccd8e2; border-radius: 5px; background: #fff; color: #32465d; cursor: pointer; }
.fot-recent-history > div:last-child img { width: 24px; height: 18px; object-fit: contain; }
.fot-recent-history > div:last-child span { font-size: .7rem; font-weight: 800; text-align: left; }
.fot-recent-history > div:last-child small { display: block; max-width: 100px; overflow: hidden; color: var(--fot-muted); font-size: .57rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.fot-selected-player { display: grid; grid-template-columns: 108px minmax(0, 1fr) auto; gap: 1rem; align-items: center; margin-top: 1rem; padding: .9rem; border: 1px solid #a9d2cc; border-radius: 6px; background: #f1f8f7; }
.fot-selected-media { position: relative; display: grid; place-items: center; width: 108px; height: 108px; overflow: hidden; border-radius: 6px; background: #e1ecee; color: #728491; font-size: .7rem; line-height: 1.4; text-align: center; }
.fot-selected-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fot-selected-copy > span { color: var(--fot-accent-dark); font-size: .68rem; font-weight: 800; }
.fot-selected-copy h3 { margin: .15rem 0 .25rem; color: var(--fot-ink); font-size: 1.15rem; }
.fot-selected-copy p { display: flex; gap: .45rem; align-items: center; margin: 0; color: #3d5368; font-size: .78rem; }
.fot-selected-copy p img { object-fit: contain; }
.fot-selected-copy small { display: block; margin-top: .35rem; color: var(--fot-muted); font-size: .63rem; }
.fot-selected-player > button { min-height: 42px; padding: .5rem .7rem; border: 1px solid #9cbab7; border-radius: 5px; background: #fff; color: var(--fot-accent-dark); font-size: .72rem; font-weight: 800; cursor: pointer; }
.fot-api-notice { margin-top: .8rem; padding: .75rem .85rem; border-left: 4px solid var(--fot-warm); background: #fff8ea; }
.fot-api-notice strong { color: #5d4927; font-size: .8rem; }
.fot-api-notice p { margin: .2rem 0 0; color: #6c5c42; font-size: .72rem; line-height: 1.55; }
.fot-recent-import, .fot-ranker { margin-top: .8rem; border: 1px solid var(--fot-line); border-radius: 6px; background: #fff; }
.fot-recent-import summary, .fot-ranker summary { padding: .8rem .9rem; color: #334961; font-size: .78rem; font-weight: 800; cursor: pointer; }
.fot-recent-body, .fot-ranker-body { padding: 0 .9rem .9rem; }
.fot-recent-body > p, .fot-ranker-body > p { margin: 0 0 .65rem; color: var(--fot-muted); font-size: .7rem; line-height: 1.55; }
.fot-recent-results { display: grid; gap: .4rem; max-height: 420px; margin-top: .65rem; overflow-y: auto; }
.fot-recent-results > button { grid-template-columns: 58px minmax(0, 1fr) auto; min-height: 70px; border-color: var(--fot-line); }
.fot-recent-results > button:hover { border-color: #9ecbc5; background: #f7fbfa; }
.fot-recent-results > button > i { color: var(--fot-accent-dark); font-size: .7rem; font-style: normal; font-weight: 900; }
.fot-recent-result-head { display: flex; justify-content: space-between; gap: .7rem; padding: .45rem 0; }
.fot-recent-result-head strong { font-size: .75rem; }
.fot-recent-result-head span { color: var(--fot-muted); font-size: .65rem; }
.fot-ranker-body > button { min-height: 42px; }
.fot-ranker-body #ranker-stats-result > p { display: flex; justify-content: space-between; gap: 1rem; margin: .7rem 0 .4rem; color: var(--fot-muted); font-size: .7rem; }
.fot-ranker-body #ranker-stats-result > p strong { color: var(--fot-ink); }
.fot-ranker-body dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: .4rem 0 0; }
.fot-ranker-body dl div { padding: .55rem .35rem; border-top: 1px solid var(--fot-line); }
.fot-ranker-body dt { color: var(--fot-muted); font-size: .62rem; }
.fot-ranker-body dd { margin: .15rem 0 0; color: var(--fot-ink); font-size: .8rem; font-weight: 900; }
.fot-api-credit { display: flex; justify-content: space-between; gap: 1rem; margin: .8rem 0 0; color: var(--fot-muted); font-size: .64rem; }
.fot-api-credit strong { color: var(--fot-accent-dark); }

.fot-position-panel { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 1rem 1.25rem; padding: 1.25rem 1.4rem; border-bottom: 1px solid var(--fot-line); background: #fbfcfd; }
.fot-label-row { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.fot-label-row strong { color: var(--fot-ink); font-size: .95rem; }
.fot-label-row span { color: var(--fot-muted); font-size: .75rem; }
.fot-position-buttons { display: grid; gap: .7rem; min-width: 0; }
.fot-position-group { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: .65rem; align-items: center; }
.fot-position-group > span { color: var(--fot-muted); font-size: .76rem; font-weight: 700; }
.fot-position-group > div { display: flex; flex-wrap: wrap; gap: .4rem; }
.fot-position-group button { width: 46px; min-height: 38px; padding: .35rem; border: 1px solid #cbd7e3; border-radius: 5px; background: #fff; color: #33475f; font-size: .8rem; font-weight: 800; cursor: pointer; }
.fot-position-group button.is-active { border-color: var(--fot-accent); background: var(--fot-accent); color: #fff; }
.fot-enhancement { display: block; margin: 0; }
.fot-enhancement > span { display: block; margin-bottom: .4rem; color: var(--fot-ink); font-size: .83rem; font-weight: 800; }
.fot-enhancement select { width: 100%; height: 46px; margin: 0; padding: 0 .7rem; border: 1px solid #cbd7e3; border-radius: 6px; background: #fff; color: var(--fot-ink); font-weight: 800; }
.fot-enhancement small { display: block; margin-top: .35rem; color: var(--fot-muted); font-size: .7rem; line-height: 1.4; }

.fot-training-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)) minmax(0, 1fr); gap: .65rem; align-items: center; padding: .9rem 1.4rem; border-bottom: 1px solid var(--fot-line); background: #edf8f6; }
.fot-training-meta div { display: flex; flex-direction: column; }
.fot-training-meta span { color: #58716d; font-size: .72rem; }
.fot-training-meta strong { color: var(--fot-accent-dark); font-size: 1rem; }
.fot-training-meta p { margin: 0; color: #365d58; font-size: .78rem; text-align: right; }

.fot-stat-head, .fot-stat-row { display: grid; grid-template-columns: minmax(130px, 1.1fr) minmax(90px, .8fr) minmax(82px, .7fr) minmax(144px, 1fr); gap: .75rem; align-items: center; }
.fot-stat-head { padding: .75rem 1.4rem; border-bottom: 1px solid var(--fot-line); background: #eef3f7; color: #66768b; font-size: .72rem; font-weight: 800; }
.fot-stat-row { min-height: 76px; padding: .7rem 1.4rem; border-bottom: 1px solid #e8edf2; }
.fot-stat-row:last-child { border-bottom: 0; }
.fot-stat-row:hover { background: #fbfcfd; }
.fot-stat-name strong, .fot-stat-name span, .fot-contribution span, .fot-contribution b { display: block; }
.fot-stat-name strong { color: var(--fot-ink); font-size: .9rem; }
.fot-stat-name span, .fot-contribution span { margin-top: .15rem; color: var(--fot-muted); font-size: .7rem; }
.fot-stat-row label { margin: 0; }
.fot-stat-row input { width: 100%; height: 44px; margin: 0; padding: 0 .65rem; border: 1px solid #cbd7e3; border-radius: 6px; background: #fff; color: var(--fot-ink); font-size: .95rem; font-weight: 800; text-align: center; }
.fot-contribution b { margin-top: .15rem; color: #30445c; font-size: .86rem; }
.fot-training-control { display: grid; grid-template-columns: 38px 42px 38px; gap: .3rem; align-items: center; justify-content: end; }
.fot-training-control button { width: 38px; height: 38px; padding: 0; border: 1px solid #bfd1dd; border-radius: 5px; background: #fff; color: var(--fot-accent-dark); font-size: 1.05rem; font-weight: 900; cursor: pointer; }
.fot-training-control output { color: var(--fot-ink); font-size: .9rem; font-weight: 900; text-align: center; }
.fot-training-control small { grid-column: 1 / -1; color: var(--fot-muted); font-size: .66rem; text-align: right; }
.fot-page[data-mode="overall"] .fot-stat-head, .fot-page[data-mode="overall"] .fot-stat-row { grid-template-columns: minmax(130px, 1.2fr) minmax(90px, .8fr) minmax(82px, .7fr); }
.fot-page[data-mode="overall"] [data-training-cell] { display: none; }

.fot-other-stats { border-top: 1px solid var(--fot-line); }
.fot-other-stats summary { padding: 1rem 1.4rem; color: #334961; font-weight: 800; cursor: pointer; }
.fot-other-stats > p { margin: 0; padding: 0 1.4rem 1rem; color: var(--fot-muted); font-size: .78rem; line-height: 1.6; }
.fot-other-stats[open] summary { color: var(--fot-accent-dark); }
.fot-stat-row.is-optional { background: #fbfcfd; }
.fot-calculator-actions { display: flex; gap: .55rem; padding: 1.1rem 1.4rem 0; border-top: 1px solid var(--fot-line); }
.fot-calculator-actions button, .fot-copy, .fot-optimizer-buttons button { min-height: 44px; padding: .6rem .9rem; border: 1px solid var(--fot-accent); border-radius: 6px; background: var(--fot-accent); color: #fff; font-size: .82rem; font-weight: 800; cursor: pointer; }
.fot-calculator-actions .secondary, .fot-optimizer-buttons .secondary { background: #fff; color: var(--fot-accent-dark); }
.fot-status { min-height: 1.5rem; margin: .65rem 1.4rem 1rem; color: var(--fot-muted); font-size: .76rem; line-height: 1.5; }
.fot-status.is-error { color: #a43b36; }
.fot-status.is-success { color: #216f66; }

.fot-result-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(210px, .55fr); border-top: 1px solid var(--fot-line); }
.fot-result { min-width: 0; padding: 1.35rem 1.4rem; background: var(--fot-soft); }
.fot-primary-result { padding: .8rem 0 1rem; border-bottom: 1px solid var(--fot-line); }
.fot-primary-result > span { display: block; color: var(--fot-muted); font-size: .78rem; }
.fot-primary-result output { display: block; margin: .25rem 0; color: var(--fot-accent-dark); font-size: 3rem; font-weight: 900; line-height: 1; }
.fot-primary-result p { margin: .5rem 0 0; color: #44566d; font-size: .8rem; line-height: 1.55; }
.fot-progress { padding: 1rem 0 .4rem; }
.fot-progress-label { display: flex; justify-content: space-between; gap: 1rem; color: var(--fot-muted); font-size: .72rem; }
.fot-progress-track { height: 9px; margin-top: .45rem; overflow: hidden; border-radius: 4px; background: #dce5ea; }
.fot-progress-track i { display: block; width: 0; height: 100%; background: var(--fot-accent); transition: width .15s ease; }
.fot-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: .45rem 0 0; }
.fot-result-grid div { min-width: 0; padding: .7rem .25rem; border-bottom: 1px solid var(--fot-line); }
.fot-result-grid dt { color: var(--fot-muted); font-size: .7rem; }
.fot-result-grid dd { margin: .2rem 0 0; overflow-wrap: anywhere; color: var(--fot-ink); font-size: .88rem; font-weight: 800; }
.fot-before-after { display: grid; grid-template-columns: 1fr auto 1fr 1fr; gap: .55rem; align-items: center; margin-top: 1rem; padding: .85rem; border: 1px solid #cfe0e1; border-radius: 6px; background: #fff; }
.fot-before-after div { text-align: center; }
.fot-before-after span, .fot-before-after strong { display: block; }
.fot-before-after span { color: var(--fot-muted); font-size: .68rem; }
.fot-before-after strong { margin-top: .15rem; color: var(--fot-ink); font-size: 1.15rem; }
.fot-before-after div:last-child strong { color: var(--fot-accent-dark); }
.fot-copy { width: 100%; margin-top: 1rem; background: #fff; color: var(--fot-accent-dark); }
.fot-insights { padding: 1.35rem 1rem; border-left: 1px solid var(--fot-line); background: #fff; }
.fot-insights h3 { margin: 0 0 .8rem; color: var(--fot-ink); font-size: .95rem; line-height: 1.4; }
.fot-insights ol { margin: 0; padding: 0; list-style: none; }
.fot-insights li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: .35rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid #e8edf2; }
.fot-insights li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #edf8f6; color: var(--fot-accent-dark); font-size: .68rem; font-weight: 900; }
.fot-insights li strong, .fot-insights li b { font-size: .76rem; }
.fot-insights > p { margin: .8rem 0 0; color: var(--fot-muted); font-size: .7rem; line-height: 1.5; }

.fot-optimizer { padding: 1.2rem 1.4rem 1.4rem; border-top: 1px solid var(--fot-line); }
.fot-optimizer h3 { margin: 0; color: var(--fot-ink); font-size: 1.05rem; }
.fot-optimizer > div:first-child p { margin: .25rem 0 .8rem; color: var(--fot-muted); font-size: .78rem; }
.fot-optimizer-buttons { display: flex; gap: .55rem; }
.fot-recommendation { margin-top: .85rem; padding: .9rem 1rem; border-left: 4px solid var(--fot-accent); background: #edf8f6; }
.fot-recommendation strong, .fot-recommendation span, .fot-recommendation small { display: block; }
.fot-recommendation strong { color: var(--fot-accent-dark); font-size: .86rem; }
.fot-recommendation span { margin-top: .35rem; color: #344f4b; font-size: .78rem; line-height: 1.55; }
.fot-recommendation small { margin-top: .3rem; color: #60736f; font-size: .7rem; }
.fot-feel-note { margin: .8rem 0 0; color: var(--fot-muted); font-size: .72rem; }

.fot-guide, .fot-faq, .fot-sources, .fot-related { margin-top: 2.35rem; padding-top: 2rem; border-top: 1px solid var(--fot-line); }
.fot-guide-grid, .fot-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: 1rem; }
.fot-guide-grid section, .fot-related-grid a { padding: 1rem; border: 1px solid var(--fot-line); border-radius: 6px; background: #fff; }
.fot-guide-grid h3 { margin: 0 0 .4rem; color: var(--fot-ink); font-size: .95rem; }
.fot-guide-grid p { margin: 0; color: #58677c; font-size: .84rem; line-height: 1.7; }
.fot-formula { display: grid; gap: .35rem; margin: 1rem 0; padding: 1rem 1.1rem; border-left: 4px solid var(--fot-accent); background: #f1f8f7; color: #35504c; }
.fot-formula strong { color: var(--fot-accent-dark); }
.fot-formula span { font-size: .85rem; }
.fot-notice { padding: .85rem 1rem; border-left: 4px solid var(--fot-warm); background: #fff8ea; color: #66512f !important; }
.fot-weight-details summary { margin-top: 1rem; padding: .9rem 1rem; border: 1px solid var(--fot-line); border-radius: 6px; color: var(--fot-accent-dark); font-weight: 800; cursor: pointer; }
.fot-table-wrap { margin-top: .6rem; overflow: hidden; border: 1px solid var(--fot-line); border-radius: 6px; }
.fot-table-wrap table { width: 100%; margin: 0; border-collapse: collapse; }
.fot-table-wrap th, .fot-table-wrap td { padding: .65rem .8rem; border: 0; border-bottom: 1px solid var(--fot-line); text-align: left; }
.fot-table-wrap thead th { background: #eef3f7; color: #4d5e73; font-size: .76rem; }
.fot-table-wrap tbody th, .fot-table-wrap tbody td { color: #314258; font-size: .8rem; }
.fot-weight-total th, .fot-weight-total td { background: #edf8f6; color: var(--fot-accent-dark) !important; font-weight: 900; }
.fot-faq details { border-bottom: 1px solid var(--fot-line); }
.fot-faq summary { padding: 1rem .2rem; color: var(--fot-ink); font-weight: 800; cursor: pointer; }
.fot-faq details p { margin: -.25rem 0 1rem; padding: 0 .2rem; color: #58677c; font-size: .88rem; line-height: 1.7; }
.fot-sources ul { margin: .8rem 0 1rem; }
.fot-sources li { margin: .45rem 0; }
.fot-page a { color: var(--fot-accent-dark); }
.fot-related-grid a { display: block; text-decoration: none; }
.fot-related-grid strong, .fot-related-grid span { display: block; }
.fot-related-grid strong { color: var(--fot-ink); font-size: .9rem; }
.fot-related-grid span { margin-top: .35rem; color: var(--fot-muted); font-size: .78rem; line-height: 1.55; }
.fot-page button:focus-visible, .fot-page input:focus-visible, .fot-page select:focus-visible, .fot-page summary:focus-visible, .fot-page a:focus-visible { outline: 3px solid rgba(8, 127, 114, .24); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media screen and (min-width: 901px) {
  .fot-result { position: relative; }
}

@media screen and (max-width: 900px) {
  .fot-result-layout { grid-template-columns: 1fr; }
  .fot-insights { border-top: 1px solid var(--fot-line); border-left: 0; }
}

@media screen and (max-width: 700px) {
  .fot-heading h1 { font-size: 1.72rem; }
  .fot-heading > p:last-child { font-size: .94rem; }
  .fot-position-panel { grid-template-columns: 1fr; padding-right: 1rem; padding-left: 1rem; }
  .fot-label-row { display: block; }
  .fot-label-row span { display: block; margin-top: .25rem; }
  .fot-enhancement { max-width: 180px; }
  .fot-training-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-right: 1rem; padding-left: 1rem; }
  .fot-training-meta p { grid-column: 1 / -1; text-align: left; }
  .fot-stat-head { display: none; }
  .fot-stat-row, .fot-page[data-mode="overall"] .fot-stat-row { grid-template-columns: minmax(0, 1fr) 92px; gap: .55rem; padding: .85rem 1rem; }
  .fot-stat-name { grid-column: 1; }
  .fot-stat-row label { grid-column: 2; grid-row: 1; }
  .fot-contribution { grid-column: 1; grid-row: 2; }
  .fot-training-control { grid-column: 2; grid-row: 2; }
  .fot-page[data-mode="overall"] .fot-contribution { grid-column: 1 / -1; }
  .fot-result-layout { border-top: 1px solid var(--fot-line); }
  .fot-result, .fot-insights, .fot-optimizer { padding-right: 1rem; padding-left: 1rem; }
  .fot-guide-grid, .fot-related-grid { grid-template-columns: 1fr; }
  .fot-lookup-heading { display: block; }
  .fot-lookup-heading p { margin-top: .35rem; text-align: left; }
  .fot-player-lookup { padding-right: 1rem; padding-left: 1rem; }
  .fot-selected-player { grid-template-columns: 82px minmax(0, 1fr); }
  .fot-selected-media { width: 82px; height: 82px; }
  .fot-selected-player > button { grid-column: 1 / -1; width: 100%; }
  .fot-ranker-body dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 420px) {
  .fot-heading h1 { font-size: 1.52rem; }
  .fot-tool-head { padding-right: 1rem; padding-left: 1rem; }
  .fot-tool-head h2, .fot-result h2, .fot-guide h2, .fot-faq h2, .fot-sources h2, .fot-related h2 { font-size: 1.28rem; }
  .fot-position-group { grid-template-columns: 1fr; gap: .3rem; }
  .fot-position-group button { width: 44px; min-height: 42px; }
  .fot-tabs button { padding: .4rem; font-size: .78rem; }
  .fot-before-after { grid-template-columns: 1fr auto 1fr; }
  .fot-before-after div:last-child { grid-column: 1 / -1; padding-top: .5rem; border-top: 1px solid var(--fot-line); }
  .fot-optimizer-buttons, .fot-calculator-actions { display: grid; grid-template-columns: 1fr; }
  .fot-optimizer-buttons button, .fot-calculator-actions button { width: 100%; }
  .fot-result-grid { grid-template-columns: 1fr; }
  .fot-primary-result output { font-size: 2.5rem; }
  .fot-search-row { grid-template-columns: 1fr; }
  .fot-search-row button { width: 100%; }
  .fot-search-filter { grid-template-columns: 1fr; }
  .fot-player-results > button { grid-template-columns: 58px minmax(0, 1fr); }
  .fot-player-results > button em { grid-column: 2; }
  .fot-player-media { width: 58px; height: 58px; }
  .fot-api-credit { display: block; }
  .fot-api-credit span { display: block; margin-top: .2rem; }
  .fot-recent-result-head { display: block; }
  .fot-recent-result-head span { display: block; margin-top: .2rem; }
  .fot-selected-player { grid-template-columns: 1fr; text-align: center; }
  .fot-selected-media { margin: 0 auto; }
  .fot-selected-copy p { justify-content: center; }
  .fot-selected-copy h3, .fot-selected-copy p, .fot-selected-copy small { overflow-wrap: anywhere; word-break: keep-all; }
}
