/* Always & Furever — Brand-matched UI
 * Phone-first public profile pages for a small senior-dog rescue.
 * Navy + gold palette, Red Hat Display + Domine typography,
 * drawn from the real alwaysandfurever.org WordPress theme.
 *
 * Admin styles preserved below the public block (don't break staff area).
 */

:root {
  /* Color — matches alwaysandfurever.org */
  --c-bg:           #FFFFFF;   /* white */
  --c-surface:      #FFFFFF;
  --c-text:         #252525;   /* near-black */
  --c-text-muted:   #636363;
  --c-accent:       #014769;   /* navy blue — primary / CTAs */
  --c-accent-hover: #017bb5;   /* medium blue — hover */
  --c-gold:         #E4B641;   /* gold — secondary / accents */
  --c-cream:        #F5F5E6;   /* cream — subtle backgrounds */
  --c-border:       #C1C2B2;   /* muted warm grey */
  --c-border-soft:  #EDF2F7;
  --c-warn-bg:      #FFF8E7;
  --c-warn-fg:      #7A5B0A;
  --c-ok-bg:        #E6F2EB;
  --c-ok-fg:        #0A6608;
  --c-error-bg:     #FBE5E5;
  --c-error-fg:     #8B1E1E;

  /* Type — matches alwaysandfurever.org: Red Hat Display + Domine */
  --font-display: 'Red Hat Display', system-ui, -apple-system, BlinkMacSystemFont,
                  'Segoe UI', Roboto, sans-serif;
  --font-body:    'Domine', Georgia, 'Times New Roman', serif;

  /* Spacing scale (4-px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;
  --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px;

  /* Shape — matches theme: 12px cards, pill buttons */
  --r-card: 12px;
  --r-btn:  999px;
  --r-photo: 12px;

  /* Tap targets */
  --tap: 52px;
}

/* ---------------------------------------------------------------------------
   Reset + base
   --------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 17px;            /* not 16 — older eyes, parking-lot sun */
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-text);
  margin: 0 0 var(--s-3);
}

h1 { font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.1; }
h2 { font-size: 1.35rem; line-height: 1.25; margin-top: var(--s-6); }
h3 { font-size: 1.1rem; }

a { color: var(--c-accent); }
a:hover, a:focus { color: var(--c-accent-hover); }

img { max-width: 100%; height: auto; display: block; }

p { margin: 0 0 var(--s-4); }

::selection { background: var(--c-accent); color: var(--c-bg); }

/* ---------------------------------------------------------------------------
   Top bar + footer
   --------------------------------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--c-accent);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  color: #FFFFFF;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}
.logo { height: 32px; width: auto; }

.topnav {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.topnav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.topnav a:hover,
.topnav a.nav-active {
  color: #FFFFFF;
}
.topnav button.link {
  color: rgba(255,255,255,0.7);
  background: none;
  border: 0;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  min-height: 0;
}
.topnav button.link:hover {
  color: #FFFFFF;
}

.content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s-5) var(--s-4) var(--s-8);
}

.footer {
  text-align: center;
  padding: var(--s-6) var(--s-4);
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  background: var(--c-accent);
}
.footer p { margin: 0; }

/* ---------------------------------------------------------------------------
   Home page — hero + featured scroll strip
   --------------------------------------------------------------------------- */
.home-hero {
  text-align: center;
  padding: var(--s-8) var(--s-4) var(--s-6);
  max-width: 640px;
  margin: 0 auto;
}
.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 700;
  margin-bottom: var(--s-3);
  color: var(--c-text);
}
.home-hero p {
  color: var(--c-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 42ch;
  margin: 0 auto var(--s-5);
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
}

/* Featured animals — horizontal scroll strip */
.featured-strip {
  padding: 0 var(--s-4) var(--s-7);
  max-width: 960px;
  margin: 0 auto;
}
.featured-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--s-4);
  color: var(--c-text);
}
.featured-scroll {
  display: flex;
  gap: var(--s-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--s-2);
}
.featured-scroll::-webkit-scrollbar { height: 4px; }
.featured-scroll::-webkit-scrollbar-thumb {
  background: var(--c-border);
  border-radius: 4px;
}

.featured-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--c-text);
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}
.featured-card:hover {
  box-shadow: 0 3px 16px rgba(1,71,105,0.12);
  transform: translateY(-2px);
}
.fc-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--c-border-soft);
  overflow: hidden;
}
.fc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fc-body {
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fc-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
}
.fc-breed {
  font-size: 0.85rem;
  color: var(--c-text-muted);
}
.fc-meta {
  font-size: 0.8rem;
  color: var(--c-text-muted);
}

/* Adopt page — public card grid */
.adopt-page {
  max-width: 880px;
  margin: 0 auto;
  padding: var(--s-5) var(--s-4) var(--s-8);
}
.adopt-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--s-4);
  color: var(--c-text);
}
.adopt-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--c-border);
}
.adopt-filter {
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-btn);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--c-text);
  background: var(--c-border-soft);
  transition: background 0.12s, color 0.12s;
}
.adopt-filter:hover,
.adopt-filter.active {
  background: var(--c-accent);
  color: #FFFFFF;
}
.adopt-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--c-text-muted);
}
.adopt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--s-3);
}
.adopt-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--c-text);
  transition: box-shadow 0.15s, transform 0.1s;
}
.adopt-card:hover {
  box-shadow: 0 3px 16px rgba(1,71,105,0.12);
  transform: translateY(-2px);
}
.adopt-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--c-border-soft);
  overflow: hidden;
}
.adopt-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.adopt-no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  font-size: 0.85rem;
}
.adopt-body {
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adopt-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
}
.adopt-breed {
  font-size: 0.85rem;
  color: var(--c-text-muted);
}
.adopt-meta {
  font-size: 0.8rem;
  color: var(--c-text-muted);
}
.adopt-empty {
  text-align: center;
  color: var(--c-text-muted);
  padding: var(--s-8) 0;
  font-size: 1.05rem;
}

/* ---------------------------------------------------------------------------
   Public profile page — hero-first adoption profile
   --------------------------------------------------------------------------- */
.public-profile .content {
  max-width: 100%;
  padding: 0;
}

.profile-content {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--s-5) var(--s-4) var(--s-8);
}

/* Hero photo — rounded card, matches gallery + dashboard cards */
.profile-hero {
  width: 100%;
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: var(--s-5);
}
.hero-photo {
  width: 100%;
  max-height: 50vh;
  object-fit: cover;
  display: block;
}

/* Name block */
.profile-name-block {
  margin-bottom: var(--s-3);
}
.profile-name-block .animal-name {
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 var(--s-1);
}
.animal-location {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Status badge — compact pill */
.status-badge {
  display: inline-block;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-btn);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 var(--s-4);
}
.status-badge.status-adopted            { background: var(--c-ok-bg);  color: var(--c-ok-fg); }
.status-badge.status-pending            { background: var(--c-warn-bg); color: var(--c-warn-fg); }
.status-badge.status-healthy-in-home    { background: #E6F2EB; color: #0A6608; }
.status-badge.status-fostered-available-for-adoption,
.status-badge.status-available-for-adoption,
.status-badge.status-coming-soon        { background: #D4EEFA; color: #014769; }
.status-badge.status-pending-acceptance  { background: #FFF8E7; color: #7A5B0A; }
.status-badge.status-deceased            { background: #FBE5E5; color: #8B1E1E; }
.status-badge.status-transferred-out     { background: #EDF2F7; color: #636363; }
/* fallback */
.status-badge:not([class*="status-adopted"]):not([class*="status-pending"]):not([class*="status-healthy"]):not([class*="status-fostered"]):not([class*="status-available"]):not([class*="status-coming"]):not([class*="status-deceased"]):not([class*="status-transferred"]) {
  background: var(--c-border-soft);
  color: var(--c-text-muted);
}

/* Quick stats — horizontal pill row */
.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.stat-pill {
  display: inline-block;
  padding: var(--s-1) var(--s-3);
  background: var(--c-cream);
  color: var(--c-text);
  border-radius: var(--r-btn);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

/* About section */
.about h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: var(--s-3);
  color: var(--c-text);
}
.about-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--c-text);
}

/* Photo gallery — thumbnail grid */
.gallery {
  margin-top: var(--s-6);
}
.gallery h2 {
  font-size: 1.15rem;
  margin-bottom: var(--s-3);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
}
.gallery-thumb {
  display: block;
  border-radius: var(--r-photo);
  background: var(--c-border-soft);
  overflow: hidden;
  cursor: pointer;
}
.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.notes-list {
  list-style: none;
  padding: 0;
  margin: var(--s-3) 0 0;
}
.notes-list li {
  border-left: 3px solid var(--c-gold);
  padding: var(--s-2) var(--s-4);
  margin-bottom: var(--s-3);
  background: var(--c-bg);
  border-radius: 0 var(--r-card) var(--r-card) 0;
}
.notes-list time {
  display: block;
  color: var(--c-text-muted);
  font-size: 0.85rem;
  margin-bottom: var(--s-1);
  font-variant-numeric: tabular-nums;
}
.notes-list p { margin: 0; }

/* CTA block — the most important pixels on the page */
.cta {
  margin-top: var(--s-6);
  padding: var(--s-5);
  background: var(--c-cream);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  text-align: center;
}
.cta h2 { margin-top: 0; }
.cta p { color: var(--c-text-muted); }
.cta-phone { margin-top: var(--s-4); }
.cta-phone .btn { font-size: 1.15rem; }
.cta-email {
  margin-top: var(--s-3);
  font-size: 0.95rem;
}
.cta-email a { color: var(--c-accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.12s ease, color 0.12s ease, transform 0.05s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--c-accent);
  color: #FFFFFF;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--c-accent-hover);
  color: #FFFFFF;
}
.btn-primary:active { transform: translateY(1px); }
.btn-secondary {
  background: var(--c-surface);
  color: var(--c-text);
  border-color: var(--c-border);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--c-border-soft);
  color: var(--c-text);
}
.btn-secondary:active { transform: translateY(1px); }

/* ---------------------------------------------------------------------------
   Error pages + login
   --------------------------------------------------------------------------- */
.login-card,
.error-card,
.notfound-card {
  max-width: 400px;
  margin: var(--s-8) auto;
  padding: var(--s-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  text-align: center;
}
.login-card h1,
.error-card h1,
.notfound-card h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 var(--s-4);
  color: var(--c-text);
}
.login-card input {
  margin-bottom: var(--s-3);
}
.login-card .btn,
.error-card .btn,
.notfound-card .btn {
  margin-top: var(--s-3);
}
.login-card p,
.error-card p,
.notfound-card p {
  color: var(--c-text-muted);
  margin: 0 0 var(--s-4);
  font-size: 1rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   Breakpoints — two jumps only
   --------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .profile-content { max-width: 680px; }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .profile-content { max-width: 760px; }
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===========================================================================
   ADMIN DASHBOARD
   =========================================================================== */

/* Analytics cards row */
.analytics-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.a-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: var(--s-4);
  text-align: center;
}
.a-card-sm { padding: var(--s-3); }
.a-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1.1;
}
.a-card-sm .a-number { font-size: 1.25rem; }
.a-label {
  display: block;
  font-size: 0.8rem;
  color: var(--c-text-muted);
  margin-top: var(--s-1);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  align-items: center;
}
.search-input {
  flex: 1 1 200px;
  max-width: 100%;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--c-surface);
  color: var(--c-text);
  min-height: var(--tap);
}
.search-input:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: 1px;
  border-color: var(--c-accent);
}
.filter-select {
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--c-surface);
  color: var(--c-text);
  min-height: var(--tap);
  max-width: 220px;
}

/* Pagination */
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.pager {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.pager-bottom {
  justify-content: center;
  margin-top: var(--s-4);
  margin-bottom: var(--s-5);
}
.pager-info {
  font-size: 0.9rem;
  color: var(--c-text-muted);
}
.result-count {
  color: var(--c-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Animal card grid */
.animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.animal-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--c-text);
  transition: box-shadow 0.12s ease, transform 0.05s ease;
}
.animal-card:hover {
  box-shadow: 0 3px 16px rgba(1, 71, 105, 0.12);
  transform: translateY(-1px);
}
.ac-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--c-border-soft);
  overflow: hidden;
}
.ac-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ac-no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  font-size: 0.85rem;
}
.ac-body {
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.ac-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text);
}
.ac-status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--r-btn);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  align-self: flex-start;
}
/* Status color variants */
.ac-status.status-healthy-in-home            { background: #E6F2EB; color: #0A6608; }
.ac-status.status-available-for-adoption,
.ac-status.status-fostered-available-for-adoption,
.ac-status.status-coming-soon                { background: #D4EEFA; color: #014769; }
.ac-status.status-deceased                   { background: #FBE5E5; color: #8B1E1E; }
.ac-status.status-transferred-out            { background: #EDF2F7; color: #636363; }
.ac-status.status-pending-acceptance         { background: #FFF8E7; color: #7A5B0A; }
.ac-breed {
  font-size: 0.85rem;
  color: var(--c-text-muted);
}
.ac-meta {
  font-size: 0.8rem;
  color: var(--c-text-muted);
}

/* ===========================================================================
   ADMIN — preserved from the original stylesheet. Keep these class names
   stable; the staff area depends on them.
   =========================================================================== */
.animals, .syncs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--s-5);
}
.animals th, .animals td,
.syncs th, .syncs td {
  text-align: left;
  padding: var(--s-2);
  border-bottom: 1px solid var(--c-border);
}

button, .button {
  background: var(--c-accent);
  color: #FFFFFF;
  border: 0;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-card);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  min-height: var(--tap);
}
button.link {
  background: transparent;
  color: var(--c-accent);
  padding: 0;
  min-height: 0;
}
input[type=text],
input[type=password] {
  display: block;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  width: 100%;
  max-width: 360px;
  margin: var(--s-1) 0 var(--s-3);
  font-family: inherit;
  font-size: 1rem;
  background: var(--c-surface);
  color: var(--c-text);
}
input[type=text]:focus,
input[type=password]:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: 1px;
  border-color: var(--c-accent);
}
.error-msg {
  color: var(--c-error-fg);
  background: var(--c-error-bg);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-card);
}

/* Admin — photo thumbnails */
.admin-photo-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--s-2);
  list-style: none;
  padding: 0;
}
.admin-photo-list img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-photo);
  display: block;
}

/* Admin — attributes table */
.attr-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-3) 0 var(--s-5);
}
.attr-table th {
  text-align: left;
  padding: var(--s-2) var(--s-3);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
  border-bottom: 2px solid var(--c-accent);
}
.attr-table td {
  padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--c-border-soft);
  font-size: 0.95rem;
}
.attr-name {
  font-weight: 600;
  color: var(--c-text);
}
.attr-id {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--c-text-muted);
}
.pub-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-btn);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pub-yes { background: var(--c-ok-bg); color: var(--c-ok-fg); }
.pub-no  { background: var(--c-border-soft); color: var(--c-text-muted); }

/* Admin section cards — consistent card wrapper */
.admin-section {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: var(--s-4);
  margin-bottom: var(--s-4);
}
.admin-section h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 var(--s-3);
  color: var(--c-text);
}

/* Sensitive fields (microchip, kennel) */
.sensitive-fields {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.sf-item {
  padding: var(--s-2) var(--s-3);
  background: #FFF8E7;
  border: 1px solid #ECDFB1;
  border-radius: var(--r-card);
  font-size: 0.9rem;
}
.sf-label {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
  margin-right: var(--s-2);
}

/* Tag pills */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
}
.tag-pill {
  display: inline-block;
  padding: var(--s-1) var(--s-3);
  background: var(--c-cream);
  border: 1px solid var(--c-border);
  border-radius: var(--r-btn);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-text);
}

/* Utility */
.input-block {
  width: 100%;
  padding: var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--c-surface);
  color: var(--c-text);
  resize: vertical;
  margin-bottom: var(--s-3);
}
.input-block:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: 1px;
  border-color: var(--c-accent);
}
.input-file {
  display: block;
  margin-bottom: var(--s-3);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.muted { color: var(--c-text-muted); }

/* Note header row */
.note-header {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}

/* Animal header row */
.animal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
  flex-wrap: wrap;
}
.animal-header h1 { margin-bottom: var(--s-1); }
.animal-header p { color: var(--c-text-muted); margin: 0; }

/* Staff note form */
.note-form {
  margin: var(--s-4) 0;
  padding: var(--s-4);
  background: var(--c-cream);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
}
.note-form textarea {
  width: 100%;
  padding: var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--c-surface);
  color: var(--c-text);
  resize: vertical;
  min-height: 80px;
}
.note-form textarea:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: 1px;
}
.note-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-3);
  flex-wrap: wrap;
}
.note-check {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.9rem;
  color: var(--c-text);
  cursor: pointer;
}
.note-check input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--c-accent);
}

/* Staff notes list */
.notes-list-admin {
  list-style: none;
  padding: 0;
  margin: var(--s-4) 0 0;
}
.notes-list-admin li {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-card);
  margin-bottom: var(--s-2);
}
.notes-list-admin li.note-public {
  background: var(--c-ok-bg);
  border-left: 3px solid var(--c-ok-fg);
}
.notes-list-admin li.note-internal {
  background: #FFF8E7;
  border-left: 3px solid #E4B641;
}
.note-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--r-btn);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: var(--s-2);
}
.note-public .note-badge { background: var(--c-ok-fg); color: #FFFFFF; }
.note-internal .note-badge { background: #E4B641; color: #252525; }
.note-meta {
  font-size: 0.8rem;
  color: var(--c-text-muted);
}
.notes-list-admin p {
  margin: var(--s-2) 0 0;
  font-size: 0.95rem;
}

/* Users page */
.add-user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}

.user-cards {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.user-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: var(--s-4);
}
.user-card.user-inactive { opacity: 0.55; }
.uc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-3);
  flex-wrap: wrap;
  gap: var(--s-2);
}
.uc-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-text);
}
.uc-role {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-btn);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.role-admin    { background: var(--c-accent);   color: #FFFFFF; }
.role-staff    { background: #D4EEFA;         color: #014769; }
.role-readonly { background: var(--c-border-soft); color: var(--c-text-muted); }

.uc-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  font-size: 0.9rem;
  margin-bottom: var(--s-3);
}
.uc-info code {
  font-size: 0.85rem;
  background: var(--c-border-soft);
  padding: 1px 6px;
  border-radius: var(--r-card);
}
.uc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}
.uc-form {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
}
.uc-form select {
  padding: var(--s-1) var(--s-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  font-size: 0.85rem;
  font-family: var(--font-body);
  background: var(--c-surface);
  cursor: pointer;
}
.uc-form input[type=password] {
  padding: var(--s-1) var(--s-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  font-size: 0.85rem;
  font-family: var(--font-body);
  width: 140px;
}
.btn-sm {
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-btn);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  white-space: nowrap;
}
.btn-active {
  background: var(--c-ok-bg);
  color: var(--c-ok-fg);
  border-color: var(--c-ok-fg);
}
.btn-deactivated {
  background: var(--c-border-soft);
  color: var(--c-text-muted);
}
.nav-active {
  color: var(--c-gold) !important;
  font-weight: 700;
}
