:root {
  color-scheme: light;
  --bg: #f7fbfb;
  --surface: #ffffff;
  --surface-soft: #edf7f6;
  --text: #1d2b2f;
  --muted: #60737a;
  --line: #dce8e8;
  --blue: #256fbe;
  --blue-soft: #e8f2ff;
  --green: #2f9d83;
  --green-soft: #e6f5ef;
  --warning: #fff6df;
  --shadow: 0 10px 32px rgba(26, 67, 74, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

p,
li,
a {
  overflow-wrap: anywhere;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header,
.site-footer,
main {
  width: min(1120px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  margin: 0 auto;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: -2px;
}

.top-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-nav a,
.top-nav button,
.site-footer a {
  color: var(--muted);
  font-weight: 650;
}

.back-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 2px;
}

.back-button::before {
  content: "←";
  font-size: 18px;
  line-height: 1;
}

.back-button:hover,
.back-button:focus-visible {
  color: var(--blue);
}

.back-button {
  font-size: 0;
  width: 32px;
  justify-content: center;
}

.back-button::before {
  font-size: 20px;
}

@media (min-width: 720px) {
  .back-button {
    font-size: inherit;
    width: auto;
  }
}

.language-pill,
.city-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.language-label {
  padding-left: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.language-select {
  width: auto;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  padding: 5px 28px 5px 8px;
  background-color: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.language-option {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 5px 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.language-option.is-active {
  background: var(--blue-soft);
  color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  padding: 42px 0 26px;
  max-width: 100%;
  min-width: 0;
}

.hero-copy,
.search-panel,
.section-block,
.guide-header,
.guide-layout > *,
.info-band,
.city-summary,
.form-shell {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(28px, 4vw, 44px);
}

.compact-hero-copy,
.service-search-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 4px 0;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--green-soft);
  color: #1e705e;
  font-size: 13px;
  font-weight: 750;
}

h1,
h2,
h3 {
  line-height: 1.16;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(42px, 8vw, 76px);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(24px, 4vw, 34px);
}

h3 {
  font-size: 19px;
}

.tagline {
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 760;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  margin: 0;
  overflow-wrap: anywhere;
}

.search-panel {
  padding: 26px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-panel label,
.field label {
  font-weight: 760;
  margin-bottom: 10px;
  display: block;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.button:focus,
.category-card:focus {
  outline: 3px solid rgba(37, 111, 190, 0.2);
  outline-offset: 2px;
}

.helper-text,
.note,
.muted {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.section-block,
.form-shell {
  padding: 26px;
  margin: 24px 0;
}

.service-entry-section,
.launcher-section {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 4px 0 12px;
}

.compact-line-state {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
}

.category-card {
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.category-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
  border-color: rgba(37, 111, 190, 0.42);
  background: var(--blue-soft);
}

.category-card small {
  color: var(--muted);
}

.category-card.urgent {
  background: #fff8f2;
}

.icon {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: #286c71;
  font-size: 12px;
  font-weight: 800;
}

.info-band,
.city-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  margin: 24px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-weight: 760;
  white-space: nowrap;
}

.button.secondary {
  background: #fff;
  color: var(--blue);
}

.site-footer {
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  max-width: 900px;
}

.guide-header {
  padding: 32px;
  margin: 24px 0;
}

.problem-hero {
  display: grid;
  gap: 14px;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(37, 111, 190, 0.18);
  border-radius: 8px;
  background: var(--blue-soft);
  color: #1d5b9c;
  font-size: 14px;
  font-weight: 800;
}

.badge-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  font-size: 18px;
}

.trust-note {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--green-soft);
  color: #1e705e;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.guide-content,
.guide-aside {
  padding: 26px;
}

.guide-content section + section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.quick-answer-card,
.feedback-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.quick-answer-card p,
.feedback-card p {
  margin-top: 0;
}

.status-chip {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 10px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--warning);
  color: #755b12;
  font-size: 12px;
  font-weight: 850;
}

.guide-content ul,
.guide-content ol {
  padding-left: 22px;
}

.guide-content li + li {
  margin-top: 7px;
}

.callout {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--warning);
  border: 1px solid #f0dca7;
}

.official-links,
.quick-links {
  display: grid;
  gap: 10px;
}

.official-links a,
.quick-links a {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.local-placeholder {
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-soft);
}

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

.field.full {
  grid-column: 1 / -1;
}

.empty-state {
  margin: 18px 0 0;
  padding: 12px;
  background: var(--warning);
  border-radius: 8px;
}

@media (max-width: 900px) {
  .hero,
  .guide-layout,
  .info-band,
  .city-summary {
    grid-template-columns: 1fr;
    display: grid;
  }

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

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  main {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .top-nav {
    width: auto;
    margin-left: auto;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .language-switch {
    max-width: 100%;
  }

  .city-pill {
    max-width: 100%;
    min-height: 30px;
    padding: 5px 8px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 42px);
    word-break: break-word;
  }

  .search-row,
  .form-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy,
  .search-panel,
  .section-block,
  .guide-header,
  .guide-content,
  .guide-aside,
  .form-shell {
    width: 100%;
    max-width: 100%;
    padding: 24px;
    overflow: hidden;
  }

  .guide-header p,
  .guide-content p,
  .guide-content li,
  .quick-answer-card,
  .feedback-card,
  .official-links a,
  .local-placeholder {
    max-width: min(100%, 310px);
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* Homepage service search and official entry cards */
.home-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: start;
  padding-top: 18px;
}

.compact-hero-copy h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.compact-hero-copy .tagline {
  font-size: clamp(17px, 2vw, 24px);
}

.location-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.location-select-label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.location-select-label select {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
}

.location-panel .helper-text {
  flex-basis: 100%;
  margin: 0;
}

.location-detected-title,
.location-detected-line,
.location-status-actions {
  display: block;
}

.location-detected-title {
  color: var(--text);
  font-weight: 850;
}

.location-status-actions {
  margin-top: 4px;
}

.text-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 0;
  margin-right: 12px;
}

.service-search-panel {
  justify-content: start;
  gap: 10px;
}

.service-search-panel input[type="search"] {
  min-height: 58px;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  box-shadow: 0 8px 24px rgba(26, 67, 74, 0.06);
}

.search-results {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.search-result-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.search-result-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.search-result-main h3,
.search-result-main p {
  margin: 0;
}

.search-result-main p {
  color: var(--muted);
  font-size: 14px;
}

.search-result-actions,
.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-entry-section {
  margin-top: 18px;
}

.home-quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.compact-section-title {
  align-items: start;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
}

.service-entry-grid {
  display: grid;
  gap: 22px;
}

.service-category-group {
  display: grid;
  gap: 10px;
}

.service-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(220, 232, 232, 0.72);
}

.service-category-header h3,
.service-category-header p {
  margin: 0;
}

.service-category-header h3 {
  font-size: 18px;
}

.service-category-header p,
.service-category-header small {
  color: var(--muted);
  font-size: 12px;
}

.service-category-header small {
  max-width: 390px;
  text-align: right;
}

.service-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 10px;
}

.service-entry-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 96px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 8px 4px;
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.service-entry-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.service-main-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 54px;
  color: var(--text);
}

.service-main-link:hover {
  text-decoration: none;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(220, 232, 232, 0.85);
  box-shadow: 0 6px 16px rgba(18, 32, 54, 0.08);
  font-size: 24px;
}

.service-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.service-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.service-text strong {
  font-size: 14px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.service-text small {
  color: var(--muted);
  font-size: 12px;
}

.service-entry-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #1d5b9c;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.service-entry-label.is-provider {
  background: var(--green-soft);
  color: #1e705e;
}

.service-entry-label.is-guide {
  background: #f3f7fb;
  color: var(--muted);
}

.compact-prep-button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}


.search-results[hidden],
.empty-state[hidden] {
  display: none !important;
}

.compact-info-band h2,
.compact-info-band p {
  margin-top: 0;
}

@media (max-width: 1020px) {
  .service-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
  }
}

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

  .service-category-header small {
    max-width: 100%;
    text-align: left;
  }

  .service-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .service-entry-card {
    min-height: 96px;
  }

  .service-icon {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .search-result-actions,
  .service-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .search-result-actions .button,
  .service-actions .button {
    width: auto;
    white-space: normal;
  }

}

/* Provider/listing page structures */

.listing-hero {
  gap: 12px;
}

.listing-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.listing-filter-bar span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #1d5b9c;
  font-size: 12px;
  font-weight: 850;
}

.provider-card-summary {
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

.plan-card .provider-image-placeholder,
.rental-card .provider-image-placeholder,
.moving-card .provider-image-placeholder {
  min-height: 132px;
}
.provider-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

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

.provider-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.provider-image-placeholder {
  display: grid;
  place-items: center;
  min-height: 118px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.provider-card h2,
.provider-card h3,
.provider-card p {
  margin: 0;
}

.provider-card h2,
.provider-card h3 {
  font-size: 19px;
}

.provider-meta {
  display: grid;
  gap: 7px;
  margin: 0;
}

.provider-meta div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
  font-size: 14px;
}

.provider-meta dt {
  color: var(--muted);
  font-weight: 800;
}

.provider-meta dd {
  margin: 0;
}

.demo-chip,
.provider-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--warning);
  color: #755b12;
  font-size: 12px;
  font-weight: 850;
}

.provider-status {
  background: #f3f7fb;
  color: var(--muted);
}

.provider-notice {
  padding: 14px;
  border: 1px solid #f0dca7;
  border-radius: 8px;
  background: var(--warning);
}

@media (max-width: 900px) {
  .provider-grid {
    grid-template-columns: 1fr;
  }
}

/* Comparison prototype cards */

.compact-market-hero {
  padding-bottom: 22px;
}

.market-grid {
  align-items: stretch;
}

.market-card {
  align-content: start;
}

.market-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.market-metrics strong {
  font-size: 20px;
  line-height: 1.1;
}

.market-metrics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.comparison-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

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

.comparison-header h2,
.comparison-header p {
  margin: 6px 0 0;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: var(--surface-soft);
  font-weight: 850;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .market-metrics strong {
    font-size: 18px;
  }

  .comparison-header {
    display: grid;
  }
}

/* Healthcare finder */

.healthcare-safety-note {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.listing-filter-bar button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #1d5b9c;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.listing-filter-bar button:hover,
.listing-filter-bar button.is-active {
  background: var(--green-soft);
  color: #1e705e;
}

.healthcare-route-panel {
  border: 1px solid var(--line);
  background: #fff;
}

.healthcare-card {
  transition: opacity 140ms ease, transform 140ms ease;
}

.healthcare-card.is-muted-care-card {
  opacity: 0.48;
}

.guide-to-finder-link {
  margin-top: 14px;
}


/* Jobs seeker / employer page */
.jobs-hero {
  gap: 14px;
}

.mode-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.mode-tab {
  display: inline-grid;
  gap: 1px;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  padding: 7px 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.mode-tab span {
  font-size: 12px;
  font-weight: 750;
}

.mode-tab.is-active {
  background: var(--green-soft);
  color: #1e705e;
}

.job-search-shell {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.job-search-shell label {
  font-size: 13px;
  font-weight: 850;
  color: var(--muted);
}

.job-search-shell input[type="search"] {
  min-height: 48px;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
}

.job-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.job-listing-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.job-card-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.job-category-chip {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #1d5b9c;
  font-size: 12px;
  font-weight: 850;
}

.job-listing-card h3 {
  margin: 0;
  font-size: 21px;
}

.job-listing-card h3 span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.job-pay-strip {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.job-pay-strip strong {
  font-size: 19px;
  line-height: 1.15;
}

.job-pay-strip span,
.job-summary,
.job-demo-note {
  color: var(--muted);
  font-size: 14px;
}

.job-summary,
.job-demo-note {
  margin: 0;
}

.job-facts {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-facts li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid rgba(220, 232, 232, 0.72);
  font-size: 14px;
}

.job-facts strong {
  color: var(--muted);
}

.job-listing-card:not(.is-expanded) .job-facts li:nth-child(n+3),
.job-listing-card:not(.is-expanded) .job-summary:nth-of-type(2) {
  display: none;
}

.job-demo-note {
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--warning);
  color: #755b12;
  font-weight: 750;
}

.hire-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 14px;
}

.hire-checklist-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.hire-checklist-card h3 {
  margin: 0;
}

.hire-field-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hire-field-grid span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.flow-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.compact-provider-notice p {
  margin-bottom: 0;
}

.official-work-links {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .job-card-grid,
  .hire-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mode-tabs {
    width: 100%;
  }

  .mode-tab {
    flex: 1 1 140px;
  }

  .job-listing-card {
    padding: 14px;
  }

  .job-facts li {
    grid-template-columns: 1fr;
  }
}


/* Verified data quality gate */
.verified-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.verified-card, .verified-empty-state, .future-field-box { min-width: 0; }
.verified-card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.verified-card-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.verified-card h3, .verified-empty-state h2, .future-field-box h3 { margin: 0; }
.verified-meta { display: grid; gap: 8px; margin: 0; }
.verified-meta div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 8px; font-size: 14px; }
.verified-meta dt { color: var(--muted); font-weight: 850; }
.verified-meta dd { margin: 0; }
.location-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.verified-empty-state { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.future-field-box { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.future-field-box ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.future-field-box li { display: inline-flex; min-height: 28px; align-items: center; padding: 5px 8px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 800; }
@media (max-width: 900px) { .verified-grid, .verified-empty-state { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .verified-card, .future-field-box { padding: 14px; } .verified-meta div { grid-template-columns: 1fr; } }

/* Manual matching pilot */
.pilot-action-strip,
.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.request-builder {
  display: grid;
  gap: 18px;
}
.request-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.request-output-label {
  font-weight: 800;
}
.request-output {
  min-height: 260px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.5;
}
.copy-status {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
@media (max-width: 760px) {
  .request-field-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .pilot-action-strip .button,
  .request-actions .button {
    width: 100%;
    justify-content: center;
  }
}


/* Language switching */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.35rem;
  border: 1px solid var(--border-color, #d8dee8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.language-switcher button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  font: inherit;
}

.language-switcher button.is-active {
  background: #10233f;
  color: #ffffff;
}

html[lang="en"] [lang="zh-Hans"],
body[data-language="en"] [data-lang="zh"] {
  display: none !important;
}

html[lang="zh-Hans"] [data-lang="en"] {
  display: none !important;
}

.request-builder .full-span,
.output-label {
  grid-column: 1 / -1;
}

textarea#request-output,
textarea#merchant-template {
  width: 100%;
  box-sizing: border-box;
  margin-top: 1rem;
  border: 1px solid var(--border-color, #d8dee8);
  border-radius: 8px;
  padding: 0.9rem;
  font: inherit;
  resize: vertical;
}

/* Universal app launcher */
.compact-launcher-hero {
  display: grid;
  gap: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 8px 0 12px;
}

.launcher-section {
  display: grid;
  gap: 14px;
}

.app-launcher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 16px 10px;
}

.app-tile {
  min-height: 96px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 8px 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--tile-text, inherit);
  text-align: center;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.app-tile:hover,
.app-tile:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.app-icon {
  position: relative;
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--tile-brand, #10233f) 28%, #ffffff);
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    var(--tile-bg, var(--tile-brand, #10233f));
  color: var(--tile-icon, #fff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 18px rgba(18, 32, 54, 0.1);
  overflow: hidden;
}

.app-icon--logo {
  background: #fff;
  padding: 8px;
}

.app-icon--logo .app-icon-symbol {
  display: none;
}

.app-icon--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-icon--logo .app-icon-mark {
  display: none;
}

.app-icon--fallback {
  padding: 0;
  background: var(--tile-bg, var(--tile-brand, #10233f));
}

.app-icon--fallback .app-icon-mark {
  display: inline-grid;
}

.app-icon--fallback .app-icon-symbol {
  display: inline-grid;
}

.app-icon--branded-fallback .app-icon-symbol {
  position: absolute;
  inset: 7px;
  width: auto;
  height: auto;
  opacity: 0.2;
  transform: translate(-8px, -8px) scale(1.15);
}

.app-icon-mark {
  position: relative;
  z-index: 1;
  max-width: 46px;
  padding: 2px 5px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--tile-brand, #10233f);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(18, 32, 54, 0.13);
}

.app-icon-symbol {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
}

.app-icon-symbol svg {
  width: 30px;
  height: 30px;
  display: block;
  fill: currentColor;
}

.app-icon-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  max-width: 34px;
  min-width: 18px;
  min-height: 16px;
  display: inline-grid;
  place-items: center;
  padding: 1px 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--tile-brand, #10233f);
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 2px 5px rgba(18, 32, 54, 0.12);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-tile-icon {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--tile-brand, #10233f);
  color: var(--tile-icon, #fff);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

.app-tile-name {
  max-width: 100%;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.app-tile-subtitle {
  max-width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.compact-empty-state {
  grid-template-columns: 1fr;
}

.compact-chip-row {
  margin-top: 8px;
}

.compact-future-fields {
  margin-top: 16px;
}

.external-helper-panel {
  max-width: 760px;
  margin: 10px auto 0;
  padding: 0 20px;
}

.external-helper-panel details {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.7);
}

.external-helper-panel summary {
  cursor: pointer;
  font-weight: 750;
}

.external-helper-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.quick-words-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 14px;
  margin: 12px 0 0;
}

.quick-words-list div {
  min-width: 0;
}

.quick-words-list dt {
  font-weight: 750;
}

.quick-words-list dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.external-open-options {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.text-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--blue);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 640px) {
  .site-header.has-internal-back,
  .site-header:has(.back-button) {
    min-height: 64px;
    justify-content: center;
    padding-left: 56px;
    padding-right: 16px;
  }

  .site-header.has-internal-back .brand,
  .site-header:has(.back-button) .brand {
    min-width: 0;
    margin-right: auto;
  }

  .site-header.has-internal-back .brand span:last-child,
  .site-header:has(.back-button) .brand span:last-child {
    display: none;
  }

  .site-header .back-button {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 36px;
    height: 36px;
    min-height: 36px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
  }

  .site-header .city-pill {
    display: none;
  }

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

  .app-tile {
    min-height: 96px;
    padding: 8px 4px;
  }
}
