/* Shared styles for the log-in, set-password and offers pages.
   Tokens and components match creators.html. */
:root {
  --bg: #F4F3EF;
  --ink: #141A16;
  --muted: #656A62;
  --green: #1E4D38;
  --green-dark: #173B2B;
  --green-soft: #E7EFE9;
  --mint: #7BE08A;
  --line: #E3E1D9;
  --card: #FFFFFF;
  --field-line: #D6D4CB;
  --error: #B3261E;
  --error-soft: #FBEAE8;
  --amber: #8A5A00;
  --amber-soft: #FBF1DC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: 'Inter Tight', 'Inter', sans-serif; text-wrap: balance; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(244, 243, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

/* The wordmark is an image; the alt text carries the name. */
.nav-logo img {
  height: 26px;
  width: auto;
  display: block;
}

.nav-tag {
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 16px;
  margin-left: -8px;
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  min-width: 0;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover { color: var(--green); }

.nav-links {
  display: flex;
  align-self: stretch;
  gap: 24px;
  margin-left: 12px;
}

.nav-links .nav-link {
  display: flex;
  align-items: center;
}

.nav-links .nav-link[aria-current="page"] {
  color: var(--green);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--green);
}

.nav-user {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.btn:hover { background: var(--green-dark); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn .arr { font-weight: 700; }
.btn-sm { padding: 10px 16px; font-size: 14px; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { background: #EDEBE3; }

/* ---------- Auth pages (log in, set password) ---------- */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(40px, 8vh, 96px);
  background:
    radial-gradient(80ch 64ch at 96% 6%, rgba(30, 77, 56, 0.16), transparent 58%),
    radial-gradient(70ch 50ch at 4% 92%, rgba(30, 77, 56, 0.08), transparent 62%),
    #EDF1EC;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px 40px;
}

/* Focus moves to the card when it turns into "check your email" (so screen
   readers announce it); no outline needed around the whole card. */
.auth-card:focus { outline: none; }

.auth-card h1 {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 12px 0 8px;
}

.auth-sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.auth-sub strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

.form { display: grid; gap: 14px; }

.field { display: grid; gap: 6px; }

.field label {
  font-size: 13.5px;
  font-weight: 600;
}

.field input {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.field input:focus { border-color: var(--green); }
.field input[aria-invalid="true"] { border-color: var(--error); }

.field-hint { font-size: 13px; color: var(--muted); }

.field-error,
.form-error {
  font-size: 13px;
  font-weight: 500;
  color: var(--error);
  line-height: 1.4;
}

.form-error {
  background: var(--error-soft);
  border-radius: 10px;
  padding: 11px 14px;
}

.form-error a { color: var(--error); font-weight: 600; }

/* Read by screen readers, not shown. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Creator profile: steps to complete ---------- */
.steps-panel { margin-bottom: 24px; display: grid; gap: 14px; }
.steps-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.steps-count { font-weight: 700; color: var(--green); white-space: nowrap; }
.steps-bar { height: 8px; border-radius: 100px; background: var(--line); overflow: hidden; }
.steps-bar span { display: block; height: 100%; width: 0; background: var(--green); border-radius: inherit; transition: width .4s ease; }
.steps-list { list-style: none; display: grid; gap: 10px; }
.step {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--card);
}
.step-mark {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; border: 1.5px solid var(--field-line); color: var(--muted);
}
.step.is-done .step-mark { background: var(--green); border-color: var(--green); color: #fff; }
.step.is-done strong { color: var(--muted); }
.step-body strong { font-size: 15px; }
.step-body p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.steps-panel.is-complete .steps-list { display: none; }
/* "Jump to" from a step lands below the sticky nav, not under it. */
.profile-grid .panel { scroll-margin-top: 84px; }
/* Reminder on /offers until the profile is complete. */
.profile-nudge {
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--green-soft); border-radius: 14px; padding: 14px 18px; margin-bottom: 20px;
}
.profile-nudge p { font-size: 14.5px; color: var(--green); font-weight: 600; }
@media (max-width: 640px) {
  .step { grid-template-columns: auto 1fr; }
  .step .btn { grid-column: 2; justify-self: start; }
}

/* ---------- Chat on a request ---------- */
.chat { display: grid; gap: 14px; }
.chat-list {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 420px; overflow-y: auto; padding: 4px 2px;
}
.chat-empty { font-size: 14px; color: var(--muted); }
.chat-msg {
  max-width: 82%; align-self: flex-start;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px; padding: 10px 14px;
}
.chat-msg.is-mine {
  align-self: flex-end; background: var(--green-soft); border-color: transparent;
  border-radius: 14px 14px 4px 14px;
}
.chat-msg p { font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-meta { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.chat-form textarea {
  width: 100%; resize: vertical; min-height: 46px; max-height: 200px;
  font: inherit; font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--field-line); border-radius: 10px; background: var(--card); color: var(--ink); outline: none;
}
.chat-form textarea:focus { border-color: var(--green); }
.chat-unread {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 100px;
  background: var(--green); color: #fff; font-size: 12px; font-weight: 700;
}
@media (max-width: 640px) {
  .chat-msg { max-width: 92%; }
  .chat-form { grid-template-columns: 1fr; }
}

/* A dollar amount input: "$" inside the field. */
.money-input { position: relative; }
.money-input > span {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-weight: 600; pointer-events: none;
}
.money-input input { padding-left: 28px; font-variant-numeric: tabular-nums; }

/* A group of fields under one label, e.g. a budget range. */
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; font-weight: 600; font-size: 13.5px; margin-bottom: 4px; }

/* Information rather than a problem, e.g. "check your email". */
.form-note {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 10px;
  padding: 11px 14px;
}
.form-note[hidden] { display: none; }

.form .btn { width: 100%; margin-top: 6px; }

.form-alt {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.form-alt a { color: var(--green); font-weight: 600; }

.pw-toggle {
  justify-self: start;
  background: none;
  border: none;
  color: var(--green);
  font: 600 13px 'Inter', sans-serif;
  cursor: pointer;
  padding: 0;
}

/* ---------- Offers ---------- */
.offers-main {
  flex: 1;
  padding-block: clamp(40px, 7vh, 80px);
}

.offers-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 4vh, 44px);
}

.offers-head h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 12px;
}

.offers-summary {
  display: flex;
  gap: 28px;
}

.summary-item .num {
  font-family: 'Inter Tight', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.summary-item .label { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Type of video / genre menus above the offer list. */
.offer-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin-bottom: 32px;
}

.offer-filter { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }

.offer-filter select {
  min-width: 200px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.offer-filter select:focus { border-color: var(--green); }

.filter-clear {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  background: none;
  border: 0;
  padding: 10px 4px;
  cursor: pointer;
}

.filter-clear:hover { text-decoration: underline; }

.offer-group + .offer-group { margin-top: 44px; }

.offer-group h2 {
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.offer-list { list-style: none; }

.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 32px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.offer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green);
}

.offer h3 {
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.offer-details {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 6px;
  max-width: 62ch;
  overflow-wrap: anywhere;
}

.offer-meta {
  text-align: right;
  display: grid;
  gap: 4px;
  justify-items: end;
}

.offer-pay {
  font-family: 'Inter Tight', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.offer-reply { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.offer-reply .form-error { flex-basis: 100%; text-align: right; }
.offer-due { font-size: 13px; color: var(--muted); white-space: nowrap; }
.offer-due.is-soon { color: var(--amber); font-weight: 600; }

.chip {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 100px;
  padding: 2px 10px;
}

.chip-pending { background: var(--amber-soft); color: var(--amber); }
.chip-accepted { background: var(--green-soft); color: var(--green); }

.empty {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(36px, 6vh, 56px) clamp(22px, 4vw, 48px);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.empty h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.empty p { color: var(--muted); font-size: 15px; max-width: 46ch; margin: 0 auto; }

.status-msg { color: var(--muted); font-size: 15px; }

/* ---------- Profile ---------- */
.profile-main {
  flex: 1;
  padding-block: clamp(40px, 7vh, 80px);
}

.profile-head { margin-bottom: clamp(28px, 4vh, 44px); }

.profile-head h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 12px;
}

.profile-sub { color: var(--muted); font-size: 15px; margin-top: 8px; }

.profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}

.panel h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.panel-sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
  max-width: 60ch;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.panel-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.info-list { display: grid; margin-top: 16px; }

.info-row {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.info-row:first-child { border-top: 0; padding-top: 0; }

.info-row dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-row dd {
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.info-row dd a { color: var(--green); font-weight: 600; text-decoration: none; }
.info-row dd a:hover { text-decoration: underline; }
.info-row .none { color: var(--muted); font-weight: 400; }

.info-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.videos-col,
.side-col { display: grid; gap: clamp(20px, 3vw, 28px); }

/* What you make: toggle chips */
.content-form { display: grid; gap: 18px; margin-top: 18px; }
.chip-field { border: 0; }
.chip-field legend { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.chip-field .none { font-weight: 400; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-opt span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid var(--field-line);
  border-radius: 100px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.chip-opt input:checked + span { background: var(--green-soft); border-color: var(--green); color: var(--green); font-weight: 600; }
.chip-opt input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.chip-opt input:disabled + span { opacity: 0.45; cursor: not-allowed; }
.content-actions { display: flex; align-items: center; gap: 12px; }
.content-status { font-size: 13px; font-weight: 600; color: var(--green); }

/* Intro: player beside its actions */
.intro-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.intro-body.is-empty { grid-template-columns: 1fr; }

.intro-tips {
  display: grid;
  gap: 8px;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

.intro-tips li {
  display: flex;
  gap: 8px;
}

.intro-tips li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}

.video-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.player {
  position: relative;
  aspect-ratio: 9 / 16;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #10150F;
}

.player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Upload drop zone */
.dropzone {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  padding: 32px 20px;
  border: 1.5px dashed #C9C6BB;
  border-radius: 14px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone.is-over,
.dropzone:focus-within {
  border-color: var(--green);
  background: var(--green-soft);
}

.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.dropzone-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone-title { font-size: 15px; font-weight: 600; }
.dropzone-title span { color: var(--green); text-decoration: underline; }
.dropzone-hint { font-size: 13px; color: var(--muted); }

.sample-dropzone { aspect-ratio: 9 / 16; padding: 16px; }

/* Upload progress */
.progress {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
}

.progress-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-pct { font-variant-numeric: tabular-nums; color: var(--green); }

.progress-bar {
  height: 6px;
  border-radius: 100px;
  background: var(--line);
  overflow: hidden;
}

.progress-bar > div {
  height: 100%;
  width: 0;
  background: var(--green);
  transition: width 0.2s ease;
}

/* Samples grid */
.sample-title-field { margin-bottom: 16px; max-width: 360px; }

.sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.sample {
  display: grid;
  gap: 8px;
  align-content: start;
}

.sample-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.sample-title {
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-title.is-untitled { color: var(--muted); font-weight: 500; }

.link-btn {
  background: none;
  border: none;
  font: 600 13px 'Inter', sans-serif;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 0;
  white-space: nowrap;
}

.link-btn:hover { color: var(--error); }
.link-btn.is-confirm { color: var(--error); }

.btn-danger-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-danger-ghost:hover,
.btn-danger-ghost.is-confirm { color: var(--error); border-color: var(--error); background: var(--error-soft); }

/* ---------- Footer ---------- */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .nav-links { gap: 16px; margin-left: 0; }
  .nav-user { display: none; }
  .panel { padding: 22px 18px; }
  .intro-body { grid-template-columns: 1fr; }
  .intro-body .player { max-width: 240px; }
  .sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .nav-tag { display: none; }
  .auth-card { padding: 32px 22px; }
  .offer { grid-template-columns: 1fr; }
  .offer-meta { text-align: left; justify-items: start; grid-auto-flow: column; align-items: baseline; gap: 14px; justify-content: start; }
  .offer-reply { justify-content: flex-start; }
  .offer-reply .form-error { text-align: left; }
  .offer-filter { flex: 1 1 140px; }
  .offer-filter select { min-width: 0; width: 100%; }
}

@media (max-width: 420px) {
  .nav-user { display: none; }
  /* Logo, two links and Log out overran a 375px screen by ~18px. */
  .nav-inner { gap: 14px; }
  .nav-links { gap: 12px; }
  .nav-logo img { height: 22px; }
  .nav-right .btn-sm { padding: 8px 12px; }
}

/* ---------- Brand dashboard ---------- */
.wrap.narrow { max-width: 760px; }

.back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 18px;
}

.back-link:hover { color: var(--green); }

.request-form { gap: 20px; }

.field select,
.field textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.field textarea { resize: vertical; line-height: 1.5; }
.field select:focus,
.field textarea:focus { border-color: var(--green); }
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error); }
.field label .none { font-weight: 400; color: var(--muted); }
.field-hint.center { text-align: center; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.count-row { display: flex; align-items: center; gap: 16px; }
.count-row input { max-width: 110px; }
.count-total {
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.account-info { margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Request list rows: the whole row is a link. */
.request-row { color: inherit; text-decoration: none; }
.request-row:hover h3 { color: var(--green); }
.request-picks { font-size: 13.5px; font-weight: 500; margin-top: 8px; }
.chip-muted { background: #EDEBE3; color: var(--muted); }
.empty .btn { margin-top: 22px; }

.request-meta { color: var(--muted); font-size: 15px; margin-top: 8px; }
.request-notes {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15px;
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin-bottom: 36px;
  max-width: 72ch;
}

/* Editing a request in place, above its matched creators. */
.edit-form { max-width: 720px; margin-bottom: 36px; }
.edit-actions { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.edit-actions .btn { margin-top: 0; }

.matches .panel-head { margin-bottom: 18px; }
.matches h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }

/* Quote: pending panel before we've priced a request, then the price. */
.quote-pending { max-width: 640px; margin-bottom: 36px; }
.quote-pending h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.quote-pending p { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 56ch; }
.quote-pending strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

.quote-steps { list-style: none; display: grid; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--muted); }
.quote-steps li::before {
  content: attr(data-n);
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--field-line);
  font-size: 12.5px;
  font-weight: 700;
}
.quote-steps li.is-done { color: var(--ink); }
.quote-steps li.is-done::before { content: '✓'; background: var(--green); border-color: var(--green); color: #fff; }
.quote-steps li.is-current { color: var(--ink); font-weight: 600; }
.quote-steps li.is-current::before { border-color: var(--amber); background: var(--amber-soft); color: var(--amber); }

.quote-ready {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  background: var(--green-soft);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 36px;
  max-width: 72ch;
}
.quote-ready span { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.quote-ready strong { font-family: 'Inter Tight', sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.quote-ready p { flex-basis: 100%; font-size: 14px; color: var(--muted); }

.picks-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
#picks-error { margin-top: 18px; }

/* Where an invited creator stands (waiting / accepted / declined). */
.creator-invite { justify-self: start; margin: 2px 0 4px; }

/* Matched creator cards (same design as the landing-page brief flow). */
.creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.creator-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
  transition: border-color 0.15s ease;
}

.creator-card.selected { border-color: var(--green); }

.creator-select {
  position: absolute;
  inset: 0;
  border: 0;
  background: none;
  border-radius: inherit;
  cursor: pointer;
}

.creator-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--field-line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: transparent;
  pointer-events: none;
  transition: all 0.15s ease;
}

.creator-card.selected .creator-check { background: var(--green); border-color: var(--green); color: #fff; }
.creator-card.is-locked .creator-check { display: none; }

.creator-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  color: var(--green);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: 19px;
}

.creator-name { font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 17px; line-height: 1.3; }
.creator-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.creator-niches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.creator-niche {
  font-size: 12px;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 3px 10px;
}

.creator-reasons {
  list-style: none;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  display: grid;
  gap: 3px;
  width: 100%;
}

.creator-reasons li::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* Sits above the stretched select button. */
.creator-watch {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  min-height: 36px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--bg);
  font: 600 13px 'Inter', sans-serif;
  color: var(--ink);
  cursor: pointer;
}

.creator-watch:hover { border-color: var(--green); color: var(--green); }

.play-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--green); position: relative; flex: none; }
.play-dot::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff;
}

.intro-dialog {
  margin: auto;
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(400px, calc(100vw - 32px));
  background: #111;
  color: #fff;
  overflow: hidden;
}

.intro-dialog::backdrop { background: rgba(10, 14, 12, 0.7); }
.intro-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; }
.intro-dialog-head strong { display: block; font-family: 'Inter Tight', sans-serif; font-size: 16px; }
.intro-dialog-head span { font-size: 13px; color: #B9BDB6; }
.intro-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.intro-dialog video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: calc(100dvh - 170px); background: #000; }

/* One tab per video (intro, then samples) when a creator has more than one. */
.video-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 12px; scrollbar-width: none; }
.video-tabs[hidden] { display: none; }
.video-tab {
  flex: none;
  max-width: 180px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  background: transparent;
  color: #D7DAD3;
  font: 600 12px 'Inter', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.video-tab:hover { border-color: rgba(255, 255, 255, 0.45); }
.video-tab[aria-pressed="true"] { background: #fff; border-color: #fff; color: #111; }

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .creator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .creator-card { padding: 16px 14px; }
  .creator-watch { width: 100%; justify-content: center; padding: 6px 8px; white-space: nowrap; }
  .creator-watch .play-dot { display: none; }
  .offers-head .btn { width: 100%; }
}
