/* Artracker — dark gallery design language */
:root {
  --bg: #0e0e10; --bg2: #131316; --surface: #1a1a1f; --surface2: #202026;
  --line: #26262c; --line2: #36363e;
  /* text3 lightened from #6f6e78 (~3.5:1, failed WCAG AA) to ~4.7:1 for legible metadata */
  --text: #ebe9e6; --text2: #a4a2aa; --text3: #8b8993;
  --accent: #e8a04c;
  --open: #56c878; --taken: #d9a14e; --closed: #7a7884; --sold: #c46060;
  --radius: 4px; --cols: 4;
  --font-ui: 'Schibsted Grotesk', sans-serif;
  --font-mono: 'Spline Sans Mono', monospace;
}
* { box-sizing: border-box; }
/* Root-level guard: nothing may make the document wider than the viewport (a stray wide child
   was zooming mobile out / shrinking text). clip (not hidden) keeps vertical scroll + sticky. */
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: clip; }
html { scrollbar-gutter: stable; }
body { background: var(--bg); color: var(--text); font-family: var(--font-ui); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
/* Visible keyboard focus everywhere (was missing — keyboard users had no position cue). Only
   on keyboard focus, so mouse clicks don't show a ring. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [role="option"]:focus-visible, [role="button"]:focus-visible,
[tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { font-family: inherit; cursor: pointer; }
img { user-select: none; }
.mono { font-family: var(--font-mono); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 22px; height: 58px; padding: 0 26px; background: rgba(14,14,16,0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; flex: none; }
.logo-mark { width: 11px; height: 11px; background: var(--accent); border-radius: 2px; display: inline-block; }

/* Throbber: the logo mark doing its signature square->diamond flip on a loop. A plain spin
   would look static (a square has 90deg symmetry), so we step through eased quarter-turns,
   each reading as square->diamond->square — a lively "tick" rhythm. Boot splash + loading. */
@keyframes throb {
  0%       { transform: rotate(0deg); }
  18%, 25% { transform: rotate(90deg); }
  43%, 50% { transform: rotate(180deg); }
  68%, 75% { transform: rotate(270deg); }
  93%, 100% { transform: rotate(360deg); }
}
.throbber { width: 22px; height: 22px; border-radius: 5px; background: var(--accent);
  animation: throb 1.5s ease-in-out infinite; }
.boot-splash { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 15px; background: var(--bg); color: var(--text3); font-weight: 700;
  font-size: 14px; letter-spacing: 0.02em; }
.boot-splash .logo-mark { width: 24px; height: 24px; border-radius: 6px;
  animation: throb 1.5s ease-in-out infinite; }
.loading-block { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 70px 20px; color: var(--text3); font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; }

/* Branded error / 404 page */
.errpage { display: flex; align-items: center; justify-content: center; min-height: 60svh; }
.errpage-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; max-width: 460px; }
.errpage-mark { width: 26px; height: 26px; border-radius: 6px; transform: rotate(45deg); margin-bottom: 14px; }
.errpage-code { font-family: var(--font-mono); font-size: 54px; font-weight: 600; line-height: 1; color: var(--accent); letter-spacing: 0.02em; }
.errpage h1 { font-size: 20px; margin: 8px 0 2px; }
.errpage .explainer { margin: 2px 0 20px; }
.nav { display: flex; gap: 4px; flex: none; }
.nav a { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text3); padding: 7px 10px; border-radius: 3px; position: relative; }
.nav a:hover { color: var(--text2); }
.nav a.active { color: var(--text); }
.nav a.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--accent); border-radius: 1px; }
.clear-btn { background: none; border: none; color: var(--text3); font-size: 15px; line-height: 1; padding: 0 2px; cursor: pointer; flex: none; }
.clear-btn:hover { color: var(--text); }
.search-wrap { flex: 1; min-width: 0; display: flex; justify-content: center; }
.search { width: min(420px, 100%); min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 3px; padding: 7px 12px; color: var(--text3); }
.search:focus-within { border-color: var(--line2); }
/* min-width:0 is REQUIRED — an <input> won't shrink below its intrinsic size in a flex row,
   which pushed the whole topbar past the viewport edge on mobile. */
.search input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-family: var(--font-mono); font-size: 12px; }
.search input::placeholder { color: var(--text3); }
.topbar-right { display: flex; align-items: center; gap: 12px; flex: none; }
.nsfw-toggle { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; padding: 6px 11px; border-radius: 3px; border: 1px solid var(--line); background: none; color: var(--text3); }
.nsfw-toggle:hover { border-color: var(--line2); color: var(--text2); }
.nsfw-toggle.on { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 45%, transparent); background: color-mix(in oklab, var(--accent) 8%, transparent); }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--line2); color: var(--text3); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- page scaffold ---------- */
/* overflow-x: clip enforces the invariant "a page never exceeds the viewport" (a stray wide
   child was zooming the page out / shrinking text on mobile). clip (not hidden) doesn't
   create a scroll container, so position:sticky inside still works. */
.page { max-width: 1480px; margin: 0 auto; padding: 0 28px 80px; overflow-x: clip; }
.page-narrow { max-width: 680px; }

/* ---------- filter bar ---------- */
.filterbar { display: flex; align-items: center; gap: 8px; padding: 16px 0 20px; flex-wrap: wrap; }
.filterbar.advrow { padding: 0 0 20px; margin-top: -8px; }
.chip { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text2); background: none; border: 1px solid var(--line); border-radius: 3px; padding: 6px 11px; white-space: nowrap; }
.chip:hover { border-color: var(--line2); color: var(--text); }
.chip.active { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 55%, transparent); background: color-mix(in oklab, var(--accent) 9%, transparent); }
.filter-sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; flex: none; }
.sel { position: relative; }
.sel select { appearance: none; -webkit-appearance: none; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text2); background: none; border: 1px solid var(--line); border-radius: 3px; padding: 6px 26px 6px 11px; cursor: pointer; outline: none; }
.sel select:hover { border-color: var(--line2); color: var(--text); }
.sel::after { content: '▾'; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 9px; color: var(--text3); pointer-events: none; }
.result-count { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--text3); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- masonry & offering card ---------- */
.masonry { columns: var(--cols); column-gap: 22px; }
@media (max-width: 1280px) { .masonry { columns: 3; } }
@media (max-width: 900px)  { .masonry { columns: 2; } }
@media (max-width: 560px)  { .masonry { columns: 1; } }
.mas-item { break-inside: avoid; margin-bottom: var(--mgap, 30px); display: block; }
/* JS-distributed columns use flex `gap`, so the per-item margin would double the spacing */
.masonry-js .mas-item { margin-bottom: 0; }
.ocard { display: block; }
.ocard-img { display: block; position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.07); background: var(--surface); cursor: pointer; }
.ocard-img img { width: 100%; display: block; }
.ocard-img:hover { border-color: color-mix(in oklab, var(--accent) 55%, rgba(255,255,255,0.07)); }
.ocard-badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 6px; pointer-events: none; }
.badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: #fff; background: rgba(6,6,8,0.88); border: 1px solid rgba(255,255,255,0.2); border-radius: 3px; padding: 3px 7px; display: flex; align-items: center; gap: 5px; box-shadow: 0 1px 8px rgba(0,0,0,0.45); }
.badge .dot { width: 5px; height: 5px; border-radius: 50%; }
.badge-sale { background: #b3243f; border-color: rgba(255,255,255,0.28); text-transform: uppercase; font-weight: 600; }
.ocard-cap { padding: 9px 2px 0; }
.cap-row1 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cap-price { font-family: var(--font-mono); font-size: 14.5px; font-weight: 600; color: var(--text); }
.cap-title { display: block; font-size: 13px; color: var(--text2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.cap-title:hover { color: var(--text); }
/* multi-line caption clamp for grid/row cards (overrides cap-title's single-line nowrap) */
.clamp2 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* full post body on the post page: readable paragraph, real line breaks, visible links */
.post-caption { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.6; color: var(--text); max-width: 70ch; }
.post-caption a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.artist-link { display: inline-flex; align-items: center; gap: 7px; }
.artist-link:hover .nm { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cap-artist { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 12px; color: var(--text3); }
.cap-artist img.av { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.cap-artist .nm { color: var(--text2); }
.cap-kind { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; }
.cap-dot { color: var(--line2); }

/* status */
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; }
.status .dot { width: 6px; height: 6px; border-radius: 50%; }
.st-open .dot { background: var(--open); } .st-open { color: var(--open); }
.st-closed .dot { background: var(--closed); } .st-closed { color: var(--closed); }
.st-taken .dot { background: var(--taken); } .st-taken { color: var(--taken); }
.st-sold .dot { background: var(--sold); } .st-sold { color: var(--sold); }
.st-complete .dot { background: var(--closed); } .st-complete { color: var(--closed); }
.st-unknown .dot { background: var(--line2); } .st-unknown { color: var(--text3); }
.st-open_for_limited .dot { background: var(--taken); } .st-open_for_limited { color: var(--taken); }
.st-waitlist .dot { background: var(--taken); } .st-waitlist { color: var(--taken); }

/* ---------- NSFW ---------- */
.artimg { position: relative; overflow: hidden; }
.artimg img { width: 100%; display: block; }
.artimg img.is-blurred { filter: blur(28px) saturate(1.15); transform: scale(1.12); }
/* A hidden NSFW image only has the ~32px blurhash to show. Make it FILL the reserved box
   instead of rendering at its tiny natural size (which collapsed the single-image viewer to a
   thumbnail). object-fit cover under the blur reads as a full blurred preview. */
.artimg.nsfw-hidden img { width: 100%; height: 100%; object-fit: cover; }
.viewer-main.single .artimg.nsfw-hidden { width: 100%; aspect-ratio: var(--ar, 4 / 5) !important; }
.nsfw-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(10,10,12,0.35); }
.nsfw-mark { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; color: var(--text); border: 1px solid rgba(255,255,255,0.35); border-radius: 3px; padding: 4px 9px; }
.nsfw-reveal { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text2); background: rgba(10,10,12,0.6); border: 1px solid rgba(255,255,255,0.18); border-radius: 3px; padding: 5px 11px; }
.nsfw-reveal:hover { color: var(--text); border-color: rgba(255,255,255,0.4); }

/* ---------- pf icons (brand color on hover) ---------- */
.pf-wrap { position: relative; display: inline-flex; flex: none; vertical-align: middle; }
.pf-wrap img { display: block; }
/* Local monochrome glyphs tinted via mask — sit in the same base/brand swap as CDN <img> icons. */
.pf-mask { display: block; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.pf-wrap .pf-base { opacity: 0.85; transition: opacity 0.15s ease; }
.pf-wrap .pf-brand { position: absolute; inset: 0; opacity: 0; transition: opacity 0.15s ease; }
.pf-wrap:hover .pf-base, a:hover > .pf-wrap .pf-base, .pay-pill:hover .pf-base, .acct-link:hover .pf-base { opacity: 0; }
.pf-wrap:hover .pf-brand, a:hover > .pf-wrap .pf-brand, .pay-pill:hover .pf-brand, .acct-link:hover .pf-brand { opacity: 1; }
.pf-link { display: inline-flex; }
.acct-link { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; }
.acct-link:hover .hd { color: var(--accent); }
.pf-fallback { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line2); border-radius: 3px; color: var(--text3); font-weight: 700; line-height: 1; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; padding: 9px 16px; border-radius: 3px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); }
.btn:hover { border-color: var(--text3); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #131313; font-weight: 600; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: none; border-color: var(--line); color: var(--text2); }
.btn-ghost:hover { color: var(--text); border-color: var(--line2); }
.btn-ghost.following { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 45%, transparent); }

/* ---------- offering detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 408px; gap: 40px; padding-top: 22px; }
@media (max-width: 1020px) { .detail { grid-template-columns: 1fr; } }
.backlink { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text3); padding: 18px 0 0; }
.backlink:hover { color: var(--text2); }
.viewer { position: sticky; top: 76px; align-self: start; }
@media (max-width: 1020px) { .viewer { position: static; } }
/* fixed-height viewers — only multi-image viewers lock height (switching must not resize) */
/* svh (small viewport height) not vh: on iOS, vh tracks the LARGE viewport, so hiding the
   Safari toolbar on scroll grows every vh-sized element and the page jumps/resizes. svh is
   pinned to the toolbar-visible height and stays put. vh kept first as a fallback. */
.viewer-main { position: relative; display: flex; align-items: center; justify-content: center; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: min(72vh, 780px); height: min(72svh, 780px); }
.viewer-main.single { height: auto; }
.viewer-main.single .artimg img { max-height: min(78vh, 860px); max-height: min(78svh, 860px); max-width: 100%; width: auto; height: auto; object-fit: contain; }
.viewer-video { width: 100%; max-height: min(78vh, 860px); max-height: min(78svh, 860px); display: block; border-radius: var(--radius); background: #000; }
.viewer-main .artimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
/* fill the fixed-height viewer (scale small art UP too), never crop — contain keeps aspect */
.viewer-main .artimg img { width: 100%; height: 100%; object-fit: contain; }
.viewer-main .artimg.ph { aspect-ratio: auto; }
/* single image: shrink-wrap to the art. The blurhash sets an inline aspect-ratio on .artimg
   which (at full column width) inflated the box far past a tall portrait, padding it out —
   override it so the container hugs the image instead. */
.viewer-main.single .artimg { width: auto; height: auto; max-width: 100%; aspect-ratio: auto !important; }
.ocard-video { width: 100%; height: auto; display: block; background: var(--bg2); }
.viewer-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.viewer-thumbs button { padding: 0; border: 1px solid var(--line); background: none; border-radius: 3px; overflow: hidden; width: 56px; height: 56px; opacity: 0.55; }
.viewer-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.viewer-thumbs button.cur { opacity: 1; border-color: var(--accent); }
.viewer-pages { font-family: var(--font-mono); font-size: 10px; color: var(--text3); letter-spacing: 0.1em; margin-top: 8px; text-transform: uppercase; }

.rail { min-width: 0; }
.rail-status { display: flex; align-items: center; gap: 14px; }
.kind-tag { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text3); border: 1px solid var(--line); border-radius: 3px; padding: 3px 8px; white-space: nowrap; }
.rail h1 { font-size: 27px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin: 12px 0 14px; text-wrap: pretty; }
.rail-artist { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rail-artist img.av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.rail-artist .meta { flex: 1; min-width: 0; }
.rail-artist .nm { font-weight: 600; font-size: 14.5px; }
.rail-artist .sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 11.5px; color: var(--text3); margin-top: 1px; }
/* Artist's social logos as a wrapping row (offering + post pages) — line-breaks instead of overflowing. */
.social-row { display: flex; flex-wrap: wrap; gap: 8px 9px; align-items: center; margin-top: 6px; }
.price-block { padding: 18px 0 6px; }
.price-big { font-family: var(--font-mono); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.price-note { font-size: 12px; color: var(--text3); margin-top: 2px; }
.rail-section { padding: 16px 0; border-top: 1px solid var(--line); }
.rail-section h3 { margin: 0 0 10px; font-family: var(--font-mono); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text3); }
.tier-rows { display: flex; flex-direction: column; }
.tier-row { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; font-size: 13px; }
.tier-row .lab { color: var(--text2); }
.tier-row .lab b { color: var(--text); font-weight: 600; }
.tier-row .pr { font-family: var(--font-mono); font-size: 13.5px; color: var(--text); white-space: nowrap; }
.tier-row.mod .pr { color: var(--text2); }
/* A grouped add-on (e.g. "Extra character" priced per rendering): the per-variant prices
   wrap on the right instead of one row each. */
.tier-row.mod-group { align-items: baseline; }
.mod-variants { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: flex-end; white-space: normal; }
.mod-variant { color: var(--text2); font-size: 12px; }
.mod-variant::first-letter { text-transform: capitalize; }
.tier-item.has-desc { padding-bottom: 6px; }
.tier-item.has-desc + .tier-item.has-desc { border-top: 1px solid var(--line); }
/* Flat named-price menu (no cut/rendering axis): a divider between every row is noisy —
   drop the separators and lean on row spacing instead. */
.tier-rows.flat .tier-item.has-desc + .tier-item.has-desc { border-top: none; }
.tier-rows.flat .tier-item + .tier-item { padding-top: 3px; }
.tier-desc { font-size: 12px; color: var(--text3); line-height: 1.5; margin: 1px 0 2px; padding-right: 40px; }
.auction-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 13px 15px; background: color-mix(in oklab, var(--accent) 6%, var(--bg2)); border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); border-radius: 3px; }
.auction-hero .k { font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em; color: color-mix(in oklab, var(--accent) 70%, var(--text2)); }
.auction-hero .v { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 3px; color: var(--text); }
.auction-hero .next { font-size: 10.5px; color: var(--text3); letter-spacing: 0.05em; padding-bottom: 4px; }
.auction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.auction-cell { background: var(--bg2); border: 1px solid var(--line); border-radius: 3px; padding: 9px 10px; }
.auction-cell .k { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text3); }
.auction-cell .v { font-family: var(--font-mono); font-size: 15px; font-weight: 600; margin-top: 3px; }
.auction-cell.hot { border-color: color-mix(in oklab, var(--accent) 50%, transparent); }
.auction-cell.hot .v { color: var(--accent); }
.spark { margin-top: 4px; }
.spark-canvas { height: 110px; position: relative; }
.spark-canvas canvas { width: 100% !important; height: 110px !important; }
.spark-labels { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--text3); margin-top: 3px; }
.slotbar { height: 5px; border-radius: 99px; background: var(--surface2); overflow: hidden; margin: 8px 0 6px; }
.slotbar i { display: block; height: 100%; background: var(--open); border-radius: 99px; }
.variant-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 13px; }
.variant-row .pr { font-family: var(--font-mono); color: var(--text2); }
/* 1–3 columns depending on which of will/maybe/won't have items (empty ones aren't rendered) */
.ww-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 4px 18px; }
.ww-col { min-width: 0; }
.ww-col h4 { margin: 0 0 7px; font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500; }
.ww-col.yes h4 { color: var(--open); } .ww-col.no h4 { color: var(--sold); } .ww-col.maybe h4 { color: var(--taken); }
.ww-col ul { list-style: none; margin: 0; padding: 0; }
/* block + absolute marker (not flex) so a long boundary phrase WRAPS instead of forcing the
   column — and the page — wider. */
.ww-col li { font-size: 12.5px; color: var(--text2); padding: 3px 0 3px 16px; position: relative; overflow-wrap: anywhere; }
.ww-col li::before { position: absolute; left: 0; top: 3px; font-family: var(--font-mono); font-size: 11px; }
.ww-col.yes li::before { content: '✓'; color: var(--open); }
.ww-col.no li::before { content: '✕'; color: var(--sold); }
.ww-col.maybe li::before { content: '?'; color: var(--taken); }
.offer-desc { font-size: 13px; color: var(--text2); line-height: 1.55; margin: 2px 0 4px; }
.pay-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-pill { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; color: color-mix(in oklab, var(--brandc, var(--text2)) 45%, var(--text2)); background: color-mix(in oklab, var(--brandc, transparent) 7%, var(--bg2)); border: 1px solid color-mix(in oklab, var(--brandc, var(--line)) 26%, transparent); border-radius: 3px; padding: 6px 10px; transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease; }
.pay-pill:hover { border-color: color-mix(in oklab, var(--brandc, var(--line2)) 70%, transparent); background: color-mix(in oklab, var(--brandc, transparent) 13%, var(--bg2)); color: var(--text); }
.tag-row { display: flex; gap: 7px; flex-wrap: wrap; }
/* e621-mapped tag category colors (lightened for contrast on near-black) */
.cat-general   { --tagc: #b4c7d9; }
.cat-artist    { --tagc: #f2ac08; }
.cat-character { --tagc: #2bbd2b; }
.cat-copyright { --tagc: #e668e6; }
.cat-species   { --tagc: #f0762d; }
.cat-meta      { --tagc: #e8e8f0; }
.cat-lore      { --tagc: #56b756; }
.tag { font-family: var(--font-mono); font-size: 10.5px; color: color-mix(in oklab, var(--tagc, var(--text2)) 88%, var(--text)); background: color-mix(in oklab, var(--tagc, transparent) 6%, var(--bg2)); border: 1px solid color-mix(in oklab, var(--tagc, var(--line)) 26%, transparent); border-radius: 3px; padding: 4px 9px; }
.tag.species { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 35%, transparent); }
.source-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text2); }
/* underline (not border-bottom) so every wrapped line is underlined; break long URLs */
.source-row a { color: var(--text2); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 2px; overflow-wrap: anywhere; min-width: 0; }
.source-row a:hover { color: var(--text); text-decoration-color: var(--text); }
.note-review { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.55; color: var(--taken); background: color-mix(in oklab, var(--taken) 8%, transparent); border: 1px solid color-mix(in oklab, var(--taken) 30%, transparent); border-radius: 3px; padding: 10px 13px; margin-top: 12px; }
.note-review .mono { font-size: 11.5px; }
.cross-row { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--text3); }
.terms-quote { font-size: 12.5px; color: var(--text2); line-height: 1.65; border-left: 2px solid var(--line2); padding-left: 13px; white-space: pre-line; }
.terms-collapse { position: relative; }
.terms-collapse .terms-body { max-height: 168px; overflow: hidden; white-space: pre-line; }
.terms-collapse.open .terms-body { max-height: none; }
.terms-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 104px; display: flex;
  align-items: flex-end; justify-content: center; padding: 0 0 6px; border: 0; cursor: pointer;
  background: linear-gradient(to bottom, transparent, var(--bg) 72%); color: var(--accent);
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.terms-fade:hover { color: var(--text); }
.terms-less { margin-top: 9px; background: none; border: 0; cursor: pointer; padding: 0;
  color: var(--text3); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.terms-less:hover { color: var(--accent); }
.more-strip { margin-top: 46px; }
.more-strip h3 { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text3); margin: 0 0 14px; font-weight: 500; }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .more-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- artist profile ---------- */
.artist-head { display: flex; gap: 22px; align-items: center; padding: 34px 0 24px; }
.artist-head img.av-big { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line2); }
.artist-head .info { flex: 1; min-width: 0; }
.artist-head h1 { margin: 0; font-size: 30px; letter-spacing: -0.02em; }
.artist-head .avail { display: flex; align-items: center; gap: 14px; margin-top: 7px; font-size: 13px; color: var(--text2); }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding-bottom: 8px; }
.acct-card { display: flex; align-items: center; gap: 11px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; transition: border-color 0.15s ease; }
.acct-card:hover { border-color: color-mix(in oklab, var(--brandc, var(--line2)) 65%, transparent); }
.acct-card .meta { flex: 1; min-width: 0; }
.acct-card .hd { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-card .sub { font-family: var(--font-mono); font-size: 10px; color: var(--text3); margin-top: 2px; letter-spacing: 0.05em; }
.acct-card .accepting { flex: none; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 18px 0 22px; }
.tabs button { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text3); background: none; border: none; padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--text2); }
.tabs button.cur { color: var(--text); border-bottom-color: var(--accent); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-block h3 { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text3); margin: 0 0 10px; font-weight: 500; }

/* ---------- feed ---------- */
.feed-col { max-width: 540px; margin: 0 auto; padding-top: 22px; display: flex; flex-direction: column; gap: 34px; }
.fpost-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fpost-head img.av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.fpost-head .who { flex: 1; min-width: 0; }
.fpost-head .nm { font-weight: 600; font-size: 14px; }
.fpost-head .sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--text3); display: flex; gap: 7px; align-items: center; margin-top: 1px; }
.fpost-img { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.07); background: var(--bg2); min-height: 200px; }
.fpost-img .artimg img { max-height: 520px; object-fit: contain; }
.fpost-img .artimg.ph { aspect-ratio: auto; min-height: 200px; }
.fpost-cap { font-size: 14px; color: var(--text); margin-top: 11px; text-wrap: pretty; }
.fpost-stats { display: flex; gap: 16px; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--text3); margin-top: 7px; }
.stat-i { display: inline-flex; align-items: center; gap: 5px; }
.icon svg { display: block; }
.fpost-comm { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; background: var(--bg2); border: 1px solid var(--line); border-radius: 3px; padding: 10px 13px; }
.fpost-comm:hover { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }
.fpost-comm .l { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text2); }
.fpost-comm .pr { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* ---------- artist cards (banner) ---------- */
.aindex { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; padding-top: 24px; }
.acard { display: block; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0; }
.acard:hover { border-color: var(--line2); }
.acard .banner { height: 84px; background-size: cover; background-position: center; background-color: var(--surface2); position: relative; }
.acard .banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, var(--bg2)); }
.acard .acard-body { display: flex; gap: 14px; align-items: flex-start; padding: 0 16px 16px; margin-top: -26px; position: relative; }
.acard .av, .acard .av-fallback { border: 2px solid var(--bg2); }
.acard .meta { flex: 1; min-width: 0; padding-top: 26px; }
.acard .nm { font-weight: 600; font-size: 15px; }
.acard .pf-row { display: flex; gap: 7px; margin-top: 5px; align-items: center; flex-wrap: wrap; padding-right: 8px; }
.acard .sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--text3); margin-top: 6px; letter-spacing: 0.04em; }
.acard .right { text-align: right; flex: none; padding-top: 28px; }
.acard .from { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.acard .acc-row { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.acard.clickable { cursor: pointer; }
.acard.clickable:hover .nm { color: var(--accent); }
.acard .acc-chip { font-family: var(--font-mono); font-size: 9px; color: var(--text3); border: 1px solid var(--line); border-radius: 2px; padding: 2px 6px; letter-spacing: 0.05em; white-space: nowrap; }

/* artist profile banner */
/* responsive height so a wide social banner (≈3:1) crops less without going huge */
.artist-banner { height: clamp(130px, 19vw, 260px); border-radius: var(--radius); background-size: cover; background-position: center; background-color: var(--surface); border: 1px solid var(--line); margin-top: 18px; position: relative; overflow: hidden; }
.artist-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, rgba(14,14,16,0.55)); }
.artist-head.with-banner { padding-top: 0; margin-top: -34px; position: relative; z-index: 2; padding-left: 22px; }
.artist-head.with-banner img.av-big, .artist-head.with-banner .av-fallback { border: 3px solid var(--bg); }
/* keep the Follow button off the banner: drop it to the bottom of the head row */
.artist-head.with-banner > .btn { align-self: flex-end; margin-bottom: 6px; }
/* The action column (Follow + admin Remove) is centered in a header pulled up over the banner,
   so a 2-button STACK grows upward into the banner. Lay them in a single bottom-aligned ROW —
   one button tall — so they stay clear. (Mobile already rows them full-width, below 720.) */
@media (min-width: 721px) {
  .artist-head.with-banner > div:last-child {
    flex-direction: row !important; align-items: center; align-self: flex-end; margin-bottom: 6px;
  }
}

/* ---------- misc ---------- */
.section-head { display: flex; align-items: baseline; gap: 14px; padding: 26px 0 4px; }
.section-head h2 { margin: 0; font-size: 21px; letter-spacing: -0.01em; }
.section-head .sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; }
.artist-match-strip { display: flex; gap: 10px; align-items: center; padding: 4px 0 14px; flex-wrap: wrap; }
.artist-pill { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px; padding: 5px 13px 5px 6px; font-size: 13px; color: var(--text2); }
.artist-pill:hover { border-color: var(--line2); color: var(--text); }
.artist-pill img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.empty { padding: 70px 0; text-align: center; color: var(--text3); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }
::selection { background: color-mix(in oklab, var(--accent) 35%, transparent); }

/* ---------- leaders, sparkline, avatars, media ---------- */
.leader { flex: 1; border-bottom: 1px dotted var(--line2); align-self: center; min-width: 16px; transform: translateY(-1px); }
.spark-plot { position: relative; }
.spark-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); }
.av { border-radius: 50%; object-fit: cover; flex: none; }
.av-fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--surface2); border: 1px solid var(--line2); color: var(--text3); font-weight: 600; }
.artimg.ph { aspect-ratio: 4 / 5; }
.artimg.ph img { opacity: 0; }
.play-circle { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: rgba(10,10,12,0.66); border: 1px solid rgba(255,255,255,0.28); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; padding-left: 3px; pointer-events: none; }
.dur-badge { position: absolute; bottom: 8px; right: 8px; }

/* ---------- tags ---------- */
.tag .src { opacity: 0.5; font-size: 9px; margin-left: 6px; }
.tag.dim { opacity: 0.55; }
.tag-more { cursor: pointer; color: var(--accent); border-color: color-mix(in oklab, var(--accent) 35%, transparent); background: none; }
.price-note.approx { font-size: 11px; margin-top: 5px; }

/* ---------- like button ---------- */
.like-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--text3); font-size: 11px; padding: 2px 4px; font-family: var(--font-mono); }
.like-btn:hover { color: var(--text2); }
.like-btn.on { color: var(--sold); }

/* ---------- price matrix ---------- */
.matrix { width: 100%; border-collapse: collapse; }
.matrix th { font-family: var(--font-mono); font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); text-align: right; padding: 4px 6px 8px; }
.matrix th.rowh { text-align: left; }
.matrix td { font-family: var(--font-mono); font-size: 13px; text-align: right; padding: 8px 6px; border-top: 1px dotted var(--line); }
.matrix td.rowh { font-family: var(--font-ui); font-size: 12.5px; color: var(--text2); text-align: left; }
.matrix td.na { color: var(--line2); }

/* ---------- profile menu ---------- */
.pmenu-wrap { position: relative; }
button.user-avatar { cursor: pointer; padding: 0; }
.pmenu { position: absolute; right: 0; top: 38px; min-width: 236px; background: var(--surface); border: 1px solid var(--line2); border-radius: 6px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,0.55); z-index: 80; }
.pmenu-head { padding: 9px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.pmenu-head .nm { font-weight: 600; font-size: 14px; }
.pmenu-head .sub { font-family: var(--font-mono); font-size: 10px; color: var(--text3); margin-top: 2px; }
.pmenu a, .pmenu > button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font-size: 13px; color: var(--text2); padding: 8px 10px; border-radius: 4px; background: none; border: none; }
.pmenu a:hover, .pmenu > button:hover { background: var(--surface2); color: var(--text); }
.pmenu .adm { margin-left: auto; font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--taken); border: 1px solid color-mix(in oklab, var(--taken) 45%, transparent); padding: 1px 5px; border-radius: 2px; }
.pmenu-sep { height: 1px; background: var(--line); margin: 5px 6px; }
.mini-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--line2); margin-left: auto; }
.mini-dot.on { background: var(--accent); border-color: var(--accent); }

/* ---------- harvest pipeline ---------- */
.hsteps { display: flex; gap: 4px; margin-top: 6px; }
.hstep { height: 3px; flex: 1; min-width: 12px; background: var(--surface2); border-radius: 99px; }
.hstep.done { background: var(--accent); }
.hstep.cur { background: color-mix(in oklab, var(--accent) 45%, var(--surface2)); }
/* harvest event feed */
.hfeed { max-height: 62px; overflow-y: auto; margin-top: 8px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.hfeed-line { display: flex; gap: 9px; align-items: baseline; font-family: var(--font-mono); font-size: 10px; color: var(--text2); line-height: 1.5; padding: 2px 0; }
.hfeed-line .t { color: var(--text3); flex: none; min-width: 52px; }
.hfeed-line .m { white-space: normal; }
.hlabel { font-size: 10px; color: var(--text3); margin-top: 8px; letter-spacing: 0.05em; }
.harvest-block { border: 1px dashed var(--line2); border-radius: var(--radius); padding: 13px 16px; margin: 2px 0 14px; max-width: 560px; }
.acard.harvesting { border-style: dashed; }
.harvest-tag { font-size: 8.5px; color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; margin-left: 9px; vertical-align: 2px; }
.sub.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-card.gone { opacity: 0.6; border-style: dashed; }

/* ---------- no-art placeholder ---------- */
.no-art { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 22px 20px; background: var(--bg2); min-height: 150px; justify-content: center; }
.no-art.tall { min-height: 200px; width: 280px; border-radius: var(--radius); border: 1px dashed var(--line2); }
.no-art .na-title { font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.no-art .na-price { font-size: 13px; color: var(--text2); }
.no-art .na-note { font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text3); }
.bsrc { color: var(--text3); font-size: 10px; }
.mod-cond { color: var(--text3); font-size: 11.5px; }

/* ---------- view toggle & scope ---------- */
.view-seg { display: flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.view-seg button { background: none; border: none; color: var(--text3); padding: 6px 9px; display: flex; align-items: center; }
.view-seg button:hover { color: var(--text2); }
.view-seg button.on { color: var(--accent); background: color-mix(in oklab, var(--accent) 9%, transparent); }
.masonry.comfy { columns: 3; column-gap: 36px; }
.masonry.comfy .mas-item { margin-bottom: 46px; }
@media (max-width: 900px) { .masonry.comfy { columns: 2; } }
@media (max-width: 560px) { .masonry.comfy { columns: 1; } }
.scope-row { display: flex; gap: 8px; padding: 14px 0 0; }

/* ---------- system pages ---------- */
.page-mid { max-width: 1020px; }
.explainer { max-width: 640px; color: var(--text2); font-size: 13.5px; line-height: 1.65; margin: 4px 0 22px; text-wrap: pretty; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 26px; }
.stat { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; }
.stat .k { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text3); }
.stat .v { font-family: var(--font-mono); font-size: 21px; font-weight: 600; margin-top: 5px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text3); text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table .mono-cell { font-family: var(--font-mono); font-size: 12px; }
.svc-note { font-size: 11.5px; color: var(--text3); margin-top: 5px; }
.log-line { display: grid; grid-template-columns: 84px 56px 168px 1fr; gap: 14px; padding: 9px 4px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11.5px; color: var(--text2); }
.log-line .lv { text-transform: uppercase; letter-spacing: 0.08em; }
.log-line .lv.info { color: var(--text3); }
.log-line .lv.warn { color: var(--taken); }
.log-line .lv.error { color: var(--sold); }
.log-line .svc { color: var(--text3); }
.lock-note { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; color: var(--taken); letter-spacing: 0.06em; }

/* ---------- forms & settings ---------- */
.form-block { max-width: 560px; }
.form-row { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-row label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text3); }
.form-row input[type="text"] { background: var(--bg2); border: 1px solid var(--line); border-radius: 3px; color: var(--text); font-family: var(--font-ui); font-size: 14px; padding: 10px 12px; outline: none; max-width: 380px; }
.form-row input[type="text"]:focus { border-color: var(--line2); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setting-row .t { font-size: 14px; }
.setting-row .d { font-size: 12px; color: var(--text3); margin-top: 2px; max-width: 400px; }
.tgl { width: 36px; height: 21px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line2); position: relative; flex: none; padding: 0; }
.tgl .knob { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--text3); transition: all 0.15s ease; }
.tgl.on { background: color-mix(in oklab, var(--accent) 35%, var(--surface2)); border-color: var(--accent); }
.tgl.on .knob { left: 17px; background: var(--accent); }
.session-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text2); }
.session-row .sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--text3); margin-top: 2px; }
.invite-code { font-family: var(--font-mono); font-size: 12px; background: var(--bg2); border: 1px dashed var(--line2); border-radius: 3px; padding: 7px 12px; letter-spacing: 0.08em; color: var(--text2); }

/* ---------- submit ---------- */
.submit-form { display: flex; gap: 10px; max-width: 640px; }
.submit-form input { flex: 1; background: var(--bg2); border: 1px solid var(--line); border-radius: 3px; color: var(--text); font-family: var(--font-mono); font-size: 12.5px; padding: 11px 13px; outline: none; }
.submit-form input:focus { border-color: var(--line2); }
.sub-card { display: flex; align-items: center; gap: 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px; max-width: 640px; margin-top: 12px; }
.sub-card .u { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-card .hsteps { width: 120px; flex: none; margin-top: 0; }
.sub-stage { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); flex: none; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* inline spinner for the Track button + status line */
.spin { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; border: 2px solid rgba(255,255,255,0.3); border-top-color: currentColor; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- tag rows ---------- */
.tagrow { display: flex; align-items: baseline; gap: 10px; width: 100%; background: none; border: none; padding: 8px 2px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 13.5px; text-align: left; cursor: pointer; }
.tagrow:hover .nm { filter: brightness(1.25); }
.tagrow .nm { color: var(--tagc, var(--text)); }
.tagrow .srcs { font-size: 9.5px; color: var(--text3); }
.tagrow .cnt { font-size: 12px; color: var(--text2); min-width: 24px; text-align: right; }

/* ---------- card carousel & size control ---------- */
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: rgba(6,6,8,0.82); border: 1px solid rgba(255,255,255,0.25); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.15s ease; cursor: pointer; padding: 0; }
.car-btn.prev { left: 8px; }
.car-btn.next { right: 8px; }
.car-btn:hover { background: rgba(6,6,8,0.95); border-color: rgba(255,255,255,0.5); }
.ocard-img:hover .car-btn, .bcard-art:hover .car-btn { opacity: 1; }
@media (hover: none) {
  /* Touch: show carousel arrows + enlarge small controls to ~40px hit areas (Apple HIG). */
  .car-btn { opacity: 1; width: 40px; height: 40px; }
  .bm-btn { padding: 9px 10px; }
  .notif-btn { padding: 10px 11px; }
  .clear-btn { padding: 6px 8px; }
}
.car-count { position: absolute; bottom: 8px; right: 8px; }
.car-dots { position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; pointer-events: none; }
.car-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.45); box-shadow: 0 0 5px rgba(0,0,0,0.7); }
.car-dots i.on { background: #fff; }
.size-ctl { display: flex; align-items: center; gap: 8px; color: var(--text3); }
.size-range { width: 110px; accent-color: var(--accent); cursor: pointer; }

/* ---------- rows view ---------- */
.rows-list { max-width: 1240px; }
.orow { display: flex; gap: 40px; justify-content: space-between; align-items: center; padding: 34px 26px; margin: 0 -26px; border-radius: 6px; border-bottom: 1px solid var(--line); }
.orow.clickable:hover { background: color-mix(in oklab, #ffffff 2.5%, transparent); box-shadow: 0 0 0 1px var(--line) inset; border-bottom-color: transparent; }
.orow-info { flex: 1; min-width: 260px; }
.orow-top { display: flex; align-items: center; gap: 12px; }
.orow-title { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-top: 10px; }
.orow-title:hover { color: var(--accent); }
.orow-artist { display: flex; align-items: center; gap: 9px; margin-top: 7px; font-size: 12.5px; color: var(--text3); }
.orow-artist .nm { color: var(--text2); font-size: 12.5px; }
.orow-price { font-size: 17px; font-weight: 600; margin-top: 10px; }
.orow-will { font-size: 12px; color: var(--text3); margin-top: 7px; }
.orow-art-strip { display: flex; gap: 16px; align-items: center; flex: none; max-width: 58%; overflow-x: auto; overflow-y: hidden; padding: 14px 4px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.orow-art-strip::-webkit-scrollbar { height: 6px; }
.orow-art-strip::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 99px; }
.orow-art-strip::-webkit-scrollbar-track { background: transparent; }
.orow-piece { flex: none; cursor: pointer; }
.orow-piece { display: block; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.07); overflow: hidden; background: var(--surface); }
.orow-piece:hover { border-color: color-mix(in oklab, var(--accent) 55%, rgba(255,255,255,0.07)); }
.orow-piece .artimg { height: 100%; }
.orow-piece .artimg img { height: 100%; width: auto; display: block; }
.orow-piece .artimg.ph { aspect-ratio: 4 / 5; }
@media (max-width: 820px) {
  .orow { flex-direction: column; align-items: flex-start; gap: 18px; }
  .orow-art-strip { max-width: 100%; overflow-x: auto; }
}

/* ---------- segmented slots ---------- */
.slotsegs { display: flex; gap: 3px; }
.slotseg { height: 5px; flex: 1; background: var(--open); border-radius: 2px; }
.slotseg.taken { background: var(--surface2); }

/* ---------- scattered photo rows ---------- */
.orow.clickable { cursor: pointer; }
.scatter { display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-start; flex: none; width: 58%; min-width: 0; overflow-x: auto; overflow-y: hidden; padding: 24px 14px 24px 36px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.scatter::-webkit-scrollbar { height: 6px; }
.scatter::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 99px; }
.scatter-piece { flex: none; margin-right: -30px; padding: 0; border: 1px solid rgba(255,255,255,0.13); border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: zoom-in; box-shadow: 0 10px 26px rgba(0,0,0,0.55); position: relative; transform: translateY(var(--dy, 0)) rotate(var(--rot, 0deg)); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.scatter-piece:first-child { margin-right: 0; }
.scatter-piece:hover { transform: translateY(calc(var(--dy, 0px) - 10px)) rotate(calc(var(--rot, 0deg) / 3)) scale(1.025); z-index: 30 !important; box-shadow: 0 18px 40px rgba(0,0,0,0.65); }
.scatter-piece .artimg { height: 100%; }
.scatter-piece .artimg img { height: 100%; width: auto; display: block; }
.scatter-piece .artimg.ph { aspect-ratio: 4 / 5; }
.scatter-more { flex: none; margin-right: -14px; margin-left: 8px; z-index: 31; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.5); }
.scatter-more:hover { border-color: var(--accent); }
@media (max-width: 820px) { .scatter { max-width: 100%; padding-left: 30px; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8,8,10,0.93); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lb-stage { cursor: zoom-in; transition: transform 0.12s ease-out; touch-action: none; }
.lb-stage.zoomed { cursor: grab; transition: none; }
.lb-stage.zoomed:active { cursor: grabbing; }
.lb-x { position: fixed; top: 16px; right: 18px; z-index: 310; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line2); color: var(--text); font-size: 19px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-x:hover { border-color: var(--accent); color: var(--accent); }
.lightbox .artimg { display: flex; align-items: center; justify-content: center; max-width: 92vw; max-height: 92vh; max-height: 92dvh; }
.lightbox .artimg img { max-width: 92vw; max-height: 92vh; max-height: 92dvh; width: auto; height: auto; object-fit: contain; }
.lightbox .artimg.ph { aspect-ratio: auto; min-width: 300px; min-height: 300px; }
.lb-hint { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--text3); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- custom dropdowns ---------- */
.dd { position: relative; display: inline-block; }
.dd-btn { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text2); background: none; border: 1px solid var(--line); border-radius: 3px; padding: 6px 11px; white-space: nowrap; }
.dd-btn:hover, .dd.open .dd-btn { border-color: var(--line2); color: var(--text); }
.dd-car { font-size: 9px; color: var(--text3); }
.dd-menu { position: absolute; top: calc(100% + 5px); left: 0; min-width: 100%; background: var(--surface); border: 1px solid var(--line2); border-radius: 4px; padding: 4px; z-index: 70; box-shadow: 0 12px 32px rgba(0,0,0,0.5); max-height: 280px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.dd-item { display: block; width: 100%; text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text2); background: none; border: none; border-radius: 3px; padding: 7px 10px; white-space: nowrap; }
.dd-item:hover { background: var(--surface2); color: var(--text); }
.dd-item.cur { color: var(--accent); }
.dd-btn.has-sel { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 50%, transparent); }
.dd-item { display: flex; align-items: center; gap: 8px; }
.mck { width: 13px; height: 13px; border: 1px solid var(--line2); border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #131313; }
.mck.on { background: var(--accent); border-color: var(--accent); }
.dd-clear { color: var(--text3); border-top: 1px solid var(--line); border-radius: 0; margin-top: 3px; }

/* dual range slider */
.dual-wrap { width: 100%; }
.dual { position: relative; height: 22px; }
.dual .track { position: absolute; top: 50%; left: 0; right: 0; height: 3px; background: var(--surface2); border-radius: 99px; transform: translateY(-50%); }
.dual .fill { position: absolute; top: 50%; height: 3px; background: var(--accent); border-radius: 99px; transform: translateY(-50%); }
.dual input[type="range"] { position: absolute; inset: 0; width: 100%; margin: 0; appearance: none; -webkit-appearance: none; background: none; pointer-events: none; height: 22px; }
.dual input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); cursor: grab; }
.dual input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); cursor: grab; }
.dual-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text3); margin-top: 3px; }

/* carousel cells: fixed ratio ONLY for multi-image cells so switching doesn't reflow */
.bcard-art .artimg.multi { aspect-ratio: 4 / 4.6; display: flex; align-items: center; justify-content: center; background: var(--bg2); }
.bcard-art .artimg.multi img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ocard-img .artimg.multi { aspect-ratio: 4 / 4.6; display: flex; align-items: center; justify-content: center; background: var(--bg2); }
.ocard-img .artimg.multi img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.logo-mark { transition: transform 0.25s ease; }
.logo:hover .logo-mark { transform: rotate(45deg); }
.nav a:hover span { color: var(--accent); }
.tagrow:hover .cnt { color: var(--accent); }
.boffer:hover .bprice, .post-offer:hover .pr { color: var(--accent); }
.acard:hover .nm { color: var(--accent); }
.backlink:hover { color: var(--accent); }
.tag-group { margin-bottom: 12px; }
.tag-group-h { font-size: 9px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text3); margin-bottom: 7px; }

/* ---------- tag tooltips ---------- */
.has-tip { position: relative; cursor: default; }
.has-tip::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%) translateY(2px); background: var(--surface); border: 1px solid var(--line2); color: var(--text2); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; padding: 5px 9px; border-radius: 3px; white-space: normal; width: max-content; max-width: min(240px, 70vw); text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.12s ease, transform 0.12s ease; z-index: 60; box-shadow: 0 8px 22px rgba(0,0,0,0.45); }
.has-tip:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- bundle cards ---------- */
.bcard-art { display: block; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.07); background: var(--surface); cursor: pointer; }
.bcard-art:hover { border-color: color-mix(in oklab, var(--accent) 55%, rgba(255,255,255,0.07)); }
.bcard-cap { padding: 10px 2px 0; }
.bcard-head { display: flex; align-items: center; gap: 9px; }
.bcard-head .nm { font-weight: 600; font-size: 14px; color: var(--text); }
.bcard-caption { display: block; font-size: 13px; color: var(--text2); margin-top: 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard-caption:hover { color: var(--text); }
.orow-caption { display: block; font-size: 13px; color: var(--text2); margin-top: 8px; max-width: 480px; line-height: 1.55; }
.orow-caption:hover { color: var(--text); }
.bcard-meta { font-size: 10.5px; color: var(--text3); letter-spacing: 0.05em; margin-top: 6px; }
.boffers { margin-top: 8px; display: flex; flex-direction: column; }
.boffer { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 12.5px; color: var(--text2); min-width: 0; }
.boffer .btitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1; }
.boffer:hover .btitle { color: var(--text); }
.boffer .bprice { font-size: 12px; color: var(--text); white-space: nowrap; }
.boffer .kind-tag { font-size: 8.5px; padding: 2px 6px; flex: none; }
.boffer-more { font-size: 10.5px; color: var(--accent); padding-top: 6px; letter-spacing: 0.05em; }

/* ---------- bookmarks & post likes ---------- */
.bm-btn { background: none; border: none; color: var(--text3); padding: 2px 3px; display: inline-flex; align-items: center; }
.bm-btn:hover { color: var(--text2); }
.bm-btn.on { color: var(--accent); }
.post-likes { display: inline-flex; align-items: center; gap: 5px; color: var(--text3); font-size: 11px; font-family: var(--font-mono); }

/* ---------- advanced search page ---------- */
.search-hero { padding: 6px 0 4px; }
.search.big { width: min(560px, 100%); padding: 11px 15px; }
.search.big input { font-size: 13.5px; }

/* ---------- dashboard search ---------- */
.srch-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 8px; }
@media (max-width: 900px) { .srch-layout { grid-template-columns: 1fr; } }
.srch-rail { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 20px; }
.srch-group h4 { margin: 0 0 9px; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text3); }
.srch-group .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.srch-group .stack { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ac-wrap { position: relative; width: 100%; }
.ac-input { width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 3px; color: var(--text); font-family: var(--font-mono); font-size: 12px; padding: 9px 11px; outline: none; }
.ac-input:focus { border-color: var(--line2); }
.ac-menu { position: absolute; top: calc(100% + 5px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line2); border-radius: 4px; padding: 4px; z-index: 70; box-shadow: 0 12px 32px rgba(0,0,0,0.5); max-height: 260px; overflow-y: auto; }
.ac-item { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: none; border: none; border-radius: 3px; padding: 7px 9px; color: var(--text2); font-size: 13px; cursor: pointer; }
.ac-item:hover, .ac-item.hl { background: var(--surface2); color: var(--text); }
.ac-item .sub { margin-left: auto; font-family: var(--font-mono); font-size: 9.5px; color: var(--text3); }
.ac-sel { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ac-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent); background: color-mix(in oklab, var(--accent) 8%, transparent); color: var(--text); border-radius: 99px; padding: 4px 10px 4px 5px; font-size: 12.5px; }
.ac-chip button { background: none; border: none; color: var(--text3); cursor: pointer; padding: 0 2px; font-size: 13px; line-height: 1; }
.ac-chip button:hover { color: var(--text); }

.ac-chip.tag-chip { border-color: color-mix(in oklab, var(--tagc, var(--accent)) 45%, transparent); background: color-mix(in oklab, var(--tagc, var(--accent)) 8%, transparent); color: color-mix(in oklab, var(--tagc, var(--text)) 85%, var(--text)); }
.ac-chip.b-will { border-color: color-mix(in oklab, #6cc46c 50%, transparent); background: color-mix(in oklab, #6cc46c 9%, transparent); color: color-mix(in oklab, #6cc46c 78%, var(--text)); }
.ac-chip.b-avoid { border-color: color-mix(in oklab, #d9694e 50%, transparent); background: color-mix(in oklab, #d9694e 9%, transparent); color: color-mix(in oklab, #d9694e 80%, var(--text)); }
.srch-tip { margin: 7px 2px 0; font-size: 10.5px; color: var(--text3); line-height: 1.7; }
.srch-tip b { color: var(--text2); font-weight: 600; }

/* ---------- notifications ---------- */
.notif-btn { position: relative; background: none; border: 1px solid var(--line); border-radius: 3px; color: var(--text3); padding: 6px 8px; display: flex; align-items: center; cursor: pointer; }
.notif-btn:hover { color: var(--text2); border-color: var(--line2); }
.notif-dot { position: absolute; top: 4px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); border: 1.5px solid var(--bg); }
.notif-menu { position: absolute; right: 0; top: 38px; width: 340px; background: var(--surface); border: 1px solid var(--line2); border-radius: 6px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,0.55); z-index: 80; }
.notif-head { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 10px 9px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.notif-head .t { font-weight: 600; font-size: 13.5px; }
.notif-head .mono { font-size: 9.5px; color: var(--text3); letter-spacing: 0.08em; }
.notif-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 4px; }
.notif-item:hover { background: var(--surface2); }
.notif-item .body { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text2); line-height: 1.45; }
.notif-item .body b { color: var(--text); font-weight: 600; }
.notif-item .when { font-family: var(--font-mono); font-size: 9.5px; color: var(--text3); white-space: nowrap; }
.notif-item.unread { background: color-mix(in oklab, var(--accent) 5%, transparent); }
.notif-item .ndot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: none; }
.notif-item .ndot.read { background: var(--surface2); }

/* ---------- post page ---------- */
.post-offers { display: flex; flex-direction: column; }
.post-offer { display: flex; align-items: baseline; gap: 9px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.post-offer:last-child { border-bottom: none; }
/* The row already has its own dashed separator — drop the redundant dotted leader; keep it as a
   plain flex spacer so the price still right-aligns. */
.post-offer .leader { border-bottom: none; }
.post-offer .t { color: var(--text); font-weight: 500; }
.post-offer:hover .t { color: var(--accent); }
.post-offer .pr { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.tags-search { margin: 2px 0 18px; max-width: 380px; }
.tags-seq { display: flex; flex-direction: column; gap: 26px; max-width: 860px; }
.tags-cat h3 { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text3); margin: 0 0 10px; font-weight: 500; }
.tag-btn { cursor: pointer; }
.tag-btn:hover { filter: brightness(1.25); }
.tag-btn .cnt { opacity: 0.55; font-size: 9px; margin-left: 7px; }
.sentinel { display: block; width: 100%; padding: 14px 0; margin: 14px 0; text-align: center; font-size: 10px; color: var(--text3); letter-spacing: 0.1em; text-transform: uppercase; background: none; border: 1px dashed var(--line); border-radius: var(--radius); cursor: pointer; }
.sentinel:hover { color: var(--text2); border-color: var(--line2); }

/* ---------- log charts ---------- */
.log-charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin: 14px 0 6px; }
@media (max-width: 860px) { .log-charts { grid-template-columns: 1fr; } }
.log-chart-block { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px 10px; }
.log-chart-block h3 { margin: 0 0 10px; font-size: 9.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text3); }
.logchart { height: 150px; position: relative; }
.logchart canvas { width: 100% !important; height: 150px !important; }
.cat-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--tagc, var(--text3)); margin-right: 8px; vertical-align: 1px; }

/* ---------- auth ---------- */
.auth-page { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 30px; }
.auth-card { width: 400px; background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: 32px 30px 26px; }
.auth-sub { text-align: center; font-size: 10px; color: var(--text3); letter-spacing: 0.12em; text-transform: uppercase; margin: 8px 0 22px; }
.auth-tabs { display: flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 22px; }
.auth-tabs button { flex: 1; background: none; border: none; color: var(--text3); font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; padding: 9px; cursor: pointer; }
.auth-tabs button.cur { background: var(--surface2); color: var(--text); }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text3); margin-bottom: 7px; font-family: var(--font-mono); }
.auth-field input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; color: var(--text); font-family: var(--font-mono); font-size: 13px; padding: 10px 12px; outline: none; transition: border-color 0.15s ease; box-sizing: border-box; }
.auth-field input:focus { border-color: var(--line2); }
.auth-field.has-err input { border-color: color-mix(in oklab, var(--sold) 65%, transparent); }
.auth-field.has-ok input { border-color: color-mix(in oklab, var(--open) 55%, transparent); }
/* password field with a show/hide toggle */
.pw-row { position: relative; display: flex; align-items: center; }
.pw-row input { padding-right: 40px; }
.pw-toggle { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 36px; display: flex; align-items: center; justify-content: center; background: none; border: none; border-radius: 0 3px 3px 0; color: var(--text3); cursor: pointer; padding: 0; }
.pw-toggle:hover { color: var(--text); }
.invite-row { display: flex; gap: 8px; align-items: stretch; }
.invite-row input { flex: 1; }
.invite-row .btn { flex: none; }
.ok-mark { display: flex; align-items: center; justify-content: center; width: 38px; border: 1px solid color-mix(in oklab, var(--open) 55%, transparent); border-radius: 3px; color: var(--open); flex: none; }
.field-err { display: flex; align-items: center; gap: 7px; color: var(--sold); font-size: 10.5px; margin-top: 7px; letter-spacing: 0.03em; }
.field-warn { display: flex; align-items: center; gap: 7px; color: var(--taken); font-size: 10.5px; margin-top: 7px; letter-spacing: 0.03em; }
.field-ok { display: flex; align-items: center; gap: 7px; color: var(--open); font-size: 10.5px; margin-top: 7px; letter-spacing: 0.03em; }
.auth-drop { display: none; }
.auth-drop.open { display: block; margin-top: 4px; animation: dropIn 0.4s ease; transform-origin: top; }
@keyframes dropIn { from { transform: translateY(-10px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .auth-drop.open { animation: none; } }
.auth-cta { width: 100%; justify-content: center; margin-top: 6px; padding: 11px; }
.auth-note { font-size: 10px; color: var(--text3); letter-spacing: 0.04em; margin: 14px 0 0; text-align: center; line-height: 1.6; font-family: var(--font-mono); }
.auth-success { text-align: center; padding: 26px 0 18px; }
.auth-success h2 { margin: 16px 0 6px; font-size: 19px; }
.auth-success p { font-size: 10px; color: var(--text3); letter-spacing: 0.1em; text-transform: uppercase; }
.ok-ring { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--open); color: var(--open); }
.submit-form input.err { border-color: color-mix(in oklab, var(--sold) 65%, transparent); }

/* ---------- service health: uptime + latency ---------- */
.svc-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.svc-row { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 12px; transition: border-color 0.15s ease; }
.svc-row:hover { border-color: color-mix(in oklab, var(--brandc, var(--line2)) 50%, transparent); }
.svc-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.svc-name { font-weight: 600; font-size: 14px; }
.svc-meta { font-size: 10.5px; color: var(--text3); }
.svc-next { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 10.5px; color: var(--text2); }
.uptime-wrap { margin-top: 11px; }
.uptime-bars { display: flex; gap: 2px; align-items: stretch; height: 22px; }
.ubar { flex: 1; border-radius: 1px; background: color-mix(in oklab, var(--open) 75%, var(--bg2)); min-width: 2px; }
.ubar:hover { filter: brightness(1.35); }
.ubar.slow { background: var(--taken); }
.ubar.down { background: var(--sold); }
/* no telemetry in this window — grey, distinctly NOT "ok" (uptime is computed over active buckets only). */
.ubar.nodata { background: var(--line); opacity: 0.5; }
.uptime-none { color: var(--text3); font-size: 11px; align-self: center; }
.uptime-foot { display: flex; justify-content: space-between; font-size: 9px; color: var(--text3); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; }
.latency-chart { height: 230px; position: relative; }
.latency-chart canvas { width: 100% !important; height: 230px !important; }

/* ---------- multi-slot auction table ---------- */
.slot-summary { font-size: 10.5px; color: var(--text3); letter-spacing: 0.05em; margin-bottom: 9px; }
.slot-table .dimrow td { opacity: 0.55; }
.slot-table .slot-note { color: var(--text3); font-size: 10px; font-family: var(--font-ui); letter-spacing: 0; text-transform: none; }
.slot-table td:last-child, .slot-table th:last-child { text-align: right; }

/* ==================== phone support ==================== */
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: rgba(14,14,16,0.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); justify-content: space-around; }
.bottom-nav a { display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; gap: 4px; color: var(--text3); font-family: var(--font-mono); font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.08em; padding: 7px 4px; border-radius: 4px; }
.bottom-nav a.active { color: var(--accent); }
.bottom-nav a:active { background: var(--surface2); }

@media (max-width: 720px) {
  .topbar { padding: 0 14px; gap: 10px; }
  .topbar .nav { display: none; }
  .topbar .nsfw-toggle { display: none; } /* still available in the profile menu */
  .search-wrap { justify-content: stretch; }
  .search { width: 100%; }
  .bottom-nav { display: flex; }
  .page { padding: 0 16px calc(86px + env(safe-area-inset-bottom)); }
  .auth-page { padding-bottom: 100px; }
  .auth-card { width: 100%; max-width: 400px; }

  /* grids & rows */
  .masonry { columns: 2 !important; column-gap: 12px !important; }
  .rows-list { max-width: 100%; }
  .orow { flex-direction: column; align-items: stretch; gap: 14px; padding: 22px 14px; margin: 0 -14px; }
  .orow-art-strip, .scatter { width: 100%; max-width: 100%; padding: 16px 8px 12px; }
  .orow-info { min-width: 0; }

  /* detail pages */
  .rail h1 { font-size: 22px; }
  .viewer-main { height: min(54vh, 520px); height: min(54svh, 520px); }
  .viewer-main.single { height: auto; }
  .viewer-main.single .artimg img { max-height: 60vh; max-height: 60svh; }
  .more-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .artist-head { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 0 18px; }
  .artist-head h1 { font-size: 23px; }
  .artist-head .info { width: 100%; }
  .artist-head .avail { flex-wrap: wrap; gap: 6px 12px; }
  /* the follow/remove button column → a full-width row under the info, not overlapping it */
  .artist-head > div:last-child { flex-direction: row !important; align-self: stretch; align-items: center !important; gap: 8px; }
  .artist-head.with-banner { padding-left: 0; margin-top: -26px; }
  .artist-banner { height: 110px; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }

  /* boundaries (will/maybe/won't draw) stack vertically on mobile */
  .ww-grid { grid-template-columns: 1fr; gap: 14px; }

  /* search dashboard */
  .srch-rail { position: static; }

  /* system pages */
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .log-line { grid-template-columns: 60px 44px 1fr; }
  .log-line .svc { grid-column: 3; font-size: 10px; opacity: 0.7; }
  .log-line span:last-child { grid-column: 1 / -1; padding-left: 2px; }
  .log-charts { grid-template-columns: 1fr; }
  .svc-head { gap: 8px; }
  .svc-next { margin-left: 0; width: 100%; order: 9; }
  .notif-menu { width: min(340px, calc(100vw - 20px)); }
  .pmenu { right: -6px; }
  .feed-col { max-width: 100%; }
  .fpost-img .artimg img { max-height: 70vh; max-height: 70svh; }
  .filterbar { gap: 6px; }
  .chip, .dd-btn { padding: 7px 11px; }
  .section-head { flex-wrap: wrap; row-gap: 8px; }
  .submit-form { flex-direction: column; }
  .matrix, .slot-table { font-size: 12px; }
}
@media (max-width: 420px) {
  .masonry { columns: 1 !important; }
  .logo span + span { display: none; }
}
