/* Account panel stays within the page content. */
.account-page #account-page-shell{min-height:28rem}
.account-page #global-account-modal{margin:0 auto 2rem}

/* Compact views have only three true columns; long views retain their full data. */
#prediction-table.short-view{width:100%;min-width:0;table-layout:fixed}
#prediction-table.short-view th,#prediction-table.short-view td{padding:.75rem clamp(.4rem,2vw,.9rem);overflow-wrap:anywhere}
#prediction-table.short-view th:first-child,#prediction-table.short-view td:first-child{width:3.8rem;text-align:center}
#prediction-table.short-view th:nth-child(3),#prediction-table.short-view td:nth-child(3){width:5rem;text-align:right}
#prediction-table:not(.short-view){min-width:760px}
.oneshot-overall-table.short-view,.oneshot-weekly-table.short-view{width:100%;min-width:0;table-layout:fixed}
.oneshot-overall-table.short-view .os-pos,.oneshot-weekly-table.short-view .os-pos{width:3.8rem}
.oneshot-overall-table.short-view .os-team,.oneshot-weekly-table.short-view .os-team{width:auto;overflow-wrap:anywhere}
.oneshot-overall-table.short-view .os-points,.oneshot-weekly-table.short-view .os-points{width:4.6rem;text-align:right}
.oneshot-overall-table.short-view .oneshot-mobile-manager,.oneshot-weekly-table.short-view .oneshot-mobile-manager{display:none}
.oneshot-overall-table:not(.short-view),.oneshot-weekly-table:not(.short-view){min-width:720px;width:100%}
.game-cross-link-end{padding:1.5rem 0 3rem;margin:0 auto}
@media(max-width:700px){
 .oneshot-overall-table:not(.short-view) .os-manager,.oneshot-weekly-table:not(.short-view) .os-manager{display:table-cell}
 .oneshot-overall-table:not(.short-view) .oneshot-mobile-manager,.oneshot-weekly-table:not(.short-view) .oneshot-mobile-manager{display:none}
 .oneshot-overall-table.short-view,.oneshot-weekly-table.short-view{min-width:0}
 .oneshot-overall-table.short-view th,.oneshot-overall-table.short-view td,.oneshot-weekly-table.short-view th,.oneshot-weekly-table.short-view td{padding:10px 6px}
}

/* Intelligence cards can be closed without destroying their data or controls. */
.intel-fold>summary,#classic-intel-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;list-style:none;cursor:pointer;padding:.75rem 0;font-weight:800;color:var(--purple);line-height:1.4}
.intel-fold>summary::-webkit-details-marker,#classic-intel-fold>summary::-webkit-details-marker{display:none}
.intel-heading-label b{display:block;font:700 clamp(1.2rem,2.2vw,1.9rem) 'League Spartan',sans-serif;margin:.3rem 0}
.intel-fold-state:before{content:'+';display:grid;place-items:center;width:2rem;height:2rem;border-radius:50%;background:#f0e7f2;color:#3c0d49;font-size:1.3rem}
.intel-fold[open] .intel-fold-state:before,#classic-intel-fold[open] .intel-fold-state:before{content:'−'}
.intel-fold>summary:focus-visible,#classic-intel-fold>summary:focus-visible{outline:3px solid #009c64;outline-offset:3px}
#classic-intel-fold .classic-intel-head{padding-top:1rem}
.trends-tabs{scroll-margin-top:1rem}

/* Persistent desktop icon rail with direct destinations. */
.nav-rail{display:none}
@media(min-width:1024px){
 html.dym-nav-collapsed .nav.container{min-height:0!important}
 html.dym-nav-collapsed .nav-rail{display:flex;flex-direction:column;align-items:center;gap:.4rem;padding:.25rem .4rem 1.2rem}
 .nav-rail a,.nav-rail button{display:grid;place-items:center;width:3.25rem;height:3.25rem;color:#eee1ef;background:transparent;border:0;border-radius:12px;font:700 1.4rem 'DM Sans',sans-serif;cursor:pointer}
 .nav-rail a:hover,.nav-rail button:hover,.nav-rail a.active{background:rgba(0,239,145,.15);color:var(--green)}
 .nav-rail a:focus-visible,.nav-rail button:focus-visible{outline:3px solid var(--green);outline-offset:2px}
}
/* A full-height drawer on phones and tablets. */
.nav-drawer-backdrop[hidden]{display:none!important}
.nav-drawer-close{display:none}
@media(max-width:1023px){
 .menu-toggle{display:block!important;position:relative;z-index:122}
 .nav-links{position:fixed!important;inset:0 auto 0 0!important;width:min(360px,calc(100vw - 50px))!important;height:100dvh;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:.15rem!important;padding:1.25rem 1rem 5.5rem!important;overflow-y:auto!important;background:var(--purple)!important;z-index:121;transform:translateX(-105%);visibility:hidden;pointer-events:none;transition:transform .2s ease,visibility .2s}
 .nav-links.open{transform:translateX(0);visibility:visible;pointer-events:auto}
 .nav-drawer-backdrop:not([hidden]){position:fixed;inset:0;z-index:39;display:block;width:100%;height:100%;background:rgba(9,0,13,.65);border:0;cursor:pointer}
 .nav-drawer-close{display:block;align-self:flex-end;border:0;background:rgba(255,255,255,.1);color:#fff;border-radius:9px;padding:.6rem .8rem;margin-bottom:.7rem;cursor:pointer}
 body.menu-open{overflow:hidden}
}
@media(prefers-reduced-motion:reduce){.nav-links{transition:none!important}}
@media(max-width:1023px){body.menu-open .dym-mobile-nav{visibility:hidden;pointer-events:none}}
