/* DYM Custom Leagues — the shared FPL DYM purple, green and warm neutral palette. */
.custom-main,.custom-bulletin,.custom-popup{--cl-purple:#27002e;--cl-green:#00ef91;--cl-ink:var(--ink,#171019);--cl-panel:var(--white,#fff);--cl-soft:var(--soft,#ece7df);--cl-line:var(--line,rgba(39,0,46,.14));--cl-muted:var(--muted,#6d6670);--cl-tint:#f2edf5;color:var(--cl-ink)}
.custom-main{max-width:1180px;padding-block:32px 88px;min-width:0;font-size:15px;line-height:1.65}.custom-main h1,.custom-main h2,.custom-main h3,.custom-bulletin h2{font-family:'League Spartan','DM Sans',sans-serif;letter-spacing:-.035em;line-height:1.1}.custom-main h2{font-size:32px;margin:0 0 12px}.custom-main h3{font-size:23px;margin:26px 0 12px}.custom-main p{max-width:78ch}.custom-main a:not(.custom-actions a):hover{text-decoration:underline;text-underline-offset:4px}.custom-main :is(p,li,dd,a,h1,h2,h3){overflow-wrap:anywhere}
.custom-hero{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:30px;align-items:center;position:relative;overflow:hidden;border-radius:24px;padding:42px;background:radial-gradient(ellipse at 95% 10%,#65006e 0,transparent 55%),#27002e;color:#fff;box-shadow:0 16px 42px #27002e13;margin-bottom:24px}.custom-hero:after{content:'';position:absolute;right:-90px;bottom:-160px;width:390px;height:390px;border:1px solid #ffffff17;border-radius:50%;pointer-events:none}.custom-hero-copy{position:relative;z-index:1}.custom-hero .eyebrow{color:#d8c6dc;font-size:10px;letter-spacing:.15em;margin:0 0 22px}.custom-hero h1{font-size:clamp(38px,4.5vw,62px);font-weight:800;line-height:1.03;margin:0 0 20px}.custom-hero h1 em{color:#00ef91;font-style:normal}.custom-hero-copy>p:last-of-type{color:#e0d3e3;max-width:56ch;font-size:15px;line-height:1.7;margin:0}.custom-format-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}.custom-format-pills span{border:1px solid #ffffff30;background:#ffffff09;color:#f2e9f4;border-radius:30px;padding:6px 12px;font-size:11px;font-weight:600}.custom-hero-mark{z-index:1;text-align:center;transform:rotate(-8deg);padding:20px;border-radius:100px 100px 24px 24px;border:1px solid #ffffff25;background:linear-gradient(150deg,#ffffff0f,#ffffff03)}.custom-hero-mark svg{color:#00ef91;width:150px;height:150px;margin:auto;filter:drop-shadow(0 8px 18px #00ef9126)}.custom-hero-mark span{display:block;color:#c7b0ce;font-size:9px;letter-spacing:.14em;font-weight:700;margin:14px 0}
.custom-main button,.custom-actions a{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:11px 18px;border:1px solid var(--cl-line);border-radius:10px;background:var(--cl-panel);color:var(--cl-ink);font:700 13px/1.35 'DM Sans',sans-serif;cursor:pointer;text-align:center;text-decoration:none;transition:background .16s,border-color .16s,box-shadow .16s}.custom-main button:hover,.custom-actions a:hover{border-color:#94699e;background:var(--cl-tint);box-shadow:0 3px 10px #27002e09}.custom-main button:disabled{opacity:.55;cursor:wait}.custom-main :is(#custom-create,#wizard-review,[value=publish],[data-action=join],[data-action=approve],[data-action=adopt],#owner-process){background:var(--cl-green);border-color:var(--cl-green);color:#10281c;box-shadow:0 5px 16px #00ef911a}.custom-main :is(#custom-create,#wizard-review,[value=publish],[data-action=join],[data-action=adopt],#owner-process):hover{background:#22ffab;border-color:#22ffab}.custom-main :is([data-action=cancel],[data-action=remove],[data-action=reject],[data-action=cancel_exception]){color:#a42c48;border-color:#dca7b4;background:transparent}.custom-main :is(#custom-invitation button,#owner-settings>button,#owner-inspect button,#owner-source-refresh button){background:#27002e;color:#fff;border-color:#27002e}.custom-main button+button{margin-left:5px}.custom-main :focus-visible,.custom-bulletin :focus-visible,.custom-popup :focus-visible{outline:3px solid #0baf73;outline-offset:4px}
.custom-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:22px 0}.custom-actions a[aria-current=page]{background:#27002e;border-color:#27002e;color:#fff}.custom-actions #custom-create{margin-left:auto}.custom-actions a#custom-owner-link{font-size:11px;border-style:dashed}.custom-kicker{font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:#75427f;margin:0 0 10px}.custom-main #custom-message,.custom-main #owner-message{font-size:12px;color:var(--cl-muted);margin:14px 0}.custom-main #custom-message.is-error,.custom-main [role=alert]:not(:empty){color:#a42c48;background:#fff0f3;border:1px solid #ecc3ce;border-radius:10px;padding:12px 16px}.custom-main #wizard-error:empty{display:none}.custom-main #custom-access{padding:13px 18px;border:1px solid var(--cl-line);border-radius:12px;background:var(--cl-panel);font-size:12px}.custom-main #custom-access p{margin:0}.custom-main #custom-access a{font-weight:700;text-decoration:underline;text-decoration-color:#00ae6c;text-underline-offset:3px}
.custom-invite-panel{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center;padding:24px 28px;border-radius:16px;background:var(--cl-panel);border:1px solid var(--cl-line);margin:24px 0 36px}.custom-main .custom-invite-panel h2{font-size:26px;margin:0 0 8px}.custom-main .custom-invite-panel p:not(.custom-kicker){color:var(--cl-muted);font-size:12px;margin:0;max-width:42ch}.custom-invite-entry{display:flex;align-items:end;gap:10px;min-width:0}.custom-main .custom-invite-entry label{flex:1;margin:0}.custom-invite-entry button{flex-shrink:0}.custom-main label{display:block;font-size:12px;font-weight:700;margin:16px 0;color:var(--cl-ink);min-width:0}.custom-main :is(input:not([type=checkbox]),select,textarea){display:block;width:100%;min-width:0;max-width:100%;min-height:46px;margin-top:7px;padding:11px 12px;border:1px solid #bfb2c4;border-radius:9px;background:var(--cl-panel);color:var(--cl-ink);font:400 13px/1.5 'DM Sans',sans-serif;box-shadow:0 1px 2px #27002e04}.custom-main select{padding-right:26px}.custom-main textarea{min-height:100px;resize:vertical}.custom-main input::placeholder,.custom-main textarea::placeholder{color:#877c8b}.custom-main :is(input,select,textarea):focus{border-color:#7b3689}.custom-main input[type=checkbox]{width:20px;height:20px;accent-color:#6b2178;vertical-align:middle;flex:0 0 20px}.custom-main label:has(>input[type=checkbox]){display:flex;align-items:start;gap:10px;font-weight:500;line-height:1.7}.custom-main label:has(>input[type=checkbox]) input{margin-top:2px}
#custom-content>h2{margin-top:32px;font-size:32px}#custom-content>p{color:var(--cl-muted);font-size:13px}.custom-league-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.custom-card{border:1px solid var(--cl-line);border-radius:17px;padding:26px;background:var(--cl-panel);color:var(--cl-ink);margin:20px 0;box-shadow:0 5px 18px #27002e05;min-width:0}.custom-league-grid .custom-card{margin:0}.custom-league-card{border-top:3px solid #6d297b;display:flex;flex-direction:column}.custom-main .custom-league-card h3{font-size:27px;line-height:1.15;margin:8px 0 12px}.custom-league-card>p:not(.custom-card-status){font-size:13px;color:var(--cl-muted);margin:0 0 20px}.custom-card-status,.custom-status{display:inline-flex!important;align-items:center;gap:8px;align-self:start;font-size:11px;font-weight:700;padding:5px 10px!important;background:var(--cl-tint);border:1px solid var(--cl-line);border-radius:30px;line-height:1.5;max-width:100%}.custom-card-status:before,.custom-status:before{content:'';width:6px;height:6px;border-radius:50%;background:#94709e;flex-shrink:0}.custom-main :is(.custom-card-status,.custom-status)[data-state=accepting_entries]:before,.custom-main :is(.custom-card-status,.custom-status)[data-state=active]:before{background:#008951}.custom-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:auto!important}.custom-meta span{font-size:10px;padding:5px 9px;border-radius:6px;background:var(--cl-tint);color:var(--cl-ink)}.custom-empty{padding:42px 24px 38px;text-align:center;border:1px dashed #bda6c4;border-radius:18px;background:var(--cl-panel)}.custom-empty-mark{display:grid;place-items:center;margin:0 auto 15px;width:56px;height:56px;border-radius:17px;background:#eee3f2;color:#682676;font-size:30px}.custom-main .custom-empty h3{margin:0 0 12px;font-size:29px}.custom-empty p{color:var(--cl-muted);font-size:13px;max-width:48ch;margin:0 auto 22px}.custom-empty-foot{font-size:9px;font-weight:700;letter-spacing:.13em;color:#8a6b93}.custom-competition>h2{font-size:38px}.custom-competition>p:not(.custom-kicker,.custom-status){color:var(--cl-muted);font-size:13px}.custom-main section:has(>[data-action]),.custom-main section:has(>h3){margin:22px 0;padding:22px;border:1px solid var(--cl-line);border-radius:12px;background:var(--cl-tint)}.custom-main section>h3:first-child{margin-top:0}.custom-members{list-style:none;padding:0;display:grid;gap:10px}.custom-members>li{border:1px solid var(--cl-line);padding:14px 16px;border-radius:11px;font-size:13px;background:var(--cl-panel)}.custom-members button{min-height:36px;font-size:11px;margin:8px 4px 0 0}.custom-main details{border:1px solid var(--cl-line);border-radius:12px;overflow:hidden;margin:20px 0}.custom-main summary{padding:17px 20px;cursor:pointer;font-size:13px;font-weight:700;background:var(--cl-tint)}.custom-main details>p{padding:0 20px}.custom-main dl{display:grid;grid-template-columns:minmax(120px,.7fr) minmax(0,1.7fr);font-size:12px;margin:0}.custom-main :is(dt,dd){margin:0;padding:15px 18px;border-bottom:1px solid var(--cl-line);line-height:1.8}.custom-main dt{background:var(--cl-tint)}.custom-main dd{color:var(--cl-muted)}.custom-table-wrap{overflow:auto;border:1px solid var(--cl-line);border-radius:12px;margin:18px 0}.custom-main table{border-collapse:collapse;width:100%;font-size:13px;font-variant-numeric:tabular-nums}.custom-main th,.custom-main td{padding:14px 16px;text-align:left;border-bottom:1px solid var(--cl-line);white-space:normal;min-width:85px}.custom-main th{background:#27002e;color:#f6eefa;font-size:10px;text-transform:uppercase;letter-spacing:.07em}.custom-main tbody tr:nth-child(even){background:var(--cl-tint)}.custom-main tbody tr:last-child td{border-bottom:0}
.custom-main dialog{box-sizing:border-box;width:min(850px,calc(100% - 32px));max-height:90dvh;overflow:auto;padding:32px;border:1px solid #9e76ab;border-top:5px solid #00ef91;border-radius:20px;background:var(--cream,#f6f2ea);color:var(--cl-ink);box-shadow:0 24px 90px #13001655;overscroll-behavior:contain}.custom-main dialog::backdrop{background:#19001ed9;backdrop-filter:blur(4px)}.custom-main dialog h2{font-size:36px}.custom-wizard-lead{color:var(--cl-muted);font-size:13px;margin:0 0 20px}.custom-step-rail{display:flex;gap:8px;margin:20px 0}.custom-step-rail span{flex:1;border-bottom:3px solid #d5c6db;padding:9px 0;font-size:11px;font-weight:700;color:var(--cl-muted)}.custom-step-rail span:first-child{border-color:#63236f;color:var(--cl-ink)}#custom-form:has(#wizard-review-screen:not([hidden])) .custom-step-rail span:last-child{border-color:#00af6c;color:var(--cl-ink)}#custom-allowance{background:var(--cl-panel);border:1px solid var(--cl-line);border-left:3px solid #70327d;border-radius:10px;padding:13px 16px;font-size:12px}#custom-expiry{font-size:11px;color:var(--cl-muted);line-height:1.8} .custom-main fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;margin:26px 0;padding:20px;border:1px solid var(--cl-line);border-radius:13px;background:var(--cl-panel);min-width:0}.custom-main fieldset legend{font-size:15px;font-weight:700;padding:0 9px;color:var(--cl-ink)}.custom-step-number{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:8px;margin-right:8px;color:#fff;background:#63236f;font-size:12px}.custom-main fieldset>p,.custom-main fieldset>label:has(textarea),.custom-main fieldset>label:has(input[type=checkbox]){grid-column:1/-1}.custom-main fieldset p,#wizard-fields>p{font-size:11px;color:var(--cl-muted);line-height:1.8}#wizard-source,#wizard-calendar{background:var(--cl-tint);border-radius:8px;padding:12px 14px;margin-top:8px}#wizard-fields>button{width:100%;margin:4px 0 16px}#wizard-review-screen h3{font-size:27px;margin-top:30px}#wizard-review-rules{border:1px solid var(--cl-line);border-radius:12px;overflow:hidden;background:var(--cl-panel)}#wizard-review-rules>p{font-size:13px;padding:0 18px}.custom-wizard-footer{position:sticky;bottom:-32px;z-index:2;background:var(--cream,#f6f2ea);border-top:1px solid var(--cl-line);padding:16px 0 20px;margin:24px 0 -20px}.custom-wizard-footer button:last-child{margin-left:auto}#wizard-review-screen [value=publish]{margin:12px 0}
.custom-bulletin{position:relative;border:1px solid var(--cl-line);border-left:4px solid #00b974;border-radius:15px;padding:22px 24px;background:var(--cl-panel);margin:20px auto;box-shadow:0 4px 14px #27002e04}.custom-bulletin h2{font-size:23px!important;line-height:1.2;margin:0 0 12px!important;color:var(--cl-ink)}.custom-bulletin p{font-size:12px;color:var(--cl-muted);margin:12px 0 0}.custom-bulletin a{font-size:13px;line-height:1.7;font-weight:600;color:var(--cl-ink);overflow-wrap:anywhere}.custom-bulletin>div a{display:block;margin:8px 0 16px}.custom-bulletin button{min-height:36px;border:1px solid var(--cl-line);border-radius:8px;padding:8px 12px;background:var(--cl-tint);color:var(--cl-ink);font-size:11px;cursor:pointer;margin-right:10px}.custom-bulletin p a{color:var(--cl-ink);text-decoration:underline;text-underline-offset:3px}.custom-popup{position:fixed;bottom:24px;right:24px;max-width:350px;z-index:1000;padding:24px;border:1px solid #8e5c9c;border-top:4px solid #00ef91;border-radius:16px;background:#27002e;color:#fff;box-shadow:0 14px 55px #13001644}.custom-popup h2{font:700 28px/1.1 'League Spartan',sans-serif;margin:5px 0 14px}.custom-popup p{color:#e1d3e5;font-size:13px}.custom-popup a{color:#00ef91;font-weight:700}.custom-popup button{float:right;min-height:40px;border:1px solid #ffffff45;background:transparent;color:#fff;border-radius:8px;padding:7px 11px;cursor:pointer}
.custom-owner-hero{grid-template-columns:1fr}.custom-owner-hero h1{font-size:clamp(34px,4vw,49px)}.custom-back-link{display:inline-block;font-size:12px;font-weight:700;margin:0 0 10px}.custom-owner-note{font-size:12px;color:var(--cl-muted)}.custom-owner-panel{border:1px solid var(--cl-line);border-radius:17px;padding:26px;margin:24px 0;background:var(--cl-panel)}.custom-main .custom-owner-panel h2{font-size:29px}.custom-owner-panel>p,.custom-owner-panel li{font-size:12px;color:var(--cl-muted)}.custom-storage-details>ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;gap:8px;padding:0}.custom-storage-details>ul li{padding:11px 12px;border-radius:9px;background:var(--cl-tint);font-size:11px}#owner-health h3{font-size:20px}#owner-settings{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}#owner-settings>h2,#owner-settings>p,#owner-settings>label:has([name=paused]),#owner-settings>label:has([name=reason]),#owner-settings>button{grid-column:1/-1}#owner-settings>button{justify-self:start}#owner-health~button{margin:8px 6px 8px 0}.custom-invite{overflow-wrap:anywhere}.custom-main [hidden]{display:none!important}
html[data-theme=dark] :is(.custom-main,.custom-bulletin){--cl-tint:#302336;--cl-line:#4a3a51;--cl-muted:#c5b7cd}html[data-theme=dark] .custom-kicker{color:#ce9fda}html[data-theme=dark] .custom-empty-mark{background:#3b2643;color:#c6f8df}html[data-theme=dark] .custom-empty-foot{color:#c3a1ce}html[data-theme=dark] .custom-main :is(input:not([type=checkbox]),select,textarea){border-color:#76627d;background:#201b29;color:#f3eef4}html[data-theme=dark] .custom-main :is([data-action=cancel],[data-action=remove],[data-action=reject],[data-action=cancel_exception]){color:#ffb0c1;border-color:#a56275}html[data-theme=dark] .custom-main #custom-message.is-error,html[data-theme=dark] .custom-main [role=alert]:not(:empty){color:#ffc2ce;background:#40202d;border-color:#a56275}
@media(max-width:850px){.custom-hero{grid-template-columns:minmax(0,1fr) 150px;padding:30px;gap:15px}.custom-hero-mark{padding:12px}.custom-hero-mark svg{width:115px;height:115px}.custom-hero-mark span{font-size:8px}.custom-invite-panel{grid-template-columns:1fr;gap:18px}.custom-main .custom-owner-hero{grid-template-columns:1fr}.custom-storage-details>ul{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.custom-main{width:calc(100% - 28px);padding-block:18px 90px}.custom-hero{grid-template-columns:minmax(0,1fr);padding:28px 24px;border-radius:18px}.custom-hero h1{font-size:40px}.custom-hero-mark{display:none}.custom-hero .eyebrow{font-size:9px;letter-spacing:.12em}.custom-format-pills{gap:6px}.custom-format-pills span{font-size:10px;padding:5px 9px}.custom-actions{gap:8px}.custom-actions #custom-create{width:100%;margin:3px 0 0;order:3}.custom-actions a{flex:1;font-size:12px}.custom-actions a#custom-owner-link{flex-basis:100%;order:4}.custom-invite-panel{padding:22px;margin-bottom:30px}.custom-invite-entry{flex-direction:column;align-items:stretch;gap:13px}.custom-invite-entry button{width:100%}.custom-league-grid{grid-template-columns:1fr}.custom-empty{padding:32px 20px}.custom-main .custom-empty h3{font-size:26px}.custom-card{padding:20px}.custom-competition>h2{font-size:32px}.custom-main dl{grid-template-columns:minmax(0,1fr)}.custom-main dt{padding:12px 16px 2px;border-bottom:0}.custom-main dd{padding:4px 16px 14px}.custom-main dialog{width:calc(100% - 16px);max-height:94dvh;padding:22px 18px;border-radius:16px}.custom-main dialog h2{font-size:30px}.custom-main fieldset{grid-template-columns:1fr;padding:16px;gap:0}.custom-main fieldset label{margin:12px 0}.custom-main fieldset legend{font-size:13px;padding:0 4px}.custom-wizard-footer{bottom:-22px;padding-bottom:15px}.custom-wizard-footer button{flex:1}.custom-main section:has(>[data-action]),.custom-main section:has(>h3){padding:16px}.custom-main section>button{margin:5px 3px 5px 0}.custom-owner-panel{padding:20px}#owner-settings{grid-template-columns:1fr}.custom-storage-details>ul{grid-template-columns:1fr}.custom-bulletin{padding:20px}.custom-popup{left:14px;right:14px;bottom:86px;max-width:none}.custom-main table{font-size:12px}.custom-main th,.custom-main td{padding:11px 12px}}
@media(prefers-reduced-motion:reduce){.custom-main *,.custom-bulletin *,.custom-popup *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.custom-section-nav{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}.custom-section-nav a{padding:8px 14px;border:1px solid var(--cl-line);border-radius:8px;background:var(--cl-tint);font-size:12px;font-weight:700}.custom-main [id^=competition-]{scroll-margin-top:28px}
/* Announcement controls keep their DOM/focus stable while stories update. */
.custom-bulletin{border:1px solid #b69bc0;border-top:4px solid #00ef91;border-left-width:1px;padding:26px;border-radius:18px;background:var(--cl-panel);box-shadow:0 8px 26px #27002e09}.custom-bulletin-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}.custom-bulletin .custom-kicker{font-size:9px;color:#75417f;margin:0 0 8px;letter-spacing:.12em}.custom-bulletin-head h2{font-size:29px!important;margin:0!important}.custom-bulletin-browse{flex-shrink:0;color:#783187!important;border-bottom:2px solid #00c77b;padding-bottom:3px}.custom-bulletin-event{padding:20px;border-radius:13px;background:var(--cl-tint);border-left:3px solid #7a3388;margin:10px 0}.custom-bulletin-event>span{display:block;font-size:9px;font-weight:800;letter-spacing:.12em;color:#764282;margin-bottom:9px}.custom-bulletin-event>a{display:flex!important;gap:18px;align-items:center;justify-content:space-between;font-size:16px!important;line-height:1.65;text-decoration:none}.custom-bulletin-event>a:hover{text-decoration:underline}.custom-bulletin-event b{flex-shrink:0;font-size:23px;color:#71327e}.custom-bulletin-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-top:18px}.custom-bulletin-footer>p{font-size:11px;margin:0}.custom-bulletin-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.custom-bulletin-controls button{min-height:40px;margin:0;border-radius:9px;font-weight:700;background:var(--cl-panel);color:var(--cl-ink)}.custom-bulletin-controls button:disabled{opacity:.4;cursor:default}.custom-bulletin-controls [data-counter]{font-size:10px;color:var(--cl-muted);min-width:36px;text-align:center}.custom-bulletin-empty{border-radius:12px;padding:20px;background:var(--cl-tint)}.custom-bulletin-empty>p{margin:0 0 17px;font-size:14px}.custom-bulletin-empty>a{display:inline-flex;min-height:44px;align-items:center;padding:10px 15px;border-radius:9px;margin:4px 7px 4px 0;background:#27002e;color:#fff;font-size:12px}.custom-bulletin-empty>a:first-of-type{background:#00ef91;color:#10291d}.custom-bulletin [data-bulletin-items]{min-width:0}.custom-bulletin a:focus-visible{outline:3px solid #00ab6a;outline-offset:4px}html[data-theme=dark] .custom-bulletin :is(.custom-kicker,.custom-bulletin-browse,.custom-bulletin-event>span,.custom-bulletin-event b){color:#d4a0e2!important}@media(max-width:650px){.custom-bulletin{padding:21px}.custom-bulletin-head{align-items:start;flex-direction:column;gap:12px}.custom-bulletin-head h2{font-size:26px!important}.custom-bulletin-event{padding:16px}.custom-bulletin-event>a{font-size:14px!important}.custom-bulletin-footer{align-items:start;flex-direction:column}.custom-bulletin-controls button[data-pause]{font-size:10px}.custom-bulletin-empty>a{width:100%;justify-content:center;margin-right:0}}
