/* D1: data screens spend their space on rows, not nested card padding. */
.rct-theme #main[data-screen]:has([data-dt-id]) { margin-top:0; }
.rct-theme #main[data-screen]:has([data-dt-id]) :is(.page-heading,.sheet-heading,.almanac-heading,.league-heading,.fc-heading) h1 {font:700 26px/1.05 var(--display);}
.rct-theme #main[data-screen]:has([data-dt-id]) :is(.page-heading,.sheet-heading,.almanac-heading,.league-heading,.fc-heading) p {font:400 13px/1.25 var(--body);margin:0;}
.rct-theme #main[data-screen] .data-table-wrap .data-table :is(th,td) {color:var(--ink);}
.rct-theme #main[data-screen] .data-table-wrap .data-table tbody :is(button,a) {height:24px;min-height:24px;max-height:24px;color:var(--ink);}
.rct-theme #main[data-screen] .data-table-wrap .data-table tbody .watch-button {width:24px;height:24px;min-height:24px;}
.rct-theme #main[data-screen] .data-table-wrap .data-table tbody .watch-button .icon {width:16px;height:16px;}
.rct-theme #main[data-screen] .data-table-wrap .data-table tbody :is(th,td) {height:26px;padding-block:0;}
#main:has([data-dt-id]) { max-width:none; padding:8px 16px 20px; }
#main:has([data-dt-id]) :is(.page-heading,.sheet-heading,.almanac-heading,.league-heading,.fc-heading) { margin:0 0 6px; padding:0; gap:12px; min-height:0; }
#main:has([data-dt-id]) :is(.page-heading,.sheet-heading,.almanac-heading,.league-heading,.fc-heading) h1 { margin:0; font-size:26px; line-height:1.05; }
#main:has([data-dt-id]) :is(.page-heading,.sheet-heading,.almanac-heading,.league-heading,.fc-heading) p { margin:2px 0; font-size:13px; line-height:1.25; }
#main:has([data-dt-id]) :is(.eyebrow,.week-kicker) { font-size:11px; line-height:1.2; }
#main :is(.rct-window,.fc-panel,.sheet-grid-wrap,.history-list,.team-panel):has([data-dt-id]) { box-shadow:none; min-width:0; }
#main :is(.rct-window-body,.weights-body,.fc-table-scroll,.table-container,.sheet-grid-wrap,.history-list-scroll,.depth-table-scroll):has(> [data-dt-id]) { padding:0; border:0; overflow:visible; background:transparent; }
#main :is(.rct-window,.fc-panel):has(> .rct-window-body > [data-dt-id]) { border:0; background:transparent; }
#main :is(.sheet-view-bar,.sheet-toolbar,.almanac-tabs,.almanac-filters,.market-tabs,.fc-filters):has(+ [data-dt-id]),
#main:has([data-dt-id]) :is(.market-tabs,.almanac-tabs) { margin:0 0 4px; padding:0; min-height:26px; }
#main:has([data-dt-id]) :is(.market-tabs,.almanac-tabs) button { min-height:26px; padding:3px 10px; font-size:13px; }
#main:has([data-dt-id]) .almanac-latest { margin:4px 0; padding:4px 8px; }
#main:has([data-dt-id]) .almanac-latest :is(.eyebrow,p) { margin:0; }
#main:has([data-dt-id]) .almanac-latest .fc-scoreboard { font-size:16px; }
#main:has([data-dt-id]) .almanac-latest .fc-scoreboard strong { font-size:22px; }
#main:has([data-dt-id]) .rct-title { padding:4px 8px; min-height:24px; }
#main:has([data-dt-id]) .rct-title h2 { font-size:16px; }
#main:has([data-dt-id]) .fc-help { margin:4px 0; font-size:12px; line-height:1.3; }
#main:has([data-dt-id]) .market-note { margin:6px 0; font-size:12px; }
#main:has([data-dt-id]) .market-season-note { padding:4px 8px; margin:0 0 4px; font-size:13px; }
#main:has([data-dt-id]) .sheet-workspace { align-items:start; }
#main:has([data-dt-id]) .sheet-grid-wrap { max-height:none; }
#main:has([data-dt-id]) .team-heading { padding:8px 10px; }
#main:has([data-dt-id]) .team-heading .team-logo { width:32px; height:32px; }
#main:has([data-dt-id]) .team-heading h3 { font-size:22px; }
#main [data-dt-id] .trade-table-select { display:inline; min-width:0; text-align:left; font-weight:600; }
#main [data-dt-id] .trade-table-select[aria-pressed="true"] { color:var(--selection-ink); }
#main [data-dt-id] .team-logo { width:16px; height:16px; }
#main .box-score-team:has([data-dt-id]) { padding:0; border:0; }
#main .box-score-team:has([data-dt-id]) h4 { margin:0; padding:4px 6px; }
#main .box-score-section:has([data-dt-id]) { margin-bottom:14px; }
@media(min-width:900px) {
  .rct-theme #main[data-screen]:has([data-dt-id]) .page-heading {margin-bottom:2px;}
  .rct-theme:has(#main [data-dt-id]) .sidebar {padding:3px 12px;grid-template-columns:120px minmax(0,1fr) auto;gap:10px;min-height:42px;}
  .rct-theme:has(#main [data-dt-id]) .sidebar .brand {font-size:20px;line-height:.9;}
  .rct-theme:has(#main [data-dt-id]) .sidebar .brand>span {font-size:20px;line-height:.9;}
  .rct-theme:has(#main [data-dt-id]) .sidebar nav {padding:1px;}
  .rct-theme:has(#main [data-dt-id]) .sidebar .brand-ball {width:24px;height:24px;}
  .rct-theme:has(#main [data-dt-id]) .sidebar .nav-item {min-height:32px;padding:3px 8px;font-size:14px;}
  .rct-theme:has(#main [data-dt-id]) .workspace-club {min-height:34px;padding:3px 8px;}
  .rct-theme:has(#main [data-dt-id]) .workspace-club>span {font-size:13px;line-height:1.1;}
  .rct-theme:has(#main [data-dt-id]) .workspace-club small {font-size:11px;line-height:1.1;margin:0;}
  .rct-theme:has(#main [data-dt-id]) .workspace-club .team-logo {width:24px;height:24px;}
  .rct-theme:has(#main [data-dt-id]) .topbar {height:28px;min-height:28px;padding:2px 12px;}
  .rct-theme:has(#main [data-dt-id]) .topbar a {min-height:24px;padding-block:1px;}
  .rct-theme:has(#main [data-dt-id]) .workspace-sections {min-height:28px;padding-block:0;}
  .rct-theme:has(#main [data-dt-id]) .workspace-sections :is(a,button,summary) {min-height:28px;padding:4px 10px;}
  .rct-theme #main[data-screen]:has([data-dt-id]) :is(.page-heading,.sheet-heading,.league-heading)>div:first-child {display:flex;align-items:baseline;gap:12px;}
  .rct-theme #main[data-screen]:has([data-dt-id]) :is(.page-heading,.sheet-heading,.league-heading)>div:first-child h1 {white-space:nowrap;}
  .rct-theme #main[data-screen]:has([data-dt-id]) .page-heading .market-tabs {margin:0;flex-shrink:0;}
  .rct-theme #main[data-screen] .data-table-wrap .dt-column-groups th {height:18px;line-height:15px;}
}
@media(max-width:700px) {
  #main:has([data-dt-id]) { padding:6px 8px 20px; }
  #main:has([data-dt-id]) :is(.page-heading,.sheet-heading,.almanac-heading,.league-heading,.fc-heading) { flex-wrap:wrap; gap:4px; }
  #main:has([data-dt-id]) :is(.page-heading,.sheet-heading,.almanac-heading,.league-heading,.fc-heading) h1 { font-size:24px; }
  #main [data-dt-id] { max-width:100%; min-width:0; }
}
