/* Collabiyo design system
   Idea: the marketplace as a Delhi market street. Headlines are set like shop signboards
   (Anek, condensed and heavy, from an Indian type foundry); everything else stays quiet,
   white and precise so profiles, rates and briefs are easy to compare.
   One accent: jamun, the deep purple-red of the Delhi summer fruit. Used for actions,
   the verified mark and focus. Status colours (green, amber, red, blue) only carry meaning. */

:root {
  --bg: #f6f5f8;
  --surface: #ffffff;
  --surface-2: #f1eff4;
  --surface-3: #e7e3ec;
  --line: #e3dfe8;
  --line-strong: #cbc4d3;
  --line-input: #938a9d;
  --ink: #1b1520;
  --ink-2: #463e4e;
  --ink-3: #6b6274;

  --brand: #8a1c5c;
  --brand-hover: #731649;
  --on-brand: #ffffff;
  --brand-soft: #f7e8f1;
  --brand-ink: #7a1851;

  /* Legacy "sun" tokens now mean "attention": barter, delivered, notices. */
  --sun: #f2b33d;
  --sun-soft: #fbf0d9;
  --sun-ink: #6b4100;

  --ok: #146c43;
  --ok-soft: #e3f3ea;
  --warn: #7a4a00;
  --warn-soft: #fbf0d9;
  --danger: #b42318;
  --danger-soft: #fce8e6;
  --info: #1e4e9a;
  --info-soft: #e5edfa;
  --star: #c98a00;

  --shadow-sm: 0 1px 2px rgb(27 21 32 / 0.06);
  --shadow: 0 1px 2px rgb(27 21 32 / 0.05), 0 8px 24px -12px rgb(27 21 32 / 0.18);
  --shadow-lg: 0 2px 6px rgb(27 21 32 / 0.06), 0 24px 48px -20px rgb(27 21 32 / 0.32);
  --scrim: rgb(20 14 24 / 0.52);

  --av-1: #f3e1eb; --av-1-ink: #6e1449;
  --av-2: #fbecd2; --av-2-ink: #5e3c00;
  --av-3: #e6e3f6; --av-3-ink: #372c78;
  --av-4: #dcefe5; --av-4-ink: #0f5a37;
  --av-5: #dce9f7; --av-5-ink: #173f6b;
  --av-6: #ece6df; --av-6-ink: #574232;

  --font-display: "Anek Latin", "Roboto Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-hi: "Anek Devanagari", "Nirmala UI", "Noto Sans Devanagari", "Mukta", sans-serif;
  --display-stretch: 82%;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.6rem, 1.2vw + 1.2rem, 2rem);
  --fs-2xl: clamp(2rem, 2.4vw + 1.2rem, 2.85rem);
  --fs-hero: clamp(2.6rem, 4.6vw + 1rem, 4.9rem);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121016; --surface: #1a171f; --surface-2: #221e28; --surface-3: #2b2632;
    --line: #2e2935; --line-strong: #423b4b; --line-input: #6f6679;
    --ink: #f1edf4; --ink-2: #c9c1d0; --ink-3: #a198aa;
    --brand: #e68bbe; --brand-hover: #f0a3cd; --on-brand: #2a0a1c; --brand-soft: #3a1a2d; --brand-ink: #f0a9cf;
    --sun: #f2b33d; --sun-soft: #3a2c10; --sun-ink: #f5d48f;
    --ok: #74d3a1; --ok-soft: #14301f; --warn: #f2c26b; --warn-soft: #3a2c10;
    --danger: #ff8f84; --danger-soft: #3d1815; --info: #96b8f5; --info-soft: #15243d; --star: #f2b33d;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4); --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 28px -14px rgb(0 0 0 / 0.7);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.4), 0 24px 48px -20px rgb(0 0 0 / 0.8); --scrim: rgb(0 0 0 / 0.62);
    --av-1: #3a1a2d; --av-1-ink: #f0b6d4; --av-2: #3a2c10; --av-2-ink: #f5d48f; --av-3: #29254a; --av-3-ink: #c9c0f2;
    --av-4: #14301f; --av-4-ink: #9fe3c0; --av-5: #182c45; --av-5-ink: #a8cbf2; --av-6: #33291f; --av-6-ink: #e6cfb2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121016; --surface: #1a171f; --surface-2: #221e28; --surface-3: #2b2632;
  --line: #2e2935; --line-strong: #423b4b; --line-input: #6f6679;
  --ink: #f1edf4; --ink-2: #c9c1d0; --ink-3: #a198aa;
  --brand: #e68bbe; --brand-hover: #f0a3cd; --on-brand: #2a0a1c; --brand-soft: #3a1a2d; --brand-ink: #f0a9cf;
  --sun: #f2b33d; --sun-soft: #3a2c10; --sun-ink: #f5d48f;
  --ok: #74d3a1; --ok-soft: #14301f; --warn: #f2c26b; --warn-soft: #3a2c10;
  --danger: #ff8f84; --danger-soft: #3d1815; --info: #96b8f5; --info-soft: #15243d; --star: #f2b33d;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4); --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 28px -14px rgb(0 0 0 / 0.7);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.4), 0 24px 48px -20px rgb(0 0 0 / 0.8); --scrim: rgb(0 0 0 / 0.62);
  --av-1: #3a1a2d; --av-1-ink: #f0b6d4; --av-2: #3a2c10; --av-2-ink: #f5d48f; --av-3: #29254a; --av-3-ink: #c9c0f2;
  --av-4: #14301f; --av-4-ink: #9fe3c0; --av-5: #182c45; --av-5-ink: #a8cbf2; --av-6: #33291f; --av-6-ink: #e6cfb2;
  color-scheme: dark;
}

/* ---------- Base ---------- */
/* Icons inside running text get a text-sized default; components that size their icons override it (zero specificity). */
:where(svg.i) { width: 1.1em; height: 1.1em; vertical-align: -0.18em; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-base)/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100%;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
:lang(hi) body, [lang="hi"] { font-family: var(--font-hi), var(--font-body); }
h1, h2, h3, h4 { font-family: var(--font-display); font-stretch: var(--display-stretch); color: var(--ink); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(hi) h4 { font-family: var(--font-hi); line-height: 1.25; }
h1 { font-size: var(--fs-2xl); font-weight: 750; }
h2 { font-size: var(--fs-xl); font-weight: 700; }
h3 { font-family: var(--font-body); font-stretch: 100%; font-size: var(--fs-md); font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
a { color: var(--brand-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-soft); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--surface); }
#main:focus { outline: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.eyebrow { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 12px); }
.row { display: flex; align-items: center; gap: var(--gap, 10px); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.wrap-narrow { max-width: 760px; }
.wrap-mid { max-width: 980px; }

/* ---------- Demo bar ---------- */
.demo-bar { background: var(--sun-soft); color: var(--sun-ink); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.demo-bar .wrap { display: flex; gap: 8px 16px; align-items: center; justify-content: space-between; padding-block: 8px; flex-wrap: wrap; }
.demo-bar strong { font-weight: 650; }
.demo-bar button { background: none; border: 0; padding: 2px 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-stretch: 88%; font-weight: 750; font-size: 1.45rem; letter-spacing: -0.01em; flex-shrink: 0; line-height: 1; }
.logo:hover { color: var(--ink); }
.logo svg { width: 30px; height: 30px; flex-shrink: 0; }
.nav-main { display: flex; gap: 2px; align-items: center; }
.nav-main a { position: relative; text-decoration: none; color: var(--ink-2); font-weight: 550; padding: 8px 12px; border-radius: var(--r-sm); font-size: 0.95rem; }
.nav-main a:hover { color: var(--ink); background: var(--surface-2); }
.nav-main a[aria-current="page"] { color: var(--ink); }
.nav-main a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; border-radius: 2px; background: var(--brand); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.lang-toggle button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 650; color: var(--ink-3); cursor: pointer; min-height: 28px; }
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.nav-icon-link { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink-2); text-decoration: none; }
.nav-icon-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-icon-link svg { width: 20px; height: 20px; }
.dot-count { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--surface); }
.icon-btn.menu-btn { display: none; }
.user-menu { position: relative; }
.user-menu > button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 10px 3px 3px; cursor: pointer; font-weight: 600; font-size: var(--fs-sm); max-width: 220px; min-height: 38px; }
.user-menu > button:hover { border-color: var(--line-strong); }
.user-menu > button span.name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 236px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; z-index: 70; animation: pop 0.16s var(--ease); }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; border: 0; background: none; color: var(--ink); text-decoration: none; font-size: var(--fs-sm); cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--ink); }
.dropdown svg { width: 17px; height: 17px; color: var(--ink-3); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.dropdown .who { padding: 8px 10px 10px; }

.mobile-nav { border-top: 1px solid var(--line); background: var(--surface); }
.site-header .mobile-nav .wrap { display: flex; flex-direction: column; align-items: stretch; height: auto; padding-block: 6px 16px; gap: 0; }
.mobile-nav a, .mobile-nav button.linklike { padding: 13px 4px; text-decoration: none; color: var(--ink); font-weight: 550; border-bottom: 1px solid var(--line); background: none; border-inline: 0; border-top: 0; text-align: left; cursor: pointer; }
.mobile-nav a[aria-current="page"] { color: var(--brand-ink); }
.mobile-nav .row { padding-top: 14px; }

@media (max-width: 900px) {
  .nav-main, .nav-right .hide-sm { display: none; }
  .icon-btn.menu-btn { display: inline-grid; }
  .site-header .wrap { gap: 12px; }
}

/* ---------- Buttons ---------- */
.btn { --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--h); padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 620; font-size: 0.95rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s; position: relative; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-sun { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover, .btn-sun:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--line-input); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--surface); }
.btn-ink:hover { background: color-mix(in srgb, var(--ink) 86%, var(--brand)); color: var(--surface); }
.btn-ink[aria-busy="true"]::after { border-color: var(--surface); border-top-color: transparent; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-sm { --h: 36px; padding: 0 12px; font-size: var(--fs-sm); border-radius: 8px; gap: 6px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-lg { --h: 52px; padding: 0 24px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn[aria-busy="true"] { color: transparent !important; pointer-events: none; }
.btn[aria-busy="true"] svg { visibility: hidden; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink-3); border-top-color: transparent; animation: spin 0.7s linear infinite; }
.btn-primary[aria-busy="true"]::after, .btn-sun[aria-busy="true"]::after { border-color: var(--on-brand); border-top-color: transparent; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn.save[aria-pressed="true"] { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: var(--brand-soft); }
.icon-btn.save[aria-pressed="true"] svg { fill: currentColor; }
.icon-btn.plain { border-color: transparent; background: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-pad { padding: 20px; }
.card-pad-lg { padding: clamp(20px, 3vw, 32px); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-tight { padding-block: clamp(28px, 4vw, 40px) clamp(40px, 6vw, 64px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { color: var(--ink-2); max-width: 60ch; margin-top: 8px; }
.page-head { padding-block: 32px 22px; }
.page-head p { color: var(--ink-2); margin-top: 8px; max-width: 62ch; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); text-decoration: none; font-weight: 550; font-size: var(--fs-sm); margin-bottom: 14px; min-height: 32px; }
.back-link:hover { color: var(--ink); }
.back-link svg { width: 16px; height: 16px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ---------- Pills, chips, badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 620; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; line-height: 1.2; }
.pill svg { width: 13px; height: 13px; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-info { background: var(--info-soft); color: var(--info); }
.pill-brand { background: var(--brand-soft); color: var(--brand-ink); }
.pill-sun { background: var(--sun-soft); color: var(--sun-ink); }
.verified { display: inline-flex; align-items: center; color: var(--brand); flex-shrink: 0; }
.verified svg { width: 17px; height: 17px; fill: var(--brand); stroke: var(--surface); }
.sample-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.02em; color: var(--sun-ink); background: var(--sun-soft); border-radius: 4px; padding: 1px 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-size: var(--fs-sm); font-weight: 560; cursor: pointer; text-decoration: none; transition: border-color 0.15s, background-color 0.15s, color 0.15s; }
.chip:hover { border-color: var(--line-input); color: var(--ink); }
.chip[aria-pressed="true"], .chip.active { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.area-line { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: var(--fs-sm); min-width: 0; }
.metro { display: inline-flex; gap: 3px; flex-shrink: 0; }
.metro i { width: 9px; height: 9px; border-radius: 50%; display: block; box-shadow: 0 0 0 1.5px var(--surface); }

/* ---------- Avatar ---------- */
.avatar { --size: 44px; width: var(--size); height: var(--size); border-radius: 50%; display: inline-grid; place-items: center; font-family: var(--font-display); font-stretch: 90%; font-weight: 700; font-size: calc(var(--size) * 0.4); flex-shrink: 0; background: var(--av-1); color: var(--av-1-ink); line-height: 1; }
.avatar.biz { border-radius: 26%; }
.avatar.c2 { background: var(--av-2); color: var(--av-2-ink); }
.avatar.c3 { background: var(--av-3); color: var(--av-3-ink); }
.avatar.c4 { background: var(--av-4); color: var(--av-4-ink); }
.avatar.c5 { background: var(--av-5); color: var(--av-5-ink); }
.avatar.c6 { background: var(--av-6); color: var(--av-6-ink); }
img.avatar { object-fit: cover; padding: 0; background: var(--surface-2); }

/* ---------- Cards: profiles & campaigns ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr)); gap: 16px; }
.g3 .grid-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.p-card, .c-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color 0.15s, box-shadow 0.15s; }
.p-card:hover, .c-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.p-card:focus-within, .c-card:focus-within { border-color: var(--brand); }
.p-card .stretch, .c-card .stretch { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.p-card .stretch:focus-visible, .c-card .stretch:focus-visible { outline-offset: 3px; }
.p-card .above, .c-card .above { position: relative; z-index: 2; }
.p-card-top { display: flex; gap: 12px; align-items: flex-start; }
.p-card-name { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 5px; font-weight: 650; font-size: 1.02rem; color: var(--ink); line-height: 1.25; min-width: 0; }
.p-card-name span:first-child { overflow-wrap: anywhere; }
.p-card-sub { color: var(--ink-3); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.p-card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.p-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: var(--r); }
.p-card-stats > div { padding: 9px 12px; min-width: 0; }
.p-card-stats > div + div { box-shadow: inset 1px 0 0 var(--line); }
.p-card-stats b { display: block; font-variant-numeric: tabular-nums; font-size: 1rem; font-weight: 650; }
.p-card-stats span { font-size: var(--fs-xs); color: var(--ink-3); white-space: nowrap; }
.p-card-bio { color: var(--ink-2); font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font-family: var(--font-display); font-stretch: 88%; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.25rem; line-height: 1; }
.price small { font-family: var(--font-body); font-stretch: 100%; font-weight: 500; color: var(--ink-3); font-size: var(--fs-sm); }
.c-card { gap: 12px; }
.c-card h3 { font-size: 1.08rem; }
.budget { font-family: var(--font-display); font-stretch: 88%; font-weight: 700; font-size: 1.35rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.c-card-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: var(--fs-sm); }
.c-card-facts span { display: inline-flex; align-items: center; gap: 5px; }
.c-card-facts svg { width: 15px; height: 15px; color: var(--ink-3); }
.ticket-edge { border-top: 1px dashed var(--line-strong); margin: 2px -18px 0; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.field .opt { font-weight: 450; color: var(--ink-3); }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-input); border-radius: 10px; background: var(--surface); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: 0.85; }
.textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6274' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 12px center; background-size: 16px; background-repeat: no-repeat; cursor: pointer; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; }
.input[readonly] { background: var(--surface-2); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field.has-error .input:focus, .field.has-error .select:focus, .field.has-error .textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }
.field-error { color: var(--danger); font-size: var(--fs-sm); font-weight: 550; display: flex; gap: 6px; align-items: flex-start; }
.field-error::before { content: "!"; flex-shrink: 0; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--danger); color: var(--surface); font-size: 11px; font-weight: 800; line-height: 1; }
.field-error[hidden] { display: none; }
.hint { color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.45; }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 600; pointer-events: none; }
.input-prefix .input { padding-left: 30px; }
.input-action { position: relative; }
.input-action .input { padding-right: 76px; }
.input-action button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--brand-ink); font-weight: 650; font-size: var(--fs-sm); cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.input-action button:hover { background: var(--surface-2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-sm); cursor: pointer; background: var(--surface); }
.checks input { accent-color: var(--brand); }
.checks label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.checks label:has(input:focus-visible) { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.form-alert { padding: 12px 14px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: var(--fs-sm); font-weight: 550; border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-sm); align-items: flex-start; line-height: 1.5; }
.notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--ink-3); }
.notice a { color: inherit; font-weight: 650; }
.notice.sun { background: var(--sun-soft); color: var(--sun-ink); }
.notice.sun svg { color: var(--sun-ink); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.ok svg { color: var(--ok); }
.notice.info { background: var(--info-soft); color: var(--info); }
.notice.info svg { color: var(--info); }
.notice.danger { background: var(--danger-soft); color: var(--danger); }
.notice.danger svg { color: var(--danger); }

/* Segmented choice used in the brief builder */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-sm); font-weight: 560; cursor: pointer; background: var(--surface); color: var(--ink-2); }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.seg label:has(input:focus-visible) { outline: 2.5px solid var(--brand); outline-offset: 2px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 8px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: none; padding: 11px 14px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-size: 0.95rem; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.tab .count { font-size: 11px; background: var(--surface-2); padding: 1px 7px; border-radius: 999px; color: var(--ink-2); }
.tab[aria-selected="true"] .count, .tab[aria-current="page"] .count { background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- Empty & loading ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 48px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); color: var(--ink-2); background: var(--surface); }
.empty .empty-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand-ink); margin-bottom: 4px; }
.empty .empty-icon svg { width: 24px; height: 24px; }
.empty h3 { font-size: 1.08rem; }
.empty p { max-width: 46ch; font-size: var(--fs-sm); }
.empty .btn { margin-top: 6px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; border-radius: 8px; }
.sk-card { height: 248px; border-radius: var(--r-lg); }
.sk-line { height: 14px; margin-bottom: 10px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.page-loading { display: grid; place-items: center; min-height: 40vh; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }
.error-state { padding: 56px 0; }

/* ---------- Toasts & modal ---------- */
.toast-region { position: fixed; z-index: 120; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: var(--surface); box-shadow: var(--shadow-lg); font-size: var(--fs-sm); font-weight: 550; animation: toast-in 0.22s var(--ease); }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.toast.error { background: var(--danger); color: #fff; }
.toast a { color: inherit; font-weight: 700; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.modal-backdrop { position: fixed; inset: 0; z-index: 110; background: var(--scrim); display: grid; place-items: center; padding: 16px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); animation: fade 0.18s ease; }
.modal { width: min(580px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: pop 0.22s var(--ease); overscroll-behavior: contain; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 0; }
.modal-head h2 { font-size: 1.5rem; }
.modal-head p { color: var(--ink-2); font-size: var(--fs-sm); margin-top: 6px; }
.modal-body { padding: 18px 22px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px 20px; flex-wrap: wrap; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); }
@media (max-width: 560px) {
  .modal-backdrop { place-items: end center; padding: 0; }
  .modal { width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: calc(100dvh - 24px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .modal-foot .btn { flex: 1 1 auto; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Landing ---------- */
.hero { padding-block: clamp(32px, 6vw, 80px) clamp(36px, 5vw, 64px); background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.hero h1 { font-size: var(--fs-hero); font-weight: 780; font-stretch: 76%; letter-spacing: -0.01em; line-height: 0.94; max-width: 15ch; }
:lang(hi) .hero h1 { font-family: var(--font-hi); line-height: 1.15; max-width: 16ch; font-size: clamp(2.3rem, 4.4vw + 1rem, 4.2rem); }
.hero-place { color: var(--ink-3); font-size: var(--fs-sm); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.hero-place .metro i { width: 8px; height: 8px; }
.hl { color: inherit; }
.hero-lede { font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem); color: var(--ink-2); max-width: 52ch; margin-top: 22px; line-height: 1.6; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-search { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); max-width: 640px; }
.hero-search .field > label { font-size: var(--fs-xs); color: var(--ink-2); }
.hero-search .btn { min-height: 46px; }
.hero-search-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--ink-3); }
.linkish { background: none; border: 0; padding: 0; color: var(--brand-ink); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font-size: inherit; min-height: 24px; }
.linkish svg { width: 14px; height: 14px; }
.linkish:hover { color: var(--brand); }
.hero-alt { margin-top: 16px; color: var(--ink-3); font-size: var(--fs-sm); }
.hero-facts { margin-top: 18px; color: var(--ink-3); font-size: var(--fs-sm); min-height: 1.5em; }
.hero-facts b { color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .hero-search { grid-template-columns: 1fr; padding: 14px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* Rate board: live creators near the chosen area, with rupee rates */
.rate-board { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.rate-board-head { padding: 16px 18px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rate-board-head h2 { font-size: 1.5rem; font-stretch: 80%; }
.rate-board-head p { font-size: var(--fs-sm); color: var(--ink-3); margin-top: 4px; }
.rate-board-head .metro { margin-top: 8px; }
.rate-rows { list-style: none; margin: 0; padding: 0; }
.rate-rows li + li { border-top: 1px solid var(--line); }
.rate-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; text-decoration: none; color: var(--ink); }
.rate-row:hover { background: var(--bg); color: var(--ink); }
.rate-row .who { min-width: 0; }
.rate-row .who b { display: flex; align-items: center; gap: 4px; font-weight: 640; overflow: hidden; white-space: nowrap; }
.rate-row .who b span { overflow: hidden; text-overflow: ellipsis; }
.rate-row .who small { display: block; color: var(--ink-3); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rate-row .rate { text-align: right; }
.rate-row .rate b { font-family: var(--font-display); font-stretch: 85%; font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; display: block; line-height: 1.1; }
.rate-row .rate small { color: var(--ink-3); font-size: var(--fs-xs); }
.rate-board-foot { padding: 12px 18px; border-top: 1px solid var(--line); background: var(--bg); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--fs-sm); }
.rate-board-empty { padding: 28px 18px; color: var(--ink-2); font-size: var(--fs-sm); }
.rate-board[aria-busy="true"] .rate-rows { opacity: 0.5; transition: opacity 0.2s; }

/* Trust row */
.trust-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.trust-row > div { display: flex; gap: 14px; align-items: flex-start; padding: 22px 20px 22px 0; }
.trust-row > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.trust-row svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.trust-row b { display: block; font-weight: 650; margin-bottom: 2px; }
.trust-row p { color: var(--ink-2); font-size: var(--fs-sm); }
@media (max-width: 800px) {
  .trust-row { grid-template-columns: 1fr; }
  .trust-row > div { padding: 16px 0; }
  .trust-row > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.cat-tile { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 56px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color 0.15s, background-color 0.15s; }
.cat-tile svg { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; }
.cat-tile:hover { border-color: var(--brand); color: var(--ink); }
.cat-tile:hover svg { color: var(--brand); }

.area-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.area-tile { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color 0.15s; }
.area-tile:hover { border-color: var(--brand); color: var(--ink); }
.area-tile .t-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.area-tile b { font-family: var(--font-display); font-stretch: 86%; font-weight: 700; font-size: 1.15rem; }
.area-tile .pin { font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.area-tile .t-bot { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-xs); color: var(--ink-3); align-items: center; }

.split-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 32px); counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--ink); }
.step .step-n { font-family: var(--font-display); font-stretch: 80%; font-size: 2.4rem; font-weight: 780; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--ink-2); font-size: var(--fs-sm); max-width: 38ch; }
@media (max-width: 760px) { .split-steps { grid-template-columns: 1fr; } }

.band { background: var(--surface); border-block: 1px solid var(--line); }
.creator-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.creator-band h2 { font-size: var(--fs-2xl); }
.creator-band p { color: var(--ink-2); margin-top: 12px; max-width: 48ch; }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.tick-list svg { width: 20px; height: 20px; color: var(--ok); flex-shrink: 0; margin-top: 2px; }
.tick-list b { color: var(--ink); font-weight: 650; }
@media (max-width: 800px) { .creator-band { grid-template-columns: 1fr; } }

.pricing-band { background: var(--ink); color: var(--surface); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.pricing-band h2 { color: inherit; font-size: var(--fs-2xl); }
.pricing-band p { color: color-mix(in srgb, var(--surface) 78%, var(--ink)); margin-top: 10px; max-width: 52ch; }
.pricing-band .big { font-family: var(--font-display); font-stretch: 78%; font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 780; color: inherit; line-height: 1; font-variant-numeric: tabular-nums; }
.pricing-band .big span { font-family: var(--font-body); font-stretch: 100%; font-size: 1rem; font-weight: 500; opacity: 0.8; }
.pricing-band ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.pricing-band li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: color-mix(in srgb, var(--surface) 86%, var(--ink)); }
.pricing-band li svg { width: 18px; height: 18px; color: var(--brand-soft); flex-shrink: 0; margin-top: 1px; }
.pricing-band .btn-primary, .pricing-band .btn-sun { background: var(--surface); color: var(--ink); }
.pricing-band .btn-primary:hover, .pricing-band .btn-sun:hover { background: var(--brand-soft); color: var(--ink); }
.pricing-band :focus-visible { outline-color: var(--surface); }
@media (max-width: 760px) { .pricing-band { grid-template-columns: 1fr; } }

.final-cta { text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: clamp(28px, 4vw, 40px); border-top: 2px solid var(--ink); }
.final-cta h2 { font-size: var(--fs-2xl); max-width: 20ch; }

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 0 4px; }
.faq summary { cursor: pointer; font-weight: 620; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--brand-ink); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 70ch; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(20px, 5vw, 64px); align-items: start; }
.faq-grid h2 { font-size: var(--fs-2xl); }
.faq-grid > div > p { color: var(--ink-2); margin-top: 10px; }
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; } }

/* Legacy landing pieces still used by the creator home */
.hero-board { position: relative; display: grid; gap: 12px; }
.hero-board .board-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--fs-sm); color: var(--ink-3); }
.mini-tickets { display: grid; gap: 0; }
.mini-ticket { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 18px; color: var(--ink); text-decoration: none; }
.mini-ticket + .mini-ticket { border-top: 1px solid var(--line); }
.mini-ticket:hover { background: var(--bg); color: var(--ink); }
.mini-ticket b { font-weight: 650; }
.mini-ticket .num { font-family: var(--font-display); font-stretch: 85%; font-size: 1.15rem; white-space: nowrap; }
.aud-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); margin-bottom: 18px; }
.aud-switch button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 650; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; }
.aud-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Discover ---------- */
.discover { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 18px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); max-height: calc(100dvh - var(--header-h) - 32px); overflow-y: auto; }
.filters h2 { font-size: 1rem; font-family: var(--font-body); font-stretch: 100%; font-weight: 700; letter-spacing: 0; }
.filter-toggle { display: none; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .select { width: auto; }
.search-box { position: relative; flex: 1 1 260px; min-width: 0; }
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search-box .input { padding-left: 40px; }
.result-meta { color: var(--ink-3); font-size: var(--fs-sm); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-height: 1.5em; }
.result-meta b { color: var(--ink); }
.load-more { display: flex; justify-content: center; margin-top: 28px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; }
.active-filters button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 8px 0 12px; border-radius: 999px; border: 1px solid var(--brand); background: var(--brand-soft); color: var(--brand-ink); font-size: var(--fs-xs); font-weight: 620; cursor: pointer; }
.active-filters button svg { width: 14px; height: 14px; }
.active-filters button:hover { background: var(--surface); }
@media (max-width: 900px) {
  .discover { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; max-height: none; }
  .filters[data-collapsed="true"] { display: none; }
  .filter-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .toolbar .select { flex: 1 1 auto; min-width: 0 !important; }
}

/* ---------- Profile ---------- */
.profile-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.profile-hero h1 { display: flex; align-items: center; gap: 8px; font-size: clamp(1.9rem, 2vw + 1.2rem, 2.6rem); flex-wrap: wrap; }
.profile-hero h1 .verified svg { width: 24px; height: 24px; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .profile-hero { grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
  .profile-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .profile-actions .btn-primary { flex: 1 1 100%; order: -1; }
}
.profile-body { display: grid; grid-template-columns: minmax(0, 1fr) 328px; gap: 24px; margin-top: 24px; align-items: start; }
@media (max-width: 900px) { .profile-body { grid-template-columns: 1fr; } }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.stat-row > div { padding: 16px 18px; }
.stat-row > div + div { border-left: 1px solid var(--line); }
.stat-row b { display: block; font-family: var(--font-display); font-stretch: 85%; font-size: 1.7rem; font-weight: 720; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-row span { font-size: var(--fs-sm); color: var(--ink-3); }
@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row > div:nth-child(3) { border-left: 0; }
  .stat-row > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
.rate-list { display: grid; }
.rate-list > div { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.rate-list > div:last-child { border-bottom: 0; }
.rate-list b { font-family: var(--font-display); font-stretch: 85%; font-variant-numeric: tabular-nums; font-size: 1.25rem; font-weight: 700; }
.portfolio { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.pf-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 150px; padding: 14px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.pf-tile .pill { align-self: flex-start; }
.pf-tile .t { font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; }
.pf-tile .m { font-family: var(--font-display); font-stretch: 85%; font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; margin-top: 4px; }
.pf-tile a { font-size: var(--fs-sm); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; margin-top: 6px; }
.pf-tile a svg { width: 14px; height: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: var(--fs-sm); margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink); font-weight: 550; min-width: 0; overflow-wrap: anywhere; }
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; gap: 8px; position: sticky; bottom: 0; z-index: 40; margin: 20px calc(-1 * var(--gutter-l)) 0; padding: 12px var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgb(27 21 32 / 0.25); }
  .sticky-cta .btn { flex: 1 1 auto; }
}

/* ---------- Requests ---------- */
.req-list { display: grid; gap: 12px; }
.req { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 16px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); align-items: start; }
.req .req-msg { color: var(--ink-2); font-size: var(--fs-sm); margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.req .req-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) {
  .req { grid-template-columns: auto minmax(0, 1fr); }
  .req .req-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- Messages ---------- */
.inbox { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: calc(100dvh - var(--header-h) - 140px); min-height: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.inbox-list { border-right: 1px solid var(--line); overflow-y: auto; }
.inbox-item { display: flex; gap: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.inbox-item:hover { background: var(--bg); color: var(--ink); }
.inbox-item[aria-current="true"] { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.inbox-item .grow { display: flex; flex-direction: column; gap: 2px; }
.inbox-item .preview { color: var(--ink-3); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item .unread-dot { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.thread-head { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.thread-head .back { display: none; }
.thread-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.day-sep { align-self: center; font-size: var(--fs-xs); color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; margin: 8px 0; }
.bubble { max-width: min(78%, 520px); padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.95rem; }
.bubble.mine { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-color: var(--brand); border-radius: 16px 16px 4px 16px; }
.bubble time { display: block; font-size: 11px; opacity: 0.75; margin-top: 3px; text-align: right; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; background: var(--surface); }
.composer .textarea { min-height: 46px; max-height: 140px; resize: none; }
.composer-locked { padding: 14px 16px; border-top: 1px solid var(--line); background: var(--sun-soft); color: var(--sun-ink); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: var(--fs-sm); }
.thread-empty { flex: 1; display: grid; place-items: center; padding: 24px; }
@media (max-width: 800px) {
  .inbox { grid-template-columns: 1fr; height: calc(100dvh - var(--header-h) - 110px); }
  .inbox[data-view="thread"] .inbox-list { display: none; }
  .inbox[data-view="list"] .thread { display: none; }
  .thread-head .back { display: inline-grid; }
}

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .dash-grid { grid-template-columns: 1fr; } }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; transition: border-color 0.15s; }
a.tile:hover { border-color: var(--line-input); color: var(--ink); }
.tile b { font-family: var(--font-display); font-stretch: 82%; font-size: 2.1rem; font-weight: 740; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tile span { font-size: var(--fs-sm); color: var(--ink-3); }
.tile.attn { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: var(--brand-soft); }
.tile.attn b { color: var(--brand-ink); }
.meter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.checklist li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.checklist li .tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-input); display: grid; place-items: center; flex-shrink: 0; }
.checklist li.done { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.checklist li.done .tick { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.checklist .tick svg { width: 12px; height: 12px; }
.list-rows { display: grid; }
.list-rows > * { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.list-rows > a:hover { color: var(--ink); background: linear-gradient(90deg, transparent, var(--bg) 8%, var(--bg) 92%, transparent); }
.list-rows > *:last-child { border-bottom: 0; }

/* ---------- Tables (admin) ---------- */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 720px; }
.table th { text-align: left; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 650; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--bg); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Pricing page ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset, var(--shadow); }
.plan .amount { font-family: var(--font-display); font-stretch: 80%; font-size: 2.8rem; font-weight: 780; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .amount small { font-family: var(--font-body); font-stretch: 100%; font-size: 1rem; font-weight: 500; color: var(--ink-3); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: var(--fs-sm); color: var(--ink-2); }
.plan li { display: flex; gap: 8px; }
.plan li svg { width: 17px; height: 17px; color: var(--ok); flex-shrink: 0; margin-top: 2px; }
.plan .btn { margin-top: auto; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(24px, 5vw, 72px); align-items: start; padding-block: clamp(28px, 5vw, 64px); }
.auth-aside { padding-top: 12px; }
.auth-aside h1 { font-size: clamp(2.4rem, 3.4vw + 1rem, 3.8rem); font-stretch: 78%; line-height: 0.98; }
.auth-aside p { color: var(--ink-2); margin-top: 16px; max-width: 46ch; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-pick label { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer; background: var(--surface); transition: border-color 0.15s; }
.role-pick label:hover { border-color: var(--line-input); }
.role-pick label:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; background: var(--brand-soft); }
.role-pick input { position: absolute; opacity: 0; pointer-events: none; }
.role-pick label:has(input:focus-visible) { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.role-pick b { font-size: 0.98rem; }
.role-pick span { font-size: var(--fs-xs); color: var(--ink-3); }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-aside { display: none; } }
.persona-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 480px) { .persona-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 56px; }
.site-footer .wrap { padding-block: 44px calc(28px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.site-footer h4 { font-family: var(--font-body); font-stretch: 100%; font-size: var(--fs-sm); color: var(--ink); margin-bottom: 12px; font-weight: 650; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--fs-sm); }
.site-footer li { min-height: 32px; display: flex; align-items: center; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink-3); font-size: var(--fs-xs); border-top: 1px solid var(--line); padding-top: 18px; }
.copy-line { display: flex; align-items: center; gap: 6px; }
.copy-line > svg { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; }
.copy-line button { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 6px; border-radius: 6px; display: inline-grid; }
.copy-line button:hover { color: var(--ink); background: var(--surface-2); }
.copy-line button svg { width: 14px; height: 14px; }
@media (max-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Photos, portfolio rows ---------- */
.pf-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 130px; gap: 8px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.pf-row .pf-url { grid-column: 1 / -1; }
@media (max-width: 560px) { .pf-row { grid-template-columns: 1fr 1fr; } .pf-row .pf-title { grid-column: 1 / -1; order: -1; } }
.photo-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ---------- Small fixes ---------- */
.user-menu .i { width: 16px; height: 16px; color: var(--ink-3); }
button.tile { border: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; }
button.tile:hover { border-color: var(--line-input); }
@media (max-width: 480px) { .hide-xs { display: none; } .composer .btn { padding: 0 12px; } }

/* ---------- Reviews, ratings ---------- */
.stars { color: var(--star); letter-spacing: 1px; font-size: 0.95rem; white-space: nowrap; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; }
.p-card-rating { font-size: var(--fs-sm); color: var(--ink-2); }
.p-card-rating b { color: var(--star); }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.review { display: flex; gap: 12px; align-items: flex-start; }
.review + .review { padding-top: 16px; border-top: 1px solid var(--line); }
.star-input { border: 0; padding: 0; margin: 0; min-width: 0; }
.star-input legend { font-weight: 600; font-size: var(--fs-sm); padding: 0; margin-bottom: 6px; }
.star-row { display: flex; gap: 4px; }
.star-row label { position: relative; cursor: pointer; }
.star-row input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.star-row span[aria-hidden] { font-size: 2.1rem; line-height: 1; color: var(--line-strong); transition: color 0.1s; }
.star-row label.on span[aria-hidden] { color: var(--star); }
.star-row input:focus-visible + span { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Deal tracker ---------- */
.deal-steps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 0; flex-wrap: wrap; font-size: var(--fs-xs); }
.deal-steps li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 0; color: var(--ink-3); font-weight: 600; }
.deal-steps li + li::after { content: none; }
.deal-steps li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; box-sizing: border-box; }
.deal-steps li.done { color: var(--ok); }
.deal-steps li.done::before { background: currentColor; }

/* ---------- v7: shared bits ---------- */
.h-card { font-size: 1.15rem; }
.h-sub { font-family: var(--font-body); font-stretch: 100%; font-size: var(--fs-sm); font-weight: 650; margin-bottom: 4px; letter-spacing: 0; }
.deal-steps li.now { color: var(--brand-ink); }
.deal-steps li.now.done { color: var(--ok); }
.more-fields { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--bg); }
.more-fields > summary { cursor: pointer; font-weight: 600; font-size: var(--fs-sm); }
.more-fields .opt { font-weight: 450; color: var(--ink-3); }
.link-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: var(--fs-sm); }
.link-list a { display: inline-flex; gap: 4px; align-items: center; overflow-wrap: anywhere; }
.link-list svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Deliverable rows (brief, package, proposal forms) */
.deliv-rows { display: grid; gap: 8px; }
.deliv-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 40px; gap: 8px; align-items: center; }

/* ---------- Packages ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.pkg-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pkg-card.off { background: var(--bg); border-style: dashed; }
.pkg-card.off h3, .pkg-card.off .pkg-price { color: var(--ink-3); }
.pkg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pkg-top h3 { font-family: var(--font-body); font-stretch: 100%; font-size: 1rem; font-weight: 650; letter-spacing: 0; overflow-wrap: anywhere; }
.pkg-price { font-family: var(--font-display); font-stretch: 85%; font-size: 1.35rem; font-weight: 720; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pkg-deliv { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pkg-deliv li { font-size: var(--fs-xs); background: var(--brand-soft); color: var(--brand-ink); padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.pkg-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-xs); color: var(--ink-3); }
.pkg-facts span { display: inline-flex; gap: 5px; align-items: center; }
.pkg-facts svg { width: 14px; height: 14px; }
.pkg-desc { font-size: var(--fs-sm); color: var(--ink-2); white-space: pre-line; }
.pkg-more { font-size: var(--fs-sm); color: var(--ink-2); }
.pkg-more > summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.pkg-more p { margin-top: 6px; }
.pkg-card > .btn { align-self: flex-start; margin-top: auto; }
.pkg-tools { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.pkg-tools .pill { align-self: flex-start; }
.pkg-picks { display: grid; gap: 8px; }
.pkg-pick { position: relative; display: flex; gap: 12px; align-items: center; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer; background: var(--surface); }
.pkg-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pkg-pick .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pkg-pick:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.pkg-pick:has(input:focus-visible) { outline: 2.5px solid var(--brand); outline-offset: 2px; }

/* ---------- Visual portfolio ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.pf-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.pf-media { position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); overflow: hidden; }
.pf-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; color: var(--ink-3); font-size: var(--fs-xs); background: repeating-linear-gradient(135deg, var(--surface-2) 0 12px, var(--bg) 12px 24px); }
.pf-placeholder svg { width: 26px; height: 26px; }
.pf-type { position: absolute; top: 8px; left: 8px; background: color-mix(in srgb, var(--surface) 92%, transparent); }
.pf-body { display: flex; flex-direction: column; gap: 6px; padding: 12px; flex: 1; }
.pf-body h3 { font-family: var(--font-body); font-stretch: 100%; font-size: var(--fs-sm); font-weight: 650; line-height: 1.35; letter-spacing: 0; overflow-wrap: anywhere; }
.pf-desc { font-size: var(--fs-xs); color: var(--ink-2); }
.pf-link { font-size: var(--fs-sm); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; margin-top: auto; }
.pf-link svg { width: 14px; height: 14px; }
.metric-chips { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--fs-xs); color: var(--ink-2); }
.metric-chips b { font-variant-numeric: tabular-nums; color: var(--ink); }
.pf-edit-top { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; }
.pf-preview { border-radius: var(--r); border: 1px solid var(--line); }
.metric-inputs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.metric-inputs label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }

/* ---------- Requests: brief summary ---------- */
.brief-facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 8px 0 0; font-size: var(--fs-sm); }
.brief-facts dt { color: var(--ink-3); }
.brief-facts dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- Deal workspace ---------- */
.deal-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; align-items: center; }
.deal-name { font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.deal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; margin-top: 20px; align-items: start; }
@media (max-width: 960px) { .deal-grid { grid-template-columns: 1fr; } .deal-head { grid-template-columns: 1fr; } }
.next-step { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: inset 3px 0 0 var(--brand); }
.terms-kv { grid-template-columns: minmax(110px, auto) 1fr; }
.proposal { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); background: color-mix(in srgb, var(--warn-soft) 40%, var(--surface)); }
.table.cmp-mini { min-width: 0; }
.cmp-mini th[scope="row"] { color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.cmp-mini td.changed { font-weight: 650; color: var(--ink); background: var(--warn-soft); }
.sub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.submission { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.submission .feedback { padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.metric-grid > div { padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.metric-grid b { display: block; font-family: var(--font-display); font-stretch: 85%; font-size: 1.25rem; font-weight: 720; font-variant-numeric: tabular-nums; }
.metric-grid span { font-size: var(--fs-xs); color: var(--ink-3); }
.shots { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shots figure { position: relative; margin: 0; width: 84px; height: 112px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.shots img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shots figure .icon-btn { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; background: var(--surface); }
.shot-add { display: inline-flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; width: 84px; height: 112px; border: 1px dashed var(--line-strong); border-radius: 8px; font-size: 11px; text-align: center; padding: 6px; color: var(--ink-3); cursor: pointer; }
.shot-add:hover { border-color: var(--brand); color: var(--brand-ink); }
.shot-add svg { width: 20px; height: 20px; }
.shot-add[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; position: relative; padding-bottom: 14px; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; left: 6px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.timeline .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--brand); background: var(--surface); margin-top: 3px; }
.timeline li:last-child .dot { background: var(--brand); }
.timeline p { overflow-wrap: anywhere; }

/* ---------- Comparison ---------- */
.cmp-toggle { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 620; cursor: pointer; }
.cmp-toggle svg { width: 14px; height: 14px; }
.cmp-toggle:hover { border-color: var(--line-input); color: var(--ink); }
.cmp-toggle[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn[data-compare][aria-pressed="true"] { border-color: var(--ink); }
.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgb(27 21 32 / 0.25); padding-bottom: env(safe-area-inset-bottom, 0px); animation: pop 0.16s var(--ease); }
.compare-tray .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; font-size: var(--fs-sm); }
.compare-tray .wrap > span:first-child { display: inline-flex; gap: 8px; align-items: center; }
.compare-tray svg { width: 18px; height: 18px; }
body:has(.compare-tray) .site-footer { padding-bottom: 64px; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--ink-3); margin-bottom: 12px; }
.src { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; letter-spacing: 0.01em; vertical-align: 1px; white-space: nowrap; }
.src.self { background: var(--sun-soft); color: var(--sun-ink); }
.src.rec { background: var(--ok-soft); color: var(--ok); }
.cmp-table { min-width: calc(130px + var(--cols, 3) * 230px); table-layout: fixed; }
.cmp-table th, .cmp-table td { width: 230px; }
.cmp-table .cmp-label { width: 130px; position: sticky; left: 0; z-index: 1; background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 650; white-space: normal; }
.cmp-table thead th { background: var(--surface); vertical-align: top; text-align: left; white-space: normal; font-size: var(--fs-sm); color: var(--ink); }
.cmp-table thead .cmp-label { background: var(--surface-2); }
.cmp-table tbody tr:hover td { background: transparent; }
.cmp-head { display: flex; gap: 10px; align-items: center; }
.cmp-name { font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.cmp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cmp-pf { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.cmp-pf li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: start; }
.cmp-pf img, .cmp-pf-ph { width: 44px; height: 55px; object-fit: cover; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-3); }
.cmp-pf-ph svg { width: 18px; height: 18px; }
.cmp-pf a { display: inline-flex; gap: 3px; align-items: center; }
.cmp-pf a svg { width: 12px; height: 12px; }
@media (max-width: 640px) {
  .cmp-table { min-width: calc(96px + var(--cols, 3) * 200px); }
  .cmp-table th, .cmp-table td { width: 200px; padding: 10px; }
  .cmp-table .cmp-label { width: 96px; }
}

/* ---------- Notifications ---------- */
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; color: var(--ink); }
.notif:hover { border-color: var(--line-input); color: var(--ink); }
.notif.unread { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.notif .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.notif-body { overflow-wrap: anywhere; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.notif-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex-shrink: 0; }
.notif.unread .notif-icon { background: var(--surface); color: var(--brand-ink); }
.notif-icon svg { width: 17px; height: 17px; }
.unread-pip { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); margin-top: 6px; flex-shrink: 0; }
@media (max-width: 560px) {
  .pf-edit-top { grid-template-columns: 88px minmax(0, 1fr); }
  .deliv-row { grid-template-columns: minmax(0, 1fr) 70px 36px; }
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ---------- Motion ---------- */
.view-enter { animation: view-in 0.2s var(--ease); }
@keyframes view-in { from { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .chip, .input, .select, .textarea, .card, .p-card, .c-card, .pkg-card, .pf-card, .cmp-toggle, .notif { border: 1px solid CanvasText; }
  .verified svg { fill: CanvasText; }
}
