/* Native 2.8 semantic themes. These apply to interface chrome, not event artwork. */
html[data-ocean-theme=daylight]{
 --paper:#fcfdff;--surface:#ffffff;--soft:#edf4f7;--elevated:#ffffff;
 --ink:#13233f;--muted:#526178;--action:#0065b9;--on-action:#ffffff;
 --border:#c5d3de;--control-border:#78899f;--focus:#0065b9;
 --success:#17634c;--warning:#805000;--error:#ac293b;
 --overlay:#13233f66;--shadow:0 8px 32px #13233f14;color-scheme:light;
}
html[data-ocean-theme=deep]{
 --paper:#0b1729;--surface:#13233f;--soft:#1c304d;--elevated:#1c304d;
 --ink:#f4f8fc;--muted:#b7c7dc;--action:#8bc9ff;--on-action:#10213b;
 --border:#54667e;--control-border:#8398b4;--focus:#8bc9ff;
 --success:#83dec1;--warning:#ffd28f;--error:#ffb2be;
 --overlay:#020914b3;--shadow:0 8px 32px #02091466;color-scheme:dark;
}
html[data-ocean-theme=cinematic]{
 --paper:#060b14;--surface:#0d1726;--soft:#18263a;--elevated:#1c2d43;
 --ink:#f6f9ff;--muted:#bdcce0;--action:#91e7e0;--on-action:#082a28;
 --border:#4b607b;--control-border:#8cabc5;--focus:#91e7e0;
 --success:#8de6b9;--warning:#ffce8c;--error:#ffb5bd;
 --overlay:#01050cd9;--shadow:0 12px 38px #00000080;color-scheme:dark;
}
html[data-ocean-theme]{
 --background:var(--paper);--text-primary:var(--ink);--text-secondary:var(--muted);
 --accent:var(--action);--surface-elevated:var(--elevated);
 --navigation:var(--surface);--card:var(--surface);--interactive:var(--soft);
 --interactive-active:var(--action);--on-interactive-active:var(--on-action);
 --focus-ring:var(--focus);--state-success:var(--success);--state-warning:var(--warning);--state-error:var(--error);
 background:var(--background);color:var(--text-primary);
}
/* Theme changing is immediate, so rapid changes never queue animations. */
html[data-ocean-theme] body{background:var(--background);color:var(--text-primary)}
html[data-ocean-theme] dialog::backdrop{background:var(--overlay)}
/* Density adjusts whitespace only: text and controls keep their readable size. */
html[data-density=dense] .feed22-post{margin-bottom:6px;padding-bottom:4px}
html[data-density=dense] .feed27-body{margin-top:6px}
html[data-density=dense] .feed27-copy>.feed27-excerpt{margin-block:6px}
html[data-density=dense] .feed27-compact:not(.feed27-expanded) .feed27-excerpt{margin:0}
html[data-density=dense] .feed22-actions button,html[data-density=dense] .feed27-toggle{min-height:44px;min-width:44px}
/* The OS request always wins; opting in locally also covers CSS-only motion. */
html[data-motion=reduced]{--motion:0ms;--motion-press:0ms;--motion-surface:0ms}
html[data-motion=reduced] *,html[data-motion=reduced] *::before,html[data-motion=reduced] *::after{
 animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:0ms!important;scroll-behavior:auto!important;
}
@media(prefers-reduced-motion:reduce){
 html[data-ocean-theme] *,html[data-ocean-theme] *::before,html[data-ocean-theme] *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:0ms!important;scroll-behavior:auto!important}
}

/* Accent palettes: independent from atmosphere, emblem and event artwork. */
html[data-ocean-theme=daylight][data-accent=ocean]{--action:#0065b9;--focus:#0065b9;--on-action:#ffffff}
html[data-ocean-theme]:not([data-ocean-theme=daylight])[data-accent=ocean]{--action:#8bc9ff;--focus:#8bc9ff;--on-action:#10213b}
html[data-ocean-theme=daylight][data-accent=turquoise]{--action:#006c68;--focus:#006c68;--on-action:#ffffff}
html[data-ocean-theme]:not([data-ocean-theme=daylight])[data-accent=turquoise]{--action:#72dfd2;--focus:#72dfd2;--on-action:#10213b}
html[data-ocean-theme=daylight][data-accent=coral]{--action:#b23c28;--focus:#b23c28;--on-action:#ffffff}
html[data-ocean-theme]:not([data-ocean-theme=daylight])[data-accent=coral]{--action:#ffb39f;--focus:#ffb39f;--on-action:#10213b}
html[data-ocean-theme=daylight][data-accent=violet]{--action:#713bb8;--focus:#713bb8;--on-action:#ffffff}
html[data-ocean-theme]:not([data-ocean-theme=daylight])[data-accent=violet]{--action:#d1b3ff;--focus:#d1b3ff;--on-action:#10213b}
html[data-ocean-theme=daylight][data-accent=rose]{--action:#ab2765;--focus:#ab2765;--on-action:#ffffff}
html[data-ocean-theme]:not([data-ocean-theme=daylight])[data-accent=rose]{--action:#ffadd0;--focus:#ffadd0;--on-action:#10213b}
html[data-ocean-theme=daylight][data-accent=green]{--action:#176b43;--focus:#176b43;--on-action:#ffffff}
html[data-ocean-theme]:not([data-ocean-theme=daylight])[data-accent=green]{--action:#89e0ae;--focus:#89e0ae;--on-action:#10213b}
html[data-ocean-theme=daylight][data-accent=amber]{--action:#875600;--focus:#875600;--on-action:#ffffff}
html[data-ocean-theme]:not([data-ocean-theme=daylight])[data-accent=amber]{--action:#ffd184;--focus:#ffd184;--on-action:#10213b}
html[data-ocean-theme=daylight][data-accent=indigo]{--action:#454bb0;--focus:#454bb0;--on-action:#ffffff}
html[data-ocean-theme]:not([data-ocean-theme=daylight])[data-accent=indigo]{--action:#b9c0ff;--focus:#b9c0ff;--on-action:#10213b}
