/* FPL next-moves page. Shares styles.css's tokens and pitch/chip styles; mobile-first, single column. */
body.fpl header { padding: 16px 16px 12px; min-height: 0; }
.fpl-nav { margin-top: 6px; font-size: 12.5px; }
.fpl-banner {
  background: #3a2a12; border: 1px solid #6b4e1f; color: #ffcf8f;
  padding: 8px 11px; border-radius: 8px; font-size: 13px; margin-top: 10px;
}
.fpl-banner.danger { background: #4a1620; border-color: #8f2c3e; color: #ffc2cc; font-weight: 700; }
.fpl-main { max-width: 760px; margin: 0 auto; padding: 14px 16px 24px; display: grid; gap: 14px; }
#app { display: grid; gap: 14px; min-width: 0; }
#app[hidden] { display: none; }
.fpl-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.fpl-card h2 { color: var(--ink); font-size: 16px; margin: 0 0 10px; }
.fpl-card h3 { font-size: 13.5px; margin: 16px 0 6px; }
.fpl-card p { margin: 6px 0; line-height: 1.4; }
.muted { color: var(--muted); font-weight: 400; }
.hint { color: var(--muted); font-size: 12.5px; }
.fpl-row { display: flex; gap: 10px; align-items: flex-end; margin-top: 8px; flex-wrap: wrap; }
.fpl-field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.fpl-field.grow { flex: 1 1 150px; }
/* 16px stops iOS zooming the page when a field takes focus. */
.fpl input, .fpl select, .fpl-card button { font-size: 16px; min-height: 42px; }
.fpl-field input, .fpl-field select { width: 100%; }
.fpl-msg { font-size: 13px; color: var(--avg); }
.fpl-msg.bad { color: var(--bad); }
.fpl-go { width: 100%; margin-top: 12px; font-size: 16px; }
.fpl-go:disabled { opacity: .45; cursor: not-allowed; }

.fpl-squad-pos { margin-bottom: 6px; }
.fpl-slot {
  display: grid; grid-template-columns: minmax(0, 1fr) 76px 42px; gap: 6px; align-items: center;
  border-bottom: 1px solid var(--line); padding: 5px 0;
}
.fpl-slot .who { min-width: 0; }
.fpl-slot .nm { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpl-slot .sub { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpl-slot .warn { color: var(--avg); }
.fpl-slot input { width: 100%; padding: 6px; text-align: right; }
.fpl-slot button { padding: 0; }
.fpl-slot.empty { grid-template-columns: 1fr; }
.fpl-slot.empty button { text-align: left; padding: 0 10px; color: var(--muted); border-style: dashed; width: 100%; }
.fpl-slot-head { display: grid; grid-template-columns: minmax(0, 1fr) 76px 42px; gap: 6px; font-size: 11px; color: var(--muted); }

.fpl-picker { margin-top: 12px; display: grid; gap: 8px; }
.fpl-picker input { width: 100%; }
.fpl-picker .seg { display: flex; }
.fpl-picker .seg button { flex: 1; padding: 6px 2px; min-height: 36px; font-size: 13px; }
.fpl-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.fpl-list button {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; width: 100%; text-align: left;
  border: none; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 8px 10px; align-items: center;
}
.fpl-list button:disabled { opacity: .4; cursor: not-allowed; }
.fpl-list .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpl-list .pts { color: var(--team); font-weight: 700; }
.fpl-list .empty { padding: 12px; color: var(--muted); }

.fpl-verdict { font-size: 17px; font-weight: 700; line-height: 1.35; }
.fpl-verdict small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.fpl-move { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); gap: 6px; align-items: center; margin-top: 8px; }
.fpl-move > div { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; min-width: 0; }
.fpl-move .nm { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpl-move .sub { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpl-move .out { border-color: #7a3540; }
.fpl-move .in { border-color: #2a7a5e; }
.fpl-move .arrow { text-align: center; color: var(--muted); }

.fpl-table-wrap { overflow-x: auto; }
.fpl-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fpl-table th { font-size: 11.5px; color: var(--muted); font-weight: 600; text-align: right; padding: 5px 7px; }
.fpl-table td { text-align: right; padding: 9px 7px; border-top: 1px solid var(--line); }
.fpl-table th:first-child, .fpl-table td:first-child { text-align: left; }
.fpl-table tbody tr { cursor: pointer; }
.fpl-table tr.best td { color: var(--accent); font-weight: 700; }
.fpl-table tr.shown { background: var(--panel2); }

body.fpl .pitch { padding: 12px 4px; }
body.fpl .pitch-row { flex-wrap: nowrap; overflow: visible; justify-content: center; gap: 4px; }
body.fpl .chip { flex: 1 1 0; min-width: 0; max-width: 110px; padding: 5px 3px; cursor: default; position: relative; text-align: center; }
body.fpl .chip:hover { transform: none; }
body.fpl .chip .nm { max-width: 100%; font-size: 11.5px; }
body.fpl .chip .badge {
  position: absolute; top: -5px; right: -2px; background: var(--accent); color: #06231a; font-size: 10px;
  font-weight: 800; border-radius: 9px; padding: 1px 5px;
}
body.fpl .chip .badge.vice { background: #c9d3e2; }
.fpl-bench { margin: 0; padding-left: 22px; }
.fpl-bench li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.fpl-bench .pts { color: var(--team); font-weight: 700; float: right; }
.fpl-bench .sub { color: var(--muted); font-size: 12px; }

.chip-head td { font-size: 12px; opacity: .7; padding-top: 12px; }
.chip-row { cursor: pointer; }

/* Why: the reasons under the recommendation (both the 5-week plan and the one-week answer) */
.fpl-why { margin: 4px 0 10px; padding-left: 18px; }
.fpl-why li { margin: 4px 0; line-height: 1.45; }
#mode-note { margin: -4px 0 8px; font-size: 13px; }
#deeper { margin: 14px 0 4px; }
details#other-options { margin-top: 14px; }
details#other-options summary { cursor: pointer; font-weight: 600; }
