/* ARTWRK mockups: shared styles. Tokens follow the V2 Developer Handoff. */
:root {
  --logo-red: #ED1C24;
  --red: #ED1C24;
  --red-dim: rgba(237, 28, 36, 0.14);
  --red-hover: #FF403C;
  --canvas: #050505;
  --s1: #111111;
  --s2: #181818;
  --border: #292929;
  --text: #F5F5F5;
  --text-2: #A8A8A8;
  --success: #20D67B;
  --success-dim: rgba(32, 214, 123, 0.12);
  --rating: #F6C445;
  --warn: #F6A723;
  --warn-dim: rgba(246, 167, 35, 0.12);
  --accent: #B92CFF;
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --top-h: 64px;
  color-scheme: dark;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }

/* ---------- Icons ---------- */
.i { width: 20px; height: 20px; display: inline-block; flex: none; vertical-align: middle; }
.i svg { width: 100%; height: 100%; display: block; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }

/* ---------- Logo ---------- */
/* April's ARTWRK mark (public/site/logo.png), sized by the box around it. */
.logo { display: inline-block; flex: none; width: 44px; height: 44px; background: var(--logo-red); }
.logo img { display: block; width: 100%; height: 100%; }
.logo-lg { width: 64px; height: 64px; }
.logo-xl { width: 96px; height: 96px; }

/* ---------- App shell ---------- */
.page { padding: 0 16px calc(var(--nav-h) + 32px); max-width: 1240px; margin: 0 auto; }
.page-flush { padding-left: 0; padding-right: 0; }

.topbar { display: none; }
.mobile-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; position: sticky; top: 0; z-index: 20;
  background: rgba(5, 5, 5, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.mobile-header h1 { font-size: 18px; font-weight: 700; flex: 1; text-align: center; }
.mobile-header .icon-btn:first-child { margin-right: auto; }
.mobile-header h1 { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: var(--nav-h); padding: 8px 8px 14px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(17, 17, 17, 0.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; color: var(--text-2); position: relative;
}
.bottom-nav a.active { color: var(--red); }
.bottom-nav .dot { position: absolute; top: 2px; left: calc(50% + 6px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

@media (min-width: 900px) {
  .mobile-header, .bottom-nav { display: none; }
  .topbar {
    display: flex; align-items: center; gap: 24px;
    height: var(--top-h); padding: 0 32px; position: sticky; top: 0; z-index: 30;
    background: rgba(5, 5, 5, 0.94); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }
  .topbar nav { display: flex; gap: 4px; }
  .topbar nav a { padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-weight: 500; font-size: 14px; }
  .topbar nav a:hover { color: var(--text); background: var(--s2); }
  .topbar nav a.active { color: var(--text); background: var(--s2); box-shadow: inset 0 -2px 0 var(--red); }
  .topbar .search { flex: 1; max-width: 420px; margin-left: auto; }
  .topbar .search .field { height: 40px; }
  .page { padding: 32px 32px 64px; }
  .desktop-only { display: initial; }
  .mobile-only { display: none !important; }
}
@media (max-width: 899px) {
  .desktop-only { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--s2); color: var(--text);
  font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: #3a3a3a; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn-outline { background: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn-success { background: var(--success); border-color: var(--success); color: #04150c; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--s1); border: 1px solid var(--border); position: relative; cursor: pointer;
}
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.icon-btn.plain { background: transparent; border-color: transparent; }

/* ---------- Form fields ---------- */
.field {
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 14px; border-radius: 14px;
  background: var(--s1); border: 1px solid var(--border);
}
.field input, .field select {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; height: 100%;
}
.field input::placeholder, textarea::placeholder { color: #6f6f6f; }
.field .i { color: var(--text-2); }
.field.search .i:first-child { color: var(--red); }
.input, textarea.input, select.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  background: var(--s2); border: 1px solid var(--border); outline: 0;
}
.input:focus, textarea.input:focus { border-color: var(--red); }
textarea.input { min-height: 112px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
label.lbl { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-row { margin-bottom: 16px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.hint { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.money-input { position: relative; }
.money-input::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-2); }
.money-input .input { padding-left: 28px; }

.switch { width: 44px; height: 26px; border-radius: 999px; background: #333; position: relative; flex: none; display: inline-block; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch.on { background: var(--red); }
.switch.on::after { left: 21px; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.check .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #555; flex: none; margin-top: 1px; display: inline-flex; align-items: center; justify-content: center; }
.check .box.on { background: var(--red); border-color: var(--red); }

/* ---------- Surfaces ---------- */
.card { background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius); }
.card-pad { padding: 16px; }
@media (min-width: 900px) { .card-pad { padding: 20px; } }
.card-2 { background: var(--s2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ---------- Typography helpers ---------- */
.eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.tagline { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text); }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 700; }
.red { color: var(--red); }
.green { color: var(--success); }
.price { font-weight: 800; font-size: 18px; }
.price small { font-size: 11px; font-weight: 700; color: var(--text-2); letter-spacing: 0.06em; margin-right: 4px; }

.section { margin-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }
.section-head h2.plain { text-transform: none; }
.section-head .sub { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.see-all { color: var(--red); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.page-title { font-size: 26px; font-weight: 800; }
.page-sub { color: var(--text-2); margin-top: 6px; }
@media (min-width: 900px) { .page-title { font-size: 32px; } }

/* ---------- Chips, badges, pills ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--s1);
  font-size: 13.5px; font-weight: 500; white-space: nowrap; color: var(--text);
}
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.wrap { flex-wrap: wrap; overflow: visible; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-open { color: var(--success); background: var(--success-dim); border: 1px solid rgba(32, 214, 123, 0.35); }
.badge-open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.badge-red { color: var(--red); background: var(--red-dim); border: 1px solid rgba(237, 28, 36, 0.35); }
.badge-warn { color: var(--warn); background: var(--warn-dim); border: 1px solid rgba(246, 167, 35, 0.35); }
.badge-muted { color: var(--text-2); background: var(--s2); border: 1px solid var(--border); }
.badge-green { color: var(--success); background: var(--success-dim); border: 1px solid rgba(32, 214, 123, 0.35); }
.verified { color: var(--red); width: 17px; height: 17px; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; }
.rating .i { color: var(--rating); width: 16px; height: 16px; }
.rating .count { color: var(--text-2); font-weight: 500; }

/* ---------- Avatars (placeholders for real human photos) ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, #3a3a3a, #1b1b1b); border: 2px solid #2d2d2d;
}
.avatar.a1 { background: linear-gradient(135deg, #5b3a2e, #2a1a14); }
.avatar.a2 { background: linear-gradient(135deg, #2e3f5b, #141c2a); }
.avatar.a3 { background: linear-gradient(135deg, #4b2e5b, #22142a); }
.avatar.a4 { background: linear-gradient(135deg, #2e5b49, #142a21); }
.avatar.a5 { background: linear-gradient(135deg, #5b542e, #2a2614); }
.avatar.a6 { background: linear-gradient(135deg, #5b2e36, #2a1418); }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-lg { width: 64px; height: 64px; font-size: 20px; }
.avatar-xl { width: 104px; height: 104px; font-size: 32px; border: 3px solid var(--red); }

/* ---------- Grids & rails ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; scroll-snap-type: x mandatory; }
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { display: none; }
.rail.art { grid-auto-columns: 42%; }
@media (min-width: 600px) { .rail { grid-auto-columns: 40%; } .rail.art { grid-auto-columns: 26%; } }
@media (min-width: 900px) {
  .rail { margin: 0; padding: 0; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .rail.art { grid-template-columns: repeat(6, 1fr); }
}
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 700px) { .g3-md { grid-template-columns: repeat(3, 1fr); } .g2-md { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .g4-lg { grid-template-columns: repeat(4, 1fr); } .g3-lg { grid-template-columns: repeat(3, 1fr); } .g2-lg { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .g5-xl { grid-template-columns: repeat(5, 1fr); } }

.split { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .split.wide-side { grid-template-columns: minmax(0, 1fr) 420px; }
  .split.side-left { grid-template-columns: 280px minmax(0, 1fr); }
  .sticky { position: sticky; top: calc(var(--top-h) + 24px); }
}

/* ---------- Category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cat {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  aspect-ratio: 1.1 / 1; border-radius: 14px; background: var(--s1); border: 1px solid var(--border);
  font-size: 11.5px; font-weight: 500; text-align: center; padding: 6px; overflow-wrap: anywhere; line-height: 1.2;
}
.cat .i { width: 26px; height: 26px; }
/* Uploaded category icons. One-color ones are a mask, so they take the text color like the built-in icons. */
.cat .cat-icon { width: 26px; height: 26px; object-fit: contain; }
.cat span.cat-icon { background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.cat.active { background: rgba(237, 28, 36, 0.16); border-color: var(--red); }
.cat.active .i { color: var(--red); }
@media (min-width: 900px) { .cats { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; } .cat { aspect-ratio: auto; height: 96px; font-size: 13.5px; } }

/* ---------- Creator card ---------- */
.creator-card { overflow: hidden; display: flex; flex-direction: column; }
.creator-card .art { position: relative; aspect-ratio: 1 / 0.95; overflow: hidden; }
.creator-card .art img { width: 100%; height: 100%; object-fit: cover; }
.fav {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px);
}
.fav .i { width: 18px; height: 18px; }
.creator-card .body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who .name { font-weight: 700; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .role { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who > div { min-width: 0; }

/* ---------- Art tile ---------- */
.art-tile { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--s2); }
.art-tile img { width: 100%; height: 100%; object-fit: cover; }
.art-tile.tall { aspect-ratio: 3 / 4; }
.art-tile .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); font-size: 12.5px; display: flex; gap: 12px; }
.art-tile .meta span { display: inline-flex; align-items: center; gap: 4px; }
.art-tile .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 8px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)); font-size: 13px; font-weight: 600; text-align: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; margin: 0 -16px; padding: 20px 16px 24px; min-height: 220px; }
.hero .bg { position: absolute; inset: 0; z-index: 0; }
.hero .bg img { position: absolute; right: 0; top: 0; height: 100%; width: 72%; object-fit: cover; opacity: 0.9; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--canvas) 30%, rgba(5, 5, 5, 0.55) 62%, rgba(5, 5, 5, 0.2)), linear-gradient(0deg, var(--canvas), transparent 45%); }
.hero > *:not(.bg) { position: relative; z-index: 1; }
@media (min-width: 900px) { .hero { margin: 0; border-radius: 20px; padding: 40px; min-height: 300px; border: 1px solid var(--border); } .hero .bg img { width: 55%; } }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 12px 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 14.5px; }
.tabs a.active { color: var(--red); border-bottom-color: var(--red); }
.seg { display: inline-flex; padding: 4px; background: var(--s1); border: 1px solid var(--border); border-radius: 12px; gap: 4px; }
.seg a { padding: 7px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.seg a.active { background: var(--red); color: #fff; }

/* ---------- Lists & tables ---------- */
.list > * { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.list > *:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14.5px; }
.kv .k { color: var(--text-2); }
.kv.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; font-weight: 800; font-size: 16px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--s1); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.t th { text-align: left; color: var(--text-2); font-weight: 600; font-size: 12.5px; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--s1); }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: var(--success); }
.neg { color: var(--red); }

/* ---------- Stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 16px; }
.stat .label { font-size: 13px; color: var(--text-2); }
.stat .value { font-size: 24px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .delta { font-size: 12.5px; margin-top: 6px; color: var(--success); font-weight: 600; }
.stat .delta.down { color: var(--red); }

/* ---------- Progress & steps ---------- */
.progress { height: 6px; border-radius: 999px; background: #2a2a2a; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--red); border-radius: inherit; }
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--border); }
.step:last-child::before { display: none; }
.step .num { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--canvas); }
.step.done .num { background: var(--success); border-color: var(--success); color: #04150c; }
.step.current .num { border-color: var(--red); color: var(--red); }

/* ---------- Banners / alerts ---------- */
.alert { display: flex; gap: 12px; padding: 14px; border-radius: 12px; font-size: 14px; align-items: flex-start; }
.alert .i { margin-top: 1px; }
.alert-warn { background: var(--warn-dim); border: 1px solid rgba(246, 167, 35, 0.35); }
.alert-warn .i { color: var(--warn); }
.alert-red { background: var(--red-dim); border: 1px solid rgba(237, 28, 36, 0.35); }
.alert-red .i { color: var(--red); }
.alert-info { background: var(--s2); border: 1px solid var(--border); }
.alert-ok { background: var(--success-dim); border: 1px solid rgba(32, 214, 123, 0.35); }
.alert-ok .i { color: var(--success); }

/* ---------- Fee preview ---------- */
.fee-box { background: var(--s2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.fee-box .kv { padding: 5px 0; }
.fee-box .earn { font-size: 22px; font-weight: 800; color: var(--success); font-variant-numeric: tabular-nums; }

/* ---------- Messages ---------- */
.thread { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; }
.msg.them { background: var(--s2); border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--red); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg .time { display: block; font-size: 11px; opacity: 0.7; margin-top: 4px; }
.msg .masked { background: rgba(0, 0, 0, 0.35); border-radius: 4px; padding: 0 6px; letter-spacing: 0.08em; }
.sys-msg { align-self: center; font-size: 12.5px; color: var(--text-2); background: var(--s1); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; text-align: center; }

/* ---------- Admin shell ---------- */
.admin { display: block; }
.admin-side { display: none; }
.admin-main { padding: 16px 16px 48px; min-width: 0; }
.admin-mobile-nav { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; position: sticky; top: 68px; z-index: 19; background: var(--canvas); }
.admin-mobile-nav::-webkit-scrollbar { display: none; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.admin-head h1 { font-size: 24px; font-weight: 800; }
@media (min-width: 900px) {
  .admin { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
  .admin-side { display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; border-right: 1px solid var(--border); background: #0a0a0a; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .admin-side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; font-weight: 700; }
  .admin-side a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-size: 14px; font-weight: 500; }
  .admin-side a:hover { background: var(--s1); color: var(--text); }
  .admin-side a.active { background: var(--red); color: #fff; }
  .admin-side .group { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #6c6c6c; padding: 16px 12px 6px; }
  .admin-mobile-nav, .admin .mobile-header { display: none; }
  .admin-main { padding: 28px 32px 64px; }
  .admin-head h1 { font-size: 28px; }
}

/* ---------- Misc ---------- */
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.grow { flex: 1; min-width: 0; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; }
.thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.thumb-sm { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.note-bar { font-size: 12px; color: var(--text-2); text-align: center; padding: 10px 16px; border-top: 1px solid var(--border); margin-top: 40px; }
.strike { display: inline-flex; gap: 4px; }
.strike span { width: 14px; height: 6px; border-radius: 3px; background: #333; }
.strike span.on { background: var(--red); }
.license { display: flex; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--s1); cursor: pointer; }
.license.selected { border-color: var(--red); background: rgba(237, 28, 36, 0.07); }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #555; flex: none; margin-top: 2px; }
.license.selected .radio { border: 6px solid var(--red); }
.package { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.package.popular { border-color: var(--red); position: relative; }
.package.popular::before { content: "Most popular"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.package ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.swatches { display: flex; gap: 8px; }
.swatches span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); }
.swatches span.on { outline: 2px solid var(--red); outline-offset: 2px; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.sizes span { min-width: 48px; height: 40px; border-radius: 10px; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; background: var(--s1); }
.sizes span.on { border-color: var(--red); color: var(--red); }
.sizes span.off { color: #555; text-decoration: line-through; }
.mock-shirt { aspect-ratio: 1 / 1; border-radius: 16px; background: radial-gradient(circle at 50% 30%, #2a2a2a, #121212); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; border: 1px solid var(--border); }
.mock-shirt .shirt { width: 70%; aspect-ratio: 1 / 1.05; background: #0d0d0d; clip-path: polygon(30% 0, 40% 6%, 60% 6%, 70% 0, 100% 16%, 90% 36%, 80% 32%, 80% 100%, 20% 100%, 20% 32%, 10% 36%, 0 16%); position: relative; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.mock-shirt .shirt img { position: absolute; left: 32%; top: 22%; width: 36%; aspect-ratio: 1 / 1.2; object-fit: cover; border-radius: 4px; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 900px) { .kanban { grid-auto-columns: 1fr; } }
.toc a { display: block; }

/* ---------- Page-specific helpers ---------- */
.styles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 900px) { .styles-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.profile-banner { position: relative; height: 180px; margin: 0 -16px; overflow: hidden; }
.profile-banner img { width: 100%; height: 100%; object-fit: cover; }
.profile-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, var(--canvas)); }
@media (min-width: 900px) { .profile-banner { height: 280px; margin: 0; border-radius: 20px; } }
.profile-head { display: flex; gap: 16px; align-items: flex-end; margin-top: -52px; position: relative; z-index: 1; }
@media (min-width: 900px) { .profile-head { margin-top: -64px; padding: 0 24px; } }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stat-row > div { text-align: center; padding: 10px 4px; }
.stat-row b { display: block; font-size: 17px; }
.stat-row span { font-size: 11.5px; color: var(--text-2); }
.packages { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .packages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }
.split > * { min-width: 0; }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }

.logo-sm { width: 36px; height: 36px; flex: none; }
.mobile-header .logo-sm + .icon-btn { margin-right: 0 !important; }
.mobile-header .logo-sm { margin-right: 0; }
.mobile-logo-row { display: flex; padding-top: 12px; }

/* Modals: <div class="modal" id="x" hidden><div class="modal-card">. Bottom sheet on phones. */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius); width: 100%; max-width: 520px; max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6); }
.modal-lg .modal-card { max-width: 760px; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 0; }
.modal-head h2 { font-size: 18px; flex: 1; }
.modal-head .icon-btn { margin: -6px -8px 0 0; }
.modal-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { padding: 0 18px 18px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
body.modal-open { overflow: hidden; }
@media (max-width: 599px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal-card, .modal-lg .modal-card { max-width: none; border-radius: 18px 18px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom); }
  .modal-foot .btn { flex: 1; }
}
.field-error { color: var(--red); font-size: 12.5px; margin-top: 6px; }
.input.invalid { border-color: var(--red); }

/* Overflow menus: <div class="menu-wrap"><button data-menu> + <div class="menu" hidden> */
.menu-wrap { position: relative; display: inline-flex; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--s2); border: 1px solid var(--border); border-radius: 12px; padding: 6px; z-index: 60; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55); }
.menu a, .menu button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border-radius: 8px; font: inherit; font-size: 14px; color: var(--text); background: none; border: 0; text-align: left; cursor: pointer; white-space: nowrap; }
.menu a:hover, .menu button:hover { background: var(--s1); }
.menu .i { width: 18px; height: 18px; color: var(--text-2); }
.menu .danger, .menu .danger .i { color: var(--red); }
.menu .disabled, .menu .disabled .i { color: #6f6f6f; cursor: not-allowed; }
.menu .disabled:hover { background: none; }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.menu .note { font-size: 12px; color: var(--text-2); padding: 0 10px 6px 38px; white-space: normal; max-width: 260px; }
.kebab { width: 34px; height: 34px; }
[data-href] { cursor: pointer; }

/* Uploads */
.dropzone { border: 2px dashed #3a3a3a; border-radius: var(--radius); padding: 36px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: border-color .15s, background .15s; }
.dropzone .big-i { width: 52px; height: 52px; border-radius: 50%; background: var(--red-dim); color: var(--red); display: flex; align-items: center; justify-content: center; }
.dropzone.drag { border-color: var(--red); background: var(--red-dim); }
.refs { display: flex; flex-wrap: wrap; gap: 10px; border-radius: 12px; }
.ref { width: 72px; display: flex; flex-direction: column; gap: 4px; }
.ref .cap { font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ref-tile { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; border: 1px solid transparent; }
.ref-tile .i { width: 24px; height: 24px; }
.ref-tile.docx { background: #2B579A; }
.ref-tile.pdf { background: #D93025; }
.ref-tile.other { background: var(--s2); border-color: var(--border); color: var(--text); }
.ref-add { background: var(--s2); border: 2px dashed #3a3a3a; color: var(--text-2); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.ref-add:hover { border-color: #555; color: var(--text); }
.ref-add.drop-ready { border: 2px dotted var(--red); background: var(--red-dim); color: var(--red); }
.ref.just-added .ref-tile { animation: pop .35s ease-out; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Milestone list on the project brief */
.ms-row { display: flex; gap: 12px; align-items: flex-start; transition: background .4s, border-color .4s; }
.ms-row .num { width: 22px; font-weight: 700; padding-top: 1px; }
.ms-row .date { height: 32px; padding: 0 8px; font-size: 13px; width: auto; min-height: 0; }
.ms-row .acts { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.ms-row.flash { border-color: var(--red); background: var(--red-dim); }
.link-btn { background: none; border: 0; padding: 4px 6px; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 6px; }
.link-btn:hover { color: var(--text); background: var(--s1); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px); transform: translateX(-50%); z-index: 120; background: var(--text); color: #0a0a0a; padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: calc(100vw - 32px); }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* Brief upgrades */
.badge-feat { color: #1a1300; background: var(--rating); border: 1px solid var(--rating); }
.badge-funded { color: var(--success); background: var(--success-dim); border: 1px solid rgba(32, 214, 123, 0.35); }
.badge-urgent { color: var(--warn); background: var(--warn-dim); border: 1px solid rgba(246, 167, 35, 0.35); }
.upgrade { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--s2); cursor: pointer; }
.upgrade.on { border-color: var(--red); background: var(--red-dim); }
.upgrade .grow { flex: 1; min-width: 0; }
.upgrade .price-tag { font-weight: 800; white-space: nowrap; }
.card.featured { border-color: var(--rating); }
.option-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .option-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.option-tiles > * { padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--s2); cursor: pointer; text-align: center; font-size: 13.5px; font-weight: 600; }
.option-tiles > .selected { border-color: var(--red); background: var(--red-dim); }
.upgrade .box-up { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #555; flex: none; margin-top: 2px; display: inline-flex; align-items: center; justify-content: center; }
.upgrade.on .box-up { background: var(--red); border-color: var(--red); }
.upgrade.on .box-up::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.upgrade.locked { cursor: default; }
.brief-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 599px) { .modal-foot > .grow { flex-basis: 100%; } .modal-foot > .grow:empty { display: none; } }
.ms-row .ms-title { height: 38px; font-weight: 700; padding: 0 10px; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip { cursor: pointer; }
.save-opt { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--s2); cursor: pointer; }
.save-opt.on { border-color: var(--red); background: var(--red-dim); }
.save-opt .box-up, .upgrade .box-up { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #555; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.save-opt.on .box-up { background: var(--red); border-color: var(--red); }
.save-opt.on .box-up::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.save-btn.is-saved, .save-btn.is-saved .i { color: var(--red); }
.save-btn.is-saved .i path { fill: currentColor; }
.empty { text-align: center; padding: 40px 16px; border: 1px dashed var(--border); border-radius: var(--radius); }
.stepper { display: flex; gap: 6px; padding: 14px 18px 0; }
.stepper .st { flex: 1; min-width: 0; }
.stepper .bar { height: 4px; border-radius: 999px; background: #2a2a2a; }
.stepper .st.done .bar, .stepper .st.cur .bar { background: var(--red); }
.stepper .lab { font-size: 11.5px; color: var(--text-2); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper .st.cur .lab { color: var(--text); font-weight: 700; }
.step-pane[hidden] { display: none !important; }
.doc-page { background: #f6f4ef; color: #1b1b1b; border-radius: 12px; padding: 24px 20px; font-size: 14px; line-height: 1.6; max-height: 460px; overflow-y: auto; }
.doc-page h2 { font-size: 18px; color: #111; margin-bottom: 4px; }
.doc-page h3 { font-size: 14px; color: #111; margin: 16px 0 4px; }
.doc-page .fill { background: #fff3c4; padding: 0 3px; border-radius: 3px; font-weight: 600; }
.doc-page .muted { color: #666; }
.sig-preview { font-family: "Caveat", cursive; font-size: 36px; line-height: 1.1; min-height: 56px; border-bottom: 1.5px solid var(--text-2); padding: 6px 4px; color: var(--text); }
.doc-tab { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--s2); cursor: pointer; }
.doc-tab.cur { border-color: var(--red); }
.ms-row .money-input .input.date { padding-left: 26px; }
.neg, .kv > span:last-child { white-space: nowrap; }

/* Right-side drawer */
.drawer-back { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(400px, 92vw); background: var(--s1); border-left: 1px solid var(--border); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.drawer-open .drawer-back { opacity: 1; pointer-events: auto; }
.drawer-open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { font-size: 18px; flex: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px 18px 18px; }
.drawer-foot { display: flex; gap: 8px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.drawer-foot .btn { flex: 1; }
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--border); }
.fgroup:last-child { border-bottom: 0; }
.fgroup h3 { font-size: 14px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.fcheck { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.fcheck input { width: 18px; height: 18px; accent-color: var(--red); }
.fcheck .n { margin-left: auto; color: var(--text-2); font-size: 12.5px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; position: relative; padding: 0; }
.swatch.on { border-color: var(--red); box-shadow: 0 0 0 2px var(--canvas) inset; }
.swatch.on::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--red); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar .count { margin-right: auto; }
.toolbar .sort { height: 40px; width: auto; flex: 0 0 auto; padding: 0 34px 0 12px; font-size: 14px; }
.filter-btn { position: relative; }
.filter-btn .dotn { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters .chip { height: 30px; font-size: 12.5px; }
.prod-dots { display: flex; gap: 4px; }
.prod-dots span { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.range-row { display: flex; gap: 8px; align-items: center; }
.range-row .money-input { flex: 1; }
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width: 599px) { .toolbar .count { flex-basis: 100%; } .toolbar .sort { flex: 1 1 0; min-width: 0; } }

/* Video, animation and writing portfolios */
.art-tile.wide { aspect-ratio: 16 / 9; }
.art-tile.vert { aspect-ratio: 9 / 16; }
.art-tile.vert .meta.title b { font-size: 12px; }
button.art-tile { border: 0; padding: 0; width: 100%; cursor: pointer; color: inherit; font: inherit; text-align: left; display: block; }
.play-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); border: 1.5px solid rgba(255, 255, 255, 0.75); display: flex; align-items: center; justify-content: center; color: #fff; pointer-events: none; }
.play-btn svg { width: 18px; height: 18px; margin-left: 3px; fill: currentColor; stroke: none; }
.play-btn.lg { width: 72px; height: 72px; background: var(--red); border-color: var(--red); }
.play-btn.lg svg { width: 26px; height: 26px; }
.dur { position: absolute; right: 8px; top: 8px; background: rgba(0, 0, 0, 0.75); border-radius: 6px; font-size: 11.5px; font-weight: 700; padding: 2px 7px; }
.art-tile .meta.title { flex-direction: column; gap: 1px; padding-top: 32px; }
.art-tile .meta.title b { font-size: 13.5px; }
.reel { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; display: block; width: 100%; border: 0; padding: 0; cursor: pointer; color: #fff; text-align: left; font: inherit; }
.reel img { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; }
.reel .reel-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.92)); display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.scrub { height: 4px; background: rgba(255, 255, 255, 0.22); border-radius: 2px; overflow: hidden; }
.scrub i { display: block; height: 100%; width: 0; background: var(--red); }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-sm); overflow: hidden; }
.player-frame img { width: 100%; height: 100%; object-fit: cover; }
.player-frame.portrait { aspect-ratio: 9 / 16; max-height: 60dvh; margin: 0 auto; }
.player-bar { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.player-bar .scrub { flex: 1; }
.sample { padding: 18px; display: flex; flex-direction: column; gap: 10px; text-align: left; width: 100%; color: inherit; font: inherit; cursor: pointer; }
.serif { font-family: Georgia, "Times New Roman", serif; }
.sample blockquote { font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.6; border-left: 2px solid var(--red); padding-left: 12px; margin: 0; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.sample-full { font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.7; }
.sample-full p + p { margin-top: 12px; }
.sample-full .scene { font-family: "Courier New", monospace; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.text-art { position: relative; aspect-ratio: 1 / 0.95; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; background: linear-gradient(160deg, #1d1013, #0c0c0c 70%); font-family: Georgia, "Times New Roman", serif; font-size: 14px; line-height: 1.45; overflow: hidden; }
.text-art::before { content: "\201C"; position: absolute; top: -8px; left: 10px; font-size: 90px; color: var(--red); opacity: 0.55; }
.text-art .xs { font-family: var(--font); }
.icon-tile { aspect-ratio: 1 / 1; border-radius: 12px; background: var(--s1); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 10px; text-align: center; font-size: 13px; font-weight: 600; }
.icon-tile .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--red-dim); color: var(--red); display: flex; align-items: center; justify-content: center; }
.icon-tile:hover { border-color: var(--red); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; height: 36px; }
.qty button { width: 36px; height: 34px; background: none; border: 0; color: var(--text); font-size: 18px; cursor: pointer; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; }
.btn.disabled { opacity: 0.4; pointer-events: none; }
.radio-card { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.radio-card.on { border-color: var(--red); background: var(--red-dim); }
.radio-card .dot-r { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex: none; }
.radio-card.on .dot-r { border: 5px solid var(--red); }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 14px 4px; border-bottom: 1px solid var(--border); position: relative; }
.notif.unread::after { content: ""; position: absolute; right: 4px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.notif .ic { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; background: var(--s2); color: var(--text-2); }
.notif.unread .ic { background: var(--red-dim); color: var(--red); }
.notif .grow { padding-right: 18px; }
.stars-input { display: flex; gap: 6px; }
.stars-input button { background: none; border: 0; padding: 2px; cursor: pointer; color: #3a3a3a; }
.stars-input button svg { width: 36px; height: 36px; fill: currentColor; stroke: none; }
.stars-input button.on { color: var(--rating); }
button.switch { border: 0; padding: 0; cursor: pointer; }

/* Tag picker (tools and skills) */
.taginput { position: relative; }
.ti-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 48px; padding: 6px 8px; background: var(--s2); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: text; }
.ti-box:focus-within { border-color: var(--red); }
.ti-chips { display: contents; }
.ti-chip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 4px 0 10px; border-radius: 999px; background: var(--s1); border: 1px solid var(--border); font-size: 13px; font-weight: 600; max-width: 100%; }
.ti-chip.custom { border-style: dashed; border-color: var(--warn); color: var(--warn); }
.ti-x { width: 22px; height: 22px; border-radius: 50%; border: 0; background: none; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ti-x:hover { background: var(--border); color: var(--text); }
.ti-input { flex: 1; min-width: 140px; height: 32px; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 14.5px; padding: 0 4px; }
.ti-list { position: absolute; left: 0; right: 0; top: calc(100% - 22px); z-index: 30; background: var(--s1); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); max-height: 280px; overflow-y: auto; padding: 6px; }
.ti-opt { padding: 10px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; display: flex; gap: 8px; align-items: flex-start; }
.ti-opt mark { background: none; color: var(--red); font-weight: 700; }
.ti-opt.on { background: var(--s2); }
.ti-new { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 12px; color: var(--text); }
.ti-new .i { margin-top: 2px; color: var(--red); }
.ti-head, .ti-empty { padding: 8px 10px; font-size: 12px; color: var(--text-2); }
.ti-head { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; font-size: 11px; }
.ti-foot { margin-top: 6px; min-height: 16px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list .tag { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--s2); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; }

/* Edit profile */
.ep-nav { display: flex !important; flex-direction: column; gap: 2px; }
.ep-nav > a { padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.ep-nav > a.active { background: var(--s2); color: var(--text); box-shadow: inset 3px 0 0 var(--red); }
.ep-banner { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 1; background: var(--s2); }
.ep-banner img { width: 100%; height: 100%; object-fit: cover; }
.ep-banner-btn { position: absolute; right: 10px; top: 10px; background: rgba(0, 0, 0, 0.65); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); cursor: pointer; }
.cat-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.cat-card.on { border-color: var(--red); background: rgba(237, 28, 36, 0.05); }
.cat-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.cat-toggle:disabled { opacity: 0.45; cursor: not-allowed; }
.cat-toggle .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--s2); display: flex; align-items: center; justify-content: center; flex: none; }
.cat-card.on .cat-toggle .ic { background: var(--red-dim); color: var(--red); }
.cat-card .box-up { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #555; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.cat-card.on .box-up { background: var(--red); border-color: var(--red); }
.cat-card.on .box-up::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.pf-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .pf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pf-grid .ref { width: auto; position: relative; }
.pf-grid .ref-tile { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.pf-grid .ref-add-wrap .ref-tile { height: auto; }
.pf-cat { height: 34px; font-size: 12.5px; margin-top: 6px; padding: 0 28px 0 8px; }
.pf-rm { position: absolute; left: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.7); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(17, 17, 17, 0.96); border-top: 1px solid var(--border); backdrop-filter: blur(8px); }
.savebar-in { max-width: 1100px; margin: 0 auto; display: flex; gap: 8px; align-items: center; }
@media (max-width: 899px) { .savebar { bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); } }
.doc-opt.off { opacity: 0.45; cursor: not-allowed; }

/* Package order */
.po-pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.po-pkg { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--s2); color: var(--text); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.po-pkg .price { font-size: 20px; }
.po-pkg.on { border-color: var(--red); background: var(--red-dim); }
.po-incl { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.po-incl li { display: flex; gap: 8px; align-items: center; }
.po-incl .i { color: var(--success); }
.po-addon { align-items: center; }
.po-addon.is-qty { cursor: default; }
.po-addon.incl { opacity: 0.7; cursor: default; }
@media (max-width: 480px) { .po-pkg { padding: 10px; } .po-pkg .price { font-size: 17px; } }

/* Wallet and payment picker */
.pay-seg { display: flex; flex-wrap: wrap; }
.pay-seg a { display: inline-flex; align-items: center; gap: 6px; }
.pay-ok { display: flex; gap: 6px; align-items: center; color: var(--success); }
.wallet-hero { background: linear-gradient(135deg, #2a0b12, #111 60%); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.wallet-hero .bal { font-size: 40px; font-weight: 900; letter-spacing: -0.02em; }
.amt-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.amt-chips button { height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--s2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.amt-chips button.on { border-color: var(--red); background: var(--red-dim); }
.tx-pos { color: var(--success); }

/* Purchases list */
.pur { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px 14px; align-items: center; }
.pur .pur-amt { text-align: right; }
.pur .pur-act { grid-column: 1 / -1; display: flex; gap: 8px; }
.pur .pur-act .btn { flex: 1; }
@media (min-width: 900px) {
  .pur { grid-template-columns: 56px minmax(0, 1fr) auto auto; }
  .pur .pur-act { grid-column: auto; }
  .pur .pur-act .btn { flex: none; }
}

/* Brand reports */
.rep-split { align-items: start; }
.rep-chart { width: 100%; height: auto; display: block; }
.rep-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.rep-legend i, .rep-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.rep-bar { display: block; width: 100%; text-align: left; background: none; border: 0; color: inherit; padding: 4px 0; cursor: pointer; font: inherit; }
.rep-bar:hover b { color: var(--red); }

/* Brand workspace */
.team-row { flex-wrap: wrap; }
.team-row .grow { min-width: 160px; }
.tpl-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tpl-row .grow { min-width: 180px; }
@media (max-width: 899px) { .tpl-row .tpl-def { order: 5; width: 100%; justify-content: space-between; padding-left: 56px; } }
.kit-logo { overflow: hidden; }
.kit-logo-art { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; letter-spacing: .04em; text-align: center; padding: 8px; }
.kit-color { padding: 0; overflow: hidden; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.kit-color:hover { border-color: var(--red); }
.kit-chip { display: block; height: 72px; border-bottom: 1px solid var(--border); }
.kit-font { font-size: 28px; line-height: 1.15; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.rep-cards { display: none; }
@media (max-width: 899px) {
  .rep-cards { display: flex; }
  .rep-table { display: none; }
  .rep-tools .sort { flex: 1 1 140px; }
  .rep-tools .filter-btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 899px) { .wide-search > .field { flex: 1 1 100%; } }

/* ---------- Public site (logged out) ---------- */
body[data-public] { padding-bottom: 0; }
.pub-in { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.pub-head { position: sticky; top: 0; z-index: 70; background: rgba(5,5,5,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.pub-head .pub-in { display: flex; align-items: center; gap: 20px; height: 60px; }
.pub-nav { display: none; gap: 4px; }
.pub-nav a { padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.pub-nav a:hover { color: var(--text); }
.pub-nav a.active { color: var(--text); background: var(--s1); }
.pub-cta { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.pub-cta .btn-primary { display: none; }
.pub-menu { border-top: 1px solid var(--border); padding: 8px 16px 16px; }
.pub-menu a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); font-weight: 600; }
.pub-menu a.active { color: var(--red); }
@media (min-width: 900px) {
  .pub-nav { display: flex; }
  .pub-burger, .pub-menu { display: none !important; }
  .pub-cta .btn-primary { display: inline-flex; }
}
.pub-main { max-width: 1240px; margin: 0 auto; padding: 0 16px 56px; }
.pub-foot { border-top: 1px solid var(--border); background: var(--s1); padding: 40px 0 24px; }
.pub-foot > .pub-in:first-child { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
.pub-foot-brand { grid-column: 1 / -1; max-width: 340px; }
.pub-foot h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); margin-bottom: 10px; }
.pub-foot a:not(.logo) { display: block; padding: 5px 0; font-size: 14px; }
.pub-foot a:not(.logo):hover { color: var(--red); }
.pub-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); }
@media (min-width: 900px) { .pub-foot > .pub-in:first-child { grid-template-columns: 2fr 1fr 1fr 1fr; } .pub-foot-brand { grid-column: auto; } }

.lp-hero { position: relative; overflow: hidden; border-radius: 0 0 24px 24px; margin: 0 -16px; padding: 56px 16px 40px; min-height: 480px; display: flex; flex-direction: column; justify-content: flex-end; }
.lp-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--canvas) 8%, rgba(5,5,5,.72) 55%, rgba(5,5,5,.45)); }
.lp-hero > *:not(.bg) { position: relative; z-index: 1; }
.lp-hero h1 { font-size: 40px; line-height: 1.02; font-weight: 900; letter-spacing: -.01em; max-width: 720px; }
.lp-hero p { max-width: 560px; }
@media (min-width: 900px) {
  .lp-hero { margin: 16px 0 0; border-radius: 24px; padding: 64px 56px; min-height: 560px; border: 1px solid var(--border); }
  .lp-hero::after { background: linear-gradient(90deg, var(--canvas) 30%, rgba(5,5,5,.55) 55%, rgba(5,5,5,.1) 85%); }
  /* Art is usually portrait, so on wide screens it fills the right side instead of the whole banner. */
  .lp-hero img.bg { left: auto; width: 60%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
  .lp-hero h1 { font-size: 64px; }
}
.lp-sec { margin-top: 56px; }
.lp-sec > h2 { font-size: 28px; font-weight: 900; line-height: 1.1; }
@media (min-width: 900px) { .lp-sec { margin-top: 80px; } .lp-sec > h2 { font-size: 36px; } }
.lp-step { display: flex; flex-direction: column; gap: 10px; }
.lp-step .n { width: 36px; height: 36px; border-radius: 50%; background: var(--red-dim); color: var(--red); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.lp-feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--red-dim); color: var(--red); display: flex; align-items: center; justify-content: center; }
.faq { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 20px; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq p { padding-bottom: 16px; color: var(--text-2); font-size: 14.5px; }
.cta-band { border-radius: 20px; padding: 32px 20px; background: linear-gradient(135deg, rgba(237, 28, 36,.22), rgba(237, 28, 36,.04)); border: 1px solid rgba(237, 28, 36,.35); text-align: center; }
@media (min-width: 900px) { .cta-band { padding: 48px; } }

/* Phone app download buttons on the public site. A store that isn't live yet shows a dashed "coming soon" badge. */
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 18px 8px 14px; border-radius: 12px; background: #000; border: 1px solid #3a3a3a; color: #fff; line-height: 1.1; text-align: left; }
a.store-badge:hover { border-color: var(--text-2); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 11px; font-weight: 500; color: var(--text-2); }
.store-badge b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.store-badge.is-soon { background: transparent; border-style: dashed; color: var(--text-2); cursor: default; }
.store-badge.is-soon b { color: var(--text); }
.store-badges.sm .store-badge { min-height: 44px; padding: 6px 14px 6px 12px; }
.store-badges.sm .store-badge svg { width: 20px; height: 20px; }
.store-badges.sm .store-badge b { font-size: 15px; }
.cta-band .store-badges { justify-content: center; }

/* Legal and help articles */
.legal { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 900px) { .legal { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; } .legal .toc { position: sticky; top: 84px; align-self: start; } }
.legal .toc a { padding: 6px 0; font-size: 14px; color: var(--text-2); }
.legal .toc a:hover { color: var(--text); }
.prose { max-width: 760px; font-size: 15.5px; line-height: 1.7; color: #d8d8d8; }
.prose h2 { font-size: 20px; color: var(--text); margin: 32px 0 8px; scroll-margin-top: 80px; }
.prose h3 { font-size: 16px; color: var(--text); margin: 20px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--red); font-weight: 600; }
.help-cat { display: flex; flex-direction: column; gap: 8px; }
.help-cat .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--red-dim); color: var(--red); display: flex; align-items: center; justify-content: center; }
.help-search { max-width: 640px; margin: 20px auto 0; height: 54px; font-size: 16px; }
.tbd { background: rgba(245, 158, 11, .14); color: #f5c46b; border: 1px dashed rgba(245, 158, 11, .5); border-radius: 4px; padding: 0 4px; }

/* Mature content blur */
.nsfw { position: relative; overflow: hidden; }
.nsfw:not(.revealed) img { filter: blur(22px) saturate(.6); transform: scale(1.1); }
.nsfw:not(.revealed) .play-btn, .nsfw:not(.revealed) .dur { visibility: hidden; }
.nsfw-veil { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(0,0,0,.35); color: #fff; text-align: center; font-size: 13px; cursor: pointer; }
.nsfw-veil .nsfw-btn { margin-top: 6px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; }
.nsfw.revealed .nsfw-veil { display: none; }
.badge-18 { color: #fff; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.25); }
.pf-18 { position: absolute; left: 40px; top: 8px; height: 24px; padding: 0 7px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.65); color: #bbb; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.pf-18.on { background: var(--red); border-color: var(--red); color: #fff; }
.pf-piece:has(.pf-18.on) img { filter: blur(6px); }
.invalid-check .box { border-color: var(--red) !important; box-shadow: 0 0 0 3px var(--red-dim); }
.fa-q .box { margin-top: 2px; }
.fa-q .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #555; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.fa-q .box.on { background: var(--red); border-color: var(--red); }
.plan-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.plan-list li { padding-left: 20px; position: relative; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 800; }
.usage { display: flex; flex-direction: column; gap: 4px; }

/* Legal contents: desktop sidebar with scrollspy, mobile current-section menu */
.legal .toc { display: none; }
.legal .toc a { border-left: 2px solid var(--border); padding: 7px 0 7px 14px; line-height: 1.35; transition: color .15s, border-color .15s; }
.legal .toc a.active { color: var(--text); border-left-color: var(--red); font-weight: 600; }
.toc-m { position: sticky; top: 60px; z-index: 60; margin: 16px -16px 0; background: rgba(5,5,5,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
/* Inside the phone app there's no site header above the page (App\Support\InApp), so the contents bar sits at the top. */
.in-app .toc-m { top: 0; }
@media (min-width: 900px) { .in-app .legal .toc { top: 24px; } }
.toc-m-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 16px; background: none; border: 0; color: var(--text); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; text-align: left; }
.toc-m-cur { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc-m-chev { transition: transform .15s; color: var(--text-2); }
.toc-m.open .toc-m-chev { transform: rotate(180deg); }
.toc-m-list { max-height: 60vh; overflow-y: auto; padding: 4px 16px 12px; border-top: 1px solid var(--border); }
.toc-m-list a { display: block; padding: 11px 0 11px 12px; border-left: 2px solid var(--border); color: var(--text-2); font-size: 14.5px; }
.toc-m-list a.active { color: var(--text); border-left-color: var(--red); font-weight: 600; }
.prose h2 { scroll-margin-top: 124px; }
@media (min-width: 900px) {
  .legal .toc { display: block; max-height: calc(100vh - 110px); overflow-y: auto; }
  .toc-m { display: none; }
  .prose h2 { scroll-margin-top: 84px; }
}
html { scroll-behavior: smooth; }

/* Document center (creator tax and account documents, brand billing and tax) */
.dc-group + .dc-group { margin-top: 28px; }
.dc-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--red-dim); color: var(--red); display: flex; align-items: center; justify-content: center; flex: none; }
.dc-files { flex: none; }
@media (max-width: 899px) {
  .dc-row { flex-wrap: wrap; }
  .dc-files { width: 100%; padding-left: 52px; }
}

/* Activations (events) and the creator asset library */
.ev-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.ev-card .ev-img { position: relative; aspect-ratio: 16 / 9; background: var(--s2); overflow: hidden; }
.ev-card .ev-img img { width: 100%; height: 100%; object-fit: cover; }
.ev-date { position: absolute; left: 12px; top: 12px; background: var(--red); color: #fff; border-radius: 10px; padding: 6px 10px; font-weight: 800; font-size: 13px; line-height: 1.15; text-align: center; }
.ev-date small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; opacity: .9; }
.ev-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ev-faces { display: flex; align-items: center; }
.ev-faces .avatar { margin-left: -8px; border: 2px solid var(--s1); }
.ev-faces .avatar:first-child { margin-left: 0; }
.ev-hero { position: relative; margin: 0 -16px; min-height: 300px; display: flex; align-items: flex-end; padding: 32px 16px 24px; overflow: hidden; }
.ev-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--canvas) 10%, rgba(5,5,5,.6) 60%, rgba(5,5,5,.3)); }
.ev-hero > *:not(.bg) { position: relative; z-index: 1; }
.lineup-card { display: flex; gap: 12px; align-items: center; }
.lineup-card .art { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; flex: none; }
.lineup-card .art img { width: 100%; height: 100%; object-fit: cover; }
.step-list { counter-reset: st; }
.step-list > * { counter-increment: st; display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.step-list > *:last-child { border-bottom: 0; }
.step-list .n { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.step-list .done .n, .step-list > .done .n { background: var(--success); border-color: var(--success); color: #04120b; }
.asset-tile { position: relative; border-radius: 12px; overflow: hidden; background: var(--s2); display: block; text-align: left; padding: 0; border: 1px solid var(--border); cursor: pointer; color: inherit; width: 100%; }
.asset-tile .im { aspect-ratio: 1 / 1; overflow: hidden; }
.asset-tile .im img { width: 100%; height: 100%; object-fit: cover; }
.asset-tile .cap { padding: 10px 12px; }
.copy-box { background: var(--s2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-size: 14px; line-height: 1.5; }

/* Keep the desktop top bar on one line when a role has many links */
@media (min-width: 900px) {
  .topbar nav a { white-space: nowrap; }
  .topbar nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar .search { min-width: 160px; }
}
@media (min-width: 900px) and (max-width: 1279px) {
  .topbar nav a { padding: 8px 10px; font-size: 13.5px; }
  .topbar .search { display: none; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .topbar { gap: 12px; }
  .topbar nav { gap: 0; }
  .topbar nav a { padding: 8px 8px; font-size: 13px; }
}

/* Help center admin and system status */
.status-banner { display: flex; gap: 10px; align-items: center; padding: 10px 16px; background: var(--warn-dim); color: var(--text); font-size: 13.5px; border-bottom: 1px solid var(--border); }
.status-banner [data-i] { color: var(--warn); flex: none; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.st-hero { display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); }
.st-hero .st-dot { width: 14px; height: 14px; }
.st-bars { display: flex; gap: 2px; height: 28px; margin-top: 10px; }
.st-bars i { flex: 1; border-radius: 2px; min-width: 1px; }
.st-comp { padding: 16px 0; border-bottom: 1px solid var(--border); }
.st-comp:last-child { border-bottom: 0; }
.st-tl { border-left: 2px solid var(--border); margin-left: 4px; padding-left: 16px; }
.st-tl > div { position: relative; padding-bottom: 14px; }
.st-tl > div::before { content: ""; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--s2); border: 2px solid var(--border); }
.st-tl > div:first-child::before { background: var(--red); border-color: var(--red); }
.hc-editor { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.hc-tools { display: flex; gap: 2px; padding: 6px; background: var(--s2); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.hc-tools button { background: none; border: 0; color: var(--text); padding: 6px 9px; border-radius: 6px; font: inherit; font-size: 13px; cursor: pointer; }
.hc-tools button:hover { background: var(--s1); }
.hc-body { min-height: 180px; padding: 12px 14px; font-size: 14px; line-height: 1.6; outline: none; }
.hc-body h2 { font-size: 17px; margin: 12px 0 4px; }
.hc-body ul { padding-left: 20px; }
.cat-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cat-row:last-child { border-bottom: 0; }
.cat-row .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--s2); display: flex; align-items: center; justify-content: center; flex: none; }
.meter { height: 6px; border-radius: 3px; background: var(--s2); overflow: hidden; width: 70px; display: inline-block; vertical-align: middle; }
.meter i { display: block; height: 100%; background: var(--success); }
