/* Artoveya's Artist Nook - the company portal (portal.artoveya.com).
   The public site's look (www.artoveya.com site.css): the same tokens, fonts, the pink accent and the light / dark
   themes (html[data-theme], set before the CSS loads; the media query covers no-JS). The boards' board.css, with
   the portal's own pieces at the end: the card AS WWW DRAWS IT, tiles, the team list, the bids with their levers. */

/* TOKENS = www.artoveya.com site.css, value for value. Change them THERE first, then copy here. */
: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%; }
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; }
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; }
.warn { color: var(--warn); }
.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-xs { padding: .38rem .75rem; font-size: .78rem; }
.btn-block { width: 100%; margin-top: 1rem; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.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; white-space: nowrap; }
.chip-open { background: var(--good-soft); color: var(--good); }
.chip-won { background: var(--gold-soft); color: var(--gold); }
.chip-draft { background: var(--pink-soft); color: var(--pink); }
.chip-shut { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.chip-off { background: var(--bad-soft); color: var(--bad); }
.badge { display: inline-block; padding: .22rem .6rem; border-radius: 999px; border: 1px solid var(--line); font-size: .68rem; font-weight: 700;
         letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.badge-grad { background: var(--gold-soft); color: var(--gold); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.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); }
.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; }

/* ---- header (www's header block, class for class) ---- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    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; min-width: 0; }
.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; min-width: 0; }
.brand-name { font: 400 1.85rem/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.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; display: inline-flex; align-items: center; gap: .3rem; }
.site-nav ul a:hover { color: var(--pink); }
.site-nav ul a[aria-current="page"] { color: var(--pink); border-bottom-color: var(--pink); }
.site-nav ul a.ext-link { color: var(--muted); }
.site-nav ul a.ext-link .icon { width: .95em; height: .95em; }
.site-nav .auth { margin-left: auto; display: flex; gap: .55rem; align-items: center; }
.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; }
.pmenu-btn { height: 42px; }
@media (max-width: 1100px) {
    .nav-toggle { display: grid; }
    .theme-toggle, .pmenu { 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: flex; padding: .55rem 0; }
    .site-nav .auth { margin-left: 0; }
}

/* ---- the profile menu ---- */
.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); }
.pmenu-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 250px; 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"][aria-current="page"] { background: var(--pink-soft); }
.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; white-space: nowrap; }
.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 { 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); }

/* ---- 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; }
.companies { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.company-tile { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line);
                border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none !important; color: inherit !important; }
.company-tile:hover { border-color: var(--pink); }
.company-tile > svg:first-child { width: 26px; height: 26px; color: var(--pink); }
.company-tile > span { flex: 1; display: flex; flex-direction: column; }
.company-tile small { color: var(--muted); }
.empty-state { text-align: center; padding: 56px 16px; max-width: 40rem; margin: 0 auto; }
.empty-state h1, .empty-state h2 { margin-bottom: .3rem; }
.empty-state .btn { margin-top: 1.4rem; }

/* ---- pages ---- */
.page-head { margin-bottom: 1.6rem; }
.page-head .eyebrow { margin-bottom: .6rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 1.4rem; }
.section-head .h-sm { margin: 2rem 0 0; }
.section-head h1 + p { margin-top: .3rem; }
.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, .card + .form, .form + .card { margin-top: 18px; }
.card h2 { margin-bottom: .2rem; }
.resend { text-align: center; margin-top: 1rem; }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 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; }
.tabs { display: flex; flex-wrap: wrap; 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 !important; }
.tabs a[aria-current="page"] { background: var(--pink-soft); color: var(--pink); }
.tab-n { display: inline-block; min-width: 1.4em; padding: 0 .35em; margin-left: .3em; border-radius: 999px; background: var(--surface); font-size: .74rem; text-align: center; }
.gate-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.4rem; padding: 16px 18px; margin-bottom: 1.4rem;
            border-radius: var(--radius); background: var(--warn-soft); color: var(--text); }
.gate-bar p { margin: 0; }
.crumbs { margin: 0 0 1rem; font-size: .9rem; }
.kind { display: inline-block; margin-left: .4rem; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---- tables ---- */
.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 tbody th a { color: inherit; text-decoration: none; }
.sheets tbody th a:hover { color: var(--pink); }
.sheets .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- "needs you" ---- */
.todo { display: grid; gap: 10px; margin-bottom: 1rem; }
.todo a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
          text-decoration: none !important; color: inherit !important; }
.todo a:hover { border-color: var(--pink); }
.todo a > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.todo small { color: var(--muted); }

/* ---- forms ---- */
.form { display: flex; flex-direction: column; }
.form label { margin: .9rem 0 .35rem; font-size: .82rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.form h2 + label, .form p + label { margin-top: .4rem; }
: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:disabled, select:disabled, textarea:disabled { opacity: .7; background: var(--surface-2); }
textarea { resize: vertical; line-height: 1.5; }
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; }
.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: flex-start; gap: .55rem; margin: .3rem 0; font-weight: 500; font-size: .92rem; }
.method input[type="radio"] { margin-top: .35em; }
.field-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; align-items: start; }
.field-pair .field { display: flex; flex-direction: column; min-width: 0; }
.field-pair .field .small { margin-top: .3rem; }
@media (max-width: 600px) { .field-pair { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex !important; align-items: center; gap: .55rem; font-weight: 500 !important; font-size: .9rem !important; margin-top: 1rem !important; cursor: pointer; }
.check input[type="checkbox"] { width: auto; flex: none; margin: 0; padding: 0; box-shadow: none; }
.check.switch input[type="checkbox"] {
    appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 38px; height: 22px; margin: 1px 0 0;
    border-radius: 999px; background: var(--line-strong); border: 0; cursor: pointer; transition: background-color .15s ease;
}
.check.switch input[type="checkbox"]::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .15s ease;
}
.check.switch input[type="checkbox"]:checked { background: var(--pink); }
.check.switch input[type="checkbox"]:checked::after { transform: translateX(16px); }
.check.switch input[type="checkbox"]:focus-visible { outline: 2.5px solid var(--pink); outline-offset: 2px; }
.deposit-row { margin-top: .9rem; }
.pct-in { display: inline-flex; align-items: center; gap: .4rem; }
.pct-in input { width: 5.5rem; }
.save-row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.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); }
.counter { margin-left: auto; font-weight: 500; color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.counter.is-low { color: var(--warn); }
.vis { display: inline-flex; align-items: center; gap: .25rem; margin-left: .3rem; padding: .1rem .5rem; border-radius: 999px; font-size: .68rem; font-weight: 700;
       letter-spacing: .04em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.vis .icon { width: .95em; height: .95em; }
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; }
.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; }

/* ---- layouts: overview, the panel, a brief ---- */
.overview, .profile-grid, .brief-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .overview, .profile-grid, .brief-grid { grid-template-columns: minmax(0, 1fr) 380px; } }
.overview-side .h-sm, .profile-side .h-sm { margin-top: 0; }
.overview-side .btn-block, .profile-side .btn-block { margin-top: .8rem; }
.brief-side .card + .card { margin-top: 18px; }
.brief-state { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; font-size: .9rem; margin-bottom: .5rem; }
.ext { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; }
.brief-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.brief-actions form { display: inline; }

/* ---- the card, AS WWW DRAWS IT (site.css .panel.project, class for class) ---- */
.project { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
           padding: 0; overflow: hidden; display: flex; flex-direction: column; max-width: 420px; }
.project-art { height: 150px; overflow: hidden; background: var(--surface-2); }
.project-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.project-body .btn { align-self: flex-start; margin-top: auto; cursor: default; }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.project h3 { font: 400 1.5rem/1.2 var(--serif); overflow-wrap: anywhere; }
.project-facts { display: flex; gap: 2rem; margin: 1rem 0 1.3rem; }
.project-facts dt { color: var(--muted); font-size: .76rem; }
.project-facts dd { margin: 0; font-weight: 800; }
.project .is-empty { color: var(--muted); font-style: italic; }
.banner-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner-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%); }
.banner-none span { font: 400 3.4rem/1 var(--serif); color: rgb(255 255 255 / .9); }
.banner-box { aspect-ratio: 3 / 1; border-radius: 12px; overflow: hidden; margin: .9rem 0; background: var(--surface-2); }
.banner-form { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.file-btn { position: relative; cursor: pointer; }
.file-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.banner-form.is-enhanced .js-nojs { display: none; }

/* ---- privacy: said where it is typed ---- */
.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 { width: 1.05em; height: 1.05em; flex: none; }
.privacy-col ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .9rem; list-style: disc; }
.privacy-col li + li { margin-top: 4px; }
@media (max-width: 640px) { .privacy { grid-template-columns: minmax(0, 1fr); } }

/* ---- the team, the invited, the bids ---- */
.team { display: grid; gap: 10px; margin-top: .8rem; }
.team li { display: flex; align-items: center; gap: 12px; }
.team li > span:not(.avatar):not(.pm-badge) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.team li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team .avatar { width: 34px; height: 34px; font-size: .85rem; }
.team form { display: inline; }
.invite-form { margin-top: 1rem; }
.invite-form .btn { align-self: flex-start; margin-top: .6rem; }
.bids-unit { margin: 1.1rem 0 .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bids { display: grid; gap: 10px; }
.bid { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.bid.st-won { border-color: var(--gold); }
.bid.st-lost, .bid.st-withdrawn { opacity: .6; }
.bid-head { display: flex; align-items: center; gap: 10px; }
.bid-head .avatar { width: 34px; height: 34px; font-size: .85rem; }
.bid-who { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.bid-who small { color: var(--muted); }
.bid-amt { text-align: right; display: flex; flex-direction: column; }
.bid-amt b { font-size: 1.05rem; }
.bid-amt small { color: var(--muted); font-size: .74rem; }
.bid-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin-top: .5rem; font-size: .84rem; }
.bid-contact { display: inline-flex; align-items: center; gap: .3rem; }
.bid-note { margin: .5rem 0 0; font-size: .9rem; color: var(--text); }
.bid-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .7rem; }
.bid-acts form { display: inline-flex; align-items: center; gap: .4rem; }
.paid-form input { width: 12rem; padding: .35rem .6rem; font-size: .8rem; border-radius: 999px; }

/* ---- 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); }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; width: 100%; }
body > .foot { flex: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* ---- /list (the self-serve signup) and a pending company ---- */
.narrow-wide { max-width: 560px; }
.center { text-align: center; }
.suffixed > span { padding: 0 .8rem 0 .2rem; }
.suffixed input { padding-right: .3rem; }
.list-form .btn-block { margin-top: 1.2rem; }
.privacy.is-compact { display: block; margin: 1rem 0 0; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); font-size: .88rem; }
.privacy.is-compact p { display: flex; gap: 6px; align-items: flex-start; margin: 0; }
.privacy.is-compact svg { width: 1.05em; height: 1.05em; flex: none; margin-top: .15em; }
.gate-bar.is-pending { background: var(--pink-soft); display: block; }
.gate-bar.is-pending .dev-code { margin-top: .6rem; }
.pm-badge.is-pending { background: var(--warn-soft); color: var(--warn); }
