/* 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%; }
/* No scrollbar-gutter: stable here (owner, 2026-10-12) - it reserved an EMPTY scrollbar lane on short pages, a blank strip
   down the right edge (outside the local dotted frame). A real scrollbar appears only when the page scrolls. */
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); }

/* ---- 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: 100%; 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; }
/* 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 > :only-child { grid-column: 1 / -1; }   /* signed in = no "New here?" card: the company's words take the full width */
.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 .lede { max-width: none; }
.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); }
/* Terms (API migration 008): the Good fit badge and the company's terms line on a card. */
.rec { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font: 700 .72rem/1.3 var(--sans);
       background: var(--good-soft); color: var(--good); vertical-align: middle; }
.rec .icon { width: .95em; height: .95em; }
.rec-no { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); font-weight: 600; }
.brief-terms { color: var(--text); }

.pic { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }   /* a tall picture keeps its top (heads, not belts) */
.pic.is-cover { object-fit: contain; object-position: center; }  /* delivered work (brief_out.cover): a sheet is shown whole, never cropped */
.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; }

/* ---- the 404 (pages/none.php; owner, 2026-10-14: "we need an on-brand 404") ----
   "4 . 4": the numerals in the display serif, the brand's three dots standing in for the 0 - the only colour on the page,
   drifting a little (still under reduced motion). The down page shows the dots alone. */
.lost { max-width: 620px; margin: 0 auto; padding: clamp(40px, 9vh, 96px) 0 72px; text-align: center; }
.lost-art { display: flex; align-items: center; justify-content: center; gap: .08em; margin-bottom: .35em;
            font: 400 clamp(6.5rem, 26vw, 11.5rem)/.9 var(--serif); color: var(--text); letter-spacing: -.02em; }
.lost-num { display: block; }
.lost-dots { position: relative; display: block; width: .62em; height: .78em; flex: none; }
.lost-dots i { position: absolute; border-radius: 50%; animation: lost-drift 7s ease-in-out infinite; }
.lost-dots i:nth-child(1) { width: .38em; height: .38em; left: 0; top: .2em; background: var(--blue); }
.lost-dots i:nth-child(2) { width: .2em; height: .2em; left: .38em; top: .02em; background: var(--pink); animation-delay: -2.3s; }
.lost-dots i:nth-child(3) { width: .24em; height: .24em; left: .36em; top: .52em; background: var(--gold); animation-delay: -4.6s; }
.lost.is-down .lost-art { font-size: clamp(4rem, 16vw, 7rem); }
@keyframes lost-drift { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(.02em, -.03em); } 66% { transform: translate(-.02em, .02em); } }
@media (prefers-reduced-motion: reduce) { .lost-dots i { animation: none; } }
.lost .eyebrow { justify-content: center; margin-bottom: .5rem; }
.lost h1 { margin: 0 0 .6rem; font-size: clamp(2rem, 6vw, 2.8rem); }
.lost-text { margin: 0 auto; max-width: 34em; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.lost-text b { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.lost-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.8rem; }
.lost-foot { margin-top: 2.2rem; }

/* ---- 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-hero.has-cover > a { display: block; height: 100%; cursor: zoom-in; }
.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; }
/* A finished brief's aside: Details instead of the bid form. */
.bd-list { margin: 0 0 1rem; font-size: .9rem; }
.bd-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.bd-list > div:last-child { border-bottom: 0; }
.bd-list dt { color: var(--muted); }
.bd-list dd { margin: 0; text-align: right; font-weight: 600; }
.bd-list dd .chip + .chip { margin-left: .25rem; }
.bd-mine { display: flex; flex-direction: column; gap: .2rem; padding: 12px 14px; margin-bottom: 1rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.bd-mine b { display: inline-flex; align-items: center; gap: .4rem; }
.bd-mine b .icon { color: var(--pink); }
.bd-mine a { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; margin-top: .2rem; }
.gate { font-size: 1.05rem; margin: 0; }
/* Recommendations (API migration 027, lib/recommend.php): "Know an artist for this?" under the bid form, and an
   artist's "Recommend this company" card on the board home. Private, and the line under each form says so. */
/* The aside's accordion (owner, 2026-10-13): Place a bid and Know an artist fold, one open at a time. A folded section
   is its heading line alone; the caret turns. The panel stays sticky but never taller than the window. */
.bid-panel:has(.acc) { max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; }
.acc > summary { list-style: none; }
.acc > summary::-webkit-details-marker { display: none; }
.acc-head { display: flex; align-items: center; gap: .6rem; cursor: pointer; user-select: none; }
.acc-head > h2, .acc-head > h3 { flex: 1; margin: 0 !important; }
.acc-caret { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.acc[open] > .acc-head .acc-caret { transform: rotate(180deg); }
.acc-head:hover .acc-caret { color: var(--pink); }
.acc-bid[open] > .acc-head { margin-bottom: .6rem; }
.acc-count { flex: none; font-size: .72rem; font-weight: 700; color: var(--muted); }
.rec-box { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.rec-box[open] > .acc-head { margin-bottom: .5rem; }
.rec-box h3 { display: flex; align-items: center; gap: .45rem; font-size: 1rem; }
@media (prefers-reduced-motion: reduce) { .acc-caret { transition: none; } }
.rec-box h3 .icon, .rec-company h2 .icon { color: var(--pink); }
.rec-box > p { margin: 0 0 .4rem; }
.rec-form { display: flex; flex-direction: column; }
.rec-form label { margin: .7rem 0 .3rem; font-size: .82rem; font-weight: 700; }
.rec-form .btn { margin-top: .8rem; }
.rec-company h2 { display: flex; align-items: center; gap: .45rem; }
.rec-company > p:first-of-type { margin: .2rem 0 0; }
.rec-private { display: flex; gap: .4rem; align-items: flex-start; margin: .7rem 0 0; }
.rec-private .icon { flex: none; width: 14px; height: 14px; margin-top: .15rem; }
.rec-mine { margin: .3rem 0 .2rem; display: grid; gap: .3rem; font-size: .88rem; }
.rec-mine li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; }
.rec-mine form { margin-left: auto; }
.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; }
/* The base text-field look, at ZERO specificity (:where) so any class rule can override it. It used to be
   input:not(..):not(..) - weight 0,2,1, heavier than a two-class rule - so the visually-hidden inputs (.hashtags-src,
   .chip-pick) lost their width:1px, took width:100% of the WINDOW (absolute, no positioned parent) from wherever they
   sat, and gave the page a horizontal scrollbar. Checkboxes and hidden inputs are not text fields: excluded. */
:where(input:not([type="radio"], [type="checkbox"], [type="file"], [type="hidden"]), 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; min-width: 0; flex: 1; background: transparent; }   /* min-width 0: else the input will not shrink and spills over the rounded right edge */
.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; }
.pieces { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.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 ---- */
/* Footer: www site.css's .site-footer block, value for value (ONE LAYOUT rule - change www first, then copy). */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg); }
.footer-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.footer-brand .brand-name { font-size: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.3rem; font-size: .9rem; font-weight: 600; color: var(--muted); list-style: none; margin: 0; padding: 0; }
.footer-links a:hover { color: var(--pink); }
.footer-end { text-align: right; }
.footer-end p { margin: 0; }
@media (max-width: 760px) { .footer-end { text-align: left; } }

@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 > .site-footer { flex: none; }

/* ---- /profile uploader: drag and drop, a card per piece ---- */
.uploader { margin-bottom: 1.6rem; transition: box-shadow .15s ease, border-color .15s ease; }
.uploader.is-over, .uploader.is-pasted { border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }   /* is-pasted: a moment after a paste (board.js pasteFlash) */
.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, .uploader.is-pasted .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; }

.picks { border: 0; padding: 0; margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.picks legend { width: 100%; padding: 0; margin-bottom: .45rem; font-size: .82rem; 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: .38rem .75rem; border-radius: 999px; border: 1.5px solid var(--line-strong);
                  font-size: .8rem; 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; }

.staged-list { display: grid; gap: 14px; margin-top: 1.2rem; }
.staged-card { position: relative; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 14px;
               border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.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 { width: 140px; height: 140px; object-fit: cover; border-radius: 12px; background: var(--surface); display: block; }
.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 { display: flex; flex-direction: column; min-width: 0; }
.staged-body > label:first-child { display: flex; flex-direction: column; gap: .35rem; font-size: .82rem; font-weight: 700; padding-right: 1.6rem; }
.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: 10px; border: 0; background: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.staged-remove:hover { color: var(--bad); }
.staged-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .6rem; margin-top: 1rem; }
.staged-bar .muted { margin-right: auto; }
@media (max-width: 560px) {
    .staged-card { grid-template-columns: minmax(0, 1fr); }
    .staged-thumb img { width: 100%; height: 180px; }
}

/* 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 { margin-top: .9rem; align-self: flex-start; }

/* ---- 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; line-height: 1.35; padding-block: 1px; }
.pmenu-caret { width: 16px; height: 16px; color: var(--muted); transition: transform .15s ease; }
.pmenu.is-open .pmenu-caret { transform: rotate(180deg); }
/* The artist's own status on the account button (spaces_avatar, 2026-10-14): green = "Show my Status" on, grey = hidden.
   Still, never pulses; bottom-right of the picture (the pink pm-dot was removed the same day). */
.pmenu-avwrap { position: relative; display: inline-flex; flex: none; }
.pm-online { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%;
             background: var(--muted); border: 2px solid var(--surface); }
.pm-online.is-on { background: #2f9e6a; }
.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); }
/* The menu's groups (spaces.php): every Artoveya space first, a rule, the account's own items, a rule, theme + sign out.
   The space you are in reads in --text, bold - no underline. */
.pm-rule { margin: 4px 0; border: 0; border-top: 1px solid var(--line); }
.pmenu-pop .pm-space[aria-current="page"] { font-weight: 700; }
.pmenu-pop .pm-space[aria-current="page"] svg { color: var(--text); }
.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; } }

/* avatar (the showcase's), for the profile menu */
.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); }

/* The sign-in code (owner, 2026-10-12): centred, "ABCD-1234" 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; }

/* A won bid's company contact under its status (owner, 2026-10-12: the two sides talk directly once awarded). */
.bid-contact { margin-top: .3rem; color: var(--muted); }
.bid-contact a { color: var(--pink); }

/* The company's banner across the top of its board (API migration 013, set on portal.artoveya.com), about 3:1. */
.board-banner { width: 100%; height: 300px; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.6rem; background: var(--surface-2); box-shadow: var(--shadow); }
.board-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* A fixed band, not a ratio: full reading width, the art cropped to fit. Shorter as the screen narrows. */
@media (max-width: 900px) { .board-banner { height: 220px; } }
@media (max-width: 560px) { .board-banner { height: 160px; } }
.lede-tag { color: var(--text); font-weight: 600; margin-top: .6rem; }
.lede-tag + .lede { margin-top: .4rem; }

/* The company's profile picture (API migration 014): its people's account menu, and beside the name on the board. */
.avatar.has-photo { background: var(--surface-2); overflow: hidden; }
.avatar.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.board-avatar { display: inline-block; width: .9em; height: .9em; margin-right: .3em; vertical-align: -.08em; border-radius: 50%; object-fit: cover;
                box-shadow: 0 0 0 3px var(--surface), 0 6px 16px -6px rgb(20 33 61 / .45); }

/* ---- a brief as artists read it (lib/brief-view.php - the SAME block in portal.css) ---- */
.bv { margin-top: 1.2rem; }
.bv-summary { font-size: 1.12rem; color: var(--text); max-width: 46rem; margin-top: .4rem; }
.bv-shape { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .8rem; color: var(--muted); font-size: .9rem; }
.bv-shape .icon { color: var(--pink); margin-right: .2rem; }
.bv-shape b { color: var(--text); }
.bv-shape i { font-style: normal; opacity: .6; }
.bv-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }
.bv-tags span { padding: .15rem .6rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.longtext { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 46rem; line-height: 1.65; margin-top: .6rem; }
.bv-body { color: var(--text); }
.bv-block { margin-top: 2rem; }
/* The deliverables of a finished brief (brief_view $fold): "What was delivered", folded by default. */
.bv-fold { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 18px; }
.bv-fold[open] { padding-bottom: 18px; }
.bv-fold-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 14px 0; cursor: pointer; list-style: none; }
.bv-fold-head::-webkit-details-marker { display: none; }
.bv-fold-head .h-sm { margin: 0; display: flex; align-items: baseline; gap: .45rem; }
.bv-fold-head:hover .h-sm { color: var(--pink); }
.bv-fold-head:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 6px; }
.bv-fold-caret { flex: none; color: var(--muted); transition: transform .15s ease; }
.bv-fold[open] .bv-fold-caret { transform: rotate(180deg); }
.bv-fold[open] > .bv-fold-head { margin-bottom: .4rem; border-bottom: 1px solid var(--line); }
.bv-block > .h-sm { display: flex; align-items: center; gap: .45rem; margin: 0 0 .5rem; }
.bv-block > .h-sm .icon { color: var(--pink); }
.bv-block > .longtext { padding: 14px 18px; border-left: 3px solid var(--line-strong); background: var(--surface); border-radius: 0 12px 12px 0; }
/* Read more (bv_text_more, moreToggles in the JS): revealed a piece at a time - the JS sets max-height to the next
   paragraph break; a short fade says there is more. The bar under it: Read more / Show all on the left, how much is
   read on the right. */
.longtext.js-more { transition: max-height .35s ease; }
.longtext.is-clamped { position: relative; overflow: hidden; }
.longtext.is-clamped::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.6em; pointer-events: none;
                              background: linear-gradient(transparent, var(--surface)); }
.more-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; margin-top: .5rem; max-width: 46rem; }
.more-bar[hidden], .more-bar [hidden] { display: none; }
.dl .more-bar { max-width: none; }
.more-next, .more-all { display: inline-flex; align-items: center; gap: .25rem; }
.more-all { color: var(--muted); }
.more-caret { width: 1em; height: 1em; transition: transform .2s ease; }
.more-next.is-end .more-caret { transform: rotate(180deg); }
.more-status { margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--muted);
               font-variant-numeric: tabular-nums; }
.more-meter { width: 80px; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.more-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--pink); transition: width .35s ease; }
@media (prefers-reduced-motion: reduce) { .longtext.js-more, .more-meter i, .more-caret { transition: none; } }
.bv-guidelines { margin-top: 1.4rem; padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); max-width: 46rem; }
.bv-guidelines b { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); }
.bv-guidelines .longtext { margin-top: .3rem; font-size: .92rem; }
/* references: what the company GIVES - tinted, paperclipped, never numbered */
/* References side by side (lib/brief-view.php bv_ref_groups): one wrapping row, every frame the shortest image's shape. */
.refs { --ref-ar: 4 / 3; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: .7rem; }
.refs-text { grid-template-columns: minmax(0, 1fr); }
.ref { border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--surface-2); overflow: hidden; display: flex; flex-direction: column; }
.ref-text { grid-column: 1 / -1; }
/* Every frame the shortest image's shape; a taller picture is cropped to it from the top centre (the link opens it whole).
   overflow: hidden is what holds the frame - without it an aspect-ratio box grows to fit a taller picture. */
.ref-thumb { position: relative; display: block; aspect-ratio: var(--ref-ar); overflow: hidden; min-height: 0;
             background: repeating-conic-gradient(var(--surface) 0 25%, var(--surface-2) 0 50%) 0 0 / 16px 16px; }
.ref-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.ref-doc { display: grid; place-content: center; justify-items: center; gap: .3rem; color: var(--muted); font-size: .8rem; text-decoration: none !important; }
.ref-doc .icon { width: 34px; height: 34px; color: var(--pink); }
.ref-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.ref-group { font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
.ref-title { font-size: .92rem; overflow-wrap: anywhere; }
.ref-note { margin: 0; font-size: .84rem; color: var(--muted); }
.ref-meta { font-size: .74rem; color: var(--muted); }
/* prompt / instruction blocks (<details>): stored text, shown verbatim; six lines tall, then they scroll.
   A deliverable's starts collapsed; code samples and text references start open. */
.prompt { margin-top: .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); overflow: hidden; max-width: 46rem; }
.prompt-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 6px 12px; border-bottom: 1px solid var(--line);
               font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prompt-head > span { display: inline-flex; align-items: center; gap: .35rem; }
.prompt-head .linkish { font-size: .78rem; display: inline-flex; align-items: center; gap: .25rem; text-transform: none; letter-spacing: 0; }
.prompt-body { margin: 0; padding: 12px 14px; max-height: calc(6 * 1.55em + 24px); overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
               font: .84rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); }
.dl .prompt { max-width: none; clear: both; }   /* a deliverable's prompt: the card's full width, under its example picture */
summary.prompt-head { cursor: pointer; list-style: none; }
summary.prompt-head::-webkit-details-marker { display: none; }
summary.prompt-head:hover { color: var(--text); }
summary.prompt-head:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; }
details.prompt:not([open]) > .prompt-head { border-bottom-color: transparent; }
.prompt-size { font-weight: 500; letter-spacing: 0; text-transform: none; opacity: .8; }
.prompt-acts { display: inline-flex; align-items: center; gap: .7rem; }
.prompt-caret { transition: transform .15s ease; }
details.prompt[open] .prompt-caret { transform: rotate(180deg); }
/* deliverables: what the artist HANDS BACK - numbered cards */
.dl-index { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 1rem; counter-reset: none; }
.dl-index a { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem .3rem .35rem; border-radius: 999px; border: 1px solid var(--line);
              background: var(--surface); font-size: .82rem; font-weight: 600; color: var(--text) !important; text-decoration: none !important; }
.dl-index a:hover { border-color: var(--pink); }
.dl-n { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; border-radius: 999px; background: var(--pink-soft); color: var(--pink);
        font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.dl-alpha { width: 10px; height: 10px; border-radius: 3px; background: repeating-conic-gradient(var(--line-strong) 0 25%, transparent 0 50%) 0 0 / 5px 5px; }
.dl-list { display: grid; gap: 14px; }
.dl { position: relative; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
      scroll-margin-top: 92px; display: flow-root; }
.dl-head { display: flex; gap: 14px; align-items: flex-start; }
.dl-head h3 { font: 400 1.3rem/1.2 var(--serif); }
.dl-num { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: var(--pink); color: #fff;
          font-weight: 800; font-variant-numeric: tabular-nums; }
.specs { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.spec { padding: .12rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.spec-out { background: var(--pink-soft); color: var(--pink); border-color: transparent; }
.spec-alpha { background: repeating-conic-gradient(var(--surface) 0 25%, var(--surface-2) 0 50%) 0 0 / 8px 8px; color: var(--text); }
.spec-opt { border-style: dashed; }
.dl .longtext { max-width: none; }
.dl-notes { display: flex; gap: .4rem; align-items: flex-start; font-size: .86rem; color: var(--muted); margin-top: .7rem; }
.dl-notes .icon { color: var(--good); margin-top: .15em; }
.dl-refs { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--line); }
.dl-refs-head { display: flex; align-items: center; gap: .35rem; margin: 0; font-size: .78rem; font-weight: 700; color: var(--muted); }
.dl-example { float: right; width: 128px; margin: 0 0 10px 16px; text-align: center; }
.dl-example a { display: block; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 42%, #e4e2de, #a3a19c 78%); }
.dl-example img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dl-example figcaption { margin-top: .35rem; font-size: .7rem; line-height: 1.35; color: var(--muted); }
.dl-example figcaption b { display: block; color: var(--text); font-size: .74rem; }
@media (max-width: 560px) { .dl-example { width: 96px; } }

/* a sheet example (API migration 017) is landscape */
.dl-example.is-sheet { width: 240px; }
.dl-example.is-sheet a { aspect-ratio: 3 / 2; background: #6a6c70; }
@media (max-width: 560px) { .dl-example.is-sheet { float: none; width: 100%; margin: 0 0 12px; } }

/* labels & swatches (API migration 018) */
.spec-extras { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
.spec-extras.spec-opt { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line); }

/* ---- the reputation badges (API migration 019) - the same pair on www, the boards and the portal. --blue is the
   estate's "verified" (trust / info). "Verified business" = Artoveya's review; the domain = DNS proof. ---- */
.vbadges { display: flex; flex-wrap: wrap; gap: .35rem; margin: .2rem 0 .4rem; }
.vbadge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font: 700 .72rem/1.4 var(--sans);
          border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
.vbadge svg { width: 13px; height: 13px; }
.vbadge-biz { background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); border-color: color-mix(in srgb, var(--blue) 35%, transparent); }
.hero .vbadges { margin: .7rem 0 0; }

/* the example catalog (API migration 020): a format guide is landscape like a sheet; a pose is upright like a cutout */
.dl-example.is-format { width: 240px; }
.dl-example.is-format a { aspect-ratio: 3 / 2; background: #6a6c70; }
@media (max-width: 560px) { .dl-example.is-format { float: none; width: 100%; margin: 0 0 12px; } }

/* ---- Deliver your work (API migration 022): the awarded artist's panel on a brief ---- */
.chip-wait { background: var(--gold-soft); color: var(--warn); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.deliver { margin: 1.6rem 0 2rem; padding: 18px 20px 6px; border: 1px solid var(--line); border-radius: var(--radius);
           background: var(--surface); box-shadow: var(--shadow); }
.deliver .h-sm { margin-top: 0; display: flex; align-items: center; gap: .45rem; }
.deliver .h-sm .icon { width: 1.1em; height: 1.1em; color: var(--pink); }
.dlv-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.dlv { padding: 16px 0; border-top: 1px solid var(--line); }
.dlv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .5rem 1rem; }
.dlv-head .specs { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.dlv-state { display: flex; flex-wrap: wrap; gap: .35rem; }
.dlv-body { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; margin-top: .9rem; }
.dlv-thumb { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
             background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.dlv-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dlv-meta p { margin: 0 0 .4rem; }
.dlv-note, .dlv-review { margin: 0 0 .6rem; font-size: .9rem; }
.dlv-note .longtext, .dlv-review .longtext { white-space: pre-wrap; }
.dlv-review { padding: .6rem .8rem; border-radius: 10px; background: var(--surface-2); }
.dlv-review.is-changes { background: var(--warn-soft); }
.dlv-review b { display: block; font-size: .82rem; }
.dlv-form { display: grid; gap: .7rem; margin-top: .9rem; }
.dlv-form .drop { padding: 18px 14px; }
.dlv-preview { max-width: 160px; max-height: 120px; border-radius: 8px; margin-top: .4rem; object-fit: contain; }
.dlv-note-in { display: flex; flex-direction: column; gap: .3rem; font-size: .86rem; font-weight: 600; }
.dlv-form .btn { justify-self: start; }
@media (max-width: 560px) { .dlv-body { grid-template-columns: 1fr; } .dlv-thumb { max-width: 220px; } }

/* The type-ahead under a handle / company field (JS: data-lookup): up to 8 matches, arrows + Enter, click. */
.has-lookup { position: relative; }
.lookup { position: absolute; left: -1.5px; right: -1.5px; top: calc(100% + 4px); z-index: 30; max-height: 264px; overflow-y: auto; margin: 0; padding: 4px;
          list-style: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-lg, 0 12px 32px rgb(0 0 0 / .25)); }
.lookup li { display: flex; flex-direction: column; gap: .05rem; padding: .45rem .6rem; border-radius: 8px; cursor: pointer; line-height: 1.25; }
.lookup li b { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lookup li span { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lookup li:hover, .lookup li[aria-selected="true"] { background: var(--pink-soft); }
.lookup li[aria-selected="true"] b { color: var(--pink); }

/* ---- SPLATS (API migration 035; lib/layout.php splats() / splat_line() / splat_form()) ----------------------------
   The showcase's ONE paint splat (img/rating/splat.png): ::before = the grey splat, ::after = the colour one, clipped
   away when off and to the left half for .half. The 1-5 buttons light every splat up to the one under the pointer. */
.splats { display: inline-flex; gap: 1px; vertical-align: -3px; }
.splat { position: relative; display: inline-block; width: 18px; height: 18px; flex: none; }
.splat::before, .splat::after { content: ""; position: absolute; inset: 0; background: url(../img/rating/splat.png) center / contain no-repeat; }
.splat::before { filter: grayscale(1); opacity: .32; }
[data-theme="dark"] .splat::before { opacity: .4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .splat::before { opacity: .4; } }
.splat::after { clip-path: inset(0 100% 0 0); transition: clip-path .15s ease; }
.splat.on::after { clip-path: inset(0); }
.splat.half::after { clip-path: inset(0 50% 0 0); }
.splat-line { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.splat-line b { font-size: .95rem; }
.rate { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; margin: .3rem 0 0; }
.rate .small { margin-right: .3rem; }
.rate .linkish { margin-left: .4rem; }
.rate-splat { width: 28px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; transition: transform .12s ease; }
.rate:has(.rate-splat:hover) .rate-splat::after { clip-path: inset(0); }
.rate .rate-splat:hover ~ .rate-splat::after { clip-path: inset(0 100% 0 0); }
.rate-splat:hover { transform: scale(1.18) rotate(-8deg); }
.rate-splat:active { transform: scale(.92); }
.rate-splat:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.rate-splat:disabled { cursor: progress; }
@media (prefers-reduced-motion: reduce) { .splat::after, .rate-splat { transition: none; } .rate-splat:hover { transform: none; } }

/* The finished work on a brief page: one card per accepted piece. Every picture frame is the same size and shows the
   whole sheet (contain, never cropped); clicking it opens the viewer. */
.work { margin: 1.6rem 0 2rem; }
.work .h-sm { margin-top: 0; display: flex; align-items: center; gap: .45rem; }
.work .h-sm .icon { width: 1.1em; height: 1.1em; color: var(--pink); }
.work > p { margin: -.3rem 0 1rem; }
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.work-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.work-card:target { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft), var(--shadow); }
.work-pic { display: block; aspect-ratio: 4 / 3; background: var(--surface-2); cursor: zoom-in; border-bottom: 1px solid var(--line); }
.work-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.work-pic:hover img { transform: scale(1.02); transition: transform .2s ease; }
.work-body { display: flex; flex-direction: column; gap: .35rem; padding: 12px 14px 14px; }
.work-title { display: flex; align-items: baseline; gap: .45rem; font-size: .95rem; line-height: 1.3; }
.work-title .dl-n { font-size: .72rem; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .work-pic:hover img { transform: none; } }

/* "Deliver your work" folded once everything is accepted (the finished work above shows it). */
.deliver-fold { padding-bottom: 6px; }
.deliver-fold > .bv-fold-head { padding: 0; }
.deliver-fold > .bv-fold-head .h-sm { margin: 0; }
.deliver-fold[open] > .bv-fold-head { margin-bottom: .2rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.deliver-fold[open] .bv-fold-caret { transform: rotate(180deg); }

/* The board home's right column: the company's Splats, then Recommend / New here. */
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.splat-card h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; margin: 0 0 .5rem; }
.splat-card h2 .splat { width: 24px; height: 24px; }
.splat-card p { margin: .3rem 0 0; }
.splat-sum { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.splat-sum .splats .splat { width: 22px; height: 22px; }
.splat-sum b { font-size: 1.25rem; }
.splat-card .rate { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.splat-weight { font-size: .8rem; }

/* The full-size viewer (board.js views()): the picture at its own size, or as large as the window lets it be. */
.viewer { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.viewer::backdrop { background: rgb(8 6 14 / .88); }
.viewer img { display: block; max-width: 96vw; max-height: calc(96vh - 3rem); width: auto; height: auto; margin: 0 auto; border-radius: 10px;
              background: repeating-conic-gradient(#d9d4cc 0 25%, #f3efe8 0 50%) 0 0 / 22px 22px; }   /* a checkerboard behind transparent cutouts */
.viewer p { color: #fff; text-align: center; margin: .6rem 0 0; font-weight: 600; }
.viewer-close { position: fixed; top: 12px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .45); color: #fff;
                font-size: 1.9rem; line-height: 1; cursor: pointer; }
.viewer-close:hover { background: rgb(0 0 0 / .7); }
.work, .work-card, #splats, #deliver { scroll-margin-top: 96px; }   /* below the sticky header when a #link lands on them */
.hero:has(> .hero-side) { align-items: start; }   /* the right column can now be the taller one: keep the company's words at the top */

/* ARTWORK RIGHTS (2026-10-13): the short "Artwork protected" notice under artwork (art_rights(), www's /rights). */
.art-rights { margin: 1.4rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.art-rights svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: .35rem; }
.art-rights b { color: var(--text); font-weight: 600; margin-right: .3rem; }
.art-rights a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.art-rights a:hover { color: var(--text); }
.viewer .art-rights { max-width: 46rem; margin: .35rem auto 0; text-align: center; color: rgb(255 255 255 / .7); font-weight: 400; }
.viewer .art-rights b { color: #fff; }
.viewer:has(.art-rights) img { max-height: calc(96vh - 6.5rem); }   /* room for the caption and the notice */
.footer-end a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* New messages wait (spaces_unread): the account button breathes - a soft ring, slow - except on the messages page itself
   and for anyone who asked their system for less motion (the dot still says it). Owner, 2026-10-13. */
.pmenu-btn.has-dm::after { content: ''; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid var(--pink);
                           pointer-events: none; animation: pm-pulse 2.4s ease-out infinite; }
@keyframes pm-pulse { 0% { opacity: .75; transform: scale(.96); } 70%, 100% { opacity: 0; transform: scale(1.12); } }
body:has(.dm) .pmenu-btn.has-dm::after { display: none; }
@media (prefers-reduced-motion: reduce) { .pmenu-btn.has-dm::after { animation: none; opacity: 0; } }

/* Messages waiting: the menu's Messages item stays its usual colour; its count is a pink chip (spaces.php has-new; owner,
   2026-10-13: "keep it the default color, but badge/chip the number of unread messages instead"). */
.pmenu-pop .pm-space.has-new .pm-badge { background: var(--pink); color: #fff; }
