/* Page layouts only; controls and table interaction use the shared system. */
/* These pages already use a grid stack: one 12px gap owns each transition.
   Tabs' 20px margin + the old 16px grid gap + toolbar's 16px top margin
   previously accumulated into a 52px blank band above the search controls. */
:is([data-section-panel="scheduled"],[data-section-panel="redemption"],[data-section-panel="auction"],[data-section-panel="channel-alerts"]) > :is(.scheduled-main-stack,.redemption-main-stack) { gap:12px; }
:is([data-section-panel="scheduled"],[data-section-panel="redemption"],[data-section-panel="auction"],[data-section-panel="channel-alerts"]) > :is(.scheduled-main-stack,.redemption-main-stack) > .scheduled-mode-tabs { margin:0; }
:is([data-section-panel="scheduled"],[data-section-panel="redemption"],[data-section-panel="auction"],[data-section-panel="channel-alerts"]) > :is(.scheduled-main-stack,.redemption-main-stack) > .panel { margin:0; }
:is([data-section-panel="scheduled"],[data-section-panel="redemption"],[data-section-panel="auction"],[data-section-panel="channel-alerts"]) .panel-head { margin-bottom:12px; }
:is([data-section-panel="scheduled"],[data-section-panel="redemption"],[data-section-panel="auction"],[data-section-panel="channel-alerts"]) .business-list-toolbar { margin:0 0 12px; }
:is([data-section-panel="scheduled"],[data-section-panel="redemption"],[data-section-panel="auction"],[data-section-panel="channel-alerts"]) .active-filter-list { margin:0 0 12px; }
.business-list-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-block:16px; min-width:0; }
.business-list-toolbar label { margin:0; min-width:0; }
.business-list-search { flex:0 1 320px; }
.business-list-status { flex:0 1 144px; }
.business-list-toolbar input,.business-list-toolbar select { width:100%; }
#scheduledList.business-list,#redemptionTaskList.business-list,#auctionTaskList.business-list,#channelAlertRuleList.business-list,#speechLibraryItems.business-list,#modelConfigList.business-list { display:block; min-width:0; max-width:100%; overflow-x:auto; }
.business-data-table { width:100%; table-layout:fixed; }
.business-data-table td { overflow-wrap:anywhere; }
.business-data-table td > strong { display:block; font-weight:500; }
.business-data-table td > small { display:block; margin-top:4px; color:var(--muted); font-size:12px; }
.business-data-table .business-result-note { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.business-data-table th:last-child,.business-data-table td:last-child { width:48px; }
.business-data-table .automation-parent-hint { display:block; margin-top:4px; font-size:12px; }
.business-list .business-scheduled-table { min-width:860px; }
.business-scheduled-table th:nth-child(1) { width:27%; }
.business-scheduled-table th:nth-child(2) { width:23%; }
.business-scheduled-table th:nth-child(3) { width:23%; }
.business-list .business-redemption-table,.business-list .business-auction-table { min-width:1060px; }
.business-redemption-table th:nth-child(1),.business-auction-table th:nth-child(1) { width:20%; }
.business-redemption-table th:nth-child(2),.business-auction-table th:nth-child(2) { width:17%; }
.business-redemption-table th:nth-child(3) { width:18%; }
.business-redemption-table th:nth-child(4) { width:18%; }
.business-redemption-table th:nth-child(5),.business-auction-table th:nth-child(5) { width:12%; }
.business-auction-table th:nth-child(3) { width:18%; }
.business-auction-table th:nth-child(4) { width:14%; }
.business-list .business-channel-table { min-width:920px; }
.business-channel-table th:nth-child(1) { width:20%; }
.business-channel-table th:nth-child(2) { width:22%; }
.business-channel-table th:nth-child(3) { width:26%; }
.business-channel-table th:nth-child(4) { width:12%; }
.business-list .business-speech-table { min-width:920px; }
.business-speech-table th:nth-child(1) { width:40%; }
.business-speech-table th:nth-child(2) { width:17%; }
.business-speech-table th:nth-child(3) { width:20%; }
.business-speech-table th:nth-child(4) { width:7%; }
.business-text-preview > summary { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; cursor:pointer; white-space:pre-wrap; overflow-wrap:anywhere; }
.business-text-preview[open] > summary { color:var(--muted); -webkit-line-clamp:1; }
.business-text-preview > div { white-space:pre-wrap; overflow-wrap:anywhere; margin-top:8px; }
#speechLibraryItemToolbar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:16px; }
#speechLibraryItemToolbar > label { flex:0 1 180px; min-width:0; margin:0; }
#speechLibraryItemToolbar > .speech-library-search-field { flex:1 1 260px; }
#speechLibraryItemToolbar .speech-library-filter-field > input,#speechLibraryItemToolbar .speech-library-filter-field > select { width:100%; }
/* Role tables must scroll inside their host, including after shared enhancement. */
.model-center-panel,.model-center-defaults,.model-default-card,.model-default-card > *, .model-default-card-head > div,.model-center-toolbar { min-width:0; max-width:100%; }
.model-default-card small,.model-default-card-head span { overflow-wrap:anywhere; }
.model-default-card label,.model-default-card .select-control,.model-default-card select { min-width:0; max-width:100%; }
@media (max-width:767px) {
  .business-list-search { flex:1 1 150px; }
  .business-list-status { flex:0 1 128px; }
  #speechLibraryItemToolbar > label { flex:1 1 calc(50% - 4px); }
  #speechLibraryItemToolbar > .speech-library-search-field { order:0; flex:1 1 0; }
  .speech-library-pagination { flex-wrap:wrap; gap:8px; }
}
.business-data-table .scheduled-actions { margin:0; padding:0; width:auto; }
.business-data-table .scheduled-actions > .row-overflow-trigger { flex:0 0 auto; }

.business-list .business-model-table { min-width:1100px; }
.business-model-table th:nth-child(1) { width:17%; }
.business-model-table th:nth-child(2) { width:11%; }
.business-model-table th:nth-child(3) { width:17%; }
.business-model-table th:nth-child(4) { width:18%; }
.business-model-table th:nth-child(5) { width:8%; }
.business-model-table th:nth-child(6) { width:12%; }
@media (max-width:767px) {
  [data-section-panel="expression-learning"] > .content-page-header { grid-template-columns:minmax(0,1fr); }
  [data-section-panel="expression-learning"] .content-page-actions { grid-column:1 / -1; grid-row:3; width:100%; justify-content:flex-start; margin-left:0; }
}
