:root {
  color-scheme: light;
  --white: #ffffff;
  --recessed: #f1efe8;
  --text: #2c2c2a;
  --muted: #5f5e5a;
  --placeholder: #888780;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.2);
  --green-soft: #eaf3de;
  --green: #639922;
  --green-dark: #3b6d11;
  --blue-soft: #e6f1fb;
  --blue: #378add;
  --blue-dark: #185fa5;
  --amber-soft: #faeeda;
  --amber: #ef9f27;
  --amber-dark: #854f0b;
  --red-soft: #fcebeb;
  --red: #e24b4a;
  --red-dark: #a32d2d;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}

h2 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

h3 {
  font-size: 14px;
  font-weight: 500;
}

i {
  font-size: 16px;
  line-height: 1;
}

.site-shell,
.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 14px;
}

.mobile-app-shell {
  width: min(760px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 12px 12px 84px;
}

.sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.site-header,
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 16px;
}

.brand-link,
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.brand-mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--white);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.button,
.icon-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--white);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.button.dark {
  border-color: var(--text);
  background: var(--text);
  color: var(--white);
}

.button.light {
  background: var(--recessed);
}

.button.green {
  border-color: rgba(99, 153, 34, 0.25);
  background: var(--green-soft);
  color: var(--green-dark);
}

.icon-button {
  width: 36px;
  padding: 0;
}

.lead {
  color: var(--muted);
}

.meta {
  color: var(--muted);
  font-size: 11px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  min-height: 22px;
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--recessed);
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.pill.green {
  background: var(--green-soft);
  color: var(--green-dark);
}

.pill.blue {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.pill.amber {
  background: var(--amber-soft);
  color: var(--amber-dark);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 20px;
  align-items: stretch;
  min-height: 520px;
  padding: 18px 0;
}

.landing-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.landing-hero-copy h1 {
  max-width: 560px;
  font-size: 42px;
  line-height: 1.05;
}

.landing-actions,
.toolbar,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-map,
.map-panel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 0.5px solid var(--border);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0,0,0,0.05) 1px, transparent 1px),
    var(--recessed);
  background-size: 54px 54px;
}

.map-road {
  position: absolute;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 0.5px solid var(--border);
}

.map-road.one {
  left: -8%;
  right: 12%;
  top: 34%;
  transform: rotate(-12deg);
}

.map-road.two {
  left: 22%;
  right: -15%;
  top: 62%;
  transform: rotate(18deg);
}

.marker {
  position: absolute;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--text);
  color: var(--white);
}

.marker.worker {
  background: var(--green);
}

.marker-card {
  position: absolute;
  display: grid;
  gap: 3px;
  width: 190px;
  padding: 10px;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

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

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

.card,
.landing-feature-grid article,
.panel {
  display: grid;
  gap: 10px;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  padding: 14px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 12px;
}

.map-panel {
  min-height: 620px;
}

.side-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

.list {
  display: grid;
  gap: 8px;
}

.list-card {
  display: grid;
  gap: 8px;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--white);
}

.list-card.active {
  border-color: var(--border-strong);
  background: #fbfaf7;
}

.job-card {
  cursor: pointer;
}

.job-deck {
  overflow: hidden;
}

.swipe-card {
  display: grid;
  min-height: 232px;
  gap: 10px;
  touch-action: pan-y;
  user-select: none;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #fbfaf7;
}

.deck-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.deck-card-top > div {
  min-width: 0;
}

.deck-actions {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
}

.deck-actions .icon-button {
  width: 44px;
  height: 44px;
}

.salary {
  font-weight: 500;
}

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

.field {
  display: grid;
  gap: 5px;
}

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

.field span {
  color: var(--muted);
  font-size: 11px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 0.5px solid var(--border);
  border-radius: 9px;
  padding: 8px 10px;
  background: var(--white);
  color: var(--text);
}

.suggest-list {
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow: auto;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  background: var(--white);
}

.suggest-list button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.suggest-list button:hover {
  background: var(--recessed);
}

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

.tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  background: var(--recessed);
}

.tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.tabs button.active {
  background: var(--white);
  color: var(--text);
}

.app-view {
  display: none;
  gap: 12px;
}

.app-view.active {
  display: grid;
}

.screen-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.mobile-map {
  min-height: 220px;
  margin-bottom: 12px;
}

.map-card-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 78%);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.map-job-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: var(--white);
  color: var(--text);
  text-align: left;
}

.map-job-card.active {
  border-color: var(--text);
  background: #fbfaf7;
}

.map-job-card span,
.map-job-card small,
.map-job-card strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-job-card small {
  color: var(--muted);
  font-size: 11px;
}

.map-job-card strong {
  font-size: 12px;
  font-weight: 500;
}

.employer-map {
  min-height: 360px;
  margin-bottom: 12px;
}

.category-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.category-strip button {
  min-height: 32px;
  white-space: nowrap;
  border: 0.5px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--white);
  color: var(--muted);
}

.category-strip button.active {
  border-color: var(--text);
  background: var(--text);
  color: var(--white);
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  border-top: 0.5px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  padding: 6px max(8px, env(safe-area-inset-left)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
  backdrop-filter: blur(12px);
}

.bottom-nav a {
  display: grid;
  min-width: 0;
  min-height: 44px;
  place-items: center;
  gap: 2px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 10px;
}

.bottom-nav a.active {
  background: var(--recessed);
  color: var(--text);
}

.profile-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 0.5px solid var(--border);
  border-radius: 12px;
}

.profile-preview img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: var(--recessed);
}

.profile-map {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0,0,0,0.05) 1px, transparent 1px),
    var(--recessed);
  background-size: 44px 44px;
}

.profile-map .marker {
  transform: translate(-50%, -50%);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.check-row input {
  width: auto;
  min-height: auto;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 860px) {
  .top-nav {
    display: none;
  }

  .landing-hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
  }

  .landing-hero-copy h1 {
    font-size: 32px;
  }

  .feature-grid,
  .landing-feature-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .map-panel {
    min-height: 430px;
  }
}
