:root {
  --ink: #17221e;
  --muted: #69736e;
  --line: #dfe4df;
  --paper: #f4f5f1;
  --white: #fff;
  --green: #1d6d4c;
  --green-dark: #123e2e;
  --lime: #cde85b;
  --orange: #e97946;
  --red: #c94b4b;
  --shadow: 0 18px 55px rgba(27, 47, 38, .10);
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; min-height: 100vh; }
button, input, select { font: inherit; }
button { color: inherit; }
button, select, label { -webkit-tap-highlight-color: transparent; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .025; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }
.topbar { min-height: 92px; padding: 14px 3.5vw; background: #10231d; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(400px, 650px) minmax(220px, 1fr); align-items: center; gap: 28px; color: white; position: sticky; top: 0; z-index: 15; box-shadow: 0 7px 30px rgba(0,0,0,.16); }
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; width: max-content; }
.brand-mark { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 14px; color: var(--green-dark); background: var(--lime); transform: rotate(-4deg); font: 800 15px Manrope; letter-spacing: -.5px; }
.brand strong { display: block; font: 800 21px Manrope; letter-spacing: -.7px; }
.brand small { display: block; color: #a9b7b0; margin-top: 1px; font-size: 11px; }
.upload-box { height: 62px; border: 1px dashed #6b8077; border-radius: 12px; padding: 9px 10px 9px 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: .2s ease; background: rgba(255,255,255,.045); }
.upload-box:hover, .upload-box.dragging { border-color: var(--lime); background: rgba(205,232,91,.08); }
.upload-box input { display: none; }
.upload-icon { font-size: 24px; color: var(--lime); }
.upload-copy { flex: 1; min-width: 0; }
.upload-copy strong, .upload-copy small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-copy strong { font-size: 13px; }
.upload-copy small { font-size: 11px; color: #9fb0a8; margin-top: 2px; }
.upload-action { padding: 9px 12px; background: #fff; color: var(--ink); border-radius: 8px; font-weight: 700; font-size: 11px; }
.header-tools { justify-self: end; display: flex; align-items: center; gap: 8px; }.league-control { position: relative; }
.league-pill { border: 1px solid #30463e; background: #182e27; padding: 10px 14px; border-radius: 99px; color: #9baba4; font-size: 11px; white-space: nowrap; cursor: pointer; }
.league-pill span { color: white; font-weight: 700; }
.league-pill b { display: inline-block; color: var(--lime); margin-left: 5px; transition: transform .18s ease; }.league-control.open .league-pill b { transform: rotate(180deg); }
.schemes-button { min-height: 38px; border: 1px solid #40564e; background: transparent; padding: 9px 13px; border-radius: 99px; color: white; font-size: 11px; font-weight: 700; cursor: pointer; }.schemes-button span { color: var(--lime); margin-right: 4px; }.schemes-button:hover { background: #1b332b; border-color: #60766d; }
.league-popover { visibility: hidden; opacity: 0; transform: translateY(-7px); position: absolute; z-index: 40; width: min(720px, calc(100vw - 30px)); right: 0; top: calc(100% + 13px); padding: 17px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 24px 70px rgba(4,22,15,.28); transition: .16s ease; pointer-events: none; }
.league-control.open .league-popover { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.league-popover::before { content: ''; position: absolute; right: 35px; top: -7px; width: 13px; height: 13px; background: white; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.league-head { display: flex; align-items: end; justify-content: space-between; padding: 2px 4px 12px; }.league-head span { color: var(--green); font: 800 9px Manrope; letter-spacing: 1.2px; }.league-head h2 { font-size: 18px; margin: 2px 0 0; }.league-head > small { color: #8a948e; font-size: 9px; }.league-close { display: none; border: 0; background: #edf1ed; width: 40px; height: 40px; border-radius: 12px; font-size: 22px; cursor: pointer; }
.league-teams { max-height: min(70vh, 610px); overflow: auto; padding-right: 3px; }
.league-team { border-top: 1px solid #e8ece8; }.league-team.mine { background: #f6faf5; border-radius: 10px 10px 0 0; }.league-team-main { display: grid; grid-template-columns: 27px minmax(135px, 1fr) 92px 62px 62px 25px; gap: 9px; align-items: center; padding: 8px 7px; }
.league-rank { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; background: #edf1ed; color: #758079; font-size: 9px; font-weight: 800; }.mine .league-rank { background: var(--green); color: white; }
.team-name small { display: block; color: #839089; font-size: 7px; letter-spacing: .6px; }.team-name input, .team-budget input { width: 100%; border: 0; border-bottom: 1px solid transparent; outline: 0; color: var(--ink); background: transparent; font: 700 11px Manrope; padding: 2px 0; }.team-name input:focus, .team-budget input:focus { border-color: var(--green); }.team-budget input { text-align: right; }.team-budget span { display: block; color: #949d98; font-size: 7px; text-align: right; }
.team-stat { text-align: right; }.team-stat strong, .team-stat span { display: block; }.team-stat strong { font: 800 12px Manrope; }.team-stat span { color: #8e9792; font-size: 7px; }.team-stat.remaining strong { color: var(--green); }.team-stat.remaining.negative strong { color: var(--red); }
.roster-toggle { border: 0; width: 24px; height: 24px; background: transparent; color: #7e8982; cursor: pointer; transition: transform .15s; }.roster-toggle.open { transform: rotate(180deg); }
.team-roster { margin: 0 8px 9px 42px; padding: 5px 9px; border-radius: 8px; background: #f3f5f2; max-height: 175px; overflow: auto; }.team-roster > p { color: #8d9691; font-size: 9px; margin: 8px 2px; }.roster-player { display: grid; grid-template-columns: 1fr 72px 24px; gap: 8px; align-items: center; min-height: 35px; border-bottom: 1px solid #e1e6e1; }.roster-player:last-child { border-bottom: 0; }.roster-player strong, .roster-player small { display: block; }.roster-player strong { font-size: 10px; }.roster-player small { color: #8c9690; font-size: 8px; }.roster-player label { display: flex; align-items: center; border: 1px solid #d6ddd7; background: white; border-radius: 6px; padding: 3px 5px; }.roster-player input { min-width: 0; width: 100%; border: 0; outline: 0; text-align: right; font-size: 10px; font-weight: 700; }.roster-player b { color: #909a94; font-size: 7px; }.roster-player button { border: 0; background: transparent; color: var(--red); cursor: pointer; font-size: 15px; }
.league-scrim { position: fixed; z-index: 28; inset: 0; background: rgba(8,26,19,.52); opacity: 0; visibility: hidden; pointer-events: none; transition: .18s ease; }.league-scrim.visible { opacity: 1; visibility: visible; pointer-events: auto; }
body.league-open .topbar { z-index: 45; }
main { max-width: 1660px; margin: 0 auto; padding: 26px 3vw 50px; }
.hidden { display: none !important; }
.empty-state { max-width: 550px; text-align: center; margin: 15vh auto; }
.empty-ball { width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto 20px; background: var(--green-dark); color: var(--lime); border-radius: 28px; font-size: 36px; transform: rotate(-5deg); }
.empty-state h1 { font: 800 38px Manrope; letter-spacing: -1.8px; margin: 0; }.empty-state p { line-height: 1.65; color: var(--muted); margin: 14px 0 24px; }
.btn { border: 0; border-radius: 10px; padding: 12px 18px; font-weight: 700; cursor: pointer; transition: .16s ease; }
.btn:hover { transform: translateY(-1px); }.btn:disabled { cursor: wait; opacity: .6; transform: none; }
.btn.primary { background: var(--green); color: white; box-shadow: 0 7px 16px rgba(29,109,76,.22); }.btn.primary:hover { background: #155e40; }
.btn.secondary { color: var(--green-dark); background: #e4eddf; }.btn.ghost { background: #edf0ec; }
.workspace { display: grid; grid-template-columns: minmax(590px, 1fr) 420px; gap: 24px; align-items: start; }
.players-panel, .targets-panel { background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 28px rgba(24,44,35,.045); }
.players-panel { padding: 25px; min-height: 700px; }.targets-panel { position: sticky; top: 118px; padding: 18px; max-height: calc(100vh - 140px); overflow: auto; }
.section-head, .targets-head, .budget-label, .budget-meta { display: flex; align-items: center; justify-content: space-between; }
.eyebrow { color: var(--green); font: 800 10px Manrope; letter-spacing: 1.4px; }
h1, h2 { font-family: Manrope; letter-spacing: -.8px; }.section-head h1 { font-size: 25px; margin: 5px 0 0; }.section-head h1 span { display: inline-grid; place-items: center; vertical-align: 4px; margin-left: 5px; font: 700 10px DM Sans; background: #edf1ed; color: #78827c; min-width: 24px; height: 20px; border-radius: 99px; }
.view-toggle { display: flex; padding: 3px; background: #f1f3f0; border-radius: 8px; }.view-toggle button { border: 0; background: transparent; color: #8f9893; width: 31px; height: 29px; border-radius: 6px; cursor: pointer; }.view-toggle button.active { background: white; color: var(--green); box-shadow: 0 2px 8px #d9ddd9; }
.filter-wrap { display: flex; align-items: center; gap: 9px; margin: 24px 0 13px; padding: 0 14px; height: 47px; border: 1px solid #d9ded9; border-radius: 11px; background: #fafbf9; }.filter-wrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,109,76,.08); }.filter-wrap > span { font-size: 23px; color: #7c8881; transform: rotate(-15deg); }.filter-wrap input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; color: var(--ink); }.filter-wrap kbd { border: 0; padding: 5px 8px; background: #ebeeeb; border-radius: 5px; font: 10px DM Sans; color: #78817c; }
.role-filter { display: flex; gap: 7px; margin-bottom: 23px; overflow-x: auto; padding-bottom: 2px; }.role-filter button { flex: 0 0 auto; border: 1px solid #dce1dc; background: white; border-radius: 99px; padding: 7px 12px; color: #6c7670; font-size: 11px; font-weight: 700; cursor: pointer; }.role-filter button.active { background: var(--green-dark); color: white; border-color: var(--green-dark); }
.role-section { margin: 0 0 24px; }.role-title { display: flex; align-items: center; gap: 9px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }.role-title i { width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--section-color, var(--green)); }.role-title h3 { font: 800 11px Manrope; letter-spacing: 1px; text-transform: uppercase; margin: 0; }.role-title span { color: #98a09b; font-size: 10px; }
.player-row { display: grid; grid-template-columns: minmax(165px, 1fr) 100px 70px 100px 94px; gap: 8px; min-height: 58px; align-items: center; border-bottom: 1px solid #edf0ed; padding: 7px 4px; cursor: pointer; transition: background .13s ease; }.player-row:hover { background: #f7f9f6; }.player-main { display: flex; align-items: center; gap: 11px; min-width: 0; }.team-badge { display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; border-radius: 10px; color: white; background: var(--green); font-size: 10px; font-weight: 800; letter-spacing: -.2px; }.player-main strong, .player-main small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.player-main strong { font: 700 13px Manrope; }.player-main small { color: #89928d; margin-top: 2px; font-size: 10px; }.role-tags { display: flex; flex-wrap: wrap; gap: 4px; }.role-tag { display: inline-flex; align-items: center; height: 21px; padding: 0 7px; border: 1px solid #d8ded9; background: #f8faf8; border-radius: 5px; color: #59635d; font-size: 9px; font-weight: 700; }
.assign-team { height: 34px; min-width: 0; border: 1px solid #dce1dc; border-radius: 8px; background: white; color: #69736e; padding: 0 6px; font-size: 9px; outline: 0; cursor: pointer; }.assign-team:focus { border-color: var(--green); }
.price-field { height: 34px; display: flex; align-items: center; padding: 0 8px; border: 1px solid #dce1dc; border-radius: 8px; background: white; }.price-field:focus-within { border-color: var(--green); }.price-field input { width: 100%; min-width: 0; border: 0; outline: 0; text-align: right; font-weight: 700; background: transparent; }.price-field span { font-size: 9px; color: #8d9691; margin-left: 4px; }.add-btn, .remove-btn { width: 32px; height: 32px; border-radius: 9px; border: 1px solid #d8dfda; background: white; color: var(--green); cursor: pointer; font-size: 18px; font-weight: 500; }.add-btn:hover { background: var(--green); color: white; border-color: var(--green); }.no-results { padding: 70px 20px; text-align: center; color: var(--muted); }
.priority-picker { display: flex; gap: 4px; }.priority-btn { width: 27px; height: 29px; border: 1px solid transparent; border-radius: 8px; color: white; font-size: 10px; font-weight: 800; cursor: pointer; transition: transform .12s, box-shadow .12s, opacity .12s; opacity: .72; }.priority-btn:hover, .priority-btn.active { opacity: 1; transform: translateY(-1px); }.priority-1 { background: #cf4f4f; }.priority-2 { background: #d6a326; }.priority-3 { background: #4f9a68; }.priority-btn.active { box-shadow: 0 0 0 3px rgba(23,34,30,.10); }.priority-card-1 { box-shadow: inset 3px 0 #cf4f4f, 0 5px 15px rgba(207,79,79,.10); }.priority-card-2 { box-shadow: inset 3px 0 #d6a326, 0 5px 15px rgba(214,163,38,.10); }.priority-card-3 { box-shadow: inset 3px 0 #4f9a68, 0 5px 15px rgba(79,154,104,.10); }
.player-row.is-target { background: linear-gradient(90deg, rgba(214,163,38,.08), transparent 45%); }.player-row.is-mine { background: linear-gradient(90deg, rgba(29,109,76,.13), transparent 50%); }.player-row.is-assigned { background: linear-gradient(90deg, rgba(105,115,110,.10), transparent 45%); }.player-row.is-mine .team-badge { box-shadow: 0 0 0 3px rgba(29,109,76,.18); }.player-row.is-assigned .team-badge { background: #707b75; }.owned-indicator { display: grid; place-items: center; min-height: 30px; padding: 0 7px; border-radius: 8px; background: #e8ece8; color: #647069; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; }.assign-team:disabled { opacity: .72; cursor: default; }
.budget-card { border-radius: 14px; padding: 17px 18px 15px; color: white; background: linear-gradient(135deg, #173e31, #102b22); box-shadow: 0 10px 25px rgba(13,48,35,.18); }.budget-label span { color: #a8c1b6; font: 800 9px Manrope; letter-spacing: 1.2px; }.budget-label small { color: #b9c9c1; font-size: 10px; }.budget-value { margin: 9px 0 10px; }.budget-value strong { font: 800 36px Manrope; letter-spacing: -2px; }.budget-value span { font-size: 12px; color: #a9bdb4; margin-left: 5px; }.budget-track { height: 5px; background: #36584c; border-radius: 8px; overflow: hidden; }.budget-track i { display: block; height: 100%; width: 100%; background: var(--lime); border-radius: inherit; transition: width .3s ease; }.budget-meta { margin-top: 10px; color: #abc0b7; font-size: 9px; }
.targets-head { margin: 21px 4px 4px; }.targets-head h2 { margin: 3px 0 0; font-size: 22px; }.count-badge { background: #edf1ed; min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; font-size: 11px; font-weight: 800; }.target-help { margin: 9px 4px 14px; color: #8b948f; font-size: 10px; }
.target-item { padding: 12px; border: 1px solid #e0e5e0; border-radius: 12px; margin-bottom: 9px; background: #fff; cursor: pointer; }.target-item.won { border-left: 3px solid var(--green); background: #fbfdfb; }.target-item.lost { opacity: .62; border-left: 3px solid var(--red); }.target-top { display: flex; align-items: center; gap: 9px; }.target-top .player-main { flex: 1; }.remove-btn { color: #8b948f; width: 28px; height: 28px; font-size: 16px; }.remove-btn:hover { color: var(--red); border-color: #e8baba; }.target-actions { display: grid; grid-template-columns: 1fr 40px 40px; gap: 6px; margin-top: 10px; }.target-actions .price-field { height: 37px; }.status-btn { border: 1px solid #dce1dc; border-radius: 8px; background: #fafbfa; cursor: pointer; font-size: 16px; }.status-btn.yes:hover, .status-btn.yes.active { color: white; background: var(--green); border-color: var(--green); }.status-btn.no:hover, .status-btn.no.active { color: white; background: var(--red); border-color: var(--red); }.targets-empty { padding: 45px 28px; text-align: center; color: #8c9690; border: 1px dashed #d8ded9; border-radius: 13px; }.targets-empty > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #edf2ed; color: var(--green); font-size: 22px; margin: 0 auto 10px; }.targets-empty strong { display: block; color: #5e6862; font-size: 12px; }.targets-empty p { margin: 6px 0 0; font-size: 10px; line-height: 1.45; }
.target-role-section { margin-top: 17px; }.target-role-section:first-child { margin-top: 0; }.target-role-title { display: flex; align-items: center; gap: 7px; margin: 0 2px 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }.target-role-title span { min-width: 27px; height: 24px; display: grid; place-items: center; padding: 0 7px; border-radius: 7px; background: var(--green-dark); color: white; font: 800 10px Manrope; }.target-role-title small { color: #8c9690; font-size: 9px; }.target-priority { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }.target-priority > span { color: #89938d; font-size: 8px; text-transform: uppercase; letter-spacing: .7px; }.target-priority .priority-btn { width: 25px; height: 25px; }
.auction-stage { display: grid; grid-template-columns: auto minmax(180px, .8fr) 1.5fr 160px auto; align-items: center; gap: 18px; position: relative; margin-bottom: 20px; padding: 18px 52px 18px 20px; background: white; border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow); }.live-dot { font: 800 9px Manrope; color: var(--green); letter-spacing: .8px; text-transform: uppercase; }.live-dot i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px #fdece4; margin-right: 6px; }.auction-player { display: flex; align-items: center; gap: 11px; border-left: 1px solid var(--line); padding-left: 18px; }.auction-player p, .auction-player h2 { margin: 0; }.auction-player p { color: var(--muted); font-size: 10px; }.auction-player h2 { font-size: 19px; margin: 1px 0 3px; }.stage-details { display: flex; gap: 18px; overflow: hidden; }.stage-details .stage-detail:nth-child(n+5) { display: none; }.stage-detail { min-width: 60px; }.stage-detail span, .stage-detail strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.stage-detail span { color: #929b96; font-size: 8px; text-transform: uppercase; letter-spacing: .6px; }.stage-detail strong { font-size: 11px; margin-top: 4px; }.stage-price { color: #78827c; font-size: 9px; text-transform: uppercase; letter-spacing: .5px; }.stage-price > span { display: flex; height: 36px; border: 1px solid #dbe0dc; border-radius: 9px; margin-top: 4px; padding: 0 3px; align-items: center; background: white; }.stage-price input { width: 52px; min-width: 0; border: 0; outline: 0; text-align: center; font-weight: 800; appearance: textfield; }.stage-price input::-webkit-inner-spin-button, .stage-price input::-webkit-outer-spin-button { appearance: none; margin: 0; }.stage-price b { font-size: 9px; color: #88928c; }.stage-price button { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 7px; background: #edf2ed; color: var(--green-dark); font-size: 15px; font-weight: 800; cursor: pointer; }.stage-price button:active { transform: scale(.94); background: #dce9dd; }.close-stage { position: absolute; right: 13px; top: 10px; border: 0; background: transparent; font-size: 22px; color: #9aa29d; cursor: pointer; }
.stage-owner { color: #78827c; font-size: 9px; text-transform: uppercase; letter-spacing: .5px; }.stage-owner select { display: block; width: 145px; height: 36px; margin-top: 4px; padding: 0 9px; border: 1px solid #dbe0dc; border-radius: 9px; outline: 0; background: #eef5ef; color: var(--green-dark); font-size: 10px; font-weight: 700; text-transform: none; cursor: pointer; }.stage-owner select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,109,76,.09); }
.stage-related { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; min-width: 0; }.related-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }.related-head span { color: var(--green); font: 800 8px Manrope; letter-spacing: 1px; }.related-head small { color: #8d9791; font-size: 8px; }.related-list { display: flex; gap: 7px; overflow-x: auto; padding: 1px 1px 5px; }.related-player { flex: 0 0 auto; min-width: 172px; display: grid; grid-template-columns: 25px minmax(85px,1fr) auto; gap: 7px; align-items: center; padding: 7px 9px; border: 1px solid #dfe5df; border-radius: 9px; background: #f9faf8; text-align: left; cursor: pointer; }.related-player:hover { border-color: #a8c1b3; background: #f3f8f3; }.related-player > i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: white; font-style: normal; font-size: 10px; font-weight: 800; }.related-player span { min-width: 0; }.related-player strong, .related-player span small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.related-player strong { font: 700 10px Manrope; }.related-player span small { color: #87918b; margin-top: 2px; font-size: 8px; }.related-player > b { font-size: 10px; white-space: nowrap; }.related-player > b small { color: #8b958f; font-size: 7px; }
.related-player.related-acquired { border: 2px solid #2d855c; background: #eaf6ed; box-shadow: 0 5px 16px rgba(29,109,76,.20); }.related-player.related-acquired:hover { border-color: #176a46; background: #e1f2e5; }.related-player.related-acquired > i { background: var(--green) !important; box-shadow: 0 0 0 3px rgba(29,109,76,.13); }.related-player.related-acquired strong { color: #11583b; }.related-player.related-acquired span small { color: #37745a; font-weight: 700; text-transform: uppercase; }
.tooltip { position: fixed; z-index: 50; width: min(360px, calc(100vw - 30px)); max-height: 360px; overflow: auto; padding: 14px; color: white; background: #142a23; border: 1px solid #2a493e; border-radius: 12px; box-shadow: 0 17px 50px rgba(0,0,0,.28); pointer-events: none; }.tooltip h4 { font: 700 14px Manrope; margin: 0 0 10px; }.tooltip dl { display: grid; grid-template-columns: 1fr 1.5fr; gap: 6px 12px; margin: 0; font-size: 10px; }.tooltip dt { color: #92aaa0; overflow: hidden; text-overflow: ellipsis; }.tooltip dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
dialog { width: min(880px, calc(100vw - 30px)); border: 0; border-radius: 19px; padding: 0; box-shadow: 0 30px 90px rgba(15,32,25,.28); color: var(--ink); }dialog::backdrop { background: rgba(12,30,23,.58); backdrop-filter: blur(3px); }.dialog-head { display: flex; align-items: start; justify-content: space-between; padding: 25px 28px 0; }.dialog-head h2 { margin: 4px 0 0; }.dialog-head button { border: 0; background: transparent; font-size: 25px; cursor: pointer; color: #89938d; }dialog > p { color: var(--muted); padding: 0 28px; font-size: 12px; }.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 15px 28px 25px; }.report-grid section { border: 1px solid var(--line); border-radius: 12px; padding: 13px; min-width: 0; }.report-grid h3 { font: 700 11px Manrope; margin: 0 0 10px; }.report-grid h3 i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }.report-grid h3 .added, .report-grid h3 i.added { background: var(--green); }.report-grid h3 i.removed { background: var(--red); }.report-grid h3 i.changed { background: #d99a2b; }.report-grid h3 span { float: right; color: #929b96; }.report-list { max-height: 220px; overflow: auto; }.report-item { padding: 7px 0; border-top: 1px solid #edf0ed; }.report-item strong, .report-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.report-item strong { font-size: 11px; }.report-item small { color: #929b96; font-size: 9px; margin-top: 2px; }.report-empty { color: #98a19c; font-size: 10px; padding: 10px 0; }.dialog-actions { display: flex; justify-content: end; gap: 9px; padding: 16px 28px; background: #f5f6f3; border-radius: 0 0 19px 19px; }.toast { position: fixed; z-index: 80; left: 50%; bottom: 25px; transform: translateX(-50%); padding: 11px 16px; background: #142b23; color: white; border-radius: 9px; box-shadow: 0 10px 35px rgba(0,0,0,.2); font-size: 12px; }.toast.error { background: #8c3030; }
.schemes-dialog { width: min(1080px, calc(100vw - 30px)); max-height: 90vh; }.schemes-dialog > p { line-height: 1.55; }.schemes-legend { display: flex; align-items: center; gap: 17px; margin: 15px 28px; padding: 11px 13px; border-radius: 10px; background: #f3f5f2; color: #65716a; font-size: 10px; }.schemes-legend span { display: flex; align-items: center; gap: 5px; font-weight: 700; }.schemes-legend i { width: 8px; height: 8px; border-radius: 50%; }.schemes-legend i.plan { background: #c99828; }.schemes-legend i.real { background: var(--green); }.schemes-legend small { margin-left: auto; color: #89938d; }.schemes-summary { margin: 0 28px 18px; }.summary-title { display: flex; justify-content: space-between; margin-bottom: 8px; }.summary-title span { color: var(--green); font: 800 9px Manrope; letter-spacing: 1px; }.summary-title small { color: #8b958f; font-size: 8px; }.constraint-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }.constraint-card { padding: 8px 9px; border: 1px solid #e0e5e0; border-radius: 9px; }.constraint-card strong { display: block; font: 700 10px Manrope; margin-bottom: 5px; }.constraint-card > div { display: flex; gap: 5px; }.constraint-card span { flex: 1; padding: 3px; border-radius: 5px; background: #f7e4e1; color: #b64e45; text-align: center; font-size: 9px; font-weight: 800; }.constraint-card .plan-count { border-bottom: 2px solid #c99828; }.constraint-card .real-count { border-bottom: 2px solid var(--green); }.constraint-card span.ok { color: var(--green); background: #e4f1e7; }.formation-list { padding: 0 28px 23px; }.formation-card { display: grid; grid-template-columns: minmax(190px, .75fr) 1fr 1fr; gap: 10px; align-items: stretch; padding: 9px 0; border-top: 1px solid var(--line); }.formation-name { padding: 9px 7px; }.formation-name strong, .formation-name small { display: block; }.formation-name strong { font: 800 18px Manrope; letter-spacing: -1px; }.formation-name small { color: #8b958f; margin-top: 4px; font-size: 8px; line-height: 1.45; }.coverage-column { padding: 9px 11px; border-radius: 10px; }.plan-coverage { background: #fcf7e9; }.real-coverage { background: #edf6ef; }.coverage-column > div:first-child { display: flex; justify-content: space-between; align-items: center; }.coverage-column > div:first-child span { font: 800 8px Manrope; letter-spacing: .8px; }.coverage-column > div:first-child b { font: 800 15px Manrope; }.deficit-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }.deficit-chips span { padding: 4px 6px; border-radius: 5px; background: rgba(255,255,255,.78); color: #68736d; font-size: 8px; }.deficit-chips b { color: var(--red); }.coverage-complete { display: inline-block; margin-top: 7px; color: var(--green); font-size: 9px; font-weight: 800; }
@media (max-width: 1200px) { .player-row { grid-template-columns: minmax(150px, 1fr) 70px 95px 94px; }.player-row > .role-tags { display: none; } }
@media (max-width: 1050px) { .topbar { grid-template-columns: 190px 1fr auto; gap: 14px; }.league-pill { padding-left: 11px; padding-right: 11px; }.league-pill span { font-size: 10px; }.schemes-button { padding-left: 10px; padding-right: 10px; }.workspace { grid-template-columns: minmax(480px, 1fr) 350px; }.auction-stage { grid-template-columns: auto 1fr 120px auto; }.stage-details { display: none; } }
@media (max-width: 800px) { .topbar { position: relative; grid-template-columns: 1fr auto; gap: 12px; padding: 15px; }.upload-box { min-width: 0; grid-column: 1 / -1; grid-row: 2; }.league-popover { position: fixed; top: 75px; right: 10px; }.workspace { display: flex; flex-direction: column-reverse; }.players-panel, .targets-panel { width: 100%; }.targets-panel { position: relative; top: auto; max-height: none; }.auction-stage { grid-template-columns: 1fr 1fr; }.live-dot { grid-column: 1 / -1; }.auction-player { border: 0; padding: 0; }.auction-stage .btn { width: 100%; }.player-row { grid-template-columns: minmax(140px, 1fr) 65px 88px 35px; gap: 6px; }.role-tags { display: none; }.report-grid { grid-template-columns: 1fr; }.report-list { max-height: 120px; } }
@media (max-width: 480px) { main { padding: 14px 10px 35px; }.players-panel { padding: 16px 12px; }.upload-action { display: none; }.upload-copy small { max-width: 220px; }.player-row { grid-template-columns: minmax(115px, 1fr) 54px 74px 32px; }.player-row > .role-tags { display: none; }.assign-team { font-size: 8px; padding: 0 2px; }.section-head .view-toggle { display: none; }.filter-wrap kbd { display: none; }.auction-stage { grid-template-columns: 1fr; }.auction-stage .stage-price { width: 120px; }.league-popover { width: calc(100vw - 20px); }.league-team-main { grid-template-columns: 23px minmax(100px, 1fr) 65px 48px 22px; }.team-budget { display: none; }.team-stat:nth-of-type(1) { display: none; }.team-roster { margin-left: 32px; }.report-grid, .dialog-head, dialog > p, .dialog-actions { padding-left: 18px; padding-right: 18px; } }

.mobile-nav { display: none; }

@media (max-width: 800px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  body.league-open { overflow: hidden; }
  .topbar { position: sticky; grid-template-columns: minmax(0,1fr) auto; gap: 10px; min-height: 0; padding: 10px 12px; }
  .brand { gap: 9px; }.brand-mark { width: 39px; height: 39px; border-radius: 11px; font-size: 12px; }.brand strong { font-size: 18px; }.brand small { display: none; }
  .upload-box { min-width: 0; grid-column: 1 / -1; grid-row: 2; height: 49px; padding: 7px 10px 7px 13px; }.upload-icon { font-size: 20px; }.upload-copy strong { font-size: 12px; }.upload-copy small { font-size: 9px; }.upload-action { padding: 8px 10px; }
  .header-tools { gap: 5px; }.league-control { position: static; }.league-pill { min-height: 44px; padding: 8px 10px; }.league-pill span { font-size: 9px; }.league-pill b { font-size: 14px; }.schemes-button { min-height: 44px; padding: 8px 10px; font-size: 9px; }
  .league-popover { position: fixed; z-index: 42; inset: auto 0 0 0; top: auto; right: 0; width: 100%; max-height: 88dvh; padding: 18px 12px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; transform: translateY(105%); opacity: 1; visibility: hidden; transition: transform .24s ease, visibility .24s; }
  .league-control.open .league-popover { transform: translateY(0); visibility: visible; }.league-popover::before { display: none; }.league-head { align-items: center; padding: 0 5px 14px; }.league-head > small { display: none; }.league-head h2 { font-size: 21px; }.league-close { display: grid; place-items: center; }.league-teams { max-height: calc(88dvh - 85px); padding-bottom: 15px; }
  .league-team { padding: 5px 0; }.league-team-main { grid-template-columns: 32px minmax(100px,1fr) 75px 66px 44px; grid-template-areas: 'rank name budget remaining toggle' 'rank name players remaining toggle'; gap: 4px 8px; min-height: 62px; padding: 7px 5px; }.league-rank { grid-area: rank; width: 30px; height: 30px; }.team-name { grid-area: name; }.team-name small { font-size: 8px; }.team-name input { min-height: 27px; font-size: 13px; }.team-budget { display: block; grid-area: budget; }.team-budget input { min-height: 27px; font-size: 12px; }.team-stat { display: block; grid-area: players; }.team-stat.remaining { grid-area: remaining; }.team-stat strong { font-size: 14px; }.team-stat span { font-size: 8px; }.roster-toggle { grid-area: toggle; width: 44px; height: 44px; font-size: 18px; }.team-roster { margin: 2px 5px 8px 43px; max-height: 230px; padding: 6px 10px; }.roster-player { min-height: 48px; grid-template-columns: 1fr 82px 40px; }.roster-player strong { font-size: 12px; }.roster-player small { font-size: 9px; }.roster-player label { min-height: 38px; }.roster-player input { font-size: 16px; }.roster-player button { width: 40px; height: 40px; font-size: 20px; }
  main { padding: 14px 10px 25px; }.workspace { display: block; }.players-panel, .targets-panel { width: 100%; border-radius: 15px; box-shadow: none; }.players-panel { min-height: 0; padding: 17px 12px; }.targets-panel { position: static; max-height: none; padding: 13px; }
  body[data-mobile-tab="players"] .targets-panel { display: none; } body[data-mobile-tab="targets"] .players-panel { display: none; }
  .section-head h1 { font-size: 21px; }.section-head .view-toggle { display: none; }.filter-wrap { position: sticky; top: 118px; z-index: 8; margin: 17px 0 10px; height: 50px; background: white; box-shadow: 0 5px 14px rgba(20,40,31,.07); }.filter-wrap input { font-size: 16px; }.filter-wrap kbd { display: none; }
  .role-filter { margin: 0 -2px 18px; padding: 4px 2px 8px; scroll-snap-type: x proximity; }.role-filter button { min-width: 48px; min-height: 42px; padding: 8px 15px; font-size: 12px; scroll-snap-align: start; }
  .role-section { margin-bottom: 20px; }.role-title { position: sticky; top: 177px; z-index: 6; padding: 9px 4px; background: white; }
  .player-row { grid-template-columns: minmax(0,1fr) 104px; grid-template-areas: 'main priority' 'roles priority' 'price assign'; gap: 7px 10px; min-height: 116px; padding: 11px 5px; cursor: default; }.player-row > .player-main { grid-area: main; }.player-row > .role-tags { grid-area: roles; display: flex; }.player-row > .price-field { grid-area: price; }.player-row > .assign-team { grid-area: assign; }.player-row > .add-priority, .player-row > .owned-indicator { grid-area: priority; align-self: start; }.player-main strong { font-size: 14px; }.player-main small { font-size: 11px; }.team-badge { width: 40px; height: 40px; }.role-tag { min-height: 24px; font-size: 10px; }.price-field, .assign-team { height: 44px; }.price-field input, .assign-team { font-size: 16px; }.assign-team { padding: 0 9px; }.add-priority { gap: 5px; }.add-priority .priority-btn { width: 31px; height: 46px; border-radius: 11px; font-size: 13px; opacity: 1; }.player-row > .owned-indicator { min-height: 46px; font-size: 9px; }
  .budget-card { padding: 18px; }.budget-value strong { font-size: 42px; }.targets-head { margin-top: 19px; }.target-help { font-size: 11px; }.target-role-title { position: sticky; top: 118px; z-index: 5; padding: 8px 3px; background: white; }.target-item { padding: 13px; margin-bottom: 11px; }.remove-btn { width: 42px; height: 42px; font-size: 22px; }.target-priority .priority-btn { width: 38px; height: 38px; }.target-actions { grid-template-columns: 1fr 48px 48px; gap: 8px; }.target-actions .price-field, .status-btn { height: 48px; }.status-btn { font-size: 20px; }
  .auction-stage { position: fixed; z-index: 35; inset: auto 8px calc(77px + env(safe-area-inset-bottom)) 8px; display: grid; grid-template-columns: minmax(0,1fr) 140px; gap: 13px; max-height: calc(100dvh - 105px); overflow: auto; margin: 0; padding: 20px 17px 17px; border-radius: 20px; box-shadow: 0 20px 80px rgba(8,27,19,.35); }.auction-stage.hidden { display: none; }.live-dot { grid-column: 1 / -1; }.auction-player { border: 0; padding: 0; }.stage-details { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2,1fr); padding: 10px; background: #f4f6f3; border-radius: 10px; overflow: visible; }.stage-details .stage-detail:nth-child(n) { display: block; }.stage-detail strong { font-size: 10px; }.auction-stage .stage-price { width: auto; }.stage-price > span { height: 48px; }.stage-price input { width: 45px; font-size: 17px; }.stage-price button { width: 40px; height: 40px; border-radius: 10px; font-size: 20px; }.stage-owner select { width: 100%; height: 48px; font-size: 12px; }.close-stage { width: 44px; height: 44px; right: 7px; top: 5px; }.stage-related { padding-top: 13px; }.related-player { min-width: 205px; min-height: 58px; }.related-player strong { font-size: 12px; }.related-player span small { font-size: 9px; }
  .tooltip { display: none !important; }
  dialog { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }.report-grid { grid-template-columns: 1fr; padding: 10px 18px 18px; }.report-list { max-height: 110px; }.dialog-head, dialog > p, .dialog-actions { padding-left: 18px; padding-right: 18px; }.dialog-actions { position: sticky; bottom: 0; }.dialog-actions .btn { min-height: 48px; flex: 1; }.schemes-dialog { max-height: 94dvh; overflow: auto; }.schemes-dialog-head { position: sticky; top: 0; z-index: 3; padding-top: 18px; padding-bottom: 10px; background: white; }.schemes-dialog-head h2 { font-size: 20px; }.schemes-legend { margin: 12px 16px; flex-wrap: wrap; gap: 8px 14px; }.schemes-legend small { width: 100%; margin: 0; }.schemes-summary { margin: 0 16px 16px; }.constraint-grid { grid-template-columns: repeat(2, 1fr); }.formation-list { padding: 0 16px 18px; }.formation-card { grid-template-columns: 1fr 1fr; gap: 7px; padding: 12px 0; }.formation-name { grid-column: 1 / -1; padding: 3px 2px; }.formation-name strong { font-size: 20px; }.formation-name small { font-size: 9px; }.coverage-column { padding: 10px; min-width: 0; }.deficit-chips span { font-size: 9px; }.schemes-dialog .dialog-actions { z-index: 4; }
  .mobile-nav { display: flex; position: fixed; z-index: 30; left: 8px; right: 8px; bottom: calc(7px + env(safe-area-inset-bottom)); height: 64px; padding: 5px; border: 1px solid #dce2dd; border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 10px 35px rgba(12,36,26,.2); backdrop-filter: blur(14px); }.mobile-nav button { position: relative; flex: 1; display: grid; place-items: center; align-content: center; gap: 1px; min-width: 0; border: 0; border-radius: 13px; background: transparent; color: #7a857f; font-size: 9px; font-weight: 700; }.mobile-nav button > span { font-size: 20px; line-height: 1; }.mobile-nav button.active { color: white; background: var(--green-dark); }.mobile-nav b { position: absolute; top: 4px; left: calc(50% + 10px); min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border-radius: 9px; background: var(--orange); color: white; font-size: 8px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); width: calc(100vw - 30px); text-align: center; }
}

@media (max-width: 430px) {
  .upload-copy small { max-width: 185px; }.upload-action { display: none; }.empty-state { margin: 9vh auto; }.empty-state h1 { font-size: 31px; }.empty-state p { font-size: 14px; }
  .league-team-main { grid-template-columns: 30px minmax(88px,1fr) 64px 58px 42px; }.team-budget span { font-size: 6px; }.team-stat span { font-size: 7px; }
  .league-pill span { font-size: 0; }.league-pill span::after { content: '10'; font-size: 11px; }.schemes-button span { margin: 0; }.schemes-button { font-size: 0; }.schemes-button span::after { content: ' Schemi'; font-size: 9px; color: white; }
}
