/* DM Sans, shipped with the app (no trip to Google on start-up). One variable file per range. */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/dmsans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/dmsans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  /* WattDesk's palette (css/base.css), so the two feel like one family */
  --bg: #f5f4f0; --panel: #ffffff; --panel2: #f9f8f5; --ink: #1a1a1a; --muted: #6b6b6b; --line: #e8e6e0;
  --accent: #c0392b; --accent-soft: #fdf2f1; --sel: #fdf2f1; --mark: #ffe9a8;
  --file: #1a5c9a; --job: #c0392b; --quote: #1a7a4a; --invoice: #6b3fa0; --mail: #b08d00; --customer: #b03a78;
  --radius: 10px; --shadow: 0 2px 8px rgba(0,0,0,.07);
  color-scheme: light;
}
/* Dark: the computer's setting, unless the sun/moon button picked one (theme.js) */
:root[data-theme="dark"] {
    --bg: #111113; --panel: #1c1c1f; --panel2: #161618; --ink: #e5e4e1; --muted: #909090; --line: #2e2e33;
    --accent: #e05244; --accent-soft: #2c1512; --sel: #24181a; --mark: #5c4710;
    --file: #4a96e8; --job: #e05244; --quote: #2eb870; --invoice: #a97de8; --mail: #d4aa28; --customer: #e07ab0;
    --shadow: 0 2px 8px rgba(0,0,0,.4); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111113; --panel: #1c1c1f; --panel2: #161618; --ink: #e5e4e1; --muted: #909090; --line: #2e2e33;
    --accent: #e05244; --accent-soft: #2c1512; --sel: #24181a; --mark: #5c4710;
    --file: #4a96e8; --job: #e05244; --quote: #2eb870; --invoice: #a97de8; --mail: #d4aa28; --customer: #e07ab0;
    --shadow: 0 2px 8px rgba(0,0,0,.4); color-scheme: dark;
  }
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.45 "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex; flex-direction: column; overflow: hidden; }
button, select, input { font: inherit; color: inherit; }
kbd { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--accent-soft);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }
.muted { color: var(--muted); }

/* header */
.top { display: flex; align-items: center; gap: 16px; padding: 12px 18px; background: var(--panel); color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-top: max(12px, env(safe-area-inset-top)); -webkit-app-region: drag; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650;
  white-space: nowrap; -webkit-app-region: no-drag; }
.brand img { border-radius: 7px; }
.qbox { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--panel2); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px; padding: 4px 4px 4px 12px; max-width: 900px; -webkit-app-region: no-drag; }
.qicon { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
#q { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 7px 0; min-width: 0; color: var(--ink); }
.qbox:focus-within { border-color: var(--accent); }
.mode { display: flex; background: var(--line); border-radius: 7px; padding: 2px; flex: none; }
.mode button { border: 0; background: transparent; padding: 5px 12px; border-radius: 6px; cursor: pointer; color: var(--muted); }
.mode button.on { background: var(--panel); color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.12); font-weight: 600; }

/* filters */
.filters { display: flex; align-items: center; gap: 10px; padding: 8px 18px; border-bottom: 1px solid var(--line);
  background: var(--panel); flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: 3px 11px; cursor: pointer;
  white-space: nowrap; }
.chip b { font-weight: 600; color: var(--muted); margin-left: 4px; }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip.on b { color: #fde3e0; }
.understood { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.understood span { background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 2px 8px; font-size: 12.5px; font-weight: 600; }
#year, #sort, .subfilters select { border: 1px solid var(--line); background: var(--panel); border-radius: 7px; padding: 4px 8px; max-width: 220px; }
.subfilters { display: flex; gap: 6px; flex-wrap: wrap; }
.subfilters select.on, #sort.on { border-color: var(--accent); color: var(--accent); }
.fy { font-weight: 600; color: var(--ink); }
.amt small { font-weight: 400; color: var(--muted); }

/* split view */
.split { flex: 1; display: grid; grid-template-columns: min(var(--list-w, 44%), calc(100% - 340px)) 7px minmax(0, 1fr); min-height: 0; }
.split.nopv { grid-template-columns: 1fr; }
.split.nopv .preview, .split.nopv .divider { display: none; }
.results { overflow-y: auto; background: var(--panel); min-width: 0; }
.divider { cursor: col-resize; background: var(--line); background-clip: content-box; padding: 0 3px; position: relative; z-index: 1; }
.divider:hover, .divider.drag { background: var(--accent); padding: 0 2px; }
body.resizing { cursor: col-resize; user-select: none; }
body.resizing iframe { pointer-events: none; }
.pvtoggle { border: 1px solid var(--line); background: var(--panel); border-radius: 7px; padding: 4px 7px; cursor: pointer;
  display: inline-flex; color: var(--muted); }
.pvtoggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pvtoggle[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.preview { overflow-y: auto; padding: 22px 26px; min-width: 0; }
#list { list-style: none; margin: 0; padding: 0; }
.hit { display: grid; grid-template-columns: 28px 1fr auto; gap: 2px 10px; padding: 10px 16px; cursor: pointer;
  border-bottom: 1px solid var(--line); }
.hit:hover { background: var(--sel); }
.hit.sel { background: var(--sel); box-shadow: inset 3px 0 0 var(--accent); }
.hit .ic { grid-row: span 2; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff; }
.hit .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit .s { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; grid-column: 2 / 4; }
.hit .r { color: var(--muted); font-size: 12px; white-space: nowrap; text-align: right; }
.hit .r .amt { color: var(--quote); font-weight: 600; }
.hit .sn { grid-column: 2 / 4; font-size: 12.5px; color: var(--muted); overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ic.file { background: var(--file); } .ic.job { background: var(--job); } .ic.quote { background: var(--quote); }
.ic.invoice { background: var(--invoice); } .ic.mail { background: var(--mail); } .ic.customer { background: var(--customer); }
.more { display: block; margin: 12px auto 18px; border: 1px solid var(--line); background: var(--panel); border-radius: 8px;
  padding: 6px 16px; cursor: pointer; }
.empty { padding: 34px 28px; color: var(--ink); }
.empty h1 { font-size: 20px; margin: 0 0 6px; }
.tips { padding-left: 18px; line-height: 2; }

/* preview */
.pv-head h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.pv-sub { color: var(--muted); margin-bottom: 12px; overflow-wrap: anywhere; }
.pv-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.tag { font-size: 12px; border-radius: 6px; padding: 2px 8px; background: var(--accent-soft); color: var(--accent); font-weight: 600;
  cursor: pointer; border: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 6px 12px; cursor: pointer;
  text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--shadow); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn:hover { filter: brightness(.97); }
.frame { width: 100%; height: calc(100vh - 260px); min-height: 420px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; }
.pv-imgbtn .pv-img { max-height: 340px; object-fit: contain; }   /* small: the folder's photos below matter more */
@media (max-width: 760px) { .pv-imgbtn .pv-img { max-height: 42vh; } }
.pv-img { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.text { white-space: pre-wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; font-size: 13px; line-height: 1.55; max-height: calc(100vh - 280px); overflow: auto; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 4px 12px; margin: 8px 0 16px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.copies { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.copies code { display: block; overflow-wrap: anywhere; }
.pv-empty { color: var(--muted); padding: 40px 10px; text-align: center; }

/* job + ask pages */
.page { flex: 1; overflow-y: auto; padding: 22px 28px 60px; }
.page h1 { font-size: 22px; margin: 0 0 4px; }
.back { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; margin-bottom: 10px; font-weight: 600; }
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; margin-top: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card h3 { margin: 0; padding: 10px 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.card ol { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; }
.card .hit { grid-template-columns: 1fr auto; }
.card .hit .ic { display: none; } .card .hit .s { grid-column: 1 / 3; }
.answer { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px;
  box-shadow: var(--shadow); max-width: 980px; font-size: 15px; line-height: 1.6; }
.answer .cite { color: var(--accent); font-weight: 700; cursor: pointer; text-decoration: none; }
.answer.loading::after { content: "▍"; animation: blink 1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }
.sources { max-width: 980px; margin-top: 18px; }
.sources ol { padding-left: 22px; } .sources li { margin: 4px 0; }
.sources a { color: var(--ink); }
.note { background: var(--accent-soft); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; max-width: 980px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg);
  padding: 8px 16px; border-radius: 8px; box-shadow: var(--shadow); z-index: 9; }

/* phone */
@media (max-width: 760px) {
  .top { flex-wrap: wrap; padding: 10px 16px; gap: 8px; }
  .brand span { display: none; }
  .split, .split.nopv { grid-template-columns: 1fr; }
  .split.nopv.showing .preview { display: block; }
  .split.showing .results { display: none; }
  .split:not(.showing) .preview { display: none; }
  .preview { padding: 16px; }
  .page { padding: 16px; }
  .filters { padding: 8px 16px; }
  .frame { height: 70vh; }
  .kv { grid-template-columns: 100px 1fr; }
}

.mobile-only { display: none; }
@media (max-width: 760px) { .mobile-only { display: inline-block; } .desk-only { display: none !important; } }

.status { color: var(--muted); font-size: 13px; margin: 6px 0; }
.status::before { content: "● "; color: var(--accent); }
.answer h1, .answer h2, .answer h3 { font-size: 16px; margin: 14px 0 6px; }
.answer p { margin: 0 0 10px; } .answer ul, .answer ol { margin: 0 0 10px; padding-left: 22px; }
.answer a { color: var(--accent); }
.answer code { font: 12.5px ui-monospace, Menlo, monospace; background: var(--panel2); padding: 1px 4px; border-radius: 4px;
  overflow-wrap: anywhere; }
.answer table { border-collapse: collapse; margin: 8px 0; } .answer td, .answer th { border: 1px solid var(--line); padding: 4px 8px; }

.depth button { padding: 5px 10px; font-size: 13px; }

/* home: logo and search box centred, nothing else (like Claude's start screen) */
body.home .top { flex: 1; flex-direction: column; justify-content: center; gap: 22px; border: 0; background: var(--bg);
  padding-bottom: 18vh; }
body.home .brand { flex-direction: column; gap: 12px; font-size: 22px; }
body.home .brand img { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow); }
body.home .qbox { width: min(680px, 100%); flex: none; padding: 6px 6px 6px 16px; border-radius: 14px; box-shadow: var(--shadow); }
body.home #q { font-size: 17px; }
body.home main, body.home .filters { display: none !important; }

/* folder view */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 10px; color: var(--muted); }
.crumbs a { color: var(--accent); text-decoration: none; cursor: pointer; }
.flist { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.flist li { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 14px;
  border-bottom: 1px solid var(--line); cursor: pointer; }
.flist li:last-child { border-bottom: 0; }
.flist li:hover { background: var(--sel); }
.flist .muted { font-size: 12.5px; white-space: nowrap; }
.flist .fi { font-size: 16px; text-align: center; }

/* photos */
.hit .ic.thumb { padding: 0; object-fit: cover; background: var(--line); }
.phtitle { margin: 14px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.phtitle .muted { margin-left: 4px; }
.phgroup { margin-bottom: 14px; }
.phhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; min-width: 0; font-size: 13px; }
.phhead b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.btn.sm { padding: 3px 9px; font-size: 12.5px; }
.phstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.phgrid { margin: 12px 0 16px; }
.phgrid .phstrip { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.phbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.phbar .phtitle { margin: 8px 0; }
.daypills { position: sticky; top: -22px; z-index: 2; display: grid; gap: 6px; max-height: 40vh; overflow-y: auto;
  margin: 4px -28px 6px; padding: 10px 28px; background: var(--bg); border-bottom: 1px solid var(--line); }
.dayrow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mlabel { flex: none; width: 38px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dayrow-pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.dayrow-pills::-webkit-scrollbar { display: none; }
.daypills .pill { flex: none; white-space: nowrap; font-size: 13px; padding: 3px 4px 3px 10px; display: inline-flex; align-items: center; gap: 6px; }
.pill .cnt, .daynote .cnt { margin: 0; min-width: 20px; padding: 1px 6px; border-radius: 99px; font-size: 11px; font-weight: 600;
  background: var(--line); color: var(--muted); text-align: center; }
.pill.on .cnt { background: var(--accent); color: #fff; }
.daynote { font-size: 11.5px; display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.ph.cur { outline: 3px solid var(--accent); outline-offset: 1px; }
.preview .daypills { margin: 4px -26px 6px; padding: 10px 26px; }
.preview .phgrid .phstrip, .pv-photos.phgrid .phstrip { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.pv-photos.phgrid { margin-top: 18px; }
.phday { margin-bottom: 18px; }
.dayhead { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 8px; padding-bottom: 6px; font-size: 14px; font-weight: 600;
  border-bottom: 1px solid var(--line); }
.dayhead .muted { font-weight: 400; font-size: 12.5px; }
.ph { aspect-ratio: 1; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: var(--line); cursor: zoom-in;
  display: grid; place-items: center; color: var(--muted); text-decoration: none; font-weight: 600; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.bad img { display: none; } .ph.bad::after { content: "No preview"; font-size: 11px; }
.ph.more { cursor: pointer; }
.ph:hover { outline: 2px solid var(--accent); }
.card.photos { padding: 4px 14px 2px; margin-top: 16px; }
.pv-photos:empty { display: none; }
.pv-imgbtn { border: 0; padding: 0; background: none; cursor: zoom-in; display: block; max-width: 100%; }
.lightbox { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.92); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: calc(100vh - 90px); object-fit: contain; margin-top: 40px; border-radius: 6px; }
.lbbar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 10px 16px; color: #eee; }
.lbname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lightbox .btn { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.lbnav { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(255,255,255,.12); color: #fff;
  font-size: 34px; width: 46px; height: 64px; border-radius: 10px; cursor: pointer; }
.lbnav.prev { left: 12px; } .lbnav.next { right: 12px; }
@media (max-width: 760px) {
  .phstrip { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
  .phgrid .phstrip { grid-template-columns: repeat(3, 1fr); }
  .phhead { flex-wrap: wrap; }
  .daypills, .preview .daypills { top: -16px; margin: 4px -16px 6px; padding: 8px 16px; }
  .lbnav { width: 38px; height: 54px; font-size: 28px; }
}

/* file-type pills: their own row under the tabs */
.subfilters { order: 10; flex-basis: 100%; }
.subfilters[hidden] { display: none; }
.pill { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: 2px 10px; cursor: pointer;
  font-size: 13px; white-space: nowrap; color: var(--ink); }
.pill b { font-weight: 600; color: var(--muted); margin-left: 4px; }
.pill.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.pill.on b { color: var(--accent); }

/* Photos tab: a grid */
#list.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 10px; }
.hit.tile { display: block; padding: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--bg); }
.hit.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--line); }
.hit.tile img.bad { visibility: hidden; }
.hit.tile .t { display: block; font-size: 12px; padding: 5px 7px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit.tile .s { display: block; font-size: 11px; padding: 0 7px 6px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit.tile.sel { outline: 2px solid var(--accent); outline-offset: -2px; }
#list.grid > .pv-empty { grid-column: 1 / -1; }
@media (max-width: 760px) { #list.grid { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; } }

/* Names / Contents / Both */
.seg { display: inline-flex; background: var(--line); border-radius: 7px; padding: 2px; flex: none; }
.seg button { border: 0; background: transparent; padding: 3px 10px; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: 13px; }
.seg button.on { background: var(--panel); color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.12); font-weight: 600; }

/* folders */
.ic.folder { background: #8a6d3b; font-size: 15px; }
.pv-folder { margin-top: 6px; }
.pv-folder .flist a { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-folder .flist a:hover { color: var(--accent); text-decoration: underline; }

/* sign-in */
.login { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 340px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.login-card img { margin: 0 auto 2px; border-radius: 14px; }
.login-card h1 { margin: 0; font-size: 20px; }
.login-card p { margin: 0; }
.login-card input { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 15px; background: var(--bg); color: var(--ink); }
.login-card input:focus { outline: none; border-color: var(--accent); }
.login-card .btn { padding: 10px; font-size: 15px; }
.login-err { color: var(--accent); min-height: 1.2em; font-size: 13px; }
.small { font-size: 12px; }
.usermenu { display: flex; align-items: center; gap: 8px; font-size: 13px; }
@media (max-width: 760px) { .usermenu span { display: none; } }
.pill-label { font-size: 12px; color: var(--muted); margin-right: 2px; align-self: center; }
.pill-sep { width: 1px; background: var(--line); margin: 2px 6px; align-self: stretch; }
.btn.ghost { border-style: dashed; color: var(--muted); }
.themebtn { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 8px; width: 34px; height: 32px;
  display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.themebtn:hover { color: var(--accent); border-color: var(--accent); }
.themebtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.themebtn { margin-left: auto; }
body.home .themebtn { position: fixed; top: 14px; right: 16px; margin: 0; }
body.home .usermenu { position: fixed; top: 14px; right: 60px; height: 32px; }
