html[data-theme="light"] .ai3d-preview-wrap,
html[data-theme="light"] .ai3d-render-mode-control,
html[data-theme="light"] .ai3d-right-card,
html[data-theme="light"] .ai3d-history-sidebar,
html[data-theme="light"] .ai3d-format-menu,
html[data-theme="light"] .ai3d-turntable-duration-popover,
html[data-theme="light"] .ai3d-upload-limit-dialog {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(244, 236, 224, 0.96));
    border-color: rgba(194, 176, 146, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        0 16px 34px rgba(152, 128, 91, 0.08);
}

html[data-theme="light"] .ai3d-history-sidebar-header {
    border-bottom-color: rgba(194, 176, 146, 0.3);
}

html[data-theme="light"] .ai3d-history-sidebar-header strong {
    color: #4c3d2d;
}

html[data-theme="light"] .ai3d-history-sidebar-actions span {
    background: rgba(217, 198, 164, 0.58);
    color: #6d5736;
}

html[data-theme="light"] .ai3d-history-refresh-btn {
    background: rgba(255, 251, 244, 0.88);
    border-color: rgba(194, 176, 146, 0.34);
    color: #7a6140;
}

html[data-theme="light"] .ai3d-preview-stage-viewport,
html[data-theme="light"] .ai3d-preview-stage-viewport--single {
    border-color: rgba(194, 176, 146, 0.26);
    background: linear-gradient(180deg, #fbf6ef 0%, #f3eadc 38%, #efe4d3 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -18px 30px rgba(188, 166, 132, 0.12);
}

html[data-theme="light"] .ai3d-preview-stage-viewport::before,
html[data-theme="light"] .ai3d-preview-stage-viewport--single::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.12) 22%, rgba(255, 255, 255, 0));
    opacity: 0.84;
}

html[data-theme="light"] .ai3d-workbench-canvas {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.74), transparent 46%),
        linear-gradient(180deg, #f7f1e8 0%, #ede2d1 100%);
}

html[data-theme="light"] .ai3d-preview-grid-fallback::before {
    background:
        linear-gradient(rgba(197, 181, 151, 0.38) 1px, transparent 1px),
        linear-gradient(90deg, rgba(213, 200, 178, 0.28) 1px, transparent 1px),
        radial-gradient(circle at 50% 0%, rgba(228, 215, 194, 0.74), transparent 64%);
    box-shadow:
        0 -1px 0 rgba(206, 193, 169, 0.46),
        0 24px 44px rgba(171, 145, 108, 0.12);
    opacity: 0.96;
}

html[data-theme="light"] .ai3d-preview-grid-fallback::after {
    background: linear-gradient(90deg, transparent, rgba(183, 166, 133, 0.46), transparent);
}

html[data-theme="light"] .ai3d-preview-coordinates span {
    border-color: rgba(194, 176, 146, 0.24);
    background: rgba(255, 251, 245, 0.84);
    color: #725f46;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .ai3d-render-mode-control::after {
    border-right-color: #8d7550;
    border-bottom-color: #8d7550;
}

html[data-theme="light"] .ai3d-render-mode-select,
html[data-theme="light"] .ai3d-right-card-label,
html[data-theme="light"] .ai3d-turntable-duration-title,
html[data-theme="light"] .ai3d-turntable-duration-input,
html[data-theme="light"] .ai3d-upload-limit-title {
    color: #4d3e2e;
}

html[data-theme="light"] .ai3d-turntable-duration-field,
html[data-theme="light"] .ai3d-turntable-duration-btn--ghost,
html[data-theme="light"] .ai3d-format-option,
html[data-theme="light"] .ai3d-upload-limit-close {
    background: rgba(255, 251, 245, 0.88);
    border-color: rgba(194, 176, 146, 0.24);
    color: #5f503d;
}

html[data-theme="light"] .ai3d-download-status {
    background: rgba(255, 251, 245, 0.9);
    border-color: rgba(194, 176, 146, 0.26);
    color: #5f503d;
    box-shadow: 0 14px 28px rgba(156, 129, 88, 0.12);
}

html[data-theme="light"] .ai3d-download-status .ok {
    color: #347449;
}

html[data-theme="light"] .ai3d-download-status .err {
    color: #a54b3f;
}

html[data-theme="light"] .ai3d-download-status .tip {
    color: #76654f;
}

html[data-theme="light"] .ai3d-upload-limit-eyebrow {
    color: #9a7441;
}

html[data-theme="light"] .ai3d-upload-limit-message {
    color: #6b5940;
}

html[data-theme="light"] .ai3d-format-option:hover {
    background: rgba(243, 235, 223, 0.96);
    border-color: rgba(191, 171, 137, 0.34);
}

html[data-theme="light"] .ai3d-debug-stl-btn,
html[data-theme="light"] .ai3d-format-trigger,
html[data-theme="light"] .ai3d-turntable-duration-btn,
html[data-theme="light"] .ai3d-workbench-view-btn {
    background: linear-gradient(135deg, #efe5d4 0%, #dcc39f 58%, #c7aa7c 100%);
    border-color: rgba(186, 163, 118, 0.34);
    color: #4a3724;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 14px 28px rgba(156, 129, 88, 0.14);
}

html[data-theme="light"] .ai3d-turntable-duration-btn--ghost {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .ai3d-debug-stl-btn:hover,
html[data-theme="light"] .ai3d-workbench-view-btn:hover:not([disabled]),
html[data-theme="light"] .ai3d-turntable-duration-btn:hover,
html[data-theme="light"] .ai3d-format-trigger:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 18px 34px rgba(156, 129, 88, 0.18);
}

html[data-theme="light"] .ai3d-task-history-item {
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(245, 237, 225, 0.96));
    border-color: rgba(194, 176, 146, 0.24);
    color: #5d4f3d;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .ai3d-task-history-item:hover {
    border-color: rgba(191, 171, 137, 0.36);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 12px 24px rgba(152, 128, 91, 0.1);
}

html[data-theme="light"] .ai3d-task-history-item.is-active {
    background: linear-gradient(135deg, rgba(241, 232, 217, 0.98), rgba(229, 214, 189, 0.98));
    border-color: rgba(188, 164, 120, 0.36);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 14px 24px rgba(156, 129, 88, 0.12);
}
