/* ============================================================
   MesterPont — design system
   ============================================================ */

:root {
  /* Brand: deep indigo for trust, warm amber for the trade/construction note */
  --ink:        #15131f;
  --ink-2:      #413c55;
  --ink-3:      #6b6485;
  --ink-4:      #9a93b0;

  --primary:    #4c35de;
  --primary-2:  #3a27b5;
  --primary-50: #f1eeff;
  --primary-100:#e2dcff;

  --accent:     #ff8a3d;
  --accent-50:  #fff2e8;

  --ok:         #0f9d58;
  --ok-50:      #e8f7ef;
  --warn:       #c77700;
  --warn-50:    #fff6e5;
  --danger:     #d8392b;
  --danger-50:  #fdeceb;

  --bg:         #ffffff;
  --bg-2:       #f7f6fb;
  --bg-3:       #efedf6;
  --line:       #e5e2f0;
  --line-2:     #d6d2e6;

  --radius:     14px;
  --radius-lg:  20px;
  --radius-sm:  9px;

  --shadow-xs: 0 1px 2px rgba(21,19,31,.06);
  --shadow-sm: 0 2px 8px rgba(21,19,31,.07);
  --shadow:    0 6px 24px rgba(21,19,31,.09);
  --shadow-lg: 0 18px 50px rgba(21,19,31,.14);

  --font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --maxw: 1180px;
}

/* ============================================================
   Self-hosted fonts (public/fonts/) — served from this site only,
   never from Google, so no visitor IP address leaves the server
   just to load a typeface. "latin" subset only: the site is ES/EN.
   ============================================================ */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/plus-jakarta-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/plus-jakarta-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/plus-jakarta-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/plus-jakarta-sans-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 800; font-display: swap;
  src: url('/fonts/plus-jakarta-sans-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/inter-600.woff2') format('woff2');
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.18; letter-spacing: -0.022em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.18rem; font-weight: 700; }
h4 { font-size: .95rem; font-weight: 700; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }

/* Icon slot. The glyph is inline SVG injected from /img/sprite.svg, so the
   font-size rules scattered through this file still control the size. */
.ms {
  font-size: 1.25em; line-height: 1;
  display: inline-block; vertical-align: -0.17em;
  width: 1em; height: 1em; flex-shrink: 0;
  user-select: none;
}
.ms > svg { display: block; width: 100%; height: 100%; }
.ms:empty { display: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* ============================================================
   Launch countdown bar
   ============================================================ */
.cdbar {
  background: linear-gradient(100deg, #0f9d58, #18b26a);
  color: #fff; font-size: .9rem;
}
.cdbar.is-hidden { display: none; }
.cdbar.is-over { background: linear-gradient(100deg, #c77700, #e09020); }
.cdbar__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 9px 20px;
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; text-align: center;
}
.cdbar__label { font-weight: 650; }
.cdbar__clock {
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
  background: rgba(0,0,0,.18); border-radius: 8px; padding: 4px 11px;
}
.cdbar__clock b { font-weight: 800; font-size: 1.02em; }
.cdbar__cta {
  color: #fff; font-weight: 750; text-decoration: underline;
  text-underline-offset: 2px; white-space: nowrap;
}
.cdbar__cta:hover { opacity: .85; }

/* ============================================================
   Credit packages
   ============================================================ */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 14px; }
.pack {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  border: 1.5px solid var(--line-2); border-radius: var(--radius);
  padding: 22px 18px 18px; background: #fff; transition: .16s;
}
.pack:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.pack--pop { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.pack__flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .7rem; font-weight: 800;
  letter-spacing: .04em; padding: 4px 11px; border-radius: 99px; white-space: nowrap;
}
.pack__price { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }
.pack__bonus { font-size: .87rem; font-weight: 700; color: var(--ok); }
.pack__bonus.is-none { color: var(--ink-4); font-weight: 500; }
.pack__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 10px; border-top: 1px solid var(--line); margin-top: auto;
}
.pack__pct {
  position: absolute; top: 14px; right: 14px;
  background: var(--ok-50); color: #0b7a44;
  font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 7px;
}
.pack .btn { margin-top: 10px; }

/* ============================================================
   Trust & security
   ============================================================ */
.trustgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.trustcard {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2);
}
.trustcard__ic {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--ok-50); color: #0b7a44;
}
.trustcard p { margin-top: 3px; line-height: 1.5; }

.securenote {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border-radius: 10px; background: var(--ok-50);
  color: #0b7a44; font-size: .85rem; font-weight: 650;
}

.trustrow {
  max-width: var(--maxw); margin-inline: auto;
  padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 10px 26px;
  justify-content: center; border-top: 1px solid var(--line);
}
.trustrow__item {
  display: flex; align-items: center; gap: 7px;
  font-size: .83rem; font-weight: 600; color: var(--ink-3);
}
.trustrow__item .ms { font-size: 17px; color: var(--ok); }

/* ============================================================
   Top bar — the tradesperson entry point, as on MyBuilder
   ============================================================ */
.topbar {
  background: var(--primary-50);
  border-bottom: 1px solid var(--line);
  font-size: .855rem;
}
.topbar__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 9px 20px;
  display: flex; justify-content: center; align-items: center; gap: 8px;
  flex-wrap: wrap; text-align: center;
}
.topbar span { color: var(--ink-2); }
.topbar a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.topbar a:hover { color: var(--primary-2); }
.topbar.is-hidden { display: none; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 20px; height: 68px;
  display: flex; align-items: center; gap: 28px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #7c5cff);
  color: #fff; box-shadow: 0 4px 12px rgba(76,53,222,.3);
}
.brand__mark .ms { font-size: 21px; }
.brand__mark .hm { width: 23px; height: 23px; fill: currentColor; display: block; }
.brand__text { font-weight: 800; font-size: 1.22rem; letter-spacing: -.03em; }
.brand__text em { font-style: normal; color: var(--primary); }

.nav__links { display: flex; gap: 4px; flex: 1; }
.nav__links a {
  padding: 8px 13px; border-radius: 9px;
  font-size: .925rem; font-weight: 600; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav__links a:hover { background: var(--bg-3); color: var(--ink); }
.nav__links a.is-active { color: var(--primary); background: var(--primary-50); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__auth { display: flex; align-items: center; gap: 9px; }

.langswitch {
  display: flex; background: var(--bg-3);
  border-radius: 8px; padding: 2px; gap: 1px;
}
.langswitch button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: .72rem;
  letter-spacing: .04em; color: var(--ink-3);
  padding: 5px 9px; border-radius: 6px; transition: .15s;
}
.langswitch button:hover { color: var(--ink); }
.langswitch button.is-active { background: #fff; color: var(--primary); box-shadow: var(--shadow-xs); }

.nav__burger {
  display: none; border: 1px solid var(--line-2); background: #fff;
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  color: var(--ink-2); align-items: center; justify-content: center;
}
.nav__mobile {
  display: none; flex-direction: column; gap: 2px;
  padding: 10px 20px 18px; border-top: 1px solid var(--line); background: #fff;
}
.nav__mobile a {
  padding: 11px 12px; border-radius: 9px; font-weight: 600; color: var(--ink-2);
}
.nav__mobile a:hover { background: var(--bg-3); }
.nav__mobile.is-open { display: flex; }

/* Avatar / account chip */
.acct {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 12px 5px 5px; border-radius: 99px;
  border: 1px solid var(--line-2); background: #fff; cursor: pointer;
  font-family: var(--font); font-weight: 650; font-size: .88rem; color: var(--ink);
  transition: .15s;
}
.acct:hover { border-color: var(--primary); background: var(--primary-50); }
.avatar {
  width: 30px; height: 30px; border-radius: 99px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #8b6dff);
  color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: -.02em;
}
.avatar--lg { width: 62px; height: 62px; font-size: 1.4rem; }
.avatar--xl { width: 92px; height: 92px; font-size: 2rem; border-radius: 22px; }

.balpill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 99px;
  background: var(--ok-50); color: #0b7a44;
  font-weight: 750; font-size: .85rem; border: 1px solid #c3ead5;
}
.balpill.is-low { background: var(--warn-50); color: var(--warn); border-color: #f3dca8; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; border: 1px solid transparent;
  font-family: var(--font); font-size: .935rem; font-weight: 700;
  cursor: pointer; transition: .16s; white-space: nowrap; text-align: center;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .ms { font-size: 1.15em; }

.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 2px 10px rgba(76,53,222,.26); }
.btn--primary:hover:not(:disabled) { background: var(--primary-2); box-shadow: 0 6px 18px rgba(76,53,222,.34); transform: translateY(-1px); }

.btn--accent { background: var(--accent); color: #44210a; box-shadow: 0 2px 10px rgba(255,138,61,.3); }
.btn--accent:hover:not(:disabled) { background: #f97c2b; transform: translateY(-1px); }

.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }

.btn--soft { background: var(--primary-50); color: var(--primary); }
.btn--soft:hover:not(:disabled) { background: var(--primary-100); }

.btn--plain { background: transparent; color: var(--ink-2); padding-inline: 10px; }
.btn--plain:hover:not(:disabled) { color: var(--primary); background: var(--primary-50); }

.btn--danger { background: var(--danger-50); color: var(--danger); }
.btn--danger:hover:not(:disabled) { background: #fadad7; }

.btn--lg { padding: 15px 28px; font-size: 1.02rem; border-radius: 13px; }
.btn--sm { padding: 8px 14px; font-size: .855rem; border-radius: 9px; }
.btn--block { width: 100%; }

/* ============================================================
   Forms
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > label { font-weight: 700; font-size: .89rem; color: var(--ink); }
.field__hint { font-size: .825rem; color: var(--ink-3); line-height: 1.45; }
.field__opt { font-weight: 500; color: var(--ink-4); font-size: .82em; }

.input, .textarea, .select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--line-2); border-radius: 11px;
  font-family: var(--font); font-size: .95rem; color: var(--ink);
  background: #fff; transition: .15s; outline: none;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.select { appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b6485' stroke-width='2.2' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; }

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

/* Selectable card-style radios */
.choices { display: grid; gap: 10px; }
.choices--2 { grid-template-columns: 1fr 1fr; }
.choices--3 { grid-template-columns: repeat(3, 1fr); }
.choice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border: 1.5px solid var(--line-2);
  border-radius: 13px; cursor: pointer; background: #fff; transition: .15s;
  text-align: left;
}
.choice:hover { border-color: var(--primary); background: var(--primary-50); }
.choice.is-on { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 3px var(--primary-50); }
.choice__icon { color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.choice__icon .ms { font-size: 22px; }
.choice__t { font-weight: 700; font-size: .95rem; display: block; }
.choice__d { font-size: .83rem; color: var(--ink-3); line-height: 1.45; display: block; margin-top: 2px; }

/* Category search on the job wizard */
.tradesearch {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line-2); border-radius: 12px;
  padding: 2px 12px; margin-bottom: 18px; background: #fff; transition: .15s;
}
.tradesearch:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.tradesearch > .ms { color: var(--ink-4); font-size: 21px; }
.tradesearch input {
  flex: 1; border: 0; outline: none; background: transparent;
  font-family: var(--font); font-size: .96rem; color: var(--ink); padding: 12px 0; min-width: 0;
}
.tradesearch input::placeholder { color: var(--ink-4); }
.tradesearch__x {
  border: 0; background: var(--bg-3); color: var(--ink-3); cursor: pointer;
  width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; padding: 0;
}
.tradesearch__x:hover { background: var(--line); color: var(--ink); }
.tradesearch__x .ms { font-size: 16px; }

.matchlist { margin-bottom: 20px; }
.matchlist__t {
  font-size: .76rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 9px;
}
.match {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 12px 14px; margin-bottom: 7px; cursor: pointer;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff;
  font-family: var(--font); transition: .14s;
}
.match:hover { border-color: var(--primary); background: var(--primary-50); }
.match__ic {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--primary-50); color: var(--primary);
}
.match__ic .ms { font-size: 20px; }
.match__body { flex: 1; min-width: 0; }
.match__n { display: block; font-weight: 700; font-size: .96rem; }
.match__d { display: block; font-size: .82rem; color: var(--ink-3); line-height: 1.4; }
.match__go { color: var(--primary); font-size: 19px; }

/* Multi-select chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line-2);
  background: #fff; cursor: pointer; font-family: var(--font);
  font-size: .865rem; font-weight: 600; color: var(--ink-2); transition: .15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============================================================
   Layout primitives
   ============================================================ */
.app { min-height: 62vh; }

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--alt { background: var(--bg-2); }

.shead { margin-bottom: 30px; }
.shead h2 { margin-bottom: 7px; }
.shead p { color: var(--ink-3); font-size: 1.03rem; }
.shead--center { text-align: center; max-width: 620px; margin-inline: auto; }

.page { max-width: var(--maxw); margin-inline: auto; padding: 36px 20px 72px; }
.page__head { margin-bottom: 26px; }
.page__head h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 6px; }
.page__head p { color: var(--ink-3); }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }

.split { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 28px; align-items: start; }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; transition: .18s;
}
.card--hover:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card--pad { padding: 26px; }

.stickycard { position: sticky; top: 90px; }

.muted { color: var(--ink-3); }
.small { font-size: .86rem; }
.tiny  { font-size: .78rem; }
.strong { font-weight: 750; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mt1 { margin-top: 10px; } .mt2 { margin-top: 20px; } .mt3 { margin-top: 30px; }
.mb0 { margin-bottom: 0; } .mb1 { margin-bottom: 10px; } .mb2 { margin-bottom: 20px; } .mb3 { margin-bottom: 30px; }
.flex { display: flex; gap: 10px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.flex-center { display: flex; align-items: center; gap: 8px; }
.flex-wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ============================================================
   Badges / pills
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 7px;
  font-size: .765rem; font-weight: 700; letter-spacing: .005em;
  background: var(--bg-3); color: var(--ink-2); white-space: nowrap;
}
.badge .ms { font-size: 15px; }
.badge--ok     { background: var(--ok-50);      color: #0b7a44; }
.badge--warn   { background: var(--warn-50);    color: var(--warn); }
.badge--danger { background: var(--danger-50);  color: var(--danger); }
.badge--primary{ background: var(--primary-50); color: var(--primary); }
.badge--accent { background: var(--accent-50);  color: #b3540f; }
.badge--outline{ background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); }

.fee {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 6px 12px; border-radius: 9px;
  background: var(--accent-50); border: 1px solid #ffd9bb;
}
.fee__label { font-size: .7rem; font-weight: 700; color: #b3540f; text-transform: uppercase; letter-spacing: .05em; }
.fee__value { font-size: .98rem; font-weight: 800; color: #8a3f08; }

/* Stars */
.stars { display: inline-flex; gap: 1px; color: #f5a623; line-height: 1; }
.stars .ms { font-size: 17px; font-variation-settings: 'FILL' 1; }
.stars .is-off { color: var(--line-2); }
.stars--sm .ms { font-size: 14px; }
.stars--lg .ms { font-size: 24px; }

.rating { display: inline-flex; align-items: center; gap: 7px; }
.rating__num { font-weight: 800; font-size: .95rem; }
.rating__count { color: var(--ink-3); font-size: .84rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 440px at 78% -8%, rgba(255,138,61,.16), transparent 62%),
    radial-gradient(900px 500px at 8% 0%, rgba(76,53,222,.17), transparent 60%),
    linear-gradient(180deg, #fbfaff, #ffffff 72%);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 68px 20px 60px;
  display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr);
  gap: 54px; align-items: center;
}
.hero h1 { margin-bottom: 16px; }
.hero h1 .hl {
  background: linear-gradient(120deg, var(--primary), #8b5cff 60%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: 1.1rem; color: var(--ink-2); max-width: 480px; margin-bottom: 26px; }

/* Dark hero, matching the marketplace convention */
.hero--dark {
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(143,123,255,.28), transparent 62%),
    linear-gradient(160deg, #241640, #15103099 70%, #130d26);
  border-bottom: 0;
}
.hero--dark h1 { color: #fff; }
.hero--dark .hl {
  background: linear-gradient(100deg, #b6a3ff, #ffb37a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__q { color: #cfc4ea; font-size: 1.3rem; font-weight: 700; margin: 22px 0 12px; }
.hero--dark .herotrust span { color: #cfc4ea; }
.hero--dark .herotrust .ms { color: #6ee7a8; }
.hero--dark .herosearch { box-shadow: 0 14px 40px rgba(0,0,0,.35); border-color: transparent; }
.hero--dark .pcard { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.hero--dark .pcard__name { color: #fff; }
.hero--dark .pcard__meta, .hero--dark .pcard__body { color: #cfc4ea; }

/* ============================================================
   Illustrations
   ============================================================ */
.il { display: block; width: 100%; height: auto; }
.il--scene { border-radius: var(--radius-lg); overflow: hidden; }
.il--device { max-width: 760px; margin-inline: auto; }
.il--band { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ============================================================
   Home: hire steps
   ============================================================ */
.hiresteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.hirestep { text-align: center; }
.hirestep__art { max-width: 210px; margin: 0 auto 14px; }
.hirestep__ic {
  width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 99px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--primary-100), var(--primary-50));
  color: var(--primary);
}
.hirestep__ic .ms { font-size: 40px; }
.hirestep__n {
  font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  color: var(--primary); margin-bottom: 6px;
}
.hirestep h3 { font-size: 1.12rem; }

/* ============================================================
   Home: why
   ============================================================ */
.whylist { display: flex; flex-direction: column; gap: 26px; }
.why { border-left: 3px solid var(--accent); padding-left: 18px; }
.why h3 { font-size: 1.3rem; margin-bottom: 7px; }
.why p { color: var(--ink-3); }
.whyproof { display: flex; flex-direction: column; gap: 12px; }
.whyproof__art { margin-bottom: 4px; }

/* Tick lists on the tradesperson page */
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ticks li {
  position: relative; padding-left: 26px;
  font-size: .91rem; color: var(--ink-2); line-height: 1.5;
}
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .42em;
  width: 15px; height: 9px; border-left: 2.6px solid var(--ok);
  border-bottom: 2.6px solid var(--ok); transform: rotate(-45deg);
}

/* End-of-column call to action on the how-it-works page */
.colcta {
  margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line);
}

/* ============================================================
   Tradesperson landing page
   ============================================================ */
.prohero .hero__inner { align-items: center; }
.prohero__art { max-width: 420px; justify-self: end; width: 100%; }

/* Signed-in tradesperson home: no signup form, so the hero carries the
   person's own numbers and the two things they actually came to do. */
.prohome .hero__inner { align-items: center; }
.prohome__sub { margin-top: 14px; font-size: 1.05rem; color: rgba(255,255,255,.78); max-width: 46ch; }
.prohome__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn--onDark {
  border-color: rgba(255,255,255,.32); color: #fff; background: rgba(255,255,255,.07);
}
.btn--onDark:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.5); }
.prohome__stats {
  display: flex; flex-wrap: wrap; gap: 30px; margin-top: 32px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16);
}
.prohome__stats div { display: flex; flex-direction: column; gap: 3px; }
.prohome__stats strong { font-family: var(--font); font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; }
.prohome__stats span { font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.62); }
@media (max-width: 620px) {
  .prohome__stats { gap: 20px 26px; }
  .prohome__stats strong { font-size: 1.3rem; }
}

.signupcard {
  background: #fff; border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-lg); max-width: 420px; margin-top: 26px;
}
.signupcard h3 { font-size: 1.14rem; }
.signupcard .field { margin-bottom: 12px; }

.devicewrap { margin-top: 10px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.tile {
  display: flex; align-items: center; gap: 7px;
  padding: 18px 16px; border-radius: var(--radius-sm);
  background: var(--bg-3); color: var(--ink); font-weight: 650; font-size: .93rem;
  line-height: 1.3; transition: .15s;
}
.tile:hover { background: var(--primary-50); color: var(--primary); }
.tile--more { justify-content: space-between; }
.tile .ms { font-size: 19px; }

/* ============================================================
   Home: question cards
   ============================================================ */
.qcard { cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.qcard__trade { font-size: .8rem; color: var(--ink-3); font-weight: 650; }
.qcard h3 { font-size: 1.12rem; line-height: 1.3; }
.qcard__foot {
  display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 13px;
  border-top: 1px solid var(--line); font-size: .845rem; color: var(--ink-3);
}
.qcard__foot .ms { font-size: 17px; }

/* ============================================================
   Home: trade cards
   ============================================================ */
.tradecard { display: flex; flex-direction: column; gap: 14px; padding: 0; overflow: hidden; }
.tradecard__art {
  position: relative; height: 150px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--primary), #8b6dff);
  color: #fff;
}
.tradecard__ic { position: relative; font-size: 58px; opacity: .96; }
.tradecard__body { padding: 0 20px; }
.tradecard__foot { padding: 0 20px; }
.tradecard .btn { margin: 0 20px 20px; width: calc(100% - 40px); }

/* ============================================================
   Home: leads block + review row + CTA band
   ============================================================ */
.leadart { border-radius: var(--radius-lg); overflow: hidden; }

.reviewrow {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.reviewrow::-webkit-scrollbar { height: 7px; }
.reviewrow::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.rcard {
  flex: 0 0 272px; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 9px;
}
.rcard h4 { font-size: .98rem; line-height: 1.3; }
.rcard__q { font-size: .875rem; color: var(--ink-2); line-height: 1.55; flex: 1; }
.rcard__who { font-weight: 750; font-size: .85rem; }

.ctaband {
  background: #2e1d4d; color: #fff; cursor: pointer;
  transition: background .18s;
}
.ctaband:hover { background: #3a2660; }
.ctaband__inner {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 26px; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em;
}
.ctaband__inner .ms { font-size: 32px; }

.herosearch {
  display: flex; gap: 8px; padding: 8px;
  background: #fff; border: 1px solid var(--line-2);
  border-radius: 16px; box-shadow: var(--shadow);
  max-width: 540px;
}
.herosearch input {
  flex: 1; border: 0; outline: none; padding: 12px 14px;
  font-family: var(--font); font-size: .97rem; background: transparent; color: var(--ink);
  min-width: 0;
}
.herosearch input::placeholder { color: var(--ink-4); }

.herotrust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.herotrust span { display: flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.herotrust .ms { color: var(--ok); font-size: 19px; }

/* Floating proof cards */
.heroart { position: relative; min-height: 470px; }
.pcard {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 15px; padding: 15px 17px; box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}
.pcard--1 { top: 0;      left: 0;    width: 252px; }
.pcard--2 { top: 165px;  right: 0;   width: 258px; animation-delay: -2.4s; }
.pcard--3 { bottom: 0;   left: 18px; width: 258px; animation-delay: -4.6s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-11px); }
}
@media (prefers-reduced-motion: reduce) { .pcard { animation: none; } }
.pcard__top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.pcard__name { font-weight: 750; font-size: .89rem; }
.pcard__meta { font-size: .76rem; color: var(--ink-3); }
.pcard__body { font-size: .845rem; color: var(--ink-2); line-height: 1.5; }

/* Stats strip */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border-block: 1px solid var(--line);
}
.stat { background: #fff; padding: 26px 20px; text-align: center; }
.stat__n { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; color: var(--primary); }
.stat__l { font-size: .845rem; color: var(--ink-3); margin-top: 2px; }

/* ============================================================
   Category tiles
   ============================================================ */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.cat {
  display: flex; flex-direction: column; gap: 9px;
  padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: .17s; cursor: pointer; text-align: left;
  font-family: var(--font);
}
.cat:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.cat__ic {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--primary-50); color: var(--primary);
}
.cat__ic .ms { font-size: 22px; }
.cat__n { font-weight: 700; font-size: .93rem; line-height: 1.3; }
.cat__c { font-size: .78rem; color: var(--ink-3); }

/* ============================================================
   How it works steps
   ============================================================ */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.step { position: relative; padding-top: 6px; }
.step__n {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 1rem;
  margin-bottom: 13px; box-shadow: 0 3px 10px rgba(76,53,222,.27);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-3); font-size: .935rem; }

.stepline { display: flex; flex-direction: column; gap: 0; }
.stepline__item { display: grid; grid-template-columns: 46px 1fr; gap: 18px; }
.stepline__rail { display: flex; flex-direction: column; align-items: center; }
.stepline__dot {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-weight: 800; flex-shrink: 0;
}
.stepline__bar { width: 2px; flex: 1; background: var(--line-2); margin: 6px 0; min-height: 18px; }
.stepline__item:last-child .stepline__bar { display: none; }
.stepline__body { padding-bottom: 28px; }
.stepline__item:last-child .stepline__body { padding-bottom: 0; }
.stepline__body h3 { margin-bottom: 5px; }
.stepline__body p { color: var(--ink-3); font-size: .945rem; }

/* ============================================================
   Job cards
   ============================================================ */
.job { display: flex; flex-direction: column; gap: 13px; cursor: pointer; }
.job__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.job__trade { display: flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; font-size: .82rem; }
.job__trade .ms { font-size: 18px; }
.job h3 { font-size: 1.06rem; line-height: 1.35; }
.job__desc {
  color: var(--ink-3); font-size: .9rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.job__meta { display: flex; flex-wrap: wrap; gap: 7px; }
.job__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding-top: 13px; border-top: 1px solid var(--line);
}
.job__thumbs { display: flex; gap: 5px; }
.job__thumbs img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* ============================================================
   Pro cards
   ============================================================ */
.pro { display: flex; flex-direction: column; gap: 13px; cursor: pointer; }
.pro__top { display: flex; gap: 13px; align-items: flex-start; }
.pro__id { min-width: 0; flex: 1; }
.pro__name { font-weight: 800; font-size: 1.04rem; line-height: 1.25; }
.pro__co { font-size: .855rem; color: var(--ink-3); }
.pro__bio {
  color: var(--ink-2); font-size: .9rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pro__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 13px; border-top: 1px solid var(--line); }

.verif { display: flex; flex-direction: column; gap: 9px; }
.verif__row { display: flex; align-items: center; gap: 9px; font-size: .88rem; }
.verif__row .ms { font-size: 19px; }
.verif__row.is-on  { color: var(--ink); }
.verif__row.is-on .ms { color: var(--ok); }
.verif__row.is-off { color: var(--ink-4); }

/* ============================================================
   Interest / shortlist cards
   ============================================================ */
.interest {
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 18px; background: #fff; transition: .17s;
}
.interest.is-shortlisted { border-color: var(--ok); background: linear-gradient(#f6fdf9, #fff); }
.interest.is-declined { opacity: .55; }
.interest__head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 12px; }
.interest__msg {
  background: var(--bg-2); border-radius: 11px; padding: 13px 15px;
  font-size: .91rem; line-height: 1.6; color: var(--ink-2); margin-bottom: 14px;
}
.interest__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.contactbox {
  background: var(--ok-50); border: 1px solid #c3ead5; border-radius: 12px;
  padding: 15px 17px; margin-bottom: 14px;
}
.contactbox h4 { color: #0b7a44; margin-bottom: 9px; display: flex; align-items: center; gap: 7px; }
.contactbox__row { display: flex; align-items: center; gap: 9px; font-size: .92rem; margin-bottom: 5px; }
.contactbox__row .ms { font-size: 18px; color: #0b7a44; }
.contactbox a { font-weight: 650; color: #0b7a44; }
.contactbox a:hover { text-decoration: underline; }

/* ============================================================
   Notices
   ============================================================ */
.notice {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 15px 17px; border-radius: 12px; font-size: .915rem; line-height: 1.55;
  border: 1px solid; margin-bottom: 18px;
}
.notice .ms { font-size: 21px; flex-shrink: 0; margin-top: 1px; }
.notice--info   { background: var(--primary-50); border-color: var(--primary-100); color: #332180; }
.notice--info .ms   { color: var(--primary); }
.notice--ok     { background: var(--ok-50); border-color: #c3ead5; color: #0a6b3c; }
.notice--ok .ms     { color: var(--ok); }
.notice--warn   { background: var(--warn-50); border-color: #f3dca8; color: #8a5400; }
.notice--warn .ms   { color: var(--warn); }
.notice--danger { background: var(--danger-50); border-color: #f6c8c4; color: #9c2318; }
.notice--danger .ms { color: var(--danger); }

/* ============================================================
   Tables
   ============================================================ */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font-weight: 700; font-size: .8rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.pos { color: var(--ok); }
.neg { color: var(--danger); }

/* ============================================================
   Messages
   ============================================================ */
.chat { display: grid; grid-template-columns: 310px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; min-height: 580px; background: #fff; }
.chat__list { border-right: 1px solid var(--line); overflow-y: auto; max-height: 640px; background: var(--bg-2); }
.chat__item { display: flex; gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: .14s; }
.chat__item:hover { background: #fff; }
.chat__item.is-on { background: #fff; border-left: 3px solid var(--primary); padding-left: 13px; }
.chat__info { min-width: 0; flex: 1; }
.chat__name { font-weight: 700; font-size: .91rem; display: flex; justify-content: space-between; gap: 8px; }
.chat__prev { font-size: .83rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__job { font-size: .75rem; color: var(--primary); font-weight: 650; margin-top: 2px; }
.chat__unread { background: var(--primary); color: #fff; border-radius: 99px; min-width: 19px; height: 19px; display: grid; place-items: center; font-size: .7rem; font-weight: 800; padding-inline: 5px; }

.chat__main { display: flex; flex-direction: column; max-height: 640px; }
.chat__head { padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 11px; }
.chat__body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 11px; background: var(--bg-2); }
.bubble { max-width: 68%; padding: 11px 15px; border-radius: 15px; font-size: .92rem; line-height: 1.55; }
.bubble--in  { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 5px; }
.bubble--out { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.bubble__t { font-size: .7rem; opacity: .65; margin-top: 4px; }
.chat__form { display: flex; gap: 9px; padding: 14px 16px; border-top: 1px solid var(--line); background: #fff; }
.chat__empty { display: grid; place-items: center; height: 100%; color: var(--ink-3); text-align: center; padding: 40px; }

/* ============================================================
   Wizard
   ============================================================ */
.wiz { max-width: 720px; margin-inline: auto; }
.wiz__bar { display: flex; gap: 6px; margin-bottom: 10px; }
.wiz__seg { flex: 1; height: 5px; border-radius: 99px; background: var(--bg-3); transition: .25s; }
.wiz__seg.is-done { background: var(--primary); }
.wiz__step { font-size: .83rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.wiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }

.uploads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.uploads__item { position: relative; width: 92px; height: 92px; border-radius: 11px; overflow: hidden; border: 1px solid var(--line); }
.uploads__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uploads__x {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border-radius: 99px; border: 0; background: rgba(0,0,0,.62); color: #fff;
  cursor: pointer; display: grid; place-items: center; padding: 0;
}
.uploads__x .ms { font-size: 15px; }
.dropzone {
  display: grid; place-items: center; gap: 6px; padding: 28px;
  border: 2px dashed var(--line-2); border-radius: 13px; cursor: pointer;
  color: var(--ink-3); transition: .15s; text-align: center;
}
.dropzone:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }

/* Review stars input */
.starpick { display: flex; gap: 5px; }
.starpick button {
  border: 0; background: transparent; cursor: pointer; padding: 2px;
  color: var(--line-2); transition: .12s;
}
.starpick button .ms { font-size: 34px; font-variation-settings: 'FILL' 1; }
.starpick button:hover, .starpick button.is-on { color: #f5a623; transform: scale(1.06); }

/* ============================================================
   Gallery
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 11px; border: 1px solid var(--line); cursor: pointer; transition: .15s; }
.gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow); }

/* ============================================================
   Modal + toasts
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal__scrim { position: absolute; inset: 0; background: rgba(21,19,31,.55); backdrop-filter: blur(3px); animation: fade .18s ease; }
.modal__panel {
  position: relative; max-width: 520px; width: calc(100% - 32px);
  margin: 7vh auto; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 30px; max-height: 86vh; overflow-y: auto;
  animation: pop .22s cubic-bezier(.2,.9,.3,1.1);
}
.modal__panel--wide { max-width: 760px; }
.modal__x {
  position: absolute; top: 15px; right: 15px; width: 34px; height: 34px;
  border: 0; border-radius: 9px; background: var(--bg-3); color: var(--ink-2);
  cursor: pointer; display: grid; place-items: center; transition: .14s;
}
.modal__x:hover { background: var(--line); color: var(--ink); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop  { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 300; display: flex; flex-direction: column; gap: 9px; }
.toast {
  display: flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff; padding: 13px 19px;
  border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .91rem; font-weight: 600;
  animation: slidein .25s cubic-bezier(.2,.9,.3,1.1); max-width: 380px;
}
.toast--ok     { background: #0d7a45; }
.toast--danger { background: #b82f23; }
.toast .ms { font-size: 19px; }
@keyframes slidein { from { opacity: 0; transform: translateX(26px); } }

/* ============================================================
   Empty / loading
   ============================================================ */
.empty { text-align: center; padding: 60px 24px; }
.empty__ic {
  width: 62px; height: 62px; border-radius: 17px; margin: 0 auto 16px;
  display: grid; place-items: center; background: var(--bg-3); color: var(--ink-4);
}
.empty__ic .ms { font-size: 30px; }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--ink-3); margin-bottom: 18px; }

.spinner {
  width: 30px; height: 30px; border: 3px solid var(--bg-3);
  border-top-color: var(--primary); border-radius: 99px;
  animation: spin .7s linear infinite; margin: 50px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skel { background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-2) 50%, var(--bg-3) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============================================================
   Filters bar
   ============================================================ */
.filters {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end;
  padding: 16px 18px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px;
}
.filters .field { margin: 0; min-width: 165px; flex: 1; }
.filters .field > label { font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }

/* Pagination */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 34px; }
.pager button {
  min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2);
  background: #fff; cursor: pointer; font-family: var(--font); font-weight: 650;
  font-size: .88rem; color: var(--ink-2); transition: .14s; padding-inline: 10px;
}
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager button.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ============================================================
   Footer
   ============================================================ */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); margin-top: 60px; }
.foot__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 50px 20px 36px;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 36px;
}
.brand--foot { margin-bottom: 13px; }
.foot__desc { color: var(--ink-3); font-size: .9rem; line-height: 1.6; max-width: 330px; }
.foot__col { display: flex; flex-direction: column; gap: 9px; }
.foot__col.is-hidden { display: none; }
.foot__col h4 { margin-bottom: 4px; }
.foot__col a { color: var(--ink-3); font-size: .885rem; transition: .14s; }
.foot__col a:hover { color: var(--primary); }
.foot__bar {
  max-width: var(--maxw); margin-inline: auto; padding: 18px 20px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: .845rem; color: var(--ink-3);
}
.foot__legal { display: flex; gap: 18px; }
.foot__legal a:hover { color: var(--primary); }

/* ============================================================
   SEO band (cities / trades), as on MyBuilder
   ============================================================ */
.seoband { background: #2e1d4d; color: #d9cdf0; }
.seoband__inner { max-width: var(--maxw); margin-inline: auto; padding: 44px 20px 48px; }
.seoband h3 { color: #fff; font-size: 1.15rem; margin-bottom: 18px; }
.seoband h3.mt3 { margin-top: 38px; }
.seoband__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 11px 18px;
}
.seoband__grid a { color: #c9b9e8; font-size: .875rem; line-height: 1.4; transition: .14s; }
.seoband__grid a:hover { color: #fff; text-decoration: underline; }

/* ============================================================
   Launch promotion
   ============================================================ */
.promo {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 13px;
  background: linear-gradient(100deg, #0f9d58, #18b26a);
  color: #fff; margin-bottom: 20px;
}
.promo .ms { font-size: 24px; flex-shrink: 0; }
.promo__t { font-weight: 800; font-size: .96rem; }
.promo__d { font-size: .87rem; opacity: .94; line-height: 1.45; }

.feefree {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 15px; border-radius: 11px;
  background: var(--ok-50); border: 1px solid #c3ead5;
}
.feefree__free { font-weight: 800; color: #0b7a44; font-size: 1.02rem; }
.feefree__was { font-size: .8rem; color: var(--ink-3); }
.feefree__was s { opacity: .75; }

.badge--promo { background: #0f9d58; color: #fff; }

/* Discreet admin entry point in the footer */
.foot__admin {
  color: var(--line-2); font-weight: 800; letter-spacing: .12em;
  padding-inline: 6px; user-select: none;
}
.foot__admin:hover { color: var(--primary); }

/* ============================================================
   Admin back office
   ============================================================ */
.adminwrap { min-height: 70vh; }
.adminbar {
  position: sticky; top: 68px; z-index: 40;
  background: #2e1d4d; color: #fff;
}
.adminbar__inner {
  max-width: 1340px; margin-inline: auto; padding: 0 20px;
  display: flex; align-items: center; gap: 22px; min-height: 56px; flex-wrap: wrap;
}
.adminbar__title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .98rem; white-space: nowrap;
}
.adminbar__tabs { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.adminbar__tabs button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font); font-weight: 650; font-size: .9rem;
  color: #c3b5e4; padding: 8px 14px; border-radius: 9px; transition: .14s;
}
.adminbar__tabs button:hover { background: rgba(255,255,255,.1); color: #fff; }
.adminbar__tabs button.is-on { background: #fff; color: #2e1d4d; }
.adminbar .btn--plain { color: #c3b5e4; }
.adminbar .btn--plain:hover { color: #fff; background: rgba(255,255,255,.1); }

.adminwrap .page { max-width: 1340px; }
.kpi { padding: 16px 14px; }
.kpi .stat__n { font-size: 1.5rem; }
.kpi--warn { border-color: #f3dca8; background: var(--warn-50); }
.kpi--warn .stat__n { color: var(--warn); }

.linkbtn {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-family: var(--font); font-size: inherit; color: var(--primary);
  font-weight: 650; text-align: left;
}
.linkbtn:hover { text-decoration: underline; }

.rowacts { display: flex; gap: 2px; }
.rowacts .btn { padding: 6px 9px; }

/* Activity feed */
.feed { display: flex; flex-direction: column; }
.feed__row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.feed__row:last-child { border-bottom: 0; }
.feed__ic {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--bg-3); color: var(--ink-3);
}
.feed__ic .ms { font-size: 17px; }
.feed__ic--signup   { background: var(--primary-50); color: var(--primary); }
.feed__ic--job      { background: var(--accent-50);  color: #b3540f; }
.feed__ic--shortlist{ background: var(--ok-50);      color: #0b7a44; }
.feed__ic--review   { background: #fff6e0;           color: #b37c00; }
.feed__body { flex: 1; min-width: 0; font-size: .91rem; }
.feed__body em { font-style: normal; color: var(--ink-3); }

@media (max-width: 860px) {
  .adminbar { position: static; }
  .adminbar__inner { padding-block: 10px; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .heroart { display: none; }
  .prohero__art { display: none; }
  .signupcard { max-width: none; }
  .split { grid-template-columns: 1fr; }
  .stickycard { position: static; }
  .foot__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__auth { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .chat { grid-template-columns: 1fr; }
  .chat__list { max-height: 230px; border-right: 0; border-bottom: 1px solid var(--line); }
  .chat.is-thread .chat__list { display: none; }
}

@media (max-width: 620px) {
  .row { grid-template-columns: 1fr; }
  .choices--2, .choices--3 { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .page { padding: 24px 16px 56px; }
  .container, .nav__inner { padding-inline: 16px; }
  .hero__inner { padding: 38px 16px 44px; }
  .herosearch { flex-direction: column; }
  .herosearch .btn { width: 100%; }
  .foot__inner { grid-template-columns: 1fr; }
  .modal__panel { padding: 24px 20px; margin: 4vh auto; }
  .bubble { max-width: 84%; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}

/* ============================================================
   Dark mode
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f3f1fa; --ink-2: #cac4e0; --ink-3: #9a93b0; --ink-4: #726b8a;
    --bg: #110f19; --bg-2: #181527; --bg-3: #231f36;
    --line: #2a2540; --line-2: #3a3352;
    --primary: #8f7bff; --primary-2: #a494ff;
    --primary-50: #1e1838; --primary-100: #2b2250;
    --accent: #ff9a57; --accent-50: #2e1d12;
    --ok-50: #10281c; --warn-50: #2b2110; --danger-50: #2d1512;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.45);
    --shadow:    0 6px 24px rgba(0,0,0,.5);
    --shadow-lg: 0 18px 50px rgba(0,0,0,.6);
  }
  :root:not([data-theme="light"]) body { background: var(--bg); }
  :root:not([data-theme="light"]) .nav { background: rgba(17,15,25,.84); }
  :root:not([data-theme="light"]) .card,
  :root:not([data-theme="light"]) .interest,
  :root:not([data-theme="light"]) .cat,
  :root:not([data-theme="light"]) .modal__panel,
  :root:not([data-theme="light"]) .stat,
  :root:not([data-theme="light"]) .chat,
  :root:not([data-theme="light"]) .chat__form,
  :root:not([data-theme="light"]) .chat__item.is-on,
  :root:not([data-theme="light"]) .chat__item:hover,
  :root:not([data-theme="light"]) .bubble--in,
  :root:not([data-theme="light"]) .nav__mobile,
  :root:not([data-theme="light"]) .herosearch,
  :root:not([data-theme="light"]) .choice,
  :root:not([data-theme="light"]) .chip,
  :root:not([data-theme="light"]) .pcard,
  :root:not([data-theme="light"]) .acct,
  :root:not([data-theme="light"]) .input,
  :root:not([data-theme="light"]) .textarea,
  :root:not([data-theme="light"]) .select,
  :root:not([data-theme="light"]) .btn--ghost,
  :root:not([data-theme="light"]) .pager button,
  :root:not([data-theme="light"]) .badge--outline { background: var(--bg-2); color: var(--ink); }
  :root:not([data-theme="light"]) .hero {
    background:
      radial-gradient(1100px 440px at 78% -8%, rgba(255,138,61,.1), transparent 62%),
      radial-gradient(900px 500px at 8% 0%, rgba(143,123,255,.14), transparent 60%),
      linear-gradient(180deg, #16132340, transparent 72%);
  }
  :root:not([data-theme="light"]) .badge--ok     { color: #5fd49a; }
  :root:not([data-theme="light"]) .badge--warn   { color: #ffc062; }
  :root:not([data-theme="light"]) .badge--danger { color: #ff8a7d; }
  :root:not([data-theme="light"]) .notice--info  { color: #c9bcff; }
  :root:not([data-theme="light"]) .notice--ok    { color: #74dba9; border-color: #1d4733; }
  :root:not([data-theme="light"]) .notice--warn  { color: #ffc062; border-color: #4a3817; }
  :root:not([data-theme="light"]) .notice--danger{ color: #ff9a8e; border-color: #4d2420; }
  :root:not([data-theme="light"]) .contactbox    { background: var(--ok-50); border-color: #1d4733; }
  :root:not([data-theme="light"]) .contactbox h4,
  :root:not([data-theme="light"]) .contactbox a,
  :root:not([data-theme="light"]) .contactbox .ms { color: #74dba9; }
  :root:not([data-theme="light"]) .balpill { background: var(--ok-50); color: #74dba9; border-color: #1d4733; }
  :root:not([data-theme="light"]) .balpill.is-low { background: var(--warn-50); color: #ffc062; border-color: #4a3817; }
  :root:not([data-theme="light"]) .fee { background: var(--accent-50); border-color: #4a2d19; }
  :root:not([data-theme="light"]) .fee__label,
  :root:not([data-theme="light"]) .fee__value { color: #ffb37a; }
  :root:not([data-theme="light"]) .interest.is-shortlisted { background: var(--bg-2); border-color: #2d6b4b; }
  :root:not([data-theme="light"]) .langswitch button.is-active { background: var(--bg); }
  :root:not([data-theme="light"]) .toast { background: var(--bg-3); border: 1px solid var(--line-2); }
}

/* ============================================================
   Admin — finance and Stripe
   ============================================================ */

/* A plain button that reads as a link, used inside table cells. */
.linkish {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font); font-size: .93rem; font-weight: 650;
  color: var(--primary); text-align: left;
}
.linkish:hover { text-decoration: underline; }

.badge--ghost {
  background: transparent; border: 1px solid var(--line-2); color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .04em;
}

.btn--xs { padding: 5px 10px; font-size: .78rem; border-radius: var(--radius-sm); }
.input--sm, .select--sm { padding: 8px 11px; font-size: .88rem; }
/* The small select keeps room for the chevron, which the shorthand above
   would otherwise paint over the last character. */
.select--sm { padding-right: 34px; }

.table--rows tbody tr { border-top: 1px solid var(--line); }
.table--rows td { padding: 11px 12px; vertical-align: top; }
.table--rows th {
  padding: 10px 12px; font-size: .74rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ink-4); text-align: left; font-weight: 700;
}
.nowrap { white-space: nowrap; }

.codebox {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px; margin: 6px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem; color: var(--ink-2); overflow-x: auto; white-space: pre-wrap;
  word-break: break-all;
}

.empty--sm { padding: 26px 16px; }

/* Setup steps on the Stripe page */
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 18px; }
.steps li { padding-left: 4px; }
.steps li > strong { display: block; margin-bottom: 3px; }
.steps p { margin: 0; }

/* A pass/fail line */
.chk {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 11px 0; border-top: 1px solid var(--line);
}
.chk:first-of-type { border-top: 0; padding-top: 0; }
.chk .ms { font-size: 20px; flex: none; margin-top: 1px; }
.chk.is-ok  .ms { color: var(--ok); }
.chk.is-bad .ms { color: var(--danger); }
.chk code { font-size: .8rem; word-break: break-all; }

/* ---- Bar chart --------------------------------------------
   One series, one axis. The grid stays behind the data, the
   bars carry a gap so adjacent days never merge, and each bar
   has a native <title> tooltip with the exact figure. */
.bc { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; }
.bc__scale {
  display: flex; flex-direction: column; justify-content: space-between;
  font-size: .7rem; color: var(--ink-4); font-weight: 600;
  text-align: right; padding: 2px 0;
}
.bc__plot { position: relative; min-width: 0; }
.bc__plot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.bc__grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bc__bar  { fill: var(--primary); transition: fill .12s; }
.bc__hit  { fill: transparent; }
.bc__g:hover .bc__bar { fill: var(--primary-2); }
.bc__g:hover .bc__hit { fill: var(--primary-50); }
.bc__axis {
  grid-column: 2; display: flex; justify-content: space-between;
  font-size: .7rem; color: var(--ink-4); font-weight: 600; padding-top: 7px;
}

@media (max-width: 700px) {
  .bc__scale { font-size: .64rem; }
}

/* The one-line proof that the books add up. */
.balcheck {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-2);
}
.balcheck .ms { font-size: 21px; flex: none; margin-top: 1px; }
.balcheck.is-ok  { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: var(--ok-50); }
.balcheck.is-ok  .ms { color: var(--ok); }
.balcheck.is-bad { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); background: var(--danger-50); }
.balcheck.is-bad .ms { color: var(--danger); }

/* ============================================================
   Scores, reviews and the tradesperson profile
   ============================================================ */

/* ---- a score out of ten --------------------------------
   A number, not stars: on a marketplace where five candidates are all
   good, the gap between 9.4 and 9.9 is the decision. */
.score {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-family: var(--font); font-variant-numeric: tabular-nums;
}
.score b { font-weight: 800; letter-spacing: -0.02em; }
.score__max { font-size: .72em; font-weight: 600; color: var(--ink-4); }
.score.is-high b { color: var(--ok); }
.score.is-mid  b { color: var(--warn); }
.score.is-low  b { color: var(--danger); }
.score.is-none b { color: var(--ink-4); }
.score--sm b { font-size: 1.02rem; }
.score--lg b { font-size: 2.1rem; }
.score--lg .score__max { font-size: .9rem; }

.rating { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rating__count { font-size: .85rem; color: var(--ink-3); }

/* ---- the review form ----------------------------------- */
.pickrow { margin-bottom: 20px; }
.pickrow__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 7px; }
.pickrow__hint { font-size: .82rem; color: var(--ink-3); }
.pickrow.is-done .pickrow__head strong { color: var(--ok); }

.pick10 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.pick10 button {
  aspect-ratio: 1; min-width: 0; padding: 0;
  border: 1.5px solid var(--line-2); border-radius: 7px;
  background: var(--bg); color: var(--ink-3);
  font-family: var(--font); font-size: .82rem; font-weight: 650;
  cursor: pointer; transition: .1s;
}
.pick10 button:hover { border-color: var(--primary); color: var(--primary); }
.pick10 button.is-on {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.pick10__scale {
  display: flex; justify-content: space-between;
  font-size: .72rem; color: var(--ink-4); margin-top: 5px;
}
.avgbox {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--primary-50); border-radius: var(--radius);
  padding: 12px 16px; margin-top: 4px; font-size: .92rem;
}
.avgbox strong { font-size: 1.25rem; color: var(--primary); font-variant-numeric: tabular-nums; }

/* ---- score breakdown ----------------------------------- */
.dims { display: grid; gap: 11px; }
.dim {
  display: grid; grid-template-columns: minmax(104px, 150px) 1fr 46px;
  align-items: center; gap: 12px;
}
.dim__label { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.dim__bar {
  height: 8px; border-radius: 99px; background: var(--bg-3);
  overflow: hidden; min-width: 0;
}
.dim__bar > span { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.dim__score {
  text-align: right; font-weight: 750; font-size: .92rem;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
@media (max-width: 520px) {
  .dim { grid-template-columns: 1fr 44px; }
  .dim__bar { grid-column: 1 / -1; grid-row: 2; }
}

/* ---- a review ------------------------------------------ */
.revlist { display: grid; gap: 14px; }
.rev {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; background: var(--bg);
}
.rev__top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rev__meta { display: flex; flex-direction: column; gap: 1px; margin-left: auto; text-align: right; }
.rev__trade { font-size: .76rem; font-weight: 650; color: var(--primary); }
.rev h4 { margin: 0 0 6px; font-size: 1rem; }
.rev__body { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.65; }
.rev__dims {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.rev__dims span {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg-2); border-radius: 99px; padding: 3px 10px;
  font-size: .76rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.rev__dims em { font-style: normal; font-weight: 500; color: var(--ink-3); }
.rev__foot {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
}
.verified-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .76rem; font-weight: 650; color: var(--ok);
}
.verified-chip .ms { font-size: 15px; }
.rev__reply {
  margin-top: 12px; padding: 11px 14px; border-radius: 10px;
  background: var(--bg-2); border-left: 3px solid var(--primary);
}
.rev__reply strong { font-size: .82rem; color: var(--primary); }
.rev__reply p { margin: 4px 0 0; font-size: .88rem; color: var(--ink-2); }

/* ---- auth: a plain divider between "Continue with Google" and the form ---- */
.auth-divider {
  display: flex; align-items: center; gap: 10px; margin: 14px 0;
  font-size: .8rem; color: var(--ink-3, #8a84a6);
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; }

/* ---- profile-edit hero: banner + logo, same idea as the public profile's
   cover/logo, but with small "change" controls layered on top ---- */
.pe-hero__cover {
  height: 170px; background: var(--primary-50) center/cover no-repeat;
  position: relative; border-radius: var(--radius); overflow: hidden;
}
@media (max-width: 620px) { .pe-hero__cover { height: 110px; } }
.pe-hero__coverBtn {
  position: absolute; top: 10px; right: 10px;
  background: rgba(20,16,40,.6); color: #fff; border-color: transparent;
}
.pe-hero__coverBtn:hover { background: rgba(20,16,40,.75); }
.pe-hero__id { display: flex; align-items: flex-end; gap: 14px; margin: -40px 0 4px 16px; }
.pe-hero__logo {
  width: 86px; height: 86px; flex: none; border-radius: 18px; overflow: hidden;
  background: var(--bg); border: 3px solid var(--bg); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; position: relative;
}
.pe-hero__logo img { width: 100%; height: 100%; object-fit: cover; }
.pe-hero__logo .avatar { width: 100%; height: 100%; border-radius: 0; font-size: 1.7rem; }
.pe-hero__logoBtn {
  position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px;
  border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; cursor: pointer; border: 2px solid var(--bg);
}
.pe-hero__logoBtn .ms { font-size: 16px; }
.pe-hero__logoBtn input, .pe-hero__coverBtn input { display: none; }
.pe-hero .is-disabled { pointer-events: none; opacity: .5; }

/* ---- the profile page ---------------------------------- */
/* The cover sits at the very top of the page, so it must not start under
   the sticky header — and the identity block that overlaps it needs the
   page's own gutter rather than the cover's. */
.prof__cover {
  height: 190px; background: var(--primary-50) center/cover no-repeat;
  position: relative; overflow: hidden;
}
.prof { padding-bottom: 40px; }
.prof__head { padding-top: 0 !important; }
.prof__body { padding-top: 26px; }
.prof__cover.is-plain {
  background:
    radial-gradient(900px 300px at 15% 120%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(105deg, var(--primary) 0%, var(--primary-2) 58%, #2a1d7a 100%);
}
.prof__cover.is-plain::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(190deg, #000, transparent 85%);
}
@media (max-width: 620px) { .prof__cover { height: 120px; } }

.prof__head {
  display: grid; grid-template-columns: 1fr minmax(240px, 300px);
  gap: 26px; align-items: start; padding-block: 0 22px;
}
.prof__id { display: flex; gap: 18px; align-items: flex-start; margin-top: -46px; min-width: 0; }
.prof__logo {
  width: 94px; height: 94px; flex: none; border-radius: 18px; overflow: hidden;
  background: var(--bg); border: 3px solid var(--bg); box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
}
.prof__logo img { width: 100%; height: 100%; object-fit: cover; }
.prof__logo .avatar { width: 100%; height: 100%; border-radius: 0; font-size: 1.9rem; }
.prof__name { min-width: 0; padding-top: 50px; }
.prof__name h1 { font-size: clamp(1.4rem, 3.6vw, 1.95rem); margin: 0; letter-spacing: -0.02em; }
.prof__name > p { margin: 2px 0 0; font-size: .92rem; }
.prof__score { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.prof__facts {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px;
  font-size: .86rem; color: var(--ink-2);
}
.prof__facts span { display: inline-flex; align-items: center; gap: 6px; }
.prof__facts .ms { font-size: 17px; color: var(--ink-4); }
.prof__facts .is-good { color: var(--ok); font-weight: 600; }
.prof__facts .is-good .ms { color: var(--ok); }
.prof__cta { padding-top: 18px; }
.hirebox {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; background: var(--bg-2);
}
.hirebox strong { display: block; margin-bottom: 5px; }
.hirebox p { margin: 0 0 14px; font-size: .86rem; color: var(--ink-2); }

@media (max-width: 860px) {
  .prof__head { grid-template-columns: 1fr; gap: 16px; }
  .prof__cta { padding-top: 0; }
  .prof__id { flex-direction: column; gap: 12px; }
  .prof__name { padding-top: 0; }
  .prof__logo { width: 76px; height: 76px; }
}

.prof__tabs {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  padding-inline: max(16px, env(safe-area-inset-left, 0px));
  position: sticky; top: 0; background: var(--bg); z-index: 5;
}
.prof__tabs::-webkit-scrollbar { display: none; }
.prof__tabs button {
  border: 0; background: none; cursor: pointer; white-space: nowrap;
  font-family: var(--font); font-size: .93rem; font-weight: 650;
  color: var(--ink-3); padding: 14px 14px 12px;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.prof__tabs button:hover { color: var(--ink); }
.prof__tabs button.is-on { color: var(--primary); border-bottom-color: var(--primary); }
.prof__tabs em {
  font-style: normal; font-size: .76rem; color: var(--ink-4);
  background: var(--bg-3); border-radius: 99px; padding: 1px 7px; margin-left: 3px;
}
.prof__body { display: grid; gap: 18px; }

/* Named .pblock, not .pcard: .pcard is already the floating review card
   on the home hero and it is absolutely positioned. */
.pblock {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg); padding: 22px 24px;
}
.pblock > h3:first-child { margin-top: 0; }
.prose { line-height: 1.75; color: var(--ink-2); max-width: 70ch; margin: 0; }
/* Spacing for raw admin-edited HTML (legal pages): the global h1-h4/p
   reset to margin:0 is right for hand-built layouts, wrong for prose. */
.prose h2 { font-size: 1.3rem; margin: 1.3em 0 .5em; color: var(--ink); }
.prose h3 { font-size: 1.08rem; margin: 1.1em 0 .4em; color: var(--ink); }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose > *:first-child { margin-top: 0; }

/* ---- work photos --------------------------------------- */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.shots--grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.shot {
  margin: 0; border-radius: 12px; overflow: hidden; background: var(--bg-3);
  border: 1px solid var(--line); position: relative;
}
.shot svg, .shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shot figcaption {
  padding: 8px 11px; font-size: .8rem; color: var(--ink-2);
  background: var(--bg); border-top: 1px solid var(--line);
}

/* ---- company facts ------------------------------------- */
.facts { display: grid; gap: 0; margin: 0; }
.facts > div {
  display: grid; grid-template-columns: minmax(130px, 190px) 1fr; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: .86rem; color: var(--ink-3); margin: 0; }
.facts dd { margin: 0; font-size: .92rem; font-weight: 600; }
@media (max-width: 520px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }

.chip--flat { background: var(--bg-2); border-color: var(--line); cursor: default; }

.donelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.donelist li { font-size: .9rem; color: var(--ink-2); }
.donelist strong {
  display: inline-block; min-width: 26px; color: var(--primary);
  font-variant-numeric: tabular-nums;
}

/* ---- credentials --------------------------------------- */
.creds { display: grid; gap: 10px; }
.cred {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px;
}
.cred .ms { font-size: 20px; color: var(--ink-4); flex: none; margin-top: 1px; }
.cred.is-ok { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: var(--ok-50); }
.cred.is-ok .ms { color: var(--ok); }

/* ============================================================
   Directory, enquiries and the subscription
   ============================================================ */

.page--narrow { max-width: 780px; margin-inline: auto; }

/* The heading that opens each distance band. It is the only thing that
   makes the ordering visible rather than something to be inferred. */
.bandhead {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.02rem; font-weight: 700; color: var(--ink-2);
  margin: 26px 0 12px; padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.bandhead:first-of-type { margin-top: 6px; }
.bandhead .ms { font-size: 19px; color: var(--primary); }

/* Two-way sort control. */
.segmented {
  display: inline-flex; border: 1.5px solid var(--line-2);
  border-radius: var(--radius-sm); overflow: hidden; background: var(--bg);
}
.segmented a {
  padding: 9px 15px; font-size: .9rem; font-weight: 600;
  color: var(--ink-3); text-decoration: none; white-space: nowrap;
}
.segmented a + a { border-left: 1.5px solid var(--line-2); }
.segmented a:hover { background: var(--bg-2); color: var(--ink); }
.segmented a.is-active { background: var(--primary); color: #fff; }

.link-quiet {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--ink-3); text-decoration: none; font-weight: 600;
}
.link-quiet:hover { color: var(--primary); text-decoration: underline; }

/* ---- a card in the directory ---- */
.dirc { display: flex; flex-direction: column; gap: 11px; }
.dirc .pro__name { color: inherit; text-decoration: none; }
.dirc .pro__name:hover { color: var(--primary); text-decoration: underline; }

.dirc__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px;
  padding-bottom: 2px;
}
.dirc__km {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .87rem; font-weight: 700; color: var(--primary);
  background: var(--primary-50); border-radius: 999px; padding: 4px 11px;
}
.dirc__km .ms { font-size: 15px; }
.dirc__km i { font-style: normal; font-weight: 500; opacity: .72; }

.dirc__act {
  display: flex; gap: 8px; margin-top: auto; padding-top: 11px;
  border-top: 1px solid var(--line);
}
.dirc__act .btn { flex: 1; justify-content: center; }

/* ---- how we order: the ranking disclosure ---- */
.rankpt { padding: 16px 0; border-bottom: 1px solid var(--line); }
.rankpt:last-child { border-bottom: 0; }
.rankpt h3 { font-size: 1.02rem; margin: 0 0 7px; color: var(--ink); }
.rankpt p { margin: 0; color: var(--ink-2); line-height: 1.65; }

/* ---- the tradesperson's directory inbox ---- */
.enq { display: flex; flex-direction: column; gap: 11px; margin-bottom: 14px; }
.enq__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; flex-wrap: wrap;
}
.enq__head > div { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.enq__msg {
  margin: 0; line-height: 1.6; color: var(--ink-2);
  background: var(--bg-2); border-radius: 11px; padding: 13px 15px;
}
.enq__act { display: flex; gap: 8px; flex-wrap: wrap; }
.enq__open {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  background: var(--ok-50); border: 1px solid #c3ead5;
  border-radius: 11px; padding: 12px 15px;
}
.enq__who { display: flex; flex-direction: column; gap: 4px; }
.enq__tel {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: #0a6b3c; text-decoration: none; font-size: .92rem;
}
.enq__tel:hover { text-decoration: underline; }
.enq__tel .ms { font-size: 16px; }

/* ---- the subscription page ---- */
.memcard {
  border: 1.5px solid var(--line-2); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 22px; background: var(--bg-2);
}
.memcard h3 { margin: 10px 0 5px; font-size: 1.15rem; }
.memcard p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.memcard--on { background: var(--ok-50); border-color: #c3ead5; }
.memcard--founder { background: var(--accent-50); border-color: #f8d6ba; }

.benefits { display: flex; flex-direction: column; gap: 4px; margin-bottom: 26px; }
.benefit {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.benefit:last-child { border-bottom: 0; }
.benefit > .ms {
  font-size: 23px; color: var(--primary); flex: none;
  background: var(--primary-50); border-radius: 10px; padding: 8px;
}
.benefit h4 { margin: 2px 0 5px; font-size: 1rem; }
.benefit p { margin: 0; color: var(--ink-2); line-height: 1.6; font-size: .94rem; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.planbox {
  border: 1.5px solid var(--line-2); border-radius: var(--radius);
  padding: 20px; text-align: center; background: var(--bg);
}
.planbox h3 { margin: 0 0 10px; font-size: 1.02rem; color: var(--ink-3); }
.planbox__price { font-size: 1.95rem; font-weight: 800; line-height: 1.1; }
.planbox__price span {
  display: block; font-size: .85rem; font-weight: 500;
  color: var(--ink-3); margin-top: 3px;
}

.notice--plain { background: var(--bg-2); border-color: var(--line); color: var(--ink-2); }
.notice--plain .ms { color: var(--ink-4); }

@media (max-width: 620px) {
  .plans { grid-template-columns: 1fr; }
  .segmented { width: 100%; }
  .segmented a { flex: 1; text-align: center; }
  .dirc__act { flex-direction: column; }
}

/* ---- admin: commercial settings ---- */
.setgroup { margin-top: 26px; }
.setgroup h3 {
  font-size: 1.02rem; padding-bottom: 9px; margin-bottom: 4px;
  border-bottom: 2px solid var(--line);
}
.setrow {
  display: grid; grid-template-columns: 1fr 190px; gap: 20px;
  align-items: start; padding: 15px 0; border-bottom: 1px solid var(--line);
}
.setrow:last-child { border-bottom: 0; }
.setrow__txt label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 3px; }
.setrow__txt p {
  margin: 0 0 4px; color: var(--ink-3); font-size: .875rem; line-height: 1.55;
  max-width: 62ch;
}
.setrow__ctl { display: flex; justify-content: flex-end; }

.unitbox { display: flex; align-items: center; gap: 8px; }
.unitbox .input { text-align: right; max-width: 120px; }
.unitbox > span { color: var(--ink-3); font-weight: 600; font-size: .9rem; min-width: 32px; }

/* Toggle */
.sw { position: relative; display: inline-block; width: 46px; height: 26px; cursor: pointer; }
.sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw span {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--line-2); transition: background .18s;
}
.sw span::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: transform .18s;
}
.sw input:checked + span { background: var(--primary); }
.sw input:checked + span::after { transform: translateX(20px); }
.sw input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (max-width: 720px) {
  .setrow { grid-template-columns: 1fr; gap: 10px; }
  .setrow__ctl { justify-content: flex-start; }
}

/* ============================================================
   Registration review + profile editing
   ============================================================ */

/* ---- the pro status strip (above everything, like the countdown) ---- */
.pstatus { color: #fff; font-size: .9rem; }
.pstatus.is-hidden { display: none; }
.pstatus.is-todo { background: linear-gradient(100deg, #4c35de, #6a53f0); }
.pstatus.is-wait { background: linear-gradient(100deg, #c77700, #e09020); }
.pstatus.is-stop { background: linear-gradient(100deg, #c0392b, #e05546); }
.pstatus__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 9px 20px;
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; text-align: center;
}
.pstatus__inner .ms { font-size: 19px; }
.pstatus__text { font-weight: 650; }
.pstatus__cta {
  color: #fff; font-weight: 750; text-decoration: underline;
  text-underline-offset: 2px; white-space: nowrap;
  background: rgba(0,0,0,.16); padding: 5px 13px; border-radius: 8px;
}
.pstatus__cta:hover { background: rgba(0,0,0,.26); }

/* ---- cookie consent bar (fixed to the bottom, until a choice is made) ---- */
.cookiebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--ink); color: #fff;
  box-shadow: 0 -6px 24px rgba(21,19,31,.18);
}
.cookiebar.is-hidden { display: none; }
.cookiebar__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.cookiebar__text { font-size: .88rem; color: rgba(255,255,255,.82); max-width: 640px; }
.cookiebar__text a { text-decoration: underline; text-underline-offset: 2px; color: #fff; }
.cookiebar__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---- legal-pages rich-text editor (admin) ---- */
.richbar {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 6px; margin-bottom: -1px;
  background: var(--bg-2); border: 1.5px solid var(--line-2);
  border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.richbar__btn {
  min-width: 30px; height: 30px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line-2); border-radius: 7px; background: #fff;
  font-family: var(--font); font-size: .82rem; font-weight: 700; color: var(--ink-2);
  cursor: pointer;
}
.richbar__btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.richbar__btn[data-cmd="italic"] { font-style: italic; }
.richbar__btn[data-cmd="underline"] { text-decoration: underline; }
.richedit {
  min-height: 220px; padding: 14px 16px;
  border: 1.5px solid var(--line-2); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: #fff; font-size: .95rem; line-height: 1.6; color: var(--ink);
}
.richedit:focus { outline: none; border-color: var(--primary); }
.richedit h2 { font-size: 1.2rem; margin: .6em 0 .3em; }
.richedit h3 { font-size: 1.02rem; margin: .6em 0 .3em; }
.richedit p { margin: .5em 0; }
.richedit ul, .richedit ol { margin: .5em 0; padding-left: 1.4em; }
.richedit a { color: var(--primary); text-decoration: underline; }

/* ---- admin tab badge ---- */
.tabbadge {
  display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 6px;
  border-radius: 99px; background: var(--danger); color: #fff;
  font-size: .72rem; font-weight: 800; line-height: 1.5; vertical-align: middle;
}

/* ---- segmented control made of buttons (reg status filter) ---- */
.segbtn {
  padding: 9px 15px; font-size: .9rem; font-weight: 600; font-family: var(--font);
  color: var(--ink-3); background: var(--bg); border: 0; cursor: pointer;
  border-right: 1.5px solid var(--line-2); white-space: nowrap;
}
.segbtn:last-child { border-right: 0; }
.segbtn:hover { background: var(--bg-2); color: var(--ink); }
.segbtn.is-active { background: var(--primary); color: #fff; }
.segbtn__n {
  font-size: .78rem; font-weight: 800; opacity: .8;
  margin-left: 3px; padding-left: 6px; border-left: 1px solid currentColor;
}

/* ---- the registration list ---- */
.regrows { display: flex; flex-direction: column; gap: 10px; }
.regrow {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); cursor: pointer; transition: .15s;
}
.regrow:hover { border-color: var(--primary); box-shadow: 0 2px 14px rgba(76,53,222,.08); }
.regrow__main { flex: 1; min-width: 200px; }
.regrow__name { font-weight: 700; }
.regrow__owner { font-weight: 500; color: var(--ink-3); margin-left: 7px; font-size: .9rem; }
.regrow__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-3); font-size: .85rem; margin-top: 3px; }
.regrow__facts { display: flex; gap: 7px; flex-wrap: wrap; }
.regrow__facts .chip { cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.regrow__facts .chip .ms { font-size: 15px; }
.chip--warn { border-color: #f3dca8; background: var(--warn-50); color: #8a5400; }
.regrow__side { display: flex; align-items: center; gap: 12px; }

/* ---- registration detail (inside the modal) ---- */
.regdetail__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.regdetail__head h3 { margin: 0; }
.statpill { padding: 4px 11px; border-radius: 99px; font-size: .78rem; font-weight: 800; }
.statpill--pending    { background: var(--warn-50); color: #8a5400; }
.statpill--incomplete { background: var(--bg-3); color: var(--ink-3); }
.statpill--rejected   { background: var(--danger-50); color: #9c2318; }
.statpill--approved   { background: var(--ok-50); color: #0a6b3c; }
.rf__h { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-4); margin: 18px 0 8px; }
.rflist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 0; }
.rf dt { color: var(--ink-3); font-size: .82rem; }
.rf dd { margin: 0; font-weight: 600; }
.regbio { line-height: 1.6; color: var(--ink-2); background: var(--bg-2);
  border-radius: 10px; padding: 12px 14px; }
.regshots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.regshots .shot { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; }
.docgrid { display: flex; flex-direction: column; gap: 8px; }
.doc {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg);
  text-decoration: none; color: inherit;
}
.doc:hover { border-color: var(--primary); }
.doc--demo { opacity: .7; cursor: default; }
.doc__kind { font-weight: 700; font-size: .85rem; }
.doc__name { color: var(--ink-3); font-size: .85rem; flex: 1; }
.doc__view { display: inline-flex; align-items: center; gap: 5px; color: var(--primary); font-weight: 650; font-size: .85rem; }
.doc__view .ms { font-size: 16px; }
.doc__demo { color: var(--ink-4); font-size: .8rem; }
.regdetail__acts { display: flex; gap: 10px; margin-top: 22px; }
.regdetail__acts .btn { flex: 1; justify-content: center; }
.is-stop-text { color: var(--danger); font-weight: 650; }

/* ---- checklist (shared: admin detail + profile edit) ---- */
.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.checkitem { display: flex; align-items: center; gap: 8px; font-size: .9rem;
  padding: 8px 12px; border-radius: 9px; background: var(--bg-2); }
.checkitem .ms { font-size: 18px; }
.checkitem.is-done { color: var(--ink-2); }
.checkitem.is-done .ms { color: var(--ok); }
.checkitem.is-todo { color: var(--ink-3); }
.checkitem.is-todo .ms { color: var(--ink-4); }

/* ---- profile edit ---- */
.pe-status {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; border-radius: var(--radius); margin-bottom: 18px;
  border: 1.5px solid var(--line-2); background: var(--bg-2);
}
.pe-status__ic .ms { font-size: 30px; }
.pe-status__body { flex: 1; }
.pe-status__body h2 { font-size: 1.15rem; margin: 0 0 4px; }
.pe-status__body p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.pe-status--incomplete { background: var(--primary-50); border-color: var(--primary-100); }
.pe-status--incomplete .ms { color: var(--primary); }
.pe-status--ready { background: var(--ok-50); border-color: #c3ead5; }
.pe-status--ready .ms { color: var(--ok); }
.pe-status--pending { background: var(--warn-50); border-color: #f3dca8; }
.pe-status--pending .ms { color: var(--warn); }
.pe-status--rejected { background: var(--danger-50); border-color: #f6c8c4; }
.pe-status--rejected .ms { color: var(--danger); }
.pe-status--approved { background: var(--ok-50); border-color: #c3ead5; }
.pe-status--approved .ms { color: var(--ok); }
.pe-reject { margin-top: 10px; padding: 11px 13px; background: rgba(0,0,0,.04);
  border-radius: 9px; font-size: .9rem; line-height: 1.5; }

.pe-check { margin-bottom: 22px; }
.pe-sec { font-size: 1.02rem; margin: 26px 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--line); }
.pe-form .field { margin-bottom: 14px; }
.grid--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.pe-trades { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-trade {
  padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line-2);
  background: #fff; cursor: pointer; font-size: .865rem; font-weight: 600; color: var(--ink-2);
}
.pe-trade input { display: none; }
.pe-trade.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }

.pe-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.pe-shot { position: relative; }
.pe-shot .shot { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; }
.pe-shot__x {
  position: absolute; top: 5px; right: 5px; width: 26px; height: 26px;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.pe-shot__x .ms { font-size: 17px; }

.pe-docs { display: flex; flex-direction: column; gap: 8px; }
.pe-doc { display: flex; align-items: center; gap: 11px; padding: 11px 14px;
  border: 1px solid var(--line-2); border-radius: 10px; }
.pe-doc > .ms { font-size: 22px; color: var(--ink-3); }
.pe-doc.is-accepted { background: var(--ok-50); border-color: #c3ead5; }
.pe-doc__meta { flex: 1; display: flex; flex-direction: column; }
.pe-doc__meta strong { font-size: .9rem; }
.pe-doc__meta span { font-size: .82rem; color: var(--ink-3); }
.pe-doc__x { border: 0; background: none; cursor: pointer; color: var(--ink-4); }
.pe-doc__x:hover { color: var(--danger); }
.pe-docadd { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.pe-docadd .select { max-width: 200px; }

.pe-terms { display: flex; gap: 11px; align-items: flex-start; cursor: pointer;
  padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius);
  background: var(--bg-2); line-height: 1.5; }
.pe-terms input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.is-done-ic { color: var(--ok); vertical-align: -3px; }
.pe-submit { margin-top: 24px; }

.pe--locked .pe-form, .pe--locked .pe-docadd { opacity: .6; pointer-events: none; }
.is-disabled { opacity: .5; pointer-events: none; }

@media (max-width: 620px) {
  .grid--2, .rflist { grid-template-columns: 1fr; }
  .regdetail__acts { flex-direction: column; }
  .regrow__side { width: 100%; justify-content: space-between; }
}
