/* Light mode for Arca's pages (dark is each page's own default). The black top bar stays black in both modes. */
.arca-theme-btn { background: none; border: 1px solid #444; color: #bdbdbd; border-radius: 999px; width: 30px; height: 30px;
  display: inline-grid; place-items: center; padding: 0; cursor: pointer; flex: none; }
.arca-theme-btn:hover { color: #fff; border-color: #8b8b8b; }
.arca-theme-btn.floating { position: fixed; top: 14px; right: 14px; }
/* Account menu in the top bar */
.acct { position: relative; margin-left: auto; display: flex; align-items: center; }
header .acct .acct-btn, .acct-btn { width: 32px !important; text-decoration: none !important; height: 32px; border-radius: 50%; border: 1px solid #444; background: #2b2b2b !important; color: #fff !important; font: 600 12px/1 ui-sans-serif, system-ui, sans-serif !important; padding: 0 !important; cursor: pointer; display: grid; place-items: center; }
header .acct .acct-btn:hover, header .acct .acct-btn[aria-expanded=true] { border-color: #bdbdbd !important; }
header .acct .acct-btn { border: 1px solid #555 !important; height: 32px !important; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #1b1c1f; border: 1px solid #3a3b3f; border-radius: 10px; padding: 6px; z-index: 50; box-shadow: 0 12px 32px #0008; color: #ededed; }
.acct-who { padding: 8px 10px 10px; border-bottom: 1px solid #2c2d30; margin-bottom: 4px; font-size: 13px; line-height: 1.45; }
.acct-who b { display: block; font-size: 14px; }
.acct-who span { display: block; color: #8b8b8b; font-size: 12px; }
.acct-item { display: flex !important; align-items: center; gap: 10px; width: 100% !important; height: auto !important; border: 0 !important; border-radius: 6px !important; background: none; color: #ededed !important; padding: 8px 10px !important; font: 13px ui-sans-serif, system-ui, sans-serif; text-align: left; cursor: pointer; text-decoration: none !important; }
.acct-item:hover { background: #26272a; }
html[data-theme=light] .arca-theme-btn.floating { color: #444; border-color: #c9c9c9; }

html[data-theme=light] {
  color-scheme: light;
  --ink: #161616; --ink-2: #3d3d3d; --muted: #6b6b6b; --hair: #e2e2df; --line: #d6d6d2; --bg: #f4f4f2; --paper: #ffffff;
  --card: #ffffff; --card-hover: #f6f6f4; --card-sel: #ececea; --sunk: #f7f7f5; --sel: #ececea; --dark: #d6d6d2;
  --black: #000; --chip: #ececea; --chip-on: #161616; --focus: #6b6b6b; --accent: #161616; --primary: #161616;
  --ok: #1f8a4c; --ok-bg: #e5f4ea; --warn: #a8610a; --warn-bg: #fbf0dc; --danger: #c4372d; --ai: #8a6d00; --ai-bg: #fbf5dc;
}
/* Solid buttons are dark with white text in light mode. */
html[data-theme=light] .btn.solid, html[data-theme=light] .searchbar #go, html[data-theme=light] .pill.on,
html[data-theme=light] .seg button[aria-pressed=true] { color: #fff; }
html[data-theme=light] body:not(.report-page) .tabs button[aria-selected="true"] { color: #fff; }
html[data-theme=light] .btn.solid { background: #161616; border-color: #161616; }
html[data-theme=light] .btn.solid:hover:not(:disabled) { background: #333; }
html[data-theme=light] body:not(.admin-style) .btn:not(.solid):not(.btn-danger):not(.danger):not(.ai) { color: var(--ink); }
html[data-theme=light] body.admin-style .btn { color: #fff; }
html[data-theme=light] body.admin-style .btn-outline { color: var(--primary); }
html[data-theme=light] body.admin-style .btn-danger { color: var(--danger); border-color: #f0b8b1; }
html[data-theme=light] body.admin-style header .btn { color: #111; }
html[data-theme=light] .seg button[aria-pressed=true] { background: #161616; }
html[data-theme=light] .btn:hover:not(:disabled), html[data-theme=light] .pill:hover, html[data-theme=light] .item:hover { border-color: #9a9a96; }
/* Fields, tables, menus, dialogs */
html[data-theme=light] input:not([type=checkbox]):not([type=radio]), html[data-theme=light] select, html[data-theme=light] textarea {
  background: #fff; color: var(--ink); border-color: #cfcfcb; }
html[data-theme=light] header input, html[data-theme=light] header select { background: #111214; color: #ededed; border-color: #3a3b3f; }
html[data-theme=light] input[type=checkbox], html[data-theme=light] input[type=radio] { accent-color: #161616 !important; }
html[data-theme=light] th { background: #f0f0ee; }
html[data-theme=light] tbody tr:hover { background: #f6f6f4; }
html[data-theme=light] dialog { box-shadow: 0 24px 60px #0003; }
html[data-theme=light] dialog::backdrop { background: #0006; }
html[data-theme=light] .chip, html[data-theme=light] .pill.disabled, html[data-theme=light] .pill.pending, html[data-theme=light] .tabs .n { background: #ececea; color: #3d3d3d; }
html[data-theme=light] .chip.admin { background: #e3eefc; color: #1b4f8f; }
html[data-theme=light] .pill.locked, html[data-theme=light] .pill.bg { background: #fbe4e1; color: #9b2a20; }
html[data-theme=light] .error { background: #fbe4e1; color: #9b2a20; }
html[data-theme=light] .banner.err { background: #fbe4e1; border-color: #f0b8b1; }
html[data-theme=light] .banner.warn, html[data-theme=light] .status.preliminary, html[data-theme=light] .status.held, html[data-theme=light] .poc { border-color: #e7c78f; }
html[data-theme=light] .status.final { border-color: #9fd3b2; }
html[data-theme=light] .invite { background: #eaf1fd; border-color: #9bb9ec; }
html[data-theme=light] .ochip { background: #efe9fb; color: #5b3fa0; }
html[data-theme=light] .ghead, html[data-theme=light] .pickbar { background: #f0f0ee; }
html[data-theme=light] .aibox { border-color: #e6d58f; }
html[data-theme=light] .aibox td { border-bottom-color: #efe3ad; }
html[data-theme=light] .aibadge, html[data-theme=light] .btn.ai { border-color: #d9c46a; }
html[data-theme=light] .sec.active { border-left-color: #8b8b87; }
html[data-theme=light] textarea.text:focus { border-color: #8b8b87; }
html[data-theme=light] .status .dot { background: #9a9a96; }
/* Log-in page */
html[data-theme=light] body.login { background: #f4f4f2; color: #161616; }
html[data-theme=light] body.login .box { background: #fff; border-color: #e2e2df; box-shadow: 0 12px 40px #0001; }
html[data-theme=light] body.login button:not(.arca-theme-btn):not(.companies button) { background: #161616; color: #fff; }
html[data-theme=light] body.login .companies button { background: #fff; color: #161616; border-color: #d6d6d2; }
html[data-theme=light] body.login .note { background: #f0f0ee; }
html[data-theme=light] body.login .note.ok { background: #e5f4ea; }
html[data-theme=light] body.login a { color: #3d3d3d; }
html[data-theme=light] body.login .sub, html[data-theme=light] body.login .hint, html[data-theme=light] body.login .companies .role { color: #6b6b6b; }
/* Logos drawn in light colours flip to dark outside the black top bar. */
html[data-theme=light] body.login h1.logo svg [fill="#ededed"], html[data-theme=light] .brand svg [fill="#ededed"] { fill: #161616; }
html[data-theme=light] body.login h1.logo svg [stroke="#ededed"], html[data-theme=light] .brand svg [stroke="#ededed"] { stroke: #161616; }
/* The black top bar keeps its dark look in light mode (its text and buttons use the dark values). */
html[data-theme=light] header { color: var(--ink); --ink: #ededed; --ink-2: #bdbdbd; --muted: #8b8b8b; --hair: #2c2d30; --line: #3a3b3f; --paper: #18191b;
  --card: #1b1c1f; --sunk: #111214; --primary: #ededed; --accent: #ededed; color-scheme: dark; }
html[data-theme=light] header .btn.solid { background: #ededed; border-color: #ededed; color: #111; }
html[data-theme=light] header .btn:not(.solid) { background: transparent; }
html[data-theme=light] body.login .error { background: none; color: #c4372d; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo-badge .long { display: none; }
