:root {
  color-scheme: light;
  --ink: #18332f;
  --muted: #60706c;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #dfe7e1;
  --green: #226b59;
  --green-dark: #174d41;
  --sage: #e7f0eb;
  --mint: #d6eadf;
  --sky: #e8f4f6;
  --aqua: #7bbdbe;
  --turquoise: #16b6c4;
  --turquoise-dark: #0a6fb2;
  --terracotta: #bd6848;
  --gold: #d9a441;
  --blue: #426b9e;
  --shadow: 0 16px 44px rgba(24, 51, 47, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fbfaf7;
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 12px clamp(16px, 4vw, 54px);
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid rgba(223, 231, 225, 0.86);
  backdrop-filter: blur(14px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.brand-name,
.brand-block h1 {
  margin: 0;
  color: var(--turquoise-dark);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
}

.brand-name::first-letter {
  color: var(--blue);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.nav-button {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.nav-button.is-active {
  background: #e7f8fb;
  color: var(--turquoise-dark);
}

.header-cta,
.hero-primary,
.hero-secondary {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 950;
  text-decoration: none;
}

.header-cta,
.hero-primary {
  background: linear-gradient(135deg, var(--turquoise-dark), var(--turquoise));
  color: #fff;
}

.hero-secondary {
  border: 1px solid rgba(22, 182, 196, 0.82);
  background: rgba(22, 182, 196, 0.18);
  color: #fff;
}

.site-main {
  min-width: 0;
}

.view {
  display: block;
  scroll-margin-top: 96px;
}

.quote-section,
#workers-view,
#admin-view {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.hero-section {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(690px, 76svh);
  padding: clamp(48px, 8vw, 96px) clamp(18px, 6vw, 76px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 34, 30, 0.82) 0%, rgba(8, 34, 30, 0.48) 46%, rgba(8, 34, 30, 0.08) 100%),
    url("./assets/domestic-cleaning.png") center / cover;
  color: #fff;
}

.hero-content {
  width: min(650px, 100%);
}

.hero-content .eyebrow {
  color: #d9fff2;
}

.hero-content h2 {
  margin: 0;
  font-size: clamp(3.7rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-content p:not(.eyebrow) {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: -36px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.trust-strip article {
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 20px;
  background: #fff;
}

.trust-strip strong {
  color: var(--green-dark);
  font-size: 1rem;
}

.trust-strip span {
  color: var(--muted);
  line-height: 1.45;
}

.platform-notice {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f4fbf7 100%);
  box-shadow: var(--shadow);
}

.platform-notice h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0;
}

.platform-notice p:not(.eyebrow) {
  max-width: 850px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.notice-grid article {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.notice-grid strong {
  color: var(--green-dark);
}

.notice-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.worker-intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.worker-intro article,
.professional-guide,
.opportunity-access,
.opportunity-placeholder,
.locked-job {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(24, 51, 47, 0.09);
}

.worker-intro article {
  display: grid;
  gap: 7px;
  padding: 18px;
}

.worker-intro strong,
.professional-guide h3,
.professional-guide strong,
.opportunity-placeholder h4,
.locked-job h4 {
  color: var(--green-dark);
}

.worker-intro span,
.professional-guide p,
.opportunity-access p,
.opportunity-placeholder p,
.locked-job p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.professional-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f3fbf8 100%);
}

.professional-guide h3 {
  margin: 0 0 8px;
}

.pricing-summary {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(18, 173, 184, 0.28);
  border-radius: 8px;
  background: #edfafa;
}

.pricing-summary span,
.pricing-summary small {
  color: var(--muted);
  line-height: 1.35;
}

.opportunity-access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: 16px;
  margin: 18px 0;
  padding: 18px;
  background: #f7fbf8;
}

.opportunity-access h3,
.opportunity-placeholder h4,
.locked-job h4 {
  margin: 0 0 8px;
}

.opportunity-placeholder,
.locked-job {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.opportunity-placeholder .secondary-action,
.locked-job .secondary-action {
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

.opportunity-placeholder small,
.locked-job small {
  color: var(--muted);
  line-height: 1.45;
}

.proposal-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.proposal-box > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.proposal-box span,
.proposal-box label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.proposal-box strong {
  color: var(--green-dark);
}

.proposal-box label {
  display: grid;
  gap: 7px;
}

.proposal-note {
  margin: 0;
  padding: 9px 10px;
  border-radius: 6px;
  background: #eef4f2;
  color: var(--muted);
  font-weight: 800;
}

.proposal-note.is-lower {
  background: #eaf6ed;
  color: var(--green-dark);
}

.proposal-note.is-higher {
  background: #fbf0d7;
  color: #885d10;
}

.primary-action.compact {
  min-height: 44px;
}

.compliance-box,
.support-panel,
.rating-flow {
  display: grid;
  gap: 16px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf8;
}

.compliance-box h3,
.support-panel h3,
.rating-flow h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
}

.compliance-box p,
.support-panel p,
.rating-flow p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.support-panel {
  background: #fff;
}

.support-panel small {
  color: var(--muted);
  line-height: 1.45;
}

.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.legal-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
}

.credit-wallet,
.stripe-steps {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.credit-wallet {
  margin: 12px 0;
}

.worker-access-card {
  border-color: rgba(18, 173, 184, 0.32);
  background: #edfafa;
}

.worker-access-card b {
  color: var(--turquoise-dark);
}

.wallet-action {
  width: fit-content;
  min-height: 38px;
  margin-top: 4px;
  padding: 0 12px;
  border: 1px solid var(--turquoise);
  border-radius: 7px;
  background: #fff;
  color: var(--turquoise-dark);
  cursor: pointer;
  font-weight: 900;
}

.credit-wallet strong,
.stripe-steps strong {
  color: var(--green-dark);
}

.credit-wallet span,
.stripe-steps span {
  color: var(--muted);
  line-height: 1.4;
}

.credit-packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.credit-packs button {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--turquoise);
  border-radius: 7px;
  background: #fff;
  color: var(--turquoise-dark);
  cursor: pointer;
  font-weight: 900;
}

.rating-flow {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  background: #fff;
}

.rating-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf8;
}

.rating-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.rating-head div {
  display: grid;
  gap: 3px;
}

.rating-head span {
  color: var(--muted);
  font-weight: 750;
}

.rating-score {
  display: grid;
  place-items: center;
  min-width: 52px;
  min-height: 42px;
  border-radius: 8px;
  background: var(--green);
  color: #fff !important;
  font-weight: 950;
}

.stars {
  display: flex;
  gap: 4px;
}

.stars button {
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #e7f0eb;
  color: #9aa7a3;
  cursor: pointer;
  font-size: 1.15rem;
}

.stars button.is-active {
  background: #fff4d9;
  color: #b97906;
}

.section-heading,
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-heading h2,
.app-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.secondary-action {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--turquoise);
  border-radius: 7px;
  background: var(--panel);
  color: var(--turquoise-dark);
  cursor: pointer;
  font-weight: 900;
}

.guided-flow {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
  gap: 16px;
  margin-bottom: 18px;
}

.guided-copy {
  min-height: 260px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(12, 45, 39, 0.34), rgba(12, 45, 39, 0.74)),
    url("./assets/domestic-cleaning.png") center / cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.guided-copy .eyebrow {
  color: #d7fbef;
}

.guided-copy h3 {
  margin: 34px 0 10px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: 0;
}

.guided-copy p:last-child {
  max-width: 320px;
  margin: 0;
  line-height: 1.5;
}

.flow-card {
  min-height: 260px;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.flow-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.flow-progress {
  height: 4px;
  margin: 12px 0 28px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ef;
}

.flow-progress span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--aqua);
  transition: width 160ms ease;
}

.flow-card h3 {
  margin: 0 0 22px;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: 0;
}

.flow-options {
  display: grid;
  gap: 10px;
}

.flow-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.flow-option::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 1px solid #b8c8c2;
  border-radius: 50%;
  background: #fff;
}

.flow-option.is-selected {
  border-color: var(--aqua);
  background: #eef9f7;
}

.flow-option.is-selected::before {
  border: 5px solid var(--green);
}

.flow-option strong {
  font-size: 0.98rem;
}

.flow-option span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.flow-options-checks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-check {
  min-height: 48px;
  padding: 12px 12px 12px 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  text-align: left;
  font-weight: 800;
}

.flow-check::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 13px;
  width: 18px;
  height: 18px;
  border: 2px solid #b8c8c2;
  border-radius: 4px;
  background: #fff;
}

.flow-check.is-selected {
  border-color: var(--aqua);
  background: #eef9f7;
}

.flow-check.is-selected::before {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 3px #fff;
}

.flow-upload,
.flow-location,
.flow-done {
  display: grid;
  gap: 14px;
}

.flow-upload p,
.flow-location p,
.flow-done p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.upload-button {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--turquoise-dark), var(--turquoise));
  color: #fff;
  cursor: pointer;
}

.upload-button input {
  display: none;
}

.flow-textarea {
  width: 100%;
  min-height: 154px;
}

.flow-location label {
  display: grid;
  gap: 8px;
}

.flow-done {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf8;
}

.flow-done strong {
  font-size: 2rem;
  line-height: 1;
}

.flow-done span {
  color: var(--green-dark);
  font-weight: 900;
}

.flow-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.ghost-action,
.dark-action {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
}

.ghost-action {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.dark-action {
  border: 0;
  background: linear-gradient(135deg, var(--turquoise-dark), var(--turquoise));
  color: #fff;
}

.section-note {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.service-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.service-tile {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 164px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(24, 51, 47, 0.12);
}

.service-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 24, 22, 0.02), rgba(6, 24, 22, 0.58));
}

.service-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-tile span {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 950;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.service-tile.is-active {
  border-color: var(--aqua);
  outline: 3px solid rgba(123, 189, 190, 0.32);
}

.service-explainer {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin: -4px 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf8;
  box-shadow: 0 12px 30px rgba(24, 51, 47, 0.08);
}

.service-explainer img {
  width: 100%;
  min-height: 170px;
  border-radius: 8px;
  object-fit: cover;
}

.service-explainer h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
}

.service-explainer p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.service-points {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.service-points li::marker {
  color: var(--turquoise);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-panel,
.worker-form {
  padding: clamp(16px, 3vw, 26px);
}

.field-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-group {
  display: grid;
  gap: 7px;
}

.field-group small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

label,
legend,
.counter span,
.availability span {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
}

select,
input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #cdd9d2;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

textarea {
  resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 107, 89, 0.16);
}

fieldset {
  margin: 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.service-panel {
  display: none;
}

.service-panel.is-active {
  display: block;
}

legend {
  padding: 0 8px 0 0;
  font-size: 1.05rem;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 18px;
}

.counter {
  display: grid;
  gap: 7px;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 750;
}

.checklist input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.service-clarity {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.service-clarity details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
}

.service-clarity summary {
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 900;
}

.service-clarity p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.service-clarity strong {
  color: var(--green-dark);
}

.frequency-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 18px;
}

.frequency-card {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.frequency-card strong {
  font-size: 0.96rem;
}

.frequency-card span {
  color: var(--green-dark);
  font-size: 1.2rem;
  font-weight: 950;
}

.frequency-card small {
  color: var(--muted);
  font-weight: 750;
}

.frequency-card.is-active {
  border-color: var(--aqua);
  background: #eef9f7;
  box-shadow: 0 0 0 3px rgba(123, 189, 190, 0.22);
}

.price-matrix {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.price-matrix-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.price-matrix-title strong {
  font-size: 0.98rem;
}

.price-matrix-title span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.compact-table table {
  min-width: 520px;
}

.compact-table th,
.compact-table td {
  padding: 10px 14px;
}

.pricing-note {
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pricing-note.standalone {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
}

.result-panel {
  position: sticky;
  top: 104px;
  padding: 22px;
}

.result-photo {
  height: 174px;
  margin: -8px -8px 18px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sky);
}

.result-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.result-main strong {
  max-width: 100%;
  font-size: clamp(2rem, 4.6vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.result-main span {
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.result-list {
  display: grid;
  gap: 0;
  margin: 18px 0;
}

.result-list div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.result-list dt {
  color: var(--muted);
  font-weight: 750;
}

.result-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.status.blue {
  background: #e5edf8;
  color: var(--blue);
}

.status.amber {
  background: #fbf0d7;
  color: #885d10;
}

.status.green {
  background: var(--mint);
  color: var(--green-dark);
}

.admin-breakdown {
  margin: 20px 0;
  padding: 16px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.estimate-notice {
  background: #edfafa;
  border-color: rgba(18, 173, 184, 0.32);
}

.quote-report {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quote-report h3 {
  margin: 0;
  color: var(--green-dark);
  font-size: 1rem;
}

.quote-report p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.quote-report ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.quote-report li::marker {
  color: var(--turquoise);
}

.internal-only {
  display: none !important;
}

.admin-breakdown h3,
.availability h3,
.panel-title-row h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.admin-breakdown p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-note {
  max-width: 760px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.result-list.compact {
  margin-bottom: 0;
}

.primary-action {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--turquoise-dark), var(--turquoise));
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.primary-action:hover {
  background: linear-gradient(135deg, #075f98, #119eaa);
}

.availability {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
}

.availability-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.85fr 0.85fr;
  gap: 12px;
}

.availability-grid label {
  display: grid;
  gap: 7px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  min-height: 116px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 16px;
  font-size: 2.1rem;
  letter-spacing: 0;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.management-messages {
  margin-bottom: 18px;
}

.message-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.message-card,
.empty-state {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf8;
}

.message-card.is-resolved {
  background: #f7faf8;
  opacity: 0.78;
}

.message-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.message-head div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.message-head strong,
.empty-state strong {
  color: var(--green-dark);
}

.message-head span,
.empty-state span {
  color: var(--muted);
  line-height: 1.4;
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.message-meta span {
  padding: 6px 8px;
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.message-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100% - 36px));
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header-cta {
    display: none;
  }

  .trust-strip,
  .notice-grid,
  .worker-intro,
  .professional-guide,
  .opportunity-access,
  .rating-flow {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .app-header {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions {
    justify-content: space-between;
  }

  .workspace-grid,
  .guided-flow,
  .service-tiles,
  .service-explainer,
  .field-grid.two,
  .field-grid.three,
  .counter-grid,
  .frequency-grid,
  .metrics-grid,
  .availability-grid {
    grid-template-columns: 1fr;
  }

  .result-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .quote-section,
  .platform-notice,
  #workers-view,
  #admin-view {
    width: min(100% - 20px, 1180px);
    padding: 36px 0;
  }

  .brand-logo {
    width: min(230px, 72vw);
    height: 48px;
  }

  .hero-section {
    min-height: 620px;
  }

  .nav-button {
    min-width: 112px;
  }

  .checklist {
    grid-template-columns: 1fr;
  }

  .form-panel,
  .worker-form,
  .result-panel {
    padding: 14px;
  }
}
