/* Theme-specific contrast adjustments; base colors come from color-palette.json. */
.brand-logo-light { display: none; }
:root[data-theme="light"] .brand-logo-dark { display: none; }
:root[data-theme="light"] .brand-logo-light {
    display: block;
    flex: 0 0 auto;
    width: 108px;
    height: 48px;
    margin-right: 0;
    background: var(--yt-text);
    mask: url('../images/yotei-overlay-light.png') center / contain no-repeat;
    -webkit-mask: url('../images/yotei-overlay-light.png') center / contain no-repeat;
}

:root[data-theme="light"] :is(.btn-secondary, .warning-settings-actions .btn-secondary,
    .job-sheet-tab.active) {
    color: var(--yt-text);
}
:root[data-theme="light"] .sheet-action-btn:not(:disabled),
:root[data-theme="light"] .sheet-actions:has(.sheet-action-btn:not(:disabled)) .sheet-actions-label {
    color: var(--yt-on-accent);
}
:root[data-theme="light"] .ui.selection.dropdown .menu .item.active {
    color: var(--ink, var(--yt-text)) !important;
}
:root[data-theme="light"] :is(.ui.primary.button, .ui.primary.buttons .button) {
    background: var(--yt-accent) !important;
    border-color: var(--yt-accent) !important;
    color: var(--yt-on-accent) !important;
}
:root[data-theme="light"] :is(.chart-toggle.active, .snapshot-modal-tools button.active, .file-button) {
    color: var(--yt-on-accent);
}
:root[data-theme="light"] .file-button:hover {
    background: var(--accent);
    filter: brightness(1.1);
}
:root[data-theme="light"] .btn-yellow:disabled {
    background: var(--yt-disabled);
    color: var(--yt-muted);
}
:root[data-theme="light"] ::selection {
    color: var(--yt-on-accent);
    background: var(--yt-accent);
}

:root[data-theme="light"] {
    --shadow: 0 1px 2px rgba(var(--yt-black-rgb),.05), 0 8px 22px rgba(var(--yt-black-rgb),.08);
}
:root[data-theme="light"] .custom-video-controls { background: var(--yt-surface); }
:root[data-theme="light"] .app-context-helper-title { color: var(--yt-text); }
:root[data-theme="light"] .timeline-block:not(.off):not(.source-occurrence-block):not(.source-selection-block) {
    background: var(--yt-surface-hover);
    border-right-color: var(--yt-border-strong);
}
:root[data-theme="light"] :is(.sequence-overlay-map-track, .sequence-bgm-map-track) {
    background: var(--yt-surface-hover);
    box-shadow: inset 0 0 0 1px var(--yt-border);
}
:root[data-theme="light"] :is(.sequence-overlay-map-row, .sequence-bgm-map-row).is-selected
    :is(.sequence-overlay-map-track, .sequence-bgm-map-track) {
    box-shadow: inset 0 0 0 1px var(--yt-border-strong);
}
:root[data-theme="light"] .sequence-bgm-volume-segment:hover {
    background: rgba(var(--yt-sequence-rgb),.12);
}
:root[data-theme="light"] :is(.sequence-drag-route-path, .sequence-drag-route-start,
    .sequence-drag-route-merge-end, .sequence-drag-route-insert, .sequence-drag-route-reject) {
    filter: drop-shadow(0 1px .75px rgba(var(--yt-black-rgb),.12));
}
:root[data-theme="light"] .sequence-drag-merge-preview {
    box-shadow: 0 3px 10px rgba(var(--yt-black-rgb),.16);
}
:root[data-theme="light"] :is(.warning-target-input, .warning-target-status) { color: var(--yt-accent); }

:root[data-theme="light"] #cmsLoadButton { color: var(--yt-text); }
:root[data-theme="light"] .header-edited-duration {
    color: var(--yt-accent);
    background: var(--yt-surface);
    border-color: var(--yt-border);
    box-shadow: none;
}
:root[data-theme="light"] .header-edited-duration-label { color: var(--yt-accent); }
:root[data-theme="light"] .warning-label-help-target { color: var(--yt-accent) !important; }
:root[data-theme="light"] :is(.slot-index, .slot-status, .subtitle-required-duration,
    .overlay-context-toolbar, .overlay-context-toolbar-label) { color: var(--yt-accent); }
:root[data-theme="light"] .sequence-overlay-motion-value-menu {
    --yt-white: var(--yt-text);
    --yt-white-rgb: var(--yt-text-rgb);
}

:root[data-theme="light"] .wolf-cloud-limits progress::-webkit-progress-value {
    background: var(--yt-accent);
}
:root[data-theme="light"] .wolf-cloud-limits progress::-moz-progress-bar {
    background: var(--yt-accent);
}

:root[data-theme="light"] .ui.button.compact-warning-toolbar-button {
    color: var(--yt-text) !important;
}

:root[data-theme="light"] .ui.label.wolf-hw-label {
    color: var(--yt-text) !important;
    opacity: 1;
}
