html[data-theme-preset] body.ai3d-page-active {
    --ai3d-theme-bg: var(--xl-theme-bg, #0a0a0a);
    --ai3d-theme-panel: var(--xl-theme-panel, #11100d);
    --ai3d-theme-popup: var(--xl-theme-popup, #15130f);
    --ai3d-theme-fg: var(--xl-theme-fg, #e0d9c8);
    --ai3d-theme-muted: var(--xl-theme-muted, #ffefc0);
    --ai3d-theme-border: var(--xl-theme-border, #211c10);
    --ai3d-theme-soft: var(--xl-theme-soft, rgba(107, 96, 64, 0.3));
    --ai3d-theme-accent: var(--xl-theme-accent, #d4a843);
    --ai3d-theme-accent-2: var(--xl-theme-accent-2, #d4a843);
    --ai3d-theme-on-accent: var(--xl-theme-on-accent, #0a0a0a);
    --ai3d-theme-focus-shadow: var(--a9-focus-shadow, rgba(107, 96, 64, 0.26));
}

html[data-theme-preset] body.home-header-shell.ai3d-page-active .header,
html[data-theme-preset] body.home-header-shell.ai3d-page-active .loarea,
html[data-theme-preset] body.home-header-shell.ai3d-page-active .loarea .wp {
    border-color: var(--ai3d-theme-border) !important;
    background: var(--ai3d-theme-panel) !important;
    color: var(--ai3d-theme-fg) !important;
    box-shadow:
        inset 0 -1px 0 var(--ai3d-theme-border),
        0 14px 32px rgba(0, 0, 0, 0.18) !important;
}

html[data-theme-preset] body.home-header-shell.ai3d-page-active .navul,
html[data-theme-preset] body.home-header-shell.ai3d-page-active .loginArea {
    background: transparent !important;
}

html[data-theme-preset] body.home-header-shell.ai3d-page-active .logo .logo-text,
html[data-theme-preset] body.home-header-shell.ai3d-page-active .navlogo .navlogo-text,
html[data-theme-preset] body.home-header-shell.ai3d-page-active .navul li > a,
html[data-theme-preset] body.home-header-shell.ai3d-page-active .langSwitch__label,
html[data-theme-preset] body.home-header-shell.ai3d-page-active .theme-toggle-label {
    color: var(--ai3d-theme-muted) !important;
    text-shadow: none !important;
}

html[data-theme-preset] body.home-header-shell.ai3d-page-active .navul li > a:hover,
html[data-theme-preset] body.home-header-shell.ai3d-page-active .navul li > a.act_nav {
    color: var(--ai3d-theme-accent) !important;
}

html[data-theme-preset] body.home-header-shell.ai3d-page-active .couponCodeBadge,
html[data-theme-preset] body.home-header-shell.ai3d-page-active .topIntegralBadge,
html[data-theme-preset] body.home-header-shell.ai3d-page-active #siteLangSelect,
html[data-theme-preset] body.home-header-shell.ai3d-page-active .theme-toggle {
    border-color: var(--ai3d-theme-accent) !important;
    background: linear-gradient(180deg, var(--ai3d-theme-popup), var(--ai3d-theme-panel)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 22px rgba(0, 0, 0, 0.16) !important;
}

html[data-theme-preset] body.home-header-shell.ai3d-page-active .couponCodeBadge,
html[data-theme-preset] body.home-header-shell.ai3d-page-active .topIntegralBadge {
    color: var(--ai3d-theme-fg) !important;
}

html[data-theme-preset] body.home-header-shell.ai3d-page-active #siteLangSelect,
html[data-theme-preset] body.home-header-shell.ai3d-page-active .theme-toggle-select {
    color: transparent !important;
    text-shadow: none !important;
    caret-color: transparent !important;
}

html[data-theme-preset] body.home-header-shell.ai3d-page-active .theme-toggle-select {
    background: transparent !important;
    border-color: transparent !important;
}

html[data-theme-preset] body.home-header-shell.ai3d-page-active #siteLangSelect option,
html[data-theme-preset] body.home-header-shell.ai3d-page-active #siteLangSelect optgroup,
html[data-theme-preset] body.home-header-shell.ai3d-page-active #siteThemeSelect option,
html[data-theme-preset] body.home-header-shell.ai3d-page-active #siteThemeSelect optgroup,
html[data-theme-preset] body.home-header-shell.ai3d-page-active #siteLangSelectMobile option,
html[data-theme-preset] body.home-header-shell.ai3d-page-active #siteLangSelectMobile optgroup,
html[data-theme-preset] body.home-header-shell.ai3d-page-active #siteThemeSelectMobile option,
html[data-theme-preset] body.home-header-shell.ai3d-page-active #siteThemeSelectMobile optgroup,
html[data-theme-preset] body.home-header-shell.ai3d-page-active .theme-toggle-select option,
html[data-theme-preset] body.home-header-shell.ai3d-page-active .theme-toggle-select optgroup {
    background: var(--ai3d-theme-popup) !important;
    color: var(--ai3d-theme-fg) !important;
}

html[data-theme-preset] body.ai3d-page-active .ai3d-left .lab,
html[data-theme-preset] body.ai3d-page-active .ai3d-right-card-label,
html[data-theme-preset] body.ai3d-page-active .ai3d-history-sidebar-header strong,
html[data-theme-preset] body.ai3d-page-active #ai3dUploadTitle,
html[data-theme-preset] body.ai3d-page-active #ai3dUploadDesc {
    color: var(--ai3d-theme-fg);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-right-card-help,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-meta,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload p,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-item-meta,
html[data-theme-preset] body.ai3d-page-active .ai3d-history-sidebar .ai3d-task-history-status,
html[data-theme-preset] body.ai3d-page-active #ai3dUploadSubDesc {
    color: var(--ai3d-theme-muted);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-inline-note,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-status,
html[data-theme-preset] body.ai3d-page-active .ai3d-constraint-summary,
html[data-theme-preset] body.ai3d-page-active .ai3d-job,
html[data-theme-preset] body.ai3d-page-active .ai3d-right-card,
html[data-theme-preset] body.ai3d-page-active .ai3d-format-menu,
html[data-theme-preset] body.ai3d-page-active .ai3d-history-sidebar,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-slot,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-primary-card,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-item,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-slot-media,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-preview {
    border-color: var(--ai3d-theme-border);
    background:
        linear-gradient(180deg, var(--ai3d-theme-panel), var(--ai3d-theme-bg));
    color: var(--ai3d-theme-fg);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 18px 34px rgba(0, 0, 0, 0.16);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-inline-note,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-status,
html[data-theme-preset] body.ai3d-page-active .ai3d-constraint-summary {
    background:
        linear-gradient(180deg, var(--ai3d-theme-soft), var(--ai3d-theme-panel));
    color: var(--ai3d-theme-muted);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-history-sidebar-header {
    border-bottom-color: var(--ai3d-theme-border);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-history-sidebar-actions span,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-item-badge {
    background: var(--ai3d-theme-soft);
    color: var(--ai3d-theme-accent);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-history-refresh-btn,
html[data-theme-preset] body.ai3d-page-active .ai3d-select,
html[data-theme-preset] body.ai3d-page-active .ai3d-input,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-item-select {
    border-color: var(--ai3d-theme-border);
    background: linear-gradient(180deg, var(--ai3d-theme-popup), var(--ai3d-theme-panel));
    color: var(--ai3d-theme-fg);
}

/* AI3D_BUTTON_VISIBILITY_GUARD */
html[data-theme-preset] body.ai3d-page-active .ai3d-toggle a,
html[data-theme-preset] body.ai3d-page-active .ai3d-subtoggle a,
html[data-theme-preset] body.ai3d-page-active .ai3d-seg a,
html[data-theme-preset] body.ai3d-page-active .ai3d-type a,
html[data-theme-preset] body.ai3d-page-active .ai3d-filter a,
html[data-theme-preset] body.ai3d-page-active .ai3d-debug-stl-btn,
html[data-theme-preset] body.ai3d-page-active .ai3d-render-mode-control,
html[data-theme-preset] body.ai3d-page-active .ai3d-workbench-view-btn,
html[data-theme-preset] body.ai3d-page-active .ai3d-format-trigger,
html[data-theme-preset] body.ai3d-page-active .ai3d-format-option,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-slot-button,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-slot-clear,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-set-primary,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-action {
    border-color: var(--ai3d-theme-border);
    background: linear-gradient(145deg, var(--ai3d-theme-panel), var(--ai3d-theme-bg));
    color: var(--ai3d-theme-fg);
    text-shadow: none;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 16px 32px rgba(0, 0, 0, 0.16);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-toggle a.active,
html[data-theme-preset] body.ai3d-page-active .ai3d-subtoggle a.active,
html[data-theme-preset] body.ai3d-page-active .ai3d-seg a.active,
html[data-theme-preset] body.ai3d-page-active .ai3d-type a.active,
html[data-theme-preset] body.ai3d-page-active .ai3d-filter a.active,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-slot-button,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-set-primary,
html[data-theme-preset] body.ai3d-page-active .ai3d-format-trigger.is-active {
    border-color: var(--ai3d-theme-accent);
    background: linear-gradient(135deg, #f0c65a 0%, #f6dc8d 100%);
    background: linear-gradient(135deg, var(--ai3d-theme-accent) 0%, var(--ai3d-theme-accent-2) 100%);
    color: var(--ai3d-theme-on-accent);
    text-shadow: none;
    box-shadow: 0 16px 34px var(--ai3d-theme-focus-shadow);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-toggle a:not(.active):not(.is-disabled):hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-subtoggle a:not(.active):not(.is-disabled):hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-seg a:not(.active):not(.is-disabled):hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-type a:not(.active):not(.is-disabled):hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-filter a:not(.active):not(.is-disabled):hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-slot-button:hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-slot-clear:hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-set-primary:hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-action:hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-format-trigger:hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-format-option:hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-history-refresh-btn:hover {
    border-color: var(--ai3d-theme-accent);
    background: linear-gradient(180deg, var(--ai3d-theme-soft), var(--ai3d-theme-panel));
    box-shadow: 0 12px 26px var(--ai3d-theme-focus-shadow);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-generate {
    border: 1px solid var(--ai3d-theme-accent);
    background: linear-gradient(90deg, var(--ai3d-theme-accent) 0%, var(--ai3d-theme-accent-2) 50%, var(--ai3d-theme-accent) 100%);
    color: var(--ai3d-theme-on-accent);
    box-shadow: 0 18px 36px var(--ai3d-theme-focus-shadow);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-generate[disabled] {
    border-color: var(--ai3d-theme-border);
    background: linear-gradient(180deg, var(--ai3d-theme-soft), var(--ai3d-theme-panel));
    color: var(--ai3d-theme-muted);
    text-shadow: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 36px rgba(0, 0, 0, 0.12);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-upload {
    border-color: var(--ai3d-theme-accent);
    background:
        radial-gradient(circle at 50% 0%, var(--ai3d-theme-soft), transparent 42%),
        linear-gradient(180deg, var(--ai3d-theme-panel), var(--ai3d-theme-bg));
    box-shadow:
        inset 0 0 0 1px var(--ai3d-theme-soft),
        0 18px 36px rgba(0, 0, 0, 0.2);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-upload .btn {
    border-color: var(--ai3d-theme-accent);
    background: linear-gradient(135deg, #f0c65a 0%, #f6dc8d 100%);
    background: linear-gradient(135deg, var(--ai3d-theme-accent) 0%, var(--ai3d-theme-accent-2) 100%);
    color: var(--ai3d-theme-on-accent);
    box-shadow: 0 16px 30px var(--ai3d-theme-focus-shadow);
}

@supports (background: color-mix(in srgb, #000 50%, #fff)) {
html[data-theme-preset] .ai3d-toggle a.active,
html[data-theme-preset] .ai3d-subtoggle a.active,
html[data-theme-preset] .ai3d-seg a.active,
html[data-theme-preset] .ai3d-type a.active,
html[data-theme-preset] .ai3d-filter a.active {
    color: var(--xl-theme-on-accent, var(--xl-theme-bg, #0a0a0a));
    border-color: color-mix(in srgb, var(--xl-theme-accent, #d4a843) 72%, transparent);
    background: linear-gradient(135deg, var(--xl-theme-accent, #d4a843), color-mix(in srgb, var(--xl-theme-accent-2, #d4a843) 72%, var(--xl-theme-fg, #e0d9c8)));
    box-shadow: 0 2px 12px color-mix(in srgb, var(--xl-theme-accent, #d4a843) 35%, transparent);
}

html[data-theme-preset] .ai3d-toggle a:not(.active):not(.is-disabled):hover,
html[data-theme-preset] .ai3d-subtoggle a:not(.active):not(.is-disabled):hover,
html[data-theme-preset] .ai3d-seg a:not(.active):not(.is-disabled):hover,
html[data-theme-preset] .ai3d-type a:not(.active):not(.is-disabled):hover {
    border-color: color-mix(in srgb, var(--xl-theme-accent, #d4a843) 50%, transparent);
    background: color-mix(in srgb, var(--xl-theme-accent, #d4a843) 15%, transparent);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--xl-theme-accent, #d4a843) 20%, transparent);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-inline-note,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-status,
html[data-theme-preset] body.ai3d-page-active .ai3d-constraint-summary {
    color: var(--xl-theme-muted, #ffefc0);
    border-color: color-mix(in srgb, var(--xl-theme-accent, #d4a843) 28%, transparent);
    background: color-mix(in srgb, var(--xl-theme-accent, #d4a843) 10%, transparent);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-toggle a,
html[data-theme-preset] body.ai3d-page-active .ai3d-subtoggle a,
html[data-theme-preset] body.ai3d-page-active .ai3d-seg a,
html[data-theme-preset] body.ai3d-page-active .ai3d-type a,
html[data-theme-preset] body.ai3d-page-active .ai3d-filter a,
html[data-theme-preset] body.ai3d-page-active .ai3d-debug-stl-btn,
html[data-theme-preset] body.ai3d-page-active .ai3d-render-mode-control,
html[data-theme-preset] body.ai3d-page-active .ai3d-workbench-view-btn,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-slot-button,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-slot-clear,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-set-primary,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-action,
html[data-theme-preset] body.ai3d-page-active .ai3d-format-trigger,
html[data-theme-preset] body.ai3d-page-active .ai3d-format-option {
    border-color: color-mix(in srgb, var(--xl-theme-accent, #d4a843) 56%, var(--xl-theme-border, #211c10));
    background: color-mix(in srgb, var(--xl-theme-accent, #d4a843) 16%, var(--xl-theme-panel, #11100d));
    color: color-mix(in srgb, var(--xl-theme-fg, #e0d9c8) 94%, #fff);
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--xl-theme-fg, #e0d9c8) 12%, transparent),
        0 14px 28px color-mix(in srgb, var(--xl-theme-accent, #d4a843) 26%, transparent);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-upload .btn {
    border-color: color-mix(in srgb, var(--xl-theme-accent, #d4a843) 32%, var(--xl-theme-border, #211c10));
    background: linear-gradient(135deg, var(--xl-theme-accent, #d4a843), color-mix(in srgb, var(--xl-theme-accent-2, #d4a843) 72%, var(--xl-theme-fg, #e0d9c8)));
    color: var(--xl-theme-on-accent, var(--xl-theme-bg, #0a0a0a));
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--xl-theme-fg, #e0d9c8) 18%, transparent),
        0 16px 30px color-mix(in srgb, var(--xl-theme-accent, #d4a843) 32%, transparent);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-generate {
    border: 1px solid color-mix(in srgb, var(--xl-theme-accent, #d4a843) 66%, transparent);
    background: linear-gradient(90deg, var(--xl-theme-accent, #d4a843) 0%, color-mix(in srgb, var(--xl-theme-accent-2, #d4a843) 72%, var(--xl-theme-fg, #e0d9c8)) 50%, var(--xl-theme-accent, #d4a843) 100%);
    color: var(--xl-theme-on-accent, var(--xl-theme-bg, #0a0a0a));
    box-shadow:
        0 4px 20px color-mix(in srgb, var(--xl-theme-accent, #d4a843) 30%, transparent),
        inset 0 1px 0 color-mix(in srgb, var(--xl-theme-fg, #e0d9c8) 18%, transparent);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-generate::before {
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--xl-theme-fg, #e0d9c8) 26%, transparent), transparent);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-generate:hover {
    box-shadow:
        0 8px 30px color-mix(in srgb, var(--xl-theme-accent, #d4a843) 45%, transparent),
        inset 0 1px 0 color-mix(in srgb, var(--xl-theme-fg, #e0d9c8) 20%, transparent);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-generate[disabled] {
    border-color: color-mix(in srgb, var(--xl-theme-accent, #d4a843) 62%, var(--xl-theme-border, #211c10));
    background: color-mix(in srgb, var(--xl-theme-accent, #d4a843) 28%, var(--xl-theme-panel, #11100d));
    color: color-mix(in srgb, var(--xl-theme-muted, #ffefc0) 98%, #fff);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.48);
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--xl-theme-fg, #e0d9c8) 16%, transparent),
        0 18px 36px color-mix(in srgb, var(--xl-theme-accent, #d4a843) 38%, transparent);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-toggle a.active,
html[data-theme-preset] body.ai3d-page-active .ai3d-subtoggle a.active,
html[data-theme-preset] body.ai3d-page-active .ai3d-seg a.active,
html[data-theme-preset] body.ai3d-page-active .ai3d-type a.active,
html[data-theme-preset] body.ai3d-page-active .ai3d-filter a.active,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-slot-button,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-set-primary,
html[data-theme-preset] body.ai3d-page-active .ai3d-format-trigger.is-active {
    border-color: color-mix(in srgb, var(--xl-theme-accent, #d4a843) 72%, transparent);
    background: linear-gradient(135deg, var(--xl-theme-accent, #d4a843), color-mix(in srgb, var(--xl-theme-accent-2, #d4a843) 72%, var(--xl-theme-fg, #e0d9c8)));
    box-shadow: 0 2px 12px color-mix(in srgb, var(--xl-theme-accent, #d4a843) 35%, transparent);
}

html[data-theme-preset] body.ai3d-page-active .ai3d-toggle a:not(.active):not(.is-disabled):hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-subtoggle a:not(.active):not(.is-disabled):hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-seg a:not(.active):not(.is-disabled):hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-type a:not(.active):not(.is-disabled):hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-filter a:not(.active):not(.is-disabled):hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-slot-button:hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-slot-clear:hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-set-primary:hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-upload-action:hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-format-trigger:hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-format-option:hover {
    border-color: color-mix(in srgb, var(--xl-theme-accent, #d4a843) 50%, transparent);
    background: color-mix(in srgb, var(--xl-theme-accent, #d4a843) 15%, transparent);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--xl-theme-accent, #d4a843) 20%, transparent);
}
}

/* EDGE100_THEME_FALLBACK_GUARD */
@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
    html[data-theme-preset] body.home-header-shell.ai3d-page-active .header,
    html[data-theme-preset] body.home-header-shell.ai3d-page-active .loarea,
    html[data-theme-preset] body.ai3d-page-active .ai3d-shell,
    html[data-theme-preset] body.ai3d-page-active .ai3d-left,
    html[data-theme-preset] body.ai3d-page-active .ai3d-right,
    html[data-theme-preset] body.ai3d-page-active .ai3d-right-card,
    html[data-theme-preset] body.ai3d-page-active .ai3d-history-sidebar {
        border-color: var(--ai3d-theme-border, #211c10) !important;
        background: linear-gradient(180deg, var(--ai3d-theme-panel, #11100d), var(--ai3d-theme-bg, #0a0a0a)) !important;
        color: var(--ai3d-theme-fg, #e0d9c8) !important;
        box-shadow: 0 14px 34px rgba(10, 10, 10, 0.64) !important;
    }

    html[data-theme-preset] body.home-header-shell.ai3d-page-active .logo .logo-text,
    html[data-theme-preset] body.home-header-shell.ai3d-page-active .navlogo .navlogo-text {
        color: var(--ai3d-theme-muted, #ffefc0) !important;
        -webkit-text-fill-color: var(--ai3d-theme-muted, #ffefc0) !important;
        text-shadow: 0 2px 12px rgba(212, 168, 67, 0.28) !important;
    }

    html[data-theme-preset] body.home-header-shell.ai3d-page-active .navul li > a:hover,
    html[data-theme-preset] body.home-header-shell.ai3d-page-active .navul li > a.act_nav {
        color: var(--ai3d-theme-accent, #d4a843) !important;
    }

    html[data-theme-preset] .ai3d-toggle a.active,
    html[data-theme-preset] .ai3d-subtoggle a.active,
    html[data-theme-preset] .ai3d-seg a.active,
    html[data-theme-preset] .ai3d-type a.active,
    html[data-theme-preset] body.ai3d-page-active .ai3d-upload .btn,
    html[data-theme-preset] body.ai3d-page-active .ai3d-upload-slot-button,
    html[data-theme-preset] body.ai3d-page-active .ai3d-upload-set-primary,
    html[data-theme-preset] body.ai3d-page-active .ai3d-generate,
    html[data-theme-preset] body.ai3d-page-active .theme-toggle-btn {
        border-color: rgba(212, 168, 67, 0.58) !important;
        background: linear-gradient(135deg, var(--ai3d-theme-accent, #d4a843), var(--ai3d-theme-accent-2, #d4a843)) !important;
        color: var(--ai3d-theme-on-accent, #0a0a0a) !important;
        box-shadow:
            0 12px 28px rgba(212, 168, 67, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    }

    html[data-theme-preset] body.ai3d-page-active .ai3d-generate[disabled] {
        border-color: rgba(107, 96, 64, 0.42) !important;
        background: rgba(33, 28, 16, 0.88) !important;
        color: rgba(224, 217, 200, 0.48) !important;
        box-shadow: none !important;
    }

    html[data-theme-preset] body.ai3d-page-active .ai3d-inline-note,
    html[data-theme-preset] body.ai3d-page-active .ai3d-upload-status,
    html[data-theme-preset] body.ai3d-page-active .ai3d-constraint-summary,
    html[data-theme-preset] body.ai3d-page-active .ai3d-history-sidebar .ai3d-task-history-status {
        color: rgba(255, 239, 192, 0.78) !important;
    }
}

/* AI3D_SITE_NAV_THEME_BRIDGE */
html[data-theme-preset] body.ai3d-page-active .ai3d-site-nav-link,
html[data-theme-preset] body.ai3d-page-active .theme-toggle-btn {
    color: var(--xl-theme-muted, #ffefc0) !important;
    border-color: var(--xl-theme-border, #211c10) !important;
    background: var(--xl-theme-panel, #11100d) !important;
}

html[data-theme-preset] body.ai3d-page-active .ai3d-site-nav-link:hover,
html[data-theme-preset] body.ai3d-page-active .ai3d-site-nav-link.active,
html[data-theme-preset] body.ai3d-page-active .theme-toggle-btn:hover {
    color: var(--xl-theme-on-accent, #0a0a0a) !important;
    border-color: var(--xl-theme-accent, #d4a843) !important;
    background: linear-gradient(135deg, var(--xl-theme-accent, #d4a843), var(--xl-theme-accent-2, #d4a843)) !important;
}

/* AI3D_THEME_FG_EXACT_CONTRACT */
html[data-theme-preset] body.ai3d-page-active {
    color: var(--xl-theme-fg, #e0d9c8);
}
