/* Quiet scenery around solid, readable writing surfaces. */
html[data-theme="meadow"] {
  color-scheme: light;
  --page:#b6b39a;--paper:#f7f3e8;--panel:#eee8da;--panel2:#e4dccb;
  --ink:#36382f;--muted:#686657;--line:#a49c86;--line-soft:#d0c7b4;
  --accent:#75633c;--accent-soft:#e3dac3;--on-accent:#fffdf6;
  --good:#4f6c51;--warn:#8a6838;--bad:#934f45;--tip:#536b72;
  --focus:#79693f;--shadow:rgba(44,44,31,.18);
  --theme-background:none;--theme-background-size:cover;
  --editor-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}
html[data-theme="arctic"] {
  color-scheme:dark;
  --page:#535e66;--paper:#272e34;--panel:#303940;--panel2:#3a454e;
  --ink:#e9edef;--muted:#bac5cc;--line:#7e929f;--line-soft:#4c5b66;
  --accent:#a4c0cf;--accent-soft:#394c58;--on-accent:#1e2b33;
  --good:#a0baa8;--warn:#cfb990;--bad:#d5a09a;--tip:#a3bdcc;
  --focus:#aec8d6;--shadow:rgba(9,16,20,.32);--nature-shade:rgba(18,27,34,.12);
}
html[data-theme="appalachian"] {
  color-scheme:dark;
  --page:#5a554b;--paper:#40362e;--panel:#4c4136;--panel2:#594c3e;
  --ink:#f1eadd;--muted:#ccc0ae;--line:#a28d72;--line-soft:#76634f;
  --accent:#d3b384;--accent-soft:#62523d;--on-accent:#30271e;
  --good:#b0c09c;--warn:#dbbd83;--bad:#e0ada0;--tip:#b2c6c6;
  --focus:#ddc198;--shadow:rgba(25,19,14,.3);--nature-shade:rgba(35,29,23,.10);
}
html[data-theme="forest"] {
  color-scheme:light;
  --page:#596452;--paper:#f5f3e9;--panel:#e9e7dc;--panel2:#deddd0;
  --ink:#343b32;--muted:#60675b;--line:#929b85;--line-soft:#c8cdbb;
  --accent:#596e4e;--accent-soft:#dce3d2;--on-accent:#fffdf6;
  --good:#4b684e;--warn:#856338;--bad:#945247;--tip:#516d71;
  --focus:#5b734e;--shadow:rgba(25,38,22,.2);--nature-shade:rgba(29,44,25,.08);
}
html[data-theme="moonlit-ocean"] {
  color-scheme:dark;
  --page:#13232e;--paper:#222c38;--panel:#2c3745;--panel2:#374453;
  --ink:#f0f0eb;--muted:#bcc7d1;--line:#8499ad;--line-soft:#4b5b6c;
  --accent:#b4c7da;--accent-soft:#3b4e62;--on-accent:#1c2c3b;
  --good:#a1c2b2;--warn:#d2be93;--bad:#d5a5a2;--tip:#a9c4da;
  --focus:#c4d5e4;--shadow:rgba(3,10,17,.35);--nature-shade:rgba(5,15,26,.06);
}
html[data-theme="quiet-lake"] {
  color-scheme:light;
  --page:#7e9291;--paper:#f2f3ed;--panel:#e5e7e1;--panel2:#d7ddd6;
  --ink:#34413f;--muted:#5f6d68;--line:#93a39b;--line-soft:#c4cec6;
  --accent:#516f69;--accent-soft:#d5e3dc;--on-accent:#fafdf8;
  --good:#4c6c58;--warn:#856637;--bad:#955349;--tip:#4d6b7a;
  --focus:#53786f;--shadow:rgba(24,42,38,.19);--nature-shade:rgba(36,54,52,.08);
}
html[data-nature-theme] {
  --theme-background:none;--theme-background-size:cover;
  --editor-font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}
html[data-nature-theme] body { position:relative; isolation:isolate; background-image:none; }
#solarNatureBackdrop { position:fixed; inset:0; z-index:-1; pointer-events:none; overflow:hidden; background-color:var(--page); background-position:center; background-size:cover; background-repeat:no-repeat; }
#solarNatureBackdrop video { display:block; width:100%; height:100%; object-fit:cover; object-position:center; opacity:0; pointer-events:none; }
#solarNatureBackdrop.has-video video { opacity:1; }
#solarNatureBackdrop::after { content:""; position:absolute; inset:0; background:var(--nature-shade,rgba(54,56,40,.08)); pointer-events:none; }
html:not([data-nature-theme]) #solarNatureBackdrop { display:none; }
html[data-nature-theme] body .live-header { background:var(--paper); border:1px solid var(--line-soft); border-radius:13px; padding:8px; backdrop-filter:none; }
html[data-nature-theme] #appViewNav.unified-view-nav,
html[data-nature-theme] .global-focus-selector,
html[data-nature-theme] .mobile-taskbar,
html[data-nature-theme] .workspace-menu { background:var(--panel); backdrop-filter:none; }
html[data-nature-theme] .app-home-view { background:var(--paper); }
html[data-nature-theme] .global-focus-selector button:disabled { opacity:1; color:var(--muted); background:var(--panel2); }
html[data-nature-theme] .notice { background:var(--panel); }
.theme-select-control { display:grid; grid-template-columns:minmax(0,1fr); grid-template-areas:none; gap:9px; min-width:0; width:100%; }
.theme-select-control > .theme-label,
.theme-select-control > .theme-name,
.theme-select-control > .theme-fader,
.theme-select-control > .theme-stops { display:none; }
.theme-select-control label { font-size:.8rem; font-weight:700; }
.theme-select-control select { width:100%; min-height:44px; padding:8px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--paper); font:inherit; }
.theme-select-control small { color:var(--muted); line-height:1.5; }
.nature-theme-credit { color:var(--muted); font-size:.68rem; line-height:1.5; text-underline-offset:3px; }
.theme-select-control [hidden] { display:none !important; }
@media (prefers-reduced-motion:reduce) { #solarNatureBackdrop video { display:none; } }
