/* =========================================================
   Happy Tails Langa — Design System (Oct 2026 brand refresh)
   Brand colours from Leo's logo file:
     pink  #FF84C2   lime  #D8FC5E   cream #FFF3DF   green #246D48
   ========================================================= */

/* ----- Fonts (self-hosted, free licences: SIL Open Font License) -----
   Archivo stands in for Aktiv Grotesk, Leckerli One for Backline.
   If Happy Tails Langa gets web licences for the originals, swap the
   files and names here; nothing else needs to change. */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Leckerli One';
  src: url('../fonts/leckerli-one.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --pink: #FF84C2;
  --lime: #D8FC5E;
  --cream: #FFF3DF;
  --green: #246D48;
  --deep: #15402A;          /* darker green for body text: 10:1 on cream */
  --white: #ffffff;

  /* Supporting tints */
  --pink-soft: #FFD3EA;
  --lime-soft: #EEFDB8;
  --cream-deep: #F7E6C8;
  --paper: #FFFAF1;
  --muted: #3F5E4D;          /* secondary text: 6.9:1 on cream */
  --line: rgba(21, 64, 42, 0.14);
  --line-strong: rgba(21, 64, 42, 0.28);
  --error-bg: #FFE1EE;
  --error-text: #8A1F50;

  /* Legacy names still used by the admin styles further down */
  --navy: var(--deep);
  --olive: var(--green);
  --olive-dark: var(--deep);
  --red: var(--pink);
  --red-dark: var(--error-text);
  --tan: var(--cream-deep);
  --tan-soft: var(--cream-deep);
  --taupe: var(--muted);

  --font-heading: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script: 'Leckerli One', 'Brush Script MT', cursive;

  --radius: 18px;
  --radius-lg: 28px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 450;
  background: var(--cream);
  color: var(--deep);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--deep); }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--deep); color: var(--lime); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--deep);
  line-height: 1.04;
  margin: 0 0 0.45em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 900; }
h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }

/* Script accent — the "Mia / Scooby" lettering from the flyers */
.script {
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}
/* Lime lettering with a green outline: the flyer look, but readable on any colour */
.script-outline {
  color: var(--lime);
  text-shadow:
    -2px -2px 0 var(--deep), 2px -2px 0 var(--deep), -2px 2px 0 var(--deep), 2px 2px 0 var(--deep),
    0 -2px 0 var(--deep), 0 2px 0 var(--deep), -2px 0 0 var(--deep), 2px 0 0 var(--deep),
    4px 5px 0 var(--deep);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--lime);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.eyebrow.on-lime { background: var(--white); }
.eyebrow.on-green { background: var(--lime); color: var(--deep); }
.eyebrow.on-pink { background: var(--cream); }

/* ----- Doodles: hand-drawn accents (sprite in assets/doodles.svg) ----- */
.circled { position: relative; display: inline-block; white-space: nowrap; z-index: 0; }
.circled > .doodle-scribble {
  position: absolute; z-index: -1; pointer-events: none;
  left: -9%; top: -14%; width: 118%; height: 128%;
  color: var(--pink);
  overflow: visible;
}
.doodle { position: absolute; pointer-events: none; overflow: visible; }
.doodle-star { width: 84px; height: 84px; color: var(--deep); }
.doodle-star.spin { animation: wiggle 6s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg); } }

.squiggle-under { position: relative; display: inline-block; }
.squiggle-under > svg {
  position: absolute; left: 0; bottom: -0.18em; width: 100%; height: 0.32em; color: var(--pink);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 100px;
  border: 2.5px solid var(--deep);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 4px 0 var(--deep);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--deep); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--deep); }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

.btn-primary { background: var(--deep); color: var(--lime); }
.btn-primary:hover { background: var(--green); color: var(--lime); }
.btn-donate, .btn-pink { background: var(--pink); color: var(--deep); }
.btn-donate:hover, .btn-pink:hover { background: #ff97cc; color: var(--deep); }
.btn-lime { background: var(--lime); color: var(--deep); }
.btn-lime:hover { background: #e3ff7f; color: var(--deep); }
.btn-outline { background: var(--white); color: var(--deep); }
.btn-outline:hover { background: var(--cream); color: var(--deep); }
.btn-outline-white { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: none; }
.btn-outline-white:hover { background: var(--cream); color: var(--deep); box-shadow: none; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 2.5px solid var(--deep);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  position: relative;
}
.logo-link { display: flex; align-items: center; }
.logo-link img { height: 58px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--deep);
  padding: 9px 14px;
  border-radius: 100px;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
}
.nav-links a:not(.btn):hover { border-color: var(--deep); }
.nav-links a.active { background: var(--lime); border-color: var(--deep); }
.nav-cta { margin-left: 10px; }
.nav-cta .btn { padding: 10px 22px; box-shadow: 0 3px 0 var(--deep); }

.nav-toggle {
  display: none;
  background: var(--lime);
  border: 2.5px solid var(--deep);
  border-radius: 12px;
  width: 48px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 3px; background: var(--deep); border-radius: 3px; }

@media (max-width: 920px) {
  .logo-link img { height: 48px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px 16px 20px;
    border-bottom: 2.5px solid var(--deep);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { display: block; text-align: center; font-size: 1.05rem; }
  .nav-cta { margin: 6px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ===== Colour bands (flyer-style blocks) ===== */
.band-pink  { background: var(--pink);  --scribble: var(--lime); }
.band-lime  { background: var(--lime);  --scribble: var(--pink); }
.band-green { background: var(--green); --scribble: var(--pink); color: var(--cream); }
.band-deep  { background: var(--deep);  --scribble: var(--pink); color: var(--cream); }
.band-cream { background: var(--cream); --scribble: var(--pink); }
.band-white { background: var(--paper); --scribble: var(--pink); }
[class*="band-"] .circled > .doodle-scribble { color: var(--scribble, var(--pink)); }
.band-green h1, .band-green h2, .band-green h3,
.band-deep h1, .band-deep h2, .band-deep h3 { color: var(--cream); }
.band-green p, .band-deep p { color: var(--cream); }

/* ===== Home hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
  border-bottom: 2.5px solid var(--deep);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: end;
  position: relative;
}
.hero-copy { padding-bottom: 80px; position: relative; z-index: 2; }
.hero-copy h1 { font-size: clamp(2.7rem, 6.4vw, 5.2rem); }
.hero-copy h1 .script { font-size: 1.12em; display: inline-block; transform: rotate(-3deg); margin-top: 0.1em; }
.hero-copy .lede { font-size: 1.2rem; max-width: 44ch; color: var(--deep); font-weight: 500; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-art { position: relative; align-self: end; min-height: 460px; }
.hero-dog {
  position: absolute;
  bottom: -2px;
  right: 0;
  height: calc(100% - 8px);
  max-height: 720px;
  width: auto;
  z-index: 1;
}
.hero-art .hero-badge-logo {
  position: absolute; top: 6px; left: 0; width: 150px; height: 150px;
  animation: slowspin 40s linear infinite;
}
@keyframes slowspin { to { transform: rotate(360deg); } }
.hero-art .doodle-star { top: 150px; left: 26%; }
.hero-art .doodle-arrow { width: 150px; height: 120px; left: -6%; bottom: 70px; color: var(--deep); }
.hero-note {
  position: absolute; left: -2%; bottom: 190px;
  font-family: var(--font-script); font-size: 1.7rem; color: var(--deep);
  transform: rotate(-8deg);
}

@media (max-width: 860px) {
  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-art { min-height: 360px; }
  .hero-dog { height: 380px; }
  .hero-art .hero-badge-logo { width: 110px; height: 110px; top: 20px; left: 4%; }
  .hero-art .doodle-star { top: 150px; left: 40%; width: 64px; height: 64px; }
  .hero-art .doodle-arrow { left: 4%; bottom: 40px; width: 120px; }
  .hero-note { left: 6%; bottom: 150px; font-size: 1.4rem; }
}

/* ===== Stats strip ===== */
.stats-strip { background: var(--green); color: var(--cream); padding: 40px 0; border-bottom: 2.5px solid var(--deep); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-family: var(--font-heading); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; color: var(--lime); line-height: 1.1; }
.stat-label { font-size: 0.92rem; color: var(--cream); font-weight: 600; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }

/* ===== Sections ===== */
.section { padding: 80px 0; overflow-x: clip; }
@media (max-width: 700px) { .section { padding: 56px 0; } }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.band-green .section-head p, .band-deep .section-head p { color: var(--cream); }

/* ===== Cards ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.animal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2.5px solid var(--deep);
  box-shadow: 6px 6px 0 var(--deep);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
.animal-card:hover { transform: translate(-2px, -3px); box-shadow: 8px 9px 0 var(--deep); }
.animal-photo {
  height: 260px;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep);
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2.5px solid var(--deep);
}
.card-grid > .animal-card:nth-child(3n+2) .animal-photo { background: var(--green); color: var(--cream); }
.card-grid > .animal-card:nth-child(3n+3) .animal-photo { background: var(--cream-deep); }
.photo-soon { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.photo-soon::before { content: ''; width: 72px; height: 72px; background: currentColor; -webkit-mask: url('../assets/dog-head.svg') center / contain no-repeat; mask: url('../assets/dog-head.svg') center / contain no-repeat; }
.animal-body { padding: 18px 22px 24px; flex: 1; }
.animal-name-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.animal-name-row h3 {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 2rem;
  color: var(--green);
  letter-spacing: 0;
}
.animal-meta {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.animal-body p { font-size: 0.98rem; }

.status-pill {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
  border: 2px solid var(--deep);
}
.status-available { background: var(--lime); color: var(--deep); }
.status-pending { background: var(--pink); color: var(--deep); }
.status-adopted { background: var(--cream-deep); color: var(--deep); }

/* ===== Split (text + image) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split-media { position: relative; }
.photo-frame {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 2.5px solid var(--deep);
  box-shadow: 10px 10px 0 var(--pink);
  transform: rotate(1.5deg);
}
.split-media.tilt-left .photo-frame { transform: rotate(-1.5deg); box-shadow: -10px 10px 0 var(--lime); }
.split-media .media-badge {
  position: absolute; width: 130px; height: 130px; left: -30px; bottom: -34px;
  animation: slowspin 40s linear infinite;
}
.split-media .doodle-star { left: -28px; top: -26px; }

/* ===== Donate band ===== */
.donate-band {
  position: relative;
  background: var(--green);
  color: var(--cream);
  border-radius: var(--radius-lg);
  border: 2.5px solid var(--deep);
  box-shadow: 10px 10px 0 var(--deep);
  padding: 64px 40px;
  text-align: center;
  overflow: hidden;
}
.donate-band h2 { color: var(--cream); }
.donate-band h2 .script { color: var(--lime); font-size: 1.15em; }
.donate-band p { color: var(--cream); max-width: 50ch; margin: 0 auto 28px; font-size: 1.08rem; }
.donate-band .doodle-star { top: 22px; right: 7%; --star-fill: var(--lime); color: var(--deep); }
.donate-band .doodle-paw-l, .donate-band .doodle-paw-r { width: 44px; height: 44px; color: var(--pink); }
.donate-band .doodle-paw-l { left: 7%; bottom: 30px; transform: rotate(-18deg); }
.donate-band .doodle-paw-r { left: 12%; bottom: 76px; transform: rotate(10deg); width: 30px; height: 30px; }
@media (max-width: 600px) { .donate-band { padding: 52px 22px; } .donate-band .doodle-star { width: 44px; height: 44px; top: 12px; right: 12px; } }

/* ===== Footer ===== */
.site-footer { background: var(--deep); color: var(--cream); padding: 64px 0 28px; border-top: 2.5px solid var(--deep); position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand img.footer-logo { height: 76px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 0.95rem; max-width: 32ch; color: var(--cream); }
.footer-col h4 { color: var(--lime); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; font-size: 0.95rem; }
.footer-col a { color: var(--cream); text-decoration: none; }
.footer-col a:hover { color: var(--lime); text-decoration: underline; }
.footer-bottom {
  border-top: 1.5px solid rgba(255, 243, 223, 0.2);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 243, 223, 0.8);
  padding-right: 150px;
}
@media (max-width: 780px) { .footer-bottom { padding-right: 0; } }
.footer-badge { position: absolute; right: -50px; bottom: -80px; width: 220px; height: 220px; opacity: 0.9; animation: slowspin 60s linear infinite; }
@media (max-width: 780px) { .footer-badge { width: 150px; height: 150px; right: -30px; bottom: -30px; opacity: 0.35; } }

.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--pink); color: var(--deep);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--deep);
}
.social-row a:hover { background: var(--lime); color: var(--deep); }

/* ===== Forms ===== */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2.5px solid var(--deep);
  box-shadow: 10px 10px 0 var(--pink);
  padding: 44px;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 600px) { .form-card { padding: 28px 20px; box-shadow: 6px 6px 0 var(--pink); } }
.form-row { margin-bottom: 22px; }
.form-row > label, .form-row > .label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--deep);
  margin-bottom: 8px;
}
.form-row .hint { font-size: 0.82rem; color: var(--muted); font-weight: 500; margin-left: 4px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; gap: 0; } }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="url"],
input[type="search"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  color: var(--deep);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--deep);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--pink-soft);
}
::placeholder { color: #6E8577; }
textarea { resize: vertical; min-height: 110px; }

.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .checkbox-grid { grid-template-columns: 1fr; } }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
}
.checkbox-item:has(input:checked) { background: var(--lime-soft); border-color: var(--deep); }
.checkbox-item input, .radio-item input { width: 18px; height: 18px; accent-color: var(--green); margin: 0; }

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-item {
  display: flex; align-items: center; gap: 8px; font-size: 0.96rem; font-weight: 600;
  background: var(--paper); border: 2px solid var(--line-strong); border-radius: 100px; padding: 9px 16px; cursor: pointer;
}
.radio-item:has(input:checked) { background: var(--lime-soft); border-color: var(--deep); }

.form-submit-note { font-size: 0.88rem; color: var(--muted); margin-top: 14px; }
.form-msg { display: none; margin-bottom: 16px; padding: 14px 16px; border-radius: 12px; font-size: 0.95rem; font-weight: 600; border: 2px solid var(--deep); }
.form-msg.is-success { display: block; background: var(--lime-soft); color: var(--deep); }
.form-msg.is-error { display: block; background: var(--error-bg); color: var(--error-text); border-color: var(--error-text); }

/* ===== Filter pills ===== */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-pill {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: 100px;
  border: 2.5px solid var(--deep);
  background: var(--white);
  color: var(--deep);
  cursor: pointer;
}
.filter-pill:hover { background: var(--cream); }
.filter-pill.active { background: var(--deep); color: var(--lime); }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  text-align: center;
  border-bottom: 2.5px solid var(--deep);
}
.page-hero h1 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.page-hero p { max-width: 58ch; margin: 0 auto; color: inherit; font-size: 1.14rem; font-weight: 500; }
.page-hero .doodle-star { top: 34px; right: 9%; }
.page-hero .doodle-star.left { right: auto; left: 7%; top: auto; bottom: 30px; width: 60px; height: 60px; }
.page-hero .doodle-arrow { width: 130px; height: 100px; left: 6%; top: 40px; color: var(--deep); }
.band-green .doodle-arrow, .band-deep .doodle-arrow { color: var(--lime); }
.page-hero.has-pack { padding-bottom: 0; }
.page-hero .hero-pack { width: min(720px, 96%); margin: 32px auto 0; height: auto; position: relative; bottom: -2px; }
.page-hero .hero-badge-logo { position: absolute; width: 120px; height: 120px; right: 6%; bottom: 24px; animation: slowspin 40s linear infinite; }
@media (max-width: 700px) {
  .page-hero { padding: 52px 0 60px; }
  .page-hero .doodle-star { width: 56px; height: 56px; right: 4%; top: 14px; }
  .page-hero .doodle-arrow { display: none; }
  .page-hero .hero-badge-logo { width: 76px; height: 76px; right: 3%; bottom: 10px; opacity: 0.5; }
}

/* ===== Info cards (roles, values, steps) ===== */
.info-card {
  background: var(--white);
  border: 2.5px solid var(--deep);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 6px 6px 0 var(--deep);
}
.info-card h3 { margin-bottom: 8px; }
.info-card p { margin: 0; color: var(--deep); }
.info-card .icon-circle {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--pink); border: 2.5px solid var(--deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 900; font-size: 1.35rem; color: var(--deep);
  margin-bottom: 16px;
}
.card-grid > .info-card:nth-child(3n+2) .icon-circle { background: var(--lime); }
.card-grid > .info-card:nth-child(3n+3) .icon-circle { background: var(--green); color: var(--cream); }
.info-card .icon-circle svg { width: 26px; height: 26px; }

/* ===== Events ===== */
.event-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--white);
  border: 2.5px solid var(--deep);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 22px;
  box-shadow: 6px 6px 0 var(--deep);
}
.event-card-head { display: flex; gap: 20px; align-items: flex-start; }
.event-card h3 { margin-bottom: 6px; }
.event-card p { margin: 0; }
.event-date {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--deep);
  background: var(--pink);
  border: 2.5px solid var(--deep);
  border-radius: 16px;
  padding: 10px 14px;
  text-align: center;
  min-width: 78px;
  transform: rotate(-3deg);
  flex-shrink: 0;
}
.event-date .day { font-size: 1.7rem; line-height: 1; display: block; }
.event-date .month { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.event-media { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); border: 2.5px solid var(--deep); }
.event-list { max-width: 820px; margin: 0 auto; }

/* ===== Donate options ===== */
.donate-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) { .donate-options { grid-template-columns: 1fr; } }
.donate-option {
  background: var(--white);
  border: 2.5px solid var(--deep);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  box-shadow: 6px 6px 0 var(--deep);
}
.donate-option.featured { background: var(--lime); transform: rotate(-1.5deg); }
.donate-amount { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 900; color: var(--deep); margin-bottom: 6px; letter-spacing: -0.02em; }
.donate-option p { margin: 0; }

.bank-details {
  background: var(--white);
  border: 2.5px solid var(--deep);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: 6px 6px 0 var(--lime);
}
.bank-details dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin: 0; }
.bank-details dt { font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.bank-details dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
@media (max-width: 420px) { .bank-details dl { grid-template-columns: 1fr; gap: 2px; } .bank-details dd { margin-bottom: 10px; } }

.muted-note { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 22px; }

/* =========================================================
   Admin area (login + dashboard)
   ========================================================= */

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: 100px;
  border: 2px solid var(--lime);
  background: transparent;
  color: var(--lime);
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-ghost:hover { background: var(--lime); color: var(--deep); }

.admin-topbar { background: var(--deep); padding: 14px 0; border-bottom: 2.5px solid var(--deep); }
.admin-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-topbar img { height: 44px; width: auto; }
.admin-topbar-title { font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; color: var(--cream); }

.admin-loading { text-align: center; color: var(--muted); font-size: 0.95rem; padding: 40px 0; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: var(--pink); }
.login-card {
  background: var(--white);
  border: 2.5px solid var(--deep);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 10px 10px 0 var(--deep);
}
.login-card img { height: 80px; width: auto; margin: 0 auto 18px; }
.login-card h2 { margin-bottom: 4px; }
.login-card .form-row { text-align: left; }
.login-error {
  display: none;
  background: var(--error-bg);
  color: var(--error-text);
  border: 2px solid var(--error-text);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
  text-align: left;
}

.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 2.5px solid var(--deep); margin-bottom: 28px; }
.admin-tab-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.94rem;
  padding: 12px 18px;
  border: 2.5px solid transparent;
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: -2.5px;
}
.admin-tab-btn:hover { color: var(--deep); }
.admin-tab-btn.active { color: var(--deep); background: var(--lime); border-color: var(--deep); }
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }

.admin-table-wrap { background: var(--white); border: 2px solid var(--deep); border-radius: var(--radius); overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-table th, .admin-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { font-family: var(--font-heading); font-weight: 800; color: var(--deep); background: var(--cream-deep); white-space: nowrap; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }

.add-animal-form { background: var(--paper); border: 2px solid var(--deep); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.add-animal-form h3 { margin-bottom: 18px; }

.app-card { background: var(--white); border: 2px solid var(--deep); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 16px; }
.app-card + .app-card { margin-top: 16px; }

/* Adopt page: photo gallery + video badge */
.animal-photo { position: relative; overflow: hidden; }
.animal-photo img { width: 100%; height: 100%; object-fit: cover; }
.animal-thumbs { display: flex; gap: 6px; padding: 10px 22px 0; overflow-x: auto; }
.animal-thumb {
  width: 46px; height: 46px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; opacity: 0.75; flex-shrink: 0; padding: 0; background: none;
}
.animal-thumb:hover { opacity: 1; }
.animal-thumb.active { border-color: var(--deep); opacity: 1; }
.animal-video-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--deep); color: var(--lime);
  font-family: var(--font-heading); font-weight: 800; font-size: 0.75rem;
  padding: 5px 11px; border-radius: 100px;
}

/* ----- Admin: media inputs, tables, applications, fostering (carried over) ----- */
/* Admin: multi-file media inputs */

.media-upload-hint { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.media-preview-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.media-preview-row img, .media-preview-row video {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
}

/* ===== Admin: data tables, media cells, small buttons ===== */

.admin-empty { text-align: center; color: var(--muted); padding: 24px 0; }

.btn-small {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-save { background: var(--olive); color: var(--white); }
.btn-save:hover { background: var(--olive-dark); }
.btn-danger { background: transparent; border-color: var(--error-text); color: var(--red-dark); margin-left: 6px; }
.btn-danger:hover { background: var(--error-bg); }

.bio-cell textarea { min-height: 60px; font-size: 0.88rem; }

.photo-cell { min-width: 190px; }
.photo-placeholder {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-deep);
  border-radius: 8px;
  color: var(--taupe);
  font-size: 0.65rem;
  text-align: center;
}
.photo-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; display: block; }

.media-thumbs-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.media-thumb-wrap { position: relative; display: inline-block; }
.media-remove-btn {
  position: absolute;
  top: -6px; right: -6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--white);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.media-remove-btn:hover { background: var(--red-dark); }
.media-controls-row { display: flex; flex-direction: column; gap: 4px; }
.media-controls-row input[type="file"] { font-size: 0.72rem; max-width: 180px; }
.photo-upload-status { font-size: 0.78rem; color: var(--olive-dark); min-height: 16px; margin-top: 2px; }

/* Applications (adopt/foster/volunteer review cards) */

.app-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.app-card-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--navy); }
.app-card-date { font-size: 0.82rem; color: var(--muted); }
.app-field { font-size: 0.9rem; margin-bottom: 6px; color: var(--navy); }
.app-field strong { color: var(--muted); font-weight: 600; margin-right: 4px; }
.status-select {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1.5px solid var(--line-strong);
  background: var(--cream);
  color: var(--navy);
  width: auto;
}

/* Fostering placements */

.placement-card {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 14px;
}
.placement-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.placement-title { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--navy); }
.placement-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 20px; font-size: 0.9rem; margin-bottom: 10px; }

.notes-toggle {
  background: none;
  border: none;
  color: var(--olive-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}
.notes-panel { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.note-add-row { display: flex; gap: 8px; margin-bottom: 10px; }
.note-add-row input { flex: 1; }
.note-item {
  background: var(--cream-deep);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 0.88rem;
}
.note-date { font-size: 0.76rem; color: var(--muted); margin-bottom: 4px; }

/* ===== Vaccinations panel (inside admin animals table) ===== */

.vaccinations-row td { background: var(--cream-deep); padding: 16px 20px; }
.vaccinations-row .notes-panel { border-top: none; padding-top: 0; }
.vaccinations-row .note-add-row { align-items: flex-end; }
.vaccinations-row input[type="date"], .vaccinations-row input[type="text"] { width: auto; }

/* ===== Animal profile cards (admin) ===== */

.admin-animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}

/* Each animal = a small tile in the grid; the full editor opens as a window on top */
.animal-profile-card { min-width: 0; }
.animal-tile {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left;
  background: var(--white); border: 2.5px solid var(--deep); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 5px 0 var(--deep); cursor: pointer; font: inherit; color: var(--deep);
  transition: transform .15s ease, box-shadow .15s ease;
}
.animal-tile:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--deep); }
.animal-tile:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.animal-tile-photo { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--cream-deep); border-bottom: 2.5px solid var(--deep); }
.animal-tile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.animal-tile-nophoto { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.animal-tile-count { position: absolute; right: 8px; bottom: 8px; background: rgba(21,64,42,0.85); color: var(--lime); font-weight: 800; font-size: 0.72rem; padding: 3px 9px; border-radius: 100px; }
.animal-tile-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px 14px; }
.animal-tile-name { font-family: var(--font-heading); font-weight: 900; font-size: 1.15rem; line-height: 1.2; }
.animal-tile-meta { font-size: 0.82rem; color: var(--muted); }
.animal-tile .status-pill { margin-top: 4px; font-size: 0.68rem; }

.animal-editor { display: none; }
.animal-profile-card.is-open .animal-editor {
  display: flex; flex-direction: column; gap: 12px;
  position: fixed; z-index: 1001; left: 50%; top: 3vh; transform: translateX(-50%);
  width: min(680px, 94vw); max-height: 94vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--white); border: 2.5px solid var(--deep); border-radius: var(--radius-lg);
  box-shadow: 10px 10px 0 var(--pink); padding: 0 22px 22px;
}
.animal-editor-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; margin: 0 -22px; padding: 12px 16px 12px 22px; background: var(--white); border-bottom: 1.5px solid var(--line); }
.animal-editor-title { font-family: var(--font-heading); font-weight: 900; font-size: 1rem; color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.animal-editor-close { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--deep); background: var(--cream); color: var(--deep); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.animal-editor-close:hover { background: var(--pink); }
.animal-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(12, 30, 20, 0.6); }
.animal-backdrop[hidden] { display: none; }
body.animal-modal-open { overflow: hidden; }
@media (max-width: 600px) {
  .admin-animal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .animal-tile-body { padding: 10px; }
  .animal-tile-name { font-size: 1rem; }
  .animal-profile-card.is-open .animal-editor { top: 0; width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; border: 0; box-shadow: none; padding: 0 16px 24px; }
  .animal-editor-bar { margin: 0 -16px; padding: 10px 12px 10px 16px; }
}

.animal-profile-media .media-thumbs-row { margin-bottom: 8px; }
.animal-profile-media .photo-thumb, .animal-profile-media .photo-placeholder { width: 64px; height: 64px; }

.animal-profile-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* photos | name side by side; the upload buttons go underneath across the full width */
/* name always first, photos and upload buttons underneath */
.animal-profile-top { display: flex; flex-direction: column; }
.animal-profile-top .animal-profile-media { display: flex; flex-direction: column; order: 2; margin-top: 10px; }
.animal-profile-top .animal-profile-name { order: 1; }
.animal-profile-top .media-thumbs-row { margin-bottom: 8px; }
.media-pick-btn { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; cursor: pointer; font-family: var(--font-heading); font-weight: 800; font-size: 0.85rem; color: var(--deep); background: var(--lime-soft); border: 1.5px solid var(--deep); border-radius: 100px; padding: 6px 14px; width: fit-content; }
.media-pick-btn:hover { background: var(--lime); }
.media-pick-btn .hint { font-weight: 600; font-size: 0.75rem; }
.animal-profile-name { min-width: 0; display: flex; flex-direction: column; gap: 2px; cursor: text; }
.animal-profile-name-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.animal-profile-card input.animal-profile-name-input {
  width: calc(100% + 8px);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--deep);
  border: 2px solid transparent;
  background: transparent;
  padding: 2px 6px;
  margin-left: -8px;
  border-radius: 10px;
  box-shadow: none;
}
.animal-profile-card input.animal-profile-name-input:hover { border-color: var(--line-strong); }
.animal-profile-card input.animal-profile-name-input:focus { outline: none; border-color: var(--deep); background: var(--cream); }
.animal-profile-head select.status-pill {
  flex: 1;
  border: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 22px;
}

.animal-profile-body .form-row { margin-bottom: 0; }
.animal-profile-body .form-grid-2 { gap: 12px; }
.animal-profile-body textarea { min-height: 70px; font-size: 0.9rem; }

.animal-profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.adopter-fields { background: var(--cream-deep); border-radius: 10px; padding: 10px 12px; margin: 0; }

/* ===== Stand-alone application pages (adopt-form, foster-form) ===== */
.simple-body { background: var(--pink); }
.simple-wrap { max-width: 720px; margin: 0 auto; padding: 32px 16px 48px; }
.simple-head { text-align: center; margin-bottom: 26px; }
.simple-head img { height: 84px; width: auto; margin: 0 auto 18px; }
.simple-head h1 { font-size: clamp(2rem, 7vw, 2.8rem); margin-bottom: 10px; }
.simple-head p { font-size: 1.08rem; max-width: 46ch; margin: 0 auto; }
.form-simple { box-shadow: 8px 8px 0 var(--deep); }
.form-simple .form-row > label { font-size: 1.02rem; }
.form-simple input[type="text"], .form-simple input[type="email"], .form-simple input[type="tel"],
.form-simple textarea { font-size: 1.06rem; padding: 14px 16px; }
.form-simple .radio-row { flex-direction: column; align-items: stretch; }
.form-simple .radio-item { border-radius: 12px; padding: 13px 16px; }
.form-simple .checkbox-grid { grid-template-columns: 1fr; }
.form-simple .form-grid-2 { grid-template-columns: 1fr; gap: 0; }
.btn-block { width: 100%; font-size: 1.12rem; padding: 17px 28px; }
.thanks-card { text-align: center; padding: 56px 32px; }
.thanks-card h2 { font-size: clamp(2rem, 7vw, 2.6rem); }
.thanks-card p { font-size: 1.1rem; }
.thanks-icon { width: 64px; height: 64px; color: var(--pink); margin: 0 auto 12px; display: block; }
.thanks-small { color: var(--muted); font-size: 0.95rem !important; }
.simple-foot { text-align: center; margin-top: 28px; font-weight: 600; }
.simple-foot a { color: var(--deep); }
[hidden] { display: none !important; }

/* ===== Admin: invoices ===== */
.invoice-form select, .inv-result select { width: 100%; }
.inv-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; font-size: 0.9rem; color: var(--deep); cursor: pointer; }
.inv-check input { width: auto; }
.inv-items { background: var(--white); border: 2px solid var(--deep); border-radius: 14px; overflow: hidden; }
.inv-item-head, .inv-item { display: grid; grid-template-columns: minmax(0, 1fr) 70px 110px 100px 34px; gap: 8px; align-items: center; padding: 8px 10px; }
.inv-item-head { background: var(--deep); color: var(--lime); font-family: var(--font-heading); font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.inv-item + .inv-item { border-top: 1px solid var(--line); }
.inv-item:nth-child(even) { background: var(--cream); }
.inv-item input { padding: 9px 10px; font-size: 0.92rem; }
.inv-amount { font-weight: 800; text-align: right; font-size: 0.92rem; }
.inv-item-head span:nth-child(4) { text-align: right; }
.inv-remove { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--deep); font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.inv-remove:hover { background: var(--error-bg); border-color: var(--error-text); color: var(--error-text); }
.inv-add-line { margin-top: 10px; background: var(--lime-soft); border-color: var(--deep); color: var(--deep); }
.inv-total-row { margin-top: 12px; display: flex; justify-content: flex-end; align-items: center; gap: 14px; font-family: var(--font-heading); font-weight: 800; color: var(--deep); }
.inv-total-row strong { background: var(--pink); border: 2px solid var(--deep); border-radius: 100px; padding: 8px 18px; font-size: 1.15rem; }
.inv-msg { min-height: 1.2em; margin: 0 0 12px; font-weight: 600; font-size: 0.92rem; }
.inv-msg.ok { color: var(--green); }
.inv-msg.err { color: var(--error-text); }
.inv-result { background: var(--paper); border: 2.5px solid var(--deep); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--lime); padding: 24px 26px; margin-bottom: 24px; }
.inv-result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.inv-result-head h3 { margin: 10px 0 4px; }
.inv-pill { display: inline-block; background: var(--pink); border: 2px solid var(--deep); border-radius: 100px; padding: 4px 14px; font-family: var(--font-heading); font-weight: 800; font-size: 0.82rem; color: var(--deep); }
.inv-close { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--deep); background: var(--white); font-size: 20px; line-height: 1; cursor: pointer; color: var(--deep); flex-shrink: 0; }
.inv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.inv-sub { border-top: 1.5px dashed var(--line-strong); margin-top: 18px; padding-top: 16px; }
.inv-sub h4 { margin: 0 0 12px; font-family: var(--font-heading); font-weight: 800; color: var(--deep); }
.inv-sub .form-row { margin-bottom: 14px; }
.inv-link-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.inv-link-row select { flex: 1 1 220px; width: auto; }
.inv-sent { color: var(--green); font-weight: 700; }
@media (max-width: 640px) {
  .inv-item-head { display: none; }
  .inv-item { grid-template-columns: 1fr 1fr 34px; }
  .inv-item .inv-desc { grid-column: 1 / -1; }
  .inv-amount { grid-column: 1 / 3; text-align: left; }
  .inv-item .inv-remove { grid-row: 3; grid-column: 3; }
  .inv-result { padding: 20px 16px; box-shadow: 5px 5px 0 var(--lime); }
}

/* ===== Admin: application sub-tabs (Pending / Approved / Denied) ===== */
.app-subtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.app-subtab {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 800; font-size: 0.92rem;
  padding: 9px 16px; border-radius: 100px; cursor: pointer;
  border: 2px solid var(--deep); background: var(--white); color: var(--deep);
}
.app-subtab:hover { background: var(--cream-deep); }
.app-subtab.active { box-shadow: 0 3px 0 var(--deep); }
.app-subtab-pending.active { background: var(--pink); }
.app-subtab-approved.active { background: var(--lime); }
.app-subtab-denied.active { background: var(--cream-deep); }
.app-count { min-width: 24px; padding: 2px 7px; border-radius: 100px; background: var(--deep); color: var(--lime); font-size: 0.78rem; text-align: center; }
.app-card { border-left-width: 8px; }
.app-card-pending { border-left-color: var(--pink); }
.app-card-approved { border-left-color: var(--green); }
.app-card-denied { border-left-color: var(--line-strong); opacity: 0.9; }
.status-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.app-toast { background: var(--deep); color: var(--lime); font-weight: 700; padding: 10px 16px; border-radius: 12px; margin-bottom: 14px; font-size: 0.92rem; }
.tab-badge { display: inline-block; margin-left: 7px; min-width: 20px; padding: 1px 6px; border-radius: 100px; background: var(--pink); color: var(--deep); border: 1.5px solid var(--deep); font-size: 0.75rem; font-weight: 800; text-align: center; line-height: 1.4; }
@media (max-width: 600px) {
  .app-card-head { flex-direction: column; }
  .status-wrap { align-items: flex-start; }
}

/* ===== Application forms (adoption / foster, matching forms.app) ===== */
.app-form { max-width: 820px; }
.app-section { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.app-section > legend {
  display: block; width: 100%; padding: 0 0 10px; margin: 0 0 18px;
  font-family: var(--font-heading); font-weight: 900; font-size: 1.3rem; color: var(--deep);
  border-bottom: 2.5px solid var(--deep);
}
.app-form .q-row > .label { line-height: 1.4; }
.q-num { color: var(--green); font-weight: 900; margin-right: 2px; }
.q-hint { display: block; margin: -4px 0 10px; font-size: 0.86rem; font-style: italic; color: var(--muted); }
.q-more { display: block; margin-top: 10px; }
.q-more span { display: block; font-size: 0.86rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.q-error { display: block; color: var(--error-text); font-weight: 700; font-size: 0.88rem; }
.q-error:not(:empty) { margin-top: 8px; }
.q-row.has-error { background: var(--error-bg); border-radius: 14px; padding: 14px; margin-left: -14px; margin-right: -14px; outline: 2px solid var(--error-text); }
.app-form select { width: 100%; }
.app-declaration .decl-text { font-size: 0.95rem; margin: 0 0 12px; }
.decl-list { margin: 0 0 16px; padding-left: 20px; font-size: 0.95rem; }
.decl-list li { margin-bottom: 6px; }
.decl-agree { margin-bottom: 4px; font-weight: 700; }
.sig-row { margin-top: 22px; }
.sig-pad { position: relative; background: var(--white); border: 2.5px dashed var(--deep); border-radius: 16px; height: 190px; touch-action: none; }
.sig-canvas { display: block; width: 100%; height: 100%; border-radius: 14px; cursor: crosshair; touch-action: none; }
.sig-placeholder { position: absolute; left: 18px; bottom: 16px; font-family: var(--font-script); font-size: 1.4rem; color: var(--line-strong); pointer-events: none; }
.sig-clear {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.82rem;
  padding: 6px 14px; border-radius: 100px; border: 1.5px solid var(--deep); background: var(--cream); color: var(--deep); cursor: pointer;
}
.sig-date { margin: 12px 0 0; font-size: 0.95rem; }
@media (max-width: 600px) {
  .app-section > legend { font-size: 1.15rem; }
  .q-row.has-error { margin-left: -10px; margin-right: -10px; padding: 10px; }
  .sig-pad { height: 170px; }
}

/* Admin: full application details */
.full-app { margin-top: 14px; border-top: 1.5px dashed var(--line-strong); padding-top: 12px; }
.full-app summary { cursor: pointer; font-family: var(--font-heading); font-weight: 800; color: var(--deep); display: inline-block; padding: 8px 16px; border: 2px solid var(--deep); border-radius: 100px; background: var(--lime-soft); }
.full-app[open] summary { background: var(--lime); margin-bottom: 8px; }
.full-app-section { margin: 18px 0 8px; font-size: 1rem; font-weight: 900; color: var(--deep); border-bottom: 2px solid var(--deep); padding-bottom: 4px; }
.full-app-list { margin: 0; }
.full-app-list dt { font-size: 0.82rem; font-weight: 700; color: var(--muted); margin-top: 10px; }
.full-app-list dd { margin: 2px 0 0; font-size: 0.95rem; color: var(--deep); white-space: pre-line; }
.full-app-sig { margin-top: 18px; }
.full-app-sig img { display: block; margin-top: 6px; max-width: 320px; width: 100%; height: auto; border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff; }

/* ===== Volunteer Day signing (tablet mode) ===== */
body.vd-locked { overflow: hidden; }
.vd-overlay { position: fixed; inset: 0; z-index: 1000; background: var(--cream); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.vd-overlay[hidden] { display: none; }
.vd-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background: var(--pink); border-bottom: 2.5px solid var(--deep); }
.vd-exit { font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem; padding: 7px 14px; border-radius: 100px; border: 1.5px solid var(--deep); background: transparent; color: var(--deep); cursor: pointer; opacity: 0.75; }
.vd-sheet { max-width: 760px; margin: 0 auto; padding: 28px 20px 80px; }
.vd-sheet h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 8px 0 18px; }
.vd-agreement { background: var(--white); border: 2px solid var(--deep); border-radius: var(--radius); padding: 22px 26px; font-size: 1rem; line-height: 1.6; }
.vd-agreement h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.vd-agreement h3:first-of-type { margin-top: 14px; }
.vd-agreement h4 { font-size: 1rem; margin: 14px 0 6px; color: var(--green); }
.vd-agreement ul, .vd-agreement ol { padding-left: 22px; margin: 0 0 8px; }
.vd-agreement li { margin-bottom: 5px; }
.vd-form, .vd-thanks { margin-top: 26px; background: var(--white); border: 2.5px solid var(--deep); border-radius: var(--radius-lg); box-shadow: 8px 8px 0 var(--lime); padding: 28px; }
.vd-form h2 { margin: 0 0 18px; }
.vd-form input[type="text"], .vd-form input[type="tel"] { font-size: 1.15rem; padding: 14px 16px; }
.vd-form .decl-agree { margin: 4px 0 6px; font-size: 1.05rem; padding: 14px 16px; }
.vd-form .decl-agree input { width: 24px; height: 24px; }
.vd-form .sig-pad { height: 220px; }
.vd-thanks { text-align: center; }
.vd-thanks .thanks-icon { width: 64px; height: 64px; color: var(--pink); }
.vd-sig-thumb { display: block; width: 140px; height: auto; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; }
@media (max-width: 600px) {
  .vd-agreement { padding: 18px; }
  .vd-form, .vd-thanks { padding: 20px 16px; box-shadow: 5px 5px 0 var(--lime); }
}

/* Volunteer Day: event folders */
.vd-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.vd-folder {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  background: var(--white); border: 2.5px solid var(--deep); border-radius: var(--radius); padding: 18px 18px 16px;
  box-shadow: 0 5px 0 var(--deep); cursor: pointer; font: inherit; color: var(--deep);
  transition: transform .15s ease, box-shadow .15s ease;
}
.vd-folder:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--deep); }
.vd-folder-icon { width: 46px; height: 38px; fill: var(--pink); stroke: var(--deep); stroke-width: 2.5; margin-bottom: 6px; }
.vd-folder-name { font-family: var(--font-heading); font-weight: 900; font-size: 1.08rem; line-height: 1.25; }
.vd-folder-date { font-size: 0.86rem; color: var(--muted); }
.vd-folder-count { margin-top: 8px; background: var(--lime); border: 1.5px solid var(--deep); border-radius: 100px; padding: 3px 12px; font-weight: 800; font-size: 0.82rem; }
.vd-back { background: none; border: 0; padding: 0; margin: 0 0 14px; font: inherit; font-weight: 800; color: var(--green); cursor: pointer; }
.vd-back:hover { text-decoration: underline; }
.vd-folder-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.vd-folder-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vd-folder-actions .btn-danger { margin-left: 0; }

/* ===== Admin: Community (owners + dogs) ===== */
.cm-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.cm-toolbar input[type="search"] { flex: 1 1 260px; width: auto; }
.cm-toolbar select { flex: 0 1 200px; width: auto; }
.cm-owners { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cm-owner-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  background: var(--white); border: 2.5px solid var(--deep); border-radius: var(--radius); padding: 18px;
  box-shadow: 0 5px 0 var(--deep); cursor: pointer; font: inherit; color: var(--deep);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cm-owner-card:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--deep); }
.cm-owner-name { font-family: var(--font-heading); font-weight: 900; font-size: 1.12rem; }
.cm-owner-addr { font-size: 0.86rem; color: var(--muted); }
.cm-dog-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cm-dog-chip { background: var(--lime-soft); border: 1.5px solid var(--deep); border-radius: 100px; padding: 3px 10px; font-weight: 700; font-size: 0.84rem; }
.cm-needs-line { font-size: 0.82rem; color: var(--error-text); font-weight: 700; margin-top: 4px; }

.cm-owner-panel { background: var(--paper); border: 2px solid var(--deep); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 24px; }
.cm-owner-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.cm-owner-panel-head h2 { margin: 0; }
.cm-owner-panel .form-row { margin-bottom: 14px; }
.cm-dogs-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; }
.cm-dogs-head h3 { margin: 0; }

.cm-dog { background: var(--white); border: 2.5px solid var(--deep); border-radius: var(--radius-lg); box-shadow: 8px 8px 0 var(--pink); padding: 22px 24px; margin-bottom: 28px; }
.cm-dog-head { display: flex; gap: 16px; align-items: center; }
.cm-avatar { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; border: 2.5px solid var(--deep); background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 2rem; overflow: hidden; }
.cm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cm-dog-title { flex: 1; min-width: 0; }
.cm-dog-title h3 { margin: 0 0 2px; font-size: 1.35rem; }
.cm-dog-title .hint { margin: 0; }
.cm-edit-dog { margin-top: 16px; padding-top: 16px; border-top: 1.5px dashed var(--line-strong); }
.cm-block { border-top: 1.5px dashed var(--line-strong); margin-top: 18px; padding-top: 14px; }
.cm-block h4 { margin: 0 0 10px; font-family: var(--font-heading); font-weight: 900; color: var(--deep); font-size: 1rem; }
.cm-needs { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-need { font-family: var(--font-heading); font-weight: 700; font-size: 0.88rem; padding: 8px 14px; border-radius: 100px; border: 2px solid var(--line-strong); background: var(--white); color: var(--muted); cursor: pointer; }
.cm-need.on { background: var(--pink); border-color: var(--deep); color: var(--deep); }
.cm-need.on::before { content: '\2713  '; }
.cm-notes { width: 100%; margin-bottom: 8px; }
.cm-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.cm-photo { position: relative; }
.cm-photo img { display: block; width: 110px; height: 110px; object-fit: cover; border-radius: 12px; border: 2px solid var(--deep); }
.cm-photo .media-remove-btn { width: 24px; height: 24px; font-size: 14px; top: -8px; right: -8px; }
.cm-photo-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.cm-file-btn { cursor: pointer; }
.cm-vacc-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-bottom: 12px; }
.cm-vacc-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 6px 8px; border-bottom: 2px solid var(--deep); }
.cm-vacc-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cm-vacc-del { position: static; width: 28px; height: 28px; font-size: 16px; }
.cm-overdue { color: var(--error-text); font-weight: 800; }
.cm-vacc-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.cm-vacc-form > input[type="text"] { flex: 1 1 200px; width: auto; }
.cm-vacc-date { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.cm-vacc-date em { font-weight: 500; }
.cm-vacc-date input { width: auto; }
.cm-vacc-form .btn-small { padding: 11px 18px; }
.cm-inv-list { list-style: none; margin: 0 0 10px; padding: 0; }
.cm-inv-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
@media (max-width: 600px) {
  .cm-dog { padding: 18px 16px; box-shadow: 5px 5px 0 var(--pink); }
  .cm-owner-panel { padding: 18px 16px; }
  .cm-dog-head { flex-wrap: wrap; }
  .cm-photo img { width: 92px; height: 92px; }
  .cm-vacc-date { flex: 1 1 45%; }
  .cm-vacc-date input { width: 100%; }
}

/* Community: help received history */
.cm-support-list { list-style: none; margin: 0 0 12px; padding: 0; }
.cm-support-list li { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.cm-support-date { flex: 0 0 110px; font-weight: 700; color: var(--green); font-size: 0.88rem; }
.cm-support-item { flex: 1; min-width: 0; }
.cm-support-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.cm-support-form select { flex: 0 1 220px; width: auto; }
.cm-support-form > input[type="text"] { flex: 1 1 220px; width: auto; }
.cm-support-form .btn-small { padding: 11px 18px; }
.cm-untick { flex-basis: 100%; display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 700; color: var(--deep); cursor: pointer; }
.cm-untick input { width: 18px; height: 18px; accent-color: var(--green); margin: 0; }
.cm-untick[hidden] { display: none; }
@media (max-width: 600px) {
  .cm-support-list li { flex-wrap: wrap; gap: 4px 12px; }
  .cm-support-date { flex-basis: auto; }
  .cm-support-form select { flex: 1 1 100%; }
}

/* Community: receipts & documents */
.cm-doc-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.cm-doc-form > input[type="text"] { flex: 1 1 260px; width: auto; }
.cm-doc-buttons { display: flex; gap: 8px; flex-wrap: wrap; flex-basis: 100%; }
.cm-doc-buttons .btn-small { padding: 11px 16px; display: inline-flex; align-items: center; gap: 6px; }
.cm-btn-light { background: var(--white); border: 1.5px solid var(--deep); color: var(--deep); }
.cm-btn-light:hover { background: var(--cream); }
.cm-doc-list li .btn-small { margin-left: auto; }
.cm-doc-icon { font-size: 1.1rem; }

/* Community: address + map pin */
.cm-addr-grid { display: grid; grid-template-columns: 130px 1fr; gap: 20px; }
.cm-pin-box { border: 2px solid var(--deep); border-radius: 16px; overflow: hidden; background: var(--white); }
.cm-map { height: 280px; background: var(--cream-deep); z-index: 0; }
.cm-map-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px 0; }
.cm-map-tools .btn-small { padding: 9px 14px; text-decoration: none; display: inline-flex; align-items: center; }
.cm-map-tools [hidden] { display: none !important; }
.cm-pin-status { margin: 8px 12px 12px; }
.cm-pin { background: none; border: 0; }
.cm-pin span { position: relative; display: block; width: 30px; height: 30px; background: var(--pink); border: 3px solid var(--deep); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 2px 2px 0 rgba(21,64,42,0.35); }
.cm-pin span::after { content: ''; position: absolute; width: 10px; height: 10px; background: var(--deep); border-radius: 50%; top: 7px; left: 7px; }
.cm-pinned { white-space: nowrap; font-weight: 700; color: var(--green); }
@media (max-width: 600px) {
  .cm-addr-grid { grid-template-columns: 1fr; gap: 0; }
  .cm-map { height: 240px; }
}

/* Friendly with dogs / children / cats */
.friendly-badges { list-style: none; margin: 4px 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.friendly-badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-heading); font-weight: 800; font-size: 0.8rem; padding: 4px 11px; border-radius: 100px; border: 1.5px solid var(--deep); }
.friendly-badge.is-yes { background: var(--lime); color: var(--deep); }
.friendly-badge.is-no { background: var(--white); color: var(--error-text); border-color: var(--error-text); }
.friendly-fields .label { margin-bottom: 6px; }
.friendly-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.friendly-row:last-child { border-bottom: 0; }
.friendly-name { font-weight: 700; font-size: 0.92rem; }
.tri { display: inline-flex; border: 1.5px solid var(--deep); border-radius: 100px; overflow: hidden; }
.tri-opt { cursor: pointer; }
.tri-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tri-opt span { display: block; padding: 5px 11px; font-size: 0.8rem; font-weight: 700; color: var(--muted); background: var(--white); }
.tri-opt + .tri-opt span { border-left: 1.5px solid var(--deep); }
.tri-yes input:checked + span { background: var(--lime); color: var(--deep); }
.tri-no input:checked + span { background: var(--pink); color: var(--deep); }
.tri-unsure input:checked + span { background: var(--cream-deep); color: var(--deep); }
.tri-opt input:focus-visible + span { outline: 3px solid var(--deep); outline-offset: -3px; }
.birth-row { display: flex; gap: 10px; }
.birth-row select { flex: 1; width: auto; }

.friendly-badge.is-unknown { background: var(--cream); color: var(--muted); border-color: var(--line-strong); }
.media-pick-video { background: var(--white); margin-top: 6px; }
.media-pick-video:hover { background: var(--cream); }

/* ===== Public dog cards: photo viewer ===== */
.animal-photo-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.animal-photo-open img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-zoom-hint {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(21, 64, 42, 0.85); color: var(--lime);
  font-family: var(--font-heading); font-weight: 800; font-size: 0.75rem;
  padding: 5px 11px; border-radius: 100px; pointer-events: none;
}
.animal-photo-open:focus-visible { outline: 4px solid var(--pink); outline-offset: -4px; }

body.pv-open { overflow: hidden; }
.photo-viewer { position: fixed; inset: 0; z-index: 2000; background: rgba(12, 30, 20, 0.97); display: flex; flex-direction: column; }
.photo-viewer[hidden] { display: none; }
.pv-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--cream); }
.pv-title { font-family: var(--font-script); font-size: 1.6rem; color: var(--lime); }
.pv-count { font-weight: 700; font-size: 0.95rem; opacity: 0.85; }
.pv-close { margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--cream); background: transparent; color: var(--cream); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.pv-close:hover { background: var(--cream); color: var(--deep); }
.pv-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 64px; }
.pv-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); user-select: none; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--deep); background: var(--lime); color: var(--deep); font-size: 2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding-bottom: 4px; }
.pv-nav[hidden] { display: none; }
.pv-prev { left: 10px; }
.pv-next { right: 10px; }
.pv-nav:hover { background: var(--pink); }
.pv-dots { display: flex; justify-content: center; gap: 8px; padding: 14px 16px 20px; }
.pv-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--cream); background: transparent; padding: 0; cursor: pointer; }
.pv-dot.active { background: var(--lime); border-color: var(--lime); }
@media (max-width: 600px) {
  .pv-stage { padding: 0 8px; }
  .pv-nav { width: 42px; height: 42px; font-size: 1.6rem; top: auto; bottom: 8px; transform: none; }
  .pv-prev { left: calc(50% - 56px); }
  .pv-next { right: calc(50% - 56px); }
  .pv-stage { padding-bottom: 60px; }
}

/* Admin: reorder animal photos */
.animal-profile-top .media-thumbs-row { gap: 12px; }
.photo-sortable { cursor: grab; padding-bottom: 30px; }
.photo-sortable.is-dragging { opacity: 0.4; }
.photo-sortable.drop-target .photo-thumb { outline: 3px dashed var(--pink); outline-offset: 2px; }
.animal-profile-card .photo-sortable .photo-thumb { width: 84px; height: 84px; }
.photo-main-badge { position: absolute; left: 4px; top: 4px; background: var(--lime); color: var(--deep); border: 1.5px solid var(--deep); font-size: 0.62rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 100px; }
.photo-move { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 6px; }
.photo-move button { width: 32px; height: 26px; border-radius: 8px; border: 1.5px solid var(--deep); background: var(--white); color: var(--deep); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 0 2px; }
.photo-move button:hover:not(:disabled) { background: var(--lime); }
.photo-move button:disabled { opacity: 0.3; cursor: default; }

/* Public dog cards: show the whole photo (never crop faces). Taller frame; any empty edges are
   filled with a soft, blurred copy of the same photo. */
.animal-card .animal-photo { height: auto; aspect-ratio: 4 / 5; }
.animal-photo-open { overflow: hidden; }
.animal-photo-open .photo-fill { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(18px) saturate(1.1) brightness(0.9); transform: scale(1.05); }
.animal-photo-open img.photo-main { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.animal-photo-open .photo-zoom-hint { z-index: 2; }
.animal-video-badge { z-index: 3; }

/* Community: Save bar at the bottom of an owner's profile (stays visible while scrolling) */
.cm-savebar {
  position: sticky; bottom: 12px; z-index: 50;
  display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap;
  margin-top: 24px; padding: 12px 14px 12px 20px;
  background: var(--white); border: 2.5px solid var(--deep); border-radius: 100px;
  box-shadow: 0 6px 0 var(--deep);
}
.cm-save-status { margin-right: auto; font-weight: 700; font-size: 0.92rem; color: var(--muted); }
.cm-save-status.ok { color: var(--green); }
.cm-save-status.err { color: var(--error-text); }
.cm-savebar.is-dirty { background: var(--pink-soft); }
.cm-savebar.is-dirty .cm-save-status { color: var(--deep); }
.cm-savebar.is-dirty .cm-save-btn { background: var(--pink); color: var(--deep); }
.cm-save-btn { min-width: 140px; }
@media (max-width: 600px) {
  .cm-savebar { border-radius: 18px; bottom: 8px; padding: 10px 12px; }
  .cm-save-btn { flex: 1; }
  .cm-save-status { flex-basis: 100%; text-align: center; margin: 0; }
}

/* ===== Admin: Merch ===== */
.merch-tile .animal-tile-meta + .animal-tile-meta { margin-top: -2px; }
.merch-nostock { color: var(--error-text) !important; font-weight: 700; }
.status-pill.merch-status-live { background: var(--lime); }
.status-pill.merch-status-draft { background: var(--cream-deep); }
.status-pill.merch-status-soldout { background: var(--pink); }
.merch-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(12, 30, 20, 0.6); overflow-y: auto; }
.merch-modal[hidden] { display: none; }
.merch-editor {
  position: relative; margin: 3vh auto; width: min(680px, 94vw);
  background: var(--white); border: 2.5px solid var(--deep); border-radius: var(--radius-lg);
  box-shadow: 10px 10px 0 var(--pink); padding: 0 22px 22px;
}
.merch-editor .animal-editor-bar { margin-bottom: 16px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.merch-editor .form-row { margin-bottom: 18px; }
.merch-photos { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.merch-photos .photo-thumb { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; }
.merch-size-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.merch-size-presets .btn-small { padding: 7px 12px; }
.merch-size-table { display: flex; flex-direction: column; gap: 8px; }
.merch-size-row { display: flex; gap: 10px; align-items: center; }
.merch-size-row > input[type="text"] { flex: 0 1 140px; width: auto; font-weight: 800; }
.merch-stock { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.merch-stock input { width: 90px; }
.merch-colors { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.merch-color-chip button { border: 0; background: none; font-size: 1rem; line-height: 1; cursor: pointer; color: var(--error-text); padding: 0 0 0 4px; }
.merch-color-add { display: flex; gap: 8px; }
.merch-color-add input { flex: 1; }
.merch-status .tri-opt span { padding: 8px 16px; font-size: 0.88rem; }
.merch-st-live input:checked + span { background: var(--lime); color: var(--deep); }
.merch-st-draft input:checked + span { background: var(--cream-deep); color: var(--deep); }
.merch-st-soldout input:checked + span { background: var(--pink); color: var(--deep); }
.merch-savebar { bottom: 10px; }
.merch-savebar .btn-danger { margin-left: 0; }
@media (max-width: 600px) {
  .merch-editor { margin: 0; width: 100vw; min-height: 100vh; border-radius: 0; border: 0; box-shadow: none; padding: 0 16px 20px; }
  .merch-editor .animal-editor-bar { margin: 0 -16px 16px; border-radius: 0; }
  .merch-photos .photo-thumb { width: 80px; height: 80px; }
}

/* Public: Shop (coming soon) */
.shop-soon-card { text-align: center; }
.shop-soon-card .icon-circle { font-size: 1.7rem; margin-left: auto; margin-right: auto; }
.shop-soon-note { margin: 40px auto 0; max-width: 620px; text-align: center; background: var(--white); border: 2.5px solid var(--deep); border-radius: var(--radius-lg); box-shadow: 8px 8px 0 var(--lime); padding: 26px 22px; }
.shop-soon-note p { margin: 0 0 16px; font-size: 1.05rem; }

/* Admin: foster commitment period + notes */
.commit-box { margin: 4px 0 12px; }
.commit-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.commit-head .notes-toggle { margin-left: auto; }
.commit-pill { display: inline-block; font-weight: 800; font-size: 0.85rem; padding: 5px 12px; border-radius: 100px; border: 1.5px solid var(--deep); }
.commit-ok { background: var(--lime-soft); }
.commit-soon { background: #FFD9A8; }
.commit-over { background: var(--error-bg); color: var(--error-text); border-color: var(--error-text); }
.commit-none { background: var(--cream); color: var(--muted); border-color: var(--line-strong); }
.commit-edit { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 10px; padding: 12px; background: var(--cream); border-radius: 12px; }
.commit-edit[hidden] { display: none; }
.commit-edit label { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.commit-edit input { width: auto; }
.commit-edit .btn-small { padding: 11px 16px; }
.foster-notes { border-top: 1.5px dashed var(--line-strong); margin-top: 14px; padding-top: 12px; }
.foster-notes h4 { margin: 0 0 8px; font-family: var(--font-heading); font-weight: 900; font-size: 0.95rem; color: var(--deep); }
.foster-note-list { list-style: none; margin: 0 0 10px; padding: 0; }
.foster-note-list li { background: var(--cream); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.foster-note-meta { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 700; color: var(--muted); }
.foster-note-del { margin-left: auto; border: 0; background: none; color: var(--error-text); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.foster-note-text { font-size: 0.92rem; color: var(--deep); white-space: pre-line; margin-top: 3px; }
.foster-note-add { display: flex; gap: 10px; align-items: flex-end; }
.foster-note-add textarea { flex: 1; min-height: 46px; }
.foster-note-add .btn-small { padding: 11px 16px; white-space: nowrap; }
@media (max-width: 600px) {
  .foster-note-add { flex-direction: column; align-items: stretch; }
  .commit-head .notes-toggle { margin-left: 0; }
}

/* Admin: foster supplies */
.app-card:not(.app-card-approved) .foster-supplies { display: none; }
.foster-supplies { border-top: 1.5px dashed var(--line-strong); margin-top: 14px; padding-top: 12px; }
.foster-supplies h4 { margin: 0 0 8px; font-family: var(--font-heading); font-weight: 900; font-size: 0.95rem; color: var(--deep); }
.supply-link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.supply-link-row .hint { font-size: 0.85rem; }
.btn-wa { background: #25D366; color: var(--deep); }
.supply-runout { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.supply-runout:empty { display: none; }
.supply-list { list-style: none; margin: 0 0 10px; padding: 0; }
.supply-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--cream); border-radius: 12px; padding: 9px 12px; margin-bottom: 6px; font-size: 0.92rem; }
.supply-date { flex: 0 0 92px; font-size: 0.8rem; font-weight: 700; color: var(--muted); padding-top: 2px; }
.supply-what { flex: 1; color: var(--deep); }
.supply-note-text { display: block; font-size: 0.84rem; color: var(--muted); margin-top: 2px; white-space: pre-line; }
.supply-add summary { cursor: pointer; font-weight: 800; font-size: 0.9rem; color: var(--green); padding: 4px 0; }
.supply-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; margin-top: 10px; padding: 12px; background: var(--cream); border-radius: 12px; }
.supply-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.supply-form .supply-note { grid-column: 1 / 4; }
.supply-form .btn-small { padding: 11px 16px; }
.supply-hint { font-size: 0.8rem; margin: 6px 0 0; }
.supply-req-list { list-style: none; margin: 0 0 10px; padding: 0; }
.supply-req { display: flex; gap: 12px; align-items: center; border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; font-size: 0.92rem; color: var(--deep); }
.supply-req.is-open { background: var(--lime-soft); border: 1.5px solid var(--deep); }
.supply-req.is-urgent { background: var(--error-bg); border-color: var(--error-text); }
.supply-req.is-sorted { background: var(--cream); color: var(--muted); }
.supply-req-main { flex: 1; }
.supply-req-left { display: inline-block; font-weight: 800; font-size: 0.78rem; padding: 2px 9px; border-radius: 100px; background: var(--white); border: 1.5px solid currentColor; margin-left: 4px; }
.supply-req-note { font-style: italic; margin-top: 3px; white-space: pre-line; }
.supply-req-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.supply-alerts { background: var(--white); border: 2.5px solid var(--deep); border-radius: var(--radius-lg); box-shadow: 6px 6px 0 var(--pink); padding: 16px 18px 8px; margin-bottom: 20px; }
.supply-alerts h3 { font-size: 1.05rem; margin: 0 0 10px; }
.supply-soon-list { list-style: none; margin: 0 0 10px; padding: 0; }
.supply-soon-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.92rem; }
.supply-soon-list .btn-small { margin-left: auto; }
.tab-badge-supply { background: var(--lime); }
.app-card.flash { outline: 3px solid var(--pink); outline-offset: 3px; transition: outline-color .3s; }
@media (max-width: 700px) {
  .supply-form { grid-template-columns: 1fr 1fr; }
  .supply-form .supply-note { grid-column: 1 / -1; }
  .supply-req { flex-direction: column; align-items: stretch; }
  .supply-date { flex-basis: 70px; }
}

/* Donate: SnapScan */
.snapscan-card { display: flex; gap: 22px; align-items: center; margin-top: 26px; background: var(--white); border: 2.5px solid var(--deep); border-radius: var(--radius-lg); box-shadow: 6px 6px 0 var(--deep); padding: 20px; }
.snapscan-qr { flex: 0 0 160px; display: block; border-radius: 14px; }
.snapscan-qr img { width: 160px; height: auto; display: block; border-radius: 14px; }
.snapscan-text h3 { margin: 4px 0 8px; font-size: 1.35rem; }
.snapscan-text p { font-size: 0.95rem; margin: 0 0 8px; }
.snapscan-text .btn { margin-top: 6px; }
@media (max-width: 600px) {
  .snapscan-card { flex-direction: column; text-align: center; padding: 22px 18px; }
  .snapscan-qr { flex-basis: auto; }
  .snapscan-qr img { width: 180px; margin: 0 auto; }
  .snapscan-text .btn { width: 100%; }
}

/* Privacy policy */
.legal { max-width: 820px; color: var(--deep); }
.legal h2 { font-size: 1.45rem; margin: 40px 0 12px; scroll-margin-top: 110px; }
.legal p, .legal li { font-size: 1rem; line-height: 1.65; }
.legal ul { padding-left: 1.2em; margin: 0 0 14px; }
.legal ul ul { margin: 6px 0 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--green); font-weight: 700; }
.legal-updated { font-size: 0.88rem; color: var(--muted); margin: 0 0 18px; }
.legal-small { font-size: 0.9rem !important; color: var(--muted); }
.legal-summary { background: var(--white); border: 2.5px solid var(--deep); border-radius: var(--radius-lg); box-shadow: 6px 6px 0 var(--lime); padding: 22px 26px 10px; }
.legal-summary h2 { margin-top: 0; }
.legal-table-wrap { overflow-x: auto; margin: 0 0 16px; border: 2px solid var(--deep); border-radius: 14px; background: var(--white); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.legal-table th { background: var(--deep); color: var(--cream); text-align: left; padding: 10px 14px; font-weight: 800; }
.legal-table td { padding: 11px 14px; border-top: 1px solid var(--line-strong); vertical-align: top; line-height: 1.5; }
.legal-table td:first-child { font-weight: 800; white-space: nowrap; }
@media (max-width: 700px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { display: none; }
  .legal-table tr { border-top: 1px solid var(--line-strong); padding: 6px 0; }
  .legal-table tr:first-child { border-top: none; }
  .legal-table td { border: none; padding: 4px 14px; white-space: normal !important; }
  .legal-summary { padding: 18px 18px 6px; }
}

/* 404 page */
.notfound .notfound-help { margin-top: 30px; font-size: 0.98rem; }
.notfound .notfound-help a { color: var(--deep); font-weight: 800; }

/* Admin: Today tab */
.today-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.today-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.today-card { background: var(--white); border: 2px solid var(--line-strong); border-radius: var(--radius-lg); padding: 16px 18px; }
.today-card.has-items { border: 2.5px solid var(--deep); box-shadow: 5px 5px 0 var(--pink); }
.today-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.today-card h3 { font-size: 1.05rem; margin: 0; }
.today-card header .btn-small { margin-left: auto; }
.today-count { min-width: 24px; padding: 1px 8px; border-radius: 100px; background: var(--cream-deep); font-weight: 800; font-size: 0.8rem; text-align: center; }
.today-card.has-items .today-count { background: var(--pink); border: 1.5px solid var(--deep); }
.today-empty { margin: 0; color: var(--muted); font-size: 0.92rem; }
.today-list { list-style: none; margin: 0; padding: 0; }
.today-item { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; background: var(--cream); margin-bottom: 6px; font-size: 0.92rem; color: var(--deep); border-left: 4px solid var(--green); }
.today-item.tone-soon { border-left-color: #E8A33D; }
.today-item.tone-late { border-left-color: var(--error-text); background: var(--error-bg); }
.today-item-main { flex: 1; min-width: 0; }
.today-sub { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.today-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.today-fu-note { display: flex; gap: 6px; margin: -2px 0 8px 14px; }
.today-fu-note input { flex: 1; min-width: 0; }
@media (max-width: 860px) { .today-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .today-item { flex-direction: column; align-items: stretch; } .today-actions { justify-content: flex-start; } }

/* Admin: adoption check-ins in the animal editor */
.adopter-fields .followup-status { grid-column: 1 / -1; margin: 0 0 6px; font-size: 0.84rem; }

/* Admin: sterilisation project (Community) */
.cm-steri { background: var(--white); border: 2.5px solid var(--deep); border-radius: var(--radius-lg); box-shadow: 5px 5px 0 var(--lime); padding: 16px 18px; margin-bottom: 20px; }
.cm-steri-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cm-steri-head h3 { margin: 0; font-size: 1.1rem; }
.cm-steri-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-stat { font-size: 0.82rem; padding: 3px 10px; border-radius: 100px; background: var(--cream); border: 1.5px solid var(--line-strong); color: var(--deep); }
.cm-stat.is-done { background: var(--lime-soft); border-color: var(--green); }
.cm-stat.is-booked { background: #FFE9C7; border-color: #E8A33D; }
.cm-stat.is-needed { background: var(--pink-soft); border-color: var(--pink); }
.cm-steri-bar { height: 10px; border-radius: 100px; background: var(--cream-deep); margin-top: 12px; overflow: hidden; border: 1.5px solid var(--deep); }
.cm-steri-bar span { display: block; height: 100%; background: var(--green); }
.cm-steri h4 { margin: 10px 0 6px; font-size: 0.95rem; }
.cm-steri details { margin-top: 8px; }
.cm-steri summary { cursor: pointer; font-weight: 800; color: var(--green); font-size: 0.92rem; padding: 4px 0; }
.cm-steri-list { list-style: none; margin: 6px 0 0; padding: 0; }
.cm-steri-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--cream); margin-bottom: 6px; font-size: 0.9rem; }
.cm-steri-item.is-late { background: var(--error-bg); }
.cm-steri-when { font-size: 0.82rem; font-weight: 700; color: var(--deep); margin-top: 2px; }
.cm-steri-btns { display: flex; gap: 6px; flex-shrink: 0; }
@media (max-width: 520px) { .cm-steri-item { flex-direction: column; align-items: stretch; } }

/* Admin: Privacy Policy tab */
.pv-box { background: var(--white); border: 2px solid var(--line-strong); border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 18px; }
.pv-box h3 { margin: 0 0 8px; font-size: 1.1rem; }
.pv-box-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pv-clear { margin: 0; color: var(--green); font-weight: 700; }
.pv-group { border-top: 1.5px dashed var(--line-strong); padding-top: 10px; margin-top: 10px; }
.pv-group header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pv-group h4 { margin: 0; font-size: 0.98rem; }
.pv-list { list-style: none; margin: 6px 0 0; padding: 0; }
.pv-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--cream); margin-bottom: 6px; font-size: 0.92rem; }
.pv-item.pv-gone { opacity: 0.5; text-decoration: line-through; }
.pv-search { display: flex; gap: 8px; margin: 10px 0; }
.pv-search input { flex: 1; min-width: 0; }
.pv-rules { margin: 0; padding-left: 1.2em; font-size: 0.92rem; }
.pv-rules li { margin-bottom: 4px; }
@media (max-width: 520px) { .pv-item { flex-direction: column; align-items: stretch; } .pv-search { flex-direction: column; } }

/* Admin: emails to applicants */
.app-mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 10px; }
.app-mail-log { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.82rem; }
.mail-sent { background: var(--lime-soft); border: 1.5px solid var(--green); color: var(--deep); border-radius: 100px; padding: 2px 10px; font-weight: 700; font-size: 0.78rem; }
.app-mail-row .btn-small { margin-left: auto; }
.mail-backdrop { position: fixed; inset: 0; background: rgba(21, 64, 42, 0.55); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mail-backdrop[hidden] { display: none; }
.mail-dialog { background: var(--white); border: 2.5px solid var(--deep); border-radius: var(--radius-lg); box-shadow: 8px 8px 0 var(--pink); width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px 20px; }
.mail-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mail-bar h3 { margin: 0; font-size: 1.2rem; }
.mail-to { margin: 6px 0 12px; font-size: 0.92rem; color: var(--muted); word-break: break-word; }
.mail-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-weight: 800; font-size: 0.85rem; color: var(--deep); }
.mail-field em { font-style: normal; font-weight: 500; color: var(--muted); }
.mail-field textarea { font-family: inherit; font-size: 0.95rem; line-height: 1.55; resize: vertical; }
.mail-note { font-size: 0.8rem; margin: 0 0 12px; }
.mail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.modal-open { overflow: hidden; }
@media (max-width: 520px) { .mail-actions .btn { width: 100%; } .app-mail-row .btn-small { margin-left: 0; } }

/* Urgent dogs + share button */
.urgent-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--pink); color: var(--deep); border: 2px solid var(--deep); border-radius: 100px; padding: 4px 12px; font-weight: 900; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; box-shadow: 2px 2px 0 var(--deep); }
.animal-card.is-urgent { box-shadow: 6px 6px 0 var(--pink); }
.urgent-note { background: var(--pink-soft); border-left: 4px solid var(--pink); border-radius: 8px; padding: 7px 10px; font-size: 0.9rem; margin: 8px 0; color: var(--deep); }
.animal-card.is-shared { outline: 4px solid var(--lime); outline-offset: 4px; transition: outline-color .4s; }
.share-wrap { position: relative; margin-top: 12px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--white); color: var(--deep); border: 2px solid var(--deep); border-radius: 100px; padding: 8px 16px; font: inherit; font-weight: 800; font-size: 0.88rem; cursor: pointer; }
.share-btn:hover, .share-btn:focus-visible { background: var(--lime); }
.share-menu { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20; display: flex; flex-direction: column; min-width: 170px; background: var(--white); border: 2px solid var(--deep); border-radius: 14px; box-shadow: 4px 4px 0 var(--deep); overflow: hidden; }
.share-menu button { background: none; border: none; text-align: left; padding: 10px 14px; font: inherit; font-weight: 700; font-size: 0.9rem; color: var(--deep); cursor: pointer; }
.share-menu button + button { border-top: 1px solid var(--line-strong); }
.share-menu button:hover, .share-menu button:focus-visible { background: var(--lime-soft); }
/* admin */
.animal-tile-photo { position: relative; }
.urgent-box { background: var(--pink-soft); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.urgent-toggle { width: auto; display: flex; gap: 8px; align-items: flex-start; font-size: 0.9rem; }
.urgent-toggle input { width: auto; margin-top: 3px; }
.urgent-box .form-row { margin: 8px 0 0; }

/* Dog card actions: Adopt + Share */
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.card-actions .share-wrap { margin-top: 0; }
.adopt-btn { padding: 9px 20px; font-size: 0.9rem; }
/* Adoption form: the dog they chose */
.dog-pick { display: flex; align-items: center; gap: 16px; background: var(--white); border: 2.5px solid var(--deep); border-radius: var(--radius-lg); box-shadow: 5px 5px 0 var(--pink); padding: 14px 16px; margin: 0 0 22px; }
.dog-pick img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; border: 2px solid var(--deep); flex-shrink: 0; }
.dog-pick div { display: flex; flex-direction: column; gap: 2px; color: var(--deep); }
.dog-pick strong { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.1; }
.dog-pick-label { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); }
.dog-pick a { color: var(--green); font-weight: 700; }

/* Photo frame that keeps a wide photo's own shape (home page, Our story) */
.photo-frame.photo-wide { aspect-ratio: 1028 / 521; object-position: center; }
.split-media:has(.photo-wide) .media-badge { left: auto; right: -26px; bottom: -40px; }
@media (max-width: 600px) { .split-media:has(.photo-wide) .media-badge { right: -8px; width: 104px; height: 104px; bottom: -34px; } }

/* Volunteer Day: event protocol */
.vdp { background: var(--white); border: 2.5px solid var(--deep); border-radius: var(--radius-lg); box-shadow: 5px 5px 0 var(--lime); padding: 16px 18px; margin-bottom: 24px; }
.vdp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.vdp-head h3 { margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.vdp-state { font-size: 0.75rem; font-weight: 800; padding: 3px 10px; border-radius: 100px; border: 1.5px solid var(--deep); }
.vdp-state.is-open { background: #FFE9C7; }
.vdp-state.is-closed { background: var(--lime); }
.vdp-fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.vdp-sec { border-top: 1.5px dashed var(--line-strong); padding-top: 12px; margin-top: 14px; }
.vdp-sec h4 { margin: 0 0 10px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.vdp-animals input, .vdp-animals select { width: 100%; min-width: 70px; }
.vdp-animals td { vertical-align: middle; }
.vdp-yn { display: flex; gap: 12px; }
.vdp-yn label { display: flex; align-items: center; gap: 4px; font-weight: 700; white-space: nowrap; }
.vdp-yn input { width: auto; }
.vdp-yn-lg { padding-top: 8px; }
.vdp-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.vdp-add select { width: auto; min-width: 200px; }
.vdp-check { list-style: none; margin: 0; padding: 0; }
.vdp-check li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: var(--cream); margin-bottom: 6px; font-size: 0.9rem; border-left: 4px solid var(--line-strong); }
.vdp-check li.is-done { background: var(--lime-soft); border-left-color: var(--green); }
.vdp-check li span { flex: 1; }
.vdp-check input { width: 90px; text-align: center; font-weight: 800; text-transform: uppercase; }
.vdp-confirm { background: var(--cream); border-radius: 10px; padding: 10px 12px; font-size: 0.9rem; margin: 10px 0 12px; }
.vdp-signed { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vdp-signed img { height: 70px; background: var(--white); border: 1.5px solid var(--line-strong); border-radius: 10px; }
.vdp-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1.5px solid var(--line-strong); }
.vdp-volunteers-title { margin: 0 0 10px; font-size: 1.1rem; }
@media (max-width: 600px) {
  .vdp-check li { flex-direction: column; align-items: stretch; }
  .vdp-check input { width: 100%; }
  .vdp-add select { width: 100%; }
}
@media (max-width: 600px) {
  .vdp-animals thead { display: none; }
  .vdp-animals, .vdp-animals tbody, .vdp-animals tr, .vdp-animals td { display: block; width: 100%; }
  .vdp-animals tr { position: relative; padding: 10px 0; border-bottom: 1.5px solid var(--line-strong); }
  .vdp-animals td { border: none; padding: 4px 10px; }
  .vdp-animals td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 800; color: var(--muted); margin-bottom: 3px; }
  .vdp-animals td.vdp-del { position: absolute; top: 6px; right: 0; width: auto; }
  .vdp-animals td[data-label="Animal name"] { padding-right: 44px; }
}

/* Admin: vaccinations on the Add animal form */
.new-vacc-list:empty { display: none; }
.new-vacc-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: var(--cream); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.new-vacc-row label { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; font-weight: 700; color: var(--muted); flex: 1 1 160px; }
.new-vacc-row label em { font-style: normal; font-weight: 500; }
.new-vacc-row select, .new-vacc-row input { width: 100%; }
.new-vacc-row .foster-note-del { align-self: center; }

/* ===== Master admin, Admins tab, Activity tab ===== */
body:not(.is-master) .master-only { display: none !important; }
body.is-master .not-master-note { display: none; }
.admin-topbar-right { display: flex; align-items: center; gap: 14px; }
.admin-whoami { color: var(--cream); font-size: 0.9rem; font-weight: 600; }
.role-badge { display: inline-block; background: var(--lime); color: var(--deep); border: 1.5px solid var(--deep); border-radius: 999px; padding: 1px 9px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; vertical-align: middle; }
.ad-invite { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; margin: 10px 0 6px; }
.ad-invite input { padding: 11px 14px; border: 2px solid var(--deep); border-radius: 12px; font: inherit; background: var(--white); }
.ad-list { list-style: none; padding: 0; margin: 10px 0 0; }
.ad-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1.5px solid rgba(21, 64, 42, 0.15); flex-wrap: wrap; }
.ad-item:first-child { border-top: none; }
.ad-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ad-expired { color: var(--error-text); font-weight: 700; }
#adInvites h3 { margin-top: 22px; font-size: 1rem; }
.ac-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ac-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; font-weight: 700; }
.ac-filters select { padding: 9px 12px; border: 2px solid var(--deep); border-radius: 12px; font: inherit; font-weight: 500; background: var(--white); min-width: 160px; }
.ac-summary { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.ac-stat { display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--deep); border-radius: 14px; padding: 8px 14px; font-size: 0.9rem; min-width: 130px; }
.ac-list { list-style: none; padding: 0; margin: 0; background: var(--white); border: 2px solid var(--deep); border-radius: var(--radius-lg, 18px); overflow: hidden; }
.ac-day { background: var(--cream); font-weight: 800; font-size: 0.85rem; padding: 8px 16px; border-top: 2px solid var(--deep); }
.ac-day:first-child { border-top: none; }
.ac-item { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 10px 16px; border-top: 1px solid rgba(21, 64, 42, 0.12); font-size: 0.93rem; line-height: 1.45; }
.ac-time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.85rem; padding-top: 1px; }
.ac-del { color: var(--error-text); font-weight: 700; }
.ac-changes { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.85rem; }
#acMore { text-align: center; margin-top: 14px; }
.sp-email { margin: 0; font-weight: 700; }
.sp-rules { list-style: none; padding: 0; margin: 8px 0 0; font-size: 0.85rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.sp-rules li::before { content: "\25CB  "; }
.sp-rules li.ok { color: #246D48; font-weight: 700; }
.sp-rules li.ok::before { content: "\2713  "; }
.sp-show { margin: -4px 0 16px; }
@media (max-width: 700px) {
  .ad-invite { grid-template-columns: 1fr; }
  .admin-whoami { display: none; }
  .sp-rules { grid-template-columns: 1fr; }
}
.app-delete-row { margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed rgba(21, 64, 42, 0.2); text-align: right; }

/* Adoption applications: summary on the left, notepad on the right */
.app-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.app-notepad { border-top: none; margin-top: 4px; padding: 14px 16px; background: var(--white); border: 2px solid var(--deep); border-radius: 16px; }
.app-notepad .foster-note-add { flex-direction: column; align-items: stretch; }
.app-notepad .foster-note-add .btn-small { align-self: flex-end; }
@media (max-width: 760px) {
  .app-split { grid-template-columns: 1fr; gap: 6px; }
  .app-notepad { margin-top: 10px; }
}

/* ===== Application forms: address in parts, "+ add" lists, follow-up questions ===== */
.sub-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sub-field > span { font-size: 0.84rem; font-weight: 700; color: var(--muted); }
.sub-field.wide { grid-column: 1 / -1; }
.sub-field.sub-bad input, .sub-field.sub-bad select, .sub-field.sub-bad textarea { border-color: var(--error-text); background: #fff6f9; }
.sub-field.sub-bad .radio-row { outline: 2px solid var(--error-text); border-radius: 12px; outline-offset: 3px; }
.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.q-list .q-none { margin-bottom: 10px; }
.q-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.q-items:empty { display: none; }
.q-item { border: 2px solid var(--deep); border-radius: 16px; padding: 14px 16px; background: var(--white); }
.q-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.q-item-head strong { font-family: var(--font-heading); font-size: 0.98rem; }
.q-item-del { border: 0; background: none; color: var(--error-text); font-weight: 700; font-size: 0.85rem; cursor: pointer; text-decoration: underline; padding: 4px; }
.q-item-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.q-item-grid .radio-row { gap: 8px; }
.q-add { padding: 10px 18px; font-size: 0.92rem; }
.q-follow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-top: 12px; padding: 14px 16px; border-left: 4px solid var(--pink); background: var(--cream); border-radius: 0 14px 14px 0; }
.q-follow[hidden] { display: none; }
@media (max-width: 600px) {
  .addr-grid, .q-item-grid, .q-follow { grid-template-columns: 1fr; }
  .q-add { width: 100%; }
}
.note-autosave { margin: 6px 0 0; font-size: 0.78rem; }

/* Community: "Send list" for sterilisation sign-ups */
.cm-steri-head { flex-wrap: wrap; }
.sl-dialog { width: min(720px, 100%); }
.sl-opts { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: 12px 0 4px; }
.sl-opts .checkbox-item { margin: 0; }
.sl-date { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 700; white-space: nowrap; }
.sl-date select { padding: 6px 10px; border: 2px solid var(--deep); border-radius: 10px; font: inherit; font-weight: 500; }
.sl-text { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.82rem; line-height: 1.5; padding: 12px; border: 2px solid var(--deep); border-radius: 12px; resize: vertical; }

/* Dogs tab: adoption register download */
.ar-row { display: flex; align-items: center; gap: 10px; }
.ar-row select { padding: 9px 12px; border: 2px solid var(--deep); border-radius: 12px; font: inherit; min-width: 180px; background: var(--white); }
.ar-info { margin-top: 12px; font-size: 0.92rem; }
.ar-info p { margin: 0 0 6px; }
.ar-warn { background: #fff6f9; border-left: 4px solid var(--error-text); padding: 6px 10px; border-radius: 0 8px 8px 0; }
.ar-closed { background: var(--lime-soft, #eefdb8); border-left: 4px solid var(--deep); padding: 8px 10px; border-radius: 0 8px 8px 0; }
.ar-close { margin-top: 10px; padding: 10px 12px; border: 2px dashed rgba(21, 64, 42, 0.35); border-radius: 12px; }
.ar-close p { margin: 0 0 6px; }
.app-adopt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 4px; }
.app-card:not(.app-card-approved) .app-adopt-row { display: none; }
.adopt-done { font-weight: 600; color: #246D48; }
.adopter-fill { grid-column: 1 / -1; }
.adopter-fill select { width: 100%; }

/* ===== Online agreements (sign page) ===== */
.ag-form { padding-top: 22px; }
.ag-dog { background: var(--cream); border: 2px solid var(--deep); border-radius: 16px; padding: 14px 18px; margin-bottom: 22px; }
.ag-dog h3 { margin: 0 0 8px; font-size: 1.05rem; }
.ag-dog dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; font-size: 0.95rem; }
.ag-dog dt { color: var(--muted); }
.ag-dog dd { margin: 0; font-weight: 700; }
.ag-terms { max-height: 52vh; overflow-y: auto; border: 2px solid var(--deep); border-radius: 16px; padding: 4px 20px 16px; background: var(--white); font-size: 0.95rem; line-height: 1.55; margin-bottom: 22px; }
.ag-terms .ag-title { font-size: 1.25rem; margin: 14px 0 8px; }
.ag-terms h3 { font-size: 1.02rem; margin: 16px 0 6px; }
.ag-terms ul { margin: 0 0 8px; padding-left: 20px; }
.ag-terms li { margin-bottom: 5px; }
.ag-details { border: 0; padding: 0; margin: 0 0 18px; }
.ag-details legend { font-family: var(--font-heading); font-weight: 900; font-size: 1.15rem; margin-bottom: 10px; }
.ag-agree { margin-bottom: 14px; align-items: flex-start; }
@media (max-width: 600px) { .ag-dog dl { grid-template-columns: 1fr; gap: 0; } .ag-dog dd { margin-bottom: 6px; } }

/* ===== Agreements panel in the dog editor ===== */
.agreements-panel { padding: 12px 14px; }
.agr-list { list-style: none; padding: 0; margin: 0 0 14px; }
.agr-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid rgba(21, 64, 42, 0.15); }
.agr-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.agr-badge { display: inline-block; font-size: 0.76rem; font-weight: 700; border-radius: 999px; padding: 1px 9px; margin-left: 6px; background: #eee; }
.agr-badge.is-signed { background: #d8fc5e; }
.agr-badge.is-sent { background: #ffd3ea; }
.agr-badge.is-late { background: #ffe0c2; }
.agr-send { background: var(--cream); border: 2px dashed rgba(21, 64, 42, 0.35); border-radius: 14px; padding: 12px 14px; }
.agr-send h4 { margin: 0 0 8px; }
.agr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.agr-grid label { display: flex; flex-direction: column; gap: 3px; font-size: 0.82rem; font-weight: 700; }
.agr-grid input, .agr-grid select { font: inherit; font-weight: 500; padding: 8px 10px; border: 2px solid var(--deep); border-radius: 10px; background: var(--white); }
.agr-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 6px; }
@media (max-width: 640px) { .agr-grid { grid-template-columns: 1fr; } }
.app-agree-row { margin: 10px 0 4px; }
.app-card:not(.app-card-approved) .app-agree-row { display: none; }

/* ===== What's new tab ===== */
.upd-post { background: var(--white); border: 2px solid var(--deep); border-radius: var(--radius-lg, 18px); padding: 18px 22px; margin-bottom: 16px; }
.upd-post.is-pinned { box-shadow: 6px 6px 0 var(--pink); }
.upd-post header h3 { margin: 0; font-size: 1.2rem; }
.upd-post header .hint { margin: 4px 0 10px; }
.upd-body { font-size: 0.97rem; line-height: 1.6; }
.upd-body h4 { margin: 16px 0 6px; font-size: 1.02rem; }
.upd-body p { margin: 0 0 10px; }
.upd-body ul, .upd-body ol { margin: 0 0 10px; padding-left: 22px; }
.upd-body li { margin-bottom: 4px; }
.upd-new { display: inline-block; background: var(--pink); color: var(--deep); border: 1.5px solid var(--deep); border-radius: 999px; font-size: 0.72rem; font-weight: 800; padding: 0 8px; vertical-align: middle; }
.upd-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1.5px dashed rgba(21, 64, 42, 0.2); }
.upd-form { margin-bottom: 20px; }
.upd-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-weight: 700; font-size: 0.88rem; }
.upd-field input, .upd-field textarea { font: inherit; font-weight: 500; padding: 10px 12px; border: 2px solid var(--deep); border-radius: 12px; background: var(--white); }
.upd-form code { background: var(--cream); padding: 0 4px; border-radius: 4px; }
#updPreview .upd-post { margin-top: 14px; border-style: dashed; }
.updates-today-note { background: #ffd3ea; border: 2px solid var(--deep); border-radius: 14px; padding: 10px 14px; margin: 0 0 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.updates-today-note[hidden] { display: none; }

/* ===== Fostering tab: foster homes ===== */
.fh-box { background: var(--white); border: 2px solid var(--deep); border-radius: var(--radius-lg, 18px); padding: 16px 18px; }
.fh-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.fh-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.fh-tools input[type="search"] { flex: 1; min-width: 220px; padding: 9px 12px; border: 2px solid var(--deep); border-radius: 12px; font: inherit; }
.fh-list { list-style: none; padding: 0; margin: 0; max-height: 520px; overflow-y: auto; }
.fh-item { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; padding: 10px 2px; border-bottom: 1px solid rgba(21, 64, 42, 0.15); }
.fh-item.is-inactive { opacity: 0.6; }
.fh-contact { font-size: 0.92rem; margin-top: 2px; }
.fh-contact a { color: var(--deep); }
.fh-notes { font-size: 0.85rem; background: var(--cream); border-radius: 8px; padding: 3px 8px; margin-top: 4px; display: inline-block; }
.fh-btns { display: flex; gap: 6px; }
.fh-form { background: var(--cream); border: 2px dashed rgba(21, 64, 42, 0.35); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.fh-form h4 { margin: 0 0 8px; }
.fh-checks { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.fh-dogs { font-size: 0.9rem; margin-top: 5px; }
.fh-adddog { margin-top: 10px; background: var(--cream); border: 2px dashed rgba(21, 64, 42, 0.35); border-radius: 12px; padding: 10px 12px; }
.fh-adddog-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.fh-adddog-grid label { display: flex; flex-direction: column; gap: 3px; font-size: 0.82rem; font-weight: 700; }
.fh-adddog-grid select, .fh-adddog-grid input { font: inherit; font-weight: 500; padding: 8px 10px; border: 2px solid var(--deep); border-radius: 10px; background: var(--white); }
.fh-warn { margin: 8px 0 0; color: #8a4b00; }
.fh-main { flex: 1; min-width: 260px; }
@media (max-width: 640px) { .fh-adddog-grid { grid-template-columns: 1fr; } }
