/* Treble setup / calendar. Matches keep their native competition stylesheet. */
body.treble-hub-active { background:#11182b; color:#f4f6ff; }
body.treble-hub-active #appShell { display:none!important; }
html body :is(#achievementsScreen,#retroAchievementsModal,#achievementUnlockModal,#achievementUnlockBanner)[data-achievement-theme="treble-2026-27"] {
 --popup-blue-950:#11182b!important; --popup-blue-850:#1b263c!important; --popup-blue-line:#53647e!important; --popup-blue-text:#f4f6ff!important; --popup-blue-muted:#c2ccde!important; --popup-blue-accent:#ead398!important; --popup-blue-accent-bright:#f8e6b9!important;
 --achievement-accent:#ead398!important; --achievement-accent-text:#17213a!important; --achievement-copy:#f4f6ff!important; --achievement-muted:#c2ccde!important;
 --achievement-surface:#1b263c!important; --achievement-surface-deep:#11182b!important; --achievement-tab-surface:#25334d!important;
 --achievement-card:#25334d!important; --achievement-card-complete:#3c4439!important; --achievement-shadow:#080d19a0!important; --achievement-points:#ead398!important;
 background:linear-gradient(135deg,#24344b,#11182b)!important; color:#f4f6ff!important; border-color:#ead398!important;
}
html body #achievementUnlockModal[data-achievement-theme="treble-2026-27"],html body #achievementUnlockBanner[data-achievement-theme="treble-2026-27"] { background:#1b263c; color:#f4f6ff; border-color:#ead398; }
html body [data-achievement-theme="treble-2026-27"] :is(.achievement-unlock-kicker,.achievement-unlock-banner small) { display:none; }
#trebleScreen { min-height:100vh; color:#f4f6ff; background:radial-gradient(ellipse at 50% 0,#26354b,#11182b 65%); font-family:Manrope,Arial,sans-serif; }
#trebleScreen[hidden] { display:none; }
.treble-shell { max-width:1240px; margin:auto; padding:32px 28px 64px; }
.treble-heading { display:grid; grid-template-columns:1fr 2fr 1fr; align-items:start; gap:20px; margin-bottom:32px; }
.treble-heading>div { text-align:center; }
.treble-heading h1 { margin:14px 0 8px; font-size:clamp(26px,3vw,40px); letter-spacing:-1.2px; font-weight:850; }
.treble-heading p { color:#c2ccde; margin:0; font-size:14px; }
.treble-heading>a { justify-self:start; color:#e6edff; white-space:nowrap; font-size:13px; }
.treble-heading>a { text-decoration:none; border:1px solid #ffffff30; border-radius:9px; padding:12px 15px; }
.treble-heading>button { justify-self:end; }
.treble-heading-actions { display:flex; justify-content:flex-end; gap:8px; }
.treble-confirm { max-width:460px; width:calc(100% - 32px); border:1px solid #53647e; border-radius:16px; padding:26px; background:#1b263c; color:#f4f6ff; font-family:Manrope,Arial,sans-serif; }
.treble-confirm h2 { margin:0 0 12px; font-size:22px; }.treble-confirm p { font-size:14px; line-height:1.6; color:#c2ccde; }.treble-confirm>div { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; }.treble-confirm::backdrop { background:#060c1bd0; backdrop-filter:blur(4px); }
.treble-logos { display:flex; justify-content:center; gap:25px; height:65px; }
.treble-logos img { width:55px; height:65px; object-fit:contain; }
.treble-panel { border:1px solid #ffffff19; border-radius:18px; background:#1b263c; padding:26px; margin-bottom:20px; }
.treble-panel h2 { margin:0 0 12px; color:#fff; font-size:20px; letter-spacing:-.4px; }
.treble-panel p { color:#c2ccde; font-size:13px; line-height:1.7; }
.treble-settings { display:flex; gap:28px; flex-wrap:wrap; padding:12px 0 24px; }
.treble-setting>span { display:block; font-size:12px; font-weight:750; margin-bottom:8px; }
.treble-setting button { font:700 12px Manrope,Arial,sans-serif!important; padding:9px 15px; color:#cfdaed; }
.treble-setting button.active { background:#ead398; color:#182039; }
.treble-search { display:block; font-size:12px; color:#d3dcef; }
.treble-search input { display:block; width:100%; margin:8px 0 16px; padding:13px 16px; border-radius:9px; border:1px solid #ffffff28; background:#111b30; color:white; font:inherit; }
.treble-club-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.treble-club { display:flex; align-items:center; gap:10px; text-align:left; padding:12px; border:1px solid #ffffff1c; border-radius:10px; background:#24314a; color:#f5f7ff; cursor:pointer; font:700 12px Manrope,Arial,sans-serif; }
.treble-club:hover { background:#2e3e58; }
.treble-club.selected { border-color:#ead398; background:#34404d; box-shadow:inset 0 0 0 1px #ead398; }
.treble-club small { margin-left:auto; color:#c9d6e9; }
.treble-badge { width:36px; height:36px; object-fit:contain; flex:0 0 auto; }
.treble-setup-actions { display:flex; align-items:center; gap:12px; padding-top:24px; flex-wrap:wrap; }
.treble-setup-actions>span { margin-right:auto; font-size:14px; font-weight:750; }
.treble-primary,.treble-secondary { cursor:pointer; border:1px solid transparent; border-radius:10px; padding:13px 20px; font:800 13px Manrope,Arial,sans-serif; background:#ead398; color:#17213a; }
.treble-primary:disabled { opacity:.45; cursor:default; }
.treble-secondary { border-color:#ffffff30; background:#ffffff0c; color:#f3f6ff; }
.treble-sources { font-size:12px; color:#c2ccde; line-height:1.7; padding:12px 4px; }
.treble-sources summary { cursor:pointer; }
.treble-sources a { color:#f1d89d; }
.treble-season-heading { display:flex; align-items:center; gap:12px; margin:24px 0; }
.treble-season-heading>span { margin-left:auto; color:#c2ccde; font-size:13px; }
.treble-tabs { display:flex; gap:8px; margin-bottom:20px; overflow-x:auto; }
.treble-tabs button { white-space:nowrap; background:transparent; color:#c2ccde; border:0; padding:12px 16px; font:750 13px Manrope,Arial,sans-serif; border-radius:9px; cursor:pointer; }
.treble-tabs button.active { background:#ead398; color:#17213a; }
.treble-trophies { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:20px 0; }
.treble-trophy { display:flex; align-items:center; gap:14px; padding:22px; border:1px solid #ffffff24; border-radius:14px; background:#1b263c; }
.treble-trophy img { width:40px; height:52px; object-fit:contain; }
.treble-trophy strong,.treble-trophy span { display:block; }
.treble-trophy strong { font-size:14px; }.treble-trophy span { font-size:12px; margin-top:6px; color:#c2ccde; }
.treble-trophy.won { border-color:#ead398; }.treble-trophy b { margin-left:auto; color:#ead398; }
.treble-next { text-align:center; padding:32px; border-top:3px solid #dab8eb; }
.treble-next.carabao-cup { border-top-color:#21d9a2; }.treble-next.fa-cup { border-top-color:#ed537b; }
.treble-next-teams { display:flex; justify-content:center; align-items:center; gap:24px; margin:28px 0; font-size:21px; font-weight:850; }
.treble-next-teams>span { display:flex; align-items:center; gap:12px; }.treble-next-teams img { width:54px; height:54px; }
.treble-next-teams>b { color:#b3c1d8; font-size:15px; }
.treble-fixture { display:grid; grid-template-columns:140px 170px 1fr auto; align-items:center; gap:14px; padding:16px 0; border-bottom:1px solid #ffffff16; font-size:13px; }
.treble-fixture:last-child { border:0; }.treble-fixture time { color:#d0daed; font-size:12px; }
.treble-fixture-competition { font-weight:800; }.treble-fixture small { display:block; color:#c0cde1; font-size:11px; margin-top:4px; }
.treble-opponent { display:flex; align-items:center; gap:10px; font-weight:750; }.treble-opponent small { display:inline; }
.treble-rearranged { grid-column:1/-1; }.treble-fixture.current>strong { color:#ead398; }
.treble-table-wrap { overflow-x:auto; }.treble-table { width:100%; border-collapse:collapse; font-size:12px; }
.treble-table th,.treble-table td { padding:10px 7px; border-bottom:1px solid #ffffff18; text-align:center; color:inherit; }
.treble-table thead { color:#d1dbed; }.treble-table th:nth-child(2) { text-align:left; }
.treble-table tbody th { display:flex; gap:8px; align-items:center; font-weight:650; }
.treble-table .treble-badge { width:24px; height:24px; }.treble-table tr.managed { background:#ffffff12; font-weight:800; }
#trebleMatchTable { grid-area:table; min-width:0; padding-bottom:12px; }
#trebleMatchTable .treble-table { font-size:10px; }#trebleMatchTable .treble-table th,#trebleMatchTable .treble-table td { padding:7px 4px; }
#trebleMatchTable .text-button { display:block; margin:12px auto 0; color:inherit; font-size:12px; }
.treble-history { display:flex; align-items:center; gap:12px; padding:12px 0; font-size:13px; }.treble-history span { margin-left:auto; color:#d4def0; }
.treble-cup-tie { display:grid; grid-template-columns:1fr auto 1fr; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid #ffffff18; font-size:12px; }
.treble-cup-tie>span { display:flex; align-items:center; gap:8px; }.treble-cup-tie>span:last-child { justify-content:flex-end; }.treble-cup-tie .treble-badge { width:28px; height:28px; }
.treble-panel details>summary { padding:12px 0; font-size:14px; cursor:pointer; }
body.treble-match-active #roundNav,body.treble-match-active #roundBoard,body.treble-match-active #simulateRoundButton { display:none!important; }
body.treble-match-active .treble-aggregate-note { position:absolute; top:50px; left:20%; right:20%; margin:0; text-align:center; color:inherit; opacity:.9; font-size:12px; font-weight:700; pointer-events:none; }
body.treble-match-active .golden-boot-player small,body.treble-match-active .golden-boot-rank { color:#f1e9f2!important; }
.competition-folder-treble { background:linear-gradient(145deg,#243450,#344766)!important; }
.competition-folder-treble:disabled { cursor:default; opacity:.65; transform:none; }
.competition-folder-treble .competition-folder-art { display:flex; align-items:center; justify-content:center; gap:8px; }
.competition-folder-treble .competition-folder-art img { width:27%; height:95px; object-fit:contain; }
@media(max-width:850px) {
 .treble-club-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }.treble-heading { grid-template-columns:1fr auto; }.treble-heading>div { grid-column:1/-1; grid-row:2; }
 .treble-trophies { gap:8px; }.treble-trophy { padding:14px; gap:8px; }.treble-trophy img { width:28px; height:40px; }
 .treble-fixture { grid-template-columns:115px 140px 1fr auto; gap:8px; }
}
@media(max-width:600px) {
 .treble-shell { padding:20px 14px 40px; }.treble-panel { padding:18px 14px; }.treble-club-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.treble-club { padding:10px 8px; gap:7px; font-size:11px; }
 .treble-settings { gap:18px; }.treble-setting { width:100%; }.treble-setting .segmented { display:flex; }.treble-setting button { flex:1; }.treble-club .treble-badge { width:30px; height:30px; }
 .treble-setup-actions { align-items:stretch; }.treble-setup-actions>span { width:100%; }.treble-setup-actions>button { flex:1; }
 .treble-trophies { grid-template-columns:1fr; }.treble-trophy { padding:12px 16px; }.treble-trophy div { display:flex; align-items:center; justify-content:space-between; gap:10px; flex:1; }.treble-trophy span { margin:0; }
 .treble-next-teams { font-size:15px; gap:10px; }.treble-next-teams>span { flex-direction:column; gap:7px; flex:1; }.treble-next-teams img { width:44px; height:44px; }
 .treble-fixture { grid-template-columns:1fr auto; gap:8px; }.treble-fixture-competition { text-align:right; }.treble-fixture time { font-size:11px; }.treble-fixture>strong { text-align:right; }
 .treble-season-heading { flex-wrap:wrap; }.treble-season-heading>span { margin:0; width:100%; }.treble-cup-tie { font-size:10px; gap:6px; }.treble-cup-tie .treble-badge { width:22px; height:22px; }
}

/* Season workspace follows the shared league shell; fixtures carry their competition theme. */
#trebleScreen .treble-topbar {
 position:relative; display:flex; align-items:center; gap:9px; min-height:72px; padding:0 clamp(14px,3vw,44px);
 border-bottom:1px solid #ffffff24; background:#243450; color:#f4f6ff;
}
#trebleScreen .treble-topbar :is(.pl-season-site-brand,.pl-season-header-left,.pl-season-utility-actions) { position:static; transform:none; margin:0; }
#trebleScreen .treble-topbar .pl-season-header-left { display:flex; gap:7px; }
#trebleScreen .treble-topbar .pl-season-utility-actions { display:flex; gap:7px; margin-left:auto; }
#trebleScreen .treble-topbar .brand-mark { display:grid; align-content:center; justify-items:center; width:44px; height:48px; padding:0; border:1px solid #e7edf9; border-radius:12px; background:linear-gradient(#f5f7fe,#bfd0ea); color:#243450; box-shadow:0 2px 0 #13203b; }
#trebleScreen .treble-topbar .brand-mark-number { font-size:16px; line-height:1; }
#trebleScreen .treble-topbar .brand-mark-label { margin-top:3px; font-size:6px; letter-spacing:.04em; }
#trebleScreen .treble-topbar .utility-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:42px; min-width:42px; height:42px; min-height:42px; padding:0; border:1px solid #7085a466; border-radius:50%; background:#1b2942; color:#e6edff; font:800 13px Manrope,Arial,sans-serif; }
#trebleScreen .treble-topbar .utility-button>span:last-child { display:none; }
#trebleScreen .treble-topbar .utility-button>span { color:inherit; }
#trebleScreen .treble-topbar .main-account-button { width:auto; padding-inline:14px; border-radius:24px; }
#trebleScreen .treble-topbar .main-account-button>span:last-child { display:inline; }
#trebleScreen .treble-topbar .news-icon { display:block; }
#trebleScreen .treble-topbar .account-avatar-icon svg { stroke:currentColor; }
#trebleScreen .treble-topbar [data-treble-action=restart] { font-size:21px; }
#trebleScreen .treble-topbar .utility-button:hover { background:#3a4d6d; }
#trebleScreen :is(button,a,select):focus-visible { outline:2px solid #ead398; outline-offset:3px; }
.treble-shell { max-width:1320px; padding-top:24px; }
.treble-season-toolbar.treble-next { padding:0; border:0; background:none; text-align:initial; margin:0; }
.treble-season-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:20px; min-height:62px; }
.treble-season-toolbar>.pl-back-button { justify-self:start; color:#eef3ff; border:1px solid #ffffff28; background:#ffffff08; text-decoration:none; font-size:12px; }
.treble-season-toolbar>.treble-primary { justify-self:end; }
.treble-season-title { text-align:center; }
.treble-season-title h1 { margin:0 0 6px; font-size:25px; line-height:1.2; letter-spacing:-.7px; }
.treble-season-title p { margin:0; color:#bdcbe1; font-size:12px; }
#trebleScreen .treble-tabs { margin:22px 0 0; border-bottom:1px solid #ffffff24; padding-bottom:10px; }
#trebleScreen .treble-tabs button { color:#c2ccde; background:transparent; border:0; padding:11px 15px; }
#trebleScreen .treble-tabs button.active { background:#ead398; color:#17213a; }
.treble-season-heading { margin:20px 0 12px; }
.treble-trophies { margin:16px 0 24px; }
.treble-trophy { padding:16px 18px; }
.treble-overview-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr); align-items:start; gap:22px; }
.treble-overview-grid>* { min-width:0; }
.treble-panel-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:18px 20px; }
.treble-panel-heading h2 { margin:0; font-size:17px; }
#trebleScreen .treble-panel-heading .text-button { color:#ead398; font:700 11px Manrope,Arial,sans-serif; white-space:nowrap; cursor:pointer; }
.treble-schedule,.treble-standings { padding:0; overflow:hidden; }
.treble-standings .treble-table-wrap { padding:0 10px 10px; }
.treble-standings .treble-table { font-size:11px; }
.treble-standings .treble-table th,.treble-standings .treble-table td { padding:9px 5px; }
.treble-standings .treble-table tbody th { text-align:left; }
.treble-fixture-list { display:grid; gap:10px; padding:0 12px 12px; }
.treble-fixture {
 --fixture-bg:#3b1d54; --fixture-border:#9866b5; --fixture-muted:#e0cce9;
 display:block; margin:0; padding:15px 17px; border:1px solid var(--fixture-border); border-radius:10px;
 background:var(--fixture-bg); color:#fff; font-size:13px;
}
.treble-fixture.carabao-cup { --fixture-bg:#075e48; --fixture-border:#3c9a80; --fixture-muted:#c0eadb; }
.treble-fixture.fa-cup { --fixture-bg:#82233d; --fixture-border:#c26b80; --fixture-muted:#f8d5dd; }
.treble-fixture:last-child { border:1px solid var(--fixture-border); }
.treble-fixture.current { box-shadow:inset 4px 0 0 #fff; }
.treble-fixture-meta { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:15px; font-size:10px; line-height:1.5; color:var(--fixture-muted); }
.treble-fixture-meta time { color:inherit; font-size:10px; white-space:nowrap; }
.treble-fixture-meta>span { text-align:right; }
.treble-fixture-match { display:grid; grid-template-columns:minmax(0,1fr) 65px minmax(0,1fr); align-items:center; gap:12px; }
.treble-fixture-club { display:flex; align-items:center; gap:8px; min-width:0; line-height:1.4; font-size:12px; font-weight:650; }
.treble-fixture-club:first-child { flex-direction:row-reverse; text-align:right; }
.treble-fixture-club.is-managed { font-weight:850; }
.treble-fixture-club .treble-badge { width:30px; height:34px; }
.treble-fixture-score { text-align:center; color:white; font-size:18px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.treble-fixture small { color:var(--fixture-muted); font-size:10px; font-weight:500; }
.treble-fixture .treble-fixture-score small { margin-top:3px; font-size:9px; }
.treble-fixture-play { grid-column:1/-1; justify-self:center; padding:7px 24px; border:1px solid #ffffff60; border-radius:7px; color:#fff; background:#ffffff15; font:800 11px Manrope,Arial,sans-serif; cursor:pointer; }
.treble-fixture-play:hover { background:#ffffff28; }
.treble-fixture-status { display:block; margin-top:8px; text-align:center; color:var(--fixture-muted); font-size:10px; }
.treble-rearranged { margin-top:10px!important; line-height:1.5; }
.treble-schedule-filters { display:flex; gap:12px; padding:0 20px 18px; }
.treble-schedule-filters label { display:grid; gap:6px; color:#c2ccde; font-size:11px; }
.treble-schedule-filters select { min-height:38px; padding:8px 30px 8px 11px; border:1px solid #53647e; border-radius:7px; background:#24314a; color:#f4f6ff; font:700 12px Manrope,Arial,sans-serif; }
.treble-schedule-note,.treble-schedule-empty { padding:0 20px 12px; }
.treble-objective ul { padding-left:18px; color:#d7e1f0; font-size:12px; line-height:1.8; }
.treble-draws { padding:0; overflow:hidden; }
.treble-draw-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:0 18px 18px; }
.treble-draw-tie { min-width:0; }
.treble-draw-tie .treble-fixture { height:100%; }
.treble-draw-tie.is-managed .treble-fixture { box-shadow:inset 4px 0 0 #fff; }
.treble-draw-summary { margin:0; padding:0 20px 16px; }
.treble-draw-filters label { min-width:0; }
#trebleScreen img[src*="/tottenham-hotspur."],
body.treble-match-active img[src*="/tottenham-hotspur."],
[data-achievement-theme="treble-2026-27"] img[src*="/tottenham-hotspur."] { filter:brightness(0) invert(1); }
@media(max-width:1000px) {
 .treble-overview-grid { grid-template-columns:minmax(0,1.3fr) minmax(285px,1fr); gap:14px; }
 .treble-fixture { padding:13px 10px; }.treble-fixture-match { gap:7px; grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr); }
 .treble-fixture-club { font-size:11px; gap:6px; }
 .treble-fixture-club .treble-badge { width:25px; height:30px; }
}
@media(max-width:760px) {
 #trebleScreen .treble-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px; }
 #trebleScreen .treble-tabs button { min-width:0; padding:11px 4px; font-size:11px; }
 .treble-draw-grid { grid-template-columns:minmax(0,1fr); padding:0 12px 12px; }
 .treble-draw-filters { flex-wrap:wrap; }
 .treble-overview-grid { grid-template-columns:minmax(0,1fr); }
 .treble-season-toolbar { grid-template-columns:1fr auto; gap:18px 10px; }
 .treble-season-title { grid-column:1/-1; grid-row:2; }
 .treble-season-toolbar>.treble-primary { grid-column:2; grid-row:1; }
 .treble-season-title h1 { font-size:24px; }
 #trebleScreen .treble-topbar { min-height:64px; padding:0 10px; gap:6px; }
 #trebleScreen .treble-topbar :is(.pl-season-header-left,.pl-season-utility-actions) { gap:4px; }
 #trebleScreen .treble-topbar .utility-button { width:32px; min-width:32px; height:36px; min-height:36px; padding:0; border-radius:9px; }
 #trebleScreen .treble-topbar .main-account-button>span:last-child { display:none; }
 #trebleScreen .treble-topbar .brand-mark { width:36px; height:42px; border-radius:10px; }
 .treble-fixture-meta { font-size:10px; gap:8px; }
 .treble-fixture-club { font-size:12px; }
 .treble-panel-heading { padding:16px; }
 .treble-schedule-filters { padding:0 14px 16px; }
}
@media(max-width:380px) {
 #trebleScreen .treble-topbar { gap:4px; padding-inline:8px; }
 #trebleScreen .treble-topbar .utility-button { width:29px; min-width:29px; }
 .treble-season-toolbar>.treble-primary { padding:12px 10px; font-size:11px; }
 .treble-fixture-club { font-size:11px; }
 .treble-schedule-filters { gap:8px; }
 .treble-schedule-filters label { min-width:0; flex:1; }.treble-schedule-filters select { width:100%; padding-right:10px; }
}
