/* Artoveya's Artist Nook - the tenant boards (<tenant>.artoveya.com).
   The public site's look (www.artoveya.com site.css): the same tokens, fonts, magenta-to-orange gradient and the
   light / dark themes (html[data-theme], set before the CSS loads; the media query covers no-JS). Calmer than the
   landing page on purpose - this is where artists work: no paint splashes, the briefs' own pictures bring colour. */

/* TOKENS = www.artoveya.com site.css, value for value (owner, 2026-10-12: the three sites share one layout - "exactly
   the same", no visual shift between them). Change them THERE first, then copy here. Extra here: good / warn / bad. */
:root {
    --bg:          #faf7f2;
    --bg-tint:     #f3eee5;
    --surface:     #fffdf9;
    --surface-2:   #f5f0e7;
    --line:        #e8e1d5;
    --line-strong: #d6ccbb;
    --text:        #14213d;
    --muted:       #586379;
    --pink:        #d61f78;
    --pink-soft:   #fbe4ee;
    --blue:        #1f66d6;
    --gold:        #c98a00;
    --gold-soft:   #fbefd2;
    --shadow:      0 10px 30px -14px rgb(20 33 61 / .16);
    --shadow-lg:   0 24px 60px -22px rgb(20 33 61 / .28);
    --grad:      var(--pink);
    --grad-text: linear-gradient(90deg, var(--pink) 0%, #ea5a3a 50%, var(--gold) 100%);
    --good: #1a8a5a; --good-soft: #e3f6ec; --warn: #b5560c; --warn-soft: #fff1e3; --bad: #c42a3c; --bad-soft: #fde8eb;
    --radius: 16px;
    --wrap:   1220px;
    --serif:  "DM Serif Display", Georgia, serif;
    --sans:   "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0b1120; --bg-tint: #0f172b; --surface: #131c33; --surface-2: #19233e; --line: #232f4d; --line-strong: #33406a;
        --text: #f4efe6; --muted: #9ba5bd; --pink: #ff5aa2; --pink-soft: #3a1630;
        --blue: #6aa2ff; --gold: #f5b301; --gold-soft: #3a2c0a;
        --shadow: 0 10px 30px -12px rgb(0 0 0 / .6); --shadow-lg: 0 24px 60px -20px rgb(0 0 0 / .75);
        --good: #4cd38f; --good-soft: #12301f; --warn: #ffb067; --warn-soft: #3a2511; --bad: #ff7b8b; --bad-soft: #3a1519;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #0b1120; --bg-tint: #0f172b; --surface: #131c33; --surface-2: #19233e; --line: #232f4d; --line-strong: #33406a;
    --text: #f4efe6; --muted: #9ba5bd; --pink: #ff5aa2; --pink-soft: #3a1630;
    --blue: #6aa2ff; --gold: #f5b301; --gold-soft: #3a2c0a;
    --shadow: 0 10px 30px -12px rgb(0 0 0 / .6); --shadow-lg: 0 24px 60px -20px rgb(0 0 0 / .75);
    --good: #4cd38f; --good-soft: #12301f; --warn: #ffb067; --warn-soft: #3a2511; --bad: #ff7b8b; --bad-soft: #3a1519;
    color-scheme: dark;
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { scrollbar-gutter: stable; }   /* no sideways jump between short and long pages (www has it too) */
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans);
       transition: background-color .25s ease, color .25s ease; }
a { color: inherit; text-decoration: none; }   /* as www */
/* :where() = zero weight: plain text links in a page get the pink underline, but every component that styles its own
   links (artist / brief cards, style pills, tabs) wins without a fight. Owner 2026-10-12: card links "dont need
   underlines. it makes them look like shit" - this rule used to outrank .artist-card > a { text-decoration: none }. */
main :where(a:not(.btn)) { color: var(--pink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
h2 { font-size: 1.5rem; }
.h-sm { font-size: 1.3rem; margin: 2rem 0 .8rem; }
p { margin: .5rem 0 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-size: .86em; padding: .1em .35em; border-radius: 6px; background: var(--surface-2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
main.wrap { padding-top: 28px; padding-bottom: 64px; min-height: 60vh; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }
.inline { display: inline; }
:focus-visible { outline: 2.5px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: .5rem .8rem; border-radius: 8px; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .55em; color: var(--pink);
           font-size: .72rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---- buttons, chips, flashes ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent;
    font: 600 .92rem/1 var(--sans); white-space: nowrap; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.05em; height: 1.05em; }
.btn-grad { background: var(--pink); color: #fff; box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--pink) 70%, transparent); }
.btn-grad:hover { background: color-mix(in srgb, var(--pink) 88%, #000); }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--pink); }
.btn-sm { padding: .55rem 1.05rem; font-size: .86rem; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-xs { padding: .38rem .75rem; font-size: .78rem; }
.btn-block { width: 100%; margin-top: 1rem; }
.linkish { border: 0; background: none; color: var(--pink); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: underline; padding: 0; }
.chip { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font: 700 .68rem/1.3 var(--sans);
        letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.chip-open { background: var(--good-soft); color: var(--good); }
.chip-shut { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.flash { margin: 0 0 1.4rem; padding: .8rem 1rem; border-radius: 12px; font-weight: 600; font-size: .92rem; }
.flash-ok  { background: var(--good-soft); color: var(--good); }
.flash-err { background: var(--bad-soft); color: var(--bad); }
.flash-warn { background: var(--warn-soft); color: var(--warn); }
.flash-warn a { color: inherit !important; font-weight: 700; }

/* ---- header ---- */
.site-header {
    position: sticky; top: 0; z-index: 40;   /* above the content AND .accent-tr (30) - and the Join form (31) - always */
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1.5rem; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand-dots { position: relative; width: 22px; height: 30px; flex: none; }
.brand-dots i { position: absolute; border-radius: 50%; }
.brand-dots i:nth-child(1) { width: 12px; height: 12px; left: 0; top: 9px; background: var(--blue); }
.brand-dots i:nth-child(2) { width: 7px; height: 7px; left: 12px; top: 2px; background: var(--pink); }
.brand-dots i:nth-child(3) { width: 8px; height: 8px; left: 13px; top: 21px; background: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 400 1.85rem/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.brand-sub {
    margin-top: 3px; font: 700 .58rem/1 var(--sans); letter-spacing: .34em; text-transform: uppercase;
    background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.site-nav { display: flex; align-items: center; gap: 1.25rem; flex: 1; min-width: 0; }
.site-nav ul { display: flex; gap: 1.35rem; margin-left: .5rem; }
.site-nav ul a { font-size: .92rem; font-weight: 600; padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { color: var(--pink); }
.site-nav ul a[aria-current="page"] { color: var(--pink); border-bottom-color: var(--pink); }
.search { position: relative; margin-left: auto; flex: 0 1 250px; min-width: 140px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 17px; height: 17px; }
.search input {
    width: 100%; padding: .62rem 1rem .62rem 2.5rem;
    background: var(--surface); color: var(--text);
    border: 1.5px solid var(--line); border-radius: 999px; font: inherit; font-size: .85rem;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--pink); }
.auth { display: flex; gap: .55rem; }

.theme-toggle, .nav-toggle {
    flex: none; display: grid; place-items: center; width: 42px; height: 42px;
    border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--pink); color: var(--pink); }
.theme-toggle .icon { width: 19px; height: 19px; }
.theme-sun { display: none; }
[data-theme="dark"] .theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
.nav-toggle { display: none; gap: 4px; align-content: center; }
.nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

@media (max-width: 1100px) {
    .nav-toggle { display: grid; }
    .theme-toggle { margin-left: auto; }
    .site-nav {
        display: none; position: absolute; top: 74px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 1rem;
        padding: 18px 16px 22px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }
    .site-nav ul { flex-direction: column; gap: .15rem; margin: 0; }
    .site-nav ul a { display: block; padding: .55rem 0; }
    .search { margin-left: 0; flex: none; }
}

/* ---- header, this site's additions (everything above is www's header block, copied verbatim) ---- */
/* No search box here, so the sign-in group takes the push to the right that www's search has. */
.site-nav .auth { margin-left: auto; align-items: center; }
.to-nook { display: inline-flex; align-items: center; gap: 6px; padding: .55rem .4rem; color: var(--muted);
           font-weight: 600; font-size: .86rem; white-space: nowrap; }
.to-nook .icon { width: 16px; height: 16px; }
.to-nook:hover { color: var(--pink); }
/* The profile menu sits where www's theme button sits (signed in, the theme switch is inside it) - same 42px. */
.pmenu-btn { height: 42px; }
@media (max-width: 1100px) {
    .pmenu { margin-left: auto; }
    .site-nav .auth { margin-left: 0; }
}

/* ---- board home ---- */
.hero { display: grid; gap: 24px; align-items: end; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.4fr .8fr; } }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 3.8rem); margin-top: .8rem; }
.lede { color: var(--muted); font-size: 1.04rem; max-width: 40rem; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.hero-card .btn { margin-top: 1rem; }
.tabs { display: flex; gap: .3rem; margin: 0 0 1.4rem; padding: 4px; border-radius: 999px; background: var(--surface-2);
        border: 1px solid var(--line); width: fit-content; }
.tabs a { padding: .5rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .86rem; color: var(--muted); text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--pink-soft); color: var(--pink); }

.briefs { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.brief-card > a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line);
                  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit;
                  transition: transform .2s ease, box-shadow .2s ease; }
.brief-card > a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.brief-pic { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.brief-pic .chip { position: absolute; left: 12px; top: 12px; background: rgb(255 255 255 / .92); color: #17132a; border: 0; }
.brief-pic .chip-open { color: var(--good); }
.brief-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.kind { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brief-body h3 { font: 400 1.35rem/1.2 var(--serif); }
.brief-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--muted); font-size: .82rem; margin-top: .3rem; }
.brief-low { margin-top: auto; padding-top: .6rem; font-size: .92rem; }
.mine { align-self: flex-start; margin-top: .5rem; padding: .2rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700;
        background: var(--pink-soft); color: var(--pink); }
.mine-won { background: var(--good-soft); color: var(--good); }

.pic { display: block; width: 100%; height: 100%; object-fit: cover; }
.pic-none { display: grid; place-items: center;
            background: radial-gradient(120% 90% at 20% 15%, hsl(var(--hue) 80% 66%), transparent 60%),
                        radial-gradient(100% 80% at 85% 90%, hsl(calc(var(--hue) + 60) 75% 55%), transparent 65%), hsl(var(--hue) 45% 30%); }
.pic-none span { font: 400 3.4rem/1 var(--serif); color: rgb(255 255 255 / .9); }

.empty-state { text-align: center; padding: 56px 16px; }
.empty-state h1, .empty-state h2 { margin-bottom: .3rem; }
.empty-state .btn { margin-top: 1.4rem; }

/* ---- one brief ---- */
.crumbs { margin: 0 0 1rem; font-size: .9rem; }
.brief-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }   /* minmax: the sheets table must scroll in its box, never widen the page */
@media (min-width: 980px) { .brief-grid { grid-template-columns: minmax(0, 1fr) 360px; } }
.brief-hero { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); margin-bottom: 1.2rem; box-shadow: var(--shadow); }
.brief-main h1 { margin-top: .2rem; }
.brief-state { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; font-size: .9rem; }
.brief-text { max-width: 46rem; color: var(--text); }
.ext { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.facts li { display: inline-flex; align-items: center; gap: .4rem; }
.facts .icon { color: var(--pink); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sheets { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sheets th, .sheets td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sheets thead th { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--surface-2); }
.sheets tbody tr:last-child > * { border-bottom: 0; }
.sheets tbody th { font-weight: 600; }
.sheets .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheets .acts { text-align: right; white-space: nowrap; }
.sheets .acts > * + * { margin-left: .3rem; }
.sheets tr.is-awarded { opacity: .62; }
.mybid { font-weight: 600; font-size: .84rem; }
.mybid.st-won { color: var(--good); }
.mybid.st-declined, .mybid.st-lost, .mybid.st-withdrawn { color: var(--muted); }

.bid-panel { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
             padding: 22px; box-shadow: var(--shadow-lg); }
.bid-panel h2 { margin-bottom: .6rem; }
.gate { font-size: 1.05rem; margin: 0; }
.bid-form, .form { display: flex; flex-direction: column; }
.bid-form label, .form label { margin: .9rem 0 .35rem; font-size: .82rem; font-weight: 700; }
.bid-form label:first-of-type, .form h2 + label, .form p + label { margin-top: .4rem; }
input:not([type="radio"]):not([type="file"]), select, textarea {
    width: 100%; padding: .65rem .8rem; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface);
    color: var(--text); font: inherit; font-size: .95rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
input[type="file"] { font: inherit; font-size: .88rem; }
.money-in, .prefixed { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.money-in:focus-within, .prefixed:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.money-in span, .prefixed span { padding: 0 .2rem 0 .8rem; color: var(--muted); font-weight: 700; }
.money-in input, .prefixed input { border: 0 !important; box-shadow: none !important; padding-left: .3rem; }
.method { border: 0; padding: 0; margin: .9rem 0 0; }
.method legend { font-size: .82rem; font-weight: 700; margin-bottom: .35rem; padding: 0; }
.method label { display: flex; align-items: center; gap: .5rem; margin: .25rem 0; font-weight: 500; font-size: .92rem; }
.method .is-off { color: var(--muted); }

/* ---- pages with forms ---- */
.page-head { margin-bottom: 1.6rem; }
.narrow { max-width: 460px; margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.resend { text-align: center; margin-top: 1rem; }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 1.4rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.tile b { display: block; font: 400 1.9rem/1.1 var(--serif); }
.tile span { color: var(--muted); font-size: .84rem; }

/* ---- profile ---- */
.gate-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; padding: 16px 18px; margin-bottom: 1.4rem;
            border-radius: var(--radius); background: var(--warn-soft); color: var(--text); }
.gate-bar.is-ready { background: var(--good-soft); }
.gate-bar p { margin: 0; }
.gate-meter { display: flex; gap: 5px; }
.gate-meter i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); }
.gate-meter i.on { background: var(--grad); border-color: transparent; }
.gate-meter i.mark { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--pink); }
.profile-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .profile-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.profile-grid .h-sm { margin-top: 0; }
/* align-items: start - an open "Edit details" grows ITS card only; the rest of the row keeps its own height (owner, 2026-10-12). */
.pieces { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); align-items: start; }
.piece { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.piece img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--surface-2); }
.piece.st-draft img, .piece.st-hidden img { opacity: .55; }
.piece-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.piece-acts { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; }
.confirm summary { list-style: none; }
.confirm summary::-webkit-details-marker { display: none; }
.confirm[open] form { margin-top: .4rem; display: flex; align-items: center; gap: .4rem; }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: .86rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.4rem; }
.foot p { margin: 0; }
.foot a { color: var(--pink); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* LOCAL only: the sign-in code printed on screen (the API returns it with LOCAL_DEV + the log mail driver). */
.dev-code { margin: .8rem 0 0; padding: .7rem .9rem; border-radius: 12px; border: 2px dotted orange; font-size: .9rem; }
.dev-code span { display: inline-block; margin-right: .5rem; padding: .05rem .45rem; border-radius: 999px; background: #ff9800; color: #1b1b1b;
                 font-size: .62rem; font-weight: 800; letter-spacing: .08em; }
.dev-code b { font-size: 1.15rem; letter-spacing: .15em; }

/* The footer is the footer (owner, 2026-10-12): on a short page it sits at the bottom of the window, not mid-screen.
   body is a column; main takes the spare height. width:100% because a flex item with auto side margins would
   otherwise shrink to its content. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; width: 100%; }
body > .top, body > .foot { flex: none; }

/* ---- /profile uploader: drag and drop, a card per piece ---- */
/* The uploader is the FIRST card of the portfolio grid (owner, 2026-10-12: "card-size as if it's work"): a dashed tile
   whose drop area is square, the same height as a piece's image. */
.uploader { transition: box-shadow .15s ease, border-color .15s ease; }
.piece-drop { border: 2px dashed var(--line-strong); background: transparent; box-shadow: none; }
.piece-drop:hover, .uploader.is-over { border-color: var(--pink); }
.uploader.is-over { box-shadow: 0 0 0 4px var(--pink-soft); }
.piece-drop .drop { aspect-ratio: 1 / 1; justify-content: center; padding: 16px; border: 0; border-radius: 0; }
.piece-drop .drop .small { font-size: .76rem; line-height: 1.4; }
.piece-drop .upload-fields { padding: 0 14px 14px; margin-top: 0; }
.piece-drop .staged { display: flex; flex-direction: column; gap: .45rem; padding: 0 14px 14px; }
.piece-drop .staged[hidden] { display: none; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 26px 18px;
        border: 2px dashed var(--line-strong); border-radius: var(--radius); text-align: center; cursor: pointer;
        margin: 0 !important; font-size: .95rem !important; font-weight: 500 !important; }
.drop:hover, .uploader.is-over .drop { border-color: var(--pink); background: var(--pink-soft); }
.drop b { font-size: 1.05rem; }
.drop-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #fff; margin-bottom: .3rem; }
.drop-icon .icon { width: 24px; height: 24px; }
.drop input[type="file"] { margin-top: .6rem; }
.uploader.is-enhanced .drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.uploader.is-enhanced .upload-fields { display: none; }
.upload-fields { margin-top: 1rem; display: flex; flex-direction: column; }

/* Compact chips (owner, 2026-10-12: "the tags can be much smaller"). */
.picks { border: 0; padding: 0; margin: .7rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.picks legend { width: 100%; padding: 0; margin-bottom: .3rem; font-size: .78rem; font-weight: 700; }
.picks .req { margin-left: .3rem; color: var(--pink); font-weight: 600; font-size: .74rem; }
.chip-pick { position: relative; margin: 0 !important; cursor: pointer; }
.chip-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-pick span { display: inline-block; padding: .12rem .5rem; border-radius: 999px; border: 1px solid var(--line-strong);
                  font-size: .7rem; line-height: 1.5; font-weight: 600; color: var(--muted); background: var(--surface); transition: all .12s ease; }
.chip-pick:hover span { border-color: var(--pink); color: var(--text); }
.chip-pick input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.chip-tag input:checked + span { background: var(--pink-soft); color: var(--pink); border-color: var(--pink); }
.chip-pick input:focus-visible + span { outline: 2.5px solid var(--pink); outline-offset: 2px; }
.check { display: flex !important; align-items: center; gap: .5rem; font-weight: 500 !important; font-size: .88rem !important; margin-top: .9rem !important; }

/* A dropped file, waiting: a work-sized card in the grid (square thumb, then its fields). */
.staged-card { position: relative; border-style: dashed; }
.staged-card.is-err { border-color: var(--bad); }
.staged-card.is-done { border-color: var(--good); opacity: .75; }
.staged-thumb { position: relative; }
.staged-thumb img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--surface-2); }
.staged-size { position: absolute; left: 6px; bottom: 6px; padding: .1rem .45rem; border-radius: 999px; background: rgb(0 0 0 / .6); color: #fff; font-size: .7rem; }
.staged-body { min-width: 0; }
.staged-body > label:first-child { align-self: stretch; display: flex; flex-direction: column; gap: .35rem; font-size: .82rem; font-weight: 700; }
.staged-body .staged-progress, .staged-body .staged-msg { align-self: stretch; }
.staged-progress { height: 6px; margin-top: .8rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.staged-progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .15s linear; }
.staged-msg { margin: .5rem 0 0; font-size: .84rem; font-weight: 600; min-height: 1em; }
.staged-card.is-err .staged-msg { color: var(--bad); }
.staged-card.is-done .staged-msg { color: var(--good); }
.staged-remove { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; display: grid; place-items: center;
                 background: rgb(0 0 0 / .6); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.staged-remove:hover { background: var(--bad); }
.staged-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }

/* labels on a piece: how it was made (one colour for hand-made kinds, one for AI), mature */
.piece-labels { display: flex; flex-wrap: wrap; gap: .35rem; }
.made { display: inline-block; padding: .18rem .55rem; border-radius: 999px; font: 700 .66rem/1.3 var(--sans); letter-spacing: .04em;
        text-transform: uppercase; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.made-hand_drawn, .made-digital, .made-3d, .made-photo, .made-mixed { background: var(--good-soft); color: var(--good); border-color: transparent; }
.made-ai_generated, .made-ai_assisted { background: #ede5ff; color: #6a3fd6; border-color: transparent; }
[data-theme="dark"] .made-ai_generated, [data-theme="dark"] .made-ai_assisted { background: #2a1d4a; color: #b79bff; }
.made-mature { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.made-none { border-style: dashed; color: var(--warn); }
.piece-tags { margin: 0; font-size: .78rem; color: var(--muted); }
.piece-edit { width: 100%; margin-top: .4rem; font-size: .84rem; }
.piece-edit summary { cursor: pointer; color: var(--pink); font-weight: 600; }
.piece-edit .form > label:first-of-type { display: flex; flex-direction: column; gap: .3rem; margin-top: .6rem; }
.piece-edit .btn { align-self: flex-start; }

/* ==== showcase-only (everything above is shared with boards.artoveya.com's board.css, copied 2026-10-12) ==== */

/* discover */
.finder { display: flex; gap: .6rem; align-items: center; margin: 0 0 1rem; max-width: 560px; }
.finder-box { flex: 1; display: flex; align-items: center; gap: .5rem; padding: 0 .9rem; border: 1.5px solid var(--line-strong);
              border-radius: 999px; background: var(--surface); }
.finder-box:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.finder-box .icon { color: var(--muted); }
.finder-box input { border: 0 !important; box-shadow: none !important; padding-left: 0; background: transparent; }
.styles { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.6rem; }
.styles a { padding: .35rem .8rem; border-radius: 999px; border: 1.5px solid var(--line); font-size: .82rem; font-weight: 600;
            color: var(--muted); text-decoration: none; }
.styles a:hover { border-color: var(--pink); color: var(--text); }
.styles a[aria-current="page"] { background: var(--pink-soft); border-color: var(--pink); color: var(--pink); }
.artists { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.artist-card > a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line);
                   border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit;
                   transition: transform .2s ease, box-shadow .2s ease; }
.artist-card > a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.artist-cover { aspect-ratio: 4 / 3; background: var(--surface-2); }
.artist-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.artist-cover .pic-none { display: block; width: 100%; height: 100%; --hue: 300; }
.artist-meta { display: flex; align-items: center; gap: .7rem; padding: 12px 14px; }
.artist-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.artist-who strong { display: flex; align-items: center; gap: .3rem; }
.artist-who .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score { display: inline-flex; align-items: center; gap: .25rem; font-size: .82rem; font-weight: 700; color: var(--pink); white-space: nowrap; }
.verified { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #8b3dff; color: #fff; }
.verified .icon { width: 11px; height: 11px; stroke-width: 3; }

.avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
          background: linear-gradient(135deg, hsl(var(--hue) 85% 62%), hsl(calc(var(--hue) + 50) 80% 48%)); color: #fff;
          font: 700 .95rem/1 var(--sans); box-shadow: 0 0 0 2.5px var(--surface), 0 0 0 4px hsl(var(--hue) 70% 70% / .5); }
.avatar-lg { width: 88px; height: 88px; font: 400 2.4rem/1 var(--serif); }

/* an artist's page */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-bottom: 1rem; }
.profile-id { flex: 1; min-width: 220px; }
.profile-id h1 { display: flex; align-items: center; gap: .5rem; }
.profile-id .verified { width: 22px; height: 22px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.styles-inline { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.styles-inline a { padding: .2rem .65rem; border-radius: 999px; background: var(--pink-soft); color: var(--pink) !important; font-size: .78rem;
                   font-weight: 600; text-decoration: none !important; }
.bio { max-width: 46rem; margin: 0 0 1rem; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 0 0 1.8rem; color: var(--muted); font-size: .9rem; }
.facts li { display: inline-flex; align-items: center; gap: .4rem; }
.facts b { color: var(--text); }
.me-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }

.gallery { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.work { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
        display: flex; flex-direction: column; }
.work-pic { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; aspect-ratio: 1 / 1; overflow: hidden; }
.work-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .2s ease, transform .3s ease; }
.work-pic:hover img { transform: scale(1.03); }
.work.is-mature:not(.is-shown) .work-pic img { filter: blur(22px) saturate(.6); transform: scale(1.1); }
.work.is-mature:not(.is-shown) .work-pic { cursor: pointer; }
.mature-veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
               color: #fff; text-shadow: 0 1px 6px rgb(0 0 0 / .6); font-size: .85rem; }
.mature-veil b { font-size: 1rem; }
.work.is-shown .mature-veil { display: none; }
.work-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: .4rem; }
.work-body h3 { font: 400 1.25rem/1.2 var(--serif); }
.work-about { margin: 0; font-size: .86rem; color: var(--muted); }
.work-rating { display: flex; align-items: center; gap: .5rem; }
.stars { display: inline-flex; gap: 2px; }
.stars i { width: 14px; height: 14px; background: var(--line-strong);
           clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stars i.on { background: #f5b301; }
.stars i.half { background: linear-gradient(90deg, #f5b301 50%, var(--line-strong) 50%); }
.rate { display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; margin-top: .2rem; }
.rate .small { margin-right: .3rem; }
.rate-star { width: 24px; height: 24px; border: 0; padding: 0; cursor: pointer; background: var(--line-strong);
             clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.rate-star.on { background: #f5b301; }
.rate:hover .rate-star { background: #f5b301; }
.rate .rate-star:hover ~ .rate-star { background: var(--line-strong); }
.rate-star:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

.viewer { border: 0; padding: 0; background: transparent; max-width: min(1100px, 96vw); max-height: 94vh; }
.viewer::backdrop { background: rgb(8 6 14 / .86); }
.viewer img { display: block; max-width: 100%; max-height: 86vh; border-radius: 12px; margin: 0 auto; }
.viewer p { color: #fff; text-align: center; margin: .6rem 0 0; font-weight: 600; }
.viewer-close { position: fixed; top: 14px; right: 18px; border: 0; background: none; color: #fff; font-size: 2.2rem; cursor: pointer; }

/* leaderboard */
.board { max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px; }
.board li { display: flex; align-items: center; gap: .9rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.board li:last-child { border-bottom: 0; }
.board a { flex: 1; min-width: 0; text-decoration: none; color: var(--text) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board a:hover b { color: var(--pink); }
.board .rank { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border-radius: 50%; font-weight: 800; color: var(--muted); }
.board .top-1 .rank { background: #ffc21a; color: #3b2a00; }
.board .top-2 .rank { background: #d9dce6; color: #303446; }
.board .top-3 .rank { background: #e7a46b; color: #3b1d05; }
.points { font-weight: 800; font-variant-numeric: tabular-nums; }

/* open briefs from every board */
.brief-card .go { margin-top: .6rem; display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; font-size: .86rem; color: var(--pink); }
.my-bids { margin-top: 2.6rem; }

/* ---- what is public / what is private (privacy_panel, vis_tag) ---- */
.privacy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.privacy-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--surface); }
.privacy-col.is-public { border-top: 3px solid var(--pink); }
.privacy-col.is-private { border-top: 3px solid var(--line-strong); background: var(--surface-2); }
.privacy-col h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .95rem; }
.privacy-col h3 svg, .privacy.is-compact svg, .vis svg { width: 1.05em; height: 1.05em; flex: none; }
.privacy-col ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .9rem; }
.privacy-col li + li { margin-top: 4px; }
.privacy-fine { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .85rem; }
.privacy.is-compact { display: block; margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2);
                      font-size: .85rem; color: var(--muted); }
.privacy.is-compact p { display: flex; gap: 6px; align-items: flex-start; margin: 0; }
.privacy.is-compact p + p { margin-top: 4px; }
.privacy.is-compact svg { margin-top: .15em; }
.privacy.is-compact b { color: var(--text); }
.vis { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .72rem;
       font-weight: 600; letter-spacing: .02em; vertical-align: middle; }
.vis.is-public { background: var(--pink-soft); color: var(--pink); }
.vis.is-private { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
@media (max-width: 640px) { .privacy { grid-template-columns: minmax(0, 1fr); } }

/* ---- the profile menu (profile_menu() in lib/layout.php) ---- */
.pmenu { position: relative; }
.pmenu-btn { display: flex; align-items: center; gap: .5rem; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1.5px solid var(--line);
             background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; position: relative; }
.pmenu-btn:hover, .pmenu.is-open .pmenu-btn { border-color: var(--pink); }
.pmenu-btn .avatar { width: 30px; height: 30px; font-size: .85rem; }
.pmenu-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmenu-caret { width: 16px; height: 16px; color: var(--muted); transition: transform .15s ease; }
.pmenu.is-open .pmenu-caret { transform: rotate(180deg); }
.pm-dot { position: absolute; top: 2px; left: 26px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); border: 2px solid var(--surface); }
.pmenu-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 230px; padding: 6px; border-radius: var(--radius);
             background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.pmenu-pop[hidden] { display: none; }
.pmenu-head { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pmenu-head b { font-size: .95rem; }
.pmenu-head span { color: var(--muted); font-size: .8rem; }
.pmenu-pop [role="menuitem"] { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px;
             background: none; color: var(--text); font: inherit; font-size: .9rem; text-decoration: none; text-align: left; cursor: pointer; }
.pmenu-pop [role="menuitem"]:hover, .pmenu-pop [role="menuitem"]:focus-visible { background: var(--surface-2); outline: none; }
.pmenu-pop [role="menuitem"] svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.pmenu-pop [role="menuitem"] > span:not(.pm-badge) { flex: 1; }
.pmenu-out { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.pm-badge { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--pink-soft); color: var(--pink); font-size: .74rem;
            font-weight: 700; text-align: center; }
.pm-badge.is-won { background: var(--good-soft); color: var(--good); }
.theme-to-light { display: none; }
[data-theme="dark"] .theme-to-dark { display: none; }
[data-theme="dark"] .theme-to-light { display: inline; }
@media (max-width: 640px) { .pmenu-name { display: none; } .pmenu-btn { padding-right: 6px; } }

/* /me#profile: the address the handle field will give (showcase.js keeps it live). */
.handle-note { margin: .3rem 0 .6rem; font-size: .82rem; }
.handle-note b { color: var(--text, inherit); }

/* Autosave: the Save button stays; the status beside it says what happened. */
.save-row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.save-row .btn { margin-top: 0 !important; }
.autosave-status { font-size: .78rem; color: var(--muted); min-height: 1em; }
.autosave-status.is-ok { color: var(--good); }
.autosave-status.is-err { color: var(--warn); }
.check input[type="checkbox"] { width: auto; flex: none; margin: 0; padding: 0; box-shadow: none; }   /* the form's input { width: 100% } made the box take half a narrow card */

/* The artist's photo (API migration 006): fills the round avatar; the coloured initial stays as the fallback. */
.avatar { overflow: hidden; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar.has-photo { background: var(--surface-2); }
.avatar-xl { width: 96px; height: 96px; font: 400 2.6rem/1 var(--serif); }
.about-card { display: flex; flex-direction: column; }
.photo-form { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.photo-side { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; min-width: 0; }
.photo-side b { font-size: .9rem; }
.photo-form.is-enhanced .photo-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-form:not(.is-enhanced) .photo-pick { display: none; }
.photo-pick { cursor: pointer; margin: 0 !important; }
.photo-side:has(.photo-file:focus-visible) .photo-pick { outline: 2.5px solid var(--pink); outline-offset: 2px; }   /* keyboard: the hidden picker has focus, ring the button */
.photo-remove { font-size: .8rem; }

/* Profile tags as hashtags (showcase.js hashtags()): a field-looking box of #chips with a borderless entry at the end. */
.hashtags-src.is-enhanced { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hashtags { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; min-height: 44px; padding: .4rem .5rem; cursor: text;
            border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.hashtags:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.hashtag { display: inline-flex; align-items: center; gap: .15rem; padding: .12rem .2rem .12rem .55rem; border-radius: 999px;
           background: var(--pink-soft); color: var(--pink); font-size: .8rem; font-weight: 600; }
.hashtag-x { border: 0; background: none; color: inherit; font: inherit; font-size: 1rem; line-height: 1; padding: 0 .3rem; border-radius: 999px; cursor: pointer; opacity: .7; }
.hashtag-x:hover, .hashtag-x:focus-visible { opacity: 1; background: rgb(0 0 0 / .08); }
input.hashtags-entry { flex: 1 1 6rem; min-width: 6rem; width: auto; border: 0 !important; box-shadow: none !important; padding: .2rem .2rem; background: transparent; font-size: .9rem; }
.hashtags-note { margin: .3rem 0 0; font-size: .78rem; min-height: 0; }
.hashtags-note:empty { display: none; }

/* The sign-in code (owner, 2026-10-12): centred, "0000-0000" placeholder, the same look as www .join-code. */
input[data-code] { font-size: 1.5rem !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
input[data-code]::placeholder { letter-spacing: .3em; opacity: .45; }

/* Private details on /me (API migration 007): its own box under About you; highlighted when an award is waiting on it. */
.profile-grid .h-private { margin-top: 1.8rem; }
.private-email { margin: 0 0 .2rem; }
.legal-note { margin: .4rem 0 0; font-size: .78rem; line-height: 1.45; }
.card.is-asked { border-color: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
