/* ==========================================================================
   gigbid.co — dark-first design system
   One token block drives every surface; the light override at the end of the
   :root section is the only other palette. Components below use tokens only.
   ========================================================================== */

/* Self-hosted Inter variable (latin + latin-ext), 100-900 weight axis. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallback so the font swap does not shift layout. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.43%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;

  --font-sans: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* surfaces, darkest to lightest */
  --bg: #070a09;
  --bg-2: #0a0f0d;
  --surface: #0e1412;
  --surface-2: #121a17;
  --surface-3: #18221e;
  --line: #1e2a25;
  --line-2: #2b3a33;

  /* text */
  --ink: #eef5f1;
  --ink-2: #c3d2ca;
  --muted: #8ea39a;

  /* brand + accents */
  --brand: #2ee6a6;
  --brand-2: #6cf0c2;
  --brand-3: #12b982;
  --brand-ink: #03140d;
  --brand-soft: rgba(46, 230, 166, 0.11);
  --amber: #ffb52e;
  --amber-2: #ffd27a;
  --amber-ink: #1b1200;
  --amber-soft: rgba(255, 181, 46, 0.12);
  --danger: #ff7373;
  --danger-strong: #e5484d;
  --danger-soft: rgba(255, 115, 115, 0.12);
  --ok: #43e0a4;
  --ok-soft: rgba(67, 224, 164, 0.12);
  --info: #7cc4ff;
  --info-soft: rgba(124, 196, 255, 0.1);

  --hero-bg: radial-gradient(900px 420px at 84% -12%, rgba(46, 230, 166, 0.16), transparent 60%),
    radial-gradient(700px 380px at 6% 110%, rgba(255, 181, 46, 0.09), transparent 62%),
    linear-gradient(165deg, #0c211b 0%, #0a1714 52%, #07100d 100%);
  --auth-bg: radial-gradient(760px 420px at 18% 0%, rgba(46, 230, 166, 0.18), transparent 62%),
    radial-gradient(560px 340px at 100% 100%, rgba(255, 181, 46, 0.1), transparent 60%),
    linear-gradient(160deg, #0c231c 0%, #081613 55%, #060f0c 100%);

  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 24px 60px -34px rgba(0, 0, 0, 0.95);
  --shadow-soft: 0 14px 36px -24px rgba(0, 0, 0, 0.85);
  --ring: 0 0 0 3px rgba(46, 230, 166, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --wrap: 1120px;
  --header-h: 66px;

  scrollbar-color: #33463d var(--bg);
  accent-color: var(--brand);
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f5f8f6;
  --bg-2: #edf3ef;
  --surface: #ffffff;
  --surface-2: #f5f9f7;
  --surface-3: #eaf1ed;
  --line: #dde7e1;
  --line-2: #c6d5cd;

  --ink: #0b1a13;
  --ink-2: #33473d;
  --muted: #5d7268;

  --brand: #0a7f59;
  --brand-2: #096b4b;
  --brand-3: #086044;
  --brand-ink: #ffffff;
  --brand-soft: rgba(10, 127, 89, 0.09);
  --amber: #d99400;
  --amber-2: #b97e00;
  --amber-ink: #1b1200;
  --amber-soft: rgba(217, 148, 0, 0.12);
  --danger: #b42323;
  --danger-strong: #a01d1d;
  --danger-soft: rgba(180, 35, 35, 0.08);
  --ok: #087a51;
  --ok-soft: rgba(8, 122, 81, 0.09);
  --info: #0b5f9e;
  --info-soft: rgba(11, 95, 158, 0.08);

  --shadow: 0 1px 2px rgba(16, 32, 24, 0.05), 0 18px 40px -30px rgba(16, 32, 24, 0.35);
  --shadow-soft: 0 10px 24px -20px rgba(16, 32, 24, 0.35);
  --ring: 0 0 0 3px rgba(10, 127, 89, 0.25);
  scrollbar-color: #a9bdb3 var(--bg-2);
}

/* ---------- reset + base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 14px);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  min-height: 100vh;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
}

main.page { flex: 1 0 auto; }
body.standalone { padding-top: 0; }

img, svg, video { max-width: 100%; height: auto; }

::selection { background: var(--brand-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

a { color: var(--brand); text-decoration: none; text-underline-offset: 2px; }
a:hover { color: var(--brand-2); text-decoration: underline; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 0.45em;
  letter-spacing: -0.028em;
  font-weight: 640;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.7rem + 2vw, 3.05rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 1.95rem); }
h3 { font-size: 1.14rem; }
h4 { font-size: 1rem; }

strong, b { font-weight: 640; color: var(--ink); }

small, .small { font-size: 0.8125rem; }
.muted { color: var(--muted); }
.lede { font-size: 1.075rem; color: var(--ink-2); max-width: 62ch; line-height: 1.62; }
.meta { font-size: 0.8125rem; color: var(--muted); }
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.6rem;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.38em;
}

pre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.55;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 600px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 0 0 10px 0;
  font-weight: 650;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-3) 100%);
  color: var(--brand-ink);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.brand-name { white-space: nowrap; }
.brand-dot { color: var(--brand); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 560;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav > a {
  color: var(--ink-2);
  padding: 8px 10px;
  border-radius: 9px;
  white-space: nowrap;
}
.site-nav > a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.site-nav > a.active { color: var(--brand); background: var(--brand-soft); }
.site-nav .nav-cta {
  margin-left: 4px;
  padding: 9px 15px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 640;
}
.site-nav .nav-cta:hover { background: var(--brand-2); color: var(--brand-ink); }
.site-nav .pill { margin-left: 2px; }
.who {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.8rem;
  padding-left: 6px;
}
@media (max-width: 1240px) {
  .who { display: none; }
}

.profile-menu { position: relative; display: inline-block; }
.profile-menu > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.8rem;
}
.profile-menu > summary::-webkit-details-marker { display: none; }
.profile-menu[open] > summary { border-color: var(--brand); color: var(--brand); }
.profile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 40;
  min-width: 250px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-menu-panel a,
.profile-menu-panel .link-button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 0.875rem;
  text-decoration: none;
  background: none;
  border: 0;
  font-family: inherit;
  font-weight: 520;
}
.profile-menu-panel a:hover,
.profile-menu-panel .link-button:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.profile-menu-head {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 6px 10px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  word-break: break-all;
}
.inline-form.legacy-signout { display: none; }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink-2);
  cursor: pointer;
  padding: 0;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 30px 0;
  margin-top: 56px;
  color: var(--ink-2);
  font-size: 0.875rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--brand); }
.footer-links a.btn { color: var(--brand-ink); }
.footer-links a.btn.ghost,
.footer-links a.btn.btn-outline { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--brand);
  color: var(--brand-ink);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 640;
  line-height: 1.25;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--brand-2); color: var(--brand-ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.amber { background: var(--amber); color: var(--amber-ink); }
.btn.amber:hover { background: var(--amber-2); color: var(--amber-ink); }
.btn.ghost,
.btn.btn-outline {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn.ghost:hover,
.btn.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn.btn-danger { background: var(--danger-strong); color: #fff; }
.btn.btn-danger:hover { background: var(--danger); color: #1b0505; }
.btn.btn-small { min-height: 34px; padding: 6px 12px; font-size: 0.8125rem; border-radius: 9px; }
.btn.btn-sm { min-height: 30px; padding: 5px 10px; font-size: 0.78rem; border-radius: 8px; }
.btn-block { width: 100%; }

.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.link-button:hover { text-decoration: underline; }
.inline-form { display: inline; margin: 0; }

/* ---------- surfaces ---------- */
.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}
.card > h1:first-child,
.card > h2:first-child,
.card > h3:first-child,
.panel > h1:first-child,
.panel > h2:first-child { margin-top: 0; }
.card.narrow {
  max-width: 560px;
  width: calc(100% - 44px);
  margin: 44px auto;
}
.section.narrow { max-width: 620px; margin: 0 auto; }
.card p:last-child { margin-bottom: 0; }
.panel { padding: 24px; }
.panel-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.side-card h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
}

.section {
  padding-block: 44px;
  /* Full-bleed background, centred 1120px reading column. */
  padding-inline: max(22px, calc((100% - 1120px) / 2));
}
.section.alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section > h1:first-child,
.section > h2:first-child { margin-top: 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-head .footer-links { gap: 12px; }

.empty {
  padding: 34px 24px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface-2);
}

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack > * { margin: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.grid > .card { margin-bottom: 0; padding: 22px; }
.grid > .card h2 { font-size: 2rem; margin: 0 0 2px; letter-spacing: -0.04em; }
.grid > .card p { margin: 0; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stat strong { font-size: 1.5rem; letter-spacing: -0.035em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.78rem; }

/* ---------- forms ---------- */
label { color: var(--ink-2); }

.field { display: block; margin-bottom: 16px; }
.field > label,
.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 620;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.field textarea,
.form-grid textarea { min-height: 130px; resize: vertical; }
.field input:hover,
.field select:hover,
.form-grid input:hover,
.form-grid select:hover,
.form-grid textarea:hover { border-color: var(--muted); }
.field input:focus,
.field select:focus,
.field textarea:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
  background: var(--surface);
}
.field input::placeholder,
.form-grid input::placeholder,
textarea::placeholder { color: var(--muted); opacity: 0.75; }
.field input[aria-invalid="true"],
.form-grid input[aria-invalid="true"] { border-color: var(--danger); }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.05em;
  height: 1.05em;
  accent-color: var(--brand);
  vertical-align: -0.15em;
  margin: 0 8px 0 0;
}

input[type="file"] { padding: 9px 12px; font-size: 0.85rem; color: var(--ink-2); }
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 13px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { border-color: var(--brand); color: var(--brand); }

/* Keep autofilled fields on the theme instead of the UA's white/blue. */
input:autofill,
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--surface-2) inset;
  filter: none;
  transition: background-color 9999s ease-out 0s;
}

.hint { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.field-error,
p.field-error {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--danger);
  font-weight: 560;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .hint { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.form-grid label {
  display: block;
  font-size: 0.82rem;
  font-weight: 620;
  margin-bottom: 7px;
  color: var(--ink-2);
}
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.checks { display: flex; flex-direction: column; gap: 9px; }
.checks label,
.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--ink-2);
  cursor: pointer;
}
.checks input,
.check input { flex: 0 0 auto; margin-top: 0.2em; }

.start-choice {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px 18px 6px;
  margin: 16px 0;
  background: var(--surface-2);
}
.start-choice legend,
.start-choice > label:first-child {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink-2);
  padding: 0 6px;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  cursor: pointer;
  border-top: 1px solid var(--line);
}
.choice:first-of-type { border-top: 0; }

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- alerts, pills, badges ---------- */
.alert {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.875rem;
  margin: 0 0 16px;
}
.alert-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.alert-error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 42%, transparent); color: var(--danger); }
.flash { margin: 16px 0 0; }
.notice {
  background: var(--info-soft);
  border: 1px solid color-mix(in srgb, var(--info) 35%, transparent);
  color: var(--info);
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 0.85rem;
  margin-top: 14px;
}
.notice.amber { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 38%, transparent); color: var(--amber); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid transparent;
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.pill.amber { background: var(--amber-soft); color: var(--amber); }
a.pill:hover { text-decoration: none; border-color: currentColor; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  text-transform: uppercase;
}
.badge.grey { background: var(--surface-3); color: var(--muted); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--danger-soft); color: var(--danger-strong); }

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand);
}
.tag.shortlisted { background: var(--ok-soft); color: var(--ok); }
.tag.archived { background: var(--surface-3); color: var(--muted); }
.tag.declined { background: var(--danger-soft); color: var(--danger); }

.rank {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--surface-3);
  color: var(--ink-2);
}
.rank.first { background: var(--brand); color: var(--brand-ink); }
.rank.backup { background: var(--amber-soft); color: var(--amber); }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
  text-wrap: balance;
}
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
td strong, td a { font-weight: 600; }
.table { margin-top: 6px; }

/* ---------- hero / home ---------- */
.hero {
  background: var(--hero-bg);
  color: #eafff7;
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 100%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { color: #f2fffa; max-width: 17ch; }
.hero .lede { color: #b9d6ca; font-size: 1.09rem; max-width: 54ch; margin: 16px 0 28px; }
.hero .lede a { color: #8ef3cd; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}
.hero-note { color: #9fc2b5; font-size: 0.8125rem; margin: 16px 0 0; }

.searchbar {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px;
  border-radius: 15px;
  max-width: 640px;
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 40px -30px rgba(0, 0, 0, 0.9);
}
.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 12px 14px;
  font-size: 0.95rem;
  border-radius: 10px;
  background: rgba(4, 10, 8, 0.45);
  color: #eafff7;
  font-family: inherit;
}
.searchbar input::placeholder { color: #9dbcae; }
.searchbar input[size] { flex: 0 0 96px; text-align: center; }
.searchbar input:focus { outline: none; box-shadow: var(--ring); }
.searchbar button {
  border: 0;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 680;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  white-space: nowrap;
}
.searchbar button:hover { background: var(--brand-2); }

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  padding: 20px 22px;
  backdrop-filter: blur(8px);
}
.hero-card h4 {
  color: #9fc2b5;
  margin-bottom: 12px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.hero-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: #cfe6dc;
}
.hero-stat:first-of-type { border-top: 0; }
.hero-stat b { color: #ffffff; font-weight: 650; }

.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}
.cat:hover {
  border-color: var(--brand);
  background: var(--surface-2);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--ink);
}
.cat-glyph { font-size: 1.35rem; line-height: 1; }
.cat-name { font-weight: 620; font-size: 0.875rem; }
.cat-count { font-size: 0.75rem; color: var(--muted); }
.cat-fee { font-size: 0.68rem; color: var(--muted); line-height: 1.35; }

.gig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gig-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.gig-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
}
.gig-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.gig-title { font-weight: 640; font-size: 1rem; margin: 0 0 8px; color: var(--ink); line-height: 1.35; }
.gig-meta { color: var(--muted); font-size: 0.78rem; display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.gig-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.price { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.025em; color: var(--ink); }
.bids { font-size: 0.8rem; color: var(--ink-2); font-weight: 600; }

/* ---------- board ---------- */
.board { display: grid; grid-template-columns: 264px 1fr; gap: 28px; padding-block: 34px 60px; }
.filters {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
  height: fit-content;
  position: sticky;
  top: 86px;
}
.filters h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
}
.filters .field { margin-bottom: 14px; }
.filters .btn { width: 100%; }
.board-list { display: flex; flex-direction: column; gap: 12px; }
.row-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.row-card:hover {
  border-color: var(--brand);
  background: var(--surface-2);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--ink);
}
.row-card h3 { margin: 0 0 6px; font-size: 1rem; }
.row-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  text-align: right;
  flex: 0 0 auto;
}

/* ---------- gig detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 330px; gap: 30px; padding-block: 36px 60px; }
.detail-title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); margin-bottom: 10px; }
.detail-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; margin-bottom: 18px; }
.prose { color: var(--ink-2); font-size: 0.95rem; white-space: pre-line; max-width: 72ch; }
.spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.spec div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; }
.spec span { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.spec b { font-size: 0.95rem; }
/* M3-12: the client's bid statistics — four exact-cents figures above the
   bid table and on the award confirmation. */
.bid-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 16px; }
.bid-stats div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; }
.bid-stats span { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.bid-stats b { font-size: 1rem; }

table.bids { font-size: 0.875rem; }
table.bids th { background: transparent; }
table.bids td { padding: 13px 10px; }
table.bids tr:last-child td { border-bottom: 0; }

.triage-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.triage-tab {
  font-size: 0.8rem;
  font-weight: 620;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 13px;
  background: var(--surface-2);
}
.triage-tab:hover { border-color: var(--brand); color: var(--ink); text-decoration: none; }
.triage-tab.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.triage-tab .count {
  display: inline-block;
  min-width: 18px;
  text-align: center;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink);
  font-size: 0.68rem;
}
.triage-tab.active .count { background: rgba(0, 0, 0, 0.18); color: var(--brand-ink); }

.bid-actions { display: flex; flex-direction: column; gap: 7px; min-width: 150px; }
.bid-actions form,
.decline-form { display: flex; gap: 7px; align-items: center; margin: 0; }
.bid-actions select { font-size: 0.75rem; min-height: 32px; padding: 5px 26px 5px 8px; border-radius: 8px; max-width: 140px; }
.bid-flags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.bid-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: var(--surface-3); }

.note-box { margin-top: 10px; border-top: 1px dashed var(--line-2); padding-top: 10px; }
.note-box summary { cursor: pointer; color: var(--brand); font-weight: 620; font-size: 0.82rem; }
.note-box textarea { width: 100%; margin: 10px 0 8px; font-size: 0.85rem; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface-2); color: var(--ink); font-family: inherit; }
.note-text { margin: 8px 0; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 0.85rem; }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 0.875rem; border-top: 1px dashed var(--line); }
.kv:first-of-type { border-top: 0; }
.kv b { font-weight: 620; }

.qa-item { border-top: 1px solid var(--line); padding: 14px 0; }
.qa-item:first-child { border-top: 0; }
.qa-question, .qa-answer { padding: 0; }
.qa-question p, .qa-answer p { margin: 8px 0 0; }
.qa-answer { margin: 12px 0 0; padding-left: 14px; border-left: 2px solid var(--amber); }
.qa-answer .pill { margin-right: 6px; }
.screening-questions { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 18px 0; background: var(--surface-2); }
.screening-answers { margin-top: 8px; }
.screening-answers ul { margin: 4px 0 0 16px; padding: 0; }

/* ---------- job workspace, thread, timeline ---------- */
.job-grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; }
.thread { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.msg {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  background: var(--surface-2);
  color: var(--ink-2);
}
.msg.mine {
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 32%, transparent);
}
.msg .prose { margin: 6px 0 0; color: var(--ink); font-size: 0.9rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.timeline li:last-child { border-bottom: 0; }
.timeline .pill { flex: 0 0 auto; min-width: 66px; justify-content: center; }

.photo-grid { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.photo {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface-3);
  display: block;
}
.photo-grid figure { margin: 0; }
.photo-grid figcaption { font-size: 0.72rem; color: var(--muted); margin-top: 4px; }

/* ---------- post wizard ---------- */
.wizard { max-width: 840px; margin: 0 auto; padding-block: 38px 64px; }
.steps { display: flex; gap: 10px; margin-bottom: 26px; font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; }
.step-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--muted);
}
.step.on .step-num { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.step.on { color: var(--ink); font-weight: 620; }

.cat-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 26px; }
.cat-pick .cat-group {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  font-size: 0.92rem;
  font-weight: 620;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.cat-pick button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 580;
  color: var(--ink);
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.cat-pick button .glyph { font-size: 1.25rem; line-height: 1; }
.cat-pick button small { margin-left: auto; font-size: 0.68rem; }
.cat-pick button:hover { border-color: var(--brand); background: var(--brand-soft); }

/* ---------- contractors, categories, how ---------- */
.contractor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contractor-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-3) 100%);
  color: var(--brand-ink);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.rating { font-weight: 700; }
.trades { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.trade { font-size: 0.72rem; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.category { border: 1px solid var(--line); border-radius: 13px; padding: 18px; background: var(--surface); }
.category h3 { font-size: 0.95rem; margin-bottom: 6px; }
.category .meta { margin: 0; }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.step-card .n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 800;
  margin-bottom: 14px;
}
.rule-list { margin: 0 0 10px 18px; padding: 0; color: var(--ink-2); font-size: 0.9rem; }
.rule-list li { margin-bottom: 7px; }
.rule-list .badge { margin-left: 4px; }

/* ---------- notifications ---------- */
.notification { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.notification:last-child { border-bottom: 0; }
.notification h3 { font-size: 1rem; margin: 4px 0 6px; }
.notification pre { background: none; border: 0; padding: 0; color: var(--ink-2); font-family: inherit; font-size: 0.875rem; white-space: pre-wrap; }
.notification-unread {
  border-left: 3px solid var(--brand);
  padding-left: 14px;
  background: linear-gradient(90deg, var(--brand-soft), transparent 45%);
}

/* ---------- auth ---------- */
.auth-shell {
  display: block;
  max-width: 1060px;
  margin: 44px auto 64px;
  padding: 0 22px;
}
.auth-shell-inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  min-height: 600px;
}
.auth-aside {
  position: relative;
  padding: 44px 42px;
  background: var(--auth-bg);
  color: #eafff7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  overflow: hidden;
}
.auth-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(80% 70% at 20% 10%, #000 0%, transparent 100%);
  pointer-events: none;
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .brand { color: #f4fffb; font-size: 1.05rem; }
.auth-aside .brand-mark { width: 30px; height: 30px; }
.auth-aside h2 {
  color: #f4fffb;
  font-size: clamp(1.55rem, 1.1rem + 1.5vw, 2.1rem);
  letter-spacing: -0.03em;
  margin: 26px 0 12px;
  max-width: 15ch;
}
.auth-aside p { color: #a9c9bc; font-size: 0.925rem; max-width: 38ch; }
.auth-aside b,
.auth-aside strong { color: #f2fffa; }
.hero b,
.hero strong { color: inherit; }
.auth-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-points li { display: flex; gap: 11px; align-items: flex-start; color: #cfe7dc; font-size: 0.885rem; line-height: 1.45; }
.auth-points .tick {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 999px;
  background: rgba(46, 230, 166, 0.16);
  color: #5cf0bd;
  font-size: 0.72rem;
  font-weight: 800;
}
.auth-quote {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  margin: 0;
  font-size: 0.875rem;
  color: #b7d4c7;
  line-height: 1.55;
}
.auth-quote footer { display: flex; align-items: center; gap: 9px; margin-top: 10px; color: #8fb2a4; font-size: 0.75rem; }
.auth-quote .dots { display: flex; }
.auth-quote .dots span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #0b1f19;
  margin-left: -7px;
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #05130e;
}
.auth-quote .dots span:first-child { margin-left: 0; background: #8ef3cd; }
.auth-quote .dots span:nth-child(2) { background: #ffd27a; }
.auth-quote .dots span:nth-child(3) { background: #9fd0ff; }

.auth-panel { padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; }
.auth-card { width: 100%; max-width: 400px; margin: 0 auto; }
.auth-card h1 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.15rem); margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .btn-block { margin-top: 6px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.auth-divider::before,
.auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.875rem;
}
.oauth-btn:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); text-decoration: none; }
.oauth-btn svg { width: 17px; height: 17px; }
.auth-foot { margin-top: 18px; font-size: 0.82rem; color: var(--muted); text-align: center; }
.auth-foot a { font-weight: 560; }
.auth-details { max-width: 400px; width: 100%; margin: 18px auto 0; border-top: 1px solid var(--line); padding-top: 14px; }
.auth-details > summary { cursor: pointer; color: var(--muted); font-size: 0.8rem; list-style: none; display: flex; align-items: center; gap: 6px; }
.auth-details > summary::-webkit-details-marker { display: none; }
.auth-details > summary::before { content: "+"; color: var(--brand); font-weight: 700; }
.auth-details[open] > summary::before { content: "-"; }
.auth-details > summary:hover { color: var(--ink); }
.auth-details .stack { margin-top: 14px; }

.role-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 18px; }
.role-option { position: relative; display: block; }
.role-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  width: 100%;
  height: 100%;
}
.role-option .role-face {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 11px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface-2);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}
.role-option .role-face b { font-size: 0.82rem; font-weight: 640; color: var(--ink); }
.role-option .role-face span { font-size: 0.68rem; color: var(--muted); line-height: 1.3; }
.role-option .role-face .glyph { font-size: 1.05rem; line-height: 1; margin-bottom: 2px; color: var(--brand); }
.role-option .role-face .glyph svg { width: 19px; height: 19px; display: block; }
.role-option input:checked + .role-face {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.role-option input:focus-visible + .role-face { outline: 2px solid var(--brand); outline-offset: 2px; }
.role-option:hover .role-face { border-color: var(--brand); }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 76px; }
.password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 8px 9px;
  border-radius: 7px;
}
.password-toggle:hover { color: var(--brand); background: var(--surface-3); }

.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 8px 0 4px; }
.pw-meter i { height: 3px; border-radius: 999px; background: var(--line-2); transition: background-color 0.2s ease; }
.pw-meter[data-score="1"] i:nth-child(-n + 1) { background: var(--danger); }
.pw-meter[data-score="2"] i:nth-child(-n + 2) { background: var(--amber); }
.pw-meter[data-score="3"] i:nth-child(-n + 3) { background: var(--brand-2); }
.pw-meter[data-score="4"] i { background: var(--brand); }
.pw-hint { font-size: 0.75rem; color: var(--muted); margin: 0; }
.pw-hint.ok { color: var(--ok); }
.pw-hint.bad { color: var(--danger); }

.auth-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}
.auth-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
  animation: pulse 1.4s ease-in-out infinite;
}
.auth-status.ready { color: var(--ok); }
.auth-status.ready::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); animation: none; }
@keyframes pulse { 50% { opacity: 0.35; } }

.auth-inline-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  line-height: 1.45;
}
.auth-inline-note b { color: var(--ink-2); font-weight: 620; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .auth-shell-inner { grid-template-columns: 1fr; min-height: 0; }
  .auth-aside { padding: 34px 30px; gap: 24px; }
  .auth-aside h2 { margin-top: 18px; max-width: 22ch; }
  .auth-points { display: none; }
  .auth-quote { display: none; }
  .auth-panel { padding: 34px 30px 38px; }
  .detail, .job-grid { grid-template-columns: 1fr; }
  .detail .side-card, .job-grid .side-card { margin-bottom: 0; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .gig-grid, .contractor-grid, .steps3 { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .filters { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .cat-pick { grid-template-columns: 1fr 1fr; }
  .site-nav { gap: 2px; font-size: 0.85rem; }
  .site-nav > a { padding: 7px 8px; }
  .who { display: none; }
  .inline-form.legacy-signout { display: inline; }
  .section { padding-block: 34px; }
  .hero { padding: 54px 0 48px; }
}

@media (max-width: 700px) {
  .site-nav > a.nav-hide-sm { display: none; }
  .site-nav { flex-wrap: nowrap; gap: 2px; font-size: 0.8rem; }
  .site-nav > a { padding: 7px 6px; }
  .site-nav .nav-cta { padding: 8px 11px; }
  .theme-toggle { width: 32px; height: 32px; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .wrap { padding: 0 16px; }
  .header-inner { min-height: 60px; gap: 10px; }
  .brand-name { font-size: 1rem; }
  .site-nav .nav-cta { padding: 8px 12px; }
  .auth-shell { margin: 20px auto 40px; padding: 0 14px; }
  .auth-shell-inner { border-radius: 18px; }
  .auth-panel { padding: 26px 20px 30px; }
  .auth-aside { padding: 26px 22px; }
  .role-picker { grid-template-columns: 1fr; }
  .role-option .role-face {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "glyph label" "glyph desc";
    align-items: center;
    column-gap: 11px;
    row-gap: 1px;
  }
  .role-option .role-face .glyph { grid-area: glyph; margin: 0; }
  .role-option .role-face b { grid-area: label; }
  .role-option .role-face span:not(.glyph) { grid-area: desc; }
  .stat strong { font-size: 1.3rem; }
  .spec { grid-template-columns: 1fr; }
  .bid-stats { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .board { padding-block: 20px 40px; }
  .section-head { align-items: flex-start; }
  .searchbar { flex-wrap: wrap; }
  .searchbar input[size] { flex: 1 0 100%; }
  .searchbar button { width: 100%; }
  .card, .panel { padding: 20px; border-radius: 14px; }
  table { font-size: 0.82rem; }
  th, td { padding: 9px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Local SEO: /locations hub and /{keyword}/{city-state} landing pages.
   Native <details> does the collapsing, so no JS is involved.
   ========================================================================== */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--brand-2); }
.state-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.state-jump a {
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--ink-2);
  background: var(--surface-2);
}
.state-jump a:hover { border-color: var(--brand); color: var(--ink); }
.state-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 12px 16px;
  margin-bottom: 10px;
}
.state-block summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  list-style: none;
}
.state-block summary::-webkit-details-marker { display: none; }
.state-block summary::after { content: "▾"; color: var(--muted); }
.state-block[open] summary::after { content: "▴"; }
.state-name { font-weight: 700; }
.city-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px 14px;
  max-height: 300px;
  overflow-y: auto;
}
.city-list a { color: var(--ink-2); font-size: 0.88rem; }
.city-list a:hover { color: var(--ink); text-decoration: underline; }
.keyword-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-2);
  background: var(--surface-2);
}
.chip:hover { border-color: var(--brand); color: var(--ink); }

/* M5-13: the contractor's persistent tracking indicator. It is rendered by the
   server whenever a work session is open, so the person on the clock still sees
   it if the field script never gets a position. The pulse is decoration only. */
.tracking-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--amber) 45%, var(--line));
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.4;
}
.tracking-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 55%, transparent);
  animation: tracking-pulse 2.4s ease-out infinite;
}
@keyframes tracking-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--amber) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .tracking-dot { animation: none; }
}
