/* ==========================================================================
   M.E.E.T. platform: account area (sign-in, sign-up, member account,
   artist studio, team console). Shares the public site's identity:
   Instrument Serif for voice, Instrument Sans for interface, ivory paper,
   ink and oxblood. Soft radii, pill controls, one easing curve.
   ========================================================================== */

:root {
  --bg: #f6f0e5;
  --surface: #fbf8f2;
  --ink: #18213a;
  --muted: #545a69;
  --line: #ddd2bf;
  --hairline: #e6dccb;
  --accent: #7a1420;
  --accent-deep: #5d0f18;
  --on-accent: #fbf8f2;
  --sand: #ede3d1;
  --blue: #dfe7ee;
  --ok: #2f6b4f;
  --ok-soft: #ddebdf;
  --warn: #8a5a12;
  --warn-soft: #f3e3c3;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r: 18px;
  --r-sm: 12px;
  --lift: 0 1px 2px rgba(24, 33, 58, .05), 0 12px 32px -12px rgba(24, 33, 58, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.04; letter-spacing: -.01em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; color: var(--accent);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- controls ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  font-size: 13.5px; font-weight: 600; letter-spacing: .02em; text-decoration: none;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.navy { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.navy:hover { background: #0d1d37; }
.btn.line { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.btn.line:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--accent); padding: 0 8px; }
.btn.danger { background: transparent; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 12.5px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.busy { cursor: progress; opacity: .8; }

.link {
  background: none; border: 0; padding: 0; color: var(--ink); font-size: inherit;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent);
}
.link:hover { color: var(--accent); }

label.f, .f { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 4px; }
.hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.inp {
  width: 100%; min-height: 48px; padding: 12px 15px;
  border: 1px solid #c9bea8; border-radius: var(--r-sm); background: var(--surface);
  font-size: 16px; font-weight: 400; color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
textarea.inp { min-height: 120px; resize: vertical; line-height: 1.5; }
select.inp {
  padding-right: 42px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.inp:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent); }
.inp.invalid { border-color: var(--accent); }
.err { color: var(--accent); font-weight: 500; font-size: 12.5px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }

.tag {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 11px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--sand); color: var(--ink); white-space: nowrap;
}
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.red { background: var(--accent); color: var(--on-accent); }
.tag.blue { background: var(--blue); color: var(--ink); }

.panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 24px; }
.notice { border-radius: var(--r-sm); padding: 12px 16px; font-size: 14px; background: var(--blue); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.err { background: #f6dede; color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90;
  background: var(--ink); color: var(--bg); padding: 13px 22px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--lift); max-width: calc(100% - 32px);
  animation: toastIn .5s var(--ease);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--hairline);
}
.hdr-in { max-width: 1440px; margin: 0 auto; height: 68px; padding: 0 max(16px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo svg { width: 45px; height: 30px; }
.logo span { font-family: var(--serif); font-size: 24px; letter-spacing: .06em; font-weight: 400; }
.logo small { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.hdr-right { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }

/* ---------- centred account pages ---------- */
.auth { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 16px 80px; }
.auth-card { width: min(100%, 460px); display: flex; flex-direction: column; gap: 18px; }
.auth-card h1 { font-size: clamp(38px, 6vw, 52px); }
.auth-card .panel { display: flex; flex-direction: column; gap: 16px; }
.qr { width: 200px; height: 200px; background: #fff; border-radius: var(--r-sm); padding: 8px; align-self: center; }
.secret { font-family: ui-monospace, Menlo, monospace; font-size: 13px; letter-spacing: .08em; word-break: break-all;
  background: var(--sand); padding: 8px 12px; border-radius: 10px; }
.code-inp { font-size: 24px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- console / studio shell ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 36px; max-width: 1440px; margin: 0 auto;
  padding: 24px max(16px, env(safe-area-inset-left, 0px)) 72px; align-items: start; }
.main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.me { display: flex; gap: 10px; align-items: center; font-size: 13.5px; line-height: 1.3; }
.av { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--bg); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; letter-spacing: .04em; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-l { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--muted); padding: 10px 10px 4px; }
.ni { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: none; border: 0; border-radius: 10px; padding: 8px 10px; font-size: 14px; color: var(--ink);
  text-decoration: none; transition: background .3s var(--ease); }
.ni:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.ni[aria-current="page"] { background: var(--ink); color: var(--bg); font-weight: 600; }
.badge { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--sand); color: var(--ink);
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.ni[aria-current="page"] .badge { background: var(--bg); }
.side-note { padding: 12px 10px 0; border-top: 1px solid var(--hairline); line-height: 1.45; }

.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.head > div:first-child { display: flex; flex-direction: column; gap: 8px; max-width: 820px; }
.head h1 { font-size: clamp(34px, 3.8vw, 52px); }
.head p { font-size: 14.5px; color: var(--muted); max-width: 70ch; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 16px 18px;
  text-align: left; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px;
  transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
a.kpi:hover { box-shadow: var(--lift); transform: translateY(-2px); }
/* Counts use the sans: the serif "1" reads like a letter l at this size. */
.kpi b { font-family: var(--sans); font-weight: 500; font-size: 38px; line-height: 1; letter-spacing: -.02em; }
.kpi span { font-size: 13px; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); border-radius: 999px;
  padding: 7px 14px; font-size: 13px; transition: background .3s, border-color .3s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.search { max-width: 340px; min-height: 40px; padding: 8px 15px; border-radius: 999px; font-size: 14px; }

.list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.lrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%;
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 8px;
  color: var(--ink); font-size: 14px; text-decoration: none; transition: background .3s; }
a.lrow:hover { background: color-mix(in srgb, var(--sand) 55%, transparent); }
.lrow.has-th { grid-template-columns: auto minmax(0, 1fr) auto; }
.lm { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lm b { font-weight: 600; font-size: 15px; }
.lm .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; text-align: right; }
.th { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--sand); }
.th.round { border-radius: 50%; }
.empty { border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 22px; color: var(--muted); font-size: 14px; }

/* record view */
.rgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.raside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px;
  max-height: calc(100vh - 108px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-width: thin; }
.rblock { border: 1px solid var(--hairline); border-radius: var(--r); padding: 20px; background: var(--surface);
  display: flex; flex-direction: column; gap: 12px; }
.rblock h3 { font-size: 26px; }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 16px; font-size: 14px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 500; overflow-wrap: anywhere; }
.prose { white-space: pre-wrap; font-size: 15px; line-height: 1.65; }
.timeline { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.timeline div { padding-left: 16px; border-left: 2px solid var(--line); }
.note { background: var(--bg); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; }
.note .muted { font-size: 12px; display: block; margin-bottom: 4px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); background: var(--sand); }
.avatar-lg { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: var(--sand); }
.cover-lg { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--r-sm); background: var(--sand); }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(12, 24, 40, .45); display: grid; place-items: center; padding: 16px; }
.modal { width: min(100%, 640px); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg);
  border-radius: var(--r); box-shadow: var(--lift); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.modal h2 { font-size: 32px; }
.mail-preview { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 20px; font-size: 14.5px; line-height: 1.6; }
.mail-preview p + p { margin-top: 12px; }

/* studio uploads */
.up { position: relative; border: 1.5px dashed color-mix(in srgb, var(--muted) 60%, transparent); border-radius: var(--r);
  background: var(--surface); overflow: hidden; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; text-align: center; cursor: pointer; }
.up img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.up.round { width: 150px; height: 150px; border-radius: 50%; }
.up.wide { width: 100%; aspect-ratio: 16 / 7; }
.up.work { aspect-ratio: 4 / 5; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.thumb { position: relative; }
.thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sm); }
.thumb button { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(251, 248, 241, .92); color: var(--ink); font-size: 16px; line-height: 1; }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.wcard { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.wcard .ph { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--sand); display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.wcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.wcard:hover .ph img { transform: scale(1.04); }
.wcard .t { font-family: var(--serif); font-size: 23px; line-height: 1.05; }

@media (max-width: 980px) {
  .rgrid { grid-template-columns: minmax(0, 1fr); }
  .raside { position: static; max-height: none; overflow: visible; padding-right: 0; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 14px; }
  .side { position: static; }
  .nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; scrollbar-width: none; }
  .nav-l, .side-note { display: none; }
  .ni { white-space: nowrap; width: auto; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv b { margin-bottom: 8px; }
  .logo small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- refinements after the phone check ---------- */
/* Lining, even-width figures for counts and dates. */
html, h1, h2, h3, .kpi b, .badge, .num { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
/* Tick boxes stay on the same line as their text. */
label.row { flex-wrap: nowrap; align-items: flex-start; gap: 10px; }
label.row > input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.btn { white-space: nowrap; }

@media (max-width: 560px) {
  #who { display: none; }
  .hdr-in { height: 60px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 14px; gap: 4px; }
  .kpi b { font-size: 30px; }
  .kpi span { font-size: 12.5px; line-height: 1.35; }
  .head h1 { font-size: 36px; }
  .rblock, .panel { padding: 18px; }
  .modal { padding: 20px; }
}

/* ---------- sign-up and member account ---------- */
.auth-card.wide { width: min(100%, 680px); }
.type-grid { display: grid; gap: 12px; }
.type-card {
  display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left;
  padding: 20px 22px; border: 1px solid var(--hairline); border-radius: var(--r); background: var(--surface);
  color: var(--ink); transition: border-color .4s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.type-card:hover, .type-card:focus-visible { border-color: var(--ink); box-shadow: var(--lift); transform: translateY(-2px); }
.type-name { font-family: var(--serif); font-size: 28px; line-height: 1.05; }
.type-desc { font-size: 14.5px; color: var(--muted); }
.fs { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fs + .fs { padding-top: 18px; border-top: 1px solid var(--hairline); }
.fs legend { font-family: var(--serif); font-size: 24px; padding: 0; margin-bottom: 4px; }
.acct-type { display: inline-flex; align-items: center; gap: 8px; }
.coming { border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 18px 20px; color: var(--muted); font-size: 14.5px; }

/* ---------- artist terms agreement (studio onboarding) ---------- */
.onboarding .shell { grid-template-columns: minmax(0, 1fr); }
.onboarding .side { display: none; }
.agree { width: min(100%, 760px); margin: 8px auto 0; display: flex; flex-direction: column; gap: 36px; }
.agree-head { display: flex; flex-direction: column; gap: 14px; }
.agree-head h1 { font-size: clamp(40px, 5.4vw, 64px); }
.agree-lede { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 60ch; }
.agree-points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.agree-points li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.agree-n { font-size: 12px; font-weight: 600; letter-spacing: .16em; line-height: 1; color: var(--accent); padding-top: 9px; }
.agree-points h2 { font-size: 25px; line-height: 1.15; margin-bottom: 8px; }
.agree-points p { font-size: 15.5px; line-height: 1.65; color: var(--ink); max-width: 62ch; }
.agree-docs { font-size: 14.5px; color: var(--muted); }
.agree-box { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 24px 26px; display: flex; flex-direction: column; gap: 18px; }
.agree-check { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; font-weight: 500; line-height: 1.5; cursor: pointer; }
.agree-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.agree-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
@media (max-width: 560px) {
  .agree { gap: 28px; }
  .agree-points li { grid-template-columns: minmax(0, 1fr); padding: 20px 0; }
  .agree-n { padding: 0 0 6px; }
  .agree-points h2 { font-size: 23px; }
  .agree-box { padding: 20px; }
  .agree-act .btn { width: 100%; }
}

/* ---------- Phase 3: inquiries, sales ---------- */
.kpi b.word { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -.01em; }
.note.reply { border-left: 3px solid var(--accent); }
.tag.overdue { background: #f6dede; color: var(--accent); }
.pipe { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.pipe a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: var(--r-sm);
  background: var(--surface); text-decoration: none; color: var(--ink); font-size: 12.5px; }
.pipe a b { font-size: 22px; font-weight: 500; }
.pipe a[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar select.inp { width: auto; min-height: 40px; padding: 6px 38px 6px 14px; border-radius: 999px; font-size: 14px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; }
.match { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.match:last-child { border-bottom: 0; }
.why { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.why span { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--sand); }
.money { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.money .full { grid-column: 1 / -1; }
.rtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.rtable th, .rtable td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rtable th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rtable td.n, .rtable th.n { text-align: right; font-variant-numeric: tabular-nums; }
.rwrap { overflow-x: auto; }
@media (max-width: 820px) { .pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); } .money { grid-template-columns: minmax(0, 1fr); } }

/* Way back to the public website from the studio and member account. */
@media (max-width: 420px) { .site-link { display: none; } }

/* Content areas receive focus after each page change (for screen readers);
   they are not controls, so no focus frame is drawn around them. */
[tabindex="-1"]:focus { outline: none; }

/* Member account header: links back into the public website. */
.hdr-links { display: flex; gap: 18px; }
@media (max-width: 560px) { .hdr-links { gap: 12px; } .hdr-links a:last-child { display: none; } }

/* Bot protection widget: invisible unless Cloudflare needs a click. */
.captcha:empty { display: none; }
.captcha { display: block; width: 100%; min-height: 65px; }

/* Requests: the client's status steps and proposals */
.stepper { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; counter-reset: st; }
.stepper li { counter-increment: st; position: relative; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 13px; }
.stepper li::before { content: counter(st); display: block; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); }
.stepper li b { display: block; font-weight: 600; color: inherit; }
.stepper li span { display: block; margin-top: 4px; color: var(--ink); }
.stepper li.done { color: var(--ink); }
.stepper li.done::before { content: "✓"; color: var(--ok); }
.stepper li.now { border-color: var(--accent); background: #fff; color: var(--ink); }
.stepper li.now::before { color: var(--accent); }
.ph { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin: 16px 0 6px; color: var(--ink); }
.proposal { border-color: var(--line); }

/* Public website editor: sections, images, ordered lists */
.sections { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.sec { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.sec.off { opacity: .62; }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; }
.sec-head .lm { flex: 1; min-width: 180px; }
.sec-body { padding: 4px 14px 16px; border-top: 1px solid var(--hairline); }
.grip { cursor: grab; color: var(--muted); letter-spacing: -2px; user-select: none; }
.dragging { opacity: .45; }
.sortable { list-style: none; padding: 0; }
.sortable li[draggable="true"] { cursor: grab; }
.img-field { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; padding: 12px; border: 1px dashed var(--line); border-radius: var(--r-sm); }
.img-prev { width: 140px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--sand); display: grid; place-items: center; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.prop-artist { padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); display: grid; gap: 8px; }
.modal .prop-artist textarea { min-height: 60px; }
a.chip { text-decoration: none; display: inline-flex; align-items: center; }
@media (max-width: 900px) { .hdr-links a:nth-child(2), .hdr-links a:nth-child(3) { display: none; } }
