:root {
  --forest: #254f43;
  --forest-deep: #173a32;
  --sage: #9fbea4;
  --sage-light: #dfeadf;
  --cream: #fffaf1;
  --sand: #f2e4c8;
  --gold: #d6a54e;
  --ink: #24312d;
  --muted: #66736d;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(31, 68, 58, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 241, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(37, 79, 67, 0.08);
}

.navbar {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(37, 79, 67, 0.16);
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--forest-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-weight: 700;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--forest);
  transform: translateY(-1px);
}

.nav-button {
  justify-self: end;
  background: var(--forest);
  color: var(--white);
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(37, 79, 67, 0.18);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 6rem;
  background:
    radial-gradient(circle at top right, rgba(159, 190, 164, 0.22), transparent 32%),
    linear-gradient(180deg, #fffdf8 0%, var(--cream) 100%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 5rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--forest);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about-card h2 {
  font-family: "Playfair Display", serif;
  color: var(--forest-deep);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
}

.hero h1 span {
  color: var(--forest);
}

.hero-text {
  max-width: 640px;
  margin: 1.6rem 0 0;
  font-size: 1.2rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(37, 79, 67, 0.2);
}

.button-primary:hover {
  background: var(--forest-deep);
}

.button-secondary {
  background: var(--white);
  color: var(--forest);
  border: 1px solid rgba(37, 79, 67, 0.14);
}

.trust-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.paw-dot {
  color: var(--gold);
}

.hero-card-wrap {
  position: relative;
}

.hero-card {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(37, 79, 67, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  box-shadow: var(--shadow);
}

.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}

.card-label,
.mini-title,
.mini-copy,
.timeline-title,
.timeline-meta {
  margin: 0;
}

.card-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-heading h2 {
  margin: 0.15rem 0 0;
  color: var(--forest-deep);
  font-size: 1.45rem;
}

.status-pill {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--sage-light);
  color: var(--forest);
  font-size: 0.8rem;
  font-weight: 800;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.mini-card {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: #f8fbf7;
  border: 1px solid rgba(37, 79, 67, 0.08);
}

.mini-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: var(--white);
  font-size: 1.2rem;
}

.mini-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--forest-deep);
}

.mini-copy {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.timeline {
  position: relative;
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(37, 79, 67, 0.08);
}

.timeline-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.timeline-item + .timeline-item {
  margin-top: 1rem;
}

.timeline-dot {
  width: 11px;
  height: 11px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--forest);
  box-shadow: 0 0 0 5px var(--sage-light);
}

.timeline-dot-soft {
  background: var(--gold);
  box-shadow: 0 0 0 5px #f8edda;
}

.timeline-title {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.timeline-meta {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.floating-badge {
  position: absolute;
  right: -1.4rem;
  bottom: -1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--forest-deep);
  color: var(--white);
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(23, 58, 50, 0.22);
}

.floating-badge > span {
  font-size: 1.4rem;
}

.floating-badge strong,
.floating-badge small {
  display: block;
}

.floating-badge small {
  color: rgba(255, 255, 255, 0.78);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.7;
}

.hero-glow-one {
  width: 260px;
  height: 260px;
  right: -80px;
  top: 80px;
  background: rgba(159, 190, 164, 0.3);
}

.hero-glow-two {
  width: 170px;
  height: 170px;
  left: -50px;
  bottom: 40px;
  background: rgba(214, 165, 78, 0.12);
}

.section {
  padding: 6rem 0;
}

.features {
  background: var(--white);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-heading h2,
.about-card h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
}

.section-heading > p:last-child {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.4rem;
  border-radius: var(--radius-md);
  background: #fbfcfa;
  border: 1px solid rgba(37, 79, 67, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(37, 79, 67, 0.1);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--sage-light);
  font-size: 1.25rem;
}

.feature-card h3 {
  margin: 1rem 0 0.45rem;
  color: var(--forest-deep);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.about {
  background: var(--cream);
}

.about-card {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  border-radius: var(--radius-lg);
  background: var(--forest-deep);
  box-shadow: var(--shadow);
}

.about-card .eyebrow {
  color: #cae0ce;
}

.about-card h2 {
  color: var(--white);
}

.about-card > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
}


/* Contact section */
.contact {
  background: var(--white);
  scroll-margin-top: 84px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.contact-copy h2 {
  margin: 0;
  max-width: 620px;
  color: var(--forest-deep);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.contact-copy > p:last-child {
  max-width: 580px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.4rem;
  border: 1px solid rgba(37, 79, 67, 0.1);
  border-radius: var(--radius-lg);
  background: #f8fbf7;
  box-shadow: var(--shadow);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid rgba(37, 79, 67, 0.08);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  background: var(--sage-light);
  font-size: 1.2rem;
}

.contact-label,
.contact-placeholder {
  margin: 0;
}

.contact-label {
  color: var(--forest-deep);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-placeholder {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .contact-card {
    padding: 1rem;
  }

  .contact-item {
    align-items: flex-start;
  }
}

.site-footer {
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-layout {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
}

.footer-layout p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .navbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero-layout,
  .about-card {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 3.5rem;
  }

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

  .floating-badge {
    right: 1rem;
  }
}

@media (max-width: 600px) {
  .navbar {
    min-height: 72px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .nav-button {
    display: none;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .mini-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .floating-badge {
    position: static;
    margin: 1rem 0 0;
    width: fit-content;
  }

  .section {
    padding: 4.5rem 0;
  }

  .about-card {
    padding: 2rem;
  }

  .footer-layout {
    min-height: 150px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

/* DEMO DASHBOARD */
.demo-page { background: #f7f5ef; }
.demo-main { min-height: 80vh; }
.demo-banner { background: var(--forest-deep); color: rgba(255,255,255,.88); }
.demo-banner-inner { min-height: 52px; display:flex; align-items:center; justify-content:center; gap:.8rem; text-align:center; }
.demo-banner-inner p { margin:0; font-size:.9rem; font-weight:700; }
.demo-badge { flex:0 0 auto; padding:.3rem .65rem; border-radius:999px; background:var(--gold); color:var(--forest-deep); font-size:.7rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.demo-exit { background:transparent; color:var(--forest); border:1px solid rgba(37,79,67,.2); box-shadow:none; }
.pet-hero { padding:3.4rem 0 2.6rem; background:linear-gradient(180deg,#fffdf8 0%,#f7f5ef 100%); border-bottom:1px solid rgba(37,79,67,.08); }
.pet-hero-layout { display:flex; align-items:center; justify-content:space-between; gap:3rem; }
.pet-profile { display:flex; align-items:center; gap:1.6rem; }
.pet-photo { width:148px; height:148px; object-fit:cover; border-radius:30px; box-shadow:0 14px 34px rgba(37,79,67,.16); border:5px solid white; }
.pet-profile h1 { margin:0; font:700 clamp(2.8rem,5vw,4.5rem)/1 "Playfair Display",serif; color:var(--forest-deep); }
.pet-meta { margin:.5rem 0 .9rem; color:var(--muted); font-weight:700; }
.pet-tags { display:flex; flex-wrap:wrap; gap:.5rem; }
.pet-tags span,.readonly-label,.record-chip { padding:.32rem .65rem; border-radius:999px; background:var(--sage-light); color:var(--forest); font-size:.75rem; font-weight:800; }
.demo-note { max-width:370px; display:flex; gap:.8rem; padding:1.1rem 1.2rem; border-radius:var(--radius-md); background:white; border:1px solid rgba(37,79,67,.09); box-shadow:0 10px 30px rgba(37,79,67,.07); }
.demo-note > span { font-size:1.35rem; }
.demo-note p { margin:0; color:var(--muted); font-size:.88rem; }
.demo-note strong { color:var(--forest-deep); }
.dashboard-layout { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:1.4rem; align-items:start; padding-top:2rem; padding-bottom:5rem; }
.dashboard-main { display:grid; gap:1.4rem; }
.dashboard-section,.side-card { background:white; border:1px solid rgba(37,79,67,.08); border-radius:var(--radius-lg); box-shadow:0 12px 34px rgba(37,79,67,.06); }
.dashboard-section { padding:1.6rem; }
.dashboard-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1.3rem; }
.dashboard-heading h2,.side-card h2,.demo-cta-card h2 { margin:0; color:var(--forest-deep); font-family:"Playfair Display",serif; line-height:1.15; }
.dashboard-heading .eyebrow,.side-card .eyebrow,.demo-cta-card .eyebrow { margin-bottom:.3rem; }
.stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.8rem; }
.stat-card { min-width:0; padding:1rem; border-radius:16px; background:#f8fbf7; border:1px solid rgba(37,79,67,.07); }
.stat-icon { font-size:1.2rem; }
.stat-card p { margin:.55rem 0 .15rem; color:var(--muted); font-size:.78rem; font-weight:800; }
.stat-card strong { display:block; color:var(--forest-deep); font-size:1.35rem; line-height:1.2; }
.stat-card small { color:var(--muted); font-size:.72rem; }
.med-list { display:grid; }
.med-row { display:grid; grid-template-columns:48px 1fr auto; gap:1rem; align-items:center; padding:1rem 0; }
.med-row + .med-row { border-top:1px solid rgba(37,79,67,.08); }
.med-symbol { width:44px; height:44px; display:grid; place-items:center; border-radius:13px; background:var(--sage-light); color:var(--forest); font-weight:900; }
.med-info h3,.history-row h3,.note-card h3 { margin:0; color:var(--forest-deep); font-size:1rem; }
.med-info p,.history-row p,.note-card p { margin:.12rem 0 0; color:var(--muted); font-size:.86rem; }
.med-schedule { text-align:right; }
.med-schedule strong,.med-schedule span { display:block; }
.med-schedule strong { color:var(--ink); font-size:.86rem; }
.med-schedule span { color:var(--muted); font-size:.75rem; }
.text-link { color:var(--forest); font-size:.83rem; font-weight:800; }
.history-list { display:grid; gap:.3rem; }
.history-row { display:grid; grid-template-columns:58px 1fr; gap:1rem; padding:1rem 0; }
.history-row + .history-row { border-top:1px solid rgba(37,79,67,.08); }
.history-row time { width:54px; height:58px; display:grid; place-content:center; text-align:center; border-radius:14px; background:#f8edda; color:var(--forest-deep); line-height:1; }
.history-row time span { font-size:.65rem; font-weight:900; letter-spacing:.08em; }
.history-row time strong { margin-top:.25rem; font-size:1.3rem; }
.record-chip { display:inline-block; margin-bottom:.35rem; padding:.2rem .5rem; font-size:.65rem; }
.note-card { display:flex; gap:1rem; padding:1.1rem; background:#fffaf0; border:1px solid rgba(214,165,78,.18); border-radius:16px; }
.note-pin { font-size:1.35rem; }
.note-card span { display:block; margin-top:.65rem; color:var(--muted); font-size:.72rem; font-weight:700; }
.dashboard-side { display:grid; gap:1rem; position:sticky; top:105px; }
.side-card { padding:1.35rem; }
.calendar-date { width:76px; height:82px; display:grid; place-content:center; margin:1rem 0; border-radius:17px; background:var(--forest); color:white; text-align:center; line-height:1; }
.calendar-date span { font-size:.7rem; font-weight:900; letter-spacing:.12em; }
.calendar-date strong { margin-top:.3rem; font-size:2rem; }
.next-up > p:not(.eyebrow) { margin:.4rem 0; color:var(--muted); font-size:.87rem; }
.side-muted { color:var(--muted); font-size:.72rem; font-weight:700; }
.quick-info { margin:1rem 0 0; }
.quick-info div { padding:.7rem 0; }
.quick-info div + div { border-top:1px solid rgba(37,79,67,.08); }
.quick-info dt { color:var(--muted); font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.quick-info dd { margin:.1rem 0 0; color:var(--ink); font-size:.86rem; font-weight:800; }
.emergency-card { display:flex; gap:.8rem; background:var(--forest-deep); color:white; }
.emergency-card > span { font-size:1.25rem; }
.emergency-card h2 { color:white; font-size:1.15rem; }
.emergency-card p { margin:.4rem 0 0; color:rgba(255,255,255,.72); font-size:.82rem; }
.demo-cta { padding:0 0 5rem; }
.demo-cta-card { display:flex; align-items:center; justify-content:space-between; gap:2rem; padding:2.2rem; border-radius:var(--radius-lg); background:var(--sage-light); }
.demo-cta-card p:last-child { margin:.5rem 0 0; max-width:680px; color:var(--muted); }

@media (max-width: 900px) {
  .demo-nav-links { display:none; }
  .pet-hero-layout { align-items:flex-start; flex-direction:column; gap:1.5rem; }
  .demo-note { max-width:none; }
  .dashboard-layout { grid-template-columns:1fr; }
  .dashboard-side { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .emergency-card { grid-column:1/-1; }
  .stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .demo-banner-inner { padding:.65rem 0; align-items:flex-start; text-align:left; }
  .demo-exit { display:inline-flex; padding:.6rem .8rem; font-size:.78rem; }
  .pet-hero { padding:2.2rem 0; }
  .pet-profile { align-items:flex-start; }
  .pet-photo { width:104px; height:104px; border-radius:22px; }
  .pet-profile h1 { font-size:2.6rem; }
  .pet-meta { font-size:.85rem; }
  .pet-tags span { font-size:.67rem; }
  .dashboard-section { padding:1.2rem; }
  .stat-grid,.dashboard-side { grid-template-columns:1fr; }
  .med-row { grid-template-columns:44px 1fr; }
  .med-schedule { grid-column:2; text-align:left; }
  .dashboard-heading { align-items:flex-start; }
  .text-link { max-width:120px; text-align:right; }
  .demo-cta-card { align-items:flex-start; flex-direction:column; }
  .demo-cta-card .button { width:100%; }
}

/* SAMPLE RECORDS PAGE */
.top-nav { min-height:84px; display:flex; align-items:center; justify-content:space-between; gap:2rem; }
.top-nav > .brand { font:700 1.55rem "Playfair Display",serif; color:var(--forest-deep); }
.primary-btn { background:var(--forest); color:white; padding:.7rem 1rem; border-radius:999px; font-weight:800; }
.records-page { padding:5rem 0; min-height:70vh; }
.records-page .section-heading h1 { margin:0; font:700 clamp(2.8rem,5vw,4.5rem)/1.1 "Playfair Display",serif; color:var(--forest-deep); }
.records-page .lead { color:var(--muted); }
.record-group { margin-top:3rem; }
.record-group h2 { color:var(--forest-deep); font-family:"Playfair Display",serif; }
.record-list { display:grid; gap:.8rem; }
.record-item { display:flex; justify-content:space-between; gap:2rem; padding:1.25rem; background:white; border:1px solid rgba(37,79,67,.08); border-radius:var(--radius-md); }
.record-item h3 { margin:.25rem 0; color:var(--forest-deep); }
.record-item p { margin:0; color:var(--muted); }
.record-item time { flex:0 0 auto; color:var(--muted); font-weight:800; }
.record-type { color:var(--forest); font-size:.72rem; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.footer-row { min-height:100px; display:flex; align-items:center; justify-content:space-between; gap:2rem; }
.footer-row nav { display:flex; gap:1rem; }
@media(max-width:600px){.top-nav .nav-links{display:none}.record-item{flex-direction:column;gap:.5rem}.footer-row{flex-direction:column;justify-content:center;align-items:flex-start}}

/* LAB HISTORY PAGE */
.stat-card-link { text-decoration:none; transition:transform .18s ease, box-shadow .18s ease; }
.stat-card-link:hover { transform:translateY(-2px); box-shadow:0 10px 28px rgba(27,67,55,.10); }
.labs-main { background:#fbfaf5; }
.labs-hero { padding:3.5rem 0 2.5rem; background:linear-gradient(180deg,#edf4e8 0%,#fbfaf5 100%); }
.labs-hero-layout { display:flex; align-items:center; justify-content:space-between; gap:3rem; }
.labs-hero h1 { max-width:720px; margin:.25rem 0 .8rem; color:var(--forest-deep); font:700 clamp(2.7rem,5vw,4.6rem)/1.03 "Playfair Display",serif; }
.labs-lead { max-width:720px; margin:0; color:var(--muted); font-size:1.05rem; line-height:1.7; }
.labs-pet-card { flex:0 0 auto; display:grid; grid-template-columns:64px auto; gap:.8rem 1rem; align-items:center; min-width:275px; padding:1rem; border:1px solid rgba(37,79,67,.1); border-radius:20px; background:rgba(255,255,255,.82); box-shadow:0 12px 35px rgba(27,67,55,.07); }
.labs-pet-card img { grid-row:1/3; width:64px; height:64px; object-fit:cover; border-radius:16px; }
.labs-pet-card strong,.labs-pet-card span { display:block; }
.labs-pet-card strong { color:var(--forest-deep); font-size:1.05rem; }
.labs-pet-card div span { color:var(--muted); font-size:.78rem; }
.labs-pet-card .status-pill { grid-column:2; width:max-content; }
.labs-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:1.4rem; padding-top:1.5rem; padding-bottom:1.5rem; }
.lab-panel,.lab-history-section { background:white; border:1px solid rgba(37,79,67,.09); border-radius:var(--radius-lg); box-shadow:0 10px 35px rgba(27,67,55,.05); }
.lab-panel { padding:1.5rem; }
.lab-panel-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:1rem; }
.lab-panel-heading h2,.lab-history-section h2 { margin:.1rem 0 0; color:var(--forest-deep); font-family:"Playfair Display",serif; }
.lab-select-label { display:flex; align-items:center; gap:.55rem; color:var(--muted); font-size:.78rem; font-weight:800; }
.lab-select { min-width:145px; padding:.65rem 2rem .65rem .8rem; border:1px solid rgba(37,79,67,.18); border-radius:10px; background:white; color:var(--forest-deep); font:800 .86rem Nunito,sans-serif; }
.lab-summary-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.75rem; margin:1.35rem 0; }
.lab-summary-card { padding:1rem; border-radius:14px; background:#f6f8f2; }
.lab-summary-card span,.lab-summary-card strong,.lab-summary-card small { display:block; }
.lab-summary-card span { color:var(--muted); font-size:.68rem; font-weight:900; text-transform:uppercase; letter-spacing:.07em; }
.lab-summary-card strong { margin:.3rem 0 .15rem; color:var(--forest-deep); font-size:1.18rem; }
.lab-summary-card small { color:var(--muted); font-size:.7rem; }
.chart-card { padding:1rem 1rem .7rem; border:1px solid rgba(37,79,67,.08); border-radius:16px; }
.chart-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.chart-title-row h3 { margin:0; color:var(--forest-deep); }
.chart-title-row p { margin:.15rem 0 0; color:var(--muted); font-size:.78rem; }
.chart-legend { display:flex; align-items:center; gap:.4rem; color:var(--muted); font-size:.68rem; font-weight:700; white-space:nowrap; }
.legend-dot { width:9px; height:9px; border-radius:50%; background:var(--forest); }
.legend-range { width:18px; height:8px; margin-left:.45rem; border-radius:3px; background:#e6eddc; }
.lab-chart-wrap { width:100%; overflow:hidden; }
.lab-chart { display:block; width:100%; min-width:560px; height:auto; }
.chart-grid { stroke:#e9eee8; stroke-width:1; }
.chart-reference { fill:#e6eddc; opacity:.85; }
.chart-line { fill:none; stroke:#28594b; stroke-width:4; stroke-linecap:round; stroke-linejoin:round; }
.chart-point { fill:#fff; stroke:#28594b; stroke-width:4; }
.chart-axis-label,.chart-date { fill:#78817c; font:600 11px Nunito,sans-serif; }
.chart-y-title { fill:#78817c; font:700 11px Nunito,sans-serif; text-anchor:middle; transform:rotate(-90deg); transform-origin:18px 165px; }
.chart-footnote { margin:.2rem 0 0; color:var(--muted); font-size:.68rem; }
.labs-side { display:grid; align-content:start; gap:1rem; }
.lab-explainer .side-icon { display:block; margin-bottom:.8rem; font-size:1.7rem; }
.lab-explainer p:last-child,.labs-side .side-card > p:last-child { color:var(--muted); font-size:.84rem; line-height:1.55; }
.lab-feature-list { margin:.8rem 0 0; padding-left:1.15rem; color:var(--muted); font-size:.82rem; line-height:1.8; }
.lab-record-link { display:flex; gap:.8rem; align-items:center; text-decoration:none; transition:transform .18s ease; }
.lab-record-link:hover { transform:translateY(-2px); }
.lab-record-link > span { font-size:1.4rem; }
.lab-record-link strong { color:var(--forest-deep); }
.lab-record-link p { margin:.15rem 0 0; color:var(--forest); font-size:.78rem; font-weight:800; }
.lab-history-section { margin-top:0; margin-bottom:4rem; padding:1.5rem; }
.lab-table-wrap { margin-top:1rem; overflow-x:auto; }
.lab-table { width:100%; border-collapse:collapse; min-width:760px; font-size:.82rem; }
.lab-table th { padding:.75rem; border-bottom:2px solid #e8ede8; color:var(--muted); text-align:left; font-size:.68rem; text-transform:uppercase; letter-spacing:.06em; }
.lab-table td { padding:.9rem .75rem; border-bottom:1px solid #eef1ed; color:var(--ink); }
.lab-table tbody tr:hover { background:#fafbf7; }
.result-high { display:inline-block; padding:.22rem .48rem; border-radius:7px; background:#fff0df; color:#98521e; font-weight:900; }
.lab-disclaimer { margin-top:1rem; padding:.8rem 1rem; border-radius:12px; background:#fffaf0; color:var(--muted); font-size:.75rem; }
.lab-promo { padding:1.5rem; border-radius:var(--radius-md); background:var(--sage-light); }
.lab-promo p { max-width:650px; color:var(--muted); }
.lab-promo .button { margin-top:.5rem; }
@media(max-width:900px){.labs-hero-layout{align-items:flex-start;flex-direction:column}.labs-pet-card{width:100%}.labs-layout{grid-template-columns:1fr}.labs-side{grid-template-columns:repeat(2,1fr)}.lab-record-link{grid-column:1/-1}}
@media(max-width:600px){.labs-hero{padding:2.5rem 0 1.8rem}.labs-hero h1{font-size:2.65rem}.lab-panel-heading{align-items:flex-start;flex-direction:column}.lab-select-label{width:100%;justify-content:space-between}.lab-select{flex:1}.lab-summary-grid{grid-template-columns:1fr}.chart-title-row{flex-direction:column}.lab-chart-wrap{overflow-x:auto}.labs-side{grid-template-columns:1fr}.lab-record-link{grid-column:auto}.lab-history-section{border-radius:18px}.lab-table th,.lab-table td{padding:.7rem .55rem}}

/* LOGIN PAGE */
.login-page { background:#f7f5ef; }
.login-main { min-height:calc(100vh - 184px); display:grid; place-items:center; padding:4.5rem 0 5.5rem; background:radial-gradient(circle at 18% 18%,rgba(194,211,176,.34),transparent 28%),radial-gradient(circle at 84% 74%,rgba(219,190,119,.18),transparent 24%),#f7f5ef; }
.login-shell { width:min(100%,1080px); display:grid; grid-template-columns:minmax(0,.9fr) minmax(380px,.72fr); gap:4rem; align-items:center; }
.login-intro h1 { max-width:620px; margin:.35rem 0 1rem; color:var(--forest-deep); font:700 clamp(3rem,5.4vw,5.3rem)/1.02 "Playfair Display",serif; }
.login-intro > p:last-of-type { max-width:560px; margin:0; color:var(--muted); font-size:1.05rem; line-height:1.7; }
.login-points { display:grid; gap:.75rem; margin-top:2rem; }
.login-point { display:flex; align-items:center; gap:.75rem; color:var(--forest-deep); font-weight:800; }
.login-point span { display:grid; place-items:center; width:36px; height:36px; flex:0 0 auto; border-radius:11px; background:var(--sage-light); }
.login-card { padding:2rem; border:1px solid rgba(37,79,67,.1); border-radius:var(--radius-lg); background:rgba(255,255,255,.94); box-shadow:0 18px 55px rgba(27,67,55,.1); }
.login-card-heading { margin-bottom:1.5rem; }
.login-card-heading h2 { margin:0; color:var(--forest-deep); font:700 2rem "Playfair Display",serif; }
.login-card-heading p { margin:.45rem 0 0; color:var(--muted); font-size:.88rem; }
.login-form { display:grid; gap:1rem; }
.form-field { display:grid; gap:.42rem; }
.form-field label { color:var(--forest-deep); font-size:.78rem; font-weight:900; }
.form-input { width:100%; min-height:48px; padding:.75rem .9rem; border:1px solid rgba(37,79,67,.18); border-radius:12px; background:#fff; color:var(--ink); font:700 .9rem Nunito,sans-serif; outline:none; transition:border-color .18s ease,box-shadow .18s ease; }
.form-input:focus { border-color:var(--forest); box-shadow:0 0 0 3px rgba(37,79,67,.1); }
.password-wrap { position:relative; }
.password-wrap .form-input { padding-right:4.7rem; }
.password-toggle { position:absolute; top:50%; right:.75rem; transform:translateY(-50%); padding:.3rem .4rem; border:0; background:transparent; color:var(--forest); font:900 .72rem Nunito,sans-serif; cursor:pointer; }
.form-helper-row { display:flex; justify-content:flex-end; margin-top:-.2rem; }
.login-link { color:var(--forest); font-size:.78rem; font-weight:900; text-decoration:none; }
.login-link:hover { text-decoration:underline; }
.login-submit { width:100%; border:0; cursor:pointer; font:800 .9rem Nunito,sans-serif; }
.prototype-message { display:none; margin:0; padding:.85rem 1rem; border-radius:12px; background:var(--sage-light); color:var(--forest-deep); font-size:.8rem; font-weight:700; line-height:1.5; }
.prototype-message.show { display:block; }
.login-divider { display:flex; align-items:center; gap:.8rem; margin:1.4rem 0; color:var(--muted); font-size:.72rem; font-weight:800; }
.login-divider::before,.login-divider::after { content:""; height:1px; flex:1; background:rgba(37,79,67,.12); }
.login-secondary-actions { display:grid; gap:.75rem; text-align:center; }
.create-account-btn { display:flex; justify-content:center; width:100%; }
.demo-login-link { display:inline-flex; justify-content:center; gap:.35rem; color:var(--forest); font-size:.8rem; font-weight:900; text-decoration:none; }
.demo-login-link:hover { text-decoration:underline; }
.login-security-note { display:flex; gap:.65rem; margin-top:1.4rem; padding-top:1.2rem; border-top:1px solid rgba(37,79,67,.09); color:var(--muted); font-size:.72rem; line-height:1.5; }
.login-security-note > span:first-child {
  flex: 0 0 auto;
}

.login-security-note > span:last-child {
  flex: 1 1 auto;
  min-width: 0;
}
.login-footer { background:var(--forest-deep); color:rgba(255,255,255,.76); }
.login-footer .footer-brand span { color:white; }
.login-footer .footer-brand img { width:44px; height:44px; object-fit:contain; }
@media(max-width:800px){.login-main{padding:3rem 0 4rem}.login-shell{grid-template-columns:1fr;gap:2.2rem}.login-intro{text-align:center}.login-intro>p:last-of-type{margin-inline:auto}.login-points{width:max-content;max-width:100%;margin:1.5rem auto 0;text-align:left}.login-card{max-width:520px;width:100%;margin-inline:auto}}
@media(max-width:600px){.login-main{place-items:start center}.login-intro h1{font-size:2.8rem}.login-card{padding:1.4rem;border-radius:20px}.login-points{width:100%}.login-page .nav-button{display:none}}

/* SIGNUP PAGE */
.signup-page { background:#f7f5ef; }
.signup-main { min-height:calc(100vh - 184px); padding:4rem 0 5rem; background:radial-gradient(circle at 12% 18%,rgba(194,211,176,.34),transparent 28%),radial-gradient(circle at 88% 72%,rgba(219,190,119,.16),transparent 25%),#f7f5ef; }
.signup-shell { width:min(100%,1120px); display:grid; grid-template-columns:minmax(0,.68fr) minmax(520px,1fr); gap:3.8rem; align-items:start; }
.signup-intro { position:sticky; top:130px; padding-top:2.4rem; }
.signup-intro h1 { max-width:520px; margin:.35rem 0 1rem; color:var(--forest-deep); font:700 clamp(2.9rem,5vw,4.9rem)/1.02 "Playfair Display",serif; }
.signup-intro > p:last-of-type { max-width:500px; margin:0; color:var(--muted); font-size:1.02rem; line-height:1.7; }
.signup-promise { display:flex; gap:.9rem; align-items:flex-start; max-width:480px; margin-top:2rem; padding:1rem 1.1rem; border-radius:16px; background:rgba(255,255,255,.62); border:1px solid rgba(37,79,67,.08); }
.signup-promise > span { display:grid; place-items:center; width:40px; height:40px; flex:0 0 auto; border-radius:12px; background:var(--sage-light); }
.signup-promise p { margin:0; color:var(--muted); font-size:.84rem; line-height:1.55; }
.signup-promise strong { color:var(--forest-deep); }
.signup-card { padding:2rem; border:1px solid rgba(37,79,67,.1); border-radius:var(--radius-lg); background:rgba(255,255,255,.96); box-shadow:0 18px 55px rgba(27,67,55,.1); scroll-margin-top:105px; }
.signup-progress { display:grid; grid-template-columns:auto 1fr auto 1fr auto 1fr auto; align-items:start; margin-bottom:2rem; padding-bottom:1.5rem; border-bottom:1px solid rgba(37,79,67,.09); }
.progress-step { display:grid; justify-items:center; gap:.35rem; color:#8b9691; }
.progress-step span { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#eef1ed; color:#78827e; font-size:.76rem; font-weight:900; transition:.2s ease; }
.progress-step small { font-size:.62rem; font-weight:900; }
.progress-step.active span { background:var(--forest); color:white; box-shadow:0 5px 14px rgba(37,79,67,.2); }
.progress-step.active small,.progress-step.complete small { color:var(--forest); }
.progress-step.complete span { background:var(--sage-light); color:var(--forest); }
.progress-line { height:2px; margin:15px .45rem 0; background:#e4e9e4; }
.signup-step { display:grid; gap:1rem; }
.signup-step[hidden] { display:none; }
.signup-card-heading { margin-bottom:.4rem; }
.signup-card-heading h2 { margin:.1rem 0 0; color:var(--forest-deep); font:700 2rem "Playfair Display",serif; }
.signup-card-heading > p:last-child,.clinic-heading-row > div > p:last-child { margin:.45rem 0 0; color:var(--muted); font-size:.86rem; line-height:1.55; }
.step-kicker { margin:0; color:var(--forest); font-size:.7rem; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.form-field label span { color:var(--muted); font-weight:700; }
.form-hint { margin:.35rem 0 0; color:var(--muted); font-size:.7rem; }
.form-grid-two { display:grid; grid-template-columns:1fr 1fr; gap:.9rem; }
.field-error { min-height:1em; margin:0; color:#9b3d2f; font-size:.74rem; font-weight:800; }
.step-actions { display:flex; justify-content:space-between; gap:.8rem; margin-top:.75rem; padding-top:1rem; border-top:1px solid rgba(37,79,67,.08); }
.step-actions-end { justify-content:flex-end; }
.step-actions .button { border:0; cursor:pointer; font:800 .88rem Nunito,sans-serif; }
.signin-note { margin:.25rem 0 0; text-align:center; color:var(--muted); font-size:.76rem; }
.signin-note a { color:var(--forest); font-weight:900; }
.pet-photo-row { display:flex; align-items:center; gap:1rem; margin:.25rem 0 .4rem; padding:1rem; border-radius:16px; background:#f8faf6; }
.pet-photo-preview { display:grid; place-items:center; width:78px; height:78px; flex:0 0 78px; overflow:hidden; border-radius:50%; background:var(--sage-light); font-size:1.7rem; }
.pet-photo-preview img { width:100%; height:100%; object-fit:cover; }
.photo-button { min-height:40px; padding:.55rem .9rem; cursor:pointer; font-size:.78rem; }
.visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.input-with-unit { position:relative; }
.input-with-unit .form-input { padding-right:3.1rem; }
.input-with-unit span { position:absolute; right:.9rem; top:50%; transform:translateY(-50%); color:var(--muted); font-size:.75rem; font-weight:900; }
.clinic-heading-row { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; }
.clinic-count { flex:0 0 auto; padding:.35rem .6rem; border-radius:999px; background:var(--sage-light); color:var(--forest); font-size:.68rem; font-weight:900; }
#clinics-container { display:grid; gap:1rem; }
.clinic-form { display:grid; gap:.85rem; margin:0; padding:1rem; border:1px solid rgba(37,79,67,.12); border-radius:16px; background:#fbfcf9; }
.clinic-form legend { padding:0 .35rem; color:var(--forest-deep); font-size:.82rem; font-weight:900; }
.clinic-legend-row { display:flex; justify-content:space-between; align-items:center; }
.clinic-legend-row legend { float:left; }
.remove-clinic { border:0; background:transparent; color:#9b3d2f; font:800 .7rem Nunito,sans-serif; cursor:pointer; }
.add-clinic-button { display:flex; align-items:center; justify-content:center; gap:.45rem; width:100%; min-height:44px; border:1px dashed rgba(37,79,67,.3); border-radius:13px; background:var(--sage-light); color:var(--forest); font:900 .8rem Nunito,sans-serif; cursor:pointer; }
.add-clinic-button:hover { background:#d6e5d7; }
.add-clinic-button span { font-size:1.05rem; }
.clinic-limit { margin:0; text-align:center; color:var(--muted); font-size:.72rem; font-weight:800; }
.records-choice-step { justify-items:center; text-align:center; padding:.7rem 0 0; }
.records-choice-icon { display:grid; place-items:center; width:70px; height:70px; border-radius:22px; background:var(--sage-light); font-size:1.8rem; }
.records-choice-heading { max-width:500px; }
.records-choice-heading h2 { margin-top:.25rem; }
.record-choice-grid { display:grid; grid-template-columns:1fr 1fr; gap:.9rem; width:100%; margin-top:.4rem; text-align:left; }
.record-choice-card { display:grid; gap:.3rem; min-height:145px; align-content:center; padding:1.15rem; border:1px solid rgba(37,79,67,.13); border-radius:17px; background:#fafbf8; transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.record-choice-card:hover { transform:translateY(-2px); border-color:rgba(37,79,67,.3); box-shadow:0 10px 25px rgba(27,67,55,.08); }
.record-choice-primary { background:var(--forest); color:white; }
.record-choice-primary:hover { border-color:var(--forest-deep); }
.choice-icon { display:grid; place-items:center; width:34px; height:34px; margin-bottom:.3rem; border-radius:10px; background:rgba(159,190,164,.24); font-weight:900; }
.record-choice-primary .choice-icon { background:rgba(255,255,255,.15); }
.record-choice-card strong { font-size:.9rem; }
.record-choice-card small { color:var(--muted); font-size:.7rem; line-height:1.4; }
.record-choice-primary small { color:rgba(255,255,255,.72); }
.back-link { margin-top:.35rem; border:0; background:transparent; color:var(--forest); font:900 .74rem Nunito,sans-serif; cursor:pointer; }
.prototype-note { margin:.4rem 0 0; padding-top:1rem; border-top:1px solid rgba(37,79,67,.08); color:var(--muted); font-size:.68rem; line-height:1.5; }
@media(max-width:900px){.signup-main{padding:3rem 0 4rem}.signup-shell{grid-template-columns:1fr;gap:2rem}.signup-intro{position:static;padding-top:0;text-align:center}.signup-intro>p:last-of-type{margin-inline:auto}.signup-promise{margin:1.5rem auto 0;text-align:left}.signup-card{max-width:620px;width:100%;margin-inline:auto}}
@media(max-width:600px){.signup-page .nav-button{display:none}.signup-main{padding:2.2rem 0 3rem}.signup-intro h1{font-size:2.75rem}.signup-card{padding:1.25rem;border-radius:20px}.signup-progress{margin-bottom:1.5rem}.progress-step small{font-size:.56rem}.progress-line{margin-inline:.2rem}.form-grid-two,.record-choice-grid{grid-template-columns:1fr}.step-actions .button{flex:1}.clinic-heading-row{display:block}.clinic-count{display:inline-block;margin-top:.7rem}.pet-photo-row{align-items:flex-start}}

/* Patient dashboard empty states */
.dashboard-photo-placeholder { display:grid; place-items:center; background:var(--sage-light); font-size:2rem; }
.dashboard-photo-placeholder span { transform:translateY(1px); }
.dashboard-photo-placeholder img,.dashboard-photo img { width:100%; height:100%; object-fit:cover; }
.dashboard-welcome { max-width:420px; }
.dashboard-empty { display:flex; align-items:center; gap:1rem; min-height:108px; padding:1.15rem; border:1px dashed rgba(37,79,67,.18); border-radius:16px; background:#f8fbf7; }
.dashboard-empty > span { display:grid; place-items:center; width:46px; height:46px; flex:0 0 46px; border-radius:14px; background:var(--sage-light); font-size:1.25rem; }
.dashboard-empty h3 { margin:0; color:var(--forest-deep); font-size:1rem; }
.dashboard-empty p { margin:.2rem 0 0; color:var(--muted); font-size:.84rem; line-height:1.5; }
.dashboard-empty .text-link { display:inline-block; margin-top:.55rem; }
.text-button { padding:0; border:0; background:none; color:var(--forest); font:800 .8rem "Nunito",sans-serif; cursor:pointer; }
.text-button:hover { text-decoration:underline; }
.empty-calendar { opacity:.7; }
.additional-clinics { margin-top:.8rem; padding-top:.8rem; border-top:1px solid rgba(37,79,67,.08); }
.additional-clinics p { margin:0; color:var(--forest); font-size:.78rem; font-weight:800; }
.dashboard-cta { padding-top:0; }
@media(max-width:600px){.dashboard-empty{align-items:flex-start}.dashboard-welcome{max-width:none}.dashboard-page .demo-nav-links{display:none}}

/* Add record workspace */
.record-entry-main{padding:4.5rem 0 5.5rem;background:linear-gradient(180deg,#f7faf5 0%,#fff 42%)}
.record-entry-shell{max-width:1040px}.record-entry-heading{max-width:680px;margin-bottom:2rem}.record-entry-heading h1{margin:.25rem 0 .65rem;color:var(--forest-deep);font-family:"Playfair Display",serif;font-size:clamp(2.5rem,5vw,4rem)}
.record-pet-note{display:inline-flex;margin:.6rem 0 0;padding:.45rem .75rem;border-radius:999px;background:var(--sage-light);color:var(--forest);font-size:.75rem;font-weight:900}
.record-picker,.record-form-card{padding:1.5rem;border:1px solid rgba(37,79,67,.1);border-radius:22px;background:white;box-shadow:0 18px 45px rgba(27,67,55,.07)}
.record-picker h2{margin:0 0 1rem;color:var(--forest-deep);font-size:1.25rem}.record-type-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem}.record-type-card{display:grid;gap:.35rem;min-height:145px;align-content:start;padding:1rem;text-align:left;border:1px solid rgba(37,79,67,.13);border-radius:16px;background:#fbfcf9;color:var(--forest-deep);cursor:pointer;transition:.18s ease;font-family:Nunito,sans-serif}.record-type-card:hover,.record-type-card.selected{transform:translateY(-2px);border-color:rgba(37,79,67,.35);box-shadow:0 10px 24px rgba(27,67,55,.08);background:var(--sage-light)}.record-type-card>span{font-size:1.35rem}.record-type-card strong{font-size:.88rem}.record-type-card small{color:var(--muted);font-size:.68rem;line-height:1.4}.picker-collapsed{padding:1rem}.picker-collapsed h2{font-size:.8rem;margin-bottom:.65rem}.picker-collapsed .record-type-grid{display:flex;gap:.45rem;overflow:auto}.picker-collapsed .record-type-card{display:none;min-height:0}.picker-collapsed .record-type-card.selected{display:flex;align-items:center;gap:.55rem;width:auto;padding:.65rem .8rem;transform:none}.picker-collapsed .record-type-card.selected small{display:none}.picker-collapsed .record-type-card.selected>span{font-size:1rem}
.record-form-card{margin-top:1rem}.record-form-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.25rem}.record-form-heading h2{margin:.15rem 0 0;color:var(--forest-deep);font-size:1.45rem}.change-record-type{border:0;background:transparent;color:var(--forest);font:900 .75rem Nunito,sans-serif;cursor:pointer}.common-record-fields{margin-bottom:1.2rem}.simple-record-fields{display:grid;gap:1rem;margin:1rem 0}.record-notes{margin-top:1rem}.form-field textarea.form-input{resize:vertical;min-height:96px}.form-field em{color:var(--muted);font-size:.68rem;font-style:normal;font-weight:700}.form-field b{color:#9b3d2f}
.lab-entry-intro{margin:1rem 0 .8rem}.lab-entry-intro h3{margin:0;color:var(--forest-deep);font-size:1rem}.lab-entry-intro p{margin:.25rem 0 0;color:var(--muted);font-size:.76rem;line-height:1.5}.lab-entry-labels,.lab-entry-row{display:grid;grid-template-columns:1.25fr .75fr .8fr 1fr;gap:.55rem}.lab-entry-labels{padding:0 .15rem .35rem;color:var(--muted);font-size:.65rem;font-weight:900}.lab-entry-row{margin-bottom:.55rem}.lab-entry-row label>span{display:none}.lab-entry-row .form-input{min-width:0}.add-lab-rows{width:100%;margin-top:.4rem;padding:.7rem;border:1px dashed rgba(37,79,67,.28);border-radius:12px;background:#f8fbf7;color:var(--forest);font:900 .75rem Nunito,sans-serif;cursor:pointer}.record-form-actions{display:flex;justify-content:flex-end;gap:.7rem;margin-top:1.35rem}.record-form-actions .button{border:0;cursor:pointer;font:800 .82rem Nunito,sans-serif}
@media(max-width:850px){.record-type-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.record-entry-main{padding:2.5rem 0 4rem}.record-type-grid{grid-template-columns:1fr}.record-picker,.record-form-card{padding:1rem}.lab-entry-labels{display:none}.lab-entry-row{grid-template-columns:1fr 1fr;padding:.8rem;border:1px solid rgba(37,79,67,.1);border-radius:13px}.lab-entry-row label>span{display:block;margin-bottom:.25rem;color:var(--muted);font-size:.62rem;font-weight:900}.record-form-actions .button{flex:1}.record-entry-page .nav-links{display:none}}

/* Records history */
.history-main{padding:4.5rem 0 5.5rem;background:linear-gradient(180deg,#f7faf5 0%,#fff 38%)}
.history-shell{max-width:1040px}.history-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:2rem;margin-bottom:1.6rem}.history-hero>div{max-width:680px}.history-hero h1{margin:.25rem 0 .65rem;color:var(--forest-deep);font-family:"Playfair Display",serif;font-size:clamp(2.5rem,5vw,4rem)}.history-add{flex:0 0 auto;text-decoration:none}
.history-toolbar{margin-bottom:2rem}.history-filters{display:flex;gap:.55rem;overflow-x:auto;padding:.2rem .1rem .55rem;scrollbar-width:thin}.history-filter{display:flex;align-items:center;gap:.4rem;white-space:nowrap;padding:.62rem .82rem;border:1px solid rgba(37,79,67,.13);border-radius:999px;background:white;color:var(--forest);font:900 .72rem Nunito,sans-serif;cursor:pointer}.history-filter span{display:grid;place-items:center;min-width:20px;height:20px;padding:0 .3rem;border-radius:999px;background:var(--sage-light);font-size:.62rem}.history-filter:hover,.history-filter.active{border-color:var(--forest);background:var(--forest);color:white}.history-filter.active span,.history-filter:hover span{background:rgba(255,255,255,.17);color:white}
.history-year{margin-bottom:2.25rem}.history-year-heading{display:flex;align-items:center;gap:.8rem;margin-bottom:.75rem}.history-year-heading h2{margin:0;color:var(--forest-deep);font-family:"Playfair Display",serif;font-size:1.65rem}.history-year-heading span{padding:.28rem .55rem;border-radius:999px;background:var(--sage-light);color:var(--forest);font-size:.64rem;font-weight:900}.history-year-list{display:grid;gap:.7rem}.history-card{overflow:hidden;border:1px solid rgba(37,79,67,.11);border-radius:17px;background:white;box-shadow:0 8px 25px rgba(27,67,55,.045)}.history-card-summary{display:grid;grid-template-columns:46px 1fr auto;gap:.9rem;align-items:center;width:100%;padding:1rem 1.15rem;border:0;background:transparent;text-align:left;cursor:pointer;font-family:Nunito,sans-serif}.history-card-summary:hover{background:#f9fbf8}.history-type-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:var(--sage-light);font-size:1.2rem}.history-card-copy{display:grid;gap:.1rem;min-width:0}.history-date{color:var(--muted);font-size:.65rem;font-weight:900;text-transform:uppercase;letter-spacing:.035em}.history-card-copy strong{color:var(--forest-deep);font-size:.94rem}.history-card-copy small{overflow:hidden;color:var(--muted);font-size:.75rem;text-overflow:ellipsis;white-space:nowrap}.history-provider{margin-top:.2rem;color:var(--forest);font-size:.67rem;font-weight:800}.history-chevron{color:var(--forest);font-size:1.2rem;transition:transform .18s ease}.history-card-summary[aria-expanded="true"] .history-chevron{transform:rotate(180deg)}.history-card-detail{padding:0 1.15rem 1.15rem 5.95rem;border-top:1px solid rgba(37,79,67,.07);background:#fcfdfb}.history-details{display:grid;gap:.75rem;margin:1rem 0 0}.history-details>div{display:grid;grid-template-columns:minmax(110px,.35fr) 1fr;gap:1rem}.history-details dt{color:var(--muted);font-size:.68rem;font-weight:900}.history-details dd{margin:0;color:var(--ink);font-size:.8rem;line-height:1.5}.history-notes{margin-top:1rem;padding:1rem;border-radius:13px;background:var(--sage-light)}.history-notes strong{color:var(--forest-deep);font-size:.72rem}.history-notes p,.history-no-details{margin:.25rem 0 0;color:var(--muted);font-size:.78rem;line-height:1.55}.history-lab-table{margin-top:1rem;border:1px solid rgba(37,79,67,.09);border-radius:12px;overflow:hidden}.history-lab-head,.history-lab-row{display:grid;grid-template-columns:1.2fr .75fr .75fr 1fr;gap:.5rem;padding:.65rem .75rem}.history-lab-head{background:var(--sage-light);color:var(--forest);font-size:.62rem;font-weight:900}.history-lab-row{border-top:1px solid rgba(37,79,67,.07);color:var(--muted);font-size:.72rem}.history-lab-row strong{color:var(--forest-deep)}
.history-empty{display:grid;justify-items:center;max-width:680px;margin:3rem auto;padding:3rem 2rem;text-align:center;border:1px dashed rgba(37,79,67,.22);border-radius:22px;background:#f9fbf8}.history-empty>span{display:grid;place-items:center;width:64px;height:64px;margin-bottom:.7rem;border-radius:20px;background:var(--sage-light);font-size:1.6rem}.history-empty h2{margin:.25rem 0;color:var(--forest-deep);font-family:"Playfair Display",serif;font-size:1.65rem}.history-empty p{max-width:500px;margin:.35rem 0 1.2rem;color:var(--muted);line-height:1.6}.history-empty-small{margin-top:1rem;padding:2.2rem}.history-empty-small p{margin-bottom:0}
@media(max-width:650px){.history-main{padding:2.5rem 0 4rem}.history-hero{display:block}.history-add{display:inline-flex;margin-top:1rem}.history-card-summary{grid-template-columns:42px 1fr auto;padding:.9rem}.history-type-icon{width:42px;height:42px}.history-card-detail{padding:0 .9rem .9rem}.history-details>div{grid-template-columns:1fr;gap:.15rem}.history-lab-head{display:none}.history-lab-row{grid-template-columns:1fr 1fr}.history-lab-row span:last-child{grid-column:1/-1}.history-page .nav-links{display:none}}


/* Medicine cabinet */
.medicine-main{padding:4.5rem 0 5.5rem;background:linear-gradient(180deg,#f7faf5 0%,#fff 38%)}.medicine-shell{max-width:1040px}.medicine-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:2rem;margin-bottom:1.5rem}.medicine-hero>div{max-width:680px}.medicine-hero h1{margin:.25rem 0 .65rem;color:var(--forest-deep);font-family:"Playfair Display",serif;font-size:clamp(2.5rem,5vw,4rem)}.medicine-add{flex:0 0 auto;border:0;cursor:pointer}.medicine-form-card{margin-bottom:2rem;padding:1.5rem;border:1px solid rgba(37,79,67,.1);border-radius:22px;background:white;box-shadow:0 18px 45px rgba(27,67,55,.07)}.medicine-notes{display:block;margin-top:1rem}.medicine-section{margin-top:2rem}.medicine-section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:.8rem}.medicine-section-heading h2{margin:.15rem 0 0;color:var(--forest-deep);font-family:"Playfair Display",serif;font-size:1.7rem}.medicine-count{display:grid;place-items:center;min-width:30px;height:30px;padding:0 .55rem;border-radius:999px;background:var(--sage-light);color:var(--forest);font-size:.72rem;font-weight:900}.medicine-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.medicine-card{padding:1.2rem;border:1px solid rgba(37,79,67,.11);border-radius:18px;background:white;box-shadow:0 8px 25px rgba(27,67,55,.045)}.medicine-card-top{display:grid;grid-template-columns:44px 1fr auto;gap:.75rem;align-items:center}.medicine-pill-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--sage-light);font-size:1.15rem}.medicine-card h3{margin:.05rem 0 0;color:var(--forest-deep);font-size:1.05rem}.medicine-status{color:var(--forest);font-size:.58rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.medicine-status.past{color:var(--muted)}.medicine-menu{border:0;background:none;color:var(--forest);font:900 .7rem Nunito,sans-serif;cursor:pointer}.medicine-primary{display:flex;align-items:baseline;gap:.45rem;margin:1rem 0 .75rem;padding:.75rem .85rem;border-radius:12px;background:#f8fbf7}.medicine-primary strong{color:var(--forest-deep);font-size:.92rem}.medicine-primary span{color:var(--muted);font-size:.72rem}.medicine-details{display:grid;gap:.45rem;margin:0}.medicine-details div{display:grid;grid-template-columns:92px 1fr;gap:.5rem}.medicine-details dt{color:var(--muted);font-size:.65rem;font-weight:900}.medicine-details dd{margin:0;color:var(--ink);font-size:.74rem}.medicine-card-notes{margin:.8rem 0 0;padding-top:.75rem;border-top:1px solid rgba(37,79,67,.07);color:var(--muted);font-size:.72rem;line-height:1.5}.medicine-card-actions{margin-top:.85rem;text-align:right}.medicine-card-actions button{border:0;background:none;color:var(--forest);font:900 .68rem Nunito,sans-serif;cursor:pointer}.medicine-empty{grid-column:1/-1;display:flex;align-items:center;gap:1rem;padding:1.25rem;border:1px dashed rgba(37,79,67,.2);border-radius:17px;background:#f9fbf8}.medicine-empty>span{display:grid;place-items:center;width:48px;height:48px;flex:0 0 auto;border-radius:15px;background:var(--sage-light);font-size:1.2rem}.medicine-empty h3{margin:0;color:var(--forest-deep);font-size:.9rem}.medicine-empty p{margin:.2rem 0 0;color:var(--muted);font-size:.75rem}.past-medicine-section{border:1px solid rgba(37,79,67,.1);border-radius:18px;background:white;overflow:hidden}.past-medicine-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;padding:1rem 1.2rem;border:0;background:white;text-align:left;cursor:pointer}.past-medicine-toggle>span:first-child{display:grid}.past-medicine-toggle strong{color:var(--forest-deep);font:800 1rem Nunito,sans-serif}.past-medicine-toggle>span:last-child{display:flex;align-items:center;gap:.55rem;color:var(--forest);font-size:.72rem}.past-medicine-toggle b{display:grid;place-items:center;min-width:25px;height:25px;border-radius:999px;background:var(--sage-light)}.past-medicine-toggle i{font-style:normal;font-size:1rem;transition:.18s}.past-medicine-toggle[aria-expanded="true"] i{transform:rotate(180deg)}#past-panel{padding:0 1rem 1rem}.past-medicine-section .medicine-card{box-shadow:none;background:#fcfdfb}
@media(max-width:700px){.medicine-main{padding:2.5rem 0 4rem}.medicine-hero{display:block}.medicine-add{margin-top:1rem}.medicine-grid{grid-template-columns:1fr}.medicine-page .nav-links{display:none}.medicine-form-card{padding:1rem}.medicine-details div{grid-template-columns:82px 1fr}}
.dashboard-med-list{display:grid;gap:.55rem}.dashboard-med-row{display:flex;align-items:center;gap:.75rem;padding:.8rem .9rem;border:1px solid rgba(37,79,67,.09);border-radius:13px;background:#fbfcf9;text-decoration:none}.dashboard-med-row>span{font-size:1rem}.dashboard-med-row>div{display:grid;gap:.05rem}.dashboard-med-row strong{color:var(--forest-deep);font-size:.82rem}.dashboard-med-row small{color:var(--muted);font-size:.7rem}.dashboard-med-row:hover{background:var(--sage-light)}


/* Conditions */
.conditions-main{padding:4.5rem 0 5.5rem;background:linear-gradient(180deg,#f7faf5 0%,#fff 38%)}.conditions-shell{max-width:1040px}.conditions-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:2rem;margin-bottom:1.5rem}.conditions-hero>div{max-width:680px}.conditions-hero h1{margin:.25rem 0 .65rem;color:var(--forest-deep);font-family:"Playfair Display",serif;font-size:clamp(2.5rem,5vw,4rem)}.conditions-add{flex:0 0 auto;border:0;cursor:pointer}.conditions-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem;margin:1.5rem 0 2.25rem}.condition-summary-card{display:grid;gap:.1rem;padding:1rem;border:1px solid rgba(37,79,67,.11);border-radius:16px;background:white;text-align:left;cursor:pointer;font-family:Nunito,sans-serif}.condition-summary-card:hover,.condition-summary-card.active{border-color:var(--forest);background:#f4f8f1}.condition-summary-card span{color:var(--forest);font-size:.66rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.condition-summary-card strong{color:var(--forest-deep);font:800 1.65rem Nunito,sans-serif}.condition-summary-card small{color:var(--muted);font-size:.68rem}.conditions-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.condition-card{padding:1.2rem;border:1px solid rgba(37,79,67,.11);border-radius:18px;background:white;box-shadow:0 8px 25px rgba(27,67,55,.045)}.condition-card-top{display:grid;grid-template-columns:44px 1fr auto;gap:.75rem;align-items:center}.condition-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--sage-light);color:var(--forest);font-size:1.1rem;font-weight:900}.condition-card h3{margin:.05rem 0 0;color:var(--forest-deep);font-size:1.05rem}.condition-status{font-size:.58rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.condition-status.active{color:#8a4f24}.condition-status.monitoring{color:#5e6f2f}.condition-status.resolved{color:var(--muted)}.condition-details{margin-top:1rem}.condition-card-actions{display:flex;justify-content:flex-end;gap:.85rem;margin-top:.9rem;padding-top:.75rem;border-top:1px solid rgba(37,79,67,.07)}.condition-card-actions button{border:0;background:none;color:var(--forest);font:900 .66rem Nunito,sans-serif;cursor:pointer}.condition-empty{grid-column:1/-1;display:flex;align-items:center;gap:1rem;padding:1.4rem;border:1px dashed rgba(37,79,67,.2);border-radius:17px;background:#f9fbf8}.condition-empty>span{display:grid;place-items:center;width:48px;height:48px;flex:0 0 auto;border-radius:15px;background:var(--sage-light);font-size:1.2rem}.condition-empty h3{margin:0;color:var(--forest-deep);font-size:.9rem}.condition-empty p{margin:.2rem 0 0;color:var(--muted);font-size:.75rem}
@media(max-width:760px){.conditions-main{padding:2.5rem 0 4rem}.conditions-hero{display:block}.conditions-add{margin-top:1rem}.conditions-summary{grid-template-columns:repeat(2,1fr)}.conditions-list{grid-template-columns:1fr}.conditions-page .nav-links{display:none}}@media(max-width:420px){.conditions-summary{grid-template-columns:1fr 1fr}.condition-summary-card{padding:.8rem}.condition-card-actions{flex-wrap:wrap}}


/* Profile & clinic management */
.settings-shell{
  padding:3rem 0 4rem;
}

.settings-hero{
  display:flex;
  justify-content:space-between;
  gap:1.5rem;
  align-items:flex-end;
  margin-bottom:1.75rem;
}

.settings-hero h1{
  margin:.25rem 0 .4rem;
}

.settings-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:1.5rem;
  align-items:start;
}

.settings-card{
  background:#fff;
  border:1px solid var(--border,#dde5df);
  border-radius:24px;
  padding:1.5rem;
  box-shadow:0 12px 32px rgba(38,68,53,.06);
}

.settings-card-head{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:flex-start;
  margin-bottom:1.25rem;
}

.settings-card h2{
  margin:0 0 .3rem;
}

.settings-card p{
  margin-top:0;
}

.profile-photo-editor{
  display:flex;
  align-items:center;
  gap:1rem;
  margin-bottom:1.25rem;
}

.profile-photo-preview{
  width:92px;
  height:92px;
  border-radius:50%;
  overflow:hidden;
  background:#eef4ef;
  display:grid;
  place-items:center;
  font-size:2rem;
  border:1px solid #dce6df;
  flex:0 0 auto;
}

.profile-photo-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.settings-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
}

.settings-field{
  display:flex;
  flex-direction:column;
  gap:.4rem;
}

.settings-field.full{
  grid-column:1/-1;
}

.settings-field label{
  font-weight:700;
}

.settings-field small{
  color:var(--muted,#66736b);
}

.settings-input,
.settings-select,
.settings-textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid #cfd9d2;
  border-radius:12px;
  padding:.78rem .85rem;
  font:inherit;
  background:#fff;
  color:inherit;
}

.settings-textarea{
  min-height:92px;
  resize:vertical;
}

.settings-actions{
  display:flex;
  gap:.75rem;
  align-items:center;
  margin-top:1.25rem;
  flex-wrap:wrap;
}

.save-note{
  font-size:.92rem;
  color:#39704e;
  font-weight:700;
  min-height:1.2em;
}

.clinic-list{
  display:grid;
  gap:1rem;
}

.clinic-card{
  border:1px solid #dce5df;
  border-radius:18px;
  padding:1rem;
  background:#fbfdfb;
}

.clinic-card-top{
  display:flex;
  justify-content:space-between;
  gap:.75rem;
  align-items:flex-start;
}

.clinic-card h3{
  margin:0;
}

.clinic-meta{
  color:var(--muted,#66736b);
  font-size:.94rem;
  margin:.3rem 0 0;
}

.primary-pill{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  background:#e7f4e9;
  color:#28633e;
  font-weight:800;
  font-size:.76rem;
  padding:.3rem .55rem;
}

.clinic-actions{
  display:flex;
  gap:.5rem;
  margin-top:.85rem;
  flex-wrap:wrap;
}

.mini-button{
  border:1px solid #cfd9d2;
  background:#fff;
  border-radius:999px;
  padding:.5rem .75rem;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}

.mini-button.danger{
  color:#8a3434;
}

.clinic-editor{
  margin-top:1rem;
  padding-top:1rem;
  border-top:1px solid #e4ebe6;
}

.clinic-empty{
  padding:1.2rem;
  border:1px dashed #cbd8cf;
  border-radius:16px;
  text-align:center;
  color:var(--muted,#66736b);
}


/* ---------- Authenticated patient navigation ---------- */
/* Keep the full patient menu consistent without allowing it to collide with the brand. */
.patient-header .patient-navbar {
  min-height: 0;
  padding-top: .85rem;
  padding-bottom: .75rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "brand spacer logout"
    "nav nav nav";
  align-items: center;
  gap: .7rem 1.5rem;
}

.patient-header .brand {
  grid-area: brand;
  flex: none;
  max-width: none;
}

.patient-header .brand-logo {
  width: 58px;
  height: 58px;
  max-width: 58px;
  flex: 0 0 58px;
  object-fit: cover;
}

.patient-header .brand-name {
  white-space: nowrap;
}

.patient-header .nav-button {
  grid-area: logout;
  justify-self: end;
  white-space: nowrap;
}

.patient-header .patient-nav-links {
  grid-area: nav;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem 1.35rem;
  font-size: .92rem;
}

.patient-header .patient-nav-links a {
  white-space: nowrap;
  padding: .25rem 0;
}

.patient-header .patient-nav-links a[aria-current="page"] {
  color: var(--forest-deep);
  box-shadow: inset 0 -2px 0 var(--sage);
}

@media(max-width:820px){
  .settings-grid{grid-template-columns:1fr}
  .settings-hero{align-items:flex-start;flex-direction:column}
  .settings-form-grid{grid-template-columns:1fr}
  .settings-field.full{grid-column:auto}

  .patient-header .patient-navbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand logout"
      "nav nav";
    gap: .7rem 1rem;
  }

  .patient-header .brand-logo {
    width: 48px;
    height: 48px;
    max-width: 48px;
    flex-basis: 48px;
  }

  .patient-header .brand-name { font-size: 1.4rem; }
  .patient-header .patient-nav-links { gap: .25rem 1rem; font-size: .86rem; }
  .patient-header .nav-button { padding: .6rem .9rem; }
}

@media(max-width:520px){
  .patient-header .brand-name { display:none; }
  .patient-header .patient-nav-links { justify-content:flex-start; }
}

/* Vaccination records */
.vaccination-shell{padding:3rem 0 4rem}.vaccination-hero{display:flex;justify-content:space-between;gap:1.5rem;align-items:flex-end;margin-bottom:1.5rem}.vaccination-hero h1{margin:.25rem 0 .4rem}.vax-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1.5rem}.vax-summary>div{background:#fff;border:1px solid var(--border,#dde5df);border-radius:18px;padding:1rem 1.2rem;display:flex;align-items:baseline;gap:.65rem}.vax-summary strong{font-family:'Playfair Display',serif;font-size:2rem;color:#315d49}.vax-summary span{font-weight:800;color:var(--muted,#66736b)}.vax-form-card{margin-bottom:1.75rem}.vaccination-section{margin-top:2rem}.vax-list{display:grid;gap:1rem;margin-top:1rem}.vax-card{background:#fff;border:1px solid #dce5df;border-radius:20px;padding:1.2rem 1.3rem;box-shadow:0 8px 24px rgba(38,68,53,.04)}.vax-card-top{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.vax-card h3{margin:.4rem 0 .2rem;font-size:1.2rem}.vax-card p{margin:.2rem 0;color:var(--muted,#66736b)}.vax-status{display:inline-flex;border-radius:999px;padding:.28rem .58rem;font-size:.75rem;font-weight:800}.vax-status.current{background:#e7f4e9;color:#28633e}.vax-status.soon{background:#fff2cf;color:#795b08}.vax-status.overdue{background:#fbe3e3;color:#8a3434}.vax-details{display:flex;gap:2rem;flex-wrap:wrap;margin:.9rem 0 0}.vax-details div{display:grid;gap:.1rem}.vax-details dt{font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;font-weight:800;color:var(--muted,#66736b)}.vax-details dd{margin:0;font-weight:800}.vax-notes{margin-top:.85rem!important;padding-top:.8rem;border-top:1px solid #e7ece8}.vax-history-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;background:transparent;border:0;border-bottom:1px solid #dce5df;padding:.8rem 0;cursor:pointer;color:inherit;font:inherit}.vax-history-toggle strong{display:block;font-family:'Playfair Display',serif;font-size:1.45rem;margin-top:.15rem}.vax-history-toggle .eyebrow{display:block}.vax-history-toggle>span:last-child{font-size:1.5rem}.vaccination-page .nav-links a.active{color:#315d49}.vaccination-page .clinic-empty p{margin-bottom:0}@media(max-width:820px){.vaccination-hero{align-items:flex-start;flex-direction:column}.vax-summary{grid-template-columns:1fr}.vax-summary>div{justify-content:space-between}.vax-card-top{align-items:flex-start}}

/* Notes & appointments */
.notes-shell{padding:3rem 0 4rem}.notes-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:1.5rem;margin-bottom:1.75rem}.notes-hero h1{margin:.25rem 0 .4rem}.notes-hero-actions{display:flex;gap:.7rem;flex-wrap:wrap}.notes-form-card{margin-bottom:1.5rem}.notes-section{margin-top:2rem}.appointment-list,.saved-notes-list{display:grid;gap:1rem}.appointment-card{display:grid;grid-template-columns:auto 1fr auto;gap:1rem;align-items:start;background:#fff;border:1px solid var(--border,#dde5df);border-radius:20px;padding:1rem 1.1rem;box-shadow:0 8px 24px rgba(38,68,53,.05)}.appointment-date{width:64px;min-height:68px;border-radius:16px;background:#eef5ef;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#315e47}.appointment-date span{font-size:.72rem;font-weight:800;letter-spacing:.08em}.appointment-date strong{font-size:1.65rem;line-height:1.05}.appointment-copy h3,.saved-note-card h3{margin:.1rem 0 .2rem}.appointment-copy>p{margin:.15rem 0;color:var(--muted,#66736b)}.appointment-notes{margin-top:.65rem!important;color:inherit!important}.appointment-actions{display:flex;gap:.4rem;flex-wrap:wrap;justify-content:flex-end}.notes-filter-row{display:flex;gap:.55rem;flex-wrap:wrap;margin:0 0 1rem}.note-filter{border:1px solid #cfd9d2;background:#fff;border-radius:999px;padding:.55rem .8rem;font:inherit;font-weight:700;cursor:pointer;color:#58665e}.note-filter.active{background:#315e47;color:#fff;border-color:#315e47}.saved-note-card{background:#fff;border:1px solid var(--border,#dde5df);border-radius:20px;padding:1.15rem 1.25rem;box-shadow:0 8px 24px rgba(38,68,53,.05)}.saved-note-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.saved-note-head p{margin:.15rem 0;color:var(--muted,#66736b);font-size:.92rem}.note-category{display:inline-flex;background:#eef5ef;color:#315e47;border-radius:999px;padding:.25rem .55rem;font-size:.75rem;font-weight:800}.saved-note-body{margin:.9rem 0 0;line-height:1.65}.note-body{min-height:150px}
@media(max-width:820px){.notes-hero{align-items:flex-start;flex-direction:column}.appointment-card{grid-template-columns:auto 1fr}.appointment-actions{grid-column:1/-1;justify-content:flex-start}.saved-note-head{flex-direction:column}}

/* Signup email verification state */
.verification-message { width:100%; max-width:500px; margin:.35rem 0; padding:1rem 1.1rem; border:1px solid rgba(37,79,67,.12); border-radius:16px; background:#f8fbf7; color:var(--muted); text-align:left; }
.verification-message strong { color:var(--forest-deep); }
.verification-message p { margin:.3rem 0 0; font-size:.82rem; line-height:1.55; }
#verification-email { color:var(--forest-deep); overflow-wrap:anywhere; }


/* Sparky's homepage contact card */
.contact-team-card {
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem;
}
.contact-portrait { text-align: center; min-width: 0; }
.contact-portrait img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 20px;
  border: 4px solid var(--white);
  box-shadow: 0 8px 24px rgba(37,79,67,.13);
}
.contact-portrait p { margin: .65rem 0 0; line-height: 1.35; }
.contact-portrait strong { display: block; color: var(--forest-deep); }
.contact-portrait span { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; }
.contact-details { display: grid; gap: 1.2rem; min-width: 0; }
.contact-email-block + .contact-email-block { border-top: 1px solid rgba(37,79,67,.12); padding-top: 1.2rem; }
.contact-email-block p { margin: 0; }
.contact-email-block p + p { margin-top: .3rem; color: var(--muted); font-size: .88rem; }
.contact-email-block a { color: var(--forest); font-weight: 800; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.contact-email-block a:hover, .contact-email-block a:focus-visible { color: var(--forest-deep); }
@media (max-width: 600px) {
  .contact-team-card { grid-template-columns: 1fr; justify-items: center; }
  .contact-details { width: 100%; }
}


/* About Us — Sparky's story */
.aboutus-main { background:linear-gradient(180deg,#edf4e8 0%,var(--cream) 36%,#fff 100%); padding:4.5rem 0 6rem; }
.aboutus-heading { text-align:center; max-width:800px; margin:0 auto 2.5rem; }
.aboutus-heading h1 { margin:.25rem 0 .8rem; font:700 clamp(2.7rem,5vw,4.6rem)/1.1 "Playfair Display",serif; color:var(--forest-deep); }
.aboutus-heading .intro { margin:0; color:var(--muted); font-size:1.1rem; }
.aboutus-story { display:grid; grid-template-columns:minmax(0,.83fr) minmax(0,1.17fr); gap:3rem; align-items:start; }
.aboutus-photo { margin:0; position:sticky; top:110px; }
.aboutus-photo img { width:100%; max-height:690px; aspect-ratio:3/4; object-fit:cover; object-position:center; border-radius:var(--radius-lg); box-shadow:var(--shadow); }
.aboutus-photo figcaption { margin:.8rem .3rem 0; color:var(--muted); font-size:.85rem; text-align:center; }
.aboutus-copy { background:#fff; padding:clamp(1.5rem,3vw,2.8rem); border:1px solid rgba(37,79,67,.1); border-radius:var(--radius-lg); box-shadow:0 12px 40px rgba(27,67,55,.06); }
.aboutus-copy p { margin:0 0 1.15rem; line-height:1.8; }
.aboutus-copy p:last-child { margin-bottom:0; }
.aboutus-copy .greeting { font-weight:900; color:var(--forest-deep); font-size:1.2rem; }
.aboutus-promise { margin:1.8rem 0; padding:1.2rem 1.4rem; border-radius:16px; background:var(--sage-light); color:var(--forest-deep); font-weight:900; }
.aboutus-signature { padding-top:1.3rem; border-top:1px solid rgba(37,79,67,.12); color:var(--forest-deep); }
.aboutus-signature strong,.aboutus-signature span { display:block; }
.aboutus-signature span { color:var(--muted); font-size:.85rem; }
.aboutus-actions { display:flex; justify-content:center; gap:1rem; flex-wrap:wrap; margin-top:2.7rem; }
.aboutus-footer-links { display:flex; gap:1.25rem; flex-wrap:wrap; }
.aboutus-footer-links a { color:#fff; font-weight:800; text-decoration:underline; text-underline-offset:4px; }
@media(max-width:850px) { .aboutus-story { grid-template-columns:1fr; gap:1.5rem; } .aboutus-photo { position:static; max-width:540px; margin:0 auto; } .aboutus-photo img { max-height:560px; } }
@media(max-width:600px) { .aboutus-main { padding:2.8rem 0 4rem; } .aboutus-copy { padding:1.4rem; } .aboutus-footer-links { gap:.7rem 1rem; } }


/* Contact Us standalone page */
.contactus-main { min-height:70vh; padding:4.5rem 0 5rem; background:linear-gradient(180deg,#edf4e8 0%,var(--cream) 42%,#fff 100%); }
.contactus-heading { max-width:760px; margin:0 auto 2.5rem; text-align:center; }
.contactus-heading h1 { margin:.2rem 0 .65rem; color:var(--forest-deep); font:700 clamp(2.8rem,5vw,4.5rem)/1.1 "Playfair Display",serif; }
.contactus-heading > p:last-child { margin:0; color:var(--muted); font-size:1.08rem; }
.contactus-layout { display:grid; grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr); gap:1.4rem; align-items:start; }
.contactus-intro,.contactus-option { padding:2rem; border:1px solid rgba(37,79,67,.1); border-radius:var(--radius-lg); background:#fff; box-shadow:0 12px 40px rgba(27,67,55,.06); }
.contactus-intro { text-align:center; background:#f8fbf7; }
.contactus-intro img { width:180px; height:180px; margin:0 auto 1.3rem; object-fit:cover; border:5px solid #fff; border-radius:24px; box-shadow:0 8px 24px rgba(37,79,67,.13); }
.contactus-intro h2,.contactus-option h2 { margin:0 0 .7rem; color:var(--forest-deep); font:700 clamp(1.5rem,2.5vw,2rem)/1.2 "Playfair Display",serif; }
.contactus-intro > p { color:var(--muted); }
.contactus-title { margin:1.4rem 0 0; padding-top:1.2rem; border-top:1px solid rgba(37,79,67,.12); color:var(--forest-deep)!important; font-weight:900; }
.contactus-title span { color:var(--muted); font-size:.78rem; font-weight:700; }
.contactus-options { display:grid; gap:1.4rem; }
.contactus-option > p:not(.eyebrow) { margin:.5rem 0 1.2rem; color:var(--muted); }
.contactus-email { display:inline-block; max-width:100%; overflow-wrap:anywhere; color:var(--forest); font-size:clamp(1rem,2vw,1.2rem); font-weight:900; text-decoration:underline; text-underline-offset:4px; }
.contactus-email:hover,.contactus-email:focus-visible { color:var(--forest-deep); }
.contactus-back { margin:2.5rem 0 0; text-align:center; }
.contactus-back a { color:var(--forest); font-weight:900; text-decoration:underline; text-underline-offset:3px; }
@media(max-width:800px) { .contactus-layout { grid-template-columns:1fr; } }
@media(max-width:600px) { .contactus-main { padding:2.8rem 0 4rem; } .contactus-intro,.contactus-option { padding:1.4rem; } }

/* Shared footer navigation */
.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 600px) {
  .footer-links {
    gap: 1rem;
  }
}

/* Medical history record actions */
.history-record-actions{display:flex;gap:.75rem;flex-wrap:wrap;padding:0.8rem 1rem 1.2rem}.history-record-actions .button{font-size:.9rem}

/* Homepage mobile login — keep account access visible when navigation collapses */
.home-mobile-login { display: none; }
@media (max-width: 900px) {
  .home-mobile-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    min-height: 44px;
    padding: .65rem 1rem;
    border-radius: 999px;
    background: var(--forest);
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
  }
  .home-mobile-login:hover, .home-mobile-login:focus-visible {
    background: var(--forest-deep);
    color: var(--white);
  }
  /* The hero already provides the Take a Look link. */
  .home-mobile-login ~ .nav-button { display: none; }
}


/* PATIENT MOBILE LOGOUT — visible even when standard navigation buttons collapse */
.patient-header .patient-logout {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  min-width: 88px;
  line-height: 1.2;
}
.patient-header .patient-logout:focus-visible {
  outline: 3px solid var(--forest-deep);
  outline-offset: 3px;
}
.patient-header .patient-logout:disabled { opacity: .7; cursor: wait; }
@media (max-width: 900px) {
  .patient-header .patient-logout {
    display: inline-flex;
    padding: .65rem .85rem;
  }
}
@media (max-width: 520px) {
  .patient-header .patient-navbar { grid-template-columns: minmax(0, 1fr) auto; }
  .patient-header .patient-logout { font-size: .85rem; }
}

/* Accessibility — keyboard navigation and motion preferences */
.skip-link{position:fixed;top:8px;left:8px;z-index:9999;padding:.8rem 1rem;border-radius:12px;background:var(--forest-deep);color:#fff;font-weight:800;transform:translateY(-160%)}
.skip-link:focus,.skip-link:focus-visible{transform:translateY(0)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex="-1"]:focus{outline:3px solid #a45e07;outline-offset:3px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
