/* Integration-only styles. Original Ops artwork/layout and Market source CSS remain intact. */
#tlt-legacy-league{--ll-ink:#070908;--ll-panel:#111814;--ll-cream:#f4efe6;--ll-line:rgba(244,239,230,.18);--ll-muted:#b0b5ac;--ll-accent:#f26a1b;position:relative;isolation:isolate;box-sizing:border-box;width:100%;max-width:none;margin:0 auto 36px;color:var(--ll-cream);background:var(--ll-ink);font:14px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;border-radius:16px;padding:12px;overflow-wrap:anywhere}
#tlt-legacy-league *,#tlt-legacy-league *:before,#tlt-legacy-league *:after{box-sizing:border-box}
#tlt-legacy-league [hidden]{display:none!important}
#tlt-legacy-league .ll-top{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 18px;background:linear-gradient(150deg,#1a211c,#0c100d);border:1px solid var(--ll-line);border-radius:12px}
#tlt-legacy-league .ll-top>div{min-width:180px;display:grid;gap:3px}
#tlt-legacy-league .ll-top strong{font-size:22px;line-height:1.15;letter-spacing:.015em}
#tlt-legacy-league .ll-top small{color:var(--ll-muted);font-size:11px}
#tlt-legacy-league .ll-eyebrow{font-size:9px;font-weight:850;letter-spacing:.15em;color:#f6b083}
#tlt-legacy-league .ll-top nav{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:7px}
#tlt-legacy-league :is(.ll-top,.ll-draftbar,.ll-modal) :is(button,input,select,textarea),#tlt-ll-market :is(button,input,select,textarea){font:inherit;color:var(--ll-cream);border:1px solid var(--ll-line);border-radius:6px;background:#111713;max-width:100%}
#tlt-legacy-league :is(.ll-top,.ll-draftbar,.ll-modal) button,#tlt-ll-market button{min-height:36px;padding:8px 11px;font-size:10px;font-weight:800;letter-spacing:.035em;cursor:pointer;white-space:normal}
#tlt-legacy-league :is(.ll-top,.ll-draftbar,.ll-modal) button:hover,#tlt-ll-market button:hover{border-color:#f5ad7f;background:#232a23}
#tlt-legacy-league button:focus-visible,#tlt-legacy-league input:focus-visible,#tlt-legacy-league select:focus-visible,#tlt-legacy-league textarea:focus-visible{outline:2px solid #ffb574!important;outline-offset:3px}
#tlt-legacy-league .ll-primary,#tlt-legacy-league .ll-top button.is-active{background:#e8651b!important;border-color:#f68e4f!important;color:#140d06!important}
#tlt-legacy-league button:disabled{opacity:.48;cursor:not-allowed}
#tlt-legacy-league .ll-team-select{display:grid;gap:2px;min-width:155px;margin:0;font-size:8px;letter-spacing:.05em;color:var(--ll-muted)}
#tlt-legacy-league .ll-team-select select{min-height:32px;font-size:11px;padding:4px 6px;max-width:230px}
#tlt-ll-notice{display:none;margin:10px 0;padding:10px 14px;background:#122718;border:1px solid #3d6746;border-radius:8px;font-size:12px}
#tlt-ll-notice.is-visible,#tlt-ll-notice.is-error{display:block}
#tlt-ll-notice.is-error{background:#301a16;border-color:#a76252;color:#ffe0d5}
#tlt-legacy-league .ll-draftbar{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:12px 16px;margin-top:12px;border:1px solid rgba(242,106,27,.4);border-radius:10px;background:linear-gradient(100deg,#21160d,#0b100d)}
#tlt-legacy-league .ll-draftbar>div:first-child{display:grid;gap:3px;min-width:185px}
#tlt-legacy-league .ll-draftbar strong{font-size:16px}
#tlt-legacy-league .ll-draftbar small{font-size:10px;color:var(--ll-muted)}
#tlt-legacy-league .ll-clock{font:900 35px/1.1 ui-monospace,SFMono-Regular,Consolas,monospace;color:#f8e8bd;font-variant-numeric:tabular-nums;white-space:nowrap;min-width:100px;text-align:center}
#tlt-legacy-league .ll-clock.is-urgent{color:#ff9d7d}
#tlt-legacy-league .ll-draft-actions{display:flex;gap:6px;flex:1;flex-wrap:wrap}
#tlt-legacy-league .ll-board-size{display:grid;gap:4px;font-size:8px;letter-spacing:.06em;min-width:112px}
#tlt-legacy-league .ll-board-size select{padding:5px 7px;font-size:11px}
#tlt-legacy-league .ll-source{display:block;flex-basis:100%;margin-top:-9px}
#tlt-legacy-league #tlt-matrix-vfd{width:100%;max-width:none;margin:12px auto 0}
#tlt-matrix-vfd[data-legacy-active=true] .ll-current-pick{outline:2px solid #ffc06a!important;box-shadow:0 0 18px #ef81224d;background:#332312!important}
#tlt-matrix-vfd[data-board-size=compact] [data-role=board-scroll-wrap]{max-height:390px}
#tlt-matrix-vfd[data-board-size=medium] [data-role=board-scroll-wrap]{max-height:650px}
#tlt-matrix-vfd[data-board-size=rows15] [data-role=board-scroll-wrap]{max-height:1220px}
#tlt-matrix-vfd[data-board-size=max] [data-role=board-scroll-wrap]{max-height:78vh}
#tlt-legacy-league .ll-modal-backdrop{position:fixed;inset:0;z-index:1000000;background:rgba(0,0,0,.8);backdrop-filter:blur(5px);display:flex;justify-content:center;align-items:flex-start;padding:5vh 20px;overflow:auto}
#tlt-legacy-league .ll-modal{width:min(880px,100%);max-height:90vh;overflow:auto;overscroll-behavior:contain;color:var(--ll-cream);background:#101610;border:1px solid #645b43;border-radius:15px;box-shadow:0 25px 90px #000;padding:20px}
#tlt-legacy-league .ll-modal>header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--ll-line)}
#tlt-legacy-league .ll-modal h2{font:800 23px/1.2 system-ui,sans-serif;margin:0;color:var(--ll-cream)}
#tlt-legacy-league .ll-modal p{margin:8px 0 15px;line-height:1.6;font-size:13px;color:#d2d6cc}
#tlt-legacy-league .ll-modal form{display:grid;gap:14px}
#tlt-legacy-league .ll-modal fieldset{min-width:0;border:0;padding:0;margin:0}
#tlt-legacy-league .ll-modal label{display:grid;gap:6px;font-size:12px;font-weight:650;color:#d8d9ce;margin:0;min-width:0}
#tlt-legacy-league .ll-modal :is(input,select,textarea){width:100%;min-height:40px;padding:8px 10px;letter-spacing:normal;font-weight:450;font-size:13px;background:#090e0a}
#tlt-legacy-league .ll-modal textarea{min-height:120px;resize:vertical}
#tlt-legacy-league .ll-modal .ll-check{display:flex;align-items:flex-start;gap:10px;line-height:1.5;padding:7px 0}
#tlt-legacy-league .ll-modal .ll-check input{width:19px;height:19px;min-height:0;flex:0 0 19px;margin-top:2px;accent-color:var(--ll-accent)}
#tlt-legacy-league .ll-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:10px 0 16px;align-items:end}
#tlt-legacy-league .ll-wide{grid-column:1/-1}
#tlt-legacy-league .ll-modal details{border:1px solid var(--ll-line);padding:12px;border-radius:8px;margin:10px 0}
#tlt-legacy-league .ll-modal summary{cursor:pointer;font-weight:750;line-height:1.5;font-size:13px}
#tlt-legacy-league .ll-dialog-actions{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--ll-line);padding-top:16px;margin-top:8px}
#tlt-legacy-league .ll-form-error{color:#ffb39c;font-size:13px;white-space:pre-wrap}
#tlt-legacy-league .ll-form-error:empty{display:none}
#tlt-legacy-league .ll-league-list{display:grid;gap:10px;max-height:58vh;overflow:auto}
#tlt-legacy-league .ll-league-list>button{display:grid;gap:6px;text-align:left;padding:14px}
#tlt-legacy-league .ll-league-list strong{font-size:15px}
#tlt-legacy-league .ll-league-list small{font-size:10px;color:var(--ll-muted)}
#tlt-legacy-league .ll-seat{display:flex;align-items:center;gap:8px;padding:12px;border:1px solid var(--ll-line);border-radius:8px;flex-wrap:wrap}
#tlt-legacy-league .ll-seat b{flex:1;min-width:160px}
#tlt-legacy-league .ll-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#tlt-legacy-league .ll-menu-grid button{min-height:65px}
#tlt-legacy-league .ll-history{display:grid;gap:9px;max-height:60vh;overflow:auto}
#tlt-legacy-league .ll-history article{border-bottom:1px solid var(--ll-line);padding:10px 0}
#tlt-legacy-league .ll-history small{color:var(--ll-muted);display:block}
#tlt-legacy-league .ll-history pre,#tlt-legacy-league .ll-modal pre{background:#080c09;padding:12px;white-space:pre-wrap;word-break:break-word;max-height:280px;overflow:auto;color:#cee1ca;font-size:11px}
#tlt-legacy-league .ll-modal code{background:#222b23;color:#ffd2a5;padding:2px 4px;font-size:12px}
#tlt-legacy-league .ll-preview{padding:10px;border:1px solid var(--ll-line);border-radius:8px;font-size:12px;max-height:250px;overflow:auto}
#tlt-legacy-league .ll-muted{font-size:11px;color:var(--ll-muted)}
#tlt-ll-market{margin-top:12px;border-radius:12px;overflow:hidden;width:100%}
#tlt-ll-market .league-app{min-height:650px}
#tlt-ll-market .league-app::before{position:absolute}
#tlt-ll-market .league-header{gap:14px;flex-wrap:wrap}
#tlt-ll-market .ll-market-monogram{font:900 50px/1 Impact,sans-serif;color:#ef8e3c;border:1px solid #875431;padding:5px 14px;border-radius:10px;flex:0 0 auto}
#tlt-ll-market .brand-lockup>div:last-child{display:grid;gap:3px}
#tlt-ll-market .brand-lockup strong{font-family:Impact,sans-serif;font-size:27px;line-height:1.05;letter-spacing:.05em}
#tlt-ll-market .brand-lockup small{font-size:8px;color:var(--muted)}
#tlt-ll-market .league-workspace{grid-template-columns:minmax(210px,.8fr) minmax(440px,2fr) minmax(230px,.85fr);min-height:650px}
#tlt-ll-market .side-rail,#tlt-ll-market .command-center{min-width:0}
#tlt-ll-market .command-titlebar h1{font-size:clamp(25px,2.4vw,40px)}
#tlt-ll-market .position-filters{grid-template-columns:repeat(4,minmax(0,1fr))}
#tlt-ll-market .ll-special-art{display:grid;place-items:center;height:44px;font:bold 23px/1 Impact,sans-serif;background:linear-gradient(140deg,#5a466b,#273944);border-radius:5px}
#tlt-ll-market .position-chip.pos-k{background:#714a86;color:#fff}
#tlt-ll-market .position-chip.pos-dst{background:#54626a;color:#fff}
#tlt-ll-market .waiver-list{max-height:660px;overflow:auto;scrollbar-width:thin}
#tlt-ll-market .waiver-list article{grid-template-columns:35px minmax(0,1fr) 42px 27px;gap:5px}
#tlt-ll-market .waiver-player small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:115px;font-size:8px}
#tlt-ll-market .waiver-value small{font-size:8px;color:var(--muted)}
#tlt-ll-market .waiver-list .queue-toggle{padding:3px;min-width:26px;min-height:28px}
#tlt-ll-market .panel-header h2{font-size:18px}
#tlt-ll-market .panel-controls button{min-height:23px;padding:2px 5px}
#tlt-ll-market .panel-body{min-width:0}
#tlt-ll-market .lineup-list{max-height:670px;overflow:auto;scrollbar-width:thin}
#tlt-ll-market .lineup-list article{grid-template-columns:38px minmax(0,1fr) 40px 26px;gap:6px}
#tlt-ll-market .lineup-list article>div{min-width:0}
#tlt-ll-market .lineup-list article strong{white-space:normal;line-height:1.3;font-size:11px}
#tlt-ll-market .lineup-list article small{font-size:8px}
#tlt-ll-market .lineup-list article button{min-height:24px;padding:2px}
#tlt-ll-market .lineup-footer button{grid-column:1/-1;width:100%}
#tlt-legacy-league .ll-table-wrap{width:100%;overflow:auto}
#tlt-legacy-league .ll-table{border-collapse:collapse;width:100%;font-size:11px;text-align:left;margin:0}
#tlt-legacy-league .ll-table th,#tlt-legacy-league .ll-table td{padding:9px 7px;border-bottom:1px solid var(--ll-line);color:var(--ll-cream);background:none;font-variant-numeric:tabular-nums;line-height:1.4;white-space:nowrap}
#tlt-legacy-league .ll-table th{color:var(--ll-muted);font-size:8px;letter-spacing:.04em}
#tlt-legacy-league .ll-table td:nth-child(2){white-space:normal;min-width:110px}
#tlt-legacy-league .ll-table .is-my-team td{background:rgba(242,106,27,.1)}
#tlt-legacy-league .ll-matchup{display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);gap:8px;align-items:center;padding:13px 8px;border-bottom:1px solid var(--ll-line)}
#tlt-legacy-league .ll-matchup>div{display:grid;gap:9px;text-align:center;min-width:0}
#tlt-legacy-league .ll-matchup>div span{font-weight:650;font-size:11px}
#tlt-legacy-league .ll-matchup strong{font:850 25px/1.1 ui-monospace,monospace;color:#f6d5a7}
#tlt-legacy-league .ll-versus{font-size:8px;color:var(--ll-muted);text-align:center}
#tlt-legacy-league .ll-transactions{display:grid;gap:9px;margin-bottom:12px;max-height:340px;overflow:auto}
#tlt-legacy-league .ll-transactions article{padding:10px 2px;border-bottom:1px solid var(--ll-line);display:grid;gap:5px}
#tlt-legacy-league .ll-transactions strong{font-size:11px;line-height:1.55}
#tlt-legacy-league .ll-transactions small{font-size:9px;color:var(--ll-muted)}
#tlt-legacy-league .ll-inline-actions{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0}
#tlt-legacy-league .ll-score-status strong{font-size:13px;color:#f7c27b}
#tlt-legacy-league .ll-score-status p,#tlt-legacy-league .ll-score-status small{font-size:11px;line-height:1.6;color:var(--ll-muted)}
#tlt-legacy-league .ll-market-page{padding:clamp(16px,3vw,36px);min-height:420px;color:var(--ll-cream)}
#tlt-legacy-league .ll-market-page>header span{font-size:10px;letter-spacing:.15em;color:#eda668}
#tlt-legacy-league .ll-market-page h1{font:800 36px/1.2 Impact,sans-serif;margin:10px 0 22px;color:var(--ll-cream)}
#tlt-legacy-league .ll-market-page h2{font-size:20px;margin:20px 0 12px;color:var(--ll-cream)}
#tlt-legacy-league .ll-market-page p{max-width:950px;font-size:13px;line-height:1.7}
#tlt-legacy-league .ll-week-tabs{display:flex;flex-wrap:wrap;gap:5px}
#tlt-legacy-league .ll-week-tabs .is-active{background:#bd5119;border-color:#ee945b}
#tlt-legacy-league .ll-schedule-grid,#tlt-legacy-league .ll-franchise-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
#tlt-legacy-league .ll-pick-bank{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#tlt-legacy-league .ll-pick-bank article{display:grid;gap:5px;padding:12px;background:#101811;border:1px solid var(--ll-line);border-radius:8px}
#tlt-legacy-league .ll-pick-bank strong{font-size:12px;color:#e6bc7d}
#tlt-legacy-league .ll-pick-bank span{font-size:11px}
#tlt-legacy-league .ll-pick-bank small{font-size:8px;color:var(--ll-muted)}
#tlt-legacy-league .ll-trade-list{display:grid;gap:16px;margin:20px 0}
#tlt-legacy-league .ll-trade-list>article{padding:18px;background:rgba(15,23,17,.9);border:1px solid var(--ll-line);border-radius:10px}
#tlt-legacy-league .ll-trade-list header{display:flex;justify-content:space-between;gap:10px;align-items:center}
#tlt-legacy-league .ll-trade-list header b{font-size:10px;color:#f1bd70}
#tlt-legacy-league .ll-trade-list h2{font-size:17px;margin:0}
#tlt-legacy-league .ll-trade-sides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:16px 0}
#tlt-legacy-league .ll-trade-sides small{font-size:9px;color:#bfbdaf}
#tlt-legacy-league .ll-trade-assets{max-height:360px;overflow:auto;border:1px solid var(--ll-line)!important;padding:12px!important;border-radius:8px}
#tlt-legacy-league .ll-trade-assets legend{font-weight:bold;font-size:12px;padding:5px}
#tlt-legacy-league .ll-trade-assets .ll-check{font-size:11px;font-weight:400}
@media(min-width:1650px){#tlt-ll-market .league-workspace{grid-template-columns:minmax(250px,1fr) minmax(720px,2.7fr) minmax(250px,1fr)}}
@media(max-width:1150px){#tlt-legacy-league .ll-top{align-items:flex-start;flex-direction:column}#tlt-legacy-league .ll-top nav{justify-content:flex-start}#tlt-ll-market .league-workspace{grid-template-columns:minmax(200px,1fr) minmax(350px,2fr)}#tlt-ll-market .roster-rail{grid-column:1/-1}#tlt-ll-market .roster-rail .lineup-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-height:440px}#tlt-ll-market .roster-rail .lineup-list article{border:1px solid var(--ll-line)}}
@media(max-width:740px){#tlt-legacy-league{padding:6px;border-radius:8px}#tlt-legacy-league .ll-top{padding:13px 10px;gap:12px}#tlt-legacy-league .ll-top nav{gap:5px}#tlt-legacy-league .ll-top button{font-size:9px;padding:8px;min-height:38px}#tlt-legacy-league .ll-draftbar{padding:10px;gap:11px}#tlt-legacy-league .ll-draftbar>div:first-child{min-width:150px;flex:1}#tlt-legacy-league .ll-draft-actions{flex-basis:100%}#tlt-legacy-league .ll-source{margin-top:0}#tlt-legacy-league .ll-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#tlt-legacy-league .ll-modal-backdrop{padding:10px}#tlt-legacy-league .ll-modal{max-height:calc(100dvh - 20px);padding:15px;border-radius:10px}#tlt-ll-market .league-workspace{display:flex;flex-direction:column;padding:10px;gap:12px}#tlt-ll-market .command-center{order:0;width:100%}#tlt-ll-market .roster-rail{order:1;width:100%}#tlt-ll-market .waiver-rail{order:2;width:100%}#tlt-ll-market .roster-rail .lineup-list{display:block}#tlt-ll-market .panel-grid{grid-template-columns:minmax(0,1fr)}#tlt-ll-market .command-titlebar{flex-wrap:wrap;gap:10px}#tlt-ll-market .league-header{padding:16px 10px;display:flex}#tlt-ll-market .league-nav{padding:10px;gap:5px;flex-wrap:wrap}#tlt-ll-market .league-nav button{min-height:37px;font-size:8px;padding:8px}#tlt-ll-market .league-identity{display:none}#tlt-ll-market .header-metrics{margin-left:0}#tlt-legacy-league .ll-franchise-grid,#tlt-legacy-league .ll-schedule-grid{grid-template-columns:1fr}#tlt-legacy-league .ll-trade-sides{gap:10px}#tlt-legacy-league .ll-trade-list header{align-items:flex-start;flex-direction:column}#tlt-legacy-league .ll-table th,#tlt-legacy-league .ll-table td{padding:8px 5px}}
@media(prefers-reduced-motion:reduce){#tlt-legacy-league *,#tlt-legacy-league *:before,#tlt-legacy-league *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* The saved league header already exposes setup and status. Keep the original board foremost. */
#tlt-legacy-league #tlt-matrix-vfd[data-legacy-active="true"] .mxvfd-gate.is-unlocked,
#tlt-legacy-league #tlt-matrix-vfd[data-legacy-active="true"] .mxvfd-room-summary { display:none; }
#tlt-legacy-league #tlt-matrix-vfd[data-legacy-active="true"] .mxvfd-topbar { min-height:92px; padding-top:14px; padding-bottom:14px; }
#tlt-legacy-league #tlt-matrix-vfd[data-legacy-active="true"] .mxvfd-brand h1 { font-size:clamp(23px,3vw,38px); line-height:1.1; margin:3px 0; }
#tlt-legacy-league #tlt-matrix-vfd[data-legacy-active="true"] .mxvfd-mark { display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-weight:900;letter-spacing:-2px; }

#tlt-legacy-league #tlt-ll-market .position-filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
#tlt-legacy-league #tlt-ll-market .position-filters button { display:grid;grid-template-columns:1fr;align-items:center;justify-items:center;gap:3px;padding:7px 3px;min-height:86px; }
#tlt-legacy-league #tlt-ll-market .position-filters button img { width:32px;height:44px;object-fit:contain; }
#tlt-legacy-league #tlt-ll-market .position-filters button>span { white-space:nowrap;word-break:normal;font-size:12px; }
#tlt-legacy-league #tlt-ll-market .position-filters button small { display:none; }

#tlt-legacy-league .ll-franchise-heading {display:inline-block;max-width:115px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;font-size:10px;}
#tlt-legacy-league #tlt-matrix-vfd[data-legacy-active="true"] .mxvfd-mark {color:#f9e7c6!important;font-size:24px;letter-spacing:-2px;}
