/* Shared white ASCII ocean, with readable translucent Home panels. */
html { color-scheme: light; background: #fcfcfb; }
body { isolation: isolate; color: #263543; }
body::before { display: none; }
body::after { z-index: -1; pointer-events: none; background: radial-gradient(ellipse 48% 50% at 50% 48%, rgb(232 230 222 / 38%), transparent); }
.home-ocean { position: fixed; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; pointer-events: none; font-family: "Geist Mono", ui-monospace, Menlo, monospace; }
:root, [data-theme="dark"] { --panel: rgb(236 241 246 / 68%); --panel-border: rgb(86 112 139 / 19%); --muted: #607386; --hover: rgb(65 110 155 / 9%); }
[data-theme="light"] { --panel: rgb(253 253 249 / 68%); --panel-border: rgb(110 131 150 / 19%); }
[data-theme="claude"] { --panel: rgb(242 234 219 / 70%); --panel-border: rgb(136 117 88 / 22%); }
[data-dim="true"] body::after { background: rgb(42 51 42 / 16%); }
.brand, .top-actions, .nav, .session-status { color: #52697d; }
.nav a.active { color: #285b89; }
.nav a.active::after { background: #5081ad; }
.motto, .group-count, .group-count span, .tag, .result-count, .footer, .quote-by { color: #607386; }
.sec-head h2 { color: #315c80; }
section { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.session-action, .edit-button { background: rgb(245 247 241 / 52%); color: #425f79; }
.skip { color: #fff; }
:focus-visible { outline-color: #4381b7; }
dialog { color: #263543; background: #f4f5ee; border-color: #adbdcc; }
.setting-row select, .quote-form textarea, .quote-form input { color: #263543; background: #fffef8; border-color: #adbdcc; }
.about-copy, .dialog-note { color: #607386; }
.save { background: #477fae; color: #fff; }

/* Background themes are independent from the saved panel style. */
.ocean-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--panel-border); border-radius: 10px; background: var(--panel); backdrop-filter: blur(8px); }
.ocean-switch button { padding: 6px 10px; min-height: 32px; border: 0; border-radius: 7px; background: transparent; color: inherit; font-size: 12px; white-space: nowrap; }
.ocean-switch button:hover { background: var(--hover); }
.ocean-switch button[aria-pressed="true"] { background: #477fae; color: #fff; }
html[data-ocean-theme="night"] { color-scheme: dark; background: #111c2b; }
html[data-ocean-theme="ocean"] { color-scheme: dark; background: #246a96; }
[data-ocean-theme="night"], [data-ocean-theme="ocean"] { --panel: rgb(12 31 49 / 64%); --panel-border: rgb(183 217 235 / 24%); --muted: #c0d5e1; --hover: rgb(180 221 240 / 12%); }
[data-ocean-theme="ocean"] { --panel: rgb(17 57 85 / 64%); }
[data-ocean-theme="night"] body, [data-ocean-theme="ocean"] body { color: #edf5f8; }
[data-ocean-theme="night"] body::after, [data-ocean-theme="ocean"] body::after { background: radial-gradient(ellipse 45% 50% at 50% 44%, rgb(97 157 187 / 7%), transparent); }
:is([data-ocean-theme="night"], [data-ocean-theme="ocean"]) :is(.brand,.top-actions,.nav,.session-status,.motto,.group-count,.group-count span,.tag,.result-count,.footer,.quote-by,.about-copy,.dialog-note) { color: #c0d5e1; }
:is([data-ocean-theme="night"], [data-ocean-theme="ocean"]) :is(.nav a.active,.sec-head h2) { color: #eef8fc; }
:is([data-ocean-theme="night"], [data-ocean-theme="ocean"]) .nav a.active::after { background: #b4e2f2; }
:is([data-ocean-theme="night"], [data-ocean-theme="ocean"]) :is(.session-action,.edit-button) { color: #deeff7; background: rgb(26 64 90 / 54%); }
:is([data-ocean-theme="night"], [data-ocean-theme="ocean"]) dialog { color: #edf5f8; background: #17354c; border-color: #52778c; }
:is([data-ocean-theme="night"], [data-ocean-theme="ocean"]) :is(.setting-row select,.quote-form textarea,.quote-form input) { color: #edf5f8; background: #102a3e; border-color: #52778c; }
:is([data-ocean-theme="night"], [data-ocean-theme="ocean"]) .ocean-switch button[aria-pressed="true"] { color: #15384f; background: #c4e5f3; }
:is([data-ocean-theme="night"], [data-ocean-theme="ocean"])[data-dim="true"] body::after { background: rgb(2 12 24 / 27%); }
@media(max-width:850px) { .top { gap: 20px; } .top-actions { gap: 8px; } .ocean-switch button { padding: 6px 8px; } }
@media(max-width:600px) {
  .top { height: auto; min-height: 60px; flex-wrap: wrap; column-gap: 12px; row-gap: 4px; padding: 8px 0; }
  .top-actions { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; gap: 5px; }
  .ocean-switch { order: -1; }
  .ocean-switch button { padding: 5px 7px; font-size: 11px; }
  .settings-button { width: 30px; }
  .nav { gap: 12px; }
}
@media(max-width:420px) { .top-actions { width: 100%; justify-content: space-between; } .ocean-switch { order: 0; margin-left: auto; } }
