/* Platform chrome only: published sites and iframe themes stay under their owner's control. */
html[data-theme="light"]{color-scheme:light;--bg:#f5f6fa;--surface:#fff;--surface2:#eef1f7;--surface3:#e4e8f2;--text:#20283a;--muted:#5c687d;--line:#d6ddea;--accent:#6443bf;--accent-solid:#7050d2;--green:#23724a;--danger:#aa3244;--panel:#fff}
html[data-theme="light"] :is(dialog,.policy-gate,.panel,.table-card,.plan,.workspace-stats,.website-card,.editor-header,.editor-left,.editor-right,.workspace-sidebar){background:#fff;color:var(--text);border-color:var(--line);box-shadow:0 4px 20px #27335206}
html[data-theme="light"] :is(.editor-preview,.website-preview,.preview-toolbar>div,.media-library>div,.type-option,.style-option,.search,.copy-box,.dns-instructions code,.code-output){background:#eef1f7;color:#303b52;border-color:#d0d8e6}
html[data-theme="light"] :is(.settings-save,.sticky-purchase){background:#fffffff5;color:var(--text);border-color:#d0c4e6;box-shadow:0 8px 30px #26345116}
html[data-theme="light"] :is(.section-row-tools,.site-side>span,.avatar,.new-site-card>span){background:#e8e4f5;color:#654697}
html[data-theme="light"] :is(.topbar nav a:hover,.topbar nav a.active,.text-link:hover,.side-link:hover,.site-side:hover,.site-side.active){color:#5d369c;background:#ece7f7}
html[data-theme="light"] :is(.side-link.active,.section-row.active,.preview-toolbar .button.active,.type-option.selected,.style-option.selected,.layer-row.active){background:#eee8fc;color:#593294;border-color:#a38bcf;box-shadow:none}
html[data-theme="light"] :is(.section-row.active b,.editor-left-heading h3,.tabs button.active,.dns-instructions b,.inbox-item b,.admin-stats b,.membership-number,.record-list b,.upgrade-box>span,.upgrade-box a,.sticky-purchase b span,.sticky-purchase small a,.feature-symbol,.code-fragment span){color:#66429a}
html[data-theme="light"] :is(.type-strip,tbody th,.topbar nav,.text-link,.brand-en,.hero-caption,.section-select,.preview-toolbar,.preview-footer){color:#526079}
html[data-theme="light"] :is(.notice,.visual-text-shortcut){background:#f0ebfa;color:#59466f;border-color:#d9cbea}
html[data-theme="light"] .button.subtle{background:#f1f3f8;border-color:#cbd4e3;color:#35415b}
html[data-theme="light"] .button.subtle:hover:not(:disabled){background:#e5e9f3;color:#253551}
html[data-theme="light"] .button.primary{background:#7050d2;color:#fff;border-color:#7050d2}
html[data-theme="light"] .button.primary:hover{background:#5e40bd;color:#fff}
html[data-theme="light"] :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),textarea,select){background:#fff!important;color:#26324a!important;border-color:#bdc8da!important}
html[data-theme="light"] :is(input,textarea)::placeholder{color:#737e92;opacity:1}
html[data-theme="light"] :is(input,textarea,select):disabled{background:#edf0f5!important;color:#778195!important}
html[data-theme="light"] :is(input[type=checkbox],input[type=radio]){accent-color:#7050d2}
html[data-theme="light"] .new-site-card{background:#f8f9fc;border-color:#bac5d8}
html[data-theme="light"] .new-site-card:hover{background:#eee8fa;border-color:#9c7bc6}
html[data-theme="light"] .preview-overlay{background:#20283a99;color:#fff}
html[data-theme="light"] .floating-tag{background:#faf8ffef;border-color:#d4c5e7;color:#614681;box-shadow:0 8px 25px #26345115}
html[data-theme="light"] .tag-bottom{background:#ecf7f0f2;color:#276345;border-color:#acd3bb}
html[data-theme="light"] .demo-window{border-color:#c2cad9;box-shadow:0 22px 60px #38466420}
html[data-theme="light"] .window-chrome{background:#e3e7f0;color:#58657d;border-color:#c4cede}
html[data-theme="light"] .block-illustration .selected{background:#e9def8;color:#623d8a;border-color:#b396d8}
html[data-theme="light"] .pro-col{background:#f5effe;color:#633f92}
html[data-theme="light"] #toast{background:#eaf6ed;color:#205a36;border-color:#a8cdb6;box-shadow:0 8px 30px #26345115}
html[data-theme="light"] #toast.error{background:#fff0f1;color:#9f2e40;border-color:#e4afbb}
html[data-theme="light"] .form-error{color:#a02d3f}
html[data-theme="light"] dialog::backdrop{background:#24324e66;backdrop-filter:blur(4px)}
.subdomain-preview{font-family:Consolas,monospace;overflow-wrap:anywhere;color:var(--accent);padding:10px;background:var(--surface2);border-radius:8px}
html[data-theme="light"] :is(.editor-site-name,.save-status,.page-switch small,.editor-help,.section-select small){color:#657087;opacity:1}
