:root{--bg:#07131f;--panel:#0d2032;--panel2:#112a40;--line:#24445f;--text:#f4f7fb;--muted:#9db2c5;--accent:#f4b942;--accent2:#ffcf68;--danger:#c94b52;--ok:#43c59e;--shadow:0 18px 45px rgba(0,0,0,.28)}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top right,#12334d 0,#07131f 48%);color:var(--text);font:15px/1.35 Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;min-height:100vh}.topbar{display:flex;justify-content:space-between;align-items:center;padding:24px 30px;border-bottom:1px solid rgba(255,255,255,.09);background:rgba(5,15,25,.76);backdrop-filter:blur(12px);position:sticky;top:0;z-index:10}.topbar h1{font-size:32px;line-height:1;margin:3px 0 2px;letter-spacing:.02em}.topbar h1 span{color:var(--accent)}.topbar p{margin:0;color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:.18em;font-weight:800;color:var(--accent)}.header-actions{display:flex;flex-wrap:wrap;gap:8px}button,.file-label{border:0;border-radius:9px;padding:11px 14px;font-weight:750;cursor:pointer;font:inherit;transition:.15s transform,.15s opacity;background:#17344c;color:#fff}.primary{background:var(--accent);color:#15202a}.secondary{background:#17344c;color:#e8f0f7;border:1px solid #2d506b}.danger{background:#652d35;color:#ffdfe2;border:1px solid #9c4651}button:hover,.file-label:hover{transform:translateY(-1px)}button:disabled{opacity:.45;cursor:not-allowed;transform:none}main{padding:22px 28px 40px;max-width:1900px;margin:auto}.card{background:linear-gradient(180deg,rgba(17,42,64,.97),rgba(10,29,45,.98));border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.control-panel{padding:16px;display:grid;grid-template-columns:minmax(260px,2.3fr) 130px minmax(160px,1fr) 130px auto auto;gap:12px;align-items:end}.field label{display:block;color:var(--muted);font-size:12px;font-weight:750;margin:0 0 6px}.field input,.field select,.value-tools input,select{width:100%;border:1px solid #31536d;background:#081826;color:#fff;border-radius:9px;padding:11px 12px;font:inherit}.helper{font-size:11px;color:var(--muted);margin-top:5px;min-height:15px}.team-bid-info{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:6px}.team-bid-info span{font-size:10px;color:var(--muted);background:#081826;border:1px solid #24445f;border-radius:7px;padding:5px 7px}.team-bid-info strong{color:#fff}.max-bid-btn{grid-column:1/-1;padding:7px 9px;border-radius:7px;background:#1f6a57;border:1px solid #43c59e;color:#eafff9;font-size:12px}.max-bid-btn:disabled{background:#17344c;border-color:#2d506b}.money-input{position:relative}.money-input span{position:absolute;left:12px;top:11px;color:var(--accent);font-weight:800}.money-input input{padding-left:27px}.summary-row{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin:16px 0}.best-card,.status-card{padding:17px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.section-heading h2{margin:3px 0 0;font-size:20px}.section-heading select{width:160px}.best-three{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:13px}.best-player{background:#081826;border:1px solid #284a64;border-radius:12px;padding:12px;display:flex;align-items:center;gap:10px}.best-rank{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#17212a;font-weight:900}.best-name{font-weight:800}.best-meta{font-size:12px;color:var(--muted)}.best-value{margin-left:auto;color:var(--accent2);font-size:19px;font-weight:900}.status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}.status-grid div{background:#081826;border-radius:10px;padding:12px;text-align:center}.status-grid strong{display:block;font-size:23px;color:var(--accent2)}.status-grid span{font-size:11px;color:var(--muted)}.board-wrap{overflow:auto;padding:0}.board{display:grid;grid-template-columns:repeat(10,minmax(240px,1fr));min-width:2400px}.team-column{border-right:1px solid var(--line);min-width:0;min-height:700px;overflow:hidden}.team-column:last-child{border-right:0}.team-head{position:sticky;top:0;background:#102a40;padding:13px 10px;border-bottom:2px solid var(--accent);z-index:2}.team-name{font-size:15px;font-weight:900;white-space:normal;overflow-wrap:anywhere;word-break:break-word;text-align:center;line-height:1.2;min-height:36px;display:flex;align-items:center;justify-content:center}.auction-progress{margin-top:8px;padding:7px 8px;border:1px solid #31536d;border-radius:8px;background:#081826;display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 8px}.auction-progress span{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.auction-progress strong{font-size:17px;color:var(--accent);line-height:1}.auction-progress small{grid-column:1/-1;font-size:10px;color:#8aa7bb}.auction-progress.complete{border-color:#43c59e;background:#0d3029}.auction-progress.complete strong,.auction-progress.complete small{color:#7be0c0}.team-finance{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:8px;font-size:11px}.team-finance div{background:#081826;padding:5px 6px;border-radius:6px;color:var(--muted)}.team-finance strong{display:block;color:#fff;font-size:14px}.roster-slot{min-height:54px;border-bottom:1px solid rgba(91,132,164,.25);padding:7px 8px;display:grid;grid-template-columns:35px minmax(0,1fr) auto;align-items:center;gap:6px;overflow:hidden}.slot-label{font-size:10px;color:var(--accent);font-weight:900}.pick-name{font-size:12px;font-weight:750;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.18;max-width:100%}.pick-team{font-size:10px;color:var(--muted)}.pick-price{font-size:13px;font-weight:900;color:var(--accent2)}.empty{color:#577086;font-size:11px}.pick-actions{display:none}.roster-slot.filled:hover{background:#15334a;cursor:pointer}.roster-slot.filled:hover .pick-price{color:#fff}dialog{border:0;padding:0;background:transparent;color:var(--text);max-width:min(94vw,800px);width:100%}dialog::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(5px)}.dialog-card{background:#0c2031;border:1px solid #31536d;border-radius:15px;padding:20px;box-shadow:var(--shadow)}.wide-dialog{max-width:900px;margin:auto}.dialog-header{display:flex;justify-content:space-between;align-items:center}.dialog-header h2{margin:0}.icon-btn{background:transparent;font-size:28px;padding:0 7px}.team-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.team-fields label{font-size:12px;color:var(--muted)}.team-fields input{display:block;width:100%;margin-top:4px;background:#071826;border:1px solid #31536d;color:#fff;padding:10px;border-radius:8px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.value-tools{display:grid;grid-template-columns:1fr auto auto;gap:10px}.file-label input{display:none}.value-table-wrap{max-height:55vh;overflow:auto;margin-top:12px;border:1px solid var(--line);border-radius:10px}table{width:100%;border-collapse:collapse}th,td{padding:9px 11px;border-bottom:1px solid #24445f;text-align:left}th{position:sticky;top:0;background:#143149;z-index:1}td input{width:78px;background:#071826;border:1px solid #31536d;color:white;border-radius:6px;padding:6px}code{color:var(--accent2)}
@media(max-width:1050px){.control-panel{grid-template-columns:2fr 1fr 1fr}.summary-row{grid-template-columns:1fr}.header-actions{max-width:520px;justify-content:flex-end}}@media(max-width:700px){.topbar{align-items:flex-start;gap:15px;padding:18px;flex-direction:column;position:static}.header-actions{justify-content:flex-start}.control-panel{grid-template-columns:1fr 1fr}.player-field{grid-column:1/-1}.summary-row{display:block}.status-card{margin-top:12px}.best-three{grid-template-columns:1fr}.team-fields{grid-template-columns:1fr}.value-tools{grid-template-columns:1fr}main{padding:14px}}
.edit-dialog-card{max-width:520px;margin:auto}.edit-dialog-card h3{margin:14px 0;color:var(--accent2)}.edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.edit-grid label{font-size:12px;color:var(--muted);font-weight:750}.edit-grid select,.edit-grid input{display:block;width:100%;margin-top:6px;border:1px solid #31536d;background:#081826;color:#fff;border-radius:9px;padding:11px 12px;font:inherit}
@media(max-width:600px){.edit-grid{grid-template-columns:1fr}}

.sync-fields{display:grid;gap:12px}.sync-fields label{font-size:12px;color:var(--muted);font-weight:750}.sync-fields input,.sync-fields textarea{display:block;width:100%;margin-top:6px;border:1px solid #31536d;background:#081826;color:#fff;border-radius:9px;padding:11px 12px;font:inherit}.sync-dialog-card{max-width:650px;margin:auto}.sync-live{border-color:#43c59e!important;color:#bff7e5!important}.sync-offline{border-color:#9c4651!important;color:#ffdfe2!important}.sync-saving{border-color:#f4b942!important;color:#ffe3a1!important}

/* Responsive draft-board layout */
.board-wrap{overflow-x:auto;overflow-y:visible;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}
.team-head{min-height:166px}
.pick-price{white-space:nowrap;align-self:center}
body.compact .board{grid-template-columns:repeat(10,minmax(205px,1fr));min-width:2050px}
body.compact .team-head{min-height:140px;padding:9px 7px}
body.compact .team-name{font-size:13px;min-height:31px}
body.compact .auction-progress{margin-top:5px;padding:5px 6px}
body.compact .auction-progress strong{font-size:15px}
body.compact .team-finance{margin-top:5px}
body.compact .roster-slot{min-height:42px;padding:4px 6px;grid-template-columns:31px minmax(0,1fr) auto}
body.compact .pick-name{font-size:11px;line-height:1.1}
body.compact .pick-team,body.compact .slot-label{font-size:9px}
body.compact .pick-price{font-size:12px}
#compactBtn[aria-pressed="true"]{background:#1f6a57;border-color:#43c59e;color:#eafff9}

.mode-badge{display:inline-flex;align-items:center;margin-left:10px;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:850;letter-spacing:.03em;vertical-align:middle}.mode-admin{background:#123c33;color:#8ff0cf;border:1px solid #2f8069}.mode-viewer{background:#263443;color:#c6d5e2;border:1px solid #526b80}.optional{font-weight:500;color:var(--muted)}body.viewer-mode .roster-slot.filled{cursor:default}body.viewer-mode .roster-slot.filled:hover{background:transparent}button:disabled,input:disabled,select:disabled{opacity:.52;cursor:not-allowed}

/* Live auction stage */
.auction-stage{padding:18px;margin-bottom:16px}.auction-stage-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.auction-stage-head h2{margin:3px 0 0}.auction-timer{font-variant-numeric:tabular-nums;font-size:38px;font-weight:950;min-width:112px;text-align:center;padding:8px 15px;border-radius:12px;background:#081826;border:2px solid var(--accent);color:var(--accent)}.auction-timer.paused{border-color:#8aa7bb;color:#d7e4ee;background:#10283a}.auction-timer.warning{border-color:#f4b942;color:#f4b942}.auction-timer.expired{border-color:#ef6a72;color:#ff9ca2;animation:pulseTimer 1s infinite}.auction-timer.idle{color:var(--muted);border-color:#31536d}@keyframes pulseTimer{50%{opacity:.58}}.auction-stage-grid{display:grid;grid-template-columns:minmax(250px,1.2fr) minmax(300px,2fr) minmax(190px,.8fr);gap:14px;margin-top:14px}.auction-nomination,.current-auction-player,.high-bid-card,.team-bid-entry{background:#081826;border:1px solid #284a64;border-radius:12px;padding:14px}.auction-nomination label,.team-bid-entry label{display:block;color:var(--muted);font-size:12px;font-weight:750;margin:0 0 6px}.auction-nomination input,.auction-nomination select,.team-bid-entry select,.team-bid-entry input{width:100%;border:1px solid #31536d;background:#06131f;color:#fff;border-radius:9px;padding:11px 12px;font:inherit}.auction-admin-actions{display:flex;gap:8px;margin-top:10px}.current-auction-player{display:flex;align-items:center;justify-content:center;text-align:center;min-height:128px}.current-auction-player h3{font-size:28px;margin:0 0 5px;overflow-wrap:anywhere}.current-auction-player .auction-player-meta{color:var(--muted)}.current-auction-player .auction-value{color:var(--accent2);font-weight:900;margin-top:8px}.empty-auction{color:var(--muted)}.high-bid-card{text-align:center;display:flex;flex-direction:column;justify-content:center}.high-bid-card>span{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.1em}.high-bid-card strong{font-size:38px;color:var(--accent2);line-height:1.1;margin:5px 0}.high-bid-card small{min-height:30px}.high-bid-card button{margin-top:10px}.team-bidding{display:grid;grid-template-columns:280px 1fr;gap:14px;margin-top:14px}.team-bid-entry{display:grid;grid-template-columns:1fr 1fr;gap:7px 9px;align-items:end}.team-bid-entry label:nth-of-type(2){grid-column:2}.team-bid-entry .money-input{grid-column:2}.team-bid-entry button{grid-column:1/-1}.team-bid-grid{display:grid;grid-template-columns:repeat(5,minmax(125px,1fr));gap:8px}.team-bid-tile{background:#081826;border:1px solid #284a64;border-radius:10px;padding:9px;min-width:0}.team-bid-tile.leading{border-color:var(--accent2);box-shadow:0 0 0 1px rgba(67,197,158,.35)}.team-bid-tile .bid-team-name{font-size:11px;font-weight:800;white-space:normal;overflow-wrap:anywhere;line-height:1.15;min-height:27px}.team-bid-tile .bid-amount{font-size:19px;font-weight:900;color:var(--accent);margin-top:4px}.team-bid-tile .bid-max{font-size:9px;color:var(--muted)}.auction-message{text-align:center;margin-top:9px}.viewer-mode #submitAuctionBidBtn,.viewer-mode #bidderTeamSelect,.viewer-mode #auctionBidInput{opacity:1;cursor:pointer}.viewer-mode #auctionPlayerSearch,.viewer-mode #startAuctionBtn,.viewer-mode #pauseAuctionBtn,.viewer-mode #cancelAuctionBtn,.viewer-mode #awardPlayerBtn{opacity:.52;cursor:not-allowed}
@media(max-width:1000px){.auction-stage-grid{grid-template-columns:1fr 1fr}.high-bid-card{grid-column:1/-1}.team-bidding{grid-template-columns:1fr}.team-bid-grid{grid-template-columns:repeat(5,1fr)}}@media(max-width:700px){.auction-stage-grid{grid-template-columns:1fr}.high-bid-card{grid-column:auto}.team-bid-grid{grid-template-columns:repeat(2,1fr)}.auction-stage-head{align-items:flex-start}.auction-timer{font-size:29px;min-width:92px}}

/* Player directory link and plain live-bid input */
.bid-input-plain input{padding-left:12px}
.status-link{width:100%;background:#081826;border:0;border-radius:10px;padding:12px;text-align:center;color:inherit}
.status-link:hover{background:#102a40;transform:translateY(-1px)}
.status-link strong{display:block;font-size:23px;color:var(--accent2)}
.status-link span{font-size:11px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.players-dialog-card{max-width:1000px;margin:auto}
.players-list-tools{display:grid;grid-template-columns:1fr 180px;gap:10px}
.players-list-tools input,.players-list-tools select{width:100%;border:1px solid #31536d;background:#081826;color:#fff;border-radius:9px;padding:11px 12px;font:inherit}
@media(max-width:650px){.players-list-tools{grid-template-columns:1fr}}

.players-filter-check{grid-column:1/-1;display:flex;align-items:center;gap:9px;width:max-content;max-width:100%;font-weight:700;color:#dceaf4;cursor:pointer;user-select:none}
.players-filter-check input{width:18px;height:18px;accent-color:#f4b942;cursor:pointer}

/* Nominated-player preview shown before the auction starts */
.current-auction-player.nominated-preview {
  border-style: solid;
  border-color: rgba(255, 193, 7, .55);
  background: linear-gradient(135deg, rgba(255, 193, 7, .12), rgba(255,255,255,.03));
}
.current-auction-player .preview-label {
  display: inline-block;
  margin-bottom: .35rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  opacity: .75;
}
.current-auction-player .preview-hint {
  display: block;
  margin-top: .55rem;
  font-weight: 700;
  opacity: .72;
}

/* Player headshots in the live auction card */
.auction-player-display{display:flex;align-items:center;justify-content:center;gap:18px;width:100%;min-width:0;text-align:left}
.auction-player-details{min-width:0}
.auction-player-photo-wrap,.auction-player-photo-fallback{width:112px;height:112px;flex:0 0 112px;border-radius:14px}
.auction-player-photo-wrap{position:relative;overflow:hidden;background:#10283a;border:1px solid #31536d}
.auction-player-photo{display:block;width:100%;height:100%;object-fit:cover;object-position:center top;background:#10283a}
.auction-player-photo-fallback{align-items:center;justify-content:center;background:#10283a;border:1px solid #31536d;color:var(--accent);font-size:34px;font-weight:950;letter-spacing:.03em}
@media(max-width:700px){.auction-player-display{gap:12px}.auction-player-photo-wrap,.auction-player-photo-fallback{width:88px;height:88px;flex-basis:88px}.auction-player-photo-fallback{font-size:27px}.current-auction-player h3{font-size:23px}}

/* Custom searchable nomination dropdown */
.player-autocomplete{position:relative}.player-autocomplete #auctionPlayerSearch{width:100%;border:1px solid #31536d;background:#06131f;color:#fff;border-radius:9px;padding:11px 12px;font:inherit}.player-suggestions{position:absolute;z-index:50;left:0;right:0;top:calc(100% + 5px);max-height:320px;overflow-y:auto;background:#0b1e2d;border:1px solid #31536d;border-radius:10px;box-shadow:0 12px 28px rgba(0,0,0,.38);padding:5px}.player-suggestion{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;background:transparent;color:#fff;border:0;border-radius:7px;padding:9px 10px;cursor:pointer}.player-suggestion:hover,.player-suggestion:focus{background:#16354b;outline:none}.player-suggestion span{display:flex;flex-direction:column;min-width:0}.player-suggestion strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-suggestion small{color:var(--muted);font-size:11px;margin-top:2px}.player-suggestion b{color:var(--accent2);font-size:14px;white-space:nowrap}.player-suggestion-empty{padding:10px;color:var(--muted);font-size:13px}.viewer-mode .player-autocomplete .player-suggestions{display:none}

/* Per-team auction opt-out */
.team-out-btn{background:#7b2d36;border:1px solid #a94c58;color:#fff;font-weight:900}.team-out-btn:hover:not(:disabled){background:#923944}.team-out-btn.is-out{background:#263443;border-color:#526b80;color:#dceaf4}.team-bid-tile.team-out{background:#6f2630;border-color:#d45d68;box-shadow:0 0 0 1px rgba(212,93,104,.25)}.team-bid-tile.team-out.leading{border-color:#f0a0a7;box-shadow:0 0 0 1px rgba(240,160,167,.35)}.team-bid-tile.team-out .bid-team-name,.team-bid-tile.team-out .bid-amount,.team-bid-tile.team-out .bid-max{color:#fff}.viewer-mode #teamOutBtn{opacity:1;cursor:pointer}

/* 618 FF Midnight Gold 2026 facelift */
:root{--bg:#030b19;--panel:#0b1c34;--panel2:#112e50;--line:#345273;--text:#f7faff;--muted:#a4b9d2;--accent:#f9c94f;--accent2:#ffdc7b;--danger:#e35467;--ok:#39d69e;--shadow:0 18px 45px rgba(0,0,0,.38)}
html{color-scheme:dark}body{background:radial-gradient(ellipse at 85% 0%,rgba(24,91,166,.35),transparent 52%),linear-gradient(145deg,#030b19,#0a1c34 58%,#030b19);background-attachment:fixed}
.topbar{background:linear-gradient(110deg,rgba(5,17,35,.97),rgba(12,39,75,.94));border-bottom:1px solid rgba(249,201,79,.25);box-shadow:0 10px 30px #0005}.topbar h1{letter-spacing:-.04em;font-weight:950}.topbar h1 span{background:linear-gradient(120deg,#ffeb9b,#f5b935);color:transparent;background-clip:text;-webkit-background-clip:text}
.card{background:linear-gradient(150deg,rgba(19,48,82,.97),rgba(6,20,39,.99));border:1px solid rgba(116,160,210,.24);border-radius:20px;box-shadow:0 18px 45px #0005,inset 0 1px #ffffff0d}
button,.file-label{border-radius:11px;font-weight:800;transition:transform .16s,filter .16s}button:active{transform:scale(.975)}.primary{background:linear-gradient(125deg,#ffe37f,#f6bc3c 70%,#e9a42b);color:#121c2b;box-shadow:0 5px 19px #eeb52d30}.secondary{background:linear-gradient(145deg,#1c3d61,#10253e);border-color:#3d5e81}.danger{background:linear-gradient(135deg,#813747,#4d2030)}
.auction-stage{position:relative;border-color:#e8b84d65}.auction-stage:before{content:'';position:absolute;top:0;left:22px;right:22px;height:2px;background:linear-gradient(90deg,transparent,#f9c94f,transparent)}.auction-stage-head h2{font-size:clamp(23px,3vw,31px);letter-spacing:-.03em}.auction-timer{background:linear-gradient(135deg,#ffe585,#f6b934);color:#0a1830!important;border-color:#ffe585!important;box-shadow:0 0 25px #f9c94f30}.auction-timer.paused{background:#43556d;color:#fff!important}.auction-timer.expired{background:#e35467;color:#fff!important}
.auction-nomination,.current-auction-player,.high-bid-card,.team-bid-entry{background:linear-gradient(145deg,#112c4e,#06172e);border:1px solid #35577d;border-radius:16px}.current-auction-player{background:radial-gradient(ellipse at top left,#1b4d8d66,transparent 75%),linear-gradient(140deg,#12305a,#081a33)}.current-auction-player.nominated-preview{background:linear-gradient(130deg,#f3bc362a,#0b1b33)}.high-bid-card strong{font-size:clamp(38px,4vw,52px)}.auction-player-photo-wrap{border-color:#5680ab;box-shadow:0 8px 22px #0005}
.team-bid-tile{background:linear-gradient(145deg,#143354,#091a31);border:1px solid #365675;border-radius:12px}.team-bid-tile.leading{background:linear-gradient(145deg,#493e1e,#182b3c);border-color:#f9c94f;box-shadow:inset 0 0 0 1px #f9c94f55}.team-bid-tile.out,.team-bid-tile.is-out{background:linear-gradient(130deg,#792a3d,#371624)!important;border-color:#ed687b!important}.team-out-btn{background:linear-gradient(140deg,#3d536e,#1c2c43);border:1px solid #8297b0}
.field input,.field select,.value-tools input,select,.auction-nomination input,.team-bid-entry input,.team-bid-entry select{background:#06182e;border-color:#3a5b7f;border-radius:11px;min-height:43px}input:focus,select:focus{outline:2px solid #f9c94f88;outline-offset:1px}.best-player,.status-grid div,.team-bid-info span{background:linear-gradient(150deg,#123052,#081b32);border:1px solid #7594b52b;border-radius:12px}.team-head{background:linear-gradient(150deg,#1d3d61,#0c243f);border-bottom-color:#f9c94f}.dialog-card{background:linear-gradient(140deg,#102c4d,#071629);border:1px solid #3b5e84;border-radius:20px}
@media(max-width:700px){main{padding:12px}.topbar{padding:16px}.topbar h1{font-size:29px}.auction-stage{padding:15px}.auction-timer{font-size:29px;padding:8px 12px}.header-actions button{font-size:12px;padding:9px 10px}}

/* 618 FF v1.2 bold visual overhaul */
:root{--bg:#020a19;--panel:#071d37;--panel2:#10355b;--line:#315c86;--accent:#ffd354;--accent2:#fff0a1;--text:#fff;--muted:#a8c1de;--ok:#35e6aa}
body{background:radial-gradient(ellipse at 60% -15%,#13518a 0%,transparent 52%),linear-gradient(150deg,#020817,#051a35 65%,#010714)!important;color:#fff!important}
.topbar{background:linear-gradient(110deg,#010b1d,#0a3159)!important;border-bottom:2px solid #f4c446!important;padding:22px 28px!important;box-shadow:0 12px 35px #0008!important}
.topbar h1{font-size:clamp(35px,4vw,56px)!important;letter-spacing:-.06em!important;font-style:italic;font-weight:1000!important}.topbar h1 span{color:#ffd354!important;background:none!important;-webkit-text-fill-color:#ffd354!important}.topbar .eyebrow{color:#71c5ff!important}.design-edition{font-style:normal;font-size:10px;vertical-align:middle;letter-spacing:.15em;background:#ffd354;color:#0b2037;padding:6px 9px;border-radius:5px;margin-left:8px}.topbar p{font-size:12px;letter-spacing:.06em}
.stadium-banner{position:relative;overflow:hidden;padding:28px 32px;margin-bottom:22px;border:1px solid #3976a7;border-radius:20px;background:radial-gradient(circle at 85% 35%,#2271b0 0%,transparent 34%),repeating-linear-gradient(112deg,transparent 0 45px,#ffffff05 45px 47px),linear-gradient(120deg,#07192e,#0c3764 68%,#071b32);box-shadow:0 16px 40px #0008}.stadium-banner:after{content:'618';position:absolute;right:25px;top:-28px;font-size:190px;font-weight:1000;font-style:italic;letter-spacing:-.13em;color:#ffffff0b;pointer-events:none}.stadium-tag{color:#6bc6ff;font-size:11px;font-weight:900;letter-spacing:.25em}.stadium-title{font-size:clamp(26px,5vw,54px);font-weight:1000;letter-spacing:-.06em;line-height:1.12;margin:8px 0}.stadium-title em{color:#ffd354;font-style:italic}.stadium-sub{font-size:11px;letter-spacing:.17em;color:#d1e5ff;font-weight:800}.stadium-sub span{color:#ffd354;margin:0 10px}
.card{background:linear-gradient(155deg,#12385c,#07172f 78%)!important;border:1px solid #38618c!important;border-radius:21px!important;box-shadow:0 16px 40px #0007,inset 0 1px #ffffff14!important}.auction-stage{border-top:3px solid #ffd354!important}.auction-stage-head h2{font-size:clamp(24px,3.5vw,38px)!important;font-weight:950;letter-spacing:-.045em}.auction-timer{background:linear-gradient(135deg,#fff2a0,#f9be32)!important;color:#101b30!important;font-weight:1000!important;font-size:clamp(30px,4vw,50px)!important;border:2px solid #fff0a4!important;box-shadow:0 0 32px #ffc93f55!important}.primary{background:linear-gradient(135deg,#ffe887,#f9bc30)!important;color:#0a1b30!important;font-weight:900!important;box-shadow:0 5px 18px #e8ad2738}.secondary{background:linear-gradient(145deg,#234b76,#102b4b)!important;border:1px solid #4775a1!important}.current-auction-player{background:radial-gradient(circle at 0 0,#1b65ad88,transparent 65%),linear-gradient(135deg,#143d6c,#06162d)!important;border:1px solid #367bb8!important}.high-bid-card{background:linear-gradient(135deg,#0d3156,#061b32)!important;border:1px solid #477eaa!important}.team-bid-tile{background:linear-gradient(140deg,#183d66,#0b233e)!important;border:1px solid #3b6691!important}.team-bid-tile.out,.team-bid-tile.is-out{background:linear-gradient(140deg,#a12b42,#4d1527)!important;border-color:#ff6d83!important}.team-head{background:linear-gradient(145deg,#17416c,#08213d)!important;border-top:2px solid #ffd354!important}
@media(max-width:700px){.topbar{padding:14px!important}.topbar h1{font-size:36px!important}.stadium-banner{padding:20px;margin-bottom:13px}.stadium-banner:after{font-size:110px;top:3px;right:10px}.stadium-title{font-size:29px}.stadium-sub{font-size:9px;letter-spacing:.08em}.stadium-sub span{margin:0 3px}.design-edition{font-size:8px;padding:4px 5px}.auction-stage-head h2{font-size:24px!important}}

/* v1.3 black and gold */
html,body{background:#06070a!important;color:#f5f5f7!important}body{background-image:radial-gradient(ellipse at 50% -20%,#272329,#08090c 65%)!important}.stadium-banner,.design-edition{display:none!important}.topbar{background:linear-gradient(#16181d,#08090d)!important;border-bottom:1px solid #4a402b!important}.card{background:linear-gradient(150deg,#191b22,#0b0d12)!important;border:1px solid #373b46!important;border-radius:18px!important;box-shadow:0 10px 30px #0008!important}.auction-stage{border-top:2px solid #f3c44b!important}.current-auction-player,.auction-nomination,.high-bid-card,.team-bid-entry{background:linear-gradient(145deg,#20222a,#10131a)!important;border-color:#3c414d!important}.team-bid-tile{background:#1a1d25!important;border-color:#3e4553!important}.team-bid-tile.leading{background:#38301b!important;border-color:#f4c94b!important}.team-bid-tile.out{background:#6e2437!important;border-color:#ed687e!important}.secondary{background:linear-gradient(#30343f,#1b202a)!important;border-color:#454a55!important}input,select{background:#11141b!important;color:#fff!important;border-color:#404753!important}.ff-page{display:none}.ff-page.ff-active{display:block}.ff-tabs{position:fixed;z-index:100;bottom:0;left:0;right:0;display:flex;background:#0b0c11f5;border-top:1px solid #44404a;padding:9px 4px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -10px 28px #0009}.ff-tabs button{flex:1;background:transparent!important;border:0!important;box-shadow:none!important;color:#a0a4b0!important;font-size:24px!important;display:flex;flex-direction:column;align-items:center;gap:4px;padding:4px!important}.ff-tabs button small{font-size:11px!important}.ff-tabs button.ff-active{color:#f4c94b!important}main{padding-bottom:115px!important}.ff-myteam{max-width:800px;margin:auto;padding:20px}.ff-myteam select{display:block;width:100%;padding:10px;margin:12px 0}.ff-myteam .team-column{width:100%;min-width:0;max-width:none}@media(max-width:700px){.header-actions{flex-wrap:wrap}.header-actions button{padding:7px!important;font-size:11px!important}main{padding:12px 10px 115px!important}}

/* v1.4: charcoal/gold consistency, directory on Players tab */
:root{--bg:#050609;--panel:#101116;--panel2:#191b22;--line:#34343b;--accent:#f8c748;--accent2:#ffe18c;--muted:#a9aab2}
.team-head,.team-head.team-head{background:linear-gradient(155deg,#29272a,#111217 78%)!important;border-top:2px solid #e8bd49!important;border-bottom:2px solid #d2a936!important}
.team-column{border-right-color:#494043!important}
.auction-progress{background:#14171d!important;border-color:#5a5040!important}
.auction-progress.complete{background:#122921!important;border-color:#278e70!important}
.team-finance div{background:#101116!important;border:1px solid #35373e!important}
.roster-slot{background:#0e1015!important;border-bottom-color:#34353c!important}
.roster-slot.filled:hover{background:#24232a!important}
.ff-directory{padding:17px;margin-top:15px}
.ff-directory .players-list-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(125px,180px);gap:10px;margin:14px 0}
.ff-directory #playersListSearch{grid-column:1/-1}
.ff-directory #playersListSort{grid-column:1/-1}
.ff-directory .players-filter-check{grid-column:1/-1;display:flex;align-items:center;gap:10px}
.ff-directory .players-filter-check input{width:auto;min-height:auto}
.ff-directory .value-table-wrap{max-height:none;overflow:auto;background:#0a0b10;border-color:#34353c}
.ff-directory th{background:#242026!important;color:#f9d16b}
.ff-directory td{border-bottom-color:#34353c}
.ff-directory #playersListCount{font-size:12px;color:#c1c0c5;margin:12px 0}
.ff-page .control-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:start!important;gap:14px!important}
.ff-page .control-panel>.field{min-width:0;grid-column:auto!important;align-self:start!important}
.ff-page .control-panel>.player-field{grid-column:1/-1!important}
.ff-page .control-panel>.team-field{grid-column:2!important}
.ff-page .control-panel>.bid-field{grid-column:1!important}
.ff-page .control-panel>.field label{min-height:19px;margin-bottom:7px!important}
.ff-page .control-panel>.field select,.ff-page .control-panel>.field input{min-height:49px;width:100%}
.ff-page .control-panel>#addBtn,.ff-page .control-panel>#undoBtn{min-height:50px;align-self:end}
.ff-page .control-panel .team-bid-info{margin-top:9px}
.ff-page .control-panel .team-bid-info span{min-height:34px}
.ff-page .control-panel .max-bid-btn{min-height:40px}
@media(max-width:480px){.ff-page .control-panel{gap:10px!important}.ff-page .control-panel>.field label{font-size:12px}.ff-directory{padding:12px}.ff-directory th,.ff-directory td{padding:9px 7px;font-size:12px}}

/* v1.5 layout and palette refinements */
#ff-players .best-player,#ff-players .status-grid > div,#ff-players .status-grid > button,#ff-players .status-link{background:linear-gradient(150deg,#242329,#111217)!important;border:1px solid #3e3a3d!important;box-shadow:none!important}
#ff-players .best-rank{background:#f8c748!important;color:#151515!important}
#ff-players .status-grid strong,#ff-players .best-value{color:#f8c748!important}
#ff-players .best-card,#ff-players .status-card,#ff-players .ff-directory{background:linear-gradient(150deg,#1b1b20,#0b0c10)!important}
#ff-room .control-panel{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-areas:"player player" "position team" "bid team" "undo team" "add add"!important;align-items:start!important;gap:11px 14px!important}
#ff-room .control-panel>.player-field{grid-area:player!important}
#ff-room .control-panel>.field:not(.player-field):not(.team-field):not(.bid-field){grid-area:position!important}
#ff-room .control-panel>.team-field{grid-area:team!important}
#ff-room .control-panel>.bid-field{grid-area:bid!important}
#ff-room .control-panel>#undoBtn{grid-area:undo!important;align-self:start!important}
#ff-room .control-panel>#addBtn{grid-area:add!important;align-self:start!important}
#ff-room .control-panel>.field{grid-column:auto!important}
#ff-room .control-panel .team-bid-info span,#ff-room .control-panel .max-bid-btn{background:#202127!important;border-color:#464148!important}
#ff-team .roster-slot{grid-template-columns:58px minmax(0,1fr) auto!important;gap:12px!important;padding-left:14px!important}
#ff-team .slot-label{min-width:52px!important}
@media(max-width:480px){#ff-room .control-panel{column-gap:10px!important}#ff-team .roster-slot{gap:10px!important}}
/* v1.6 targeted black/charcoal corrections */
.player-autocomplete .player-suggestions,
#auctionPlayerSuggestions{background:#15161c!important;border:1px solid #55505a!important;box-shadow:0 14px 36px #000b!important}
.player-autocomplete .player-suggestion,#auctionPlayerSuggestions .player-suggestion{background:#15161c!important;color:#f8f8fa!important}
.player-autocomplete .player-suggestion:hover,.player-autocomplete .player-suggestion:focus{background:#2b2930!important}
.current-auction-player,.current-auction-player.nominated-preview,#currentAuctionPlayer{background:linear-gradient(150deg,#222126,#101116)!important;border:1px solid #4a454b!important}
.current-auction-player .auction-player-photo-wrap{background:#1b1b20!important;border-color:#5d5554!important}
.sync-dialog-card,#syncDialog .dialog-card{background:linear-gradient(155deg,#232127,#0d0e13)!important;border:1px solid #5b5050!important;box-shadow:0 20px 55px #000c!important}
#syncDialog .sync-fields input{background:#101116!important;border-color:#4b4650!important}
#syncDialog .icon-btn{background:#242329!important;border:1px solid #514c55!important;color:#fff!important}
/* Give every roster position, including BENCH, a separate fixed column. */
#ff-board .roster-slot,#ff-team .roster-slot{grid-template-columns:65px minmax(0,1fr) auto!important;column-gap:13px!important;padding-left:12px!important}
#ff-board .slot-label,#ff-team .slot-label{min-width:0!important;white-space:nowrap!important}
#ff-board .pick-name,#ff-team .pick-name{min-width:0!important}
body.compact #ff-board .roster-slot{grid-template-columns:65px minmax(0,1fr) auto!important;column-gap:10px!important}

/* v1.8 team watermark */
#currentAuctionPlayer{position:relative!important;overflow:hidden!important;isolation:isolate!important}
#currentAuctionPlayer .auction-team-watermark{position:absolute;z-index:0;pointer-events:none;width:48%;max-width:300px;height:90%;object-fit:contain;right:-3%;top:5%;opacity:.16}
#currentAuctionPlayer .auction-player-display{position:relative;z-index:1}
@media(max-width:700px){#currentAuctionPlayer .auction-team-watermark{width:55%;right:-7%;opacity:.14}}

/* v1.9 floating rounded tab bar */
.ff-tabs{position:fixed!important;left:14px!important;right:14px!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;width:auto!important;padding:9px 7px!important;border-radius:999px!important;border:1px solid rgba(190,181,157,.32)!important;background:linear-gradient(145deg,rgba(35,35,34,.97),rgba(15,16,19,.98))!important;box-shadow:0 12px 35px #000b,inset 0 1px 0 #ffffff1a!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);overflow:hidden}
.ff-tabs button{border-radius:999px!important;min-width:0!important;padding:8px 3px!important;line-height:1.1!important;transition:background .2s ease,color .2s ease!important}
.ff-tabs button.ff-active{background:radial-gradient(ellipse at 50% 85%,rgba(234,187,47,.18),rgba(255,210,65,.05) 65%,transparent)!important;color:#ffd14b!important}
.ff-tabs button small{white-space:nowrap!important;font-size:clamp(9px,2.5vw,12px)!important}
main{padding-bottom:calc(118px + env(safe-area-inset-bottom))!important}
@media(min-width:850px){.ff-tabs{left:50%!important;right:auto!important;width:min(640px,90vw)!important;transform:translateX(-50%)}}
/* v1.10: prevent WKWebView automatic focus zoom for iPhone inputs. */
@media (pointer:coarse) {
  #syncDialog input,
  #syncDialog select,
  #syncDialog textarea,
  .dialog-card input,
  .dialog-card select,
  .dialog-card textarea,
  input[type="text"], input[type="password"], input[type="number"],
  input[type="search"], input[type="email"], input[type="tel"],
  textarea, select {
    font-size:16px!important;
  }
}
#syncDialog {max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
#syncDialog .sync-dialog-card {max-height:calc(100dvh - 48px);overflow-y:auto}
#syncDialog input {min-height:46px}

/* v1.11: searchable Snake Draft player picker, no native iOS datalist */
#ff-room .player-autocomplete{position:relative;width:100%}
#ff-room #playerSearch{width:100%;font-size:16px!important}
#snakePlayerSuggestions{background:linear-gradient(145deg,#24242a,#101115)!important;border:1px solid #4b4546!important;z-index:150!important;max-height:min(340px,45vh);overflow-y:auto;-webkit-overflow-scrolling:touch}
#snakePlayerSuggestions .player-suggestion{background:transparent!important}
#snakePlayerSuggestions .player-suggestion:focus,#snakePlayerSuggestions .player-suggestion:hover{background:#343038!important}

/* v1.13: full-width Snake Draft player lookup, fixing inherited narrow field rules */
#ff-room .control-panel > .player-field {
  grid-area:player!important;grid-column:1 / -1!important;
  width:100%!important;min-width:0!important;max-width:none!important;
  justify-self:stretch!important;box-sizing:border-box!important;
}
#ff-room .control-panel > .player-field .player-autocomplete {
  display:block!important;position:relative!important;width:100%!important;
  min-width:0!important;max-width:none!important;box-sizing:border-box!important;
}
#ff-room .control-panel > .player-field #playerSearch {
  display:block!important;width:100%!important;max-width:none!important;
  min-width:0!important;box-sizing:border-box!important;
  font-size:16px!important;
}
#ff-room .control-panel > .player-field #snakePlayerSuggestions {
  left:0!important;right:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;
}
#ff-room .control-panel > .player-field #playerMeta {
  width:100%!important;max-width:none!important;
}

/* v1.14 — premium player spotlight, black & gold */
#currentAuctionPlayer:not(.empty-auction){
 position:relative!important;display:block!important;min-height:220px!important;
 padding:0!important;overflow:hidden!important;isolation:isolate!important;
 background:radial-gradient(ellipse at 83% 25%,#36301e 0%,transparent 48%),linear-gradient(115deg,#1d2028,#101116 68%,#17151a)!important;
 border:1px solid #554b3c!important;border-radius:22px!important;
 box-shadow:inset 0 1px 0 #ffffff12,0 12px 30px #0007!important;
}
#currentAuctionPlayer:not(.empty-auction) .auction-player-display{
 display:grid!important;grid-template-columns:minmax(112px,36%) minmax(0,1fr)!important;
 align-items:stretch!important;justify-content:stretch!important;gap:0!important;
 width:100%!important;min-height:220px!important;position:relative!important;z-index:2!important;
}
#currentAuctionPlayer .auction-player-photo-wrap,
#currentAuctionPlayer .auction-player-photo-fallback{
 width:100%!important;height:100%!important;min-height:220px!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 background:transparent!important;flex-basis:auto!important;
}
#currentAuctionPlayer .auction-player-photo-wrap{align-self:stretch!important;overflow:hidden!important}
#currentAuctionPlayer .auction-player-photo{height:100%!important;width:100%!important;object-fit:cover!important;object-position:center top!important;background:transparent!important;
 -webkit-mask-image:linear-gradient(to right,#000 77%,transparent 100%);mask-image:linear-gradient(to right,#000 77%,transparent 100%)}
#currentAuctionPlayer .auction-player-details{
 position:relative!important;z-index:3!important;display:flex!important;flex-direction:column!important;
 align-items:flex-start!important;justify-content:center!important;gap:9px!important;
 padding:23px 16px 23px 5px!important;text-align:left!important;min-width:0!important;
}
#currentAuctionPlayer .preview-label{font-size:10px!important;letter-spacing:.16em!important;color:#c3b8a3!important;font-weight:800!important;text-transform:uppercase!important}
#currentAuctionPlayer h3{font-size:clamp(25px,5.2vw,43px)!important;line-height:1.07!important;letter-spacing:-.045em!important;margin:0!important;color:#fff!important;overflow-wrap:anywhere!important}
#currentAuctionPlayer .auction-player-meta{font-size:clamp(15px,3.2vw,21px)!important;color:#d5d8e1!important;margin:0!important}
#currentAuctionPlayer .auction-value{font-size:clamp(15px,3.3vw,22px)!important;font-weight:850!important;color:#ffd66d!important;margin:6px 0 0!important}
#currentAuctionPlayer .preview-hint{font-size:12px!important;color:#aaaeb8!important;margin:0!important}
#currentAuctionPlayer .auction-team-watermark{
 position:absolute!important;right:3%!important;top:8%!important;width:30%!important;max-width:150px!important;
 height:45%!important;object-fit:contain!important;opacity:.29!important;z-index:1!important;
 filter:drop-shadow(0 4px 10px #0007)!important;pointer-events:none!important;
}
@media(max-width:430px){
 #currentAuctionPlayer:not(.empty-auction),#currentAuctionPlayer:not(.empty-auction) .auction-player-display{min-height:190px!important}
 #currentAuctionPlayer .auction-player-photo-wrap,#currentAuctionPlayer .auction-player-photo-fallback{min-height:190px!important}
 #currentAuctionPlayer .auction-player-details{padding:18px 12px 18px 3px!important;gap:7px!important}
 #currentAuctionPlayer .auction-team-watermark{width:30%!important;opacity:.22!important}
}

/* v1.15 compact auction bid row and tighter navigation */
#ff-auction .team-bid-entry{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
 grid-template-areas:"team-label amount-label" "team-select amount-input" "submit submit" "out out"!important;
 gap:8px 10px!important;align-content:start!important;align-items:stretch!important;
}
#ff-auction .team-bid-entry>label:first-of-type{grid-area:team-label!important;grid-column:auto!important;margin:0!important;align-self:end!important}
#ff-auction .team-bid-entry>label:nth-of-type(2){grid-area:amount-label!important;grid-column:auto!important;margin:0!important;align-self:end!important}
#ff-auction .team-bid-entry>#bidderTeamSelect{grid-area:team-select!important;grid-column:auto!important;min-width:0!important;width:100%!important;margin:0!important}
#ff-auction .team-bid-entry>.money-input{grid-area:amount-input!important;grid-column:auto!important;min-width:0!important;width:100%!important;margin:0!important}
#ff-auction .team-bid-entry>.money-input input{width:100%!important;min-width:0!important}
#ff-auction .team-bid-entry>#submitAuctionBidBtn{grid-area:submit!important;grid-column:auto!important;margin-top:3px!important}
#ff-auction .team-bid-entry>#teamOutBtn{grid-area:out!important;grid-column:auto!important}
.ff-tabs{padding:3px 4px!important;bottom:calc(7px + env(safe-area-inset-bottom))!important;left:11px!important;right:11px!important}
.ff-tabs button{padding:5px 2px!important;gap:1px!important;min-height:52px!important;justify-content:center!important;font-size:0!important}
.ff-tabs button .ff-nav-icon{font-size:23px!important;line-height:25px!important;display:block!important;font-weight:750!important}
.ff-tabs button .ff-money-icon{font-size:21px!important;font-weight:950!important;letter-spacing:-.08em!important}
.ff-tabs button small{font-size:clamp(10px,2.7vw,12px)!important;line-height:15px!important}
main{padding-bottom:calc(93px + env(safe-area-inset-bottom))!important}
@media(min-width:850px){.ff-tabs{left:50%!important;right:auto!important}}

/* v1.16: place Submit Bid and I'm Out! side-by-side */
#ff-auction .team-bid-entry{grid-template-areas:"team-label amount-label" "team-select amount-input" "submit out"!important;}
#ff-auction .team-bid-entry>#submitAuctionBidBtn,#ff-auction .team-bid-entry>#teamOutBtn{width:100%!important;min-width:0!important;grid-column:auto!important;margin:3px 0 0!important;min-height:48px!important;padding:10px 6px!important;white-space:nowrap!important;}

/* v1.17: selected team's auction tile turns red when marked out.
   Use actual JS-rendered class .team-out (not .out/.is-out). */
#ff-auction #teamBidGrid .team-bid-tile.team-out,
#ff-auction #teamBidGrid .team-bid-tile.team-out.leading {
 background:linear-gradient(140deg,#922c43,#4c1829)!important;
 border:2px solid #ff7185!important;
 box-shadow:inset 0 0 0 1px #ff718533,0 0 15px #b92d4233!important;
}
#ff-auction #teamBidGrid .team-bid-tile.team-out .bid-team-name,
#ff-auction #teamBidGrid .team-bid-tile.team-out .bid-amount,
#ff-auction #teamBidGrid .team-bid-tile.team-out .bid-max{color:#fff!important}

/* v1.18: compact header actions; live connection stays visible */
.header-actions{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:9px!important;max-width:none!important;justify-content:flex-end!important}
.ff-action-menu{position:relative;flex:none;z-index:120}
.ff-action-menu>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #615538;border-radius:11px;padding:10px 13px;background:#25272e;color:#f4c94b;font-size:14px;font-weight:800;white-space:nowrap;user-select:none}
.ff-action-menu>summary::-webkit-details-marker{display:none}
.ff-action-menu[open]>summary{background:#393225;border-color:#e0b847}
.ff-action-menu-panel{position:absolute;right:0;top:calc(100% + 9px);min-width:190px;max-width:calc(100vw - 25px);padding:9px;background:#16181e;border:1px solid #5b503a;border-radius:14px;box-shadow:0 15px 40px #000c;display:flex;flex-direction:column;gap:6px}
.ff-action-menu-panel button{width:100%;text-align:left!important;font-size:13px!important;padding:11px 13px!important;white-space:nowrap}
.ff-action-menu-panel .danger{margin-top:5px}
@media(max-width:700px){.topbar{flex-direction:row!important;align-items:center!important;flex-wrap:wrap!important;gap:9px!important}.header-actions{margin-left:auto!important;gap:7px!important}.header-actions>#syncBtn{font-size:11px!important;padding:10px 8px!important;white-space:nowrap}.ff-action-menu>summary{padding:9px 10px;font-size:12px}.ff-action-menu-panel button{font-size:13px!important;padding:11px 13px!important}}

/* v1.19: ensure dropdown is painted above auction content, and align header controls */
.topbar{position:relative!important;z-index:500!important;overflow:visible!important;isolation:auto!important}
.topbar .header-actions{position:relative!important;z-index:501!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:8px!important;min-width:0!important}
.topbar .header-actions #modeBadge{margin:0!important;flex:0 0 auto!important;white-space:nowrap!important;line-height:1.2!important}
.topbar .header-actions #syncBtn{flex:0 1 auto!important;min-width:0!important;white-space:nowrap!important}
.topbar .ff-action-menu{z-index:502!important;flex:0 0 auto!important}
.topbar .ff-action-menu-panel{z-index:503!important;position:absolute!important;right:0!important;top:calc(100% + 8px)!important}
main{position:relative!important;z-index:1!important}
@media(max-width:700px){
 .topbar{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important}
 .topbar .header-actions{width:100%!important;margin:0!important;justify-content:space-between!important;gap:5px!important}
 .topbar .header-actions #modeBadge{font-size:10px!important;padding:6px 7px!important;letter-spacing:0!important}
 .topbar .header-actions #syncBtn{font-size:11px!important;padding:9px 7px!important}
 .topbar .ff-action-menu>summary{font-size:11px!important;padding:9px 8px!important;gap:4px!important}
}
@media(max-width:360px){
 .topbar .header-actions #modeBadge{font-size:9px!important;padding:6px 5px!important}
 .topbar .header-actions #syncBtn{font-size:10px!important;padding:8px 5px!important}
 .topbar .ff-action-menu>summary{padding:8px 6px!important}
}

/* v1.20: restore charcoal/black styling for every header-menu dialog */
#settingsDialog .dialog-card,
#valuesDialog .dialog-card,
#playersDialog .dialog-card,
#editDialog .dialog-card,
#syncDialog .dialog-card,
dialog .dialog-card{
 background:linear-gradient(155deg,#1d1e24,#0c0d12 85%)!important;
 border:1px solid #48434a!important;
 color:#f5f5f7!important;
 box-shadow:0 22px 60px #000d!important;
}
dialog .dialog-card input,
dialog .dialog-card select,
dialog .dialog-card textarea{
 background:#111319!important;border-color:#484650!important;color:#f5f5f7!important;
}
dialog .dialog-card th{background:#252329!important;color:#f7d16a!important;border-bottom-color:#48434a!important}
dialog .dialog-card td{background:#14151b!important;border-bottom-color:#35343c!important}
dialog .dialog-card .value-table-wrap{background:#111218!important;border-color:#45414a!important}
dialog .dialog-card .secondary{background:linear-gradient(#303039,#1a1c23)!important;border-color:#514c54!important;color:#f3f3f5!important}
.ff-action-menu-panel{background:#15161b!important;border-color:#514838!important}
.ff-action-menu-panel button.secondary{background:linear-gradient(#2a2b32,#1b1d23)!important;border-color:#45444d!important;color:#f6f5f6!important}

/* v1.21: role status lives inside Menu, freeing header space */
.ff-action-menu-panel .ff-menu-role{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:9px 10px 12px;border-bottom:1px solid #393a40;margin-bottom:3px}
.ff-action-menu-panel .ff-menu-role-label{font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#a9abb4}
.ff-action-menu-panel #modeBadge{display:inline-flex!important;margin:0!important;white-space:nowrap!important;max-width:100%}
.topbar .header-actions{justify-content:flex-end!important}
@media(max-width:700px){.topbar .header-actions{justify-content:flex-end!important;gap:9px!important}}

/* v1.22: balance the mobile header; controls start at the brand's left edge */
@media(max-width:700px){
 .topbar .header-actions{width:100%!important;justify-content:flex-start!important;align-self:stretch!important;gap:10px!important;margin:0!important}
 .topbar .header-actions #syncBtn{flex:1 1 auto!important;text-align:center!important;min-width:0!important;font-size:12px!important;padding:11px 12px!important}
 .topbar .ff-action-menu{flex:0 0 auto!important}
 .topbar .ff-action-menu>summary{min-height:41px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:12px!important;padding:10px 14px!important}
}

/* v1.23 annual archive viewer: always dark, no editable draft controls */
.ff-history-dialog{max-width:min(94vw,900px)!important}
.ff-history-card{background:#15161b!important;color:#f4f4f6!important;border:1px solid #514838!important;max-height:85vh;overflow-y:auto}
.ff-history-card #historySeason{display:block;width:100%;margin:9px 0 18px;background:#202127!important;color:#fff!important;border:1px solid #55515a!important}
.ff-history-content{overflow-wrap:anywhere}
.ff-history-team{background:#1d1e24;border:1px solid #3b3a42;border-radius:12px;padding:12px;margin:12px 0}
.ff-history-team h4{margin:0 0 10px;color:#ffcc33}.ff-history-team small{color:#bbb;font-weight:400}
.ff-history-scroll{overflow-x:auto}.ff-history-scroll table{min-width:320px}.ff-history-scroll th{background:#292a30!important}.ff-history-scroll td{background:#1d1e24!important}

/* v1.24 archive confirmation: dark form, visible only to commissioner */
.ff-history-card #archiveYear{display:block;width:100%;margin:9px 0 16px;background:#202127!important;color:#fff!important;border:1px solid #55515a!important}
.ff-archive-confirm{display:flex;align-items:flex-start;gap:10px;margin:16px 0;color:#e8e8e8;line-height:1.4}
.ff-archive-confirm input{flex:none;width:19px;height:19px;accent-color:#ffca28}
.ff-action-menu-panel button[hidden]{display:none!important}

/* v1.25: Draft History is a full bottom-tab page, mirroring the Snake Draft board. */
#ff-history .ff-history-page{margin-bottom:14px;padding:17px 18px}
#ff-history .ff-history-page label{display:block;margin:13px 0 8px;font-weight:700;color:#e5e4e6}
#ff-history #historySeason{width:100%;max-width:350px;min-height:45px;border-radius:10px;background:#15171d!important;color:#fff!important;border:1px solid #514b40!important}
#ff-history #historyMessage{margin:12px 0 0}
#ff-history .ff-history-board-wrap{overflow-x:auto}
#ff-history .ff-history-board{min-width:min(100%,850px)}
#ff-history .ff-archived-team .roster-slot{cursor:default!important}
#ff-history .ff-history-owner{color:#d4bb77;font-size:12px;padding:6px 0}
.ff-tabs button[data-fftab="history"] .ff-history-icon{font-size:24px!important}
@media(max-width:420px){.ff-tabs button{padding:5px 1px!important}.ff-tabs button small{font-size:9px!important}.ff-tabs button .ff-nav-icon{font-size:21px!important}}

/* v1.26: unified Players/History line icons and more breathing room below floating nav */
.ff-tabs button .ff-lucide-icon{display:flex!important;align-items:center!important;justify-content:center!important;width:27px!important;height:27px!important;line-height:1!important}
.ff-tabs button .ff-lucide-icon svg{display:block;width:25px;height:25px;flex:none}
.ff-tabs{bottom:calc(20px + env(safe-area-inset-bottom))!important;padding:6px 6px!important}
main{padding-bottom:calc(112px + env(safe-area-inset-bottom))!important}
@media(max-width:420px){.ff-tabs button .ff-lucide-icon{width:25px!important;height:25px!important}.ff-tabs button .ff-lucide-icon svg{width:24px;height:24px}}

/* v1.27: History roster labels use the same spacing as Snake Draft. */
#ff-history .ff-archived-team .roster-slot{grid-template-columns:65px minmax(0,1fr) auto!important;column-gap:13px!important;padding-left:12px!important}
#ff-history .ff-archived-team .slot-label{min-width:0!important;white-space:nowrap!important}
#ff-history .ff-archived-team .pick-name{min-width:0!important}
body.compact #ff-history .ff-archived-team .roster-slot{grid-template-columns:65px minmax(0,1fr) auto!important;column-gap:10px!important}

/* v1.28: historical league champions, independent of immutable roster snapshot. */
#ff-history .ff-history-champion{border:2px solid #e5b846!important;box-shadow:0 0 0 1px rgba(229,184,70,.25),0 0 22px rgba(229,184,70,.12)!important;}
#ff-history .ff-history-champion .team-head{background:linear-gradient(180deg,#2d2515,#18191c)!important;}
#ff-history .ff-history-champion-label{display:block;margin:0 0 10px;padding:7px 9px;border:1px solid #b89235;border-radius:8px;background:#392c10;color:#ffdc78;font-size:12px;font-weight:800;letter-spacing:.065em;text-align:center;}

/* v1.29 commissioner champion selector */
.ff-champion-editor{margin:14px 0;padding:14px;border:1px solid #a7802d;border-radius:12px;background:#1b1912}
.ff-champion-editor[hidden]{display:none!important}
.ff-champion-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:8px}
.ff-champion-controls select{flex:1;min-width:160px}
.ff-champion-controls button{background:#d7a82e;color:#17130b;border:0;border-radius:9px;padding:12px 16px;font-weight:800;cursor:pointer}
.ff-champion-controls button:disabled{opacity:.5}

/* v1.31: cinematic 618 brick artwork; all header controls remain native and clickable. */
.topbar{position:relative!important;isolation:isolate!important;min-height:180px!important;overflow:visible!important}
.topbar>div:first-child{position:relative;z-index:2;flex:0 0 auto}
.ff-shatter-art{position:absolute;z-index:0;pointer-events:none;right:0;top:0;bottom:0;width:60%;background-image:linear-gradient(90deg,#111216 0%,rgba(17,18,22,.20) 28%,rgba(0,0,0,0) 65%),url('shattered-618.jpg');background-size:cover;background-position:center right;opacity:.95}
.topbar .header-actions{position:relative!important;z-index:3!important}
@media(max-width:700px){
 .topbar{min-height:0!important;padding-top:16px!important}
 .topbar>div:first-child{z-index:2!important}
 .ff-shatter-art{position:relative;display:block;order:1;width:100%;height:134px;right:auto;top:auto;bottom:auto;border-radius:12px;background-image:linear-gradient(90deg,rgba(11,12,16,.15),rgba(11,12,16,0)),url('shattered-618.jpg');background-size:cover;background-position:center center;border:1px solid #3a3a3e;box-shadow:inset 0 0 25px #0006}
 .topbar .header-actions{order:2!important;z-index:3!important}
}

/* v1.33: single integrated cinematic artwork, no duplicate title or separate brick card. */
.topbar{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:0!important;background:#09090b!important;min-height:0!important;overflow:visible!important;position:relative!important}
.topbar>.ff-full-banner{display:block!important;position:relative!important;z-index:1!important;flex:none!important;order:0!important;width:100%!important;aspect-ratio:2094 / 486!important;min-height:0!important;background:#09090b url('full-618-banner.jpg') center center / 100% 100% no-repeat!important;pointer-events:none!important}
.topbar>.header-actions{order:1!important;z-index:5!important;width:100%!important;max-width:none!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;align-items:stretch!important;justify-content:stretch!important;padding:0 4% 15px!important;margin-top:0!important;background:#09090b!important}
.topbar>.header-actions>#syncBtn{width:100%!important;min-width:0!important;background:linear-gradient(150deg,#2a303b,#1a202a)!important;border:1px solid #49505e!important;color:#a2f0db!important;border-radius:15px!important;font-weight:850!important}
.topbar>.header-actions>.ff-action-menu{position:relative!important;min-width:100px!important}
.topbar>.header-actions>.ff-action-menu>summary{height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:15px!important;background:#23252b!important;border:1px solid #80642a!important;color:#ffcb36!important;font-weight:850!important}
@media(max-width:700px){.topbar{padding:0!important;gap:0!important}.topbar>.header-actions{gap:9px!important;padding:0 3.5% 14px!important}.topbar>.header-actions>#syncBtn{font-size:13px!important;padding:10px 6px!important}.topbar>.header-actions>.ff-action-menu{min-width:86px!important}.topbar>.header-actions>.ff-action-menu>summary{font-size:13px!important;padding:10px 7px!important}}

/* v1.34: match space above controls to the space below. */
.topbar>.header-actions{padding-top:15px!important}
@media(max-width:700px){.topbar>.header-actions{padding-top:14px!important}}

/* v1.35: three equal header actions, dedicated live draft board page. */
.topbar>.header-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
.topbar>.header-actions>#draftBoardBtn{width:100%!important;min-width:0!important;min-height:44px!important;border-radius:15px!important;background:#23252b!important;border:1px solid #80642a!important;color:#ffcb36!important;font-weight:850!important;white-space:nowrap!important}
.topbar>.header-actions>#draftBoardBtn.ff-active{background:#3b301b!important;border-color:#e6b842!important}
.topbar>.header-actions>.ff-action-menu{min-width:0!important;width:100%!important}
.topbar>.header-actions>.ff-action-menu>summary{width:100%!important}
@media(max-width:700px){.topbar>.header-actions{gap:7px!important}.topbar>.header-actions>#draftBoardBtn{font-size:12px!important;padding:10px 4px!important}.topbar>.header-actions>#syncBtn{font-size:11px!important;padding:10px 4px!important}.topbar>.header-actions>.ff-action-menu>summary{font-size:12px!important;padding:10px 4px!important}}

/* v1.36 owner-access development UI: inherit established charcoal/gold visual system */
#ownerLoginDialog input,#ownerManageDialog input,#ownerManageDialog select{width:100%;box-sizing:border-box;margin:6px 0 14px;}
#ownerLoginDialog .dialog-actions,#ownerManageDialog .dialog-actions{margin:10px 0;gap:10px;flex-wrap:wrap;}
body.ff-test-owner .team-bid-entry #bidderTeamSelect{pointer-events:none;opacity:.6;}

/* v1.45: keep long room names centered and contained in the Live button. */
.topbar>.header-actions>#syncBtn{
 display:flex!important;align-items:center!important;justify-content:center!important;
 text-align:center!important;white-space:normal!important;overflow-wrap:anywhere!important;
 word-break:normal!important;line-height:1.25!important;box-sizing:border-box!important;
 overflow:hidden!important;max-width:100%!important;min-width:0!important;
 min-height:44px!important;padding:8px 5px!important;
}
@media(max-width:700px){.topbar>.header-actions>#syncBtn{font-size:11px!important;padding:7px 4px!important}}

/* v1.47 personal queue */
.ff-open-queue{margin:0 0 10px;width:100%;text-align:center}.ff-queue-add{display:flex;gap:8px;margin-top:12px}.ff-queue-add input{flex:1;min-width:0;border:1px solid #555;background:#15171c;color:white;border-radius:9px;padding:10px}.ff-queue-item{display:flex;align-items:center;gap:7px;border-bottom:1px solid #343843;padding:8px 0}.ff-queue-item span{flex:1;min-width:0;overflow-wrap:anywhere}.ff-queue-item button{padding:7px 10px}.ff-queue-drafted{color:#9ca3af;text-decoration:line-through}@media(max-width:600px){.ff-queue-add{flex-wrap:wrap}.ff-queue-add input{flex-basis:100%}}

/* v1.48: bottom navigation remains behind the software keyboard */
body.ff-keyboard-active .ff-tabs{visibility:hidden!important;pointer-events:none!important}
.ff-team-queue-tabs{display:flex;gap:8px;margin-bottom:18px}.ff-team-queue-tabs button{flex:1;padding:12px 8px;border:1px solid #494949;border-radius:12px;background:#1b1d24;color:#d0d2d8;font-weight:700}.ff-team-queue-tabs button.ff-selected{border-color:#f4c94b;color:#ffd14b;background:#34301f}
.ff-favorite{background:transparent!important;border:0!important;color:#f4c94b!important;font-size:26px!important;min-width:40px;min-height:40px;padding:3px!important}
#ff-team-panel[hidden],#ff-queue-panel[hidden]{display:none!important}

/* v1.50: keep the dollar sign inside the winning-bid input, vertically centered. */
#ff-room .bid-field .money-input{display:block;position:relative;width:100%;min-width:0}
#ff-room .bid-field .money-input>span{position:absolute;left:14px;top:50%;transform:translateY(-50%);display:block;padding:0;margin:0;line-height:1;font-size:16px;font-weight:800;z-index:1;pointer-events:none}
#ff-room .bid-field .money-input>input{display:block;width:100%;min-width:0;box-sizing:border-box;padding-left:32px}
/* Normal owners never see manual player-entry controls. */
body.ff-owner-locked #ff-auction .auction-nomination,body.ff-owner-locked #ff-room .control-panel{display:none!important}
.ff-queue-send{font-size:12px;padding:9px 10px;white-space:nowrap}
@media(max-width:600px){.ff-queue-item{flex-wrap:wrap}.ff-queue-item .ff-queue-send{order:2;width:100%}}

/* v1.51: header grid with centered draft controls and separate account icon */
.ff-legacy-actions[hidden]{display:none!important}
.topbar>.header-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr)) 42px!important;align-items:stretch!important;gap:8px!important}
.topbar>.header-actions>#syncBtn,.topbar>.header-actions>#draftBoardBtn,.topbar>.header-actions>#lmToolsBtn{width:100%!important;min-width:0!important;border-radius:15px!important;min-height:44px!important;white-space:normal!important;text-align:center!important;display:flex!important;align-items:center!important;justify-content:center!important}
.topbar>.header-actions>#lmToolsBtn{background:#23252b!important;border:1px solid #80642a!important;color:#ffcb36!important;font-weight:850!important}
.topbar>.header-actions>#lmToolsBtn[hidden]{visibility:hidden!important;display:flex!important;pointer-events:none!important}
.ff-account-btn{width:42px!important;min-width:42px!important;padding:0!important;display:grid!important;place-items:center!important;border:1px solid #60636d!important;border-radius:50%!important;background:#1b1d23!important;color:#f5f5f7!important}
.ff-account-btn.ff-signed-in{border-color:#e8bf45!important;color:#e8bf45!important}
.ff-tools-card{padding:18px!important;min-height:300px;background:#16171d!important;border-color:#414149!important}
.ff-tools-card h2{margin:0 0 16px;font-size:21px;color:#f7d16a}
.ff-tools-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:18px}
.ff-tools-tabs button{font-size:12px!important;padding:9px 10px!important;border-radius:9px!important;border:1px solid #50505b!important;background:#24262d!important;color:#f4f4f5!important}
.ff-tools-tabs button.ff-selected{border-color:#d8aa36!important;color:#ffce46!important;background:#3b301d!important}
.ff-tools-panel{padding:16px;border:1px solid #42414b;border-radius:12px;background:#111217;min-height:150px}
.ff-tools-panel h3{margin:0 0 7px;font-size:17px}
.ff-tools-panel p{color:#adb0bb;margin:0 0 18px}
@media(max-width:700px){.topbar>.header-actions{grid-template-columns:repeat(3,minmax(0,1fr)) 38px!important;gap:5px!important}.topbar>.header-actions>#syncBtn,.topbar>.header-actions>#draftBoardBtn,.topbar>.header-actions>#lmToolsBtn{font-size:11px!important;padding:9px 3px!important}.ff-account-btn{width:38px!important;min-width:38px!important}.ff-tools-tabs button{font-size:11px!important;padding:8px 9px!important}}

/* v1.52: evenly sized navigation, responsive to commissioner role. */
.topbar>.header-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;align-items:stretch!important}
.topbar>.header-actions.ff-has-tools{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.topbar>.header-actions>#lmToolsBtn[hidden]{display:none!important;visibility:hidden!important}
.topbar>.header-actions>#syncBtn,.topbar>.header-actions>#draftBoardBtn,.topbar>.header-actions>#lmToolsBtn,.topbar>.header-actions>#accountBtn{width:100%!important;min-width:0!important;min-height:49px!important;height:auto!important;border-radius:14px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:8px 3px!important}
.topbar>.header-actions>#accountBtn{border:1px solid #8a7136!important;color:#f3f3f5!important;background:#23252b!important}
.topbar>.header-actions>#accountBtn.ff-signed-in{color:#64e6a5!important;border-color:#3fc88a!important;background:#173c2e!important}
@media(max-width:700px){.topbar>.header-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}.topbar>.header-actions.ff-has-tools{grid-template-columns:repeat(4,minmax(0,1fr))!important}.topbar>.header-actions>#syncBtn,.topbar>.header-actions>#draftBoardBtn,.topbar>.header-actions>#lmToolsBtn{font-size:11px!important;line-height:1.2!important;padding:7px 2px!important}}
/* Dialog content becomes an inline, fully functional LM Tools tab. */
#lmToolsPanel .dialog-card{width:100%!important;max-width:none!important;box-shadow:none!important;background:transparent!important;border:0!important;padding:0!important;margin:0!important}
#lmToolsPanel .dialog-header .icon-btn,#lmToolsPanel .dialog-actions button[value=cancel]{display:none!important}
#lmToolsPanel .dialog-header{margin-bottom:12px}
#lmToolsPanel .team-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
#lmToolsPanel .value-table-wrap{max-height:48vh}
#lmToolsPanel .dialog-actions{flex-wrap:wrap}
@media(max-width:480px){#lmToolsPanel .team-fields{grid-template-columns:1fr}#lmToolsPanel .value-tools{grid-template-columns:1fr}}

/* v1.53: prevent inherited inline-dialog styles from overlapping owner controls. */
#ownerManageDialog .ff-owner-field,#lmToolsPanel .ff-owner-field{display:flex;flex-direction:column;align-items:stretch;gap:7px;width:100%;min-width:0;margin:0 0 15px}
#ownerManageDialog .ff-owner-field label,#lmToolsPanel .ff-owner-field label{display:block;width:100%;font-size:14px;font-weight:650;margin:0}
#ownerManageDialog .ff-owner-field input,#ownerManageDialog .ff-owner-field select,#lmToolsPanel .ff-owner-field input,#lmToolsPanel .ff-owner-field select{display:block;width:100%!important;max-width:100%;min-width:0;box-sizing:border-box;margin:0!important;min-height:46px}
#ownerManageDialog .owner-role-check,#lmToolsPanel .owner-role-check{display:flex!important;align-items:flex-start;gap:12px;line-height:1.45;margin:4px 0 15px;overflow-wrap:anywhere}
#ownerManageDialog .owner-role-check input,#lmToolsPanel .owner-role-check input{flex:0 0 21px;width:21px!important;height:21px;margin:2px 0 0!important;accent-color:#ffcf42}
#ownerManageDialog .dialog-actions,#lmToolsPanel #saveOwnerAssignment,#lmToolsPanel #removeOwnerAssignment{min-width:0}
#lmToolsPanel #ownerAssignmentStatus{margin:12px 0 18px}
#lmToolsPanel .dialog-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
#lmToolsPanel .dialog-actions button{width:100%;white-space:normal;overflow-wrap:anywhere;margin:0;padding:12px 7px}
@media(max-width:380px){#lmToolsPanel .dialog-actions{grid-template-columns:1fr}}

/* v1.54 ESPN-inspired top navigation: text with sliding gold selection underline. */
.topbar>.header-actions,.topbar>.header-actions.ff-has-tools{display:flex!important;align-items:stretch!important;gap:0!important;width:100%!important;grid-template-columns:none!important}
.topbar>.header-actions>#syncBtn,.topbar>.header-actions>#draftBoardBtn,.topbar>.header-actions>#standingsBtn,.topbar>.header-actions>#lmToolsBtn{flex:1 1 0!important;width:auto!important;min-width:0!important;min-height:48px!important;height:48px!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;background:transparent!important;color:#b6b6bb!important;font-weight:800!important;text-transform:uppercase;font-size:clamp(9px,2.6vw,14px)!important;letter-spacing:.02em!important;padding:8px 2px!important;box-shadow:none!important;transition:color .2s,border-color .2s!important;white-space:nowrap!important;overflow:hidden!important;word-break:normal!important}
.topbar>.header-actions>#syncBtn.ff-active,.topbar>.header-actions>#draftBoardBtn.ff-active,.topbar>.header-actions>#standingsBtn.ff-active,.topbar>.header-actions>#lmToolsBtn.ff-active{border-bottom-color:#f1c44e!important;color:#fff!important;background:transparent!important}
.topbar>.header-actions>#lmToolsBtn[hidden]{display:none!important}
.topbar>.header-actions>#accountBtn{flex:0 0 42px!important;width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;align-self:center!important;border-radius:50%!important;margin-left:8px!important;padding:0!important;background:#23252b!important;border:1px solid #7b7b80!important}
.topbar>.header-actions>#accountBtn.ff-signed-in{background:#163c2b!important;color:#64e6a5!important;border-color:#3fc88a!important}
@media(max-width:420px){.topbar>.header-actions>#accountBtn{flex-basis:36px!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;margin-left:4px!important}}
/* Replace inherited blue auction-value table headings with charcoal/gold. */
#valuesDialog th,#lmToolsPanel .value-table-wrap th{background:#292827!important;color:#f5ca59!important;border-bottom:2px solid #967630!important}
.ff-standings-card{padding:17px;background:#16171d;border-color:#454149}
.ff-standings-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.ff-standings-heading h2{font-size:20px;margin:0;color:#f4ce6d}
.ff-espn-tag{font-size:12px;color:#f1c44e}.ff-espn-note{color:#a8a8b2;font-size:12px;margin:0 0 16px}
.ff-standings-scroll{overflow-x:auto;margin-bottom:20px;border:1px solid #393a40;border-radius:10px}
.ff-standings-scroll table{min-width:440px}.ff-standings-scroll th{background:#292827!important;color:#f5ca59!important}.ff-standings-scroll tr[data-espn-team]{cursor:pointer}.ff-standings-scroll tr[data-espn-team]:active{background:#393329}
.ff-week-label{display:flex;align-items:center;gap:8px;color:#ddd}.ff-week-label select{width:80px;padding:8px;background:#24252a;border-color:#625431}
.ff-matchups{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px;margin-bottom:22px}
.ff-matchup{background:#202127;border:1px solid #414047;border-radius:11px;padding:10px 12px}
.ff-matchup>div{display:flex;justify-content:space-between;gap:10px;padding:6px 0;font-size:13px}.ff-matchup>div+div{border-top:1px solid #39393e}.ff-matchup strong{font-variant-numeric:tabular-nums}.ff-win{color:#67dfa2!important;font-weight:800}.ff-loss{color:#f18787!important}
#ff-espn-team-history h3{color:#f4ce6d;font-size:17px}

/* v1.55: readable, independently scrolling navigation with fixed account button. */
.topbar>.ff-room-status{display:block;color:#e9bd54;font-size:11px;letter-spacing:.11em;font-weight:750;padding:8px 16px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar>.header-actions,.topbar>.header-actions.ff-has-tools{display:flex!important;align-items:center!important;gap:10px!important;width:100%!;max-width:100%;min-width:0;box-sizing:border-box;padding:5px 12px 8px!important}
.topbar>.header-actions>.ff-top-tabs{display:flex;flex:1 1 auto;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;gap:25px;align-items:stretch;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.topbar>.header-actions>.ff-top-tabs::-webkit-scrollbar{display:none}
.topbar>.header-actions>.ff-top-tabs>button{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:auto!important;min-width:max-content!important;height:48px!important;min-height:48px!important;max-width:none!important;margin:0!important;padding:10px 2px!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#b6b6bb!important;font-size:13px!important;letter-spacing:.035em!important;font-weight:800!important;white-space:nowrap!important;overflow:visible!important;text-transform:uppercase!important}
.topbar>.header-actions>.ff-top-tabs>button.ff-active{color:#fff!important;border-bottom-color:#f1c44e!important}
.topbar>.header-actions>.ff-top-tabs>#lmToolsBtn[hidden]{display:none!important}
.topbar>.header-actions>#accountBtn{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 42px!important;width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;margin:0!important;padding:0!important;border-radius:50%!important;background:#23252b!important;border:1px solid #7b7b80!important;color:#eee!important}
.topbar>.header-actions>#accountBtn.ff-signed-in{background:#163c2b!important;color:#64e6a5!important;border-color:#3fc88a!important}
.ff-standings-scroll td,.ff-standings-scroll th{border-bottom-color:#34343a!important;border-top-color:#34343a!important}
.ff-standings-scroll table tr{border-color:#34343a!important}

/* v1.56 (Build 66): prevent first two commissioner tabs from colliding.
   Each label owns its intrinsic width; the viewport scrolls instead of squeezing text. */
.topbar > .header-actions { width:100%!important; min-width:0!important; }
.topbar > .header-actions > .ff-top-tabs {
  display:flex!important; flex-flow:row nowrap!important; justify-content:flex-start!important;
  gap:24px!important; padding-inline:8px 12px!important;
  scroll-padding-inline:8px 12px; box-sizing:border-box!important;
  overflow-x:auto!important; overflow-y:hidden!important;
}
.topbar > .header-actions > .ff-top-tabs > button {
  position:relative!important; flex:0 0 max-content!important;
  width:max-content!important; min-width:max-content!important; max-width:none!important;
  box-sizing:border-box!important; padding-inline:6px!important;
  white-space:nowrap!important; overflow:visible!important;
  text-overflow:clip!important; word-break:keep-all!important;
  letter-spacing:.02em!important; scroll-margin-inline:12px!important;
}
.topbar > .header-actions > .ff-top-tabs > #syncBtn { min-width:106px!important; }
.topbar > .header-actions > .ff-top-tabs > #standingsBtn { min-width:102px!important; }

/* v1.59 compact season prize leaders */
.ff-prize-leaders{margin:10px 0 14px;border:1px solid rgba(245,192,65,.35);border-radius:10px;overflow:hidden;background:rgba(245,192,65,.045)}
.ff-prize-title{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:9px 11px;font-weight:800;font-size:13px;color:#f5c041}
.ff-prize-title span{font-size:10px;font-weight:500;color:#aaa;text-align:right}
.ff-prize-row{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid rgba(255,255,255,.09);padding:7px 11px}
.ff-prize-desc{display:flex;flex-direction:column;gap:2px;min-width:0}
.ff-prize-desc span{font-size:10px;color:#aaa}
.ff-prize-desc strong{font-size:13px;overflow-wrap:anywhere}
.ff-prize-desc small{font-size:10px;color:#aaa}
.ff-prize-row>b{font-size:12px;color:#f5c041;flex-shrink:0}

/* v1.61 live matchup view */
.ff-live-games{display:grid;gap:10px;margin:12px 0}
.ff-live-match{display:flex;flex-direction:column;align-items:stretch;gap:7px;width:100%;padding:13px;border:1px solid rgba(230,180,60,.35);border-radius:10px;background:rgba(255,255,255,.045);color:inherit;text-align:left}
.ff-live-match span{font-weight:650;font-size:14px}
.ff-live-match small{color:#c5a65c;font-size:11px}
.ff-live-team{padding:12px 0;border-top:1px solid rgba(255,255,255,.13)}
.ff-live-player{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.ff-live-lineups h3{margin:15px 0 5px}

/* v1.63 (Build 73): three static top destinations and scrollable bottom navigation. */
.topbar>.header-actions>.ff-top-tabs>#lmToolsBtn{display:none!important}
.topbar>.header-actions>.ff-top-tabs{justify-content:space-between!important;gap:4px!important;overflow-x:hidden!important;width:100%!important}
.topbar>.header-actions>.ff-top-tabs>#syncBtn,.topbar>.header-actions>.ff-top-tabs>#draftBoardBtn,.topbar>.header-actions>.ff-top-tabs>#standingsBtn{flex:1 1 0!important;min-width:0!important;width:0!important;max-width:none!important;white-space:nowrap!important;padding-inline:2px!important;font-size:clamp(10px,2.8vw,14px)!important}
.topbar>.header-actions>#accountBtn{flex:0 0 34px!important;width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;margin-left:5px!important}
.topbar>.header-actions>#accountBtn svg{width:19px!important;height:19px!important}
@media(max-width:420px){.topbar>.header-actions>#accountBtn{flex-basis:32px!important;width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important}}
.ff-tabs{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none;width:auto!important;max-width:none!important}
.ff-tabs::-webkit-scrollbar{display:none}
.ff-tabs>button{flex:0 0 79px!important;min-width:79px!important;max-width:79px!important;scroll-snap-align:nearest}
.ff-tabs>button[data-fftab=tools]{flex-basis:84px!important;min-width:84px!important}
.ff-tabs>button.ff-active{color:#f4c94b!important}
#ff-tools .ff-switch-league-btn{display:block!important;margin-top:16px!important;margin-bottom:12px!important}

/* v1.64 ESPN-style head-to-head live matchup */
.ff-live-games{display:flex;gap:9px;overflow-x:auto;scroll-snap-type:x mandatory;padding:8px 1px 14px;-webkit-overflow-scrolling:touch}
.ff-live-match{flex:0 0 min(78vw,280px);min-width:210px;scroll-snap-align:start;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:13px 10px;text-align:center}
.ff-live-match span{font-size:12px;overflow-wrap:anywhere}.ff-live-match strong{color:#f1c75b;font-size:15px;white-space:nowrap}.ff-live-match small{grid-column:1/-1}
.ff-live-match.selected{border-color:#e5b63b;background:rgba(229,182,59,.12)}
.ff-live-scoreboard{display:grid;grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);align-items:center;gap:5px;padding:18px 5px;background:#202020;border-radius:12px}
.ff-live-score-side{display:flex;flex-direction:column;gap:8px;text-align:center;min-width:0}.ff-live-score-side strong{font-size:clamp(25px,7vw,38px);font-weight:800;color:#fff;font-variant-numeric:tabular-nums}.ff-live-score-side span{font-size:13px;font-weight:650;overflow-wrap:anywhere}.ff-live-versus{text-align:center;color:#d8ad48;font-size:12px;font-weight:800}
.ff-live-hint{font-size:11px;color:#b6b6b6;text-align:center;margin:10px 0}.ff-live-empty{padding:12px;background:#28251e;border-radius:8px;font-size:12px;color:#e2c88c}
.ff-live-lineup-grid{display:grid;gap:5px}.ff-live-versus-row{display:grid;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);gap:4px;min-height:69px}.ff-live-lineup-cell{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-content:center;gap:3px 6px;background:#202123;padding:9px 7px;border-radius:4px;min-width:0}.ff-live-lineup-cell.right{text-align:right}.ff-live-player-name{font-size:13px;font-weight:650;overflow-wrap:anywhere}.ff-live-player-points{font-size:15px;font-variant-numeric:tabular-nums;color:#fff}.ff-live-lineup-cell small{grid-column:1/-1;font-size:11px;color:#999}.ff-live-position{display:flex;align-items:center;justify-content:center;background:#111;color:#bbb;font-size:11px;font-weight:800}

/* v1.65: account in scrollable bottom bar; center three static header tabs */
#accountBtn{display:none!important}
.ff-top-tabs{justify-content:center!important;gap:0!important;margin-inline:auto!important}
.topbar>.header-actions{justify-content:center!important}
.topbar>.header-actions>.ff-top-tabs{flex:0 1 100%!important;max-width:650px!important;justify-content:center!important}
.ff-tabs>button[data-fftab="account"]{flex:0 0 80px!important;min-width:80px!important}
.ff-tabs>button[data-fftab="account"].ff-active{color:#f4c94b!important}
.ff-nfl-shield{display:flex!important;align-items:center;justify-content:center;height:27px!important}
.ff-nfl-shield svg{display:block;height:27px;width:24px}

/* v1.66 — compact head-to-head player grid; matchup slider unchanged */
.ff-live-lineup-grid{gap:3px}
.ff-live-versus-row{min-height:46px;grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr);gap:3px}
.ff-live-lineup-cell{padding:5px 6px;gap:1px 5px;grid-template-rows:auto auto;align-content:center;min-height:46px}
.ff-live-player-name{font-size:11px;font-weight:600;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;min-width:0}
.ff-live-player-points{font-size:13px;line-height:1.15;font-weight:750}
.ff-live-lineup-cell small{font-size:9px;line-height:1.1;margin:0}
.ff-live-position{font-size:10px}
@media(max-width:390px){.ff-live-versus-row{grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr)}.ff-live-lineup-cell{padding:4px 4px}.ff-live-player-name{font-size:10px}}

/* v1.68: opposing scores face the center */
.ff-live-lineup-cell.right{grid-template-columns:auto minmax(0,1fr);text-align:right}
.ff-live-lineup-cell.right .ff-live-player-points{grid-column:1;grid-row:1;text-align:left}
.ff-live-lineup-cell.right .ff-live-player-name{grid-column:2;grid-row:1;text-align:right}
.ff-live-lineup-cell.right small{grid-row:2;text-align:right}
/* One-time RGIII joke loading splash */
#rgiii-splash{position:fixed;inset:0;z-index:999999;background:#080308;display:flex;align-items:center;justify-content:center;overflow:hidden;opacity:1;transition:opacity .55s ease;pointer-events:auto}
#rgiii-splash.rgiii-hide{opacity:0;pointer-events:none}
#rgiii-splash .rgiii-poster{position:absolute;width:100%;height:100%;object-fit:contain;opacity:0;animation:rgiii-fade 1.15s ease forwards}
#rgiii-splash .rgiii-meter{position:absolute;bottom:max(7%,env(safe-area-inset-bottom));left:13%;right:13%;height:15px;display:flex;gap:5px;justify-content:center;align-items:center;background:rgba(25,0,15,.75);border:1px solid #ff77b3;border-radius:30px;box-shadow:0 0 16px #ff4e9c}
#rgiii-splash .rgiii-meter span{flex:1;text-align:center;color:#ff73a7;font-size:clamp(9px,3vw,16px);opacity:.18;animation:rgiii-fill .23s ease forwards;animation-delay:calc(.4s + var(--i) * .24s)}
#rgiii-splash .rgiii-caption{position:absolute;bottom:max(3%,env(safe-area-inset-bottom));font-size:clamp(11px,3.1vw,16px);letter-spacing:.14em;color:#ffe0ec;text-align:center;text-shadow:0 0 12px #ff4080}
@keyframes rgiii-fade{to{opacity:1}}@keyframes rgiii-fill{to{opacity:1;transform:scale(1.12);text-shadow:0 0 8px #ff83bb}}
@media(prefers-reduced-motion:reduce){#rgiii-splash .rgiii-poster{opacity:1;animation:none}#rgiii-splash .rgiii-meter span{animation:none;opacity:1}}

/* v1.70: position the animated hearts directly below the poster's Loading title,
   rather than in the lower safe-area footer. */
#rgiii-splash .rgiii-meter{bottom:14.1%;left:22%;right:22%;height:19px;z-index:2}
#rgiii-splash .rgiii-caption{bottom:max(3%,env(safe-area-inset-bottom))}

/* v1.71: animate the single heart meter printed on the RGIII artwork.
   Cover it briefly and reveal it left-to-right; no second HTML heart row. */
#rgiii-splash .rgiii-baked-meter-mask{position:absolute;z-index:2;left:10%;right:10%;top:84.5%;height:5.1%;background:rgba(8,3,9,.94);border-radius:24px;transform-origin:right center;animation:rgiii-reveal-baked 4.1s steps(12,end) .2s forwards;pointer-events:none}
@keyframes rgiii-reveal-baked{from{transform:scaleX(1)}to{transform:scaleX(0)}}
#rgiii-splash .rgiii-caption{display:none!important}
@media(prefers-reduced-motion:reduce){#rgiii-splash .rgiii-baked-meter-mask{animation:none;transform:scaleX(0)}}

#rgiii-splash .rgiii-art{position:relative;width:min(100vw,56.28dvh);aspect-ratio:941/1672;max-height:100dvh}
#rgiii-splash .rgiii-art .rgiii-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
#rgiii-splash .rgiii-art .rgiii-baked-meter-mask{top:84.2%;height:5.6%}

/* v1.72: signed-in account status styled as a prominent non-interactive button. */
#ownerAccountDetails:not([hidden]){display:flex;align-items:center;gap:10px;padding:14px 16px;margin:12px 0 16px;border:1px solid rgba(244,192,70,.78);border-radius:12px;background:linear-gradient(135deg,rgba(242,181,51,.24),rgba(242,181,51,.09));box-shadow:0 3px 18px rgba(240,176,49,.12);color:#ffe3a0;font-weight:750;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
#ownerAccountDetails:not([hidden])::before{content:"✓";flex:0 0 auto;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e9b94a;color:#181510;font-weight:900}

/* v1.74 private League Chat */
.ff-chat-card{display:flex;flex-direction:column;gap:12px;min-height:65dvh}
.ff-chat-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.ff-chat-heading h2{margin:0}
.ff-chat-heading .helper{margin:4px 0 0}
.ff-chat-messages{display:flex;flex-direction:column;gap:10px;overflow-y:auto;min-height:250px;height:clamp(290px,52dvh,600px);padding:14px;border:1px solid #3b3b3b;border-radius:12px;background:#111}
.ff-chat-bubble{max-width:88%;align-self:flex-start;background:#292929;color:#f6f6f6;border:1px solid #444;border-radius:13px;padding:10px 12px;overflow-wrap:anywhere}
.ff-chat-bubble.own{align-self:flex-end;background:#3a301c;border-color:#9b7835}
.ff-chat-meta{display:flex;gap:14px;align-items:center;justify-content:space-between;font-size:12px;color:#e9c36d;margin-bottom:6px}
.ff-chat-meta time{color:#b9b9b9;font-weight:400;white-space:nowrap}
.ff-chat-text{white-space:pre-wrap;font-size:15px;line-height:1.4}
.ff-chat-delete{background:transparent;border:0;color:#f0b5b5;font-size:11px;padding:6px 0 0;cursor:pointer}
.ff-chat-compose{display:flex;gap:8px;align-items:center}
.ff-chat-compose input{flex:1;min-width:0}
.ff-chat-compose button{flex:0 0 auto}

/* v1.75 — smooth RGIII heart glow: no stepping or opaque reveal blocks */
#rgiii-splash .rgiii-baked-meter-mask{
  left:10%;right:10%;top:84.2%;height:5.6%;
  background:transparent;border-radius:24px;transform:none;
  box-shadow:0 0 0 rgba(255,92,170,0);
  animation:rgiii-heart-glow 2.5s ease-in-out infinite alternate;
}
@keyframes rgiii-heart-glow{
  0%{opacity:.15;filter:brightness(1);box-shadow:0 0 3px rgba(255,92,170,.08)}
  100%{opacity:.7;filter:brightness(1.15);box-shadow:0 0 22px 3px rgba(255,92,170,.32)}
}
@media(prefers-reduced-motion:reduce){#rgiii-splash .rgiii-baked-meter-mask{animation:none;opacity:0}}

/* v1.75 — iMessage-inspired chat, dark appearance */
#ff-chat .ff-chat-card{background:#080808;border:0;padding:10px 4px 0;gap:8px;min-height:75dvh}
#ff-chat .ff-chat-heading{padding:4px 12px 10px}
#ff-chat .ff-chat-heading h2{font-size:20px;letter-spacing:-.02em}
#ff-chat .ff-chat-heading .helper{color:#9c9ca3;font-size:12px}
#ff-chat #ff-chat-status{color:#8e8e93;font-size:11px;margin:0 12px 4px}
#ff-chat .ff-chat-messages{background:#000;border:0;border-radius:0;padding:16px 12px 20px;gap:5px;height:clamp(380px,62dvh,850px);min-height:350px;scrollbar-width:thin}
#ff-chat .ff-chat-bubble{position:relative;max-width:83%;border:0;background:#29292d;color:#fff;border-radius:19px 19px 19px 6px;padding:10px 14px;margin:3px 0 7px;box-shadow:none}
#ff-chat .ff-chat-bubble.own{background:#168bfa;color:#fff;border-radius:19px 19px 6px 19px}
#ff-chat .ff-chat-bubble::after{content:"";position:absolute;left:-5px;bottom:0;width:10px;height:12px;background:#29292d;border-bottom-right-radius:10px;clip-path:polygon(0 100%,100% 0,100% 100%)}
#ff-chat .ff-chat-bubble.own::after{left:auto;right:-5px;background:#168bfa;transform:scaleX(-1)}
#ff-chat .ff-chat-meta{display:block;font-size:11px;color:#b8b8be;margin:0 0 5px;line-height:1.2}
#ff-chat .ff-chat-bubble.own .ff-chat-meta{color:#dceeff}
#ff-chat .ff-chat-meta time{display:none}
#ff-chat .ff-chat-text{font-size:16px;line-height:1.35;letter-spacing:-.01em}
#ff-chat .ff-chat-day{align-self:center;color:#89898f;font-size:11px;font-weight:600;text-align:center;margin:12px 0 9px}
#ff-chat .ff-chat-delete{display:block;margin:5px 0 0;padding:0;color:#ffd1d1;opacity:.8}
#ff-chat .ff-chat-compose{background:#171719;border:1px solid #444448;border-radius:28px;padding:5px;gap:6px;position:sticky;bottom:env(safe-area-inset-bottom,0px);z-index:2;margin:4px 8px 12px}
#ff-chat .ff-chat-compose input{background:transparent!important;border:0!important;box-shadow:none!important;color:#fff!important;font-size:16px;padding:9px 12px;outline:none}
#ff-chat .ff-chat-compose input::placeholder{color:#85858b}
#ff-chat .ff-chat-compose button{background:#168bfa!important;color:white!important;border:0!important;border-radius:22px;padding:9px 15px;font-weight:700}
#ff-chat .ff-chat-compose button:disabled{opacity:.45}

/* v1.76: illuminate the existing meter smoothly from left to right. */
#rgiii-splash .rgiii-baked-meter-mask{display:none!important}
#rgiii-splash .rgiii-art .rgiii-heart-sweep{
 position:absolute;inset:0;z-index:3;width:100%;height:100%;object-fit:contain;
 pointer-events:none;opacity:1;filter:drop-shadow(0 0 7px rgba(255,68,150,.9));
 clip-path:inset(0 100% 0 0);
 animation:rgiii-heart-sweep 4.25s linear .2s forwards;
}
@keyframes rgiii-heart-sweep{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@media(prefers-reduced-motion:reduce){#rgiii-splash .rgiii-art .rgiii-heart-sweep{animation:none;clip-path:inset(0 0 0 0)}}

/* v1.76: Chat fills only the space above the floating navigation; only messages scroll. */
#ff-chat.ff-active{height:var(--ff-chat-available,calc(100dvh - 240px));min-height:0;overflow:hidden;overscroll-behavior:none}
#ff-chat .ff-chat-card{
 height:100%!important;min-height:0!important;max-height:100%!important;
 display:flex!important;flex-direction:column!important;overflow:hidden!important;
 padding:5px 4px 2px!important;margin:0!important;gap:5px!important;
}
#ff-chat .ff-chat-heading{flex:0 0 auto;padding:2px 12px 4px!important}
#ff-chat #ff-chat-status{flex:0 0 auto;min-height:0!important;margin:0 12px 2px!important}
#ff-chat .ff-chat-messages{
 flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important;
 overflow-y:auto!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;
 padding:10px 12px 12px!important;
}
#ff-chat .ff-chat-compose{
 flex:0 0 auto!important;position:relative!important;bottom:auto!important;
 margin:4px 8px 4px!important;min-height:47px;
}
#ff-chat .ff-chat-compose input{min-width:0}

/* v1.77: use transparent heart silhouettes instead of opaque rectangular tiles.
   Existing 4.25s left-to-right sweep now fills the hearts themselves. */
#rgiii-splash .rgiii-art .rgiii-heart-sweep{
 filter:drop-shadow(0 0 3px rgba(255,95,168,.9)) drop-shadow(0 0 7px rgba(255,50,130,.55));
}

/* v1.80: native keyboardLayoutGuide resizes the actual WKWebView. No
   fixed-position chat panel and no JS keyboard-height calculation. */
#ff-chat .ff-chat-messages{background:transparent!important;border:0!important;box-shadow:none!important}
body.ff-chat-typing{overscroll-behavior:none!important}
body.ff-chat-typing #ff-chat.ff-active{min-height:0!important;overflow:hidden!important}
body.ff-chat-typing #ff-chat .ff-chat-messages{overscroll-behavior:contain!important;overflow-y:auto!important}
body.ff-chat-typing #ff-chat .ff-chat-compose{position:relative!important;bottom:auto!important}

/* v1.80.2: WKWebView already resizes above keyboard. Pin chat within it. */
body.ff-chat-typing #ff-chat.ff-active{
 position:fixed!important;top:6px!important;bottom:6px!important;left:8px!important;right:8px!important;
 width:auto!important;height:auto!important;max-height:none!important;
 margin:0!important;padding:0!important;z-index:1000!important;
 display:flex!important;flex-direction:column!important;overflow:hidden!important;
}
body.ff-chat-typing #ff-chat .ff-chat-card{
 flex:1 1 auto!important;min-height:0!important;height:100%!important;
 display:flex!important;flex-direction:column!important;overflow:hidden!important;
}
body.ff-chat-typing #ff-chat .ff-chat-messages{
 flex:1 1 0!important;min-height:0!important;height:auto!important;overflow-y:auto!important;
}
body.ff-chat-typing #ff-chat .ff-chat-compose{
 flex:0 0 auto!important;position:relative!important;margin:4px 8px 6px!important;
}
body.ff-chat-typing .ff-tabs,body.ff-chat-typing .ff-account-btn{visibility:hidden!important;pointer-events:none!important}

/* v1.80.3: preserve vertical touch gestures inside message history while
   the keyboard is displayed. The outer document never consumes those drags. */
html:has(body.ff-chat-typing),body.ff-chat-typing{overscroll-behavior:none!important}
body.ff-chat-typing #ff-chat .ff-chat-messages{
 display:block!important;flex:1 1 0!important;min-height:0!important;
 height:0!important;max-height:none!important;overflow-y:scroll!important;
 -webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;
 overscroll-behavior-y:contain!important;
}
body.ff-chat-typing #ff-chat .ff-chat-bubble{display:block!important;width:max-content;max-width:83%}
body.ff-chat-typing #ff-chat .ff-chat-bubble.own{margin-left:auto!important}
body.ff-chat-typing #ff-chat .ff-chat-day{text-align:center!important}
body.ff-chat-typing #ff-chat .ff-chat-compose{flex-shrink:0!important}

/* v1.80.4: stable history scroller while composing. */
body.ff-chat-typing #ff-chat .ff-chat-messages{
 overflow-y:auto!important;touch-action:auto!important;
 overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;
}

/* v1.80.5: allow the oldest chat message to reach the top of the history. */
#ff-chat .ff-chat-messages{scroll-padding-top:0!important;padding-top:4px!important;}
body.ff-chat-typing #ff-chat .ff-chat-messages{overscroll-behavior:contain!important;}

/* v1.80.6: explicit oldest-message navigation, reachable with keyboard up */
#ff-chat .ff-chat-heading-actions{display:flex;gap:6px;align-items:center;flex-shrink:0}
#ff-chat .ff-chat-heading-actions button{font-size:12px;padding:7px 9px;min-height:32px}
body.ff-chat-typing #ff-chat .ff-chat-messages{
  overscroll-behavior-y:contain!important;
  scroll-padding-top:0!important;
  padding-top:0!important;
  touch-action:none!important; /* direct JS touch handler owns the gesture */
}

/* v1.83: Account notification preferences */
.ff-notification-options{display:grid;gap:0;margin:12px 0;border:1px solid #454545;border-radius:12px;overflow:hidden}
.ff-notification-options label{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 12px;border-bottom:1px solid #353535;color:#eee;font-size:15px;cursor:pointer}
.ff-notification-options label:last-child{border-bottom:0}
.ff-notification-options input[type=checkbox]{width:22px;height:22px;flex:none;accent-color:#d6a934}

/* v1.84: NFL team labels, injury badges, possession and red-zone indicators */
.ff-live-lineup-cell{position:relative;overflow:hidden;border-top:4px solid transparent}
.ff-live-lineup-cell.ff-live-offense{border-top-color:#e3b341}
.ff-live-lineup-cell.ff-live-redzone{border-top-color:#e34444}
.ff-live-player-details{grid-column:1/-1;grid-row:2;display:flex;gap:5px;align-items:center;color:#bfc3c9;font-size:10px;font-weight:600;min-height:12px}
.ff-live-lineup-cell.right .ff-live-player-details{justify-content:flex-end}
.ff-live-injury{font-size:9px;line-height:1.3;border-radius:3px;padding:0 4px}
.ff-live-injury-q{background:#6c5418;color:#ffe095}
.ff-live-injury-out{background:#692727;color:#ffb2b2}
.ff-live-lineup-cell small{grid-row:3}

/* v1.86: keep NFL team and injury metadata separate from projected points. */
.ff-live-lineup-cell{grid-template-rows:auto auto auto!important;row-gap:3px;overflow:hidden}
.ff-live-player-details{grid-column:1/-1!important;grid-row:2!important;min-width:0;flex-wrap:wrap;line-height:1.2;position:relative;z-index:1}
.ff-live-lineup-cell small{grid-column:1/-1!important;grid-row:3!important;min-width:0}
.ff-live-injury{display:inline-flex;align-items:center;flex:none;white-space:nowrap}
.ff-live-lineup-cell.ff-live-offense{border-top-color:#e3b341!important}
.ff-live-lineup-cell.ff-live-redzone{border-top-color:#e34444!important}

/* v1.87: high-visibility possession indicator on the outside edge of each lineup card. */
.ff-live-lineup-cell.ff-live-offense.left{border-left:3px solid #e3b341!important}
.ff-live-lineup-cell.ff-live-offense.right{border-right:3px solid #e3b341!important}
.ff-live-lineup-cell.ff-live-redzone.left{border-left:3px solid #e34444!important}
.ff-live-lineup-cell.ff-live-redzone.right{border-right:3px solid #e34444!important}

/* v1.88: match top and outside-edge possession indicator thickness. */
.ff-live-lineup-cell.ff-live-offense.left,.ff-live-lineup-cell.ff-live-offense.right,.ff-live-lineup-cell.ff-live-redzone.left,.ff-live-lineup-cell.ff-live-redzone.right{border-top-width:3px!important}

/* v1.90 matchup probability and scoring popup */
.ff-live-winprob{display:flex;align-items:center;gap:5px;min-width:0;width:100%}.ff-live-winprob-track{flex:1;height:6px;border-radius:10px;background:#434343;overflow:hidden}.ff-live-winprob-fill{height:100%;background:#e3b341;border-radius:10px}.ff-live-winprob small{font-size:10px!important;color:#e5c773!important;white-space:nowrap}.ff-live-match-probs{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px}.ff-live-score-side .ff-live-winprob{max-width:145px;align-self:center}.ff-live-player-clickable{cursor:pointer}.ff-live-player-clickable:focus-visible{outline:2px solid #e3b341;outline-offset:2px}.ff-live-stat-overlay{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.78);display:flex;align-items:center;justify-content:center;padding:18px}.ff-live-stat-modal{position:relative;width:min(100%,410px);max-height:85vh;overflow:auto;background:#202123;border:1px solid #c69a38;border-radius:14px;color:#fff;padding:20px}.ff-live-stat-modal h3{padding-right:30px;margin:0 0 12px}.ff-live-stat-modal h2{color:#e3b341;margin:0 0 8px}.ff-live-stat-close{position:absolute;right:12px;top:10px;background:transparent;color:white;border:0;font-size:22px}.ff-live-stat-note{color:#aaa;font-size:12px}.ff-live-stat-line{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #444}.ff-live-stat-line strong{color:#e3b341;white-space:nowrap}

/* v1.98: exactly one matchup fills the carousel viewport. */
#ff-live-games.ff-live-games{display:flex;gap:0;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:8px 0 14px;scroll-behavior:smooth;position:relative}
#ff-live-games::-webkit-scrollbar{display:none}
#ff-live-games .ff-live-slide{position:relative;flex:0 0 100%;width:100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;padding:0 1px;box-sizing:border-box}
#ff-live-games .ff-live-match{width:100%;height:100%;min-width:0;box-sizing:border-box;padding:14px 42px 14px 12px;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
#ff-live-games .ff-live-match strong{font-size:clamp(12px,3.4vw,17px)}
#ff-live-games .ff-live-favorite{position:absolute;right:11px;top:11px;z-index:2;border:0;background:rgba(0,0,0,.25);color:#a8a8ad;font-size:28px;line-height:1;border-radius:9px;padding:6px;cursor:pointer}
#ff-live-games .ff-live-favorite.active{color:#e8b942}

/* v1.99: smaller favorite star with a comfortable tap target */
#ff-live-games .ff-live-favorite{font-size:21px;padding:9px}

/* v2.00: compact transparent favorite control, retaining a generous tap target. */
#ff-live-games .ff-live-favorite,#ff-live-games .ff-live-favorite.active{background:transparent!important;box-shadow:none!important;border:0!important;font-size:16px!important;line-height:1!important;padding:12px!important;border-radius:0!important;}

/* v2.01: full-width carousel aligns with roster, without neighboring-card peeks. */
#ff-live-games.ff-live-games{scroll-padding-inline:0;overscroll-behavior-x:contain;}
#ff-live-games .ff-live-slide{flex:0 0 100%;width:100%;scroll-snap-align:start;}

/* v2.07: Commissioner-only owner sign-in status. */
.ff-owner-registration{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;margin:0 0 16px;border:1px solid rgba(148,163,184,.3);border-radius:10px;font-size:14px}
.ff-owner-registration>span{font-weight:600}
.ff-reg-status{font-size:13px;font-weight:700;padding:5px 10px;border-radius:20px;background:rgba(148,163,184,.16);color:inherit}
.ff-reg-registered{background:rgba(34,197,94,.18);color:#4ade80}
.ff-reg-pending{background:rgba(245,158,11,.18);color:#fbbf24}
.ff-reg-neutral{opacity:.8}

/* v2.08 ESPN player scoring detail */
.ff-live-stat-modal{width:min(100%,500px);padding:18px 14px;background:#202123;border:1px solid #444}
.ff-live-stat-header{text-align:center;padding:6px 28px 20px}.ff-live-stat-header h3{padding:0;margin:4px 0 2px;font-size:21px}.ff-live-stat-photo{width:92px;height:92px;object-fit:cover;border-radius:50%;background:#343638;border:2px solid #666}.ff-live-stat-subtitle{color:#aaa;font-size:14px}.ff-live-stat-table{border-collapse:collapse;width:100%;font-size:13px;table-layout:fixed}.ff-live-stat-table th{font-size:11px;text-align:right;padding:10px 5px;border-bottom:2px solid #555;color:#f5f5f5}.ff-live-stat-table th:first-child,.ff-live-stat-table td:first-child{text-align:left;width:46%}.ff-live-stat-table td{text-align:right;padding:12px 5px;border-bottom:1px solid #484848;overflow-wrap:anywhere}.ff-live-stat-table td:last-child{font-weight:700}.ff-live-stat-table .ff-live-stat-negative{color:#ff6666}.ff-live-stat-table .ff-live-stat-total td{font-weight:800;background:#28292a;border-top:2px solid #555;border-bottom:0}.ff-live-stat-note{margin:12px 3px 2px;line-height:1.4}

/* NFL Pick'em */
.ff-pickem-controls,.ff-pickem-switch{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0}
.ff-pickem-controls label{display:flex;align-items:center;gap:7px;color:#b7bac3;font-size:13px}
.ff-pickem-controls select{background:#20232c;color:#fff;border:1px solid #4b4e57;border-radius:7px;padding:7px}
.ff-pickem-switch button{flex:1;min-width:110px}
.ff-pickem-game{background:#191c24;border:1px solid #343842;border-radius:12px;margin:10px 0;padding:13px}
.ff-pickem-game-top{display:flex;justify-content:space-between;color:#aeb3bf;font-size:12px;margin-bottom:10px;gap:8px}
.ff-pickem-match{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ff-pickem-team{min-height:60px;background:#272b35;color:#fff;border:1px solid #454954;border-radius:8px;font-size:14px;font-weight:650;padding:10px 5px;white-space:normal}
.ff-pickem-team small{color:#aeb3bf;font-weight:400;margin-left:3px}
.ff-pickem-team.ff-selected{border-color:#edc34c;background:#3b321f;color:#f4ca53}
.ff-pickem-team:disabled{opacity:.7;cursor:not-allowed}
.ff-pickem-result{margin-top:8px;color:#b9c0ce;font-size:12px}
.ff-pickem-table{width:100%;border-collapse:collapse;font-size:13px}
.ff-pickem-table th,.ff-pickem-table td{padding:10px 7px;border-bottom:1px solid #363943;text-align:left}
.ff-pickem-table th:last-child,.ff-pickem-table td:last-child{text-align:right;color:#eac24c;font-weight:700}

/* News and Injuries — compact, responsive and low overhead */
.ff-updates-controls{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:12px 0}
.ff-updates-controls input{flex:1 1 190px;min-width:0}
.ff-updates-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:10px;margin:12px 0}
.ff-update-item{padding:14px;border:1px solid rgba(255,255,255,.13);border-radius:12px;background:rgba(255,255,255,.035)}
.ff-update-head{display:flex;flex-direction:column;gap:4px}.ff-update-head small,.ff-update-item p{opacity:.75}
.ff-update-item p{font-size:.88rem;line-height:1.45;margin:8px 0}.ff-update-item a{font-size:.85rem;color:#e9c76d}
.ff-update-status{font-size:.83rem;font-weight:700;color:#e9c76d;margin-top:7px}

/* Compact Live Scores week picker */
#ff-live-week{width:76px!important;min-width:76px!important;max-width:76px!important;flex:0 0 76px!important;padding:6px 17px 6px 7px!important;box-sizing:border-box;}
.ff-standings-heading .ff-week-label{flex:0 0 auto;white-space:nowrap;}

/* v2.19: streamlined ESPN news/injury controls */
.ff-updates-controls{gap:12px;align-items:center}
.ff-updates-controls .ff-updates-tab{appearance:none!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#a8a8a8!important;font-size:14px;font-weight:700;padding:10px 4px 8px!important;white-space:nowrap;cursor:pointer}
.ff-updates-controls .ff-updates-tab.active{color:#f0c94e!important;border-bottom-color:#f0c94e!important}
#ff-updates-search{border-radius:12px!important;min-height:39px;flex:1 1 175px}
.ff-updates-controls .ff-updates-refresh{appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;padding:0;border:1px solid rgba(255,255,255,.18);border-radius:11px;background:rgba(255,255,255,.05);color:#f0c94e;cursor:pointer}
.ff-updates-refresh:active{opacity:.7}
.ff-updates-list:has(.ff-injury-row){display:flex;flex-direction:column;gap:5px}
.ff-injury-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px 12px;padding:9px 12px;border-radius:9px;font-size:13px;line-height:1.3}
.ff-injury-name{min-width:0;overflow-wrap:anywhere;font-weight:700}
.ff-injury-team{color:#aaa;white-space:nowrap;font-size:12px}
.ff-injury-status{font-weight:700;color:#e9c76d;text-align:right;max-width:135px;overflow-wrap:anywhere}
@media(max-width:480px){.ff-injury-row{grid-template-columns:minmax(0,1fr) auto;gap:3px 10px}.ff-injury-team{grid-column:1;grid-row:2}.ff-injury-status{grid-column:2;grid-row:1/span 2}.ff-updates-controls{gap:8px}.ff-updates-controls .ff-updates-tab{font-size:13px}}

/* v2.21: force two distinct rows regardless of screen width */
.ff-updates-controls{display:flex!important;flex-direction:column!important;align-items:stretch!important;flex-wrap:nowrap!important;gap:10px!important}
.ff-updates-tabs{display:flex;align-items:center;gap:20px;min-width:0}
.ff-updates-filter-row{display:flex;align-items:center;gap:9px;min-width:0;width:100%}
.ff-updates-filter-row #ff-updates-search{flex:1 1 auto!important;width:0!important;min-width:0!important;max-width:none!important;margin:0!important;border-radius:12px!important}
.ff-updates-filter-row #ff-updates-refresh{flex:0 0 40px!important;width:40px!important;height:40px!important;margin:0!important}

/* League 618 gold-underlined section navigation */
#ff-pickem .ff-pickem-switch, #ff-survivor .ff-pickem-switch {display:flex;gap:20px;border-bottom:1px solid #393939;margin:14px 0 12px;flex-wrap:nowrap}
#ff-pickem .ff-pickem-switch button, #ff-survivor .ff-pickem-switch button {position:relative;flex:1;min-width:0;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#b8b8b8!important;padding:10px 5px 13px;font-weight:700}
#ff-pickem .ff-pickem-switch button.primary, #ff-survivor .ff-pickem-switch button.primary {color:#f4c542!important}
#ff-pickem .ff-pickem-switch button.primary::after, #ff-survivor .ff-pickem-switch button.primary::after {content:"";position:absolute;bottom:-1px;left:0;right:0;height:3px;background:#f4c542;border-radius:3px 3px 0 0}

/* Build 147: one continuous LM Tools scroll including Manage Owners. */
#ff-tools,#ff-tools .ff-tools-card,#lmToolsPanel,#lmToolsPanel .dialog-card,
#lmToolsPanel .ff-history-card,#lmToolsPanel .wide-dialog{
 height:auto!important;max-height:none!important;min-height:0;
 overflow-y:visible!important;overscroll-behavior-y:auto!important;
}
#lmToolsPanel{overflow:visible!important;}

/* Build 151: compact Survivor status badges */
.ff-survivor-badge{display:inline-block;padding:4px 7px;border-radius:6px;font-size:10px;font-weight:800;letter-spacing:.03em;white-space:nowrap}
.ff-active-badge{background:#153d30;color:#8df0b6;border:1px solid #2d8a61}
.ff-eliminated{background:#481f2a;color:#ff9fa9;border:1px solid #944153}
.ff-champion{background:#463915;color:#ffdb75;border:1px solid #aa8835}

/* Build 152 compact standings */
.ff-compact-standings{overflow-x:hidden!important;width:100%;box-sizing:border-box;margin-bottom:12px}
.ff-compact-standings table{min-width:0!important;width:100%;table-layout:fixed;font-size:clamp(10px,2.8vw,13px)}
.ff-compact-standings th,.ff-compact-standings td{padding:9px 3px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
.ff-compact-standings th:first-child,.ff-compact-standings td:first-child{padding-left:7px!important}
.ff-compact-standings th:last-child,.ff-compact-standings td:last-child{padding-right:7px!important}
.ff-pickem-compact th:nth-child(1){width:8%}.ff-pickem-compact th:nth-child(2){width:36%}.ff-pickem-compact th:nth-child(3){width:13%}.ff-pickem-compact th:nth-child(4){width:23%}.ff-pickem-compact th:nth-child(5){width:20%}
.ff-pickem-compact td:nth-child(n+3),.ff-pickem-compact th:nth-child(n+3){text-align:center}
.ff-survivor-compact th:nth-child(1){width:38%}.ff-survivor-compact th:nth-child(2){width:34%}.ff-survivor-compact th:nth-child(3){width:12%}.ff-survivor-compact th:nth-child(4){width:16%}
.ff-survivor-compact td:nth-child(3),.ff-survivor-compact th:nth-child(3){text-align:center}
.ff-survivor-compact td:last-child{text-align:center!important;overflow:visible;position:relative}
.ff-survivor-compact .ff-survivor-badge{font-size:clamp(8px,2.4vw,11px);padding:4px 5px;max-width:100%;box-sizing:border-box}
.ff-survivor-history summary{cursor:pointer;list-style:none;color:#eac24c;font-size:17px}
.ff-survivor-history summary::-webkit-details-marker{display:none}
.ff-survivor-history[open] summary{transform:rotate(180deg)}
.ff-survivor-history-pop{position:absolute;right:8px;z-index:5;min-width:165px;max-width:75vw;max-height:220px;overflow-y:auto;background:#202127;color:#eee;border:1px solid #555;border-radius:8px;box-shadow:0 5px 15px #0009;padding:10px;text-align:left;white-space:normal;font-size:12px;line-height:1.9}

/* Build 153 standings improvements */
.ff-pickem-progress{font-weight:700;border-radius:8px;padding:9px 10px!important}
.ff-picks-incomplete{background:rgba(234,177,52,.1);border:1px solid rgba(234,177,52,.4)}
.ff-picks-complete{background:rgba(42,170,110,.1);border:1px solid rgba(42,170,110,.35)}
.ff-survivor-remaining{font-weight:700;color:#eec44c!important;padding:6px 2px}
.ff-pickem-compact th:nth-child(1){width:7%}
.ff-pickem-compact th:nth-child(2){width:31%}
.ff-pickem-compact th:nth-child(3){width:12%}
.ff-pickem-compact th:nth-child(4){width:12%}
.ff-pickem-compact th:nth-child(5){width:21%}
.ff-pickem-compact th:nth-child(6){width:17%}
.ff-pickem-compact td:nth-child(n+3),.ff-pickem-compact th:nth-child(n+3){text-align:center}
.ff-rank-change{font-weight:800}
.ff-rank-up{color:#4cdd98}
.ff-rank-down{color:#f28d8d}

/* Build 156: the owner posters have their own baked-in loading bar; preserve
   the original RGIII animation unchanged when that poster is selected. */
#rgiii-splash.ff-owner-splash{background:#05090d}
#rgiii-splash.ff-owner-splash .rgiii-art{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;aspect-ratio:auto}
#rgiii-splash.ff-owner-splash .rgiii-art .rgiii-poster{object-fit:contain;opacity:1;animation:none}
#rgiii-splash.ff-owner-splash .rgiii-heart-sweep,
#rgiii-splash.ff-owner-splash .rgiii-baked-meter-mask,
#rgiii-splash.ff-owner-splash .rgiii-meter,
#rgiii-splash.ff-owner-splash .rgiii-caption{display:none!important}
/* Team names are always the first centered row; spread and record the second. */
.ff-pickem-match .ff-pickem-team{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;min-width:0;line-height:1.25}
.ff-pickem-team .ff-team-name{display:block;width:100%;font-weight:650;text-align:center;overflow-wrap:break-word}
.ff-pickem-team .ff-team-meta{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:nowrap;white-space:nowrap;font-size:12px;font-weight:400;color:#aeb3bf;margin:0}
.ff-pickem-team.ff-selected .ff-team-meta{color:#f4ca53}
.ff-pickem-team .ff-team-used{font-size:11px;color:#aeb3bf}

/* Build 157: animated sweep aligned over the four owner posters' printed meter.
   The original RGIII artwork and its existing animation remain unchanged. */
#rgiii-splash .ff-owner-progress{display:none}
#rgiii-splash.ff-owner-splash .ff-owner-progress{
 display:block;position:absolute;z-index:4;left:27%;right:19%;top:88.5%;height:2.2%;
 border-radius:20px;overflow:hidden;pointer-events:none;
}
#rgiii-splash.ff-owner-splash .ff-owner-progress span{
 display:block;width:40%;height:100%;border-radius:inherit;
 background:linear-gradient(90deg,transparent,rgba(255,255,225,.12),rgba(255,255,255,.8),rgba(255,255,225,.12),transparent);
 filter:blur(2px);animation:ff-owner-sweep 1.3s linear infinite;
}
@keyframes ff-owner-sweep{from{transform:translateX(-110%)}to{transform:translateX(360%)}}
@media(prefers-reduced-motion:reduce){#rgiii-splash.ff-owner-splash .ff-owner-progress span{animation:none;opacity:0}}

/* Build 158: full-height portrait owner posters and an actual animated fill. */
#rgiii-splash.ff-owner-splash .rgiii-art .rgiii-poster{object-fit:cover!important}
#rgiii-splash.ff-owner-splash .ff-owner-progress{display:block!important;position:absolute!important;top:auto!important;bottom:7.5%!important;left:10%!important;right:10%!important;height:18px!important;background:#09221c!important;border:2px solid #f4c741!important;box-shadow:0 0 12px #000!important;z-index:10!important;border-radius:20px!important;overflow:hidden!important}
#rgiii-splash.ff-owner-splash .ff-owner-progress span{width:0!important;height:100%!important;display:block!important;filter:none!important;background:linear-gradient(90deg,#d89d16,#ffdf49)!important;animation:ff-owner-fill 4.65s ease-out forwards!important}
@keyframes ff-owner-fill{0%{width:0}20%{width:27%}55%{width:58%}85%{width:84%}100%{width:100%}}
@media(prefers-reduced-motion:reduce){#rgiii-splash.ff-owner-splash .ff-owner-progress span{animation:none!important;width:100%!important}}

/* Build 159: real portrait hero artwork, independent frame-driven meter */
#rgiii-splash.ff-owner-splash .rgiii-art .rgiii-poster{object-fit:cover!important}
#rgiii-splash.ff-owner-splash .ff-owner-progress{bottom:4.5%!important;left:9%!important;right:9%!important;height:16px!important}
#rgiii-splash.ff-owner-splash .ff-owner-progress span{animation:none!important;width:100%!important;transform:scaleX(0);transform-origin:left center}

/* Build 160: clean portrait artwork; exactly one native animated progress bar. */
@keyframes ff160-progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
#rgiii-splash.ff-owner-splash .rgiii-art .rgiii-poster{object-fit:contain!important}
#rgiii-splash.ff-owner-splash .ff-owner-progress{bottom:7%!important;left:10%!important;right:10%!important;height:18px!important}
#rgiii-splash.ff-owner-splash .ff-owner-progress span{width:100%!important;transform-origin:left center!important;animation:ff160-progress 4.5s linear forwards!important}

/* Build 161: full-bleed portrait owner posters, one real animated progress bar. */
#rgiii-splash.ff-owner-splash .rgiii-art{width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;overflow:hidden!important}
#rgiii-splash.ff-owner-splash .rgiii-art .rgiii-poster{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:fill!important;opacity:1!important}
#rgiii-splash.ff-owner-splash .ff-owner-progress{position:absolute!important;display:block!important;left:10%!important;right:10%!important;bottom:5.5%!important;top:auto!important;height:17px!important;z-index:50!important;border:2px solid #f7c72b!important;border-radius:20px!important;background:#09211b!important;overflow:hidden!important}
#rgiii-splash.ff-owner-splash .ff-owner-progress span{display:block!important;width:100%!important;height:100%!important;background:linear-gradient(90deg,#d49a10,#ffdb3d)!important;transform-origin:left center!important;animation:ff161-fill 4.5s linear forwards!important}
@keyframes ff161-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* Build 165: Game Day Live pull-to-refresh indicator */
.ff-live-pull-indicator{display:none;text-align:center;padding:10px 8px;color:#f5c842;font-size:13px;font-weight:600}.ff-live-pull-indicator.visible{display:block}.ff-live-pull-indicator.working::before{content:"";display:inline-block;width:13px;height:13px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-3px;margin-right:9px;animation:ff165-spin .8s linear infinite}@keyframes ff165-spin{to{transform:rotate(360deg)}}

/* Build 166: lower the animated bar on the four custom loading screens only. */
#rgiii-splash.ff-owner-splash .ff-owner-progress{bottom:2.5%!important}

/* Build 167: restore readable footer text on only the three faded owner posters.
   The original artwork and native progress bar remain untouched. */
#rgiii-splash.ff-owner-splash .rgiii-art:has(> img.rgiii-poster[src="bear-roast-clean.jpg"])::after,
#rgiii-splash.ff-owner-splash .rgiii-art:has(> img.rgiii-poster[src="bears-graveyard-clean.jpg"])::after,
#rgiii-splash.ff-owner-splash .rgiii-art:has(> img.rgiii-poster[src="solid-sixth-clean.jpg"])::after {
  content:"LEAGUE 618";
  position:absolute;
  z-index:40;
  left:8%;right:8%;bottom:9.2%;
  text-align:center;
  white-space:nowrap;
  font-family:Georgia,"Times New Roman",serif;
  font-weight:900;
  font-style:italic;
  font-size:clamp(23px,8vw,44px);
  letter-spacing:-.04em;
  line-height:1.1;
  color:#f8c848;
  background:linear-gradient(180deg,#fff2a6 0%,#f9d667 33%,#c1840c 82%,#f4bd39 100%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;
  filter:drop-shadow(1px 2px 2px #000) drop-shadow(0 0 5px #000);
  pointer-events:none;
}

/* Build 168: 618FF footer on all four custom posters; original RGIII unaffected. */
#rgiii-splash.ff-owner-splash .rgiii-art:has(> img.rgiii-poster[src="bear-roast-clean.jpg"])::after,
#rgiii-splash.ff-owner-splash .rgiii-art:has(> img.rgiii-poster[src="bears-graveyard-clean.jpg"])::after,
#rgiii-splash.ff-owner-splash .rgiii-art:has(> img.rgiii-poster[src="solid-sixth-clean.jpg"])::after,
#rgiii-splash.ff-owner-splash .rgiii-art:has(> img.rgiii-poster[src="king-of-618-clean.jpg"])::after {
  content:"618FF"!important;
  position:absolute!important;
  left:0!important;right:0!important;bottom:7.1%!important;
  height:7%!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  z-index:40!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:clamp(30px,9vw,50px)!important;font-style:italic!important;font-weight:900!important;
  line-height:1!important;letter-spacing:.01em!important;
  color:#f8c848!important;
  background:linear-gradient(180deg,rgba(0,12,17,.96),#000c12)!important;
  -webkit-text-fill-color:#f8c848!important;
  -webkit-background-clip:border-box!important;background-clip:border-box!important;
  text-shadow:0 2px 2px #000,0 0 8px #8a5808!important;
  filter:none!important;pointer-events:none!important;
}

/* Build 169: cursive Loading label on three custom screens only. */
#rgiii-splash.ff-owner-splash .rgiii-art:has(> img.rgiii-poster[src="bear-roast-clean.jpg"])::after,
#rgiii-splash.ff-owner-splash .rgiii-art:has(> img.rgiii-poster[src="bears-graveyard-clean.jpg"])::after,
#rgiii-splash.ff-owner-splash .rgiii-art:has(> img.rgiii-poster[src="solid-sixth-clean.jpg"])::after {
  content:"Loading"!important;
  font-family:"Snell Roundhand","Brush Script MT","Apple Chancery","URW Chancery L",cursive!important;
  font-style:italic!important;
  font-weight:600!important;
  font-size:clamp(34px,10vw,54px)!important;
  letter-spacing:0!important;
}

/* Build 170: bold uppercase Loading label, matching the app's sans-serif typography.
   Only the three labels introduced in Build 169 are changed. */
#rgiii-splash.ff-owner-splash .rgiii-art:has(> img.rgiii-poster[src="bear-roast-clean.jpg"])::after,
#rgiii-splash.ff-owner-splash .rgiii-art:has(> img.rgiii-poster[src="bears-graveyard-clean.jpg"])::after,
#rgiii-splash.ff-owner-splash .rgiii-art:has(> img.rgiii-poster[src="solid-sixth-clean.jpg"])::after {
  content:"LOADING"!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
  font-style:normal!important;
  font-weight:900!important;
  font-size:clamp(27px,8vw,44px)!important;
  letter-spacing:.12em!important;
}

/* Build 171: approved Option 2 (Sport Block) on only the three custom labels.
   Preserve original posters, the King and RGIII, and all app functionality. */
#rgiii-splash.ff-owner-splash .rgiii-art:has(> img.rgiii-poster[src="bear-roast-clean.jpg"])::after,
#rgiii-splash.ff-owner-splash .rgiii-art:has(> img.rgiii-poster[src="bears-graveyard-clean.jpg"])::after,
#rgiii-splash.ff-owner-splash .rgiii-art:has(> img.rgiii-poster[src="solid-sixth-clean.jpg"])::after {
  content:"LOADING"!important;
  font-family:Rockwell,"Roboto Slab","American Typewriter",Georgia,serif!important;
  font-style:normal!important;
  font-weight:900!important;
  font-size:clamp(29px,8.8vw,49px)!important;
  letter-spacing:.025em!important;
  -webkit-text-stroke:1px #9d5d08!important;
  color:#ffd24c!important;
  -webkit-text-fill-color:#ffd24c!important;
  text-shadow:0 2px 0 #8e4900,0 4px 0 #4b2900,0 5px 6px #000!important;
}

.ff-projected-winner{color:#4ade80;font-weight:800;white-space:nowrap}.ff-projected-legend{font-size:12px;color:#aaa;margin:8px 0}

/* Build 179: compact favorite icon and non-wrapping standings markers. */
#playersListBody .ff-favorite{font-size:16px!important;line-height:1!important;min-width:44px;min-height:44px}
#ff-standings-table .ff-standings-team{display:flex;align-items:center;gap:5px;min-width:0;white-space:nowrap}
#ff-standings-table .ff-standings-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(12px,3.2vw,16px)}
#ff-standings-table .ff-standings-team .ff-projected-winner{flex:0 0 auto}
#ff-standings-table th:nth-child(3){white-space:nowrap}

/* Build 180: controlled horizontal gestures; vertical page scroll stays native. */
#ff-live-games.ff-live-games{overflow-x:hidden;touch-action:pan-y;scroll-snap-type:none;}

/* Build 181: controlled directional card animation; never native smooth scroll. */
#ff-live-games.ff-live-games{scroll-behavior:auto;overflow:hidden;}

/* Build 183: narrow week-only dropdowns. */
.ff-compact-week-source{display:none!important}
.ff-compact-week-trigger{background:#20232c;color:#fff;border:1px solid #625431;border-radius:7px;padding:7px 10px;font:inherit;white-space:nowrap;min-width:54px;}
.ff-week-label .ff-compact-week-trigger{width:76px;flex:0 0 76px;box-sizing:border-box;}
.ff-compact-week-menu{position:fixed;z-index:2147483000;width:112px;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;background:#20232c;border:1px solid #625431;border-radius:12px;padding:4px;box-shadow:0 8px 24px #0009;}
.ff-compact-week-menu[hidden]{display:none!important}
.ff-compact-week-menu button{display:block;position:relative;width:100%;min-height:44px;padding:8px 18px;background:transparent;border:0;border-radius:6px;color:#eee;font-size:16px;text-align:center;}
.ff-compact-week-menu button[aria-selected=true]{color:#ffcc4d;background:#ffcc4d18;font-weight:700;}
.ff-compact-week-menu button[aria-selected=true]::before{content:'✓';position:absolute;left:8px;}

/* Build 187: same compact black/gold treatment as Live Scores Week selector. */
.ff-app-select-trigger{display:inline-flex!important;align-items:center;justify-content:space-between;gap:8px;max-width:100%;min-width:0;min-height:44px;width:100%;text-align:left;background:#20232c!important;border:1px solid #625431!important;color:#fff!important;border-radius:8px!important;padding:9px 12px!important;font-size:15px!important;font-weight:600!important;line-height:1.25!important;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;box-shadow:none!important;}
.ff-app-select-trigger:focus-visible{outline:2px solid #ffcc4d;outline-offset:2px}
.ff-app-select-trigger:disabled{opacity:.5!important}
.ff-week-label .ff-app-select-trigger{width:76px!important;flex:0 0 76px!important;min-height:38px!important;padding:7px 10px!important;white-space:nowrap}
.ff-app-select-menu{background:#17171b!important;border:1px solid #b7963e!important;box-shadow:0 12px 30px #000c!important;}
.ff-app-select-menu button{min-height:44px!important;text-align:left!important;padding:10px 20px!important;color:#f8f8fa!important;white-space:normal;overflow-wrap:anywhere;}
.ff-app-select-menu button[aria-selected=true]{color:#ffcc4d!important;background:#ffcc4d18!important;}

/* Standings W-L: reserve room for double-digit records without wrapping. */
#ff-standings-table th:nth-child(3),
#ff-standings-table td:nth-child(3){white-space:nowrap;min-width:68px;}

/* Build 189: right-side win chance aligns to the outside edge in both matchup views. */
.ff-live-match-probs > .ff-live-winprob:last-child small{min-width:34px;text-align:right;}
.ff-live-score-side-right .ff-live-winprob{align-self:flex-end;}
.ff-live-score-side-right .ff-live-winprob small{min-width:34px;text-align:right;}

/* Right team's win chance: percentage before bar, equal outside padding. */
.ff-live-match-probs > .ff-live-winprob:last-child,
.ff-live-score-side-right .ff-live-winprob{flex-direction:row-reverse;}
.ff-live-match-probs > .ff-live-winprob:last-child small,
.ff-live-score-side-right .ff-live-winprob small{min-width:34px;text-align:left;}
.ff-live-score-side-right .ff-live-winprob{width:100%;}

/* Win chance: symmetrical outer padding; reserve favorite-star space only in the team heading, not the bar row. */
#ff-live-games .ff-live-match{padding-right:12px;}
#ff-live-games .ff-live-match > span:nth-child(3){padding-right:30px;box-sizing:border-box;}

/* Build 189 follow-up: symmetric live-score layout, including score/name rows. */
#ff-live-lineups .ff-live-scoreboard{
  grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);
  column-gap:8px;
  padding:18px 12px;
  box-sizing:border-box;
}
#ff-live-lineups .ff-live-score-side{
  display:grid;
  grid-template-rows:auto minmax(42px,auto) auto;
  align-items:center;
  justify-items:stretch;
  gap:8px;
  min-width:0;
  width:100%;
  text-align:center;
}
#ff-live-lineups .ff-live-score-side > strong,
#ff-live-lineups .ff-live-score-side > span{
  display:block;
  width:100%;
  min-width:0;
  margin:0;
  text-align:center;
  box-sizing:border-box;
}
#ff-live-lineups .ff-live-score-side > strong{line-height:1.2;white-space:nowrap;font-size:clamp(24px,7vw,38px)}
#ff-live-lineups .ff-live-score-side > span{align-self:center;line-height:1.3;overflow-wrap:break-word}
#ff-live-lineups .ff-live-score-side .ff-live-winprob{
  width:100%;max-width:none;min-width:0;margin:0;
  align-self:stretch;box-sizing:border-box;
}
#ff-live-lineups .ff-live-score-side-right .ff-live-winprob{flex-direction:row-reverse}
#ff-live-lineups .ff-live-score-side .ff-live-winprob small{flex:0 0 34px;min-width:34px;text-align:left}
#ff-live-lineups .ff-live-versus{align-self:center;justify-self:center}
/* Top card: keep both team headings and score centered in their respective columns. */
#ff-live-games .ff-live-match > span:nth-child(1),
#ff-live-games .ff-live-match > span:nth-child(3){min-width:0;text-align:center;line-height:1.3}
#ff-live-games .ff-live-match > strong{justify-self:center;text-align:center;font-variant-numeric:tabular-nums}
#ff-live-games .ff-live-match-probs{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;min-width:0}
#ff-live-games .ff-live-match-probs .ff-live-winprob{min-width:0;box-sizing:border-box}
#ff-live-games .ff-live-match-probs .ff-live-winprob small{flex:0 0 34px;min-width:34px}

/* Build 195: one compact, swipeable scoreboard; keep hidden carousel as the selection model. */
#ff-live-games.ff-live-games{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important;margin:0!important;padding:0!important;clip-path:inset(50%);}
#ff-live-lineups .ff-live-scoreboard{grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);column-gap:6px;row-gap:0;padding:8px 10px 12px;margin-top:8px;align-items:center;}
#ff-live-lineups .ff-live-score-side{grid-template-rows:auto minmax(34px,auto) auto;gap:4px;}
#ff-live-lineups .ff-live-score-side > strong{font-size:clamp(25px,7vw,38px);line-height:1.08;}
#ff-live-lineups .ff-live-score-side > span{font-size:13px;line-height:1.2;}
#ff-live-lineups .ff-live-score-side .ff-live-winprob{margin-top:3px;}
#ff-live-lineups .ff-live-versus{align-self:center;}
.ff-live-compact-toolbar{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:30px;margin:0 0 5px;position:relative;color:#d9b552;}
.ff-live-match-count{font-size:12px;font-weight:700;white-space:nowrap;}
.ff-live-match-nav{background:transparent;border:0;color:#e3b341;font-size:24px;line-height:1;min-width:32px;min-height:30px;padding:0;cursor:pointer;}
.ff-live-match-nav:disabled{opacity:.25;}
.ff-live-compact-favorite{position:absolute;right:0;top:0;border:0;background:transparent;color:#b4b4b9;font-size:22px;line-height:1;min-width:30px;min-height:30px;padding:0;cursor:pointer;}
.ff-live-compact-favorite.active{color:#e3b341;}
#ff-live-lineups .ff-live-hint{margin:8px 0;}

/* Build 195 follow-up: compact single scoreboard, with genuinely symmetric probability spacing. */
#ff-live-lineups .ff-live-scoreboard{
 position:relative;
 grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);
 gap:5px 6px;
 padding:14px 10px 10px;
 margin-top:6px;
}
#ff-live-lineups .ff-live-score-side{
 grid-template-rows:auto minmax(32px,auto) auto;
 gap:3px;
}
#ff-live-lineups .ff-live-score-side .ff-live-winprob{
 display:flex;
 align-items:center;
 gap:8px;
 width:100%;
 max-width:none;
 margin-top:4px;
}
#ff-live-lineups .ff-live-score-side .ff-live-winprob-track{flex:1 1 0;min-width:0;}
#ff-live-lineups .ff-live-score-side .ff-live-winprob small{
 flex:0 0 36px;
 width:36px;
 min-width:36px;
 margin:0;
 padding:0;
 text-align:left;
}
#ff-live-lineups .ff-live-score-side-right .ff-live-winprob{flex-direction:row-reverse;}
#ff-live-lineups .ff-live-score-side-right .ff-live-winprob small{text-align:right;}
#ff-live-lineups .ff-live-compact-favorite{
 position:absolute;
 top:3px;
 right:5px;
 width:27px;
 min-width:27px;
 height:27px;
 min-height:27px;
 font-size:21px;
 z-index:2;
}

/* Build 198: status-line favorite, independent of symmetric scoreboard columns. */
#ff-live-scores .ff-live-status-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;}
#ff-live-scores .ff-live-status-row #ff-live-note{flex:1 1 auto;min-width:0;margin-right:0;}
#ff-live-scores .ff-live-header-favorite{flex:0 0 30px;display:flex;align-items:center;justify-content:center;align-self:center;width:30px;height:32px;border:0;background:transparent;color:#b4b4b9;font-size:25px;line-height:1;padding:0;cursor:pointer;}
#ff-live-scores .ff-live-header-favorite.active{color:#e3b341;}
#ff-live-lineups .ff-live-scoreboard{grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);}

/* Build 199: align team headings to the actual probability tracks, not the
   full track-plus-percentage flex rows (36px label + 8px gap). */
#ff-live-lineups .ff-live-score-side:not(.ff-live-score-side-right) > strong,
#ff-live-lineups .ff-live-score-side:not(.ff-live-score-side-right) > span{
  transform:translateX(-22px);
}
#ff-live-lineups .ff-live-score-side-right > strong,
#ff-live-lineups .ff-live-score-side-right > span{
  transform:translateX(22px);
}
/* Match the Pick'em week's compact control instead of the oversized Live selector. */
#ff-live-scores .ff-standings-heading .ff-week-label{gap:6px;}
#ff-live-scores .ff-week-label .ff-app-select-trigger,
#ff-live-scores .ff-week-label .ff-compact-week-trigger{
  width:56px!important;
  min-width:56px!important;
  max-width:56px!important;
  flex:0 0 56px!important;
  min-height:32px!important;
  height:32px!important;
  padding:4px 7px!important;
  font-size:13px!important;
  border-radius:7px!important;
}

/* Build 200: center headings over the visible probability TRACK, not its
   percentage label. Constrain the text within the track width so long team
   names wrap inside the scoreboard rather than overflowing the card. */
#ff-live-lineups .ff-live-score-side > strong,
#ff-live-lineups .ff-live-score-side > span{
  transform:none!important;
  width:calc(100% - 44px);
  max-width:calc(100% - 44px);
  min-width:0;
  box-sizing:border-box;
  overflow-wrap:anywhere;
  word-break:normal;
  justify-self:start;
  text-align:center;
}
#ff-live-lineups .ff-live-score-side-right > strong,
#ff-live-lineups .ff-live-score-side-right > span{
  justify-self:end;
}
/* A subtle increase in bar weight and probability text size. */
#ff-live-lineups .ff-live-score-side .ff-live-winprob-track{
  height:8px;
}
#ff-live-lineups .ff-live-score-side .ff-live-winprob small{
  font-size:12px!important;
  font-weight:650;
  line-height:1.2;
}
