html[data-appearance=light]{color-scheme:light;--bg:#f5f7f5;--surface:#fff;--surface-2:#edf3ef;--line:#d9e4df;--text:#173631;--muted:#526d64;--ok:#13724f;--warn:#825017;--danger:#b83245;--bad:#b83245}
html[data-appearance=dark]{color-scheme:dark;--bg:#0d1918;--side:#0a2320;--surface:#142725;--surface-2:#1c3430;--line:#34504a;--text:#edf6f2;--muted:#abc1b8;--brand-2:#8ce0c6;--ok:#7edbb1;--warn:#f0c48a;--danger:#ff9aa8;--bad:#ff9aa8}
.appearance-switch{display:inline-flex;align-items:center;gap:8px;align-self:flex-end;margin:8px 16px;font-size:.82rem;color:var(--text);flex:none}
.appearance-switch select{font:inherit;min-height:40px;border:1px solid var(--line);border-radius:10px;padding:6px 10px;background:var(--surface);color:var(--text);width:auto;max-width:160px}
.top-actions .appearance-switch{margin:0}.top-actions{align-items:center;flex-wrap:wrap}
html[data-appearance=dark] .top{background:color-mix(in srgb,var(--surface) 94%,transparent)}
html[data-appearance=dark] :is(.btn.ghost,th,.auth-card,.panel,.card,.modal,.dialog,dialog,.sheet,.popover){background:var(--surface);color:var(--text)}
html[data-appearance=dark] :is(input,textarea,select){background:var(--surface-2);color:var(--text);border-color:var(--line)}
html[data-appearance=dark] :is(.auth-page,.center-page){background:radial-gradient(ellipse at 10% 80%,#163c32 0,transparent 60%),var(--bg)}
html[data-appearance=dark] .btn.ghost:hover{background:var(--surface-2);border-color:var(--muted)}
html[data-appearance=dark] :is(.banner,.form-error,.toast,.install-status){background:var(--surface-2);color:var(--text);border-color:var(--line)}
html[data-appearance=dark] :is(.banner.bad,.field-error,.form-error){color:var(--bad)}
html[data-appearance=dark] :is(.banner.warn,.pill.warn){color:var(--warn)}
html[data-appearance=dark] .pill.ok{color:var(--ok);background:var(--surface-2)}
html[data-appearance=dark] .workspace-foot{color:var(--muted);border-color:var(--line)}
html[data-appearance=dark] textarea.code{background:#091412;color:#d6eee2}
html[data-appearance=light] :is(input,textarea,select){color:var(--text)}
:is(button,.btn,input,select,textarea):focus-visible{outline:2px solid var(--brand);outline-offset:3px}
input:not([type=checkbox]):not([type=radio]):not([type=color]),select{min-height:44px}
button,.btn{min-height:44px}input,textarea{max-width:100%}
html[data-appearance] .btn{transition:transform .12s,border-color .12s,box-shadow .12s}
.upload-progress{width:100%;height:14px;accent-color:var(--brand)}
.code-example{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface-2);border:1px solid var(--line);padding:16px;border-radius:12px;font-size:.85rem}
details.native-option{margin-block-start:24px;padding:16px;border:1px solid var(--line);border-radius:16px}
details.native-option summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}
@media(max-width:700px){.top{padding:14px 16px;flex-wrap:wrap}.top-actions{width:100%;gap:8px}.top-actions .appearance-switch{margin-inline-start:auto}.appearance-switch{margin-block:6px}.content{padding:16px}.grid-form{gap:14px}.panel{padding:18px}.row-form{flex-wrap:wrap}.row-form .btn{flex:1}.nav{flex-wrap:wrap;justify-content:flex-end}.brand-name{max-width:36vw}.code-example{font-size:.75rem}}
