/* Word Pocket shares the main site's saved choice; new visits start dark. */
:root:not([data-theme="light"]) {
  color-scheme: dark;
  --paper: #17131c;
  --white: #25202e;
  --ink: #f0eaf6;
  --dim: #c4b8cf;
  --line: #62536f;
  --purple: #c9a8f5;
  --deep: #e0c9fc;
  --lav: #37283f;
  --lime: #d9eb8e;
}
:root[data-theme="light"] { color-scheme: light; }
.mast { flex-wrap: wrap; }
.theme-toggle { flex: none; width: 42px; min-height: 42px; padding: .55rem; }
:root:not([data-theme="light"]) .theme-icon-moon,
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root:not([data-theme="light"]) :focus-visible,
:root:not([data-theme="light"]) .file-button:has(+ input:focus-visible) { outline-color: var(--purple); }
:root:not([data-theme="light"]) .modes { background: #201b28; }
:root:not([data-theme="light"]) :is(textarea, input:not([type="file"]), select) { background: #201b28; }
:root:not([data-theme="light"]) :is(textarea, input)::placeholder { color: #bbaeC6; }
:root:not([data-theme="light"]) .primary {
  background: var(--purple);
  color: #201528;
  border-color: var(--purple);
}
:root:not([data-theme="light"]) .primary:hover { background: #dfc5ff; border-color: #dfc5ff; }
:root:not([data-theme="light"]) .study-card {
  background: #32213f;
  color: #faf5ff;
  border-color: #9670b1;
}
:root:not([data-theme="light"]) .study-card:hover { background: #412b51; }
:root:not([data-theme="light"]) .card-foot { color: #e4d5f0; }
:root:not([data-theme="light"]) .logo { background: #382456; }
:root:not([data-theme="light"]) .lookup-original { background: #302637; }
:root:not([data-theme="light"]) #setup-status { color: var(--deep); }
:root:not([data-theme="light"]) #setup-form input[aria-invalid="true"] {
  border-color: #ff9bad;
  box-shadow: 0 0 0 1px #ff9bad;
}
:root:not([data-theme="light"]) .capture-row .capture-error { color: #ff9bad; }
