/* Scoped viewport lists share the application backdrop; teleported dialogs keep their layout. */
.admin-theme .main:is(.agents-main,.rights-main,.suppliers-main) { height:calc(100dvh - 54px); box-sizing:border-box; display:flex; flex-direction:column; overflow:hidden; }
.admin-theme .module-main > :is(.agents-page,.rights-page,.suppliers-page) { flex:1; min-height:0; display:flex; flex-direction:column; gap:12px; padding:0; border:0; background:transparent; box-shadow:none; overflow:hidden; }
.admin-theme :is(.agents-page,.rights-page,.suppliers-page) > :is(h2,p,.page-title,.el-tabs,.el-alert) { flex-shrink:0; margin:0; }
.admin-theme .rights-page > .el-tabs .el-tabs__header { margin:0; }
.admin-theme .rights-page > .entitlement-toolbar { flex-shrink:0; margin:0; padding:10px; gap:8px; }
.agents-toolbar { display:flex; flex-wrap:wrap; gap:8px; flex-shrink:0; }
.table-column-title { font-weight:600; margin-bottom:8px; }
.table-column-options { display:grid; max-height:min(360px, 50dvh); overflow:auto; }
.table-column-options .el-checkbox { margin-right:0; }
.table-column-reset { margin-top:8px; }
:is(.agents-table-panel,.rights-table-panel,.suppliers-table-panel) { flex:1; min-height:0; display:flex; flex-direction:column; overflow:hidden; border:1px solid #ffffffc7; border-radius:16px; background:#ffffffb8; box-shadow:var(--admin-shadow); }
:is(.agents-list,.rights-list,.suppliers-list) { flex:1; min-height:0; overflow:hidden; }
:is(.agents-footer,.rights-footer,.suppliers-footer) { flex-shrink:0; padding:10px 14px; border-top:1px solid #e1eaf8; overflow-x:auto; }
.admin-theme :is(.agents-footer,.rights-footer,.suppliers-footer) .el-pagination { padding:0; margin:0; justify-content:flex-end; }
.agents-table .cell { white-space:nowrap; }
.agents-table td.agent-actions-cell > .cell { padding-inline:8px; text-overflow:clip; }
.scope-price-cell,.scope-price-card { display:grid; line-height:1.4; }
.scope-price-card span { color:var(--el-text-color-secondary); font-size:14px; }
.scope-price-card strong { font-size:16px; }
.scope-price-dialog .scope-price-notice { margin:0 0 8px; font-size:14px; }
.scope-price-drafts { display:grid; max-height:50dvh; overflow-y:auto; margin:16px 0 0; padding:0; list-style:none; }
.scope-price-drafts li { display:grid; grid-template-columns:minmax(0,1fr) 160px 120px; align-items:center; gap:16px; padding:16px 0; border-top:1px solid var(--el-border-color-lighter); }
.scope-price-drafts .el-input-number { width:100%; }
@media(max-width:600px) {
  .scope-price-drafts li { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; }
  .scope-price-card,.scope-price-drafts li:not(.has-price-input) .el-select { grid-column:1/-1; }
  .scope-price-dialog :is(.el-button,.el-select__wrapper,.el-input__wrapper) { min-height:44px; }
}
.rights-tools { flex-shrink:0; padding:12px; }
.rights-tools p { margin:4px 0 0; font-size:12px; }
.admin-theme :is(.agents-list,.rights-list) .el-table td.el-table-fixed-column--right { background:#f7faff; }
.admin-theme :is(.agents-list,.rights-list) .el-table th.el-table-fixed-column--right { background:#eaf2ff; }
.admin-theme :is(.agents-list,.rights-list) .el-table tr:hover > td.el-table-fixed-column--right { background:#edf4ff; }
@media(max-width:900px),(max-height:650px) { .admin-theme .module-main > :is(.agents-page,.rights-page,.suppliers-page) { gap:8px; } :is(.agents-footer,.rights-footer,.suppliers-footer) { padding:8px; } }

/* Application and system registries: retain their pagination model and share a viewport frame. */
.admin-theme .main.viewport-main { height:calc(100dvh - 54px); box-sizing:border-box; display:flex; flex-direction:column; overflow:hidden; }
.admin-theme .module-main > .viewport-page { flex:1; min-height:0; display:flex; flex-direction:column; gap:12px; padding:0; border:0; background:transparent; box-shadow:none; overflow:hidden; }
.admin-theme .viewport-page > :not(.viewport-panel):not(.terminal-content):not(.editor-workspace) { flex-shrink:0; margin-top:0; margin-bottom:0; }
.admin-theme .viewport-page > .el-tabs .el-tabs__header { margin:0; }
.viewport-panel { flex:1; min-height:0; display:flex; flex-direction:column; overflow:hidden; border:1px solid #ffffffc7; border-radius:16px; background:#ffffffb8; box-shadow:var(--admin-shadow); }
.viewport-list { flex:1; min-height:0; overflow:hidden; }
.viewport-footer { flex-shrink:0; padding:10px 14px; border-top:1px solid #e1eaf8; overflow-x:auto; }
.admin-theme .viewport-page .viewport-footer .el-pagination { padding:0; margin:0; justify-content:flex-end; flex-wrap:nowrap; }
.admin-theme .viewport-list .el-table td.el-table-fixed-column--right { background:#f7faff; }
.admin-theme .viewport-list .el-table th.el-table-fixed-column--right { background:#eaf2ff; }
.admin-theme .viewport-list .el-table tr:hover > td.el-table-fixed-column--right { background:#edf4ff; }
.admin-theme .terminal-page > .terminal-content { flex:1; min-height:0; display:flex; flex-direction:column; margin:0; }
.terminal-content > :not(.json-view) { flex-shrink:0; }
.admin-theme .terminal-page .json-view { flex:1; min-height:0; max-height:none; overflow:auto; overflow-wrap:anywhere; }
.admin-theme .player-page > .panel[aria-live] { flex:0 1 auto; min-height:0; max-height:22dvh; overflow:auto; }
@media(max-width:900px),(max-height:650px) { .admin-theme .module-main > .viewport-page { gap:8px; } .viewport-footer { padding:8px; } }

.admin-theme .editor-page > .editor-workspace { flex:1; min-height:0; overflow:auto; }

.admin-theme .player-page > .channel-release-manager { flex:1; min-height:0; gap:12px; border:0; background:transparent; box-shadow:none; }
.channel-release-manager > :not(.viewport-panel) { flex-shrink:0; }
.channel-release-filters,.channel-release-upload { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.channel-release-filters .el-select { width:150px; }
.channel-release-filters .el-select:first-child { width:220px; }
.channel-release-filters .el-input { width:160px; }
.channel-release-upload input { max-width:100%; }
.channel-release-upload .muted { font-size:12px; }
.channel-release-actions { display:flex; align-items:center; gap:8px; white-space:nowrap; }
.channel-release-actions .el-button + .el-button { margin-left:0; }
.channel-release-table td.el-table-fixed-column--right { background:#f7faff; }
.channel-release-table th.el-table-fixed-column--right { background:#eaf2ff; }
.channel-release-table tr:hover > td.el-table-fixed-column--right { background:#edf4ff; }
@media(max-width:560px) { .channel-release-filters :is(.el-input,.el-select),.channel-release-filters .el-select:first-child { width:calc(50% - 4px); } .admin-theme .player-page > .channel-release-manager { gap:8px; } }
