/* VelvetFables: shared look for every page. */
/* ================= Colour tokens (ready for themes) =================
   Every colour on the site comes from these. A theme only sets the BASE colours below
   (in a ":root[data-theme=...]" block or a stylesheet loaded after this one); the DERIVED ones
   follow automatically because they are mixed from the base ones with color-mix().

   BASE, a theme must set:
     --bg      page background            --panel   panels, menus, dialogs
     --card    cards and tiles            --accent  burgundy: tag chips, hovers, selected items
     --gold    highlight: links, headings, primary buttons, focus
     --text    normal text                --danger  errors, delete    --ok  success
   BASE, optional (good defaults for any dark theme):
     --danger-strong / --on-danger   filled "Delete" button and its text
     --chat-quote                    "quoted speech" colour in chat bubbles
     --scrim / --on-scrim            the dark used for overlays, shadows and controls on top of
                                     photos, and the text on them (stay black/white in most themes)
     --notes-bg                      behind creator notes (Chub's own notes colour, on purpose)
     color-scheme                    "dark" here; a light theme sets "light" (browser scrollbars,
                                     date pickers etc.). The site has no light theme, so it does not
                                     follow the visitor's prefers-color-scheme yet.
   DERIVED, normally not set by a theme:
     --muted --line --line-strong --gold-soft --gold-hi --field --on-gold --focus --warn --nsfw
     --backdrop --shadow-card --shadow-pop --shadow-dlg --bubble-bot --bubble-user --bubble-em
   Try it: load /theme-test.css after the page's own stylesheets (see that file) to swap in a
   blue/silver palette; anything that does not change colour is a leftover. */
/* ".vf-creator, .vf-backdrop": creators' HTML (character showcase, profile designs) always gets the Velvet colours,
   whatever theme the viewer picked, so it looks the way its creator made it. */
:root, [data-theme="velvet"], .vf-creator, .vf-backdrop {
  /* base */
  --bg: #0b0407; --panel: #16070d; --card: #1f0a13; --accent: #7d1d3f; --gold: #c9a54c; --text: #f2e6d6;
  --danger: #ff6b7a; --ok: #7fd49b;
  --danger-strong: #b3283f; --on-danger: #fff; --chat-quote: #e8c98a;
  --scrim: #000; --on-scrim: #fff; --notes-bg: #1b1b1f;
  color-scheme: dark;
  /* derived */
  --muted: color-mix(in srgb, var(--text) 55%, var(--bg));            /* gallery.css uses 52% on its pages */
  --line: color-mix(in srgb, var(--accent) 45%, var(--bg));
  --line-strong: color-mix(in srgb, var(--accent) 70%, var(--bg));
  --gold-soft: color-mix(in srgb, var(--gold) 35%, transparent);
  --gold-hi: color-mix(in srgb, var(--gold) 100%, #fff 12%);            /* top of the gold button gradient */
  --field: color-mix(in srgb, var(--bg) 70%, var(--scrim));             /* inside text boxes, code, lists */
  --on-gold: var(--bg);                                                 /* text on gold buttons and badges */
  --focus: var(--gold); --warn: var(--gold); --nsfw: var(--danger);
  --backdrop: color-mix(in srgb, var(--scrim) 70%, transparent);        /* behind dialogs */
  --shadow-card: 0 6px 24px color-mix(in srgb, var(--scrim) 35%, transparent);
  --shadow-pop: 0 12px 40px color-mix(in srgb, var(--scrim) 60%, transparent);
  --shadow-dlg: 0 30px 80px color-mix(in srgb, var(--scrim) 60%, transparent);
  --bubble-bot: color-mix(in srgb, var(--card) 85%, transparent);
  --bubble-user: color-mix(in srgb, var(--accent) 38%, var(--panel));
  --bubble-em: color-mix(in srgb, var(--text) 78%, var(--gold));
  --radius: 12px;
}
/* ================= Site themes (Cosmetics page, owner decisions 2026-11-23) =================
   Each sets ONLY the eight base colours; everything else follows. public/theme.js puts data-theme on <html>
   before the page paints; the Cosmetics page also puts it on each swatch. Velvet (above) is the default.
   Ids must match app/src/themes.js and public/theme.js. */
[data-theme="midnight"]  { --bg:#05080f; --panel:#0b111d; --card:#101a2b; --accent:#2b4a82; --gold:#9db8e8; --text:#e6ecf7; --danger:#ff7a8a; --ok:#7fd49b; }
[data-theme="emerald"]   { --bg:#050b08; --panel:#0a140f; --card:#0f1e16; --accent:#1f6b4a; --gold:#d4b25a; --text:#ecf2e6; --danger:#ff7a7a; --ok:#8fe0a8; }
[data-theme="amethyst"]  { --bg:#0a0610; --panel:#130b1e; --card:#1b102b; --accent:#6b2f9e; --gold:#d9b8ff; --text:#f0e8fa; --danger:#ff7a9a; --ok:#7fd49b; }
[data-theme="noir"]      { --bg:#070707; --panel:#101010; --card:#171717; --accent:#a3182f; --gold:#cfd0d8; --text:#eeeeee; --danger:#ff6b7a; --ok:#7fd49b; }
[data-theme="ocean"]     { --bg:#04090b; --panel:#091418; --card:#0e1e24; --accent:#1a6b73; --gold:#6fd0c8; --text:#e4f2f1; --danger:#ff7a85; --ok:#8fe0a8; }
[data-theme="ember"]     { --bg:#0d0704; --panel:#1a0e07; --card:#24140a; --accent:#9a4a14; --gold:#f0a24a; --text:#f5e8d8; --danger:#ff7a6a; --ok:#8fe0a8; }
[data-theme="rosewater"] { --bg:#0e060a; --panel:#1a0a12; --card:#26101b; --accent:#b03a6b; --gold:#f2a7c3; --text:#fbeaf1; --danger:#ff7a8a; --ok:#8fe0a8; }
[data-theme="amoled"]    { --bg:#000000; --panel:#0b0507; --card:#150a0f; --accent:#7d1d3f; --gold:#c9a54c; --text:#f2e6d6; --danger:#ff6b7a; --ok:#7fd49b; }
* { box-sizing: border-box; }
html, body { margin: 0; color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { min-height: 100vh; background-color: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%);
  background-attachment: fixed; }
a { color: var(--gold); }
/* The top bar spans the whole window on every page, logo at the left edge and menu at the right, as on character pages,
   the gallery and chat (owner 2026-11-27: it used to be held to 960px in the middle on all other pages). */
header { display: flex; align-items: center; gap: 12px; padding: 12px 32px; max-width: none; margin: 0 auto; }
@media (max-width: 760px) { header { padding: 12px 16px; } }
header .brand { font-weight: 700; letter-spacing: 1px; color: var(--gold); text-decoration: none; font-size: 18px; }
/* The logo (the owner's rose growing from a book; design-refs/logo) beside the wordmark. Never restyled. */
header .brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
header .brand-logo { width: 44px; height: 44px; display: block; flex: 0 0 auto; border-radius: 10px; }
@media (max-width: 760px) { header .brand { gap: 8px; } header .brand-logo { width: 34px; height: 34px; border-radius: 8px; } }
/* Narrow phones: logo + name + Explore / Log in / Sign up must still fit on one line. (":not(#vf)" only makes this beat the
   pages' own header padding rules, e.g. "body.vf header" in cards.css.) */
@media (max-width: 420px) {
  body header:not(#vf) { padding-left: 12px; padding-right: 12px; gap: 8px; }
  header .brand { gap: 6px; font-size: 16px; letter-spacing: .5px; }
  header .brand-logo { width: 30px; height: 30px; border-radius: 7px; }
  body header nav .vf-nav-link { padding-left: 7px; padding-right: 7px; }
  body header nav.vf-nav { gap: 2px; }
}
@media (max-width: 340px) { header .brand-name { display: none; } }
header nav { margin-left: auto; display: flex; gap: 14px; align-items: center; font-size: 14px; }
header nav a { color: var(--text); text-decoration: none; }
header nav a:hover { color: var(--gold); }
main { max-width: 440px; margin: 40px auto; padding: 0 16px; }
main.wide { max-width: 640px; }
.card { background: color-mix(in srgb, var(--panel) 85%, transparent); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
h1 { font-size: 22px; margin: 0 0 6px; }
h2 { font-size: 17px; margin: 0 0 12px; }
p { line-height: 1.5; }
.muted { color: var(--muted); font-size: 14px; }
label { display: block; font-size: 13px; margin: 14px 0 4px; color: var(--muted); }
input, textarea { width: 100%; padding: 11px 12px; background: var(--field); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 15px; }
input:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 110px; resize: vertical; }
/* Dropdowns, site-wide (owner, 2026-11-24): no browser arrow box. Same field look as inputs, and a small chevron
   drawn with two theme-coloured gradients (muted, gold on hover/focus). Pages may set their own background colour,
   padding and radius; the arrow parts are !important so a page's `background:` shorthand can't wipe them. */
select { width: auto; padding: 11px 12px; background-color: var(--field); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; font: inherit; font-size: 15px; cursor: pointer; }
select:not([multiple]):not([size]) {
  -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
  background-image: linear-gradient(45deg, transparent 50%, var(--vf-select-arrow, var(--muted)) 50%),
                    linear-gradient(135deg, var(--vf-select-arrow, var(--muted)) 50%, transparent 50%) !important;
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px) !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
  padding-right: 36px !important;
}
select:hover, select:focus { --vf-select-arrow: var(--gold); }
select:focus { outline: none; border-color: var(--gold); }
select:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 35%, transparent); }
select option, select optgroup { background-color: var(--panel); color: var(--text); }
select::-ms-expand { display: none; }
/* The open list too (owner 2026-12-01: the browser's light-blue highlight on a dark page). Browsers that can style it
   (Chrome/Edge 135+) get a theme panel with an accent highlight and a gold mark on the chosen one; others keep their
   own list, with the option colours above. Same chevron as before, so the closed dropdown looks unchanged. */
@supports (appearance: base-select) {
  select:not([multiple]):not([size]), select:not([multiple]):not([size])::picker(select) { appearance: base-select !important; }
  select::picker-icon { display: none; }
  select::picker(select) { margin-top: 4px; padding: 4px; background: var(--panel); color: var(--text); border: 1px solid var(--line-strong);
    border-radius: 10px; box-shadow: var(--shadow-pop); }
  select option { padding: 8px 12px; border-radius: 6px; background-color: transparent; color: var(--text); font-size: 14px; cursor: pointer; }
  select option:hover, select option:focus-visible { background-color: color-mix(in srgb, var(--accent) 45%, var(--panel)); outline: none; }
  select option:checked { color: var(--gold); }
  select option::checkmark { color: var(--gold); }
  select option:disabled { color: var(--muted); cursor: default; background-color: transparent; }
}
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 6px 10px; font-size: 12px;
  background: transparent; color: var(--gold); border: 1px solid var(--line); border-radius: 6px; }
.pw-toggle:hover { border-color: var(--gold); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 14px; color: var(--text); }
.check input { width: auto; margin-top: 3px; }
button { cursor: pointer; border: none; font: inherit; font-weight: 600; border-radius: 8px; padding: 12px 18px; font-size: 14px; }
button:disabled { opacity: .5; cursor: default; }
.primary { width: 100%; margin-top: 20px; background: var(--gold); color: var(--on-gold); }
.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.ghost:hover { border-color: var(--gold); color: var(--gold); }
.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--bg)); }
.msg { margin-top: 14px; font-size: 14px; min-height: 1em; }
.msg.error { color: var(--danger); }
.msg.ok { color: var(--ok); }
.banner { background: color-mix(in srgb, var(--gold) 14%, var(--panel)); border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--bg));
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px; font-size: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.links { margin-top: 18px; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.hidden { display: none !important; }
.turnstile { margin-top: 16px; min-height: 0; }

@media (max-width: 760px) { header { flex-wrap: wrap; row-gap: 6px; } header nav { flex-wrap: wrap; gap: 6px 14px; } }

/* ---- top bar menus (app.js renderNav): Explore · Create ▾ · Library ▾ · Gallery · bell · you ▾; one ☰ panel on phones ----
   Selectors start with "body header nav" so page stylesheets' generic button rules (body.vf button) don't reach them. */
/* A thin plum line under the top bar (owner's pick "A2"), across the whole window whatever the header's own width
   (border-image outset paints outside the box without making the page scroll sideways). */
body header { border-bottom: 1px solid var(--line); border-image: linear-gradient(var(--line), var(--line)) 0 0 1 0 / 0 0 1px 0 / 0 100vw; }
/* The top bar stays on screen while scrolling (owner 2026-11-25). Its background is painted across the whole window the
   same way as the line (border-image "fill" with outset), so it never makes the page scroll sideways. On phones
   (≤760px) app.js slides it away while you scroll down and brings it back as soon as you scroll up (.vf-hdr-hidden).
   app.js keeps --hdr-h at the bar's visible height so other sticky bars (builder save bar, gallery selection bar,
   Settings menu) and #anchor jumps sit just below it. */
body header { position: sticky; top: 0; z-index: 50; transition: transform .22s ease;
  border-image: linear-gradient(to top, var(--line) 1px, color-mix(in srgb, var(--bg) 94%, transparent) 1px) fill 0 / 0 / 0 100vw; }
body header.vf-hdr-hidden { transform: translateY(-100%); }
html { scroll-padding-top: calc(var(--hdr-h, 0px) + 8px); }
@media (prefers-reduced-motion: reduce) { body header { transition: none; } }
body header nav.vf-nav { position: relative; z-index: 60; gap: 6px; }
body header nav .vf-nav-panel { display: contents; }
body header nav .vf-dd-bell { order: 1; }
body header nav .vf-dd-me { order: 2; }
body header nav .vf-nav-toggle { order: 3; }
body header nav .vf-nav-link, body header nav .vf-dd-btn { color: var(--text); text-decoration: none; background: none; border: none; border-radius: 8px;
  padding: 7px 10px; font: inherit; font-size: 14px; font-weight: 400; letter-spacing: normal; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; line-height: 1.2; opacity: 1; }
/* Hover and an open menu: only a soft neutral dark highlight, never gold, so the section you're on stays the only gold item
   (owner, nav-dropdown-mockup option 1). */
body header nav .vf-nav-link:hover, body header nav .vf-dd-btn:hover, body header nav .vf-dd.open > .vf-dd-btn { background: color-mix(in srgb, var(--panel) 85%, var(--accent)); }
/* The section you're on: gold text with a thin gold underline sitting on the bar's bottom plum line
   (owner, nav-selected-mockup option 1). app.js sets --vf-ul-drop = the distance from the item down to that line. */
body header nav .vf-nav-link, body header nav .vf-dd-btn { position: relative; }
body header nav .vf-nav-link[aria-current="page"], body header nav .vf-dd.current > .vf-dd-btn { color: var(--gold); }
body header nav .vf-nav-link[aria-current="page"]::after, body header nav .vf-dd.current > .vf-dd-btn::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: calc(-1 * var(--vf-ul-drop, 0px)); height: 2px; border-radius: 2px; background: var(--gold); pointer-events: none; }
body header nav :is(.vf-nav-link, .vf-dd-btn, .vf-nav-item, .vf-nav-toggle, .vf-bell-markall, .vf-bell-foot-link):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
body header nav .vf-dd { position: relative; }
/* An open menu sits above every other item of the bar (e.g. the current section's gold underline next to it). */
body header nav .vf-dd.open { z-index: 10; }
body header nav .vf-dd-caret { font-size: 10px; opacity: .8; }
body header nav .vf-dd-head { display: none; }
body header nav .vf-dd-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 190px; margin: 0; padding: 6px; list-style: none;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-pop); }
body header nav .vf-dd-me .vf-dd-menu, body header nav .vf-dd-bell .vf-dd-menu { left: auto; right: 0; }
body header nav .vf-dd.open .vf-dd-menu { display: block; }
body header nav .vf-nav-item, body header nav .vf-nav-soon { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--text);
  text-decoration: none; background: none; border: none; font: inherit; font-size: 14px; font-weight: 400; letter-spacing: normal; cursor: pointer; line-height: 1.3; }
body header nav .vf-nav-item:hover { background: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--text); }
body header nav .vf-nav-item[aria-current="page"] { color: var(--gold); }
body header nav .vf-nav-soon { color: var(--muted); cursor: default; opacity: .7; }
body header nav .vf-nav-soon small { font-size: 11px; }
body header nav .vf-more-li { display: none; }   /* "Show more" is for the phone ☰ panel only */
body header nav .vf-nav-logout { border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; margin-top: 4px; }
body header nav .vf-nav-av { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); border: 1.5px solid var(--gold); color: var(--text); font-size: 12px; font-weight: 600; flex: 0 0 auto; }
body header nav .vf-nav-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
body header nav .vf-dd-me .vf-dd-label { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body header nav .vf-nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 12px; font-size: 18px; line-height: 1; cursor: pointer; }

/* the bell */
body header nav .vf-bell-btn { position: relative; padding: 7px 9px; }
body header nav .vf-bell-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body header nav .vf-bell-badge { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger-strong);
  color: var(--on-danger); font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
body header nav .vf-bell-menu { width: min(400px, calc(100vw - 24px)); padding: 0; overflow: hidden; }
body header nav .vf-bell-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
body header nav .vf-bell-head b { color: var(--text); font-weight: 600; font-size: 15px; }
body header nav .vf-bell-markall { background: none; border: none; color: var(--gold); font: inherit; font-size: 12.5px; font-weight: 400; letter-spacing: normal; padding: 4px 6px; cursor: pointer; border-radius: 6px; }
body header nav .vf-bell-markall:hover:not(:disabled) { text-decoration: underline; }
body header nav .vf-bell-markall:disabled { color: var(--muted); }
body header nav .vf-bell-list { max-height: min(62vh, 460px); overflow-y: auto; overscroll-behavior: contain; }
body header nav .vf-bell-empty { margin: 0; padding: 14px; color: var(--muted); font-size: 13px; }
body header nav .vf-bell-foot { display: flex; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; }
body header nav .vf-bell-foot-link { color: var(--gold); text-decoration: none; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; }
body header nav .vf-bell-foot-link:hover { text-decoration: underline; }
body header nav .vf-bell-settings { margin-left: auto; color: var(--muted); }
body header nav .vf-bell-settings:hover { color: var(--gold); }

/* A notification line (the bell and the /notifications page): round picture, text, a warning's note, time.
   Unread = a gold dot and a tinted row (owner, 2026-11-24). */
.vf-nl-sec { margin: 0; padding: 8px 14px 4px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.vf-nl-list { list-style: none; margin: 0; padding: 0; }
.vf-nl { border-top: 1px solid var(--line); }
.vf-nl.unread { background: color-mix(in srgb, var(--accent) 16%, var(--panel)); }
body .vf-nl .vf-nl-line { display: flex; gap: 11px; align-items: flex-start; width: 100%; min-width: 0; padding: 10px 14px; position: relative; text-align: left;
  color: var(--text); text-decoration: none; background: none; border: none; border-radius: 0; font: inherit; font-weight: 400; letter-spacing: normal; cursor: pointer; }
body .vf-nl .vf-nl-line:hover { background: color-mix(in srgb, var(--accent) 30%, transparent); opacity: 1; }
body .vf-nl .vf-nl-line:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.vf-nl-dot { position: absolute; left: 5px; top: 26px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.vf-nl-pic { flex: none; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); color: var(--gold); }
.vf-nl-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vf-nl-pic img.blurred { filter: blur(4px); transform: scale(1.25); }
.vf-nl-pic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vf-nl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vf-nl-text { font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; }
.vf-nl:not(.unread) .vf-nl-text { color: color-mix(in srgb, var(--text) 82%, var(--bg)); }
.vf-nl-note { margin-top: 4px; padding: 6px 9px; border-left: 3px solid var(--danger); border-radius: 0 6px 6px 0; background: color-mix(in srgb, var(--danger) 12%, var(--panel));
  color: var(--text); font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.vf-nl-time { font-size: 12px; color: var(--muted); }

@media (max-width: 760px) {
  body header nav.vf-nav { flex-wrap: nowrap; }
  body header nav .vf-nav-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; }
  body header nav .vf-nav-panel { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: min(88vw, 320px); max-height: calc(100vh - 90px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-pop); }
  body header nav.vf-nav-open .vf-nav-panel { display: flex; }
  body header nav .vf-nav-panel .vf-dd-btn { display: none; }
  body header nav .vf-nav-panel .vf-dd-head { display: block; margin: 10px 10px 2px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
  body header nav .vf-nav-panel .vf-dd-menu, body header nav .vf-nav-panel .vf-dd.open .vf-dd-menu { display: flex; flex-direction: column; position: static; min-width: 0; padding: 0; border: none; box-shadow: none; background: none; }
  body header nav .vf-nav-panel .vf-dd.current > .vf-dd-head { color: var(--gold); }
  /* Show more: the always-shown items first, then the folded ones, the Show more/less line, and Log out last. */
  body header nav .vf-nav-panel .vf-dd-menu > li.vf-more { order: 1; }
  body header nav .vf-nav-panel .vf-dd:not(.vf-more-open) .vf-dd-menu > li.vf-more { display: none; }
  body header nav .vf-nav-panel .vf-dd-menu > li.vf-more-li { display: block; order: 2; }
  body header nav .vf-nav-panel .vf-dd-menu > li.vf-out { order: 3; }
  body header nav .vf-nav-panel .vf-more-btn { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
  body header nav .vf-nav-panel .vf-more-chev { font-size: 11px; transition: transform .15s; }
  body header nav .vf-nav-panel .vf-more-open .vf-more-chev { transform: rotate(180deg); }
  body header nav .vf-nav-panel .vf-dd-me { order: 0; }
  body header nav .vf-nav-panel .vf-nav-gallery { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); border-radius: 0; }
  body header nav .vf-dd-bell { position: static; }
  body header nav .vf-nav-panel .vf-nav-link[aria-current="page"]::after { content: none; }   /* in the ☰ panel: gold text only */
  body header nav .vf-dd-bell .vf-dd-menu { right: 0; top: calc(100% + 8px); }
  /* Phones with the bottom tab bar (tabbar.js; app.js sets html.vf-tb-on): a slim top bar (logo + bell, no ☰),
     room at the bottom for the bar and the safe area, and bottom bars of pages lifted above it. */
  html.vf-tb-on { --vf-tb-h: calc(57px + env(safe-area-inset-bottom, 0px)); }
  html.vf-tb-on body header nav .vf-nav-toggle, html.vf-tb-on body header nav .vf-nav-panel { display: none !important; }
  html.vf-tb-on body { padding-bottom: var(--vf-tb-h) !important; }
  html.vf-tb-on body.dm-full { padding-bottom: 0 !important; }
  html.vf-tb-on .fv-bar, html.vf-tb-on .mc-bulk { bottom: calc(14px + var(--vf-tb-h)); }
  html.vf-tb-on .uploads { bottom: calc(12px + var(--vf-tb-h)); }
  html.vf-tb-on .toast { bottom: calc(24px + var(--vf-tb-h)); }
}


/* The album search box above the gallery pickers' album list (window.vfFolderFilter in app.js). */
.vf-folder-search { display: block; width: 100%; box-sizing: border-box; margin: 0 0 8px; }
/* Site dialogs (window.vfAsk in app.js), used instead of the browser's confirm/alert boxes. */
.vf-dlg-back { position: fixed; inset: 0; background: var(--backdrop); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.vf-dlg { width: 440px; max-width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-dlg); text-align: left; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.vf-dlg h2 { margin: 0 0 8px; color: var(--gold); font-size: 17px; letter-spacing: normal; text-transform: none; }
.vf-dlg p { margin: 0 0 14px; line-height: 1.5; font-size: 14px; white-space: pre-line; }
.vf-dlg-row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.vf-dlg-row button { cursor: pointer; border: 1px solid var(--line); font: inherit; font-weight: 600; font-size: 13px; border-radius: 8px; padding: 10px 18px; letter-spacing: .5px; width: auto; margin: 0; }
.vf-dlg-cancel { background: transparent; color: var(--text); }
.vf-dlg-cancel:hover, .vf-dlg-cancel:focus-visible { border-color: var(--gold); color: var(--gold); outline: none; }
.vf-dlg-ok { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.vf-dlg-ok.danger { background: var(--danger-strong); border-color: var(--danger-strong); color: var(--on-danger); }
.vf-dlg-ok:hover, .vf-dlg-ok:focus-visible { opacity: .9; outline: 2px solid var(--focus); outline-offset: 2px; }

/* Checkboxes everywhere: site-styled instead of the browser's default box. */
input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; display: inline-grid; place-content: center; vertical-align: -3px; cursor: pointer;
  width: 18px !important; height: 18px !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 5px; background: var(--field); transition: background .15s, border-color .15s; }
input[type="checkbox"]::before { content: ""; width: 10px; height: 10px; background: var(--on-gold); transform: scale(0); transition: transform .12s;
  clip-path: polygon(12% 50%, 0 64%, 40% 100%, 100% 22%, 86% 8%, 40% 72%); }
input[type="checkbox"]:checked { background: var(--gold); border-color: var(--gold); }
input[type="checkbox"]:checked::before { transform: scale(1); }
input[type="checkbox"]:hover { border-color: var(--gold); }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
input[type="checkbox"]:disabled { opacity: .45; cursor: default; }
@media (prefers-reduced-motion: reduce) { input[type="checkbox"], input[type="checkbox"]::before { transition: none; } }
/* Radio buttons everywhere: the same look as the checkboxes, round with a gold dot (owner 2026-12-03). */
input[type="radio"] { appearance: none; -webkit-appearance: none; flex: none; display: inline-grid; place-content: center; vertical-align: -3px; cursor: pointer;
  width: 18px !important; height: 18px !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 50%; background: var(--field); transition: border-color .15s; }
input[type="radio"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .12s; }
input[type="radio"]:checked { border-color: var(--gold); }
input[type="radio"]:checked::before { transform: scale(1); }
input[type="radio"]:hover { border-color: var(--gold); }
input[type="radio"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
input[type="radio"]:disabled { opacity: .45; cursor: default; }
@media (prefers-reduced-motion: reduce) { input[type="radio"], input[type="radio"]::before { transition: none; } }

/* File pickers everywhere (persona, builder, gallery, account, chat import): the browser's grey "Choose File"
   becomes a site button like .b-ghost; the file name next to it stays as muted text. */
input[type="file"] { color: var(--muted); font-size: 14px; cursor: pointer; }
input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text); background: color-mix(in srgb, var(--panel) 60%, transparent); border: 1px solid var(--line-strong);
  transition: border-color .12s, color .12s;
}
input[type="file"]:hover::file-selector-button { border-color: var(--gold); color: var(--gold); }
input[type="file"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
input[type="file"]:disabled { opacity: .45; cursor: default; }

/* Sliders everywhere (Page Studio, cover crop zoom, Teaser Maker; owner 2026-12-01, -02): instead of the browser's grey bar,
   a track in a dim highlight tint with round ends, the part left of the thumb and the thumb in the highlight colour, the
   thumb ringed in the panel colour so it stands apart from the track. The track is padded, so even at the minimum a short filled cap shows
   before the thumb and you can see where the track starts. Firefox draws the filled part itself (::-moz-range-progress);
   Chrome/Safari/Edge have no such part, so the thumb paints it: a border-image band reaching 100vw to its left, cut off
   by the slider's own overflow: hidden. The box parts are !important: pages that style every input as a text field
   (cards.css: body.vf input:not([type=checkbox])) must not draw a field box around a slider. Taller on touch screens. */
input[type="range"] { --vf-track: 8px; --vf-thumb: 20px; --vf-cap: 5px; --vf-fill: var(--gold);
  --vf-rest: color-mix(in srgb, var(--gold) 22%, var(--field));
  appearance: none !important; -webkit-appearance: none !important; display: block; width: 100%; height: 28px !important; min-width: 0; margin: 4px 0; padding: 0 !important;
  background: transparent !important; border: 0 !important; border-radius: var(--vf-track) !important; box-shadow: none !important; overflow: hidden; cursor: pointer; touch-action: pan-y; }
@media (pointer: coarse) { input[type="range"] { --vf-track: 10px; --vf-thumb: 28px; --vf-cap: 7px; height: 40px !important; } }
input[type="range"]::-webkit-slider-runnable-track { height: var(--vf-track); padding: 0 var(--vf-cap); box-sizing: border-box; border: 0; border-radius: var(--vf-track);
  background: linear-gradient(90deg, var(--vf-fill) calc(var(--vf-cap) + 1px), var(--vf-rest) 0); }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none;
  width: var(--vf-thumb); height: var(--vf-thumb); margin-top: calc((var(--vf-track) - var(--vf-thumb)) / 2);
  border: 0; border-radius: 50%; background: var(--vf-fill); box-shadow: 0 0 0 3px var(--panel); transition: background .12s;
  border-image: linear-gradient(transparent calc(50% - var(--vf-track) / 2), var(--vf-fill) 0 calc(50% + var(--vf-track) / 2), transparent 0)
    fill 0 / 0 / 0 0 0 100vw; }
input[type="range"]::-moz-range-track { height: var(--vf-track); border: 0; border-radius: var(--vf-track); background: var(--vf-rest); }
input[type="range"]::-moz-range-progress { height: var(--vf-track); border-radius: var(--vf-track); background: var(--vf-fill); }
input[type="range"]::-moz-range-thumb { box-sizing: border-box; width: var(--vf-thumb); height: var(--vf-thumb); border: 0; border-radius: 50%; background: var(--vf-fill);
  box-shadow: 0 0 0 3px var(--panel); transition: background .12s; }
input[type="range"]:hover { --vf-fill: var(--gold-hi); }
input[type="range"]:focus { outline: none !important; }
input[type="range"]:focus-visible { outline: 2px solid var(--focus) !important; outline-offset: 3px; }
input[type="range"]:disabled { --vf-fill: var(--muted); --vf-rest: color-mix(in srgb, var(--muted) 25%, var(--field)); opacity: .5; cursor: default; }
@media (prefers-reduced-motion: reduce) { input[type="range"]::-webkit-slider-thumb { transition: none; } input[type="range"]::-moz-range-thumb { transition: none; } }

/* Scrollbars everywhere: thin, plum thumb on a transparent track instead of the browser's grey bar
   (scroll areas like the persona/character pickers, menus, lists). Chrome/Edge/Firefox use the standard
   properties; Safari the ::-webkit ones. Areas that hide their bar (chat.css .chat-scroll) still do. */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*:hover { scrollbar-color: color-mix(in srgb, var(--accent) 85%, var(--gold)) transparent; }
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
  ::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--accent) 85%, var(--gold)); }
}

/* ---- Settings page: profile picture, and the small "choose from your gallery" dialog (app.js) ---- */
.pic-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.pic-now { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); border: 2px solid var(--gold); color: var(--text); font-size: 38px; font-weight: 600; }
.pic-now img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic-actions { flex: 1 1 260px; min-width: 0; }
.pic-actions .muted { margin: 0 0 10px; }
.vf-dlg.vf-pick { width: 640px; }
.vf-pick-folder { width: 100%; padding: 9px 10px; margin: 0 0 10px; background: var(--field); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; }
.vf-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; max-height: 50vh; overflow-y: auto; margin-bottom: 14px; }
.vf-pick-item { padding: 0; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--card); cursor: pointer; }
.vf-pick-item:hover, .vf-pick-item:focus-visible { border-color: var(--gold); outline: none; }
.vf-pick-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }

/* ---- Settings page: Tags section (tagsettings.js) ---- */
.tg-h { font-size: 14px; margin: 18px 0 8px; color: var(--gold); font-weight: 600; }
.tg-sub { margin: -4px 0 8px; }
.tg-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tg-none { margin: 0; }
.tg-chip { display: inline-flex; align-items: center; gap: 2px; padding: 3px 3px 3px 12px; border-radius: 999px; font-size: 14px;
  background: color-mix(in srgb, var(--accent) 35%, transparent); border: 1px solid var(--line); color: var(--text); }
.tg-chip.tg-blocked { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: color-mix(in srgb, var(--danger) 40%, var(--bg)); }
.tg-x { background: none; border: none; color: var(--muted); padding: 2px 9px; font-size: 17px; line-height: 1; border-radius: 999px; }
.tg-x:hover, .tg-x:focus-visible { color: var(--text); background: color-mix(in srgb, var(--scrim) 30%, transparent); outline: none; }
.tg-add { position: relative; margin-top: 6px; }
.tg-suggest { display: flex; flex-direction: column; margin-top: 4px; border-radius: 8px; overflow: hidden; }
.tg-suggest:not(:empty) { border: 1px solid var(--line); background: var(--panel); }
.tg-opt { display: flex; justify-content: space-between; gap: 10px; text-align: left; background: none; color: var(--text); border-radius: 0; padding: 9px 12px; font-weight: 400; }
.tg-opt small { color: var(--muted); }
.tg-opt:hover, .tg-opt:focus-visible { background: color-mix(in srgb, var(--accent) 45%, transparent); outline: none; }
.tg-suggest .tg-none { padding: 9px 12px; }

/* Page numbers (VL.pager in libui.js): every Library list, 25 per page; hidden while one page holds everything. */
.vl-pager { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin: 18px 0 6px; }
.vl-pg-info { margin-right: auto; color: var(--muted); font-size: 12.5px; }
.vl-pg-nums { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
body .vl-pager .vl-pg { min-width: 34px; padding: 6px 9px; border-radius: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none;
  background: var(--panel); color: var(--muted); border: 1px solid var(--line); line-height: 1.2; }
body .vl-pager .vl-pg:hover:not(:disabled) { color: var(--gold); border-color: var(--line-strong); opacity: 1; }
body .vl-pager .vl-pg:focus-visible { outline: 2px solid var(--focus, var(--gold)); outline-offset: 1px; }
body .vl-pager .vl-pg.on { color: var(--gold); border-color: var(--gold); background: color-mix(in srgb, var(--accent) 30%, var(--panel)); }
body .vl-pager .vl-pg-step { font-size: 15px; }
.vl-pg-gap { color: var(--muted); padding: 0 2px; }
@media (max-width: 420px) { .vl-pg-info { width: 100%; } body .vl-pager .vl-pg { min-width: 30px; padding: 6px 7px; } }

/* ---- Shared screen look (error pages + log-in, sign-up, password and email screens, /welcome) ----
   Owner, 2026-11-24 (Notion "Combined Plan"): the logo, a title and one sentence above the form, inside a card.
   <main class="vf-screen"> > .vf-screen-card > .vf-screen-logo, .vf-screen-kicker, .vf-screen-title, .vf-screen-sub, ... */
main.vf-screen { max-width: 440px; margin: 36px auto 48px; padding: 0 16px; }
main.vf-screen.wide { max-width: 680px; }
.vf-screen-card { border: 1px solid var(--line); border-radius: 16px; padding: 26px 26px 24px; margin-bottom: 20px; min-width: 0;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 25%, var(--panel)), var(--panel) 60%);
  box-shadow: var(--shadow-card); }
.vf-screen-logo { display: block; width: 64px; height: 64px; margin: 0 auto 8px; }
.vf-screen-kicker { text-align: center; margin: 0 0 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.vf-screen-icon { text-align: center; font-size: 34px; line-height: 1; margin: 6px 0 10px; color: var(--gold); }
.vf-screen-title { font-weight: 300; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-size: 20px;
  line-height: 1.35; margin: 0 0 6px; text-align: center; outline: none; }
.vf-screen-sub { color: var(--muted); font-size: 14px; text-align: center; margin: 0 0 16px; line-height: 1.5; }
.vf-screen-sub b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.vf-screen-card label:not(.check) { font-size: 13px; font-weight: 600; color: var(--text); }
.vf-screen-card .primary { margin-top: 18px; padding: 13px 18px; }
.vf-screen-card .links { justify-content: space-between; }
.vf-screen-card .links a, .vf-screen-card .check a, .vf-screen-sub a { color: var(--gold); }
.vf-screen-links { margin-top: 16px; font-size: 14px; display: flex; justify-content: center; gap: 10px 18px; flex-wrap: wrap; }
.vf-screen-links a { color: var(--gold); }
.vf-screen-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.vf-screen-actions button, .vf-screen-actions .btn { width: auto; margin: 0; }
.vf-screen-hint { color: var(--muted); font-size: 13px; text-align: center; margin: 14px 0 0; line-height: 1.5; }
.vf-screen-box { border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); padding: 12px 14px; margin-top: 4px; font-size: 14px; }
.vf-screen-box b { display: block; }
.vf-screen-box span { color: var(--muted); font-size: 13px; }
/* errors inside these cards read as a box; "ok" stays a plain green line */
.vf-screen-card .msg:empty { display: none; }
.vf-screen-card .msg.error { border: 1px solid var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent);
  border-radius: 9px; padding: 8px 12px; font-size: 14px; }
.vf-screen-card .msg.top { margin: 0 0 4px; }
/* live hints under a field: "✓ name is free", password strength */
.vf-field-hint { font-size: 13px; margin-top: 5px; min-height: 1.2em; color: var(--muted); }
.vf-field-hint.ok { color: var(--ok); }
.vf-field-hint.bad { color: var(--danger); }
.vf-meter { display: flex; gap: 4px; margin-top: 7px; }
.vf-meter i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); transition: background .15s; }
.vf-meter[data-score="1"] i:nth-child(-n+1) { background: var(--danger); }
.vf-meter[data-score="2"] i:nth-child(-n+2) { background: var(--gold); }
.vf-meter[data-score="3"] i:nth-child(-n+3), .vf-meter[data-score="4"] i { background: var(--ok); }
.vf-screen-card [hidden] { display: none !important; }
.vf-screen-card .vf-gold { background: var(--gold); color: var(--on-gold); }
.vf-screen-card a.vf-btn-link { display: flex; justify-content: center; text-decoration: none; border-radius: 8px; font-weight: 600; font-size: 14px; }
.vf-screen-card .check { font-size: 14px; }
.vf-screen-card .check input { margin-top: 2px !important; }
@media (max-width: 480px) {
  main.vf-screen { margin-top: 18px; }
  .vf-screen-card { padding: 22px 18px 20px; }
  .vf-screen-title { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .vf-meter i { transition: none; } }

/* ---- Site footer (app.js renderFooter; owner 2026-11-25): one quiet line of links on every page but the chat screen ----
   Also on character and profile pages: creators' CSS is scoped to their own box (sanitize.js) so it can't select this,
   and the footer sits above anything that spills out of that box (their box is z-index 1-2) on a solid background. */
body footer.vf-footer { position: relative !important; z-index: 5 !important; isolation: isolate; clear: both; display: block !important;
  margin: 56px 0 0 !important; padding: 22px 16px 28px; text-align: center; border-top: 1px solid var(--line); background: var(--bg);
  font: 400 13.5px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; letter-spacing: normal;
  text-transform: none; color: var(--muted); visibility: visible !important; opacity: 1 !important; transform: none !important; }
body footer.vf-footer nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 10px; margin: 0; padding: 0;
  position: static; border: 0; background: none; }
body footer.vf-footer a { color: var(--muted); text-decoration: none; font: inherit; letter-spacing: inherit; text-transform: none; padding: 0;
  background: none; border: 0; }
body footer.vf-footer a:hover, body footer.vf-footer a:focus-visible { color: var(--gold); text-decoration: underline; }
body footer.vf-footer a[aria-current="page"] { color: var(--gold); }
body footer.vf-footer .vf-footer-dot { color: var(--line-strong); }
body footer.vf-footer .vf-footer-name { margin: 8px 0 0; font-size: 12px; letter-spacing: .08em; opacity: .8; }

/* Direct messages in the account menu (app.js navGroups, src/dms.js): the unread number next to "Messages" and a
   gold dot on the account picture (desktop menu button and the phone ☰ button). */
body header nav .vf-msg-count { display: inline-block; min-width: 18px; margin-left: 8px; padding: 0 6px; border-radius: 9px; background: var(--gold);
  color: var(--on-gold); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; vertical-align: 1px; }
body header nav :is(.vf-dd-me > .vf-dd-btn, .vf-nav-toggle) { position: relative; }
body header nav .vf-msg-dot { position: absolute; top: 3px; left: 25px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
  border: 2px solid var(--bg); pointer-events: none; }
body header nav .vf-msg-count.hidden, body header nav .vf-msg-dot.hidden { display: none; }

/* The "Mod" pill (owner 2026-11-29): the site owner and moderators, next to their name on comments, messages and
   their profile. Only ever drawn from the server's is_mod (src/session.js isModUser), never from anything a user
   typed. Filled in the theme's accent with the theme's text colour, so it differs from the outlined gold Creator
   pill in every theme. On a creator-designed profile it is protected (profilepage.css, .vf-showcase .vf-mod). */
.mod-pill { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; line-height: 1.3;
  padding: 2px 7px; border-radius: 10px; background: var(--accent); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--accent)); white-space: nowrap; vertical-align: middle; }

/* Small pictures first (app.js vfPic, owner 2026-12-02). The preview is the same <img> with the same size, crop and
   position as the full picture, just lower resolution. While the full picture is on its way it is a little soft
   (blurred, scaled a hair so the blurred edge stays outside the box), then sharpens as the full one takes its place. */
img.vf-pic { transition: filter .35s ease, transform .35s ease; }
img.vf-soft { filter: blur(1.5px); transform: scale(1.03); }   /* light: never to be mistaken for the NSFW blur */
@media (prefers-reduced-motion: reduce) { img.vf-pic { transition: none; } }
