/* DFS Lab. Uses only the site's own color variables from style.css. */
.dfs-wrap { max-width: 1180px; margin: 0 auto; padding: 24px 16px 80px; position: relative; }
.dfs-h1 { font-size: 30px; font-weight: 800; margin: 8px 0 6px; }
.dfs-tag { font-size: 12px; font-weight: 700; color: var(--gold); border: 1px solid var(--border-bright); border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.dfs-dim { color: var(--text-dim); font-size: 13px; }
.dfs-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.dfs-panel h2 { font-size: 18px; margin: 0 0 8px; }
.dfs-panel h3 { font-size: 15px; margin: 14px 0 4px; }
.dfs-file input { display: block; margin-top: 8px; color: var(--text); max-width: 100%; }
.dfs-game { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.dfs-game:last-child { border-bottom: none; }
.dfs-game-name { min-width: 150px; font-weight: 600; }
.dfs-line { flex-basis: 100%; order: 9; font-size: 13px; }
.dfs-useline { font-size: 14px; margin-bottom: 4px; }
.dfs-game-name b { font-family: var(--mono); color: var(--green); margin-left: 6px; }
.dfs-wrap select, .dfs-wrap input[type="number"], .dfs-wrap input[type="search"] { background: var(--card); color: var(--text); border: 1px solid var(--border-bright); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 14px; }
.dfs-wrap input[type="number"] { width: 72px; }
.dfs-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.dfs-filters input[type="search"] { flex: 1 1 220px; min-width: 0; }
.dfs-pos, .dfs-btn, .dfs-chip { background: var(--card); color: var(--text); border: 1px solid var(--border-bright); border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.dfs-pos.on { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.dfs-btn.big { background: var(--accent); border-color: var(--accent); color: var(--bg); font-size: 16px; padding: 12px 22px; box-shadow: 0 0 24px var(--accent-glow); }
.dfs-btn.sm { padding: 4px 10px; font-size: 12px; }
.dfs-btn.ghost { background: transparent; }
.dfs-btn:disabled { opacity: 0.45; cursor: default; }
.dfs-runbar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 16px 0 6px; }
.dfs-msg { min-height: 20px; font-size: 14px; color: var(--green); margin: 6px 0; }
.dfs-msg.bad { color: var(--red); }
.dfs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dfs-table th { text-align: left; color: var(--text-dim); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 8px; border-bottom: 1px solid var(--border-bright); white-space: nowrap; }
.dfs-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dfs-num { font-family: var(--mono); text-align: right; white-space: nowrap; }
.dfs-line { color: var(--text-dim); font-size: 12px; }
.dfs-final { display: inline-block; font-family: var(--mono); font-size: 13px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 4px 9px; margin: 3px 6px 3px 0; }
.dfs-out { font-size: 13px; color: var(--text-dim); margin: 8px 0 0; }
.dfs-chip { padding: 3px 9px; font-size: 12px; }
.dfs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin-top: 10px; }
.dfs-card { position: relative; background: var(--card); border: 1px solid var(--border-bright); border-radius: 12px; overflow: hidden; }
.dfs-card-head { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border-bright); font-size: 14px; }
.dfs-card-head b { font-family: var(--mono); color: var(--green); }
.dfs-sal { font-family: var(--mono); color: var(--text-dim); margin-right: auto; }
.dfs-lu { width: 100%; border-collapse: collapse; font-size: 13px; }
.dfs-lu td { padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.dfs-lu tr:last-child td { border-bottom: none; }
.dfs-slot { color: var(--text-dim); font-size: 11px; font-weight: 700; width: 38px; }
.dfs-acts { white-space: nowrap; text-align: right; }
.dfs-x, .dfs-lock { background: transparent; border: 1px solid var(--border-bright); border-radius: 6px; width: 30px; height: 30px; cursor: pointer; font-size: 13px; margin-left: 4px; color: var(--text); }
.dfs-x { color: var(--red); }
.dfs-lock.on { border-color: var(--gold); }
.dfs-brand { text-decoration: none; color: inherit; }
.dfs-panel summary { cursor: pointer; }
.dfs-panel summary h2 { display: inline; }
.dfs-menu { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 32px); max-width: 420px; z-index: 50; background: var(--card); border: 1px solid var(--accent); border-radius: 12px; padding: 8px; box-shadow: 0 12px 30px var(--accent-glow); }
.dfs-menu-h { font-weight: 700; font-size: 14px; padding: 4px 6px 8px; }
.dfs-menu button { display: block; width: 100%; text-align: left; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; margin: 0 0 6px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.dfs-menu button small { display: block; font-weight: 400; color: var(--text-dim); font-size: 12px; margin-top: 2px; }
.dfs-menu .dfs-menu-c { text-align: center; color: var(--text-dim); margin-bottom: 0; }
.dfs-team { font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border); line-height: 1.5; }
@media (max-width: 480px) {
  .dfs-h1 { font-size: 24px; }
  .dfs-panel { padding: 12px; }
  .dfs-cards { grid-template-columns: 1fr; }
  .dfs-game-name { min-width: 100%; }
  .dfs-btn.big { width: 100%; }
}
.dfs-runbar[hidden], .dfs-btn[hidden] { display: none; } /* the flex rule above was overriding hidden: Simulate showed before any slate was loaded and did nothing */
/* How DFS Lab makes its numbers (dfs-formula.html) */
.fx-page p, .fx-page li { font-size: 14px; line-height: 1.6; }
.fx { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; padding: 10px 12px; margin: 8px 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.fx-in { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.fx [data-k], .fx-page p [data-k], .fx-page li [data-k] { color: var(--gold); font-weight: 700; }
.fx-steps { padding-left: 20px; margin: 6px 0; } .fx-steps li { margin: 6px 0; }
.fx-toc { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; } .fx-toc a { color: var(--accent); text-decoration: none; white-space: nowrap; min-height: 28px; display: inline-flex; align-items: center; }
.fx-page section { scroll-margin-top: 80px; }
.dfs-how { color: var(--accent); font-size: 13px; font-weight: 600; }
/* Tap targets: every control is at least 44px tall (and 44px wide) so a thumb can hit it. */
.dfs-pos, .dfs-btn, .dfs-chip, .dfs-btn.sm, .dfs-menu button { min-height: 44px; min-width: 44px; }
a.dfs-btn { display: inline-flex; align-items: center; text-decoration: none; }
.dfs-x, .dfs-lock { width: 44px; height: 44px; font-size: 15px; }
.dfs-wrap select, .dfs-wrap input[type="number"], .dfs-wrap input[type="search"] { min-height: 44px; }
.dfs-file input { min-height: 44px; padding: 10px 0; }
.dfs-tap { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; } .dfs-tap input { width: 20px; height: 20px; }
.dfs-how, .fx-toc a { min-height: 44px; display: inline-flex; align-items: center; }
.dfs-panel summary { min-height: 44px; }
.dfs-wrap a:not([class]) { color: var(--accent); } /* plain links (the data credit) were browser-default blue on the dark page */
.dfs-swipe { display: none; }
@media (max-width: 640px) { .dfs-swipe { display: block; margin: 0 0 6px; } }
/* A lineup row is two lines (slot, name, salary, points; then the stat line beside the two buttons) instead of five squeezed
   columns, so one lineup fits on one phone screen and names do not wrap on desktop. */
.dfs-lu, .dfs-lu tbody { display: block; }
.dfs-lu tr { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; column-gap: 8px; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.dfs-lu tr:last-child { border-bottom: none; }
.dfs-lu td { padding: 0; border-bottom: none; }
.dfs-lu td.dfs-who { display: contents; }
.dfs-lu .dfs-slot { width: auto; grid-column: 1; grid-row: 1; }
.dfs-lu .dfs-nm { grid-column: 2; grid-row: 1; font-weight: 600; }
.dfs-lu .dfs-line { grid-column: 1 / 3; grid-row: 2; }
.dfs-lu td:nth-child(3) { grid-column: 3; grid-row: 1; } .dfs-lu td:nth-child(4) { grid-column: 4; grid-row: 1; }
.dfs-lu .dfs-acts { grid-column: 3 / 5; grid-row: 2; justify-self: end; }
.dfs-wrap select { -webkit-appearance: menulist-button; appearance: menulist-button; height: 44px; } /* Safari ignores min-height on a plain dropdown */
.dfs-wrap p a:not([class]) { display: inline-block; padding: 14px 0; min-width: 44px; } /* a link inside a sentence is still a 44px tap target */
#dfsManyNote { margin-bottom: 12px; }
.dfs-stackbar { display: block; margin-top: 0; } .dfs-stackrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 4px 0; } .dfs-stackbar[hidden] { display: none; }
.dfs-chk { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; cursor: pointer; } .dfs-chk input { width: 20px; height: 20px; }
.dfs-locked { margin: 6px 0; font-size: 14px; } .dfs-locked[hidden] { display: none; } .dfs-unlock { min-height: 44px; cursor: pointer; }
.dfs-lock:not(.on) { opacity: 0.4; } /* an open and a closed padlock look alike at this size: unlocked is dim, locked is bright with a gold border */
.dfs-optrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; font-size: 14px; } .dfs-opt { background: var(--card); color: var(--text); border: 1px solid var(--border-bright); border-radius: 8px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 44px; min-width: 44px; } .dfs-opt.on { background: var(--accent); border-color: var(--accent); color: var(--bg); }
