.pageBody {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: var(--space-4) var(--space-5) var(--space-5);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.72), rgba(255, 255, 255, 0));
}

.trackList {
    display: grid;
    gap: var(--space-4);
}

.trackTabsBar {
    display: flex;
    min-height: 0;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--bg-card);
    padding: var(--space-1);
}

.trackTabs {
    min-width: 0;
    flex: 1;
}

.trackTabs :global(.MuiTabs-flexContainer) {
    gap: var(--space-1);
}

.trackTabs :global(.MuiTabs-indicator) {
    display: none;
}

.trackTabs :global(.MuiTabs-scrollButtons) {
    width: 32px;
    border-radius: var(--radius-control);
    color: var(--text-tertiary);
}

.trackTabs .trackTab {
    min-width: 176px;
    min-height: 48px;
    align-items: flex-start;
    border-radius: var(--radius-control);
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-3);
    text-align: left;
    text-transform: none;
    transition:
        background var(--motion-fast) var(--ease-standard),
        box-shadow var(--motion-fast) var(--ease-standard),
        color var(--motion-fast) var(--ease-standard),
        transform var(--motion-base) var(--ease-emphasized);
}

.trackTabs .trackTab:hover {
    background: var(--primary-hover);
    color: var(--text-primary);
}

.trackTabs .trackTab:global(.Mui-selected) {
    background: var(--primary);
    box-shadow: var(--brand-shadow);
    color: var(--active-contrast);
}

.trackTabs .trackTab:global(.Mui-selected) .trackTabMeta {
    color: rgba(255, 255, 255, 0.76);
}

.trackTabLabel {
    display: grid;
    min-width: 0;
    gap: 3px;
    font-weight: 760;
    line-height: 18px;
}

.trackTabMeta {
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 650;
    line-height: 16px;
    transition: color var(--motion-fast) var(--ease-standard);
}

.tabActions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--space-2);
    padding-right: var(--space-1);
}

.trackSection {
    display: grid;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--bg-card);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.trackHeader {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-soft);
    background: rgba(248, 250, 252, 0.82);
}

.trackTitleGroup,
.identityText,
.stack {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.trackTitleGroup {
    gap: var(--space-2);
}

.trackTitleRow {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.trackTitle {
    overflow: hidden;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trackMetaList {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    color: var(--text-tertiary);
    font-size: var(--admin-font-size);
}

.trackMetaList span {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    border-radius: var(--radius-pill);
    background: rgba(100, 116, 139, 0.09);
    padding: 0 var(--space-2);
    line-height: 1;
}

.meta {
    overflow: hidden;
    color: var(--text-tertiary);
    font-size: var(--admin-font-size);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tableStack {
    display: grid;
    gap: var(--space-3);
    padding: var(--space-4);
}

.tableBlock {
    display: grid;
    gap: var(--space-2);
    min-width: 0;
}

.tableHeader {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.tableTitle {
    color: var(--text-secondary);
    font-size: var(--admin-font-size);
    font-weight: 720;
}

.tableCount {
    display: inline-flex;
    height: 24px;
    flex: 0 0 auto;
    align-items: center;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    background: var(--bg-card-strong);
    color: var(--text-tertiary);
    padding: 0 var(--space-2);
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    margin-left: auto;
}

.tableActions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--space-2);
}

.compactTable {
    flex: 0 0 auto;
    min-height: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
}

.compactTable :global(.table-scroll) {
    flex: 0 0 auto;
}

.compactTable :global(.admin-table) {
    min-height: 0;
}

.compactTable :global(.admin-row) {
    min-height: 52px;
}

.compactTable :global(.admin-row--head),
.compactTable :global(.admin-row--head .admin-cell--fixed-left),
.compactTable :global(.admin-row--head .admin-cell--fixed-right),
.compactTable :global(.admin-cell--head) {
    min-height: 40px;
}

.compactTable :global(.empty-state--table) {
    min-height: 96px;
}

.identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: var(--space-3);
}

.levelBadge,
.rangeBadge {
    display: inline-flex;
    min-width: 62px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-control);
    background: var(--primary-surface);
    color: var(--primary);
    font-size: var(--admin-font-size);
    font-weight: 760;
    line-height: 1;
}

.rangeBadge {
    min-width: 76px;
}

.name,
.resourceText {
    overflow: hidden;
    color: var(--text-primary);
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resourceCell {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: var(--space-2);
}

.resourceThumb {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card-strong);
    color: var(--text-secondary);
}

.resourceThumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.statusCell {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: var(--space-1);
}

.emptyValue {
    color: var(--text-tertiary);
}

.empty {
    display: flex;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: var(--admin-font-size);
}

@media (max-width: 720px) {
    .trackHeader {
        align-items: flex-start;
        flex-direction: column;
    }

    .trackTabsBar {
        align-items: stretch;
        flex-direction: column;
    }

    .pageBody,
    .tableStack,
    .trackHeader {
        padding: var(--space-3);
    }

    .trackTabs .trackTab {
        min-width: 148px;
    }

    .tabActions {
        justify-content: flex-end;
        padding: 0 var(--space-1) var(--space-1);
    }
}
