:root {
  --bg: #f3eee4;
  --panel: #fffaf3;
  --panel-alt: #efe4d2;
  --ink: #1c1914;
  --muted: #5c564c;
  --line: rgba(28, 25, 20, 0.1);
  --primary: #c45c26;
  --primary-strong: #9a4318;
  --primary-soft: #f8e3d4;
  --accent: #e8b84a;
  --accent-soft: #fff3d0;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --red: #dc2626;
  --green: #1f3d32;
  --shadow: 0 18px 40px rgba(28, 25, 20, 0.1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f5f7fb 0%, #eef7f5 100%);
  color: var(--ink);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(245, 247, 251, 0.8);
  border-bottom: 1px solid var(--line);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #1d8f59);
  color: white;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch-label { display: inline-flex; align-items: center; }
.language-switch {
  min-height: 42px;
  min-width: 112px;
  padding: 8px 30px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.provider-join-link {
  width: 148px;
  min-height: 48px;
  padding: 6px 10px;
  font-size: 0.78rem;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  box-shadow: 0 16px 30px rgba(20, 83, 45, 0.25);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}

.btn-secondary,
.btn-ghost {
  background: rgba(255,255,255,0.75);
  border-color: var(--line);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
  border-radius: 4px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  padding: 64px 0 32px;
  gap: 42px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero h1,
.section-heading h2,
.split-layout h2 {
  margin: 0;
  font-size: clamp(2.7rem, 4vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.section-heading h2,
.split-layout h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
}

.lead,
.body-copy,
.feature-card p,
.timeline-step p,
.verification-item p,
.footer p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-copy .lead {
  margin-top: 18px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 38px 0 0;
  padding: 0;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
}

.hero-stats strong {
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.hero-stats span {
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-card {
  width: min(100%, 500px);
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 18px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.15);
}

.project-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 22px;
}

.muted {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-summary h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
}

.pill.success {
  background: var(--primary-soft);
  color: var(--primary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 16px;
}

.team-member strong {
  display: block;
  margin-bottom: 4px;
}

.team-member span {
  color: var(--muted);
  font-size: 0.85rem;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  font-weight: 700;
}

.avatar.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.avatar.orange { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.avatar.green { background: linear-gradient(135deg, #22c55e, #15803d); }
.avatar.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.floating-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  min-width: 180px;
}

.card-one {
  right: 0;
  bottom: 72px;
}

.card-two {
  left: 0;
  bottom: 12px;
}

.mini-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.floating-card strong {
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.floating-card small {
  color: var(--muted);
}

.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  flex-wrap: wrap;
}

.trust-row > span {
  font-weight: 600;
  color: var(--muted);
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--ink);
  font-weight: 700;
}

.section {
  padding: 100px 0;
}

.alternate {
  background: linear-gradient(180deg, rgba(222, 243, 233, 0.5), rgba(255,255,255,0.6));
}

.section-heading {
  margin-bottom: 44px;
}

.section-heading h2 {
  max-width: 680px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.02);
}

.feature-card.highlight {
  background: linear-gradient(180deg, #f5fbf6 0%, #ffffff 100%);
  border-color: rgba(20, 83, 45, 0.12);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 18px;
}

.icon-box.accent {
  background: var(--primary-soft);
  color: var(--primary);
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 20px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #39a873);
  color: white;
  font-weight: 800;
}

.timeline-step h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.trade-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trade-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  font-weight: 600;
  text-align: center;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
  color: var(--ink);
  font-weight: 600;
}

.check-list li {
  position: relative;
  padding-left: 34px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

.verification-panel {
  display: grid;
  gap: 16px;
}

.verification-item {
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 12px;
}

.badge.success {
  background: var(--primary-soft);
  color: var(--primary);
}

.badge.info {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge.warning {
  background: var(--accent-soft);
  color: #b45309;
}

.metrics-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-top: 32px;
}

.metric-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 18px;
  text-align: center;
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.3rem, 2vw, 2rem);
  letter-spacing: -0.05em;
}

.metric-card span {
  color: var(--muted);
}

.footer {
  padding: 22px 0 72px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.footer-inner > div:first-child {
  flex: 1;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-cta {
  width: min(100%, 620px);
}

.footer-cta h3 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.footer-cta > p {
  margin: 0 0 20px;
}

#project-request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}

#project-request-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

#project-request-form input,
#project-request-form select,
#project-request-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.choice-group {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  background: white;
}

.choice-group legend {
  padding: 0 6px;
  font-weight: 700;
}

.notification-preferences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, max-content));
  align-items: center;
  gap: 10px 16px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.notification-preferences legend,
.notification-preferences p,
.notification-preferences small {
  grid-column: 1 / -1;
}

.notification-preferences p,
.notification-preferences small {
  margin: 0;
  color: var(--muted);
}

.notification-preferences label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.notification-preferences input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--primary);
}

.choice-selection-count {
  margin: 0;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.choice-search-label {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

#project-request-form .choice-search {
  min-height: 40px;
}

.choice-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 260px;
  overflow-y: auto;
  gap: 8px 14px;
  padding-right: 4px;
}

#project-request-form .choice-group .checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
}

#project-request-form .choice-group .checkbox-label input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--primary);
}

.choice-options .checkbox-label[hidden] {
  display: none !important;
}

.choice-no-results {
  grid-column: 1 / -1;
  margin: 8px 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

#project-request-form textarea {
  resize: vertical;
}

#project-request-form small {
  color: var(--muted);
  font-weight: 400;
}

#project-request-form .full-width {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

#project-request-status {
  margin: 0;
  font-size: 0.9rem;
}

#project-request-status.is-success {
  color: var(--primary);
}

#project-request-status.is-error {
  color: var(--red);
}

.project-account-dialog {
  width: min(100% - 28px, 520px);
  max-height: min(92vh, 760px);
  overflow-y: auto;
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid rgba(23, 107, 69, 0.18);
  border-radius: 22px;
  background: linear-gradient(145deg, #f3f8f1, #fff 48%);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(15, 35, 25, 0.28);
}

.project-account-dialog::backdrop { background: rgba(13, 25, 20, 0.62); backdrop-filter: blur(4px); }
.project-account-dialog-heading { display: grid; justify-items: center; text-align: center; }
.project-account-dialog-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 15px;
  background: var(--primary);
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
}
.project-account-dialog-heading .eyebrow { margin: 0; }
.project-account-dialog-heading h2 { margin: 8px 0; font-size: clamp(1.45rem, 4vw, 1.85rem); }
.project-account-dialog-heading > p:last-child { max-width: 390px; margin: 0; color: var(--muted); line-height: 1.55; }
.project-account-dialog .portal-form { margin-top: 24px; }
.password-suggestion-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.password-suggestion-row p { margin: 0; color: var(--muted); font-size: 0.83rem; }
.password-suggestion-row .btn { min-height: 40px; padding: 8px 12px; font-size: 0.84rem; }
.client-password-suggestion {
  overflow-wrap: anywhere;
  padding: 12px;
  border: 1px solid rgba(23, 107, 69, 0.2);
  border-radius: 10px;
  background: #edf6ed;
  color: var(--primary-strong);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
  user-select: all;
}
.project-account-signin { justify-self: center; padding: 8px; border: 0; background: transparent; color: var(--primary-strong); font: inherit; font-weight: 700; cursor: pointer; }
.project-account-signin:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .project-account-dialog { padding: 22px 18px; border-radius: 18px; }
  .password-suggestion-row { align-items: stretch; }
  .password-suggestion-row .btn { width: 100%; }
}

#project-request-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

[hidden] {
  display: none !important;
}

.portal-grid,
.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.workspace-tabs {
  position: sticky;
  top: 82px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px 0;
  background: #f7f8f4;
}

.workspace-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 8px 14px;
  cursor: pointer;
}

.workspace-tab.is-active {
  background: #1f3d32;
  border-color: #1f3d32;
  color: #fff;
}

[data-admin-panel] {
  scroll-margin-top: 150px;
}

.admin-visits {
  grid-column: 1 / -1;
}

.admin-visit-number {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.admin-visit-note {
  margin: 12px 0 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-visits h4 {
  margin: 18px 0 8px;
  font-size: 1rem;
}

.admin-sign-ins {
  margin: 0;
  padding-left: 1.2rem;
}

.admin-sign-ins li {
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.portal-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

#portal-auth {
  max-width: 980px;
  margin-inline: auto;
}

.portal-card h3,
.portal-dashboard-heading h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.portal-card > p {
  color: var(--muted);
}

.portal-card > .portal-status {
  color: var(--primary);
}

.verification-upload {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.verification-upload h4 {
  margin: 0 0 8px;
}

.verification-upload > p {
  color: var(--muted);
  line-height: 1.6;
}

.document-record {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.document-record a,
.login-register-links a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-page {
  display: grid;
  justify-items: center;
  gap: 24px;
  min-height: 100vh;
  align-content: center;
  padding: 32px 16px;
}

.login-language-control { display: flex; justify-content: center; }

.join-page {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 26px 0 48px;
}

.join-header,
.join-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.join-intro {
  max-width: 760px;
  margin: clamp(34px, 7vw, 74px) auto 30px;
  text-align: center;
}

.join-intro h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.join-intro > p:last-child,
.join-form-heading p {
  color: var(--muted);
  line-height: 1.65;
}

.join-card {
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.join-card > h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

.join-role-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: #f1f5f9;
}

.join-role-option {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.join-role-option.is-active {
  border-color: rgba(20, 83, 45, 0.12);
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.07);
  color: var(--primary-strong);
}

.join-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.join-form[hidden] { display: none; }

.join-form-heading,
.join-form > fieldset,
.join-form > button,
.join-form > .portal-status,
.join-form > label:has(textarea) {
  grid-column: 1 / -1;
}

.join-form-heading h3 {
  margin: 0;
  font-size: 1.15rem;
}

.join-form-heading p { margin: 6px 0 0; }

.join-footer {
  margin: 20px 0 0;
  color: var(--muted);
  text-align: center;
}

.join-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.join-workspace-link {
  display: inline-flex;
  margin-top: 8px;
}

@media (max-width: 680px) {
  .join-header .btn { min-height: 40px; padding: 8px 12px; }
  .join-form { grid-template-columns: 1fr; }
  .join-form > * { grid-column: 1; }
  .join-form > fieldset,
  .join-form-heading,
  .join-form > button,
  .join-form > .portal-status,
  .join-form > label:has(textarea) { grid-column: 1; }
  .join-form .location-fields { grid-template-columns: 1fr; }
}

.login-card {
  width: min(100%, 480px);
}

.login-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.05em;
}

.login-register-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.portal-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.portal-form label,
.admin-record label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.location-fields,
.assignment-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.location-fields legend,
.assignment-options legend {
  padding: 0 6px;
  font-weight: 700;
}

.location-fields small,
.assignment-options > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.location-fields select:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.portal-form input,
.portal-form select,
.portal-form textarea,
.admin-record input,
.admin-record select,
.admin-record textarea,
.record-actions select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.admin-record textarea {
  resize: vertical;
}

.portal-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--primary);
  font-size: 0.88rem;
}

.account-review-status,
.verification-review-status,
#professional-verification,
#supplier-verification {
  font-weight: 700;
}

.portal-status.is-error {
  color: var(--red);
}

.portal-status.is-success {
  color: var(--primary);
}

.client-response {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 10px 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--ink);
  line-height: 1.4;
}

.client-response-provider {
  font-weight: 700;
}

.client-response-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.client-response-accepted {
  border-color: rgba(22, 163, 74, 0.24);
  background: #f0fdf4;
}

.client-response-accepted .client-response-badge {
  background: #dcfce7;
  color: #166534;
}

.client-response-accepted .client-response-badge::before { content: "✓"; }

.client-response-declined {
  border-color: rgba(220, 38, 38, 0.18);
  background: #fffafa;
}

.client-response-declined .client-response-badge {
  background: #fee2e2;
  color: #991b1b;
}

.client-response-declined .client-response-badge::before { content: "×"; }

.client-response-pending .client-response-badge {
  background: #fef3c7;
  color: #854d0e;
}

.client-response-pending .client-response-badge::before { content: "…"; }

.client-project-record {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 16px;
  padding: 20px;
}

.client-project-title {
  margin: 0;
}

.request-step-progress {
  margin: 0 0 8px;
  color: var(--primary-strong);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.request-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.request-steps li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.request-steps li.is-current {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
}

.request-steps li.is-complete {
  border-color: transparent;
  background: var(--primary-soft);
  color: var(--primary-strong);
  cursor: pointer;
}

.client-project-brief {
  margin: 0;
  line-height: 1.55;
}

.chosen-team {
  display: grid;
  gap: 12px;
}

.chosen-team h6 {
  margin: 0;
  font-size: 0.95rem;
}

.chosen-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.chosen-provider-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}

.chosen-provider-role {
  margin: 0;
  color: var(--primary-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chosen-provider-bio {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  line-height: 1.55;
}

.chosen-provider-card .client-response,
.chosen-provider-card .provider-contacts {
  margin: 0;
}

.client-confirmation-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.55;
}

.portal-dashboard {
  margin-top: 28px;
  scroll-margin-top: 104px;
}

.portal-dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-summary div {
  padding: 16px;
  border-radius: 12px;
  background: var(--panel-alt);
}

.profile-summary dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.profile-summary dd {
  margin: 6px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-dashboard {
  grid-template-columns: 1fr;
}

.client-matches,
.client-reviews {
  margin-top: 24px;
}

.client-matches h4,
.client-reviews h4 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.match-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

#client-matches .match-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.professional-match-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.professional-match-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.professional-match-photo,
.professional-match-initials {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border: 2px solid var(--primary-soft);
  border-radius: 50%;
}

.professional-match-photo {
  object-fit: cover;
}

.professional-match-initials {
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 1.15rem;
  font-weight: 800;
}

.professional-match-identity {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-width: 0;
}

.supplier-category-heading {
  grid-column: 1 / -1;
  margin: 12px 0 0;
}

.supplier-match-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.supplier-match-photo,
.supplier-match-initials {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 2px solid var(--primary-soft);
  border-radius: 50%;
}

.supplier-match-photo {
  object-fit: cover;
}

.supplier-match-initials {
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.match-card h5,
.review-record h5 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.professional-match-card h5 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
}

.match-card p {
  margin: 6px 0 0;
}

.match-profession,
.match-rating {
  color: var(--primary);
  font-weight: 700;
}

.gold-rating {
  color: #9a6b00;
}

.professional-match-card .match-rating {
  margin: 0;
  font-size: 0.9rem;
}

.professional-match-facts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.professional-match-facts > div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 8px;
}

.professional-match-facts dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.professional-match-facts dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.professional-match-bio {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.provider-contacts {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 6px 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.provider-contact-label {
  color: var(--muted);
}

.provider-contact-link,
.provider-contact-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.provider-contact-link {
  color: var(--primary-strong);
  font-weight: 600;
}

.match-location {
  color: var(--muted);
  font-size: 0.9rem;
}

.verified-label {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.75rem;
  font-weight: 700;
}

.recommendation-form {
  display: grid;
  gap: 14px;
  width: 100%;
}

.recommendation-options {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.recommendation-options legend {
  padding: 0 6px;
  font-weight: 700;
}

.professional-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.professional-choice-record {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg);
}

.professional-choice input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 2px;
  accent-color: #c45c26;
  flex: none;
}

.provider-profile-button {
  justify-self: start;
}

.provider-profile-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: min(85vh, 820px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--ink);
}

.provider-profile-dialog::backdrop {
  background: rgba(28, 25, 20, 0.55);
}

.provider-profile-dialog h3 {
  margin-top: 0;
}

.provider-profile-photo,
.provider-profile-image,
.provider-profile-video {
  width: 100%;
  border-radius: 12px;
  background: var(--bg);
}

.provider-profile-photo {
  max-height: 280px;
  object-fit: cover;
}

.provider-profile-gallery {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

.provider-profile-image,
.provider-profile-video {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio-upload {
  margin: 18px 0 8px;
}

.portfolio-manager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.portfolio-manager-item {
  display: grid;
  gap: 8px;
  margin: 0;
}

.professional-choice-details {
  display: grid;
  gap: 4px;
}

.match-group-label {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.more-professionals-options {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.more-professionals-options > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--primary-strong);
  font-weight: 700;
  cursor: pointer;
}

.professional-options-search {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.project-conversation {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.project-conversation > summary {
  color: var(--primary-strong);
  font-weight: 750;
  cursor: pointer;
}

.conversation-unread:not(:empty) {
  display: inline-block;
  margin-left: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--primary-strong);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 750;
  vertical-align: middle;
}

.conversation-recipient { color: var(--muted); font-size: 0.75rem; }

.conversation-toolbar,
.conversation-form {
  display: grid;
  gap: 10px;
}

.conversation-toolbar {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.conversation-toolbar p { margin: 0; }

.conversation-messages {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg);
}

.conversation-message {
  max-width: min(92%, 680px);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 3px;
  background: var(--panel);
  overflow-wrap: anywhere;
}

.conversation-message.is-mine {
  justify-self: end;
  border-color: rgba(20, 83, 45, 0.16);
  border-radius: 12px 12px 3px 12px;
  background: var(--primary-soft);
}

.conversation-message p { margin: 0; }
.conversation-sender { font-size: 0.8rem; font-weight: 750; }
.conversation-text { padding: 5px 0; white-space: pre-wrap; }
.conversation-time { color: var(--muted); font-size: 0.72rem; }

@media (max-width: 600px) {
  .conversation-toolbar { grid-template-columns: 1fr; }
  .conversation-toolbar .btn { width: 100%; }
  .conversation-message { max-width: 100%; }
}

.option-count {
  display: inline-grid;
  min-width: 26px;
  min-height: 26px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--primary-soft);
  font-size: 0.82rem;
}

.professional-choice-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel-alt);
}

.professional-photo-profile {
  display: grid;
  grid-template-columns: minmax(100px, 160px) minmax(220px, 1fr);
  align-items: center;
  gap: 16px;
  margin: 18px 0 24px;
}

.professional-photo-profile > img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel-alt);
}

.professional-photo-profile > .empty-state {
  grid-column: 1;
}

.photo-upload-form {
  display: grid;
  gap: 10px;
}

.photo-upload-form small,
.form-help {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.feedback-media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.feedback-media-gallery img,
.feedback-media-gallery video {
  width: 100%;
  max-height: 320px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #0f172a;
  object-fit: cover;
}

.admin-feedback-media-item {
  min-width: 0;
  margin: 0;
}

.admin-feedback-media-item figcaption {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.faq-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-list details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list details[open] summary {
  color: var(--primary);
}

.faq-list details p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.client-project-record {
  grid-template-columns: 1fr;
}

.client-project-record > * {
  grid-column: 1 / -1;
}

.professional-requests {
  margin-top: 26px;
}

.professional-requests h4 {
  margin-bottom: 12px;
}

.professional-request-record h4 {
  margin: 0;
  text-transform: capitalize;
}

.provider-assignment-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel-alt);
  color: var(--ink);
}

.account-record {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-record strong,
.account-record .record-actions,
.rating-record .request-details {
  grid-column: 1 / -1;
}

.account-record .btn-danger {
  justify-self: start;
  background: #a32626;
  color: #fff;
}

.account-record .btn-danger:hover:not(:disabled) {
  background: #7f1d1d;
}

.rating-record {
  grid-template-columns: 1fr;
}

.rating-record > * {
  grid-column: 1 / -1;
}

.admin-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-record {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.professional-record .location-fields,
.request-management-form .assignment-options,
.request-management-form .record-actions {
  grid-column: 1 / -1;
}

.request-management-form {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
}

.assignment-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.assignment-options .checkbox-label {
  overflow-wrap: anywhere;
}

.rating-form {
  display: grid;
  gap: 12px;
  width: 100%;
}

.star-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  border: 0;
}

.star-rating legend {
  flex-basis: 100%;
  margin-bottom: 0;
  font-weight: 700;
}

.star-rating-choices {
  display: flex;
  gap: 2px;
}

.star-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.star-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.star-symbol,
.public-feedback-rating,
.rating-stars {
  color: #c58b00;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.rating-stars-empty,
.star-choice .star-symbol {
  color: #d7d0c4;
}

.star-choice .star-symbol {
  font-size: 1.75rem;
  line-height: 1;
}

.star-choice.is-filled .star-symbol {
  color: #c58b00;
}

.star-choice:focus-within .star-symbol {
  outline: 2px solid rgba(196, 92, 38, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

.star-rating-selected,
.rating-value,
.rating-count {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.rating-summary,
.public-feedback-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rating-value {
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.public-feedback-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.public-feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.public-feedback-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(28, 25, 20, 0.06);
}

.public-feedback-kicker {
  margin: 0;
  color: var(--primary-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.public-feedback-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.public-feedback-rating,
.public-feedback-comment {
  margin: 0;
}

.public-feedback-comment {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  font-style: normal;
  line-height: 1.6;
  overflow-wrap: anywhere;
  quotes: none;
}

.public-feedback-card .record-meta {
  margin-top: auto;
  padding-top: 4px;
}

.rating-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  font: inherit;
}

.live-update-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-record .record-meta,
.admin-record .request-heading,
.admin-record .request-details,
.admin-record > p:not(.record-meta),
.admin-record .record-actions {
  grid-column: 1 / -1;
}

.record-meta,
.request-reference,
.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 9px !important;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
}

.client-account-project {
  align-items: center;
}

.client-account-project .btn {
  justify-self: start;
}

.client-project-actions { display: grid; justify-items: start; gap: 12px; }
.client-request-edit { width: min(100%, 560px); }
.client-request-edit summary { color: var(--primary-strong); font-weight: 700; cursor: pointer; }
.client-request-edit .portal-form { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-alt); }
.client-request-edit textarea { width: 100%; min-height: 100px; padding: 10px; border: 1px solid rgba(15, 23, 42, 0.16); border-radius: 10px; font: inherit; resize: vertical; }

.record-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.record-actions select {
  width: auto;
  min-width: 180px;
}

.request-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.request-heading h4 {
  margin: 0;
  font-size: 1.05rem;
}

.request-details {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .hero,
  .split-layout,
  .feature-grid,
  .timeline,
  .metrics-section,
  .trade-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .portal-grid,
  .profile-summary,
  .location-fields {
    grid-template-columns: 1fr;
  }

  .nav.is-open .nav-menu {
    display: flex;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 82px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    max-height: calc(100vh - 94px);
    overflow-y: auto;
    padding: 18px 20px;
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav.is-open .nav-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .nav.is-open .nav-links a::after {
    bottom: -4px;
  }
}

@media (max-width: 700px) {
  .feature-grid,
  .timeline,
  .metrics-section,
  .trade-grid,
  .split-layout,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  #project-request-form {
    grid-template-columns: 1fr;
  }

  .admin-record {
    grid-template-columns: 1fr;
  }

  .assignment-options {
    grid-template-columns: 1fr;
  }

  .choice-options {
    grid-template-columns: 1fr;
  }

  .professional-photo-profile {
    grid-template-columns: 1fr;
  }

  .professional-photo-profile > img {
    width: 120px;
    height: 120px;
  }

  #project-request-form .full-width {
    grid-column: auto;
  }

  .card-one,
  .card-two {
    position: static;
    margin-top: 14px;
    width: 100%;
  }

  .hero-visual {
    display: grid;
    gap: 14px;
    min-height: unset;
  }
}

/* A warmer, more confident first impression while keeping the existing marketplace flows. */
:root {
  --bg: #f7f8f4;
  --panel-alt: #edf3e9;
  --ink: #17251e;
  --muted: #5c6b62;
  --line: rgba(23, 37, 30, 0.11);
  --primary: #176b45;
  --primary-strong: #104d34;
  --primary-soft: #e4f3e9;
  --accent: #d89a35;
  --accent-soft: #fbf1df;
  --shadow: 0 22px 60px rgba(24, 48, 35, 0.10);
}

html { scroll-padding-top: 92px; }

body {
  background:
    radial-gradient(ellipse at 85% 7%, rgba(215, 232, 211, 0.6), transparent 34rem),
    #f7f8f4;
}

.topbar {
  background: rgba(250, 251, 248, 0.88);
  border-bottom-color: rgba(23, 37, 30, 0.08);
}

.brand { letter-spacing: -0.035em; }

.brand-mark {
  border-radius: 11px;
  background: linear-gradient(145deg, #c45c26, #1f3d32);
  box-shadow: 0 7px 18px rgba(31, 61, 50, 0.22);
}

.nav-links { gap: 20px; font-size: 0.9rem; }
.nav-links a { transition: color 0.18s ease; }
.nav-links a:hover { color: var(--primary); }

.btn {
  border-radius: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:focus-visible,
.nav-toggle:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(216, 154, 53, 0.7);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, #c45c26, #9a4318);
  box-shadow: 0 10px 24px rgba(154, 67, 24, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(154, 67, 24, 0.3);
}

.btn-secondary,
.btn-ghost {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(23, 37, 30, 0.14);
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  padding: 76px max(24px, calc((100% - 1180px) / 2)) 58px;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr);
  gap: clamp(30px, 5vw, 72px);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 0;
  background: linear-gradient(115deg, #edf4e9 0%, #f7f8f4 55%, #f2f6ee 100%);
  border-radius: 0 0 42px 42px;
}

.hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  width: 520px;
  height: 520px;
  top: -270px;
  right: 6%;
  border: 1px solid rgba(23, 107, 69, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(23, 107, 69, 0.025), 0 0 0 86px rgba(23, 107, 69, 0.02);
}

.hero-copy { max-width: 660px; }

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  margin-bottom: 22px;
  border: 1px solid rgba(23, 107, 69, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.075em;
}

.hero-copy .eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2b9b61;
  box-shadow: 0 0 0 4px rgba(43, 155, 97, 0.12);
  content: "";
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(3.15rem, 5.1vw, 5.45rem);
  line-height: 0.99;
  letter-spacing: -0.075em;
}

.hero-copy .lead {
  max-width: 570px;
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.75;
}

.hero-actions { gap: 12px; margin-top: 28px; }
.hero-actions .btn { min-height: 54px; padding: 0 22px; }
.hero-actions .btn-primary span { margin-left: 9px; font-size: 1.15em; }

.hero-account-link {
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.hero-account-link a {
  margin-left: 4px;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  text-underline-offset: 4px;
}

.hero-account-link a:hover { text-decoration-color: #fff; }
.hero-account-link a span { margin-left: 2px; }

.hero-stats {
  gap: 0;
  margin-top: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 37, 30, 0.12);
}

.hero-stats li { min-width: 0; padding: 0 22px; }
.hero-stats li:first-child { padding-left: 0; }
.hero-stats li + li { border-left: 1px solid rgba(23, 37, 30, 0.12); }
.hero-stats strong { font-size: 1.7rem; color: var(--primary-strong); }
.hero-stats span { font-size: 0.82rem; }

.hero-visual { min-height: 500px; }

.dashboard-card {
  position: relative;
  z-index: 1;
  width: min(100%, 510px);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 32px 80px rgba(29, 61, 42, 0.14), 0 4px 14px rgba(29, 61, 42, 0.06);
  backdrop-filter: blur(16px);
}

.panel-header {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.status-dot { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.12); }
.project-summary { padding: 20px 0 23px; }
.project-summary .muted { margin-bottom: 7px; }
.project-summary h3 { letter-spacing: -0.04em; }
.pill.success { background: #e5f4e9; color: #176b45; }

.team-grid { gap: 11px; }
.team-member {
  min-width: 0;
  padding: 13px 11px;
  border-color: rgba(23, 37, 30, 0.08);
  background: #fbfcfa;
}

.team-member strong { font-size: 0.9rem; }
.team-member span { font-size: 0.78rem; }
.avatar { flex: 0 0 40px; width: 40px; height: 40px; }

.floating-card {
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(29, 61, 42, 0.14);
}

.card-one { right: -2px; bottom: 68px; }
.card-two { left: -12px; bottom: 7px; }
.floating-card strong { color: var(--primary-strong); font-size: 1.08rem; }

.trust-bar {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(23, 37, 30, 0.08);
}

.trust-row { min-height: 76px; }
.trust-row > span { font-size: 0.92rem; }
.trust-items { gap: 10px; }
.trust-items span {
  padding: 8px 13px;
  border: 1px solid rgba(23, 37, 30, 0.09);
  border-radius: 999px;
  background: #fff;
  color: #45584b;
  font-size: 0.82rem;
}

.section { padding: clamp(72px, 8vw, 104px) 0; }
.section-heading { margin-bottom: 36px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2, .split-layout h2 { line-height: 1.08; }

.feature-card,
.timeline-step,
.verification-item,
.metric-card,
.trade-grid span {
  border-color: rgba(23, 37, 30, 0.09);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(23, 37, 30, 0.035);
}

.feature-card {
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 107, 69, 0.22);
  box-shadow: 0 18px 38px rgba(23, 37, 30, 0.08);
}

.feature-card.highlight {
  background: linear-gradient(145deg, #edf7ef, #fff 72%);
  border-color: rgba(23, 107, 69, 0.16);
}

.icon-box { border-radius: 13px; }
.timeline-step { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.timeline-step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-number { background: linear-gradient(145deg, #218256, #104d34); }
.trade-grid span { min-height: 64px; transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.trade-grid span:hover { transform: translateY(-2px); border-color: rgba(23, 107, 69, 0.28); color: var(--primary); }

.alternate {
  background: linear-gradient(180deg, rgba(233, 242, 231, 0.72), rgba(247, 248, 244, 0.58));
  border-top: 1px solid rgba(23, 37, 30, 0.045);
  border-bottom: 1px solid rgba(23, 37, 30, 0.045);
}

.metric-card { border-radius: 18px; }
.metric-card strong { color: var(--primary-strong); }

.faq-list details {
  border: 1px solid rgba(23, 37, 30, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.faq-list details[open] { border-color: rgba(23, 107, 69, 0.25); }
.faq-list summary { padding: 19px 22px; font-weight: 650; }
.faq-list details p { padding: 0 22px 20px; }

.portal-card {
  border-color: rgba(23, 37, 30, 0.1);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(23, 37, 30, 0.045);
}

.portal-card h3 { letter-spacing: -0.035em; }
.footer-inner { border-top-color: rgba(23, 37, 30, 0.1); }

/* Put the supplied JengaLink team photo behind the landing-page hero. */
.hero {
  min-height: min(720px, calc(100svh - 82px));
  grid-template-columns: 1fr;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 60px;
  background: #13261b;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(8, 25, 17, 0.88) 0%, rgba(8, 25, 17, 0.72) 42%, rgba(8, 25, 17, 0.24) 100%),
    linear-gradient(0deg, rgba(8, 25, 17, 0.28), rgba(8, 25, 17, 0.08)),
    url("assets/buildlink-team.png") center 44% / cover no-repeat;
  border-radius: 0 0 36px 36px;
}

.hero::after { display: none; }
.hero-copy { position: relative; z-index: 1; width: min(100%, 700px); }
.hero-copy .eyebrow { color: #f3f7f1; border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.1); }
.hero-copy .eyebrow::before { background: #f1ba55; box-shadow: 0 0 0 4px rgba(241, 186, 85, 0.16); }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2); }
.hero-copy .lead { color: rgba(255, 255, 255, 0.88); }
.hero-stats { border-top-color: rgba(255, 255, 255, 0.25); }
.hero-stats li + li { border-left-color: rgba(255, 255, 255, 0.25); }
.hero-stats strong { color: #fff; }
.hero-stats span { color: rgba(255, 255, 255, 0.78); }
.hero-visual { display: none; }

@media (max-width: 980px) {
  .hero { min-height: min(740px, calc(100svh - 74px)); }
  .hero-copy { width: min(100%, 720px); }
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(23, 107, 69, 0.22);
  border-color: var(--primary) !important;
}

@media (max-width: 1100px) {
  .nav-links { gap: 14px; font-size: 0.84rem; }
  .nav-menu { gap: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(350px, 0.9fr); }
  .hero h1 { font-size: clamp(3rem, 5.3vw, 4.5rem); }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 58px max(24px, calc((100% - 720px) / 2)) 50px;
  }
  .hero-copy { max-width: 720px; }
  .hero h1 { max-width: 700px; }
  .hero-visual { width: min(100%, 650px); margin: 0 auto; }
  .nav.is-open .nav-menu { top: 74px; }
  .nav.is-open .nav-links { font-size: 1rem; }
}

@media (max-width: 700px) {
  .hero { min-height: min(760px, calc(100svh - 74px)); padding: 42px 20px 34px; }
  .hero::before { border-radius: 0 0 26px 26px; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(8, 25, 17, 0.8), rgba(8, 25, 17, 0.52)),
      linear-gradient(0deg, rgba(8, 25, 17, 0.3), rgba(8, 25, 17, 0.08)),
      url("assets/buildlink-team.png") 51% center / cover no-repeat;
  }
  .hero h1 { font-size: clamp(2.75rem, 12vw, 3.8rem); }
  .hero-copy .lead { font-size: 1rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-account-link { margin-top: 14px; text-align: center; }
  .hero-stats { justify-content: space-between; gap: 0; }
  .hero-stats li { flex: 1; padding: 0 10px; }
  .hero-stats strong { font-size: 1.45rem; }
  .hero-stats span { font-size: 0.72rem; line-height: 1.35; }
  .hero-visual { display: grid; min-height: 0; gap: 10px; padding-bottom: 0; }
  .dashboard-card { padding: 20px; border-radius: 20px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .floating-card { position: static; width: 100%; min-width: 0; margin: 0; }
  .trust-row { justify-content: center; padding: 18px 0; text-align: center; }
  .trust-items { justify-content: center; }
  .section { padding: 68px 0; }
}

.buildlink-sweet-popup {
  border-radius: 22px;
  padding: 1.35rem 1.15rem 1.2rem;
  font-family: inherit;
}

.buildlink-sweet-title {
  color: var(--ink);
  font-size: 1.55rem;
}

.buildlink-sweet-body {
  color: var(--muted);
}

.sweet-confirm-lead {
  margin: 0 0 14px;
  text-align: center;
}

.sweet-confirm-groups {
  display: grid;
  gap: 12px;
  text-align: left;
}

.sweet-confirm-groups section {
  background: var(--primary-soft);
  border-radius: 14px;
  padding: 12px 14px;
}

.sweet-confirm-groups h3 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-strong);
}

.sweet-confirm-groups ul {
  margin: 0;
  padding-left: 1.1rem;
}

.sweet-confirm-groups li {
  margin: 4px 0;
  color: var(--ink);
}

.buildlink-sweet-popup .swal2-icon.swal2-question {
  border-color: var(--primary);
  color: var(--primary);
}

.buildlink-sweet-popup .swal2-success-ring {
  border-color: rgba(31, 61, 50, 0.3);
}

.buildlink-sweet-confirm,
.buildlink-sweet-cancel {
  border-radius: 999px !important;
  font-weight: 700 !important;
  padding: 0.7rem 1.15rem !important;
  box-shadow: none !important;
}

.buildlink-sweet-confirm {
  background: #c45c26 !important;
  color: #fffaf3 !important;
}

.buildlink-sweet-cancel {
  background: #fffaf3 !important;
  color: #1c1914 !important;
  border: 1px solid rgba(28, 25, 20, 0.16) !important;
}

.buildlink-sweet-danger {
  border-radius: 999px !important;
  font-weight: 700 !important;
  padding: 0.7rem 1.15rem !important;
  box-shadow: none !important;
  background: #dc2626 !important;
  color: #fffaf3 !important;
}

.project-deal,
.deal-composer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.project-deal h5,
.project-deal h6,
.deal-block h6 {
  margin: 0 0 8px;
}

.deal-block,
.deal-milestone,
.deal-quote {
  margin-top: 12px;
}

.deal-quote {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.deal-quote-accepted {
  border-color: var(--primary);
}

.deal-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.quote-line-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px;
  margin-bottom: 8px;
}

.quote-line-row:has(input:nth-child(3)) {
  grid-template-columns: 1fr 90px 120px;
}

.catalog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.catalog-chips p {
  flex-basis: 100%;
  margin: 0;
}

.catalog-chip {
  border: 1px solid rgba(28, 25, 20, 0.16);
  border-radius: 999px;
  background: #fffaf3;
  color: #1f3d32;
  font: inherit;
  padding: 6px 10px;
  cursor: pointer;
}

.install-hint {
  position: fixed;
  z-index: 40;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #1f3d32;
  color: #f3eee4;
  box-shadow: 0 10px 30px rgba(31, 61, 50, 0.28);
}

.install-hint p {
  margin: 0;
  flex: 1 1 180px;
}

.deal-form input,
.deal-form textarea,
.quote-line-row input {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(28, 25, 20, 0.16);
  border-radius: 10px;
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
