/* Demo roster resources: one server-rendered copy; compact only when it saves height. */
body[data-short-roster-auto] .short-roster-primary,
body[data-short-roster-auto] .short-roster-resources {display:contents}
@media (min-width:900px) {
 body[data-short-roster-auto][data-short-roster-compact] .roster-grid {row-gap:12px}
 body[data-short-roster-auto][data-short-roster-compact] .roster-column {grid-column:1;grid-row:1;align-self:start}
 body[data-short-roster-auto][data-short-roster-compact] .roster-sidebar {display:contents}
 body[data-short-roster-auto][data-short-roster-compact] .short-roster-primary {grid-column:2;grid-row:1 / span 2;display:flex;flex-direction:column;gap:20px;min-width:0;align-self:stretch}
 body[data-short-roster-auto][data-short-roster-compact] .short-roster-resources {grid-column:1;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:12px;min-width:0}
 body[data-short-roster-auto][data-short-roster-compact] .roster-bottom-preview {grid-column:1 / -1;grid-row:3;margin-top:28px}
}
/* Flatten the desktop wrappers so the existing mobile order and spacing stay intact. */
@media (max-width:700px) {
 body[data-short-roster-auto] .short-roster-primary > .tf-sidebar {order:5;width:calc(100% - 40px);margin-inline:auto;margin-bottom:12px}
 body[data-short-roster-auto] .short-roster-resources > * {order:11;width:calc(100% - 40px);margin-inline:auto;margin-bottom:12px}
}
