html { color-scheme: only light; background: #fff; width: 100%; height: 100%; }
/* An actual fixed, opaque canvas also supplies the browser's edge-color sampler. */
body { position: fixed; inset: 0; background: #fff; margin: 0; width: 100%; height: 100%; overflow: hidden; }
#root { background: #fff; height: var(--hgy-viewport-height, 100dvh); min-height: 0; }
*:focus-visible { outline: 2px solid #315f8c; outline-offset: 3px; }
[data-testid="inline-todo-title"]:focus,
[data-testid="inline-todo-title"]:focus-visible,
[data-testid="inline-edit-title"]:focus,
[data-testid="todo-title"]:focus,
[data-testid="todo-title"]:focus-visible,
[data-testid="inline-edit-title"]:focus-visible { outline: none; box-shadow: none; }
/* Only automatic return from inline editing; blur restores ordinary keyboard focus styling. */
[data-todo-focus-return="true"]:focus { outline: none; }
input, textarea { scroll-margin-block: 24px; }
/* Keep explicit return positions when the refreshed friend row appears. */
[data-testid="home-list-scroll"] { overflow-anchor: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
