:root[data-theme="ocean"]{--accent:#77b9ee;--accent2:#aed7fa;--ram-color:#77b9ee;--accent-soft:#182b3b;--accent-border:#355b78;--border:#293540;--bg:#0a1016;--surface:#101a24;--surface2:#172330;--chrome:#0e1720;--text:#d4e0e9;--muted:#99adbd;--heading:#edf5fc;--console-bg:#091016;--chart-grid:#293540}
:root[data-theme="forest"]{--accent:#83bf93;--accent2:#b1dcbb;--ram-color:#83bf93;--accent-soft:#1b2c21;--accent-border:#3d6548;--border:#2c3930;--bg:#0c110e;--surface:#141d17;--surface2:#1b2820;--chrome:#101912;--text:#d6e1d7;--muted:#a0b3a2;--heading:#eef5ed;--console-bg:#0a100c;--chart-grid:#2c3930}
:root:is([data-theme="light"],[data-theme="field"]){color-scheme:light;--bg:#e9edf0;--surface:#ffffff;--surface2:#f1f4f6;--border:#c8d0d7;--accent:#806010;--accent2:#71520a;--ram-color:#806010;--cpu-color:#266994;--accent-soft:#f2e8cb;--accent-border:#b49b5c;--chrome:#f8fafb;--text:#25313a;--muted:#52616d;--heading:#18242d;--console-bg:#f3f6f8;--online:#287444;--offline:#b63333;--warn:#93600c;--chart-grid:#d8dfe5}
html[data-theme] .dashboard-heading .server-overview{background:transparent}
:root:not([data-theme="original"]) .ctrl-btn{background:var(--surface2)}:root:not([data-theme="original"]) .ctrl-btn.start{color:var(--online)}:root:not([data-theme="original"]) .ctrl-btn.stop{color:var(--offline)}:root:not([data-theme="original"]) .ctrl-btn.reset{color:var(--accent)}
:root:not([data-theme="original"]) .section-tabs button[aria-selected="true"],:root:not([data-theme="original"]) .section-filter button[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent2);border-color:var(--accent-border)}
:root:is([data-theme="light"],[data-theme="field"]) :is(.chart-card,.card,.mods-card,.config-category,.files-workspace,.console-workspace,.mods-dialog,.console-command-card,.config-code-block,.mods-toolbar,.mod-review-card){background:var(--surface);color:var(--text);border-color:var(--border)}
:root:is([data-theme="light"],[data-theme="field"]) :is(input,select,textarea,pre,.console-row-message,.files-content){background-color:var(--console-bg);color:var(--text);border-color:var(--border)}
:root:is([data-theme="light"],[data-theme="field"]) #panel-console :is(.console-log-output,#console-view-errors,#console-view-players,#console-command-form,#console-command-output,.console-broadcast,.console-workspace-filters){background:var(--console-bg);color:var(--text);border-color:var(--border)}
:root:is([data-theme="light"],[data-theme="field"]) #panel-console :is(.console-row-message,.console-error-group strong,.console-tab-empty){color:var(--text)}
:root:is([data-theme="light"],[data-theme="field"]) #panel-console :is(.console-view-tabs button,.console-levels button,.console-filter-tools button,.console-server-actions button,.console-broadcast button,#console-command-form button){background:var(--surface2);color:var(--text);border-color:var(--border)}
:root:is([data-theme="light"],[data-theme="field"]) :is(.field label,.field-group label,.chart-sub,.feature-note,.stat-item .label,.section-tabs button){color:var(--muted)}
:root:not([data-theme="original"]) .config-modes{background:var(--surface2)}
:root:not([data-theme="original"]) .layout :is(button[aria-selected="true"],button[aria-pressed="true"]){background:var(--accent-soft);color:var(--accent2);border-color:var(--accent-border)}
html:is([data-theme="light"],[data-theme="field"]) :is(#panel-files,#panel-network,#panel-mods,#panel-configuration,#panel-persistence,#panel-console) :is(label,h3,strong,th,.files-entry,.mods-name,.mod-name){color:var(--text)}
html:is([data-theme="light"],[data-theme="field"]) :is(#panel-files,#panel-network,#panel-mods,#panel-configuration,#panel-persistence,#panel-console) :is([class*="card"],[class*="toolbar"],[class*="savebar"],[class*="browser"],[class*="editor"],[class*="dialog"],.network-chart,.config-modes){background-color:var(--surface);color:var(--text);border-color:var(--border)}
html:is([data-theme="light"],[data-theme="field"]) :is(#panel-files,#panel-network,#panel-mods,#panel-configuration,#panel-persistence,#panel-console) :is(input,select,textarea,pre){background-color:var(--console-bg);color:var(--text);border-color:var(--border)}
html:is([data-theme="light"],[data-theme="field"]) #config-json-text{background:var(--console-bg);color:var(--text)}
