:root {
  color-scheme: light;
  --ink: #243137;
  --muted: #66757c;
  --paper: #fffaf5;
  --surface: #ffffff;
  --coral: #fb6f64;
  --coral-dark: #d74d46;
  --teal: #1aa6a6;
  --mint: #dff7ef;
  --yellow: #f7c948;
  --line: rgba(36, 49, 55, .12);
  --shadow: 0 22px 50px rgba(57, 37, 29, .18);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 4%, rgba(247, 201, 72, .35), transparent 28%),
    linear-gradient(155deg, #fff2df 0%, #f7fffb 48%, #eaf8ff 100%);
  color: var(--ink);
}

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

button {
  border: 0;
  cursor: pointer;
  color: inherit;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  background: rgba(255, 250, 245, .86);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(36, 49, 55, .06), 0 28px 80px rgba(36, 49, 55, .2);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px 10px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 10px;
  background: rgba(255, 250, 245, .78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar,
  .tabbar {
    background: rgba(255, 255, 255, .96);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.brand strong, .brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 17px;
  letter-spacing: .2px;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 24px rgba(36, 49, 55, .08);
}

svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

main {
  min-height: calc(100vh - 88px);
  min-height: calc(100svh - 88px);
  padding: 4px 18px 102px;
}

.screen {
  display: none;
  animation: rise .22s ease-out;
}

.screen.active { display: block; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-panel {
  position: relative;
  height: 224px;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  background: #f9d8c9;
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 49, 55, .05), rgba(36, 49, 55, .66));
}

.hero-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: #fff;
}

.hero-copy p,
.section-heading p,
.match-hero p {
  margin: 0 0 7px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hero-copy p {
  color: #ffe9a6;
}

.hero-copy h1 {
  max-width: 310px;
  margin: 0;
  font-size: 30px;
  line-height: 1;
}

.filter-strip {
  display: flex;
  gap: 9px;
  margin: 18px -18px 14px;
  padding: 0 18px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-strip::-webkit-scrollbar { display: none; }

.chip,
.suggestions button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(36, 49, 55, .08);
}

.chip.active {
  background: var(--ink);
  color: #fff;
}

.profile-card {
  overflow: hidden;
  border: 1px solid rgba(36, 49, 55, .08);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-gate {
  display: none;
  gap: 14px;
  margin: 4px 0 16px;
  padding: 16px;
  border: 1px solid rgba(251, 111, 100, .28);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-gate.show {
  display: grid;
}

.app-shell.profile-incomplete #screen-discover .filter-strip,
.app-shell.profile-incomplete #screen-discover .profile-card,
.app-shell.profile-incomplete #screen-discover .action-row {
  display: none;
}

.profile-gate p {
  margin: 0 0 6px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.profile-gate h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.profile-gate span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.profile-media {
  position: relative;
  min-height: 230px;
  background: linear-gradient(135deg, #ffe4d4, #dff7ef);
}

.dog-portrait {
  position: absolute;
  inset: 18px 18px 0;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 50% 32%, var(--fur-1), var(--fur-2) 62%, transparent 63%),
    radial-gradient(circle at 36% 22%, var(--ear-1) 0 16%, transparent 17%),
    radial-gradient(circle at 64% 22%, var(--ear-2) 0 16%, transparent 17%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
}

.dog-portrait::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 86px;
  height: 62px;
  border-radius: 50% 50% 44% 44%;
  background:
    radial-gradient(circle at 35% 28%, #243137 0 5px, transparent 6px),
    radial-gradient(circle at 65% 28%, #243137 0 5px, transparent 6px),
    radial-gradient(circle at 50% 55%, #2d2523 0 8px, transparent 9px),
    var(--muzzle);
  transform: translate(-50%, -50%);
}

.dog-portrait::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 190px;
  height: 118px;
  border-radius: 54% 54% 0 0;
  background: linear-gradient(135deg, var(--fur-1), var(--fur-2));
  transform: translateX(-50%);
}

.report-button,
.distance-pill {
  position: absolute;
  top: 14px;
  z-index: 1;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.report-button { left: 14px; }
.distance-pill { right: 14px; display: grid; place-items: center; }

.profile-content { padding: 18px; }

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

.profile-heading h2,
.section-heading h2,
.match-hero h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
}

.profile-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.match-score {
  display: grid;
  min-width: 58px;
  min-height: 58px;
  place-items: center;
  border-radius: 18px;
  background: var(--mint);
  color: #0b6f6e;
  line-height: 1;
}

.match-score strong { font-size: 18px; }
.match-score span { font-size: 11px; font-weight: 900; }

.blurb {
  margin: 16px 0;
  font-size: 17px;
  font-weight: 800;
}

.trait-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.trait {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff6ea;
  color: #624035;
  font-size: 12px;
  font-weight: 900;
}

.trait span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 700;
}

.owner-note,
.safety-callout {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 13px;
  border-radius: 18px;
  background: #edf8ff;
  color: #35515f;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.owner-note svg {
  flex: 0 0 auto;
  color: var(--teal);
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 24px 0;
}

.round-action {
  display: grid;
  height: 62px;
  place-items: center;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(36, 49, 55, .16);
}

.round-action.pass { color: #64727a; }
.round-action.like { background: var(--coral); color: #fff; }
.round-action.like svg { transform: scale(1.1); }

.section-heading {
  padding: 18px 4px 12px;
}

.match-hero {
  display: grid;
  min-height: 570px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.match-orbit {
  position: relative;
  width: 206px;
  height: 206px;
  margin-bottom: 24px;
}

.match-orbit svg {
  width: 100%;
  height: 100%;
  color: var(--coral);
  filter: drop-shadow(0 18px 30px rgba(251, 111, 100, .32));
}

.avatar {
  display: grid;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 16px 30px rgba(36, 49, 55, .16);
  color: var(--ink);
  font-weight: 950;
}

.avatar.mini {
  position: absolute;
  z-index: 2;
  width: 78px;
  height: 78px;
  font-size: 30px;
}

.avatar.one { left: -10px; top: 34px; background: #ffe0c8; }
.avatar.two { right: -10px; bottom: 28px; background: #caf4ef; }

.match-hero h2 {
  max-width: 320px;
  margin-bottom: 10px;
}

.match-hero span {
  max-width: 300px;
  color: var(--muted);
  font-weight: 750;
}

.stack {
  display: grid;
  gap: 12px;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  font-weight: 950;
}

.primary-button {
  background: var(--ink);
  color: #fff;
}

.secondary-button {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.chat-card,
.planner,
.parks-panel,
.profile-setup,
.safety-list {
  display: grid;
  gap: 14px;
}

.chat-card {
  padding: 14px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.message {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.message.theirs {
  background: #edf8ff;
  color: #37525f;
}

.message.mine {
  justify-self: end;
  background: var(--coral);
  color: #fff;
}

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

.composer {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: #f4f7f6;
}

.composer input,
.planner input,
.planner select,
.owner-fields input,
.owner-fields textarea {
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 750;
}

.owner-fields textarea {
  min-height: 88px;
  padding-top: 12px;
  resize: vertical;
}

.composer button {
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--teal);
  color: #fff;
}

.planner {
  padding: 16px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.profile-setup {
  padding: 16px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.completion-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff6ea, #edf8ff);
}

.completion-card strong,
.completion-card span {
  display: block;
}

.completion-card strong {
  font-size: 30px;
  line-height: 1;
}

.completion-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.completion-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(36, 49, 55, .12);
}

.completion-track div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width .2s ease;
}

.photo-uploader {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
}

.photo-uploader input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-preview {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #fff1ea;
  color: var(--coral-dark);
}

.photo-preview.has-photo {
  background:
    radial-gradient(circle at 50% 38%, #d9954f 0 32%, transparent 33%),
    radial-gradient(circle at 42% 38%, #243137 0 3px, transparent 4px),
    radial-gradient(circle at 58% 38%, #243137 0 3px, transparent 4px),
    linear-gradient(135deg, #dff7ef, #fff6ea);
}

.photo-uploader strong,
.photo-uploader small {
  display: block;
}

.photo-uploader strong {
  font-size: 15px;
}

.photo-uploader small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.story-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 0%, rgba(247, 201, 72, .32), transparent 36%),
    linear-gradient(135deg, #243137, #155d61);
  color: #fff;
}

.story-copy span {
  display: inline-grid;
  min-height: 24px;
  place-items: center;
  margin-bottom: 8px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.story-copy h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.05;
}

.story-copy p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.story-capture {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
}

.story-capture input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.story-preview {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}

.story-preview.has-story {
  border-color: var(--yellow);
  background:
    radial-gradient(circle at 50% 36%, #f5c173 0 28%, transparent 29%),
    radial-gradient(circle at 42% 34%, #243137 0 3px, transparent 4px),
    radial-gradient(circle at 58% 34%, #243137 0 3px, transparent 4px),
    linear-gradient(135deg, #fff1ea, #dff7ef);
  color: transparent;
}

.story-capture strong {
  font-size: 16px;
}

.story-status {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 850;
}

.story-status.active {
  background: rgba(247, 201, 72, .2);
  color: #fff;
}

.owner-profile {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px dashed rgba(26, 166, 166, .42);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(223, 247, 239, .68), #fff);
}

.optional-heading span {
  display: inline-grid;
  min-height: 26px;
  place-items: center;
  margin-bottom: 8px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--mint);
  color: #0c6969;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.optional-heading h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

.optional-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.owner-photo {
  background: #fff;
}

.photo-preview.owner {
  background: var(--ink);
  color: #fff;
}

.photo-preview.owner.has-photo {
  background:
    radial-gradient(circle at 50% 34%, #f5c173 0 24%, transparent 25%),
    radial-gradient(circle at 42% 30%, #243137 0 4px, transparent 5px),
    radial-gradient(circle at 58% 30%, #243137 0 4px, transparent 5px),
    linear-gradient(135deg, #fff1ea, #dff7ef);
  color: transparent;
}

.owner-fields {
  display: grid;
  gap: 10px;
}

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

.owner-fields label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.owner-preview {
  display: grid;
  gap: 10px;
  padding: 13px;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(36, 49, 55, .08);
}

.owner-preview-heading strong,
.owner-preview-heading span {
  display: block;
}

.owner-preview-heading strong {
  font-size: 15px;
}

.owner-preview-heading span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.owner-preview-list {
  display: grid;
  gap: 7px;
}

.owner-preview-list span {
  padding: 9px 10px;
  border-radius: 13px;
  background: #fffaf5;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.requirement-list {
  display: grid;
  gap: 9px;
}

.personality-quiz,
.profile-preview {
  display: grid;
  gap: 12px;
}

.quiz-heading,
.profile-preview-heading {
  padding: 4px 2px 0;
}

.quiz-heading strong,
.quiz-heading span,
.profile-preview-heading strong,
.profile-preview-heading span {
  display: block;
}

.quiz-heading strong,
.profile-preview-heading strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.quiz-heading span,
.profile-preview-heading span,
.profile-preview-empty {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.quiz-card,
.profile-preview {
  padding: 14px;
  border: 1px solid rgba(36, 49, 55, .08);
  border-radius: 20px;
  background: #fffaf5;
}

.quiz-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.12;
}

.quiz-card p {
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.quiz-options,
.profile-chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quiz-option {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(36, 49, 55, .12);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.quiz-option.selected {
  border-color: rgba(26, 166, 166, .42);
  background: var(--mint);
  color: #0c6969;
}

.profile-chip {
  min-height: 68px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(36, 49, 55, .08);
}

.profile-chip span,
.profile-chip strong {
  display: block;
}

.profile-chip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.profile-chip strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.1;
}

.requirement-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.requirement-item input {
  width: 22px;
  height: 22px;
  accent-color: var(--teal);
}

.requirement-item strong,
.requirement-item span {
  display: block;
}

.requirement-item strong {
  font-size: 14px;
}

.requirement-item span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.parks-panel {
  padding: 16px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.map-preview {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(223, 247, 239, .95), rgba(237, 248, 255, .95)),
    #edf8ff;
}

.map-preview::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 20px;
  border: 2px dashed rgba(26, 166, 166, .35);
}

.map-road {
  position: absolute;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 2px rgba(36, 49, 55, .05);
}

.map-road.one {
  left: -18px;
  right: 60px;
  top: 62px;
  transform: rotate(-12deg);
}

.map-road.two {
  left: 90px;
  right: -24px;
  bottom: 46px;
  transform: rotate(22deg);
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 34px;
  height: 34px;
  border: 5px solid #fff;
  border-radius: 50% 50% 50% 8px;
  background: var(--coral);
  box-shadow: 0 12px 26px rgba(251, 111, 100, .35);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.map-pin::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.map-park {
  position: absolute;
  width: 58px;
  height: 44px;
  border-radius: 50%;
  background: rgba(26, 166, 166, .28);
  box-shadow: inset 0 0 0 2px rgba(26, 166, 166, .18);
}

.map-park.a { left: 28px; top: 24px; }
.map-park.b { right: 34px; top: 30px; }
.map-park.c { left: 58px; bottom: 24px; }

.parks-copy,
.park-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}

.park-status {
  padding: 12px 13px;
  border-radius: 16px;
  background: #fff6ea;
  color: #624035;
}

.park-status.loading {
  background: #edf8ff;
  color: #35515f;
}

.park-status.ready {
  background: var(--mint);
  color: #0b6f6e;
}

.park-status.error {
  background: #ffeceb;
  color: #9b342f;
}

.park-links {
  display: grid;
  gap: 9px;
}

.park-link {
  display: block;
  padding: 12px 13px;
  border-radius: 16px;
  background: #edf8ff;
  color: #275d70;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.park-list {
  display: grid;
  gap: 10px;
}

.park-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.park-card strong,
.park-card span {
  display: block;
}

.park-card strong {
  font-size: 15px;
}

.park-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.park-card button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.planner label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.planner input[type="range"] {
  accent-color: var(--coral);
  padding: 0;
}

.planner output {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.safety-callout {
  display: block;
  margin-top: 0;
  background: var(--mint);
}

.safety-list article {
  display: grid;
  gap: 5px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(36, 49, 55, .09);
}

.safety-list strong {
  font-size: 16px;
}

.safety-list span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: 100%;
  max-width: 430px;
  padding: 9px 12px 9px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .86);
  border-top: 1px solid rgba(36, 49, 55, .08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.tab {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 54px;
  padding: 7px 4px;
  border-radius: 18px;
  background: transparent;
  color: #748189;
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 390px) {
  .tab {
    font-size: 10px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .tab svg {
    width: 19px;
    height: 19px;
  }
}

.tab span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab svg {
  width: 21px;
  height: 21px;
}

.tab.active {
  background: #fff1ea;
  color: var(--coral-dark);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 30;
  width: calc(100% - 40px);
  max-width: 330px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(36, 49, 55, .94);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (min-width: 760px) {
  body {
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    place-items: center;
    padding: 28px;
  }

  .app-shell {
    min-height: 840px;
    max-height: 920px;
    border-radius: 36px;
  }

  .tabbar {
    position: absolute;
    border-radius: 0 0 36px 36px;
  }
}

@media (max-width: 360px) {
  .profile-heading h2,
  .section-heading h2,
  .match-hero h2 { font-size: 25px; }

  .hero-copy h1 { font-size: 27px; }
  main { padding-left: 14px; padding-right: 14px; }
}
