/* ============================================================
   Hoozr base.css — design tokens, app shell, shared components.
   DO NOT EDIT from section branches. Sections own their own
   feed/community/pets/activity/messages/profile/adoption/auth css.
   ============================================================ */

/* ------------------------------------------------------------
   BRAND ACCENT — the only two lines to edit when trying a new
   brand color. Everything else on the site derives from them.
   The two themes are independent: light and dark can be the same
   color or different ones. Write channels space-separated, no
   "#" and no commas. A dark value needs to stay legible on black,
   so a color that is already dark won't work as-is there.
     midnight green #105666 -> 16 86 102
     moss green     #839958 -> 131 153 88
     coral          #FF6B4A -> 255 107 74
     moss (lifted)  #9AB06D -> 154 176 109
   ------------------------------------------------------------ */
:root {
  --accent-light-rgb: 16 86 102;  /* #105666 midnight green */
  --accent-dark-rgb: 16 86 102;   /* #105666 midnight green */
}

:root {
  --bg: #F2F2F7;
  --bg-elevated: #FFFFFF;
  --text: #1C1C1E;
  --text-secondary: #6E6E73;
  --separator: rgba(60, 60, 67, 0.16);
  --accent-rgb: var(--accent-light-rgb);
  --accent-soft-alpha: 0.14;
  --green: #34C759;
  --red: #FF3B30;
  --blue: #0A84FF;
  --radius: 16px;
  --radius-sm: 10px;
  --header-height: 52px;
  --tab-bar-height: 56px;
  --frame-bg: #E7E7EC;
}

/* Derived from whichever --accent-rgb the active palette below sets.
   Custom properties resolve at use time, so this stays correct for
   light, dark, and manually-picked themes alike. */
:root {
  --accent: rgb(var(--accent-rgb));
  --accent-soft: rgb(var(--accent-rgb) / var(--accent-soft-alpha));
}

/* Dark palette — shared by the OS setting (media query) and an explicit
   [data-theme="dark"] choice. The [data-theme] selectors have higher
   specificity than the media query, so a manual pick always wins. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-elevated: #1C1C1E;
    --text: #F2F2F7;
    --text-secondary: #98989F;
    --separator: rgba(84, 84, 88, 0.55);
    --accent-rgb: var(--accent-dark-rgb);
    --accent-soft-alpha: 0.18;
    --green: #30D158;
    --red: #FF453A;
    --blue: #0A84FF;
    --frame-bg: #0A0A0C;
  }
}

:root[data-theme="dark"] {
  --bg: #000000;
  --bg-elevated: #1C1C1E;
  --text: #F2F2F7;
  --text-secondary: #98989F;
  --separator: rgba(84, 84, 88, 0.55);
  --accent-rgb: var(--accent-dark-rgb);
  --accent-soft-alpha: 0.18;
  --green: #30D158;
  --red: #FF453A;
  --blue: #0A84FF;
  --frame-bg: #0A0A0C;
}

:root[data-theme="light"] {
  --bg: #F2F2F7;
  --bg-elevated: #FFFFFF;
  --text: #1C1C1E;
  --text-secondary: #6E6E73;
  --separator: rgba(60, 60, 67, 0.16);
  --accent-rgb: var(--accent-light-rgb);
  --accent-soft-alpha: 0.14;
  --green: #34C759;
  --red: #FF3B30;
  --blue: #0A84FF;
  --frame-bg: #E7E7EC;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--frame-bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.45;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- App frame (phone column on desktop) ---------- */

.app-frame {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (min-width: 600px) {
  .app-frame {
    border-left: 1px solid var(--separator);
    border-right: 1px solid var(--separator);
  }
}

.app-content {
  flex: 1;
  padding: 16px;
  padding-bottom: calc(var(--tab-bar-height) + env(safe-area-inset-bottom) + 24px);
}

/* ---------- Sticky translucent header ---------- */

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-height);
  padding: 8px 16px;
  padding-top: calc(8px + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--separator);
}

.app-header-title h1 {
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-header-title .wordmark { color: var(--text); }

/* Brand logo — the dog/cat mark. Ships as two PNGs, one per ink color:
   the dark-ink art suits light backgrounds and the light-ink art dark ones.
   Both are in the DOM; the rules below reveal exactly one. Mirrors the
   palette's structure above so the manual theme toggle beats the OS setting.
   (The Pets nav item still uses the paw — see shared/_paw_icon.) */
.brand-logo { display: inline-flex; flex-shrink: 0; line-height: 0; }
.brand-logo img { display: block; }
.brand-logo-ink-light { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo-ink-dark { display: none; }
  :root:not([data-theme="light"]) .brand-logo-ink-light { display: block; }
}

:root[data-theme="dark"] .brand-logo-ink-dark { display: none; }
:root[data-theme="dark"] .brand-logo-ink-light { display: block; }
:root[data-theme="light"] .brand-logo-ink-dark { display: block; }
:root[data-theme="light"] .brand-logo-ink-light { display: none; }

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

.header-avatar-link { display: inline-flex; border-radius: 50%; }

/* ---------- Theme (sun/moon) toggle ---------- */

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--separator);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.theme-btn:active { transform: scale(0.94); }

.theme-icon { width: 20px; height: 20px; display: none; }

.theme-btn[data-theme-state="light"] .theme-icon-sun,
.theme-btn[data-theme-state="dark"] .theme-icon-moon {
  display: block;
}

/* The pop only plays when JS adds .theme-anim on a real toggle — never on the
   initial render or on Turbo navigation. */
.theme-btn.theme-anim .theme-icon { animation: theme-pop 0.4s ease; }

@keyframes theme-pop {
  from { transform: rotate(-90deg) scale(0.5); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* Brief global crossfade while the theme flips (added/removed by JS). */
:root.theme-transition,
:root.theme-transition * {
  transition: background-color 0.35s ease, color 0.35s ease,
              border-color 0.35s ease, fill 0.35s ease, stroke 0.35s ease !important;
}

/* ---------- Bottom tab bar ---------- */

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: calc(var(--tab-bar-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--bg-elevated) 78%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--separator);
}

@media (min-width: 600px) {
  .tab-bar {
    border-left: 1px solid var(--separator);
    border-right: 1px solid var(--separator);
  }
}

.tab-bar .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-top: 6px;
  -webkit-tap-highlight-color: transparent;
}

.tab-bar .nav-item.active { color: var(--accent); }
.tab-bar .nav-item svg { display: block; }

/* ---------- Toast (flash messages) ---------- */

.toast {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: min(480px, calc(100vw - 32px));
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--separator);
  animation: toast-in 0.3s ease-out;
}

.toast-alert { color: var(--red); }
.toast-notice { color: var(--text); }

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Cards ---------- */

.card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.card-subtitle { font-size: 13px; color: var(--text-secondary); }

/* ---------- iOS grouped list ---------- */

.list-group {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text);
  border-bottom: 1px solid var(--separator);
  min-height: 48px;
}

.list-row:last-child { border-bottom: none; }

.list-row-main { flex: 1; min-width: 0; }
.list-row-title { font-size: 16px; font-weight: 600; }
.list-row-subtitle { font-size: 13px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row-detail { font-size: 15px; color: var(--text-secondary); flex-shrink: 0; }

.list-row.chevron::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-secondary);
  border-top: 2px solid var(--text-secondary);
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0.6;
}

.list-header {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin: 0 16px 6px;
}

/* ---------- Buttons ---------- */

.btn-primary,
.btn-secondary {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--accent-soft); color: var(--accent); }

.btn-primary:active, .btn-secondary:active { transform: scale(0.98); opacity: 0.85; }

.btn-inline { display: inline-block; width: auto; padding: 8px 18px; font-size: 14px; }

/* ---------- Pills, chips, avatars ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

.pill-accent { background: var(--accent); color: #fff; }
.pill-muted { background: var(--separator); color: var(--text-secondary); }
.pill-green { background: rgba(52, 199, 89, 0.15); color: var(--green); }
.pill-red { background: rgba(255, 59, 48, 0.12); color: var(--red); }
.pill-blue { background: rgba(10, 132, 255, 0.12); color: var(--blue); }

.badge-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}

.badge-chip .badge-icon { font-size: 24px; line-height: 1; }

.avatar {
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.avatar-fallback {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  text-align: center;
  overflow: hidden;
}

/* ---------- Segmented control ---------- */

.segmented {
  display: flex;
  background: var(--separator);
  border-radius: var(--radius-sm);
  padding: 2px;
  margin-bottom: 16px;
}

.segmented .segment {
  flex: 1;
  text-align: center;
  padding: 7px 4px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.segmented .segment.active {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* ---------- Forms ---------- */

.form-field {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  padding: 4px 14px;
  border: 1px solid transparent;
}

.form-field:focus-within { border-color: var(--accent); }

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding-top: 8px;
}

.form-field input,
.form-field textarea,
.form-field select {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  padding: 8px 0 10px;
  outline: none;
}

.form-errors {
  background: rgba(255, 59, 48, 0.1);
  color: var(--red);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 14px;
}

.form-errors ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------- Empty state ---------- */

.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-secondary);
}

.empty-state .empty-icon { font-size: 48px; line-height: 1; margin-bottom: 12px; }
.empty-state h2 { font-size: 20px; color: var(--text); margin-bottom: 6px; }
.empty-state p { margin: 0 0 20px; font-size: 15px; }

/* ---------- Bottom sheet ---------- */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.4);
}

.sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  width: 100%;
  max-width: 520px;
  background: var(--bg-elevated);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.25);
  animation: sheet-up 0.25s ease-out;
}

.sheet::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--separator);
  margin: 0 auto 14px;
}

@keyframes sheet-up {
  from { transform: translate(-50%, 24px); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}

/* ---------- Stat tiles ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.stat-tile {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
}

.stat-tile .stat-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat-tile .stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ---------- Utility ---------- */

.text-secondary { color: var(--text-secondary); }
.section-title { font-size: 20px; margin: 20px 0 10px; }
.stack-sm > * + * { margin-top: 8px; }

/* ============================================================
   Desktop layout (>= 900px): the phone column becomes a fixed
   left sidebar + a centered content column with width tiers.
   Below 900px NOTHING here applies — the mobile app is untouched.
   ============================================================ */

/* Sidebar is desktop-only; hidden by default (mobile uses .tab-bar). */
.side-nav { display: none; }

@media (min-width: 900px) {
  body {
    padding-left: var(--side-nav-width, 244px);
  }

  /* Fixed left sidebar. */
  .side-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--side-nav-width, 244px);
    z-index: 60;
    display: flex;
    flex-direction: column;
    padding: 22px 14px calc(18px + env(safe-area-inset-bottom));
    border-right: 1px solid var(--separator);
    background: color-mix(in srgb, var(--bg-elevated) 55%, var(--frame-bg));
  }

  .side-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 12px 20px;
  }

  .side-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
  }

  .side-nav-top .theme-btn { width: 34px; height: 34px; flex-shrink: 0; }

  .side-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .side-nav .nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    transition: background 0.12s ease, color 0.12s ease;
  }
  .side-nav .nav-item svg { width: 24px; height: 24px; flex-shrink: 0; }
  .side-nav .nav-item:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
  .side-nav .nav-item.active { background: var(--accent-soft); color: var(--accent); }

  .side-nav-footer { margin-top: auto; padding-top: 16px; }

  /* On desktop the sidebar owns the toggle; hide the header copy. */
  .app-header .header-theme { display: none; }

  .side-nav-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    color: var(--text);
    transition: background 0.12s ease;
  }
  .side-nav-profile:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
  .side-nav-profile.active { background: var(--accent-soft); }
  .side-nav-profile-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
  .side-nav-profile-name { font-size: 14px; font-weight: 700; color: var(--text); }
  .side-nav-profile-sub { font-size: 12px; color: var(--text-secondary); }

  /* Content column: centered in the space beside the sidebar. */
  .app-frame {
    max-width: 720px;
    margin: 0 auto;
    border-left: none !important;
    border-right: none !important;
    background: transparent;
  }
  .app-frame.content-wide { max-width: 1040px; }
  /* Extra-wide column for card-grid pages (Pets, Volunteer). */
  .app-frame.content-xwide { max-width: 1320px; }

  /* No bottom tab bar on desktop. */
  .tab-bar { display: none; }

  .app-content {
    padding: 8px 24px 40px;
  }

  /* Slim header: title only, sidebar owns brand + profile. */
  .app-header {
    background: color-mix(in srgb, var(--frame-bg) 72%, transparent);
    border-bottom: none;
    padding: 16px 24px 4px;
    min-height: 0;
  }
  .app-header-title h1 { font-size: 30px; font-weight: 800; }
  .app-header .header-auth { display: none; }

  /* The full-page map opts into an edge-to-edge feel. */
  .app-frame.content-flush .app-content { padding-left: 0; padding-right: 0; }
}
/* Hoozr — feed section styles. Owned by the feed section agent; build on tokens/components from base.css. */

/* ---------- Feed stream & cards ---------- */

.feed-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* edge-to-edge-ish: bleed slightly into the content padding */
  margin: 0 -6px;
}

.feed-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feed-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
}

.feed-avatar-link { display: inline-flex; border-radius: 50%; flex-shrink: 0; }

.feed-card-byline { flex: 1; min-width: 0; }

.feed-author-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.feed-author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-verified {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.feed-via-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--separator);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.feed-card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-litter-tag { color: var(--blue); font-weight: 600; }

.feed-type-pill { flex-shrink: 0; font-size: 12px; padding: 4px 10px; }

/* ---------- Photos ---------- */

.feed-photos {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--separator);
}

.feed-photos::-webkit-scrollbar { display: none; }

.feed-photo-frame {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: block;
  line-height: 0;
}

.feed-photos-multi .feed-photo-frame { flex: 0 0 88%; }

.feed-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ---------- Body & actions ---------- */

.feed-card-body-link { display: block; color: inherit; }

.feed-card-body {
  margin: 0;
  padding: 10px 14px 4px;
  font-size: 15px;
  color: var(--text);
  white-space: pre-line;
  overflow-wrap: break-word;
}

.feed-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px 8px;
}

.feed-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease;
}

.feed-action:active { transform: scale(0.94); }

.feed-like .feed-heart { transition: transform 0.15s ease; }

.feed-like.liked {
  color: var(--accent);
}

.feed-like.liked .feed-heart {
  fill: var(--accent);
  stroke: var(--accent);
  animation: feed-heart-pop 0.25s ease;
}

@keyframes feed-heart-pop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.feed-action-delete { margin-left: auto; }
.feed-action-delete:hover { color: var(--red); }

/* ---------- Feed filter ---------- */

.feed-filter { position: sticky; top: calc(var(--header-height) + 8px); z-index: 30; }
.feed-filter .segment { display: block; color: var(--text-secondary); }
.feed-filter .segment.active { color: var(--text); }

/* ---------- Comments ---------- */

.feed-comments { margin-top: 20px; }
.feed-comment-count { font-size: 15px; font-weight: 600; }

.feed-comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.feed-comment { display: flex; gap: 8px; align-items: flex-start; }

.feed-comment-bubble {
  flex: 1;
  min-width: 0;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border-top-left-radius: 4px;
  padding: 8px 12px;
}

.feed-comment-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
}

.feed-comment-author { font-weight: 700; font-size: 13px; color: var(--text); }

.feed-comment-delete-form { margin-left: auto; }

.feed-comment-delete {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  padding: 0;
  cursor: pointer;
}

.feed-comment-delete:hover { color: var(--red); }

.feed-comment-body {
  margin: 2px 0 0;
  font-size: 14px;
  white-space: pre-line;
  overflow-wrap: break-word;
}

.feed-no-comments { margin: 8px 0 16px; font-size: 14px; }

.feed-comment-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border-radius: 999px;
  padding: 6px 6px 6px 8px;
}

.feed-comment-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  padding: 6px 4px;
}

.feed-comment-submit {
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}

.feed-signin-nudge {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  margin: 12px 0;
}

/* ---------- New-post composer ---------- */

.feed-composer-sheet {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 14px 16px 18px;
}

.feed-composer-grabber {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--separator);
  margin: 0 auto 14px;
}

.feed-composer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.feed-composer-hint { font-size: 12px; }

.feed-composer-textarea {
  width: 100%;
  min-height: 120px;
  border: none;
  resize: none;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  font-family: inherit;
  line-height: 1.4;
  outline: none;
}

.feed-composer-photos { margin: 8px 0 16px; }

.feed-photo-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.feed-photo-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.feed-photo-picker-compact { padding: 7px 12px; font-size: 13px; }

.feed-photo-previews {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 10px;
  scrollbar-width: none;
}

.feed-photo-previews:empty { display: none; }
.feed-photo-previews::-webkit-scrollbar { display: none; }

.feed-photo-preview {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--separator);
}

.feed-composer-type { margin-bottom: 16px; }
.feed-composer-type .list-header { margin: 0 0 8px; }

.feed-type-options { display: flex; flex-wrap: wrap; gap: 8px; }

.feed-type-option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.feed-type-option .pill {
  background: var(--separator);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 7px 14px;
}

.feed-type-option input[type="radio"]:checked + .pill {
  background: var(--accent);
  color: #fff;
}

.feed-composer-litter { margin-bottom: 16px; }
.feed-composer-litter .list-header { margin: 0 0 8px; }
.feed-composer-litter .form-field { margin-bottom: 6px; }

.feed-composer-cancel { margin-top: 10px; }

/* ---------- Litter groups ---------- */

.feed-litters-intro { border-left: 4px solid var(--accent); }

.feed-litters-nudge {
  font-size: 14px;
  padding: 4px 4px 16px;
}

.feed-litter-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.feed-litter-card {
  display: block;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feed-litter-card:active { opacity: 0.85; }

.feed-litter-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.feed-litter-avatars { display: flex; }

.feed-litter-avatars .avatar {
  margin-right: -8px;
  border: 2px solid var(--bg-elevated);
  box-sizing: content-box;
}

.feed-litter-card-name { font-size: 17px; font-weight: 700; }
.feed-litter-card-sub { font-size: 13px; margin-top: 2px; }

/* Litter group show — warm hero */

.feed-litter-hero {
  position: relative;
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-elevated) 70%);
  border-radius: var(--radius);
  padding: 20px 16px 16px;
  margin-bottom: 14px;
  overflow: hidden;
}

.feed-litter-hero-paws {
  position: absolute;
  top: -8px;
  right: -4px;
  font-size: 64px;
  opacity: 0.12;
  transform: rotate(-18deg);
  pointer-events: none;
}

.feed-litter-hero-name {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.feed-litter-hero-shelter { font-size: 14px; font-weight: 600; }

.feed-litter-hero-shelter a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.feed-litter-hero-desc {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.feed-litter-members {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.feed-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  font-size: 13px;
  color: var(--text);
}

.feed-member-names strong { font-weight: 700; }

/* Litter composer */

.feed-litter-composer { padding: 12px 14px; }

.feed-litter-composer-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feed-litter-composer-input {
  flex: 1;
  min-width: 0;
  border: none;
  resize: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  padding-top: 6px;
}

.feed-litter-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

/* ---------- Litter group join/leave ---------- */
.feed-litter-membership { margin-top: 14px; }
.feed-litter-membership form { display: inline; }
.feed-litter-membership .pill { border: none; cursor: pointer; font: inherit; }
/* Hoozr — community section styles. Owned by the community section agent; build on tokens/components from base.css. */

/* ---------- Category colors (community-owned tokens) ---------- */

:root {
  --cat-trail: #A9713E;
  --cat-park: #2E9E4F;
  --cat-restaurant: #E8702A;
  --cat-cafe: #8A6B4F;
  --cat-brewery: #D99A2B;
  --cat-campground: #2A9D8F;
  --cat-lodging: #7B61C4;
  --cat-shop: #D45890;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cat-trail: #C08A55;
    --cat-park: #43C168;
    --cat-restaurant: #F58A48;
    --cat-cafe: #B08D6E;
    --cat-brewery: #E9B04A;
    --cat-campground: #3CBBAC;
    --cat-lodging: #967FE0;
    --cat-shop: #E877A9;
  }
}

/* ---------- Hub landing ---------- */

.community-hero {
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--bg-elevated);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 20px;
}

.community-hero-emoji { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.community-hero h2 { font-size: 24px; margin-bottom: 4px; }
.community-hero p { margin: 0; color: var(--text-secondary); font-size: 14px; }

.community-see-all {
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.community-date-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  padding: 6px 2px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

.community-date-chip-day { font-size: 16px; font-weight: 800; line-height: 1.1; }
.community-date-chip-month { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.community-date-chip-lg { width: 54px; min-width: 54px; padding: 10px 2px; }
.community-date-chip-lg .community-date-chip-day { font-size: 20px; }

.community-tip-body { font-size: 14px; color: var(--text); white-space: normal; }

/* Map preview card on the hub */

.community-map-card {
  display: block;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.community-map-preview {
  position: relative;
  height: 130px;
  background:
    radial-gradient(circle at 78% 22%, rgba(42, 157, 143, 0.25), transparent 34%),
    radial-gradient(circle at 24% 70%, rgba(46, 158, 79, 0.28), transparent 40%),
    linear-gradient(115deg, transparent 47%, rgba(10, 132, 255, 0.35) 49%, rgba(10, 132, 255, 0.35) 54%, transparent 56%),
    repeating-linear-gradient(0deg, transparent 0 27px, var(--separator) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, var(--separator) 27px 28px),
    var(--bg);
}

.community-map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 15px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.community-map-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

/* ---------- Volunteer pages ---------- */

.community-opp-header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.community-opp-title { font-size: 22px; line-height: 1.2; }

.community-hubbubb-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--separator);
  border-radius: 999px;
  padding: 3px 10px;
}

.community-hubbubb-inline { color: var(--text-secondary); font-style: italic; }

.community-opp-facts { margin-bottom: 14px; border: 1px solid var(--separator); }
.community-opp-description { font-size: 15px; color: var(--text); margin: 0 0 18px; }

.community-back-link {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  color: var(--text-secondary);
}

/* ---------- Interactive map (/community/map) ---------- */

.community-map-shell {
  position: fixed;
  top: calc(var(--header-height) + env(safe-area-inset-top));
  bottom: calc(var(--tab-bar-height) + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  z-index: 10;
  overflow: hidden;
  background: var(--bg);
}

.community-map-canvas { position: absolute; inset: 0; z-index: 1; }

.community-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 0 32px;
}

.community-map-loading-dot { animation: community-paw-pulse 1.2s ease-in-out infinite; }

@keyframes community-paw-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
}

.community-map-overlay {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 1001; /* above Leaflet panes/controls */
  padding: 0 12px;
  pointer-events: none;
}

.community-map-overlay > * { pointer-events: auto; }

.community-map-search {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--separator);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.community-map-search:focus { border-color: var(--accent); }
.community-map-search::placeholder { color: var(--text-secondary); }

.community-map-location-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.community-map-location { flex: 1; padding: 8px 16px; font-size: 14px; }

.community-map-locate {
  flex-shrink: 0;
  width: 38px;
  border-radius: 999px;
  border: 1px solid var(--separator);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.community-map-chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.community-map-chips::-webkit-scrollbar { display: none; }

.community-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--separator);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  -webkit-tap-highlight-color: transparent;
}

.community-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Category-colored circular emoji markers */

.community-marker-wrap { background: none; border: none; }

.community-marker {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 50%;
  background: var(--cat-shop);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

/* World-search results not on Hoozr yet: dashed "ghost" markers */
.community-marker-external {
  border: 2px dashed #fff;
  opacity: 0.88;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* As-you-type world-search suggestions under the map search box */
.community-map-search-wrap {
  position: relative;
}

.community-map-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-elevated);
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
}

.community-suggestion {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 14px;
  border: none;
  background: none;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.community-suggestion:hover,
.community-suggestion:focus-visible {
  background: var(--accent-soft);
}

.community-suggestion + .community-suggestion {
  border-top: 1px solid var(--separator);
}

.community-suggestion-name {
  font-weight: 600;
  font-size: 14px;
}

.community-suggestion-address {
  font-size: 12px;
  color: var(--text-secondary);
}

.community-cat-trail { background: var(--cat-trail); }
.community-cat-park { background: var(--cat-park); }
.community-cat-restaurant { background: var(--cat-restaurant); }
.community-cat-cafe { background: var(--cat-cafe); }
.community-cat-brewery { background: var(--cat-brewery); }
.community-cat-campground { background: var(--cat-campground); }
.community-cat-lodging { background: var(--cat-lodging); }
.community-cat-shop { background: var(--cat-shop); }

/* Category pill on place pages: tint text, keep soft bg */
.pill.community-cat-pill { background: var(--accent-soft); }
.pill.community-cat-trail { background: none; box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--cat-trail) 16%, transparent); color: var(--cat-trail); }
.pill.community-cat-park { background: none; box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--cat-park) 16%, transparent); color: var(--cat-park); }
.pill.community-cat-restaurant { background: none; box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--cat-restaurant) 16%, transparent); color: var(--cat-restaurant); }
.pill.community-cat-cafe { background: none; box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--cat-cafe) 16%, transparent); color: var(--cat-cafe); }
.pill.community-cat-brewery { background: none; box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--cat-brewery) 16%, transparent); color: var(--cat-brewery); }
.pill.community-cat-campground { background: none; box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--cat-campground) 16%, transparent); color: var(--cat-campground); }
.pill.community-cat-lodging { background: none; box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--cat-lodging) 16%, transparent); color: var(--cat-lodging); }
.pill.community-cat-shop { background: none; box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--cat-shop) 16%, transparent); color: var(--cat-shop); }

/* Bottom-sheet marker card */

.community-map-sheet {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1001;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--separator);
  padding: 16px;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.2);
  animation: sheet-up 0.22s ease-out;
}

.community-map-sheet[hidden] { display: none; }

.community-map-sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--separator);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
}

.community-map-sheet-title { font-size: 17px; font-weight: 700; padding-right: 32px; }
.community-map-sheet-policy { font-size: 14px; color: var(--text-secondary); margin: 4px 0 12px; }

.community-map-sheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.community-map-sheet-tips { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

/* ---------- Place pages ---------- */

.community-place-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.community-place-name { font-size: 22px; line-height: 1.2; }

.community-policy-callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--accent-soft);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.community-policy-icon { font-size: 18px; line-height: 1.2; }

.community-place-description { font-size: 15px; margin: 0 0 12px; }

.community-mini-map {
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--separator);
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.community-pick-map { height: 220px; margin-bottom: 12px; }

.community-tip-row { align-items: flex-start; }
.community-tip-row .avatar { margin-top: 2px; }
.pill.community-tip-pill { padding: 2px 8px; font-size: 11px; }

/* Tip type + category segmented pickers (radio-based) */

.community-hidden-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.segmented .segment { position: relative; }

.segmented .segment:has(.community-hidden-radio:checked) {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.community-category-picker {
  overflow-x: auto;
  scrollbar-width: none;
}

.community-category-picker::-webkit-scrollbar { display: none; }

.community-category-picker .segment {
  flex: 0 0 auto;
  padding: 7px 12px;
  white-space: nowrap;
}

.community-coord-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ---------- Desktop: full-width interactive map ---------- */
@media (min-width: 900px) {
  .community-map-shell {
    top: 74px;
    bottom: 24px;
    left: calc(var(--side-nav-width, 244px) + 24px);
    right: 24px;
    width: auto;
    max-width: none;
    transform: none;
    border-radius: var(--radius);
    border: 1px solid var(--separator);
  }
}
/* Hoozr — Volunteer section: list/calendar toggle, opportunity types, month calendar.
   Calendar is mobile-first: a compact iOS-style month grid with per-day dots plus a
   tappable agenda underneath. At >=700px it becomes a full Google-style chip grid. */

.vol-view-toggle { margin-bottom: 12px; }
.vol-post-btn { margin-bottom: 16px; }

/* ---------- Type badge + transport route ---------- */

.vol-type-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  background: var(--accent-soft);
  color: var(--accent);
}

.vol-type-transport { background: rgba(10, 132, 255, 0.14); color: var(--blue); }

/* ---------- Month calendar: header ---------- */

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

.vol-cal-title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }

.vol-cal-nav {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}

.vol-cal-legend {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.vol-cal-key { display: inline-flex; align-items: center; gap: 5px; }
.vol-cal-swatch { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.vol-swatch-going { background: var(--green, #34c759); }
.vol-swatch-open { background: var(--accent); }
.vol-swatch-full { background: var(--separator); }

/* ---------- Grid (mobile: square day cells + dots) ---------- */

.vol-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.vol-cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  padding-bottom: 2px;
}

.vol-cal-day {
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
  padding: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.vol-cal-out { opacity: 0.35; }
.vol-cal-today { border-color: var(--accent); }

.vol-cal-daynum {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.vol-cal-out .vol-cal-daynum { color: var(--text-secondary); }
.vol-cal-today .vol-cal-daynum { color: var(--accent); }

.vol-cal-selected {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* Per-day dots (mobile only) */
.vol-cal-dots { display: flex; gap: 3px; justify-content: center; }
.vol-cal-dot { width: 5px; height: 5px; border-radius: 50%; display: block; }
.vol-dot-going { background: var(--green, #34c759); }
.vol-dot-open  { background: var(--accent); }
.vol-dot-full  { background: var(--separator); }

/* Full chips are desktop-only */
.vol-cal-chips { display: none; }

.vol-cal-chip {
  display: flex;
  gap: 3px;
  align-items: baseline;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}

.vol-cal-chip-time { font-weight: 800; flex-shrink: 0; opacity: 0.9; }
.vol-cal-chip-title { overflow: hidden; text-overflow: ellipsis; }

.vol-cal-chip-open  { background: var(--accent); }
.vol-cal-chip-going { background: var(--green, #34c759); }
.vol-cal-chip-full  { background: var(--separator); color: var(--text-secondary); }

/* ---------- Agenda for the selected day (mobile only) ---------- */

.vol-cal-agenda { margin-top: 18px; }

.vol-agenda-bar {
  width: 4px;
  height: 36px;
  border-radius: 2px;
  flex-shrink: 0;
  display: block;
}

.vol-cal-agenda-empty { margin-top: 12px; text-align: center; }

.vol-cal-hint { font-size: 12px; margin-top: 12px; }
.vol-cal-empty { text-align: center; margin: 16px 0; }

/* ---------- Desktop: full chip grid, no dots/agenda ---------- */

@media (min-width: 700px) {
  .vol-cal-grid { gap: 6px; }

  .vol-cal-day {
    aspect-ratio: auto;
    min-height: 116px;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    padding: 5px;
    cursor: default;
  }

  .vol-cal-daynum {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: right;
    padding: 0 2px;
  }
  .vol-cal-today .vol-cal-daynum { color: var(--accent); }

  /* Day selection is a mobile affordance — don't tint cells on desktop. */
  .vol-cal-selected { background: var(--bg-elevated); border-color: var(--separator); }
  .vol-cal-today.vol-cal-selected { border-color: var(--accent); }

  .vol-cal-chips { display: flex; flex-direction: column; gap: 2px; }
  .vol-cal-dots { display: none; }
  .vol-cal-agenda { display: none; }

  .vol-cal-title { font-size: 22px; }
}

/* ---------- Post form: transport fields ---------- */

.vol-transport-fields[hidden] { display: none; }
/* Hoozr — pets section styles. Owned by the pets section agent; build on tokens/components from base.css. */

/* ---------- Segmented control as links ---------- */

.segmented a.segment { display: block; }
.segmented a.segment:not(.active) { color: var(--text-secondary); }
.segmented a.segment.active { color: var(--text); }

/* ---------- Search box ---------- */

.pet-search { margin: 0 0 12px; }

.pet-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
  transition: border-color 0.15s ease;
}

.pet-search-box:focus-within { border-color: var(--accent); }

.pet-search-icon { flex-shrink: 0; color: var(--text-secondary); }

.pet-search-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
}

.pet-search-input::placeholder { color: var(--text-secondary); }
.pet-search-input::-webkit-search-cancel-button { display: none; }

.pet-search-clear {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--separator);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}

/* ---------- Filter chips ---------- */

.pet-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -16px 16px;
  padding: 2px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pet-chip-row::-webkit-scrollbar { display: none; }

.pet-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--separator);
  white-space: nowrap;
}

.pet-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.distance-chip-label {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.pet-chip-divider {
  flex-shrink: 0;
  width: 1px;
  height: 20px;
  background: var(--separator);
}

/* ---------- Adoptable grid ---------- */

.pets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* NOTE: these rules are scoped under .pets-grid on purpose. Another section
   defines a global horizontal-scroll `.pet-card { width: 128px }` that loads
   after this file; scoping here raises specificity so the adoptable cards
   always win and fill their grid track regardless of stylesheet order. */
.pets-grid .pet-card {
  display: block;
  width: auto;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  -webkit-tap-highlight-color: transparent;
}

.pets-grid .pet-card:active { opacity: 0.85; }

.pets-grid .pet-card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--accent-soft);
}

.pet-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--accent);
}

.pets-grid .pet-card-body { padding: 10px 12px 12px; }

.pets-grid .pet-card-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0;
}

.pets-grid .pet-card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 2px 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pets-grid .pet-card-org {
  display: flex;
  gap: 5px;
  align-items: baseline;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-secondary);
}

.pets-grid .pet-card-org span { flex-shrink: 0; }

/* Lost & Found cards reuse the adoptable grid card, with a status pill beside
   the name and a last-seen location / time instead of the shelter line. */
.pets-grid .pet-card-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pets-grid .pet-card-loc {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pets-grid .pet-card-time {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* ---------- Pet show ---------- */

.pet-hero { margin-bottom: 14px; }

.pet-hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.pet-hero .pet-photo-placeholder { font-size: 72px; }

.pet-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.pet-title { font-size: 26px; }

.pet-status-pill { text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px; }

.pet-via { margin: 0 0 12px; font-size: 13px; }

.pet-facts { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); margin-top: 12px; }

.pet-fact-value { font-size: 15px; }

.pet-description p { margin: 0 0 8px; font-size: 15px; }
.pet-description p:last-child { margin-bottom: 0; }

.pet-fee-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pet-actions { margin-bottom: 16px; }

.pet-shelter-header { margin-top: 4px; }

.pet-lastseen-location { font-size: 16px; font-weight: 600; margin: 4px 0; }

.pet-map-snippet {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.pet-map-link { margin-left: auto; font-size: 13px; font-weight: 700; }

.pet-drone-blurb { font-size: 13px; margin: 0 4px 16px; }

.pet-reunited-card {
  border: 1px solid rgba(52, 199, 89, 0.4);
  background: rgba(52, 199, 89, 0.08);
}

/* ---------- Lost & Found list ---------- */

.pet-report-btn { margin-bottom: 16px; }

.lf-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.lf-card {
  display: flex;
  gap: 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  -webkit-tap-highlight-color: transparent;
}

.lf-card:active { opacity: 0.85; }

.lf-card-photo {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--accent-soft);
}

.lf-card .pet-photo-placeholder { font-size: 30px; }

.lf-card-main { flex: 1; min-width: 0; }

.lf-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lf-card-name { font-size: 16px; font-weight: 700; }

.lf-card-meta { font-size: 13px; color: var(--text-secondary); margin-top: 1px; }

.lf-card-location {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lf-card-time { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.lf-drone-promo { margin-top: 4px; }
.lf-drone-link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 700; }

/* ---------- Report form ---------- */

.pet-form-intro { font-size: 14px; margin: 0 0 14px; }

.report-status-picker label.segment { cursor: pointer; }
.report-status-picker input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.report-status-picker label.segment:has(input:checked) {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.pet-photo-field input[type="file"] { font-size: 14px; padding: 10px 0 12px; }

.pet-photo-preview {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.pet-coords { margin-bottom: 14px; }
.pet-coords summary {
  font-size: 14px;
  font-weight: 600;
  padding: 4px 2px 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Drone-search opt-in on the report form */
.drone-optin {
  margin: 6px 0 18px;
  padding: 14px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.drone-optin-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}

.drone-optin-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.drone-optin-title { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.drone-optin-sub { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--text-secondary); }
.drone-optin-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; }

/* ---------- Drone search ---------- */

.dsr-hero { text-align: center; padding: 20px 16px; }
.dsr-hero-icon { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.dsr-hero .card-subtitle { margin-top: 4px; font-size: 14px; line-height: 1.5; }

.dsr-status-pill { text-transform: capitalize; }
.dsr-status-requested { background: var(--accent-soft); color: var(--accent); }
.dsr-status-matched { background: rgba(10, 132, 255, 0.12); color: var(--blue); }
.dsr-status-searching { background: rgba(10, 132, 255, 0.12); color: var(--blue); }
.dsr-status-completed { background: rgba(52, 199, 89, 0.15); color: var(--green); }
.dsr-status-cancelled { background: var(--separator); color: var(--text-secondary); }

.dsr-fine-print { font-size: 12px; margin: 4px 4px 0; }

.dsr-pet-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
  color: var(--text);
}

.dsr-pet-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--accent-soft);
}

.dsr-pet-link .pet-photo-placeholder { font-size: 24px; }
.dsr-pet-name { font-size: 16px; font-weight: 700; }
.dsr-pet-sub { font-size: 13px; }

.dsr-details { white-space: pre-line; margin: 6px 0; }

/* Status tracker timeline */

.dsr-timeline { padding: 18px 16px 8px; }

.dsr-step { display: flex; gap: 14px; }

.dsr-step-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 26px;
  flex-shrink: 0;
}

.dsr-step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--separator);
  border: 2px solid transparent;
  flex-shrink: 0;
}

.dsr-step-line {
  flex: 1;
  width: 3px;
  min-height: 22px;
  border-radius: 2px;
  background: var(--separator);
  margin: 4px 0;
}

.dsr-step-body { padding-bottom: 20px; min-width: 0; }

.dsr-step-title { font-size: 15px; font-weight: 700; color: var(--text-secondary); }
.dsr-step-blurb { font-size: 13px; color: var(--text-secondary); margin-top: 2px; display: none; }

.dsr-step.done .dsr-step-dot { background: var(--green); }
.dsr-step.done .dsr-step-line { background: var(--green); }
.dsr-step.done .dsr-step-title { color: var(--text); }

.dsr-step.current .dsr-step-dot {
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
  animation: dsr-pulse 1.8s ease-in-out infinite;
}
.dsr-step.current .dsr-step-title { color: var(--text); }
.dsr-step.current .dsr-step-blurb { display: block; }

@keyframes dsr-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50%      { box-shadow: 0 0 0 8px var(--accent-soft); }
}

.dsr-cancelled-card {
  border: 1px solid var(--separator);
  color: var(--text-secondary);
}

.dsr-back-link {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Desktop: larger adoptable cards + matched Lost & Found grid ---------- */
@media (min-width: 900px) {
  .pets-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }

  .pets-grid .pet-card-name { font-size: 19px; }
  .pets-grid .pet-card-meta { font-size: 14px; }
  .pets-grid .pet-card-org { font-size: 13px; }
  .pets-grid .pet-card-body { padding: 14px 16px 16px; }
}

/* ---------- Family (littermates + parents) on the pet page ---------- */
.pet-family-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pet-family-thumb.pet-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--accent-soft);
}

.pet-family-note {
  font-size: 13px;
  margin: -6px 4px 0;
}
/* Hoozr — activity section styles. Owned by the activity section agent; build on tokens/components from base.css. */

/* ---------- Dog photos ---------- */

.dog-photo {
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
}

.dog-photo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
}

/* ---------- Available dogs: horizontal scroll ---------- */

.dog-scroll-blurb {
  font-size: 13px;
  margin: -4px 0 10px;
}

.dog-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.dog-scroll::-webkit-scrollbar { display: none; }

.dog-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 10px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  color: var(--text);
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  -webkit-tap-highlight-color: transparent;
}

.dog-card:active { opacity: 0.8; }

.dog-card .dog-photo { border-radius: 50%; }

.dog-card-name {
  font-size: 15px;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dog-card-shelter {
  font-size: 11px;
  color: var(--text-secondary);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dog-card-vibe { font-size: 11px; padding: 3px 9px; }

/* ---------- Apple Watch teaser ---------- */

.watch-teaser { color: var(--text); }

.watch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- Log-run form: dog picker grid ---------- */

.dog-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.dog-pick { position: relative; }

.dog-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dog-pick-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  background: var(--bg-elevated);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.dog-pick-label .dog-photo { border-radius: 50%; }

.dog-pick input:checked + .dog-pick-label {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dog-pick input:focus-visible + .dog-pick-label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dog-pick-name {
  font-size: 13px;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dog-pick-vibe { font-size: 10px; color: var(--text-secondary); }

.points-hint { font-size: 13px; margin: 4px 2px 14px; }

.cancel-link { margin-top: 10px; }

/* ---------- Run show: celebration ---------- */

.celebrate-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 24px 16px 20px;
}

.celebrate-card .dog-photo {
  border-radius: 50%;
  border: 3px solid var(--accent);
  margin-bottom: 10px;
}

.celebrate-headline {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.celebrate-stats {
  margin: 16px 0 4px;
}

.celebrate-stats .stat-tile { background: var(--bg); }

.celebrate-points {
  margin-top: 8px;
  font-size: 15px;
  padding: 7px 16px;
}

.celebrate-when { margin-top: 10px; }

.confetti-piece {
  position: absolute;
  top: -28px;
  pointer-events: none;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  from { transform: translateY(0) rotate(0deg); opacity: 1; }
  to   { transform: translateY(360px) rotate(200deg); opacity: 0; }
}

.badge-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
}

.badge-callout .card-title { color: var(--accent); }

.badge-callout-icon {
  font-size: 34px;
  line-height: 1;
  flex-shrink: 0;
}

.run-notes-header { margin: 0 0 6px; }
.run-notes { margin: 0; font-size: 15px; white-space: pre-wrap; }

/* ---------- Leaderboard ---------- */

.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.podium-spot {
  flex: 1;
  max-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 14px 8px 12px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.podium-1 {
  padding-top: 20px;
  padding-bottom: 22px;
  border: 1px solid var(--accent);
}

.podium-medal { font-size: 24px; line-height: 1; margin-bottom: 4px; }

.podium-name {
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-miles { font-size: 15px; font-weight: 800; color: var(--accent); }
.podium-points { font-size: 11px; color: var(--text-secondary); }

.podium-me { outline: 2px solid var(--accent); outline-offset: -2px; }

.lb-rank {
  width: 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  flex-shrink: 0;
}

.lb-stats { text-align: right; flex-shrink: 0; }
.lb-miles { font-size: 15px; font-weight: 700; }
.lb-points { font-size: 12px; color: var(--text-secondary); }

.lb-me {
  background: var(--accent-soft);
}

.lb-me .lb-rank, .lb-me .lb-miles { color: var(--accent); }
/* Hoozr — messages section styles. Owned by the messages section agent; build on tokens/components from base.css. */

/* ============ Conversations index ============ */

.msg-list .msg-row-link {
  padding: 12px 14px 12px 8px;
  -webkit-tap-highlight-color: transparent;
}

.msg-unread-col {
  width: 12px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.msg-unread-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
}

.msg-unread-dot.is-unread { background: var(--accent); }

.msg-avatar-stack {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.msg-avatar-stack .avatar {
  position: absolute;
  border: 2px solid var(--bg-elevated);
}

.msg-avatar-stack .avatar:first-child { top: 0; left: 0; z-index: 2; }
.msg-avatar-stack .avatar:last-child { bottom: 0; right: 0; z-index: 1; }

.msg-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.msg-row-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-row-name.is-unread { font-weight: 800; }

.msg-row-time {
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.msg-row-preview {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-row-preview.is-unread { color: var(--text); }

.msg-litter-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.msg-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  background: var(--separator);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.msg-verified.is-verified {
  background: var(--blue);
  color: #fff;
}

/* ============ Conversation thread ============ */

.msg-thread {
  /* clear the fixed composer bar */
  padding-bottom: 60px;
}

.msg-thread-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  text-align: center;
}

.msg-shelter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.msg-messages {
  display: flex;
  flex-direction: column;
}

.msg-day-sep {
  text-align: center;
  margin: 14px 0 10px;
}

.msg-day-sep span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border-radius: 999px;
  padding: 3px 12px;
}

.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 2px;
}

.msg-row.msg-mine { justify-content: flex-end; }

.msg-bubble-avatar { margin-bottom: 2px; }

.msg-avatar-spacer {
  width: 26px;
  flex-shrink: 0;
}

.msg-bubble-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 78%;
  min-width: 0;
}

.msg-mine .msg-bubble-col { align-items: flex-end; }

.msg-sender-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 8px 0 2px 12px;
}

.msg-shelter-check { color: var(--blue); }

.msg-bubble {
  padding: 8px 14px;
  border-radius: 18px;
  font-size: 16px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}

.msg-theirs .msg-bubble {
  background: color-mix(in srgb, var(--text) 9%, var(--bg-elevated));
  color: var(--text);
  border-bottom-left-radius: 5px;
}

.msg-mine .msg-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 5px;
}

.msg-bubble-shelter {
  border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
}

/* ---- Fixed composer above the tab bar ---- */

.msg-composer {
  position: fixed;
  bottom: calc(var(--tab-bar-height) + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--separator);
}

@media (min-width: 600px) {
  .msg-composer {
    border-left: 1px solid var(--separator);
    border-right: 1px solid var(--separator);
  }
}

.msg-composer input[type="text"] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--separator);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
}

.msg-composer input[type="text"]:focus { border-color: var(--accent); }

.msg-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

.msg-send-btn:active { transform: scale(0.92); opacity: 0.85; }

/* ============ New message (recipient picker) ============ */

.msg-compose-to { position: relative; margin-bottom: 12px; }

.msg-compose-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* Chips and the text input share one box that looks like a single field. */
.msg-compose-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
  cursor: text;
}

.msg-chips { display: contents; }

.msg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.msg-chip-remove {
  border: none;
  background: none;
  padding: 0;
  color: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

.msg-chip-remove:hover { opacity: 1; }

.msg-compose-input {
  flex: 1;
  min-width: 140px;
  border: none;
  background: none;
  padding: 4px 0;
  font: inherit;
  color: var(--text);
  outline: none;
}

.msg-compose-input:disabled { cursor: not-allowed; }

.msg-compose-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.msg-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  max-height: 280px;
  overflow-y: auto;
  margin-top: 4px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
}

.msg-suggestion {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 14px;
  border: none;
  background: none;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.msg-suggestion + .msg-suggestion { border-top: 1px solid var(--separator); }

.msg-suggestion:hover,
.msg-suggestion.is-active { background: var(--accent-soft); }

.msg-suggestion.is-disabled { opacity: 0.5; cursor: not-allowed; }

.msg-suggestion-name { font-weight: 600; font-size: 14px; }

.msg-suggestion-sub { font-size: 12px; color: var(--text-secondary); }

.msg-send-as { margin-bottom: 12px; }

.msg-send-as-select {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--separator);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.msg-litter-card { border: 1px solid var(--accent-soft); }
/* Hoozr — profile section styles. Owned by the profile section agent; build on tokens/components from base.css. */

/* ---------- Profile / shelter header ---------- */

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  flex-shrink: 0;
}

.profile-header-info {
  min-width: 0;
}

.profile-name {
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.profile-username {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2px;
}

.profile-location {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.profile-bio {
  margin: 0 4px 16px;
  font-size: 15px;
  color: var(--text);
}

.profile-message-btn {
  margin-bottom: 16px;
}

.profile-stat-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* ---------- Badges ---------- */

.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.badge-grid .badge-chip {
  display: flex;
  padding: 12px 8px;
}

.badge-grid .badge-name {
  line-height: 1.25;
}

.badge-progress {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.badge-progress.badge-earned {
  color: var(--green);
}

.badge-chip.badge-locked {
  opacity: 0.55;
}

.badge-chip.badge-locked .badge-icon {
  filter: grayscale(1);
}

/* ---------- Pet cards ---------- */

.pet-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pet-scroll::-webkit-scrollbar { display: none; }

.pet-card {
  display: flex;
  flex-direction: column;
  width: 128px;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  overflow: hidden;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pet-card-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: var(--accent-soft);
}

.pet-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.pet-card-name {
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px 0;
}

.pet-card-breed {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 0 10px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-card-name:last-child { padding-bottom: 10px; }

/* Shelter page: 2-up grid instead of horizontal scroll */

.shelter-pet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.shelter-pet-grid .pet-card {
  width: auto;
}

/* ---------- History ---------- */

.history-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.history-title {
  font-size: 15px;
  overflow-wrap: anywhere;
}

/* ---------- Sign out ---------- */

.signout-group {
  margin-top: 24px;
}

.signout-group form { display: block; }

.signout-row {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: var(--red);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.signout-row:active { opacity: 0.6; }

/* ---------- Edit profile ---------- */

.avatar-edit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.avatar-edit-preview .avatar,
.avatar-edit-preview img {
  width: 96px;
  height: 96px;
}

.avatar-edit-preview .avatar-fallback {
  line-height: 96px;
  font-size: 43px;
}

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

/* ---------- Shelters ---------- */

.shelter-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.verified-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
}

.shelter-post-link {
  display: block;
  color: inherit;
}

.shelter-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.shelter-post-author {
  font-size: 14px;
  font-weight: 700;
}

.shelter-post-time {
  font-size: 12px;
  margin-left: auto;
}

.shelter-post-body {
  margin: 0 0 8px;
  font-size: 15px;
}

/* ---------- Activity section (moved from the old Activity tab) ---------- */

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title-row .section-title { margin-bottom: 10px; }

.subsection-title {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 8px;
}

.profile-activity-stats { margin-bottom: 14px; }
/* Hoozr — adoption section styles. Owned by the adoption section agent; build on tokens/components from base.css. */

/* ---------- Pet header card (form + show) ---------- */

.adoption-pet-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adoption-pet-header-main { flex: 1; min-width: 0; }
.adoption-pet-header .card-subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adoption-pet-thumb {
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
}

.adoption-pet-thumb-fallback {
  background: var(--accent-soft);
  text-align: center;
  overflow: hidden;
}

/* ---------- Stepper progress ---------- */

.adoption-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 6px;
}

.adoption-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--separator);
  transition: width 0.2s ease, background 0.2s ease;
}

.adoption-dot.active { background: var(--accent); width: 24px; }
.adoption-dot.done { background: var(--accent); opacity: 0.45; }

.adoption-step-caption {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.adoption-step-title { margin-top: 4px; }

/* ---------- Form bits ---------- */

.adoption-field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.adoption-field-pair .form-field { margin-bottom: 12px; }

.adoption-seg-group { margin-bottom: 12px; }

.adoption-seg-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 2px 6px;
}

.adoption-segmented { margin-bottom: 0; }

/* iOS-style switch row */

.adoption-toggle-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.adoption-toggle-text { font-size: 15px; font-weight: 600; }

.adoption-switch {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.adoption-switch-ui {
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: var(--separator);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.adoption-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.adoption-switch:checked + .adoption-switch-ui { background: var(--green); }
.adoption-switch:checked + .adoption-switch-ui::after { transform: translateX(20px); }
.adoption-switch:focus-visible + .adoption-switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Step nav buttons */

.adoption-nav {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.adoption-nav .btn-secondary[data-adoption-stepper-target="back"] { flex: 0 0 32%; width: auto; }
.adoption-nav .btn-primary { flex: 1; }

/* ---------- Fee breakdown ---------- */

.adoption-fee-card { padding-top: 8px; padding-bottom: 8px; }

.adoption-fee-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--separator);
}

.adoption-fee-row:last-child { border-bottom: none; }

.adoption-fee-sub {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 0;
  border-bottom: none;
}

.adoption-fee-total {
  border-top: 1px solid var(--separator);
  font-weight: 700;
}

.adoption-fine-print {
  font-size: 13px;
  margin: 8px 2px 16px;
}

/* ---------- Status timeline (show) ---------- */

.adoption-timeline { display: flex; flex-direction: column; }

.adoption-tl-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}

.adoption-tl-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(50% + 11px);
  bottom: -11px;
  width: 2px;
  background: var(--separator);
}

.adoption-tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--separator);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.adoption-tl-main {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.adoption-tl-label { font-size: 15px; font-weight: 600; }
.adoption-tl-date { font-size: 13px; color: var(--text-secondary); }

.adoption-tl-done .adoption-tl-dot { background: var(--green); }
.adoption-tl-done:not(:last-child)::after { background: var(--green); opacity: 0.5; }

.adoption-tl-current .adoption-tl-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.adoption-tl-current .adoption-tl-label { font-weight: 800; color: var(--accent); }

.adoption-tl-todo .adoption-tl-label { color: var(--text-secondary); font-weight: 500; }

.adoption-tl-rejected .adoption-tl-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.15); }
.adoption-tl-rejected .adoption-tl-label { color: var(--red); font-weight: 800; }

/* ---------- Outcome cards ---------- */

.adoption-outcome-icon { font-size: 40px; line-height: 1; margin-bottom: 8px; }

.adoption-pay-card,
.adoption-celebrate-card,
.adoption-outcome-card { text-align: center; }

.adoption-pay-card p,
.adoption-celebrate-card p,
.adoption-outcome-card p { margin: 4px 0 14px; font-size: 15px; }

.adoption-pay-card .adoption-fee-card {
  text-align: left;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 4px 14px;
  margin-bottom: 14px;
}

.adoption-pay-btn { font-size: 17px; }
.adoption-pay-card .adoption-fine-print { margin-bottom: 0; }

.adoption-celebrate-card {
  background: linear-gradient(160deg, var(--accent-soft), var(--bg-elevated) 70%);
  border: 1px solid var(--accent-soft);
}

.adoption-celebrate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- Answer rows ---------- */

.adoption-answer-row { align-items: flex-start; }

.adoption-answer-value {
  font-size: 15px;
  font-weight: 500;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* ---------- Demo review controls ---------- */

.adoption-demo-card {
  border: 1px dashed var(--separator);
  background: transparent;
  box-shadow: none;
}

.adoption-demo-card .adoption-fine-print { margin: 4px 0 12px; }

.adoption-demo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.adoption-demo-actions form { display: inline-block; }

.adoption-demo-reject { color: var(--red); background: rgba(255, 59, 48, 0.1); }

/* ---------- Litter opt-in on the application + completion ---------- */
.adoption-litter-optin { margin-bottom: 16px; }
.adoption-litter-hint { font-size: 13px; margin: 8px 2px 0; text-align: center; }
/* Hoozr — auth (Devise) styles. Foundation-owned; section agents normally don't touch this. */

.auth-page {
  max-width: 400px;
  margin: 0 auto;
  padding-top: 24px;
}

.auth-hero {
  text-align: center;
  margin-bottom: 28px;
}

.auth-hero h2 {
  font-size: 26px;
  margin-top: 8px;
}

.auth-hero p { margin: 6px 0 0; }

.auth-logo { justify-content: center; }

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  margin: 4px 2px 16px;
}

.auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.auth-links p { margin: 10px 0 0; }
/*
 * Hoozr stylesheet manifest.
 *
 * base.css holds the design tokens + app shell + shared components and MUST load first.
 * Each feature section owns exactly one file below — edit only your own section's file.
 *











 */
