/* Shared palette for the archive and people graph. */
:root{
  color-scheme:light;
  --soft-ink:#566574;--surface:#fbfcfd;--surface-raised:#fff;
  --hover:#edf2f8;--selected:#e9eff8;--input-line:#c6cfd8;
  --chip:#e8edf4;--avatar-bg:#e4ecfa;--avatar-ink:#284c86;
  --focus:#d4e0f1;--graph-background:#f6f8fc;--on-blue:#fff;
  --shadow:#0003;--error:#923939;
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --ink:#e5edf6;--blue:#a8c6f4;--accent:#8db7f0;
  --muted:#9aa9bc;--line:#2b394b;--wash:#182332;
  --paper:#101722;--surface:#141e2b;--surface-raised:#192434;
  --hover:#1c2b3d;--selected:#21374e;--soft-ink:#b0bfd0;
  --input-line:#3c4b5e;--chip:#283447;
  --avatar-bg:#223a58;--avatar-ink:#b9d3fa;
  --focus:#4976a8;--graph-background:#182638;
  --on-blue:#0c1623;--shadow:#0008;--error:#ffadad;
}
nav{align-items:center}
input,select,.permalink{color:var(--ink)}
input::placeholder{color:var(--muted);opacity:1}
dialog{background:var(--paper);color:var(--ink);box-shadow:0 18px 70px var(--shadow)}
.quoted-text blockquote,.partial-notice{color:var(--soft-ink)}
.related-email:hover .related-subject{color:var(--accent)}
.center-halo{stroke:var(--line)}
.theme-control{position:relative;flex-shrink:0}
.theme-control .theme-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;min-height:44px;padding:0;
  border:1px solid var(--line);border-radius:8px;
  background:var(--paper);color:var(--ink);text-decoration:none;
}
.theme-toggle:hover{background:var(--hover)}
[data-theme-icon]{display:none}
:root:not([data-theme-preference]) [data-theme-icon="system"],
[data-theme-preference="system"] [data-theme-icon="system"],
[data-theme-preference="light"] [data-theme-icon="light"],
[data-theme-preference="dark"] [data-theme-icon="dark"]{display:block}
.theme-menu{
  position:absolute;right:0;top:calc(100% + 8px);z-index:30;
  width:176px;padding:6px;border:1px solid var(--line);border-radius:10px;
  background:var(--surface-raised);box-shadow:0 8px 28px var(--shadow);
}
.theme-menu-label{padding:8px 10px 7px;color:var(--muted);font-size:12px}
.theme-control .theme-menu button{
  display:flex;align-items:center;justify-content:flex-start;gap:10px;
  width:100%;min-height:44px;padding:9px 10px;border:0;border-radius:6px;
  background:none;color:var(--ink);font-size:14px;text-decoration:none;
}
.theme-menu button:hover{background:var(--hover)}
.theme-menu button[aria-checked="true"]{background:var(--selected)}
.theme-menu button:focus-visible{outline-offset:-3px}
.theme-menu svg{flex-shrink:0}
.theme-check{margin-left:auto;visibility:hidden}
[aria-checked="true"] .theme-check{visibility:visible}
[data-theme="dark"] .collection-logo:is([alt="X"],[alt="OpenAI"],[alt="Neuralink"],[alt="xAI"],[alt="Google DeepMind"],[alt="The Mercury News"],[alt="Bridgeton"]){filter:brightness(0) invert(1)}
[data-theme="dark"] .collection-logo:is([alt="NVIDIA"],[alt="Microsoft"],[alt="Meta"],[alt="Baron Capital"]){background:#fff;border-radius:2px;padding:2px}
[data-theme="dark"] .network-edge{stroke:#8195af;stroke-opacity:.32}
[data-theme="dark"] .network-edge.hub-edge{stroke-opacity:.45}
[data-theme="dark"] .network-edge.active-edge{stroke:#a8c6f4;stroke-opacity:.85}
[data-theme="dark"] .network-edge.dim-edge{stroke-opacity:.045}
[data-theme="dark"] .node-ring{stroke:color-mix(in srgb,var(--node-color) 65%,white)}
[data-theme="dark"] .legend-dot{background:color-mix(in srgb,var(--node-color) 65%,white)}
[data-theme="dark"] .network-node:is(.central,.selected,:focus,:hover) .node-ring{stroke:var(--blue)}
@media(max-width:760px){
  header{gap:8px}nav,.people-page nav{gap:8px}
}
