:root {
  --bg: #000000;
  --card: #0b0b0d;
  --card-soft: #111114;
  --line: #24242a;
  --line-strong: #34343c;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --quiet: #71717a;
  --accent: #35e0a1;
  --accent-text: #00140d;
  --danger: #ff5e6c;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

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

button {
  color: inherit;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 11vw, 4.8rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 5vw, 2.05rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 7px;
  font-size: 1.12rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
}

fieldset {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.page-shell {
  width: min(940px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 16px 48px;
}

.landing-page {
  display: grid;
  min-height: calc(100vh - 28px);
  place-items: center;
}

.landing-card {
  display: grid;
  width: min(460px, 100%);
  gap: 28px;
}

.landing-copy {
  display: grid;
  gap: 8px;
}

.landing-tagline {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.15rem, 5vw, 1.55rem);
  font-weight: 850;
  line-height: 1.2;
}

.landing-actions,
.quick-actions,
.card-list,
.modal-form,
.app-page,
.app-shell {
  display: grid;
  gap: 12px;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  font-weight: 950;
}

.brand.large {
  font-size: 1.06rem;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--accent-text);
  background: var(--accent);
  border-radius: var(--radius);
  font-weight: 950;
}

.app-shell {
  padding-top: 6px;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  gap: 12px;
  padding: 8px 0 14px;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(12px);
}

.top-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.nav-button,
.auth-tab,
.link-button {
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-button {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 12px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 900;
}

.nav-button.active {
  color: var(--accent-text);
  background: var(--accent);
  border-color: var(--accent);
}

.app-page {
  padding-top: 12px;
}

.page-head {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}

.compact-head {
  display: grid;
  justify-content: stretch;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.button,
.mini-button,
.ghost-button,
.quiet-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--text);
  background: var(--card-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
}

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

.button.compact,
.mini-button.compact {
  min-height: 42px;
  padding-inline: 16px;
}

.ghost-button,
.quiet-button {
  background: #000000;
}

.quiet-button {
  min-height: 38px;
  color: var(--quiet);
  font-size: 0.88rem;
}

.link-button {
  min-height: 42px;
  color: var(--muted);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.button.full,
.mini-button.full,
.ghost-button.full,
.quiet-button.full {
  width: 100%;
}

a.button,
a.mini-button,
a.ghost-button,
a.quiet-button {
  text-decoration: none;
}

.job-card,
.helper-card,
.response-card,
.profile-card,
.safety-note {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.job-card p,
.helper-card p,
.response-card p,
.profile-card p {
  margin-bottom: 0;
}

.card-photo {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  color: var(--quiet);
  font-size: 0.9rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-flex;
  width: fit-content;
  min-height: 25px;
  align-items: center;
  padding: 0 8px;
  color: var(--accent);
  background: rgba(53, 224, 161, 0.1);
  border: 1px solid rgba(53, 224, 161, 0.18);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.pill.warn {
  color: var(--danger);
  background: rgba(255, 94, 108, 0.1);
  border-color: rgba(255, 94, 108, 0.2);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.empty-state {
  padding: 20px;
  color: var(--muted);
  background: #000000;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.safety-note {
  margin-top: 16px;
  color: var(--muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-tab {
  min-height: 42px;
  color: var(--muted);
  background: #000000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
}

.auth-tab.active {
  color: var(--accent-text);
  background: var(--accent);
  border-color: var(--accent);
}

.location-fields {
  display: grid;
  gap: 12px;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  background: #000000;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: none;
}

input,
select {
  min-height: 48px;
  padding: 0 12px;
}

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

input[type="checkbox"] {
  width: auto;
  min-height: auto;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 224, 161, 0.14);
}

.check-grid {
  display: grid;
  gap: 8px;
}

.check-grid label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--text);
  font-size: 0.92rem;
}

.upload-box {
  display: grid;
  min-height: 84px;
  place-items: center;
  color: var(--muted);
  background: #000000;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
}

.upload-box input {
  display: none;
}

.image-preview {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.form-status {
  min-height: 20px;
  margin-bottom: 0;
  color: var(--accent);
}

.contact-number {
  padding: 10px;
  color: var(--muted);
  background: #000000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px 14px;
  color: var(--accent-text);
  background: var(--accent);
  border-radius: var(--radius);
  font-weight: 900;
}

.hidden {
  display: none !important;
}

dialog {
  color: var(--text);
}

.modal {
  width: min(540px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.modal.is-open:not([open]) {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 40;
  display: block;
  transform: translate(-50%, -50%);
}

body.modal-fallback-open::before {
  position: fixed;
  inset: 0;
  z-index: 30;
  content: "";
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(2px);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(2px);
}

.close {
  float: right;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: #000000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
}

@media (min-width: 720px) {
  .page-shell {
    padding-top: 18px;
  }

  .app-topbar {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .top-nav {
    justify-content: flex-end;
  }

  .quick-actions {
    width: min(380px, 100%);
  }

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

  .card-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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