/* Emergency Backup — styles that belong to particular screens: the team home grid, calendars, scoreboards, the bracket, the
   live game, the trade desk, the draft clock, mail. */
.wrap.fill { height: 100%; }
.dash { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); height: 100%; min-height: 620px; gap: 14px; }
.dash .panel.tall { grid-column: 5; grid-row: 1 / span 2; } .dash .panel.wide { grid-column: span 2; }
.panel-pad { padding: 4px 12px 10px; }
.leadgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 2px 8px 8px; }
.leadgrid > div { background: #232325; border-radius: 5px; padding: 6px 8px; min-width: 0; display: flex; flex-direction: column; }
.leadgrid b { font-size: 19px; font-weight: 800; line-height: 1.1; color: var(--accent); } .leadgrid span:last-child { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container (max-width: 380px) { .leadgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
a.nrow:hover, a.srow:hover { background: #2d3338; color: inherit; }
.nrow .tb { margin-right: 5px; }
.card.on, .pickcard.on { outline: 2px solid var(--accent); }
.pickcard { display: block; cursor: pointer; } .pickcard:hover { background: var(--panel2); color: inherit; }
.card.story { margin-bottom: 8px; padding: 9px 12px; }
.card.evt { margin-bottom: 8px; padding: 9px 12px; border-left: 3px solid var(--accent); } .card.evt.past { opacity: .55; border-left-color: var(--line); } .card.evt .when { min-width: 62px; color: var(--accent); }
.teamrow { display: flex; align-items: center; gap: 4px; padding: 6px 4px; border-bottom: 1px solid #2c3135; } .teamrow:hover { background: var(--panel2); color: inherit; }
.champ { display: flex; align-items: center; gap: 18px; background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 22%, var(--panel)), var(--panel)); border-left: 4px solid var(--gold); border-radius: 6px; padding: 12px 16px; margin-bottom: 12px; }

/* the month on the wall */
.cal { background: var(--panel); border-radius: 6px; overflow: hidden; }
.chead { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--head); } .chead span { padding: 4px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .5px; }
.cgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: #101316; }
.cday { background: var(--panel); min-height: 86px; padding: 5px 7px; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.cday.off { background: #171a1d; } .cday.home { background: color-mix(in srgb, var(--team) 20%, var(--panel)); } .cday.today { outline: 2px solid var(--accent); outline-offset: -2px; }
.cday b { color: var(--muted); font-size: 12px; } .cday i { font-style: normal; font-size: 9.5px; font-weight: 800; color: var(--gold); letter-spacing: .3px; }
.cday a { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; font-weight: 700; font-size: 13px; } .cday .tb { margin-right: 3px; }
.cday.home { box-shadow: inset 3px 0 0 var(--accent); } .cday .va { color: var(--muted); font-weight: 600; font-size: 11.5px; min-width: 16px; }

/* scoreboards */
.gcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.gc { display: block; background: var(--panel); border-radius: 6px; padding: 8px 10px; } a.gc:hover { background: var(--panel2); color: inherit; }
.gc-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 4px; }
.gc-row { display: flex; align-items: center; padding: 2.5px 0; color: #cfcfd2; } .gc-row.win { color: #fff; font-weight: 700; }
.gc-row .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gc-row .rec { color: var(--dim); font-size: 11.5px; font-weight: 500; margin-left: 4px; }
.gc-row .sc { font-size: 16px; min-width: 26px; text-align: right; } .gc-row .he { min-width: 24px; text-align: right; color: var(--muted); font-size: 12.5px; }
.gc-foot { color: var(--muted); font-size: 11.5px; margin-top: 4px; border-top: 1px solid #2c3135; padding-top: 4px; }

/* the playoff bracket */
.bracket { display: flex; gap: 26px; align-items: center; }
.bk-col { display: flex; flex-direction: column; gap: 18px; min-width: 250px; }
.bk-ser { background: var(--panel); border-radius: 6px; padding: 7px 9px; border-left: 3px solid var(--head); }
.bk-team { display: flex; align-items: center; padding: 3px 0; color: #cfcfd2; } .bk-team b { margin-left: auto; font-size: 16px; } .bk-team.win { color: #fff; font-weight: 800; } .bk-team.win b { color: var(--accent); } .bk-team.me a { text-decoration: underline; }
.bk-games { font-size: 11px; color: var(--muted); } .bk-games a { margin-right: 4px; }

/* the live game */
.linescore td, .linescore th { text-align: center; } .linescore td:first-child { text-align: left; }
.scorebig { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px 0; } .scorebig b { font-size: 44px; font-weight: 800; line-height: 1; } .scorebig span { color: var(--muted); font-size: 26px; } .scorebig .tb { margin: 0; }
.outs { display: flex; align-items: center; justify-content: center; gap: 5px; margin-bottom: 4px; } .outs i { width: 12px; height: 12px; border-radius: 50%; background: #2a2f33; border: 1px solid #555; } .outs i.on { background: var(--bad); border-color: var(--bad); }
.oddsbar { display: flex; height: 22px; border-radius: 4px; overflow: hidden; margin-bottom: 6px; } .oddsbar span { display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #111; min-width: 1px; }
.pbp .card { margin-bottom: 8px; padding: 8px 12px; }
.pbptext { font-family: var(--mono); font-size: 12px; line-height: 1.6; background: #15181b; border-radius: 5px; padding: 10px 12px; max-height: 60vh; overflow: auto; white-space: pre-wrap; margin: 6px 0 0; }
.notes { font-size: 12.5px; line-height: 1.6; padding: 8px 12px; }
code { font-family: var(--mono); font-size: 12px; }
svg.field text { paint-order: stroke; }

/* desks */
.tdesk { display: grid; grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr); gap: 14px; align-items: start; }
.tdesk .tablewrap { max-height: calc(100vh - 330px); }
.tdesk h3 { margin-bottom: 6px; }
.clock { border-left: 4px solid var(--head); } .clock.mine { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--panel)); }
.ach { border-left: 3px solid #555; opacity: .6; } .ach.got { opacity: 1; } .ach.gold.got { border-left-color: var(--gold); } .ach.silver.got { border-left-color: #c0c5ca; } .ach.bronze.got { border-left-color: #cd7f32; } .ach svg { width: 22px; height: 22px; }
.shelf-top { display: flex; align-items: center; gap: 12px; padding: 2px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; } .shelf-top svg { width: 34px; height: 34px; } .shelf-top b { font-size: 34px; font-weight: 800; line-height: 1; color: var(--accent); }

/* mail */
.mrow { display: block; padding: 7px 10px; border-bottom: 1px solid #2c3135; font-size: 13px; cursor: pointer; } .mrow:hover { background: var(--panel2); color: inherit; } .mrow.on { background: color-mix(in srgb, var(--team) 30%, transparent); } .mrow.unread b { color: var(--accent); }
.letter { padding: 16px 18px; }

@media (max-width: 1500px) { .g6 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .menu-btn { font-size: 16px; padding: 7px 8px; } #search { width: 170px; } }
/* the team home needs about 300px a panel: five across on a big screen, four on a laptop, three below that */
@media (max-width: 1540px) { .wrap.fill { height: auto; } .dash { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 318px; height: auto; min-height: 0; } .dash .panel.tall { grid-column: 4; } }
@media (max-width: 1250px) { .dash { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dash .panel.tall { grid-column: 3; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tdesk { grid-template-columns: 1fr; } .ctx-box { display: none; } #status { display: none; } .menu-btn { font-size: 14px; } }

/* leader cards, who's hot, the division graph (the panels the football and basketball homes have) */
.lead { display: flex; gap: 10px; padding: 3px 8px 5px; }
.lead-art { width: 56px; height: 66px; flex: none; border-radius: 5px; background: linear-gradient(165deg, var(--c), color-mix(in srgb, var(--c) 45%, #000) 120%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid rgba(255,255,255,.18); color: #fff; }
.lead-art:hover { filter: brightness(1.2); color: #fff; } .lead-art b { font-size: 17px; font-weight: 800; line-height: 1; } .lead-art small { font-size: 9.5px; font-weight: 700; opacity: .85; }
.lead-list { flex: 1; min-width: 0; } .lead-list h4 { margin: 1px 0 3px; font-size: 12.5px; font-weight: 800; color: #a9a9ae; letter-spacing: .4px; }
.lead-list div { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; padding: 1.5px 0; } .lead-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lead-list div:first-of-type b { color: var(--accent); }
.panel-body .hot { padding: 5px 12px 7px; font-size: 14.5px; } .panel-body .hot span { display: block; text-align: right; color: #dcdcdf; font-size: 13px; margin-top: 1px; }
h4.not { margin: 0; padding: 12px 12px 2px; font-size: 15px; font-weight: 800; color: #a9a9ae; text-transform: uppercase; }
.gtitle { padding: 2px 12px 0; color: #c9c9cc; font-size: 13.5px; font-weight: 600; }
