/* The dark look (Devin 2026-11-15: "make the background dark themed instead of white ... there should be a toggle").
   The same tokens as tokens.css, at night. It is on when the page carries data-theme="dark" (the switch in the
   account menu; js/theme.js sets it before the first paint), and always on the video page, which is a dark room
   whatever the switch says. Loaded last, so these rules win over the fixed colours in the other files. */
:root[data-theme="dark"], body:has(main.vw) {
  --bg: #12100B; --paper: #1D1A13; --line: #322C20; --line-strong: #4D4433; --ink: #F2EBDC; --muted: #A99D84;
  --brass: #C9A54E; --brass-ink: #D7B45F; --brass-soft: #3B311A; --green: #2F6B54; --green-soft: #1B2C24;
  --bad: #C4553F; --bad-soft: #3A1E18; --scrim: rgba(0, 0, 0, .6);
  color-scheme: dark;
}
:is([data-theme="dark"], body:has(main.vw)) .top { background: rgba(18, 16, 11, .92); }
:is([data-theme="dark"], body:has(main.vw)) .tabbar { background: rgba(29, 26, 19, .96); }
:is([data-theme="dark"], body:has(main.vw)) :is(.btn, .iconbtn):hover { background: rgba(255, 255, 255, .08); }
:is([data-theme="dark"], body:has(main.vw)) .btn.primary:hover { background: #FFFFFF; }
:is([data-theme="dark"], body:has(main.vw)) .btn.green:hover { background: #378063; }
:is([data-theme="dark"], body:has(main.vw)) .btn.kill:hover { background: #D4654F; }
/* Brass that carried white words by day is light at night: its words go dark. */
:is([data-theme="dark"], body:has(main.vw)) :is(.pill.review, .tabbar .dot b, .seg b, .unread, .frow.new .y-ico) { color: #12100B; }
:is([data-theme="dark"], body:has(main.vw)) .chip[aria-pressed="true"] { color: var(--bg); }
:is([data-theme="dark"], body:has(main.vw)) .seg { background: #2A251B; }
:is([data-theme="dark"], body:has(main.vw)) .seg button { color: var(--muted); }
:is([data-theme="dark"], body:has(main.vw)) .seg button[aria-selected="true"] { background: #4D4433; color: var(--ink); box-shadow: none; }
:is([data-theme="dark"], body:has(main.vw)) .t-text code { background: rgba(255, 255, 255, .1); }
:is([data-theme="dark"], body:has(main.vw)) :is(.menu a, .menu button, .navpop a, button.word):hover {
  background: rgba(255, 255, 255, .07);
}
:is([data-theme="dark"], body:has(main.vw)) :is(.cover, .player, .vw-stage video) { background: #000; }
:is([data-theme="dark"], body:has(main.vw)) :is(.nocover, .st.none) { color: #8C826C; }
:is([data-theme="dark"], body:has(main.vw)) .vcard .pill.quiet, :is([data-theme="dark"], body:has(main.vw)) .dvcard .pill.quiet {
  background: #2A251B; color: var(--ink);
}
:is([data-theme="dark"], body:has(main.vw)) :is(input, textarea, select) { color-scheme: dark; }
/* The mark in the top corner is drawn for a light page: a soft plate keeps it readable. */
:is([data-theme="dark"], body:has(main.vw)) .logo img { background: #F6F1E7; border-radius: 50%; }
