/* Original values-only adapter shared by the public site and workspace. */
:root {
  color-scheme: light;
  --canvas:#f5f4f8; --surface:#fff; --raised:#eeecf4; --shell:#f5f4f8;
  --ink:#201b2e; --muted:#615c70; --line:#e3dfeb; --control-line:#64748b;
  --primary:#7c3aed; --on-primary:#fff; --secondary:#6d28d9; --focus:#7c3aed;
  --selected:#ede5fc; --inactive:#615c70; --inactive-bg:#eae7ef;
  --error:#b3202b; --warning:#8a5200; --success:#0f6b49;
  --node-memory:#8a5200; --node-idea:#0f6b49; --node-source:#1f55b0;
  --node-concept:#5c3db6; --node-theme:#126577;
  --graph-edge:#64748b; --graph-inferred:#5c3db6; --graph-grid:#e2e8f0;
  --font-ui:'IBM Plex Sans Variable','IBM Plex Sans',system-ui,sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas:#09080e; --surface:#14111c; --raised:#201a2a; --shell:#09080e;
  --ink:#f4f1fa; --muted:#aaa4b8; --line:#302839; --control-line:#94a3b8;
  --primary:#a78bfa; --on-primary:#09080e; --secondary:#c4b5fd; --focus:#c4b5fd;
  --selected:#251a39; --inactive:#aaa4b8; --inactive-bg:#1c1824;
  --error:#f58c93; --warning:#f0b354; --success:#5bd3a0;
  --node-memory:#f0b354; --node-idea:#5bd3a0; --node-source:#7db0f5;
  --node-concept:#c5b6ff; --node-theme:#7ed8e3;
  --graph-edge:#94a3b8; --graph-inferred:#c5b6ff; --graph-grid:#334155;
}
/* Reference: arcanada.ai/en/ language segment and icon-only appearance control. */
.preferences{display:flex;gap:16px;align-items:center;flex-wrap:wrap;font:500 14px/20px var(--font-ui)}
.locale-buttons{display:flex;gap:0;align-items:center;padding:4px;border-radius:999px;background:var(--inactive-bg)}
.preferences button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:10px 16px;border:0;border-radius:999px;background:transparent;color:var(--muted);font:inherit;cursor:pointer}
.locale-buttons [data-locale=en]{order:0}.locale-buttons [data-locale=ru]{order:1}
.preferences .locale-buttons button[aria-pressed=true]{background:#7c3aed;color:#fff;box-shadow:none}
.locale-buttons button:hover:not([aria-pressed=true]){background:var(--surface);color:var(--ink)}
.preferences [data-theme-toggle]{width:44px;height:44px;padding:10px;color:var(--ink)}
.preferences [data-theme-toggle]:hover{background:var(--inactive-bg)}
.preferences [data-theme-toggle] svg{width:24px;height:24px;flex:none}
:where(button,a,input,textarea,select,summary,[tabindex]):focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.preference-note{font-size:12px;line-height:16px;color:var(--muted);margin:8px 0 0;max-width:48ch}
[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
