:root {
    color-scheme: light;
    --theme-blue-50: #f4f8ff;
    --theme-blue-100: #eaf2ff;
    --theme-blue-150: #e1edff;
    --theme-blue-200: #d2e2f8;
    --theme-blue-400: #8fb2e2;
    --theme-ink: #1f2937;
}

html,
body {
    background-color: var(--theme-blue-50) !important;
    color: var(--theme-ink);
}

body {
    accent-color: #5486c5;
}

/* Main workspace surfaces */
.topbar,
.sidebar,
.sidebar-logo,
.sidebar .selector-container,
.sidebar .model-list,
.main-content,
.workbench,
.workbench-panel,
.composer,
.composer-footer,
.composer-toolbar,
.sidebar-credit-panel {
    background-color: #f7faff !important;
    border-color: var(--theme-blue-200) !important;
    color: var(--theme-ink);
}

.sidebar {
    background-color: #edf4ff !important;
}

.main-content,
.workbench,
.composer {
    background-color: #f8fbff !important;
}

input,
textarea,
select,
.selector-btn,
.composer-asset-btn,
.prompt-tool-btn,
.asset-tab-btn,
.model-picker-vendor,
.model-picker-model,
.model-picker-channel,
.channel-workbench-card,
.media-settings-option,
.workbench-view-btn,
.history-view-btn,
.ai-director-direction,
.ai-director-type,
.ai-director-tab {
    border-color: #c8d8ec !important;
}

/* Keep hover and selected controls light, with readable dark text. */
html body :is(
    button,
    [role="button"],
    .model-item,
    .channel-item,
    .secondary-item,
    .primary-item,
    .selector-btn,
    .composer-asset-btn,
    .prompt-tool-btn,
    .asset-tab-btn,
    .model-picker-vendor,
    .model-picker-model,
    .model-picker-channel,
    .channel-workbench-card,
    .media-settings-option,
    .workbench-view-btn,
    .history-view-btn,
    .ai-director-direction,
    .ai-director-type,
    .ai-director-tab,
    .sidebar-feature-item,
    .sidebar-director-entry,
    .sidebar-director-shortcut
):is(:hover, .active, .selected, .model-item-active, [aria-selected="true"], [aria-pressed="true"]):not(:disabled) {background-color: #eaf2ff !important;}

html body :is(
    button,
    [role="button"],
    .model-item,
    .channel-item,
    .secondary-item,
    .primary-item,
    .selector-btn,
    .composer-asset-btn,
    .prompt-tool-btn,
    .asset-tab-btn,
    .model-picker-vendor,
    .model-picker-model,
    .model-picker-channel,
    .channel-workbench-card,
    .media-settings-option,
    .workbench-view-btn,
    .history-view-btn,
    .ai-director-direction,
    .ai-director-type,
    .ai-director-tab,
    .sidebar-feature-item,
    .sidebar-director-entry,
    .sidebar-director-shortcut
):is(:hover, .active, .selected, .model-item-active, [aria-selected="true"], [aria-pressed="true"]):not(:disabled) *:not([class*="status"]):not([class*="success"]):not([class*="failure"]):not([class*="error"]):not([class*="price"]):not([class*="duration"]):not([class*="popularity"]) {background-color: #eaf2ff !important;}

html body button:hover:not(:disabled){background-color: #eaf2ff !important;}
html body [role="button"]:hover {background-color: #eaf2ff !important;}

html body button:hover:not(:disabled) *{background-color: #eaf2ff !important;}

.sidebar .model-list .sidebar-feature-item:is(:hover, .model-item-active, .active, .selected){background-color: #eaf2ff !important;}
.sidebar .model-list .sidebar-director-entry:is(:hover, .active, .selected) {background-color: #eaf2ff !important;}

.sidebar .model-list .sidebar-feature-item .model-name,
.sidebar .model-list .sidebar-feature-item .model-description,
.sidebar .model-list .sidebar-director-entry .model-name,
.sidebar .model-list .sidebar-director-entry .model-description {
    color: var(--theme-ink);
}

.model-picker-sort-btn.active{background-color: #eaf2ff !important;}
.model-picker .active{background-color: #eaf2ff !important;}
.workbench-view-switch .active{background-color: #eaf2ff !important;}
.history-view-btn.active {background-color: #eaf2ff !important;}

input:focus{background-color: #eaf2ff !important;}
textarea:focus{background-color: #eaf2ff !important;}
select:focus{background-color: #eaf2ff !important;}
button:focus-visible{background-color: #eaf2ff !important;}
[role="button"]:focus-visible {background-color: #eaf2ff !important;}

table thead,
table thead th {
    background-color: #e8f1ff !important;
    background-image: none !important;
    border-color: #c8d8ec !important;
    color: var(--theme-ink) !important;
}





/* Batch-video replication page */
.replica-model-trigger:hover{background-color: #eaf2ff !important;}
.replica-picker-vendor:hover{background-color: #eaf2ff !important;}
.replica-picker-vendor.active{background-color: #eaf2ff !important;}
.replica-picker-option:hover{background-color: #eaf2ff !important;}
.replica-picker-option.active{background-color: #eaf2ff !important;}
.replica-picker-sort button:hover{background-color: #eaf2ff !important;}
.replica-picker-sort button.active{background-color: #eaf2ff !important;}
.toolbar > .btn:hover{background-color: #eaf2ff !important;}
.select-tools button:hover {background-color: #eaf2ff !important;}



/* Batch generation page */
.batch-page,
.batch-header,
.batch-upload-panel,
.batch-preview-panel,
.batch-picker-dialog,
.batch-picker-column,
.batch-picker-body {
    background-color: #f7faff !important;
    border-color: var(--theme-blue-200) !important;
    color: var(--theme-ink);
}

.batch-model-trigger:hover{background-color: #eaf2ff !important;}
.batch-vendor:hover{background-color: #eaf2ff !important;}
.batch-vendor.active{background-color: #eaf2ff !important;}
.batch-channel-sort button:hover{background-color: #eaf2ff !important;}
.batch-channel-sort button[aria-pressed="true"]{background-color: #eaf2ff !important;}
.batch-model-option:hover{background-color: #eaf2ff !important;}
.batch-channel-option:hover{background-color: #eaf2ff !important;}
.batch-model-option.active{background-color: #eaf2ff !important;}
.batch-channel-option.active{background-color: #eaf2ff !important;}
.batch-link:hover{background-color: #eaf2ff !important;}
.batch-page button:hover:not(:disabled) {background-color: #eaf2ff !important;}


.batch-channel-sort button[aria-pressed="true"] *{background-color: #eaf2ff !important;}
.batch-page button:hover:not(:disabled) * {background-color: #eaf2ff !important;}



.batch-page tbody tr:hover{background-color: #eaf2ff !important;}

.batch-page input:focus{background-color: #eaf2ff !important;}
.batch-page select:focus{background-color: #eaf2ff !important;}
.batch-page textarea:focus {background-color: #eaf2ff !important;}
