#page-whiteboard-animator.hidden { display: none !important; }

#page-whiteboard-animator {
    --whiteboard-bg: #080d14;
    --whiteboard-panel: #0e1622;
    --whiteboard-panel-2: #121d2c;
    --whiteboard-panel-3: #172438;
    --whiteboard-border: rgba(105, 137, 179, .22);
    --whiteboard-border-strong: rgba(105, 151, 214, .42);
    --whiteboard-blue: #4388ff;
    --whiteboard-blue-light: #75a9ff;
    --whiteboard-cyan: #54d8ff;
    --whiteboard-green: #35d49a;
    --whiteboard-red: #ff6685;
    --whiteboard-amber: #f9b84a;
    --whiteboard-text: #d8e4f3;
    --whiteboard-muted: #74869f;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 326px minmax(0, 1fr);
    gap: 8px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 6px;
    color: var(--whiteboard-text);
    background:
        radial-gradient(circle at 72% -20%, rgba(57, 127, 255, .12), transparent 38%),
        linear-gradient(135deg, #080d14 0%, #0a111c 54%, #080d14 100%);
    color-scheme: dark;
}

#page-whiteboard-animator *, #page-whiteboard-animator *::before, #page-whiteboard-animator *::after { box-sizing: border-box; }
#page-whiteboard-animator [hidden] { display: none !important; }

.whiteboard-sidebar, .whiteboard-workspace {
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(14, 22, 34, 0.7), rgba(8, 13, 20, 0.8));
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.whiteboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
}

.whiteboard-brand { position: relative; border-bottom: 1px solid var(--whiteboard-border); padding: 3px 0 13px; }
.whiteboard-brand::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 54px; height: 1px; background: linear-gradient(90deg, var(--whiteboard-blue), transparent); }
.whiteboard-brand h1 { margin: 0; color: #f2f7ff; font-size: 20px; line-height: 1.2; letter-spacing: -.025em; }
.whiteboard-brand p { margin: 5px 0 0; color: var(--whiteboard-muted); font-size: 12px; }

.whiteboard-button {
    min-height: 38px;
    border: 1px solid var(--whiteboard-border-strong);
    border-radius: 9px;
    padding: 8px 13px;
    color: var(--whiteboard-text);
    background: linear-gradient(180deg, rgba(31, 49, 73, .9), rgba(20, 33, 50, .9));
    box-shadow: inset 0 1px rgba(255, 255, 255, .035);
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.whiteboard-button:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(100, 166, 255, .75); color: #fff; background: linear-gradient(180deg, #253b59, #192b43); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.whiteboard-button:active:not(:disabled) { transform: translateY(0); }
.whiteboard-button-primary {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #c026d3);
    box-shadow: 0 8px 22px rgba(192, 38, 211, 0.3), inset 0 1px rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}
.whiteboard-button-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: whiteboard-button-shimmer 3s infinite;
}
@keyframes whiteboard-button-shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}
.whiteboard-button-primary:hover:not(:disabled) { border-color: transparent; background: linear-gradient(135deg, #6366f1, #d946ef); box-shadow: 0 10px 28px rgba(192, 38, 211, 0.4); }
.whiteboard-button-danger:not(:disabled):hover { border-color: rgba(255, 102, 133, .68); color: #ffd6de; background: linear-gradient(180deg, rgba(99, 35, 53, .72), rgba(54, 25, 37, .8)); }
.whiteboard-button:disabled { cursor: not-allowed; opacity: 0.6; filter: none; border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.4); }
.whiteboard-button-icon { display: inline-grid; width: 20px; height: 20px; margin-right: 5px; place-items: center; border-radius: 6px; background: rgba(255, 255, 255, .14); font-size: 17px; line-height: 1; }
.whiteboard-top-actions { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 7px; }
.whiteboard-top-actions .whiteboard-button { min-width: 0; min-height: 34px; padding: 5px 9px; font-size: 12px; }
.whiteboard-saved-work-button { color: #b8c9df; background: linear-gradient(180deg, rgba(27, 43, 65, .95), rgba(17, 29, 45, .95)); }
.whiteboard-add-button { min-height: 34px; }
.whiteboard-save-button { flex: 0 0 auto; }

.whiteboard-file-name { min-height: 15px; margin: -1px 2px 0; color: var(--whiteboard-muted); font-size: 11px; }

.whiteboard-settings { display: flex; flex: 1; min-height: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--whiteboard-border); border-radius: 11px; background: rgba(8, 14, 23, .34); }
.whiteboard-settings > h2 { margin: 0; border-bottom: 1px solid var(--whiteboard-border); padding: 11px 12px; color: var(--whiteboard-blue-light); background: rgba(15, 25, 39, .9); font-size: 11px; line-height: 1; letter-spacing: .1em; text-transform: uppercase; }
.whiteboard-settings-accordion { display: grid; min-height: 0; align-content: start; gap: 4px; padding: 6px; }
.whiteboard-settings-group { overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.03); border-radius: 12px; background: rgba(255, 255, 255, 0.02); transition: all .3s ease; }
.whiteboard-settings-group[open] { border-color: rgba(99, 102, 241, 0.3); background: rgba(15, 26, 41, 0.6); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2), -3px 0 0 #6366f1; }
.whiteboard-settings-group summary { display: grid; min-height: 36px; grid-template-columns: minmax(0, 1fr) auto; align-content: center; gap: 2px 10px; padding: 5px 30px 5px 10px; color: #c8d7e9; cursor: pointer; list-style: none; position: relative; user-select: none; }
.whiteboard-settings-group summary::-webkit-details-marker { display: none; }
.whiteboard-settings-group summary::after { content: '›'; position: absolute; top: 50%; right: 11px; color: var(--whiteboard-blue-light); font-size: 19px; line-height: 1; transform: translateY(-50%); transition: transform .18s ease; }
.whiteboard-settings-group[open] summary::after { transform: translateY(-50%) rotate(90deg); }
.whiteboard-settings-group summary:hover { color: #fff; background: rgba(67, 136, 255, .07); }
.whiteboard-settings-group summary:focus-visible { outline: 2px solid var(--whiteboard-blue); outline-offset: -2px; }
.whiteboard-settings-group summary > span { font-size: 12px; font-weight: 750; }
.whiteboard-settings-group summary > small { align-self: center; color: #657993; font-size: 11px; font-weight: 500; white-space: nowrap; }
.whiteboard-settings-group-content { border-top: 1px solid var(--whiteboard-border); padding: 9px 10px; animation: whiteboard-settings-open .2s ease both; }
.whiteboard-settings-group-content > :last-child { margin-bottom: 0; }
.whiteboard-settings-group-content .whiteboard-range-field,
.whiteboard-settings-group-content .whiteboard-select-field { margin-bottom: 10px; }
.whiteboard-settings-group-content .whiteboard-save-modes label { min-height: 40px; padding-block: 6px; }
.whiteboard-settings-actions { display: grid; flex: 0 0 auto; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 7px; }
.whiteboard-reset-button { color: #f87171; border: 1px solid rgba(248, 113, 113, 0.3); background: rgba(239, 68, 68, 0.05); }
.whiteboard-reset-button:hover:not(:disabled) { border-color: #ef4444; color: #fca5a5; background: rgba(239, 68, 68, 0.15); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1); }
.whiteboard-toggle-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 14px; border: 1px solid var(--whiteboard-border); border-radius: 9px; padding: 9px 10px; background: rgba(8, 14, 23, .5); cursor: pointer; }
.whiteboard-toggle-field strong, .whiteboard-toggle-field small { display: block; }
.whiteboard-toggle-field strong { color: #c8d7e9; font-size: 12px; }
.whiteboard-toggle-field small { margin-top: 3px; color: #657993; font-size: 10px; line-height: 1.35; }
.whiteboard-toggle-field input { width: 34px; height: 18px; margin: 0; accent-color: var(--whiteboard-blue); cursor: pointer; }
#whiteboard-hand-options { transition: opacity .18s ease, filter .18s ease; }
#whiteboard-hand-options.is-disabled { opacity: .38; filter: grayscale(.6); }
#whiteboard-color-reveal-options { transition: opacity .18s ease, filter .18s ease; }
#whiteboard-color-reveal-options.is-disabled > :not(.whiteboard-setting-note) { display: none; }
.whiteboard-setting-note { display: block; margin: 0 0 14px; border: 1px solid rgba(67, 136, 255, .24); border-radius: 8px; padding: 9px 10px; color: #88a5c8; background: rgba(37, 76, 132, .14); font-size: 11px; line-height: 1.45; }
.whiteboard-settings-group :disabled { cursor: not-allowed; }
.whiteboard-table-scroll::-webkit-scrollbar, .whiteboard-hand-grid::-webkit-scrollbar, .whiteboard-session-list::-webkit-scrollbar { width: 7px; height: 7px; }
.whiteboard-table-scroll::-webkit-scrollbar-thumb, .whiteboard-hand-grid::-webkit-scrollbar-thumb, .whiteboard-session-list::-webkit-scrollbar-thumb { border-radius: 99px; background: #2d4566; }
@keyframes whiteboard-settings-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.whiteboard-range-field { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin-bottom: 16px; color: #b8c7da; font-size: 12px; }
.whiteboard-range-field output { color: var(--whiteboard-blue-light); font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; }
.whiteboard-range-field input { grid-column: 1 / -1; width: 100%; height: 6px; margin: 6px 0; accent-color: #a855f7; background: rgba(255,255,255,0.1); border-radius: 4px; cursor: pointer; transition: filter 0.2s; }
.whiteboard-range-field input:hover { filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.6)); }
.whiteboard-select-field { display: grid; gap: 7px; margin-bottom: 16px; color: #b8c7da; font-size: 12px; }
.whiteboard-select-field select { width: 100%; min-height: 36px; border: 1px solid var(--whiteboard-border-strong); border-radius: 8px; padding: 5px 8px; color: var(--whiteboard-text); background: #152236; font: inherit; font-size: 12px; }
.whiteboard-select-field small { color: #61748e; font-size: 11px; line-height: 1.45; }
.whiteboard-output-field { display: grid; gap: 7px; color: #b8c7da; font-size: 12px; }
.whiteboard-output-path { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 7px; }
.whiteboard-output-path input { min-width: 0; height: 42px; overflow: hidden; border: 1px solid var(--whiteboard-border-strong); border-radius: 8px; padding: 0 10px; color: #aebdd0; background: #0c1521; font: inherit; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.whiteboard-output-path button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--whiteboard-border-strong); border-radius: 8px; color: var(--whiteboard-blue-light); background: #17263a; font: inherit; font-size: 15px; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.whiteboard-output-path button:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--whiteboard-blue); background: #203755; }
.whiteboard-output-field > small { color: #61748e; font-size: 10px; line-height: 1.45; }
.whiteboard-save-modes { display: grid; gap: 7px; margin: 12px 0 0; border: 0; padding: 0; }
.whiteboard-save-modes legend { margin-bottom: 7px; padding: 0; color: #8799b0; font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.whiteboard-save-modes label { display: grid; grid-template-columns: 17px minmax(0, 1fr); min-height: 48px; align-items: center; gap: 8px; border: 1px solid var(--whiteboard-border); border-radius: 9px; padding: 8px 9px; background: rgba(15, 25, 39, .72); cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.whiteboard-save-modes label:has(input:checked) { border-color: rgba(67, 136, 255, .7); background: rgba(35, 70, 118, .28); box-shadow: inset 0 0 0 1px rgba(67, 136, 255, .12); }
.whiteboard-save-modes input { width: 15px; height: 15px; margin: 0; accent-color: var(--whiteboard-blue); }
.whiteboard-save-modes strong, .whiteboard-save-modes small { display: block; }
.whiteboard-save-modes strong { color: #c8d6e8; font-size: 11px; line-height: 1.3; }
.whiteboard-save-modes small { margin-top: 3px; color: #61748e; font-size: 11px; line-height: 1.35; }
.whiteboard-output-path button:disabled, .whiteboard-save-modes label:has(input:disabled) { cursor: not-allowed; opacity: .45; }
.whiteboard-section-divider { display: flex; align-items: center; gap: 8px; margin: 19px 0 14px; color: var(--whiteboard-blue-light); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.whiteboard-section-divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--whiteboard-border-strong), transparent); }
.whiteboard-total { display: grid; grid-template-columns: 1fr auto; gap: 5px; border: 1px solid rgba(53, 212, 154, .15); border-radius: 9px; padding: 10px; background: rgba(53, 212, 154, .045); font-size: 11px; }
.whiteboard-total > span { color: #93a5bb; }
.whiteboard-total > span span, .whiteboard-total strong { color: var(--whiteboard-green); }
.whiteboard-total small { grid-column: 1 / -1; color: #53667f; }

.whiteboard-hand-preview { display: grid; width: 100%; min-height: 76px; place-items: center; gap: 3px; border: 1px solid var(--whiteboard-border); border-radius: 10px; padding: 7px; color: var(--whiteboard-muted); background: #0b121d; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.whiteboard-hand-preview:hover { transform: translateY(-1px); border-color: var(--whiteboard-blue); background: #111d2e; }
.whiteboard-hand-preview img { width: 100%; height: 54px; object-fit: contain; }
.whiteboard-hand-preview span { font-size: 10px; }

.whiteboard-workspace { display: flex; min-width: 0; flex-direction: column; overflow: hidden; }
.whiteboard-queue-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--whiteboard-border); padding: 17px 18px; background: linear-gradient(180deg, rgba(20, 32, 49, .86), rgba(14, 23, 36, .7)); }
.whiteboard-queue-heading { min-width: 220px; }
.whiteboard-eyebrow { display: block; margin-bottom: 5px; color: var(--whiteboard-cyan); font-size: 10px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.whiteboard-queue-heading h2 { margin: 0; color: #f2f7ff; font-size: 19px; letter-spacing: -.02em; }
.whiteboard-queue-heading p { margin: 4px 0 0; color: var(--whiteboard-muted); font-size: 11px; }
.whiteboard-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.whiteboard-toolbar .whiteboard-button { min-height: 44px; padding: 8px 11px; font-size: 11px; white-space: nowrap; }
.whiteboard-toolbar .whiteboard-generate-button { min-width: 166px; }
.whiteboard-generate-button span, .whiteboard-pause-button span { margin-right: 5px; font-size: 10px; }
.whiteboard-pause-button.is-paused { border-color: rgba(53, 212, 154, .62); color: #baf5df; background: linear-gradient(180deg, rgba(35, 91, 73, .72), rgba(22, 55, 48, .82)); box-shadow: 0 8px 20px rgba(16, 102, 76, .14); }
.whiteboard-pause-button.is-paused:hover:not(:disabled) { border-color: var(--whiteboard-green); color: #fff; background: linear-gradient(180deg, rgba(43, 117, 91, .82), rgba(25, 72, 59, .9)); }

.whiteboard-queue-shell { position: relative; flex: 1; min-height: 0; overflow: hidden; background: rgba(6, 11, 18, .3); }
.whiteboard-table-scroll { width: 100%; height: 100%; overflow: auto; scrollbar-width: thin; scrollbar-color: #2d4566 transparent; }
.whiteboard-job-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0 8px; table-layout: fixed; }
.whiteboard-job-table th { position: sticky; z-index: 2; top: 0; height: 38px; border-bottom: none; padding: 0 12px; color: #6f839e; background: transparent; font-size: 10px; font-weight: 850; letter-spacing: .11em; text-align: left; text-transform: uppercase; }
.whiteboard-table-head-button { display: inline-flex; width: 100%; height: 30px; align-items: center; justify-content: flex-start; gap: 6px; border: 0; padding: 0; color: inherit; background: transparent; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.whiteboard-table-head-button:hover, .whiteboard-table-head-button:focus-visible, .whiteboard-table-head-button.is-active { color: #b8d3f7; }
.whiteboard-table-head-button:focus-visible { border-radius: 6px; outline: 2px solid rgba(85, 213, 255, .72); outline-offset: 2px; }
.whiteboard-sort-indicator { display: inline-grid; width: 16px; height: 16px; place-items: center; border-radius: 5px; color: #637894; background: rgba(72, 105, 151, .14); font-size: 9px; line-height: 1; }
.whiteboard-table-head-button.is-active .whiteboard-sort-indicator { color: #dbeaff; background: rgba(67, 136, 255, .34); box-shadow: 0 0 0 1px rgba(99, 158, 255, .28); }
.whiteboard-status-filter { position: relative; width: 100%; }
.whiteboard-head-chevron { position: relative; display: inline-grid; width: 18px; height: 18px; margin-left: auto; place-items: center; border: 1px solid rgba(104, 147, 207, .42); border-radius: 5px; color: #b9d2f4; background: rgba(67, 136, 255, .24); }
.whiteboard-head-chevron::before { content: ''; width: 0; height: 0; border-right: 4px solid transparent; border-left: 4px solid transparent; border-top: 5px solid currentColor; transition: transform .16s ease; }
.whiteboard-table-head-button[aria-expanded="true"] .whiteboard-head-chevron::before { transform: rotate(180deg); }
.whiteboard-status-menu { position: absolute; z-index: 12; top: 34px; right: -7px; display: grid; width: 174px; overflow: hidden; border: 1px solid rgba(91, 132, 190, .58); border-radius: 10px; padding: 5px; background: rgba(15, 24, 41, .99); box-shadow: 0 18px 48px rgba(0, 0, 0, .52), inset 0 1px rgba(255, 255, 255, .035); text-transform: none; }
.whiteboard-status-menu[hidden] { display: none; }
.whiteboard-status-menu button { position: relative; min-height: 34px; border: 0; border-radius: 7px; padding: 7px 10px 7px 31px; color: #b7c7db; background: transparent; font: inherit; font-size: 11px; font-weight: 650; letter-spacing: 0; text-align: left; cursor: pointer; }
.whiteboard-status-menu button::before { content: ''; position: absolute; left: 11px; top: 50%; width: 6px; height: 10px; border-right: 2px solid transparent; border-bottom: 2px solid transparent; transform: translateY(-65%) rotate(45deg); }
.whiteboard-status-menu button:hover, .whiteboard-status-menu button:focus-visible { color: #f2f7ff; background: rgba(67, 136, 255, .16); outline: none; }
.whiteboard-status-menu button:focus-visible { box-shadow: inset 0 0 0 1px rgba(85, 213, 255, .55); }
.whiteboard-status-menu button[aria-checked="true"] { color: #e8f2ff; background: rgba(67, 136, 255, .22); }
.whiteboard-status-menu button[aria-checked="true"]::before { border-color: #82bdff; }
.whiteboard-job-table td { height: 91px; border: 1px solid rgba(255,255,255,0.05); border-style: solid none; padding: 10px 12px; vertical-align: middle; background: rgba(20, 28, 40, 0.6); backdrop-filter: blur(8px); transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.whiteboard-job-table td:first-child { border-left-style: solid; border-radius: 12px 0 0 12px; }
.whiteboard-job-table td:last-child { border-right-style: solid; border-radius: 0 12px 12px 0; }
.whiteboard-job-table tbody tr { animation: whiteboard-row-in .36s cubic-bezier(.2, .75, .25, 1) both; }
.whiteboard-job-table tbody tr:nth-child(even) td { background: rgba(24, 34, 48, 0.6); }
.whiteboard-job-table tbody tr:hover td { transform: translateY(-2px); background: rgba(30, 41, 59, 0.8); box-shadow: 0 6px 16px rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.1); }
.whiteboard-job-table tbody tr[data-status="running"] td:first-child { box-shadow: inset 2px 0 var(--whiteboard-blue); }
.whiteboard-job-table tbody tr[data-status="completed"] td:first-child { box-shadow: inset 2px 0 var(--whiteboard-green); }
.whiteboard-job-table tbody tr[data-status="failed"] td:first-child { box-shadow: inset 2px 0 var(--whiteboard-red); }
.whiteboard-check-column { width: 40px; text-align: center !important; }
.whiteboard-number-column { width: 58px; }
.whiteboard-job-table th.whiteboard-number-column { padding-inline: 8px; }
.whiteboard-status-column { z-index: 4 !important; width: 166px; overflow: visible; }
.whiteboard-actions-column { width: 180px; text-align: right !important; }
.whiteboard-job-table input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--whiteboard-blue); cursor: pointer; }
.whiteboard-job-number { color: #8194ae; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }

.whiteboard-media-cell { display: flex; min-width: 0; align-items: center; gap: 11px; }
.whiteboard-media-thumb { position: relative; display: grid; flex: 0 0 88px; width: 88px; height: 58px; place-items: center; overflow: hidden; border: 1px solid var(--whiteboard-border); border-radius: 8px; background: #080d14; box-shadow: 0 7px 18px rgba(0, 0, 0, .2); }
.whiteboard-media-thumb img, .whiteboard-media-thumb video { width: 100%; height: 100%; object-fit: cover; }
.whiteboard-media-thumb video { pointer-events: none; }
.whiteboard-source-thumb { padding: 0; cursor: zoom-in; }
.whiteboard-source-thumb:hover, .whiteboard-source-thumb:focus-visible { border-color: var(--whiteboard-cyan); box-shadow: 0 0 0 2px rgba(85, 213, 255, .12), 0 10px 24px rgba(0, 0, 0, .3); }
.whiteboard-media-copy { min-width: 0; }
.whiteboard-media-copy strong { display: block; overflow: hidden; color: #d9e5f4; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.whiteboard-media-copy small { display: block; margin-top: 5px; color: #60738d; font-size: 10px; }
.whiteboard-result-empty { border-style: dashed; color: #49607b; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.whiteboard-video-ready { border-color: rgba(53, 212, 154, .42); }

.whiteboard-status-stack { display: grid; gap: 7px; }
.whiteboard-status-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.whiteboard-status-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; border: 1px solid var(--whiteboard-border); border-radius: 99px; padding: 3px 8px; color: #91a3ba; background: rgba(18, 30, 47, .85); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.whiteboard-status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255, 255, 255, .025); }
.whiteboard-status-badge.is-ready { color: #8fa3bd; }
.whiteboard-status-badge.is-queued { color: var(--whiteboard-amber); }
.whiteboard-status-badge.is-running { color: var(--whiteboard-blue-light); }
.whiteboard-status-badge.is-running::before { animation: whiteboard-pulse 1.15s ease-in-out infinite; }
.whiteboard-status-badge.is-completed { color: var(--whiteboard-green); }
.whiteboard-status-badge.is-failed { color: var(--whiteboard-red); }
.whiteboard-status-badge.is-cancelled { color: #8794a7; }
.whiteboard-row-percent { color: #7387a2; font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }
.whiteboard-row-progress { height: 4px; overflow: hidden; border-radius: 99px; background: #1b2a3e; }
.whiteboard-row-progress span { position: relative; display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--whiteboard-blue), var(--whiteboard-cyan)); transition: width .2s ease; }
.whiteboard-row-progress span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-100%); animation: whiteboard-shimmer 1.25s linear infinite; }
.whiteboard-row-message { overflow: hidden; color: #61758f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.whiteboard-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.whiteboard-row-button { min-height: 30px; border: 1px solid rgba(72, 137, 236, .62); border-radius: 8px; padding: 5px 9px; color: #cfe1ff; background: linear-gradient(180deg, rgba(45, 99, 180, .62), rgba(25, 59, 106, .78)); font: inherit; font-size: 10px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.whiteboard-row-button:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--whiteboard-cyan); background: linear-gradient(180deg, rgba(53, 116, 211, .8), rgba(29, 73, 133, .9)); box-shadow: 0 7px 18px rgba(25, 95, 202, .2); }
.whiteboard-row-button.is-primary { border-color: rgba(53, 212, 154, .62); color: #c8f8e7; background: linear-gradient(180deg, rgba(35, 115, 87, .74), rgba(22, 72, 59, .86)); }
.whiteboard-row-button.is-danger { border-color: rgba(255, 94, 122, .55); color: #ffd1da; background: rgba(71, 28, 41, .82); }
.whiteboard-icon-button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--whiteboard-border); border-radius: 8px; color: #91a4bc; background: #132033; font: inherit; font-size: 12px; cursor: pointer; transition: transform .15s ease, border-color .15s ease, color .15s ease, background .15s ease; }
.whiteboard-icon-button:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--whiteboard-blue); color: #fff; background: #1d3150; }
.whiteboard-icon-button.is-danger:hover:not(:disabled) { border-color: var(--whiteboard-red); color: #ffd1da; background: #3b1d29; }
.whiteboard-icon-button:disabled { cursor: not-allowed; opacity: .28; }

.whiteboard-empty-state { position: absolute; inset: 38px 0 0; display: grid; place-content: center; place-items: center; padding: 30px; text-align: center; }
.whiteboard-empty-state strong { margin-top: 18px; color: #fff; font-size: 18px; text-shadow: 0 2px 10px rgba(255,255,255,0.2); }
.whiteboard-empty-state p { margin: 7px 0 22px; color: #94a3b8; font-size: 12px; }
.whiteboard-empty-state .whiteboard-button { min-width: 180px; font-size: 13px; }
.whiteboard-empty-visual { position: relative; width: 104px; height: 70px; animation: whiteboard-float-icon 4s ease-in-out infinite; }
.whiteboard-empty-visual::before { content: ''; position: absolute; top: 50%; left: 50%; width: 100px; height: 100px; background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent 70%); transform: translate(-50%, -50%); filter: blur(20px); z-index: -1; }
@keyframes whiteboard-float-icon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.whiteboard-empty-visual span { position: absolute; width: 62px; height: 44px; border: 1px solid rgba(91, 153, 244, .5); border-radius: 12px; background: linear-gradient(145deg, rgba(52, 120, 246, .2), rgba(84, 216, 255, .05)); box-shadow: 0 10px 25px rgba(0, 0, 0, .3); backdrop-filter: blur(4px); }
.whiteboard-empty-visual span:nth-child(1) { left: 0; top: 17px; transform: rotate(-8deg); }
.whiteboard-empty-visual span:nth-child(2) { z-index: 1; left: 21px; top: 7px; }
.whiteboard-empty-visual span:nth-child(3) { right: 0; top: 17px; transform: rotate(8deg); }
.whiteboard-empty-visual::after { content: '▶'; position: absolute; z-index: 2; left: 42px; top: 25px; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #fff; background: var(--whiteboard-blue); box-shadow: 0 0 24px rgba(67, 136, 255, .55); font-size: 10px; }

.whiteboard-batch-footer { display: grid; flex: 0 0 auto; grid-template-columns: auto minmax(260px, 1fr); align-items: center; gap: 24px; border-top: 1px solid var(--whiteboard-border); padding: 11px 17px; background: rgba(10, 17, 27, .96); }
.whiteboard-batch-stats { display: flex; gap: 14px; }
.whiteboard-batch-stats span { color: #61748d; font-size: 11.5px; white-space: nowrap; }
.whiteboard-batch-stats strong { margin-right: 3px; color: #cbd9ea; font-size: 12.5px; }
.whiteboard-batch-stats .is-running strong { color: var(--whiteboard-blue-light); }
.whiteboard-batch-stats .is-complete strong { color: var(--whiteboard-green); }
.whiteboard-batch-stats .is-failed strong { color: var(--whiteboard-red); }
.whiteboard-batch-progress { display: grid; gap: 6px; }
.whiteboard-batch-progress > div:first-child { display: flex; justify-content: space-between; color: #6f8199; font-size: 11.5px; }
.whiteboard-batch-progress strong { color: var(--whiteboard-blue-light); font-variant-numeric: tabular-nums; }
.whiteboard-progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: #1a293d; }
.whiteboard-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #397cf5, #55d5ff); box-shadow: 0 0 14px rgba(67, 136, 255, .48); transition: width .25s ease; }

.whiteboard-hand-dialog, .whiteboard-preview-dialog, .whiteboard-create-dialog, .whiteboard-session-dialog { width: min(860px, calc(100vw - 48px)); max-height: min(720px, calc(100vh - 48px)); margin: auto; overflow: hidden; border: 1px solid var(--whiteboard-border-strong); border-radius: 15px; padding: 0; color: var(--whiteboard-text); background: #0d1623; box-shadow: 0 30px 90px rgba(0, 0, 0, .72); }
.whiteboard-hand-dialog::backdrop, .whiteboard-preview-dialog::backdrop, .whiteboard-create-dialog::backdrop, .whiteboard-session-dialog::backdrop { background: rgba(2, 7, 13, .8); backdrop-filter: blur(5px); }
.whiteboard-hand-dialog[open], .whiteboard-preview-dialog[open], .whiteboard-create-dialog[open], .whiteboard-session-dialog[open] { animation: whiteboard-dialog-in .22s ease both; }
.whiteboard-dialog-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--whiteboard-border); padding: 15px 17px; background: #111d2c; }
.whiteboard-dialog-header h2 { margin: 0; color: #f1f6fd; font-size: 17px; }
.whiteboard-dialog-header p { margin: 4px 0 0; color: var(--whiteboard-muted); font-size: 11px; }
.whiteboard-dialog-header button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--whiteboard-border); border-radius: 9px; color: #a9b9cc; background: #17263a; font-size: 21px; cursor: pointer; }
.whiteboard-hand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; max-height: 580px; overflow-y: auto; padding: 15px; }
.whiteboard-hand-option { position: relative; display: grid; min-height: 145px; place-items: center; gap: 5px; border: 1px solid var(--whiteboard-border); border-radius: 10px; padding: 9px; color: var(--whiteboard-muted); background: #0a111b; cursor: pointer; transition: transform .17s ease, border-color .17s ease, background .17s ease; }
.whiteboard-hand-option:hover { transform: translateY(-2px); border-color: var(--whiteboard-blue); background: #132238; }
.whiteboard-hand-option.selected { border-color: var(--whiteboard-blue); box-shadow: inset 0 0 0 1px var(--whiteboard-blue), 0 10px 25px rgba(30, 93, 196, .16); color: var(--whiteboard-blue-light); }
.whiteboard-hand-option.selected::after { content: '✓'; position: absolute; top: 8px; right: 9px; display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: #fff; background: var(--whiteboard-blue); }
.whiteboard-hand-option img { width: 100%; height: 105px; object-fit: contain; }
.whiteboard-hand-option span { font-size: 11px; }
.whiteboard-source-hover { position: fixed; z-index: 10020; top: 50%; width: min(58vw, 760px); max-height: 76vh; overflow: hidden; border: 1px solid rgba(108, 157, 226, .58); border-radius: 14px; padding: 9px; color: var(--whiteboard-text); background: rgba(7, 13, 22, .96); box-shadow: 0 28px 80px rgba(0, 0, 0, .72), 0 0 0 1px rgba(255,255,255,.025); pointer-events: none; transform: translateY(-50%); animation: whiteboard-source-in .16s ease both; backdrop-filter: blur(10px); }
.whiteboard-source-hover[hidden] { display: none; }
.whiteboard-source-hover img { display: block; width: 100%; max-height: calc(76vh - 52px); border-radius: 9px; object-fit: contain; background: #05080d; }
.whiteboard-source-hover div { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 8px 4px 1px; }
.whiteboard-source-hover span { flex: 0 0 auto; color: var(--whiteboard-blue-light); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.whiteboard-source-hover strong { overflow: hidden; color: #e7f0fb; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.whiteboard-preview-dialog { width: min(980px, calc(100vw - 64px)); }
.whiteboard-preview-dialog-body { display: grid; min-height: 480px; place-items: center; padding: 16px; background: #060a10; }
.whiteboard-preview-dialog video { width: 100%; max-height: calc(100vh - 190px); border-radius: 10px; background: #000; }
.whiteboard-create-dialog { width: min(620px, calc(100vw - 48px)); }
.whiteboard-create-dialog-body { display: grid; gap: 16px; padding: 18px; background: linear-gradient(155deg, rgba(18, 31, 48, .96), rgba(10, 17, 28, .98)); }
.whiteboard-create-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.whiteboard-create-summary div { display: grid; min-height: 88px; place-content: center; gap: 5px; border: 1px solid rgba(102, 143, 198, .24); border-radius: 11px; background: rgba(12, 22, 36, .78); text-align: center; }
.whiteboard-create-summary strong { color: #8dc1ff; font-size: 23px; font-variant-numeric: tabular-nums; line-height: 1; }
.whiteboard-create-summary span { color: #7d90a9; font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.whiteboard-create-summary .is-replace { border-color: rgba(255, 175, 74, .25); background: rgba(58, 39, 21, .46); }
.whiteboard-create-summary .is-replace strong { color: #ffb65b; }
.whiteboard-create-summary .is-skipped strong { color: #8b9aaf; }
.whiteboard-create-note { margin: 0; border-left: 2px solid rgba(67, 136, 255, .72); padding: 3px 0 3px 10px; color: #8295ad; font-size: 11px; line-height: 1.55; }
.whiteboard-create-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid rgba(106, 140, 185, .16); padding-top: 15px; }
.whiteboard-create-actions .whiteboard-button { min-height: 44px; padding-inline: 14px; }
.whiteboard-create-actions .whiteboard-button-primary { min-width: 150px; }
.whiteboard-session-dialog { width: min(780px, calc(100vw - 48px)); }
.whiteboard-session-body { display: grid; gap: 12px; padding: 16px; }
.whiteboard-session-current { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid rgba(67, 136, 255, .28); border-radius: 11px; padding: 11px 12px; background: linear-gradient(135deg, rgba(36, 78, 137, .22), rgba(17, 31, 49, .78)); }
.whiteboard-session-current span, .whiteboard-session-current strong { display: block; }
.whiteboard-session-current span { margin-bottom: 3px; color: #6f83a0; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.whiteboard-session-current strong { overflow: hidden; color: #e4edf9; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.whiteboard-session-list { display: grid; gap: 9px; max-height: min(500px, calc(100vh - 250px)); overflow-y: auto; padding-right: 4px; }
.whiteboard-session-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 1px solid var(--whiteboard-border); border-radius: 11px; padding: 12px; background: rgba(9, 16, 26, .72); animation: whiteboard-row-in .26s ease both; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.whiteboard-session-item:hover { transform: translateY(-1px); border-color: rgba(105, 151, 214, .5); background: rgba(17, 29, 45, .88); }
.whiteboard-session-item.is-current { border-color: rgba(67, 136, 255, .68); box-shadow: inset 3px 0 var(--whiteboard-blue); }
.whiteboard-session-title { display: flex; min-width: 0; align-items: center; gap: 8px; }
.whiteboard-session-title strong { overflow: hidden; color: #e1ebf8; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.whiteboard-session-status { flex: 0 0 auto; border: 1px solid currentColor; border-radius: 99px; padding: 3px 7px; font-size: 10px; font-weight: 800; }
.whiteboard-session-status.is-complete { color: var(--whiteboard-green); }
.whiteboard-session-status.is-incomplete { color: var(--whiteboard-amber); }
.whiteboard-session-status.is-broken { color: var(--whiteboard-red); }
.whiteboard-session-meta { margin-top: 6px; color: #6f829b; font-size: 11px; }
.whiteboard-session-actions { display: flex; align-items: center; gap: 6px; }
.whiteboard-session-actions .whiteboard-button { min-height: 36px; padding: 7px 10px; font-size: 11px; white-space: nowrap; }
.whiteboard-session-empty { display: grid; min-height: 220px; place-content: center; gap: 7px; border: 1px dashed var(--whiteboard-border); border-radius: 12px; color: #6d819c; text-align: center; }
.whiteboard-session-empty strong { color: #dbe7f6; font-size: 15px; }
.whiteboard-session-empty span { font-size: 11px; }

#page-whiteboard-animator button:focus-visible, #page-whiteboard-animator input:focus-visible, #page-whiteboard-animator select:focus-visible { outline: 2px solid var(--whiteboard-cyan); outline-offset: 2px; }

@keyframes whiteboard-row-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes whiteboard-pulse { 0%, 100% { opacity: .45; box-shadow: 0 0 0 2px rgba(117, 169, 255, .08); } 50% { opacity: 1; box-shadow: 0 0 0 5px rgba(117, 169, 255, .12); } }
@keyframes whiteboard-shimmer { to { transform: translateX(100%); } }
@keyframes whiteboard-dialog-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes whiteboard-source-in { from { opacity: 0; transform: translateY(-48%) scale(.985); } to { opacity: 1; transform: translateY(-50%) scale(1); } }

@media (max-width: 1180px) {
    #page-whiteboard-animator { grid-template-columns: 294px minmax(0, 1fr); }
    .whiteboard-queue-header { align-items: flex-start; flex-direction: column; }
    .whiteboard-toolbar { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .whiteboard-batch-footer { grid-template-columns: 1fr; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    #page-whiteboard-animator *, #page-whiteboard-animator *::before, #page-whiteboard-animator *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ──────────────────────────────────────────────────────────
   WHITEBOARD ANIMATOR - SOFT LIGHT THEME
────────────────────────────────────────────────────────── */
body[data-theme="soft-light"] #page-whiteboard-animator {
    --whiteboard-bg: #f3f5f8;
    --whiteboard-panel: #ffffff;
    --whiteboard-panel-2: #f8fafc;
    --whiteboard-panel-3: #e2e8f0;
    --whiteboard-border: rgba(94, 114, 138, 0.25);
    --whiteboard-border-strong: rgba(94, 114, 138, 0.45);
    --whiteboard-blue: #3b82f6;
    --whiteboard-blue-light: #60a5fa;
    --whiteboard-cyan: #06b6d4;
    --whiteboard-green: #10b981;
    --whiteboard-red: #ef4444;
    --whiteboard-amber: #f59e0b;
    --whiteboard-text: #334155;
    --whiteboard-muted: #64748b;
    color: var(--whiteboard-text);
    background:
        radial-gradient(circle at 72% -20%, rgba(59, 130, 246, 0.08), transparent 38%),
        linear-gradient(135deg, #f0f4f8 0%, #f8fafc 54%, #eef2f6 100%);
    color-scheme: light;
}

/* Panels with stronger borders for clarity */
body[data-theme="soft-light"] .whiteboard-sidebar,
body[data-theme="soft-light"] .whiteboard-workspace {
    border: 1px solid rgba(71, 85, 105, 0.2);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Headers & text */
body[data-theme="soft-light"] .whiteboard-brand h1 { color: #1e293b; }
body[data-theme="soft-light"] .whiteboard-queue-heading h2 { color: #1e293b; }
body[data-theme="soft-light"] .whiteboard-settings { background: rgba(248, 250, 252, 0.9); border-color: rgba(148, 163, 184, 0.25); }
body[data-theme="soft-light"] .whiteboard-settings > h2 { color: #3b82f6; background: rgba(241, 245, 249, 0.9); border-bottom-color: rgba(148, 163, 184, 0.2); }

/* Accordions */
body[data-theme="soft-light"] .whiteboard-settings-group {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
}
body[data-theme="soft-light"] .whiteboard-settings-group[open] {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06), -3px 0 0 #6366f1;
}
body[data-theme="soft-light"] .whiteboard-settings-group summary { color: #334155; }
body[data-theme="soft-light"] .whiteboard-settings-group summary:hover { background: rgba(59, 130, 246, 0.06); color: #0f172a; }

/* Toggles & Fields */
body[data-theme="soft-light"] .whiteboard-toggle-field { background: rgba(255, 255, 255, 0.7); border-color: rgba(148, 163, 184, 0.3); }
body[data-theme="soft-light"] .whiteboard-toggle-field strong { color: #334155; }
body[data-theme="soft-light"] .whiteboard-save-modes label { background: rgba(255, 255, 255, 0.6); border-color: rgba(148, 163, 184, 0.3); }
body[data-theme="soft-light"] .whiteboard-save-modes strong { color: #334155; }
body[data-theme="soft-light"] .whiteboard-save-modes label:has(input:checked) { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.5); }
body[data-theme="soft-light"] .whiteboard-select-field select,
body[data-theme="soft-light"] .whiteboard-output-path input { background: #ffffff; color: #334155; border-color: rgba(148, 163, 184, 0.4); }
body[data-theme="soft-light"] .whiteboard-hand-preview {
    color: #475569;
    border-color: rgba(99, 102, 241, .38);
    background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(238, 242, 255, .9));
    box-shadow: 0 8px 20px rgba(79, 70, 229, .1), inset 0 1px 0 #ffffff;
}
body[data-theme="soft-light"] .whiteboard-hand-preview:hover {
    color: #312e81;
    border-color: #6366f1;
    background: linear-gradient(145deg, #ffffff, #e8e7fb);
}
body[data-theme="soft-light"] .whiteboard-output-path button {
    color: #4338ca;
    border-color: #9c97df;
    background: linear-gradient(145deg, #ffffff, #e9e7f8);
    box-shadow: 0 6px 14px rgba(79, 70, 229, .14), inset 0 1px 0 #ffffff;
}
body[data-theme="soft-light"] .whiteboard-output-path button:hover:not(:disabled) {
    color: #ffffff;
    border-color: #4338ca;
    background: linear-gradient(135deg, #635bdf, #5146d9);
}

/* Range sliders */
body[data-theme="soft-light"] .whiteboard-range-field { color: #475569; }
body[data-theme="soft-light"] .whiteboard-range-field input { background: rgba(148, 163, 184, 0.3); }

/* Buttons */
body[data-theme="soft-light"] .whiteboard-button {
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    border-color: rgba(148, 163, 184, 0.4);
    color: #334155;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.05);
}
body[data-theme="soft-light"] .whiteboard-button:hover:not(:disabled) { background: linear-gradient(180deg, #f8fafc, #e2e8f0); color: #0f172a; border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08); }
body[data-theme="soft-light"] .whiteboard-button:disabled { opacity: 0.65; filter: none; background: #f8fafc; color: #94a3b8; border-color: rgba(148, 163, 184, 0.2); }
body[data-theme="soft-light"] .whiteboard-button-icon { background: rgba(15, 23, 42, 0.06); }
body[data-theme="soft-light"] .whiteboard-saved-work-button { background: linear-gradient(180deg, #f8fafc, #e2e8f0); color: #334155; }
body[data-theme="soft-light"] .whiteboard-reset-button { background: linear-gradient(180deg, #fff5f5, #fee2e2); border-color: #f06b73; color: #c51f31; box-shadow: 0 5px 14px rgba(220, 38, 38, .13); }
body[data-theme="soft-light"] .whiteboard-reset-button:hover:not(:disabled) { background: #fecdd3; border-color: #dc2638; color: #991b2b; box-shadow: 0 7px 18px rgba(220, 38, 38, .2); }

/* Dynamic Primary Button */
body[data-theme="soft-light"] .whiteboard-button-primary { 
    color: #fff; border-color: transparent; 
    background: linear-gradient(135deg, #4f46e5, #c026d3);
    box-shadow: 0 8px 20px rgba(99, 72, 218, .28), 0 0 18px rgba(192, 38, 211, .1);
}
body[data-theme="soft-light"] .whiteboard-button-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #6366f1, #d946ef);
    box-shadow: 0 10px 24px rgba(99, 72, 218, .34), 0 0 22px rgba(217, 70, 239, .16);
}

/* Table area */
body[data-theme="soft-light"] .whiteboard-queue-header { background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(241, 245, 249, 0.8)); border-bottom-color: rgba(148, 163, 184, 0.25); }
body[data-theme="soft-light"] .whiteboard-queue-shell { background: rgba(241, 245, 249, 0.4); }
body[data-theme="soft-light"] .whiteboard-job-table th { color: #475569; }
body[data-theme="soft-light"] .whiteboard-job-table td {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(148, 163, 184, 0.25);
    color: #334155;
}
body[data-theme="soft-light"] .whiteboard-job-table tbody tr:nth-child(even) td { background: rgba(248, 250, 252, 0.8); }
body[data-theme="soft-light"] .whiteboard-job-table tbody tr:hover td {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    border-color: rgba(148, 163, 184, 0.4);
}
body[data-theme="soft-light"] .whiteboard-job-number { color: #475569; }
body[data-theme="soft-light"] .whiteboard-media-copy strong { color: #1e293b; }
body[data-theme="soft-light"] .whiteboard-row-message { color: #64748b; }
body[data-theme="soft-light"] .whiteboard-row-percent { color: #64748b; }
body[data-theme="soft-light"] .whiteboard-row-progress { background: rgba(148, 163, 184, 0.25); }
body[data-theme="soft-light"] .whiteboard-status-badge { background: rgba(241, 245, 249, 0.8); color: #475569; border-color: rgba(148, 163, 184, 0.3); }
body[data-theme="soft-light"] .whiteboard-status-badge.is-ready { color: #64748b; }
body[data-theme="soft-light"] .whiteboard-status-badge.is-queued { color: var(--whiteboard-amber); }
body[data-theme="soft-light"] .whiteboard-status-badge.is-running { color: var(--whiteboard-blue); }
body[data-theme="soft-light"] .whiteboard-status-badge.is-completed { color: var(--whiteboard-green); }
body[data-theme="soft-light"] .whiteboard-status-badge.is-failed { color: var(--whiteboard-red); }
body[data-theme="soft-light"] .whiteboard-table-head-button { color: #475569; }
body[data-theme="soft-light"] .whiteboard-table-head-button:hover { color: #0f172a; }
body[data-theme="soft-light"] .whiteboard-sort-indicator { background: rgba(241, 245, 249, 0.8); color: #64748b; }
body[data-theme="soft-light"] .whiteboard-head-chevron { border-color: rgba(148, 163, 184, 0.3); color: #64748b; background: rgba(241, 245, 249, 0.8); }
body[data-theme="soft-light"] .whiteboard-media-thumb { background: rgba(241, 245, 249, 0.8); border-color: rgba(148, 163, 184, 0.3); box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05); }
body[data-theme="soft-light"] .whiteboard-result-empty { color: #64748b; border-color: rgba(148, 163, 184, 0.5); }

/* Action buttons on rows */
body[data-theme="soft-light"] .whiteboard-row-button {
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
    border-color: rgba(148, 163, 184, 0.4);
    color: #334155;
}
body[data-theme="soft-light"] .whiteboard-row-button:hover:not(:disabled) { background: #e2e8f0; color: #0f172a; border-color: rgba(59, 130, 246, 0.6); }

/* Empty state */
body[data-theme="soft-light"] .whiteboard-empty-state strong { color: #1e293b; text-shadow: none; }
body[data-theme="soft-light"] .whiteboard-empty-state p { color: #475569; }

/* Icons */
body[data-theme="soft-light"] .whiteboard-icon-button { background: #f8fafc; border-color: rgba(148, 163, 184, 0.4); color: #475569; }
body[data-theme="soft-light"] .whiteboard-icon-button:hover:not(:disabled) { background: #e2e8f0; color: #0f172a; border-color: rgba(59, 130, 246, 0.6); }

/* Footer */
body[data-theme="soft-light"] .whiteboard-batch-footer { background: rgba(248, 250, 252, 0.95); border-top: 1px solid rgba(148, 163, 184, 0.3); color: #475569; }
body[data-theme="soft-light"] .whiteboard-batch-stats span { color: #64748b; }
body[data-theme="soft-light"] .whiteboard-batch-stats strong { color: #1e293b; }
body[data-theme="soft-light"] .whiteboard-batch-progress > div:first-child { color: #475569; }
body[data-theme="soft-light"] .whiteboard-batch-progress strong { color: var(--whiteboard-blue); }
body[data-theme="soft-light"] .whiteboard-progress-track { background: rgba(148, 163, 184, 0.2); }

/* Dialogs */
body[data-theme="soft-light"] .whiteboard-hand-dialog,
body[data-theme="soft-light"] .whiteboard-preview-dialog,
body[data-theme="soft-light"] .whiteboard-create-dialog,
body[data-theme="soft-light"] .whiteboard-session-dialog {
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(148, 163, 184, 0.2);
    color: #334155;
    border-color: transparent;
}
body[data-theme="soft-light"] .whiteboard-hand-dialog::backdrop,
body[data-theme="soft-light"] .whiteboard-preview-dialog::backdrop,
body[data-theme="soft-light"] .whiteboard-create-dialog::backdrop,
body[data-theme="soft-light"] .whiteboard-session-dialog::backdrop {
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(8px);
}
body[data-theme="soft-light"] .whiteboard-dialog-header {
    background: #f8fafc;
    border-bottom-color: rgba(148, 163, 184, 0.25);
}
body[data-theme="soft-light"] .whiteboard-dialog-header h2 { color: #1e293b; }
body[data-theme="soft-light"] .whiteboard-dialog-header p { color: #64748b; }
body[data-theme="soft-light"] .whiteboard-dialog-header button {
    background: #e2e8f0; color: #475569; border-color: rgba(148, 163, 184, 0.4);
}
body[data-theme="soft-light"] .whiteboard-dialog-header button:hover {
    background: #cbd5e1; color: #0f172a;
}
body[data-theme="soft-light"] .whiteboard-session-current {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.9), rgba(226, 232, 240, 0.6));
    border-color: rgba(59, 130, 246, 0.3);
}
body[data-theme="soft-light"] .whiteboard-session-current span { color: #475569; }
body[data-theme="soft-light"] .whiteboard-session-current strong { color: #1e293b; }
body[data-theme="soft-light"] .whiteboard-session-item {
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.3);
}
body[data-theme="soft-light"] .whiteboard-session-item:hover {
    background: #ffffff; border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}
body[data-theme="soft-light"] .whiteboard-session-item.is-current {
    border-color: rgba(59, 130, 246, 0.5); box-shadow: inset 3px 0 var(--whiteboard-blue);
}
body[data-theme="soft-light"] .whiteboard-session-title strong { color: #1e293b; }
body[data-theme="soft-light"] .whiteboard-session-meta { color: #64748b; }
body[data-theme="soft-light"] .whiteboard-session-empty {
    border-color: rgba(148, 163, 184, 0.4); color: #64748b; background: rgba(248, 250, 252, 0.5);
}
body[data-theme="soft-light"] .whiteboard-session-empty strong { color: #334155; }
body[data-theme="soft-light"] .whiteboard-create-dialog-body {
    background: #f8fafc;
}
body[data-theme="soft-light"] .whiteboard-create-summary div {
    background: #ffffff; border-color: rgba(148, 163, 184, 0.3);
}
body[data-theme="soft-light"] .whiteboard-create-summary strong { color: var(--whiteboard-blue); }
body[data-theme="soft-light"] .whiteboard-create-summary span { color: #475569; }
body[data-theme="soft-light"] .whiteboard-create-summary .is-replace {
    background: rgba(254, 243, 199, 0.4); border-color: rgba(245, 158, 11, 0.3);
}
body[data-theme="soft-light"] .whiteboard-create-summary .is-replace strong { color: #d97706; }
body[data-theme="soft-light"] .whiteboard-create-summary .is-skipped strong { color: #64748b; }
body[data-theme="soft-light"] .whiteboard-create-note {
    border-left-color: rgba(59, 130, 246, 0.5); color: #475569;
}
body[data-theme="soft-light"] .whiteboard-create-actions {
    border-top-color: rgba(148, 163, 184, 0.25);
}
body[data-theme="soft-light"] .whiteboard-hand-option {
    background: #f8fafc; border-color: rgba(148, 163, 184, 0.3);
}
body[data-theme="soft-light"] .whiteboard-hand-option:hover {
    background: #ffffff; border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}
body[data-theme="soft-light"] .whiteboard-hand-option span { color: #475569; }
body[data-theme="soft-light"] .whiteboard-preview-dialog-body { background: #f1f5f9; }

body[data-theme="soft-light"] .whiteboard-settings-group { border: 1px solid #64748b !important; }
body[data-theme="soft-light"] .whiteboard-settings { border: 1px solid #64748b !important; }

