/*
 * NearPaw interface system v1.3
 * Original design for verified, real-time pet care.
 */
:root {
  --ink: #062b4d;
  --ink-2: #0a3c63;
  --ink-3: #2b5d76;
  --muted: #637783;
  --muted-2: #90a1aa;
  --paper: #ffffff;
  --cream: #f2fbf8;
  --cream-2: #dff5ef;
  --mist: #eef8f6;
  --line: #d4e6e3;
  --line-dark: rgba(255,255,255,.16);
  --teal: #00a894;
  --teal-2: #008a7b;
  --teal-soft: #ddf8f2;
  --mint: #58d8bd;
  --lime: #75e1bf;
  --amber: #e9a23b;
  --amber-soft: #fff0d5;
  --coral: #ec6d55;
  --coral-2: #d45440;
  --coral-soft: #ffe8e1;
  --red: #c83d3d;
  --red-soft: #fde5e5;
  --blue: #157be8;
  --blue-soft: #e7f2ff;
  --shadow-sm: 0 8px 24px rgba(6,43,77,.08);
  --shadow: 0 18px 50px rgba(6,43,77,.12);
  --shadow-lg: 0 32px 80px rgba(6,43,77,.18);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 38px;
  --container: 1180px;
  --sidebar: 260px;
  --topbar: 72px;
  --transition: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.app-shell, body.admin-shell { background: #f4f7f6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition), opacity var(--transition), transform var(--transition); }
a:hover { color: var(--teal-2); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
input, select, textarea { color: var(--ink); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.35rem, 5vw, 5.2rem); }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.65rem); }
h3 { font-size: 1.15rem; }
p { color: var(--muted); }
code { padding: .14rem .38rem; border-radius: 6px; background: var(--mist); font-size: .86em; overflow-wrap: anywhere; }
::selection { background: var(--lime); color: var(--ink); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.container.narrow, .narrow { max-width: 840px; }
.skip-link { position: fixed; left: 18px; top: -80px; z-index: 9999; padding: 12px 18px; border-radius: 10px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.skip-link:focus { top: 18px; }
.small { font-size: .88rem; }
.centre { text-align: center; }
.full { grid-column: 1 / -1; }
.span-2 { grid-column: span 2; }
.desktop-only { display: inline; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .72rem 1.16rem;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 760;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(17,109,103,.16);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.button:hover { transform: translateY(-1px); color: #fff; background: var(--teal-2); border-color: var(--teal-2); box-shadow: 0 12px 28px rgba(17,109,103,.22); }
.button:active { transform: translateY(0); }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(115,201,178,.55); outline-offset: 3px; }
.button-lg { min-height: 54px; padding: .88rem 1.5rem; font-size: 1.02rem; }
.button-sm { min-height: 38px; padding: .58rem .92rem; font-size: .88rem; }
.button-block { width: 100%; }
.button-ghost { background: transparent; color: var(--teal); box-shadow: none; }
.button-ghost:hover { background: var(--teal-soft); color: var(--teal-2); }
.button-light { background: #fff; border-color: #fff; color: var(--ink); box-shadow: none; }
.button-light:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.button-outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; box-shadow: none; }
.button-outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.button-urgent { background: var(--coral); border-color: var(--coral); box-shadow: 0 9px 22px rgba(236,109,85,.25); }
.button-urgent:hover { background: var(--coral-2); border-color: var(--coral-2); }
.button-danger { background: var(--red); border-color: var(--red); }
.button-danger:hover { background: #a92e2e; border-color: #a92e2e; }
.link-button { border: 0; padding: 0; background: transparent; color: inherit; font-weight: 700; }
.link-button:hover { color: var(--mint); }
.text-link { font-weight: 700; }
.button-row, .hero-actions, .heading-actions, .form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Public navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(16,42,42,.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { display:block; width:190px; height:auto; object-fit:contain; }
.app-brand img { width:166px; height:auto; }
.site-footer .footer-grid > div:first-child > img { width:190px; height:auto; }
.auth-art a img { width:190px; height:auto; }
.public-nav { display: flex; align-items: center; gap: 1.35rem; font-size: .93rem; font-weight: 700; }
.public-nav > a:not(.button) { color: var(--ink-3); }
.public-nav > a:not(.button):hover { color: var(--teal); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--mist); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 21px; height: 2px; border-radius: 2px; background: var(--ink); transition: var(--transition); }

/* Public pages */
.hero { position: relative; overflow: hidden; padding: clamp(60px, 8vw, 112px) 0 72px; background: radial-gradient(circle at 78% 18%, rgba(201,228,109,.27), transparent 29%), linear-gradient(145deg,#fff 0%,#f4f8f5 53%,#f8f2e6 100%); }
.hero::before { content:""; position:absolute; width:420px; height:420px; left:-220px; bottom:-180px; border:1px solid rgba(17,109,103,.14); border-radius:50%; box-shadow:0 0 0 55px rgba(17,109,103,.035),0 0 0 110px rgba(17,109,103,.025); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(420px,.95fr); gap: clamp(38px,7vw,86px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { margin: .35rem 0 1.25rem; max-width: 750px; }
.hero-copy h1 em { color: var(--teal); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.hero-lede { max-width: 680px; font-size: clamp(1.06rem,1.6vw,1.26rem); line-height: 1.7; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--teal); font-size: .78rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(201,228,109,.2); }
.trust-row { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; margin-top: 1.5rem; font-size: .88rem; color: var(--ink-3); }
.trust-row b { color: var(--teal); }
.hero-visual { position: relative; min-width: 0; }
.hero-visual > img { width: 100%; filter: drop-shadow(0 28px 34px rgba(20,57,56,.14)); }
.floating-card { position: absolute; display: flex; align-items: center; gap: .75rem; min-width: 205px; padding: .78rem .95rem; border: 1px solid rgba(16,42,42,.08); border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.floating-card strong, .floating-card small { display: block; }
.floating-card strong { font-size: .88rem; }
.floating-card small { color: var(--muted); font-size: .76rem; }
.fc-one { left: -28px; top: 20%; }
.fc-two { right: -20px; bottom: 16%; }
.live-dot, .pulse-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(236,109,85,.48); animation: pulse 2s infinite; }
.mini-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-weight: 900; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(236,109,85,.45)} 70%{box-shadow:0 0 0 10px rgba(236,109,85,0)} 100%{box-shadow:0 0 0 0 rgba(236,109,85,0)} }

.signal-strip { padding: 26px 0; background: var(--ink); color: #fff; }
.signal-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.signal-cards, .signal-grid > div { display: flex; align-items: center; gap: .75rem; }
.signal-grid b { display:block; font-size: 1.08rem; }
.signal-grid span, .signal-grid small { color: rgba(255,255,255,.7); font-size: .82rem; }
.signal-grid .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }

.section { padding: clamp(68px,8vw,112px) 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--ink); color:#fff; }
.section-dark h1,.section-dark h2,.section-dark h3,.section-dark strong { color:#fff; }
.section-dark p { color: rgba(255,255,255,.72); }
.section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:32px; margin-bottom:42px; }
.section-heading > div { max-width: 720px; }
.section-heading h2 { margin: .45rem 0 .7rem; }
.section-heading p { margin-bottom:0; font-size:1.05rem; }
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.feature-card { position:relative; overflow:hidden; min-height:280px; padding:28px; border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; box-shadow:var(--shadow-sm); }
.feature-card::after { content:""; position:absolute; width:150px; height:150px; right:-60px; bottom:-70px; border-radius:50%; background:var(--teal-soft); }
.feature-card h3,.feature-card p,.feature-card a { position:relative; z-index:1; }
.feature-card h3 { margin:18px 0 12px; font-size:1.35rem; }
.feature-number,.service-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:14px; background:var(--teal-soft); color:var(--teal); font-weight:900; font-size:1.2rem; }
.feature-card.accent { background:var(--teal); border-color:var(--teal); color:#fff; }
.feature-card.accent p,.feature-card.accent a { color:rgba(255,255,255,.78); }
.feature-card.accent .feature-number { background:rgba(255,255,255,.15); color:#fff; }
.steps { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; counter-reset:steps; }
.steps article { padding:26px; border-top:2px solid var(--line); }
.steps article::before { counter-increment:steps; content:"0" counter(steps); display:block; margin-bottom:20px; color:var(--coral); font-size:.82rem; font-weight:900; letter-spacing:.12em; }
.steps h3 { margin-bottom:9px; }
.steps p { font-size:.92rem; }
.split { display:grid; grid-template-columns:1fr 1fr; gap:clamp(32px,6vw,76px); align-items:center; }
.split-content h2 { margin:.45rem 0 1rem; }
.proof-points { display:grid; gap:13px; margin:25px 0; }
.proof-points > div { display:flex; gap:12px; align-items:flex-start; }
.proof-points b { display:grid; place-items:center; width:27px; height:27px; flex:0 0 auto; border-radius:50%; background:var(--teal-soft); color:var(--teal); }
.phone-frame { position:relative; max-width:430px; margin:auto; padding:14px; border-radius:42px; background:#0c2525; box-shadow:var(--shadow-lg); }
.phone-frame > div { overflow:hidden; min-height:590px; border-radius:31px; background:#f6f8f7; }
.phone-top { height:55px; padding:18px; background:#fff; font-size:.78rem; font-weight:800; text-align:center; }
.mini-map { min-height:300px; background:linear-gradient(35deg,#dcebe6 25%,transparent 25%) 0 0/48px 48px,linear-gradient(-35deg,#edf4f0 25%,transparent 25%) 0 0/48px 48px,#f6f1e7; position:relative; }
.mini-map img { width:100%; height:100%; object-fit:cover; }
.timeline-demo { display:grid; gap:14px; padding:23px; }
.timeline-demo div { display:grid; grid-template-columns:10px 1fr auto; gap:10px; align-items:center; font-size:.82rem; }
.timeline-demo i { width:9px; height:9px; border-radius:50%; background:var(--teal); }
.timeline-demo small { color:var(--muted); }
.cta-band { padding:50px 0; background:linear-gradient(110deg,var(--coral),#f28a5d); color:#fff; }
.cta-band .container { display:flex; align-items:center; justify-content:space-between; gap:30px; }
.cta-band h2 { color:#fff; margin-bottom:.4rem; }
.cta-band p { color:rgba(255,255,255,.8); margin:0; }

.page-hero { padding:78px 0 62px; background:linear-gradient(145deg,var(--mist),#fff 54%,var(--cream)); text-align:center; }
.page-hero h1 { margin:.5rem auto 1rem; max-width:900px; font-size:clamp(2.5rem,5vw,4.8rem); }
.page-hero p { max-width:760px; margin-inline:auto; font-size:1.1rem; }
.page-hero.legal { text-align:left; }
.urgent-hero { padding:72px 0; background:linear-gradient(125deg,#ffefe8,#fff 55%,#eaf6f1); }
.urgent-hero .container { display:grid; grid-template-columns:1.1fr .9fr; align-items:center; gap:60px; }
.urgent-hero h1 { margin:.4rem 0 1rem; font-size:clamp(2.6rem,5vw,4.7rem); }
.urgent-line { display:flex; align-items:center; gap:12px; margin:20px 0; font-weight:800; }
.caregiver-select { display:grid; gap:12px; }
.caregiver-select article,.caregiver { display:flex; align-items:center; gap:13px; padding:13px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.caregiver-select .avatar { width:40px; height:40px; }
.service-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.service-card { padding:28px; border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; box-shadow:var(--shadow-sm); }
.service-card h2 { margin:18px 0 10px; font-size:1.45rem; }
.service-meta { display:flex; justify-content:space-between; gap:15px; margin-top:20px; padding-top:17px; border-top:1px solid var(--line); color:var(--muted); font-size:.88rem; }
.safety-layers { display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
.safety-layers article { padding:30px; border-radius:var(--radius-lg); background:#fff; border:1px solid var(--line); }
.safety-layers img { height:180px; margin:0 auto 20px; }
.check-list { display:grid; gap:13px; padding:0; margin:20px 0; list-style:none; }
.check-list li { position:relative; padding-left:29px; color:var(--ink-3); }
.check-list li::before { content:"✓"; position:absolute; left:0; top:0; color:var(--teal); font-weight:900; }
.pricing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; align-items:stretch; }
.price-card { position:relative; display:flex; flex-direction:column; padding:30px; border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; box-shadow:var(--shadow-sm); }
.price-card.featured { border:2px solid var(--teal); transform:translateY(-8px); box-shadow:var(--shadow); }
.price { margin:14px 0; color:var(--ink); font-size:2.5rem; font-weight:900; letter-spacing:-.05em; }
.price small { font-size:.9rem; font-weight:600; color:var(--muted); }
.cost-example { display:grid; gap:10px; margin:28px 0; padding:22px; border-radius:18px; background:var(--mist); }
.cost-example div { display:flex; justify-content:space-between; gap:20px; }
.cost-example div:last-child { padding-top:10px; border-top:1px solid var(--line); font-weight:900; }
.gate-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.check-card { display:flex; gap:12px; align-items:flex-start; padding:18px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.check-card input { margin-top:4px; }
.check-card b,.check-card small { display:block; }
.check-card small { color:var(--muted); margin-top:4px; }
.faq-list { display:grid; gap:12px; }
.faq-list details { border:1px solid var(--line); border-radius:16px; background:#fff; }
.faq-list summary { padding:20px 24px; cursor:pointer; font-weight:850; }
.faq-list details p { padding:0 24px 22px; margin:0; }
.contact-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr); gap:32px; }
.contact-panel,.contact-aside { padding:32px; border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; box-shadow:var(--shadow-sm); }
.contact-aside { background:var(--ink); color:#fff; }
.contact-aside p { color:rgba(255,255,255,.72); }
.contact-item { padding:18px 0; border-top:1px solid rgba(255,255,255,.14); }
.contact-item b,.contact-item span { display:block; }
.contact-item span { color:rgba(255,255,255,.65); font-size:.88rem; }
.legal-copy { max-width:850px; }
.legal-copy h2 { margin-top:2.4rem; font-size:1.55rem; }
.legal-copy p,.legal-copy li { color:var(--ink-3); }
.legal-callout { padding:20px 22px; border-left:5px solid var(--amber); border-radius:12px; background:var(--amber-soft); }

/* Lost tag */
.lost-page { min-height:calc(100vh - 76px); padding:60px 0; background:linear-gradient(140deg,var(--mist),#fff,var(--cream)); }
.lost-page.is-lost { background:linear-gradient(140deg,#fff0ed,#fff,#fff4d9); }
.lost-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:34px; align-items:start; max-width:1000px; }
.lost-card,.finder-panel { padding:34px; border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; box-shadow:var(--shadow); }
.lost-badge { display:inline-flex; padding:7px 12px; border-radius:999px; background:var(--teal-soft); color:var(--teal); font-size:.76rem; font-weight:900; letter-spacing:.09em; }
.is-lost .lost-badge { background:var(--red-soft); color:var(--red); }
.lost-photo { width:190px; height:190px; margin:24px auto 20px; border-radius:50%; object-fit:cover; border:7px solid var(--mist); }
.lost-photo.placeholder { display:grid; place-items:center; background:var(--teal-soft); color:var(--teal); font-size:4rem; }
.lost-card h1 { margin-bottom:4px; text-align:center; font-size:2.7rem; }
.lost-meta,.lost-message { text-align:center; }
.lost-message { color:var(--red); font-weight:800; }
.pet-safe-facts { display:grid; gap:12px; margin-top:24px; }
.pet-safe-facts span { padding:13px 15px; border-radius:12px; background:var(--mist); color:var(--muted); font-size:.86rem; }
.pet-safe-facts b { display:block; color:var(--ink); }
.finder-panel h2 { margin:.4rem 0 .8rem; }
.notice { padding:15px 17px; border:1px solid #efd5a4; border-radius:13px; background:var(--amber-soft); color:#6f4c13; font-size:.9rem; }

/* Footer */
.site-footer { padding:62px 0 0; background:#0b2524; color:#fff; }
.footer-grid { display:grid; grid-template-columns:1.6fr repeat(3,1fr); gap:45px; padding-bottom:45px; }
.footer-grid h3 { color:#fff; font-size:.92rem; letter-spacing:0; }
.footer-grid p { color:rgba(255,255,255,.62); max-width:360px; }
.footer-grid a { display:block; margin:.52rem 0; color:rgba(255,255,255,.72); font-size:.9rem; }
.footer-grid a:hover { color:#fff; }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; padding:20px 0 25px; border-top:1px solid rgba(255,255,255,.12); color:rgba(255,255,255,.52); font-size:.8rem; }

/* Auth */
.auth-section { min-height:100vh; display:grid; place-items:center; padding:50px 20px; background:radial-gradient(circle at 15% 20%,rgba(201,228,109,.22),transparent 25%),linear-gradient(135deg,#f4f8f5,#fff 50%,#f7efe1); }
.auth-wrap { width:min(100%,1040px); display:grid; grid-template-columns:.88fr 1.12fr; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius-xl); background:#fff; box-shadow:var(--shadow-lg); }
.auth-art { position:relative; display:flex; flex-direction:column; justify-content:space-between; min-height:650px; padding:42px; overflow:hidden; background:var(--ink); color:#fff; }
.auth-art::before { content:""; position:absolute; inset:auto -120px -140px auto; width:420px; height:420px; border-radius:50%; background:radial-gradient(circle,var(--teal) 0%,transparent 68%); opacity:.85; }
.auth-art > * { position:relative; z-index:1; }
.auth-art p { color:rgba(255,255,255,.72); }
.auth-panel { padding:clamp(32px,6vw,64px); }
.auth-heading h2 { margin:.45rem 0 .55rem; }
.auth-heading { margin-bottom:28px; }
.choice-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:8px; }
.choice { position:relative; display:block; padding:16px; border:1px solid var(--line); border-radius:14px; cursor:pointer; }
.choice input { position:absolute; opacity:0; }
.choice:has(input:checked) { border-color:var(--teal); background:var(--teal-soft); box-shadow:0 0 0 2px rgba(17,109,103,.1); }
.choice b,.choice small { display:block; }
.choice small { margin-top:4px; color:var(--muted); }
.password-field { display:flex; overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#fff; }
.password-field input { border:0!important; border-radius:0!important; box-shadow:none!important; }
.password-field button { border:0; padding:0 14px; background:var(--mist); color:var(--teal); font-size:.82rem; font-weight:800; }

/* Forms */
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.form-stack { display:grid; gap:18px; }
.form-grid label,.form-stack label,.incident-update label { min-width:0; }
label > span,.form-grid label > span,.form-stack label > span { display:block; margin-bottom:7px; color:var(--ink-3); font-size:.82rem; font-weight:800; }
input,select,textarea {
  width:100%;
  min-height:46px;
  padding:.72rem .85rem;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  transition:border-color var(--transition),box-shadow var(--transition),background var(--transition);
}
textarea { min-height:100px; resize:vertical; line-height:1.5; }
input:hover,select:hover,textarea:hover { border-color:#b6c7c3; }
input:focus,select:focus,textarea:focus { outline:0; border-color:var(--teal); box-shadow:0 0 0 4px rgba(17,109,103,.11); }
input:disabled { color:var(--muted); background:#f1f4f3; }
input[type="checkbox"],input[type="radio"] { width:18px; height:18px; min-height:0; padding:0; accent-color:var(--teal); }
input[type="file"] { padding:.55rem; }
label small,.form-hint { display:block; margin-top:6px; color:var(--muted); font-size:.78rem; }
.check-line { display:flex!important; align-items:flex-start; gap:10px; }
.check-line > span { margin:0!important; font-weight:600!important; }
.form-between { display:flex; justify-content:space-between; gap:20px; font-size:.88rem; }
.form-panel { padding:clamp(24px,4vw,38px); }
.form-section + .form-section { margin-top:34px; padding-top:30px; border-top:1px solid var(--line); }
.form-section h2 { margin-bottom:22px; font-size:1.35rem; }
.form-actions { margin-top:30px; }
.location-box { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:12px; border:1px dashed #aac7c1; border-radius:12px; background:var(--mist); }
.location-box small { color:var(--muted); }
.switch { position:relative; display:inline-flex!important; align-items:center; gap:10px; cursor:pointer; }
.switch input { position:absolute; opacity:0; }
.switch::before { content:""; width:48px; height:26px; border-radius:999px; background:#c8d3d0; transition:var(--transition); }
.switch::after { content:""; position:absolute; left:3px; top:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.2); transition:var(--transition); }
.switch:has(input:checked)::before { background:var(--teal); }
.switch:has(input:checked)::after { transform:translateX(22px); }

/* App frame */
.app-topbar { position:fixed; inset:0 0 auto 0; z-index:1100; height:var(--topbar); display:flex; align-items:center; justify-content:space-between; padding:0 24px; background:var(--ink); color:#fff; box-shadow:0 6px 20px rgba(0,0,0,.12); }
.app-brand img { max-height:44px; }
.app-top-actions { display:flex; align-items:center; gap:15px; font-size:.85rem; }
.icon-link { display:flex; align-items:center; gap:8px; color:rgba(255,255,255,.78); font-weight:700; }
.icon-link:hover { color:#fff; }
.notification-chip { min-width:25px; height:25px; display:grid; place-items:center; border-radius:999px; background:var(--coral); color:#fff; font-weight:900; font-size:.72rem; }
.user-chip { display:flex; align-items:center; gap:8px; }
.avatar { display:grid; place-items:center; width:36px; height:36px; flex:0 0 auto; border-radius:50%; background:var(--teal-soft); color:var(--teal); font-size:.75rem; font-weight:900; }
.app-topbar .avatar { background:rgba(255,255,255,.12); color:#fff; }
.app-frame { min-height:100vh; padding-top:var(--topbar); }
.app-sidebar { position:fixed; left:0; top:var(--topbar); bottom:0; z-index:800; width:var(--sidebar); overflow-y:auto; padding:26px 17px; background:#fff; border-right:1px solid var(--line); }
.app-sidebar a { display:flex; align-items:center; gap:11px; min-height:44px; padding:10px 12px; margin:4px 0; border-radius:11px; color:var(--ink-3); font-size:.9rem; font-weight:720; }
.app-sidebar a span { display:grid; place-items:center; width:24px; color:var(--teal); font-size:1.05rem; }
.app-sidebar a:hover { background:var(--mist); color:var(--ink); }
.app-sidebar a.active { background:var(--ink); color:#fff; }
.app-sidebar a.active span { color:var(--lime); }
.side-label { margin:24px 12px 8px; color:var(--muted-2); font-size:.69rem; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.side-label:first-child { margin-top:0; }
.side-note { margin:26px 12px; padding:13px; border-radius:11px; background:var(--amber-soft); color:#76561d; font-size:.76rem; line-height:1.5; }
.app-main { margin-left:var(--sidebar); min-height:calc(100vh - var(--topbar)); padding:34px clamp(20px,4vw,54px) 70px; }
.app-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:28px; margin-bottom:28px; }
.app-heading h1 { margin:.3rem 0 .45rem; font-size:clamp(2rem,3.5vw,3.3rem); }
.app-heading p { margin:0; max-width:760px; }

.panel { min-width:0; padding:24px; border:1px solid var(--line); border-radius:var(--radius); background:#fff; box-shadow:0 5px 20px rgba(14,49,48,.045); }
.panel.dark { background:var(--ink); color:#fff; border-color:var(--ink); }
.panel.dark p,.panel.dark small { color:rgba(255,255,255,.68); }
.panel.light { background:var(--mist); }
.panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:20px; }
.panel-head h2,.panel-head h3 { margin:0 0 4px; font-size:1.23rem; }
.panel-head p { margin:0; font-size:.86rem; }
.dashboard-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:20px; }
.metric-card { padding:20px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.metric-card span { color:var(--muted); font-size:.78rem; font-weight:700; }
.metric-card strong { display:block; margin-top:7px; font-size:1.9rem; letter-spacing:-.04em; }
.metric-card small { color:var(--muted); }
.metric-row { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.metric-row div { padding:14px; border-radius:13px; background:var(--mist); }
.metric-row b,.metric-row span { display:block; }
.metric-row span { color:var(--muted); font-size:.76rem; }

.status,.risk,.severity,.step-tag { display:inline-flex; align-items:center; justify-content:center; gap:5px; width:max-content; padding:5px 9px; border-radius:999px; font-size:.68rem; font-weight:900; letter-spacing:.04em; text-transform:uppercase; white-space:nowrap; }
.status-success { background:var(--teal-soft); color:#0b6657; }
.status-warning { background:var(--amber-soft); color:#8a5c0b; }
.status-danger { background:var(--red-soft); color:var(--red); }
.status-neutral { background:#edf0ef; color:#667675; }
.risk-low,.severity-low { background:var(--teal-soft); color:#0b6657; }
.risk-medium,.severity-medium { background:var(--amber-soft); color:#8a5c0b; }
.risk-high,.severity-high,.risk-critical,.severity-critical { background:var(--red-soft); color:var(--red); }

.booking-list,.pet-mini-list,.notice-list,.ticket-list,.mini-list { display:grid; }
.booking-row { display:grid; grid-template-columns:auto 1fr auto auto; align-items:center; gap:14px; padding:14px 0; border-top:1px solid var(--line); color:var(--ink); }
.booking-row:first-child { border-top:0; }
.booking-row:hover { transform:translateX(2px); }
.booking-symbol { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; background:var(--teal-soft); color:var(--teal); font-weight:900; }
.booking-symbol.urgent { background:var(--coral-soft); color:var(--coral-2); }
.booking-main strong,.booking-main span { display:block; }
.booking-main span { color:var(--muted); font-size:.82rem; }
.pet-mini-list a,.notice-list a { display:flex; align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--line); color:var(--ink); }
.pet-mini-list a:first-child,.notice-list a:first-child { border-top:0; }
.pet-mini-list img,.pet-avatar { width:42px; height:42px; flex:0 0 auto; border-radius:50%; object-fit:cover; }
.pet-avatar { display:grid; place-items:center; background:var(--teal-soft); color:var(--teal); }
.pet-mini-list div,.notice-list div { min-width:0; flex:1; }
.pet-mini-list strong,.pet-mini-list small,.notice-list strong,.notice-list small { display:block; }
.pet-mini-list small,.notice-list small { color:var(--muted); font-size:.77rem; overflow:hidden; text-overflow:ellipsis; }
.lost-flag { padding:4px 7px; border-radius:6px; background:var(--red); color:#fff; font-size:.62rem; }
.notice-dot { width:8px; height:8px; flex:0 0 auto; border-radius:50%; background:#cbd5d2; }
.notice-dot.new { background:var(--coral); box-shadow:0 0 0 4px var(--coral-soft); }
.empty-inline { display:flex; align-items:center; justify-content:center; gap:14px; min-height:150px; color:var(--muted); }
.empty-inline p { margin:0; }
.empty-state { display:flex; align-items:center; justify-content:center; gap:40px; min-height:360px; padding:42px; border:1px dashed #b8cbc7; border-radius:var(--radius-lg); background:#fff; text-align:left; }
.empty-state.compact { min-height:170px; padding:24px; }
.empty-state img { width:min(260px,40%); }
.hero-empty { min-height:400px; }
.trust-banner { display:flex; align-items:center; gap:18px; margin-top:20px; padding:22px 24px; border-radius:18px; background:var(--ink); color:#fff; }
.trust-banner > span { display:grid; place-items:center; width:48px; height:48px; flex:0 0 auto; border-radius:50%; background:rgba(255,255,255,.12); color:var(--lime); font-size:1.5rem; }
.trust-banner div { flex:1; }
.trust-banner strong { font-size:1.04rem; }
.trust-banner p { margin:2px 0 0; color:rgba(255,255,255,.67); font-size:.84rem; }

/* Pets */
.pet-card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.pet-card { overflow:hidden; border:1px solid var(--line); border-radius:var(--radius); background:#fff; box-shadow:var(--shadow-sm); }
.pet-card.lost { border-color:#f0b1a9; }
.pet-card-photo { position:relative; height:230px; display:grid; place-items:center; overflow:hidden; background:var(--teal-soft); color:var(--teal); font-size:4rem; }
.pet-card-photo img { width:100%; height:100%; object-fit:cover; }
.pet-card-photo b { position:absolute; left:14px; top:14px; padding:7px 10px; border-radius:999px; background:var(--red); color:#fff; font-size:.68rem; }
.pet-card-body { padding:20px; }
.pet-title { display:flex; justify-content:space-between; gap:12px; }
.pet-title h2 { margin:0 0 3px; font-size:1.5rem; }
.pet-title p { margin:0; font-size:.85rem; }
.pet-facts { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:18px 0; }
.pet-facts span { padding:10px 7px; border-radius:11px; background:var(--mist); color:var(--muted); font-size:.69rem; text-align:center; }
.pet-facts b { display:block; color:var(--ink); font-size:.9rem; }
.pet-profile-grid { display:grid; grid-template-columns:340px 1fr; gap:20px; align-items:start; }
.pet-overview { text-align:center; }
.pet-profile-head img,.pet-large-placeholder { width:190px; height:190px; margin:0 auto 18px; border-radius:50%; object-fit:cover; }
.pet-large-placeholder { display:grid; place-items:center; background:var(--teal-soft); color:var(--teal); font-size:4rem; }
.pet-profile-head h1 { margin:0 0 4px; font-size:2.3rem; }
.pet-profile-head p { margin:0; }
.risk-flags,.badge-list { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; }
.passport-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.passport-grid > div,.facts-table > div { padding:14px; border-radius:12px; background:var(--mist); }
.passport-grid span,.facts-table span { display:block; color:var(--muted); font-size:.74rem; }
.passport-grid b,.facts-table b { display:block; margin-top:3px; overflow-wrap:anywhere; }
.passport-notes { display:grid; gap:13px; margin-top:14px; }
.passport-notes > div { padding:14px; border-left:4px solid var(--teal); border-radius:10px; background:var(--mist); }
.passport-notes b,.passport-notes p { display:block; margin:0; }
.tag-panel { padding:24px; border-radius:18px; background:var(--ink); color:#fff; }
.tag-panel p,.tag-panel small { color:rgba(255,255,255,.68); }
.tag-preview { display:grid; grid-template-columns:150px 1fr; gap:22px; align-items:center; }
.qr-code { display:grid; place-items:center; width:150px; min-height:150px; padding:9px; border-radius:12px; background:#fff; }
.qr-code canvas,.qr-code img { max-width:100%; height:auto!important; }
.secret-box { padding:11px 13px; border-radius:10px; background:rgba(255,255,255,.1); color:#fff; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.77rem; overflow-wrap:anywhere; }
.tracker-grid { display:grid; gap:10px; }
.tracker-grid article { display:grid; grid-template-columns:1fr auto; gap:8px; padding:14px; border:1px solid var(--line); border-radius:12px; }
.tracker-add { margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
.lost-toggle { padding:20px; border:1px solid #f2c4bc; border-radius:15px; background:var(--coral-soft); }

/* Booking builder */
.booking-builder { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(290px,.75fr); gap:22px; align-items:start; }
.booking-builder .form-panel { min-width:0; }
.choice-grid.three { grid-template-columns:repeat(3,1fr); }
.choice-grid.four { grid-template-columns:repeat(4,1fr); }
.checkout-summary { position:sticky; top:calc(var(--topbar) + 22px); }
.checkout-summary h2 { font-size:1.3rem; }
.receipt { display:grid; gap:12px; margin:20px 0; }
.receipt > div { display:flex; justify-content:space-between; gap:20px; color:var(--muted); }
.receipt-total { padding-top:14px; border-top:2px solid var(--line); color:var(--ink)!important; font-size:1.15rem; font-weight:900; }
.segmented { display:grid; grid-template-columns:repeat(2,1fr); padding:4px; border-radius:14px; background:var(--mist); }
.segmented label { margin:0; }
.segmented input { position:absolute; opacity:0; }
.segmented span { display:block!important; margin:0!important; padding:10px; border-radius:10px; text-align:center; cursor:pointer; }
.segmented label:has(input:checked) span { background:#fff; color:var(--teal); box-shadow:0 3px 10px rgba(0,0,0,.08); }
.caregiver-select { margin-top:12px; }
.caregiver-select label { display:flex; align-items:center; gap:12px; padding:13px; border:1px solid var(--line); border-radius:13px; cursor:pointer; }
.caregiver-select label:has(input:checked) { border-color:var(--teal); background:var(--teal-soft); }
.caregiver-select input { width:18px; }
.caregiver-select label > div { flex:1; }
.caregiver-select small { margin:0; }

/* Booking details and timeline */
.booking-detail-grid,.job-detail-grid,.admin-detail-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr); gap:20px; align-items:start; }
.booking-detail-grid > .span-2,.job-detail-grid > .span-2,.admin-detail-grid > .span-2 { grid-column:1 / -1; }
.status-steps { display:grid; grid-template-columns:repeat(6,1fr); gap:5px; margin:18px 0; }
.status-steps div { position:relative; padding-top:22px; color:var(--muted); font-size:.68rem; text-align:center; }
.status-steps div::before { content:""; position:absolute; left:50%; top:4px; width:10px; height:10px; transform:translateX(-50%); border:3px solid #fff; border-radius:50%; background:#c5d0ce; box-shadow:0 0 0 1px #c5d0ce; }
.status-steps div::after { content:""; position:absolute; right:50%; top:8px; width:100%; height:2px; background:#dfe6e4; z-index:-1; }
.status-steps div:first-child::after { display:none; }
.status-steps .done { color:var(--teal); font-weight:800; }
.status-steps .done::before,.status-steps .done::after { background:var(--teal); box-shadow:0 0 0 1px var(--teal); }
.care-timeline { display:grid; gap:0; }
.care-timeline article { position:relative; display:grid; grid-template-columns:18px 1fr; gap:14px; min-height:85px; }
.care-timeline article > span { position:relative; width:12px; height:12px; margin-top:4px; border:3px solid #fff; border-radius:50%; background:var(--teal); box-shadow:0 0 0 2px var(--teal); z-index:1; }
.care-timeline article::after { content:""; position:absolute; left:5px; top:18px; bottom:-2px; width:2px; background:var(--line); }
.care-timeline article:last-child::after { display:none; }
.care-timeline h3 { margin:3px 0; font-size:1rem; letter-spacing:-.015em; }
.care-timeline p { margin:0; font-size:.8rem; }
.care-timeline article.alert > span { background:var(--red); box-shadow:0 0 0 2px var(--red); }
.care-timeline.compact article { min-height:65px; }
.message-thread { display:grid; gap:10px; max-height:420px; overflow-y:auto; padding:12px; border:1px solid var(--line); border-radius:14px; background:var(--mist); }
.message { max-width:78%; padding:10px 13px; border-radius:14px 14px 14px 4px; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.04); }
.message.mine { justify-self:end; border-radius:14px 14px 4px 14px; background:var(--teal); color:#fff; }
.message.mine p,.message.mine small { color:rgba(255,255,255,.8); }
.message p { margin:0; color:var(--ink); }
.message small { display:block; margin-top:4px; color:var(--muted); font-size:.68rem; }
.message-form { display:grid; grid-template-columns:1fr auto; gap:10px; margin-top:10px; }
.media-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.media-grid a { display:block; overflow:hidden; aspect-ratio:1; border-radius:12px; background:var(--mist); }
.media-grid img { width:100%; height:100%; object-fit:cover; }
.review-card { padding:18px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.review-card-head { display:flex; justify-content:space-between; gap:14px; }
.big-rating { color:var(--amber); font-size:1.35rem; font-weight:900; }
.review-meta { display:flex; flex-wrap:wrap; gap:8px; color:var(--muted); font-size:.76rem; }
.danger-panel,.danger-section { border-color:#efb7b7; background:#fffafa; }
.danger-details summary { color:var(--red); cursor:pointer; font-weight:800; }

/* Tracking */
.tracking-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(310px,.45fr); gap:20px; }
.map-panel { padding:0; overflow:hidden; }
.care-map { height:min(68vh,670px); min-height:430px; background:#dfe9e5; }
.map-legend { display:flex; flex-wrap:wrap; gap:18px; padding:13px 17px; border-top:1px solid var(--line); color:var(--muted); font-size:.77rem; }
.map-legend span { display:flex; align-items:center; gap:7px; }
.map-legend i { width:10px; height:10px; border-radius:50%; background:var(--teal); }
.map-legend .pet i { background:var(--coral); }
.live-operations { display:grid; gap:16px; }
.live-header { display:flex; align-items:center; gap:13px; }
.live-status { padding:10px 12px; border-radius:12px; background:var(--teal-soft); color:var(--teal); font-weight:800; }
.dual-track { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.dual-track > div { padding:13px; border-radius:12px; background:var(--mist); }
.dual-track b,.dual-track span,.dual-track small { display:block; }
.dual-track small { color:var(--muted); }
.live-events { max-height:340px; overflow:auto; }
.live-events article { padding:10px 0; border-top:1px solid var(--line); }
.live-events article:first-child { border-top:0; }
.live-events b,.live-events small { display:block; }
.live-events small { color:var(--muted); }

/* Caregiver */
.approval-banner { display:flex; align-items:center; gap:18px; margin-bottom:20px; padding:20px 23px; border:1px solid #efd5a4; border-radius:17px; background:var(--amber-soft); }
.approval-banner > span { font-size:1.7rem; }
.approval-banner div { flex:1; }
.approval-banner p { margin:3px 0 0; color:#745116; font-size:.85rem; }
.caregiver-dashboard { display:grid; grid-template-columns:1.2fr .8fr; gap:20px; }
.caregiver-hero { padding:26px; border-radius:var(--radius); background:linear-gradient(135deg,var(--ink),#174d4a); color:#fff; }
.caregiver-hero p { color:rgba(255,255,255,.68); }
.online-control { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin-top:20px; padding:16px; border-radius:14px; background:rgba(255,255,255,.1); }
.online-indicator { display:flex; align-items:center; gap:9px; }
.online-indicator i { width:10px; height:10px; border-radius:50%; background:#849390; }
.online-indicator.active i { background:var(--lime); box-shadow:0 0 0 5px rgba(201,228,109,.14); }
.offer-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.offer-card { padding:20px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.offer-card.urgent { border-color:#f3b7ad; box-shadow:0 8px 24px rgba(236,109,85,.12); }
.offer-head,.offer-bottom { display:flex; justify-content:space-between; gap:14px; align-items:center; }
.offer-card h2 { margin:14px 0 5px; font-size:1.25rem; }
.offer-card p { margin-bottom:12px; }
.offer-bottom { padding-top:13px; border-top:1px solid var(--line); color:var(--muted); font-size:.8rem; }
.offer-decision { display:flex; gap:8px; margin-top:14px; }
.event-buttons { display:flex; flex-wrap:wrap; gap:8px; }
.pin-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.pin-form { padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--mist); }
.location-heartbeat { padding:16px; border:1px dashed #9dc5bd; border-radius:14px; background:var(--teal-soft); }
.skill-checks { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.verification-overview { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.verification-overview > div { padding:15px; border-radius:13px; background:var(--mist); }
.verification-overview span,.verification-overview b { display:block; }
.verification-overview span { color:var(--muted); font-size:.73rem; }
.approval-rings { display:flex; gap:12px; }
.ring { width:64px; height:64px; display:grid; place-items:center; border-radius:50%; background:conic-gradient(var(--teal) calc(var(--value,0)*1%),#e4ebe9 0); }
.ring::after { content:attr(data-label); width:49px; height:49px; display:grid; place-items:center; border-radius:50%; background:#fff; color:var(--ink); font-size:.7rem; font-weight:900; }

/* Admin operations */
.operations-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.action-panel { padding:20px; border-radius:16px; background:var(--ink); color:#fff; }
.action-panel p { color:rgba(255,255,255,.68); }
.admin-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.filter-bar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; margin-bottom:18px; }
.filter-bar label { min-width:150px; }
.table-panel { padding:0; overflow:hidden; }
.responsive-table { width:100%; overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:.84rem; }
th,td { padding:13px 14px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
th { position:sticky; top:0; background:#f6f8f7; color:var(--muted); font-size:.68rem; font-weight:900; letter-spacing:.07em; text-transform:uppercase; }
td small { display:block; color:var(--muted); }
tr:hover td { background:#fafcfb; }
.row-action { white-space:nowrap; }
.inline-form { display:flex; align-items:center; gap:8px; }
.inline-form select,.inline-form input { min-width:110px; min-height:38px; padding:.5rem .6rem; }
.caregiver-review-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.decision-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.decision-card { padding:16px; border:1px solid var(--line); border-radius:13px; }
.decision-card label { display:flex; gap:8px; }
.facts-table { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.dispatch-flow { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:16px 0; }
.dispatch-flow > div { padding:12px; border-radius:11px; background:var(--mist); text-align:center; }
.dispatch-flow b,.dispatch-flow span { display:block; }
.dispatch-flow span { color:var(--muted); font-size:.7rem; }
.case-grid { display:grid; gap:16px; }
.case-card { padding:22px; border:1px solid var(--line); border-left:5px solid #b8c5c2; border-radius:16px; background:#fff; }
.case-card.priority-urgent,.case-card.priority-high { border-left-color:var(--amber); }
.case-card.priority-critical { border-left-color:var(--red); }
.case-head { display:flex; justify-content:space-between; gap:14px; }
.case-card h2 { margin:14px 0 8px; font-size:1.25rem; }
.case-meta { display:flex; flex-wrap:wrap; gap:9px 18px; color:var(--muted); font-size:.77rem; }
.case-actions,.incident-update { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px; margin-top:16px; padding-top:16px; border-top:1px solid var(--line); }
.incident-update label:not(.full):not(.check-line) { min-width:180px; flex:1; }
.incident-update .full { width:100%; flex-basis:100%; }
.service-admin-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }

/* Toasts */
.toast { position:fixed; right:22px; top:92px; z-index:2000; display:flex; align-items:flex-start; gap:15px; max-width:min(430px,calc(100vw - 30px)); padding:15px 17px; border:1px solid var(--line); border-left:5px solid var(--teal); border-radius:14px; background:#fff; box-shadow:var(--shadow); animation:toastIn .25s ease both; }
.toast span { flex:1; }
.toast button { width:28px; height:28px; border:0; border-radius:50%; background:var(--mist); color:var(--ink); }
.toast-error { border-left-color:var(--red); }
.toast-warning { border-left-color:var(--amber); }
.toast-success { border-left-color:var(--teal); }
@keyframes toastIn { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:none} }

/* Errors */
.error-page { min-height:70vh; display:grid; place-items:center; padding:70px 20px; text-align:center; }
.error-page img { width:min(360px,80vw); margin:0 auto 20px; }
.error-code { color:var(--coral); font-size:.8rem; font-weight:900; letter-spacing:.12em; }
.error-page h1 { margin:.4rem 0 1rem; font-size:clamp(2.2rem,5vw,4rem); }

/* Leaflet refinements */
.leaflet-container { font-family:inherit; }
.leaflet-control-attribution { font-size:10px!important; }
.tp-map-marker { width:34px!important; height:34px!important; display:grid; place-items:center; border:3px solid #fff; border-radius:50%; background:var(--teal); color:#fff; box-shadow:0 5px 13px rgba(0,0,0,.25); font-size:16px; }
.tp-map-marker.pet { background:var(--coral); }

/* Responsive */
@media (max-width: 1100px) {
  .public-nav { gap:.85rem; font-size:.86rem; }
  .hero-grid { grid-template-columns:1fr 430px; gap:35px; }
  .app-sidebar { width:220px; }
  .app-main { margin-left:220px; }
  .stat-grid { grid-template-columns:repeat(2,1fr); }
  .pet-card-grid { grid-template-columns:repeat(2,1fr); }
  .operations-grid { grid-template-columns:repeat(2,1fr); }
  .tracking-layout { grid-template-columns:1fr; }
  .care-map { height:520px; }
}

@media (max-width: 900px) {
  .nav-toggle { display:flex; }
  .public-nav { position:absolute; left:20px; right:20px; top:68px; display:none; flex-direction:column; align-items:stretch; gap:3px; padding:16px; border:1px solid var(--line); border-radius:17px; background:#fff; box-shadow:var(--shadow); }
  .public-nav.open { display:flex; }
  .public-nav a { padding:10px 12px; border-radius:10px; }
  .public-nav .button { margin-top:4px; }
  .hero-grid,.urgent-hero .container,.split,.lost-grid,.contact-grid,.auth-wrap { grid-template-columns:1fr; }
  .hero-visual { max-width:620px; margin-inline:auto; }
  .fc-one { left:0; }
  .fc-two { right:0; }
  .signal-grid { grid-template-columns:repeat(2,1fr); }
  .feature-grid,.service-cards,.pricing-grid,.gate-grid { grid-template-columns:repeat(2,1fr); }
  .steps { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:1.4fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column:1/-1; }
  .auth-art { min-height:320px; }
  .app-sidebar { position:static; width:auto; display:flex; gap:5px; overflow-x:auto; padding:10px 16px; border-right:0; border-bottom:1px solid var(--line); white-space:nowrap; }
  .app-sidebar .side-label,.app-sidebar .side-note { display:none; }
  .app-sidebar a { flex:0 0 auto; margin:0; }
  .app-frame { padding-top:var(--topbar); }
  .app-main { margin-left:0; padding-top:25px; }
  .booking-detail-grid,.job-detail-grid,.admin-detail-grid,.booking-builder,.pet-profile-grid,.caregiver-dashboard { grid-template-columns:1fr; }
  .checkout-summary { position:static; }
  .dashboard-grid { grid-template-columns:1fr; }
  .span-2 { grid-column:auto; }
  .booking-detail-grid > .span-2,.job-detail-grid > .span-2,.admin-detail-grid > .span-2 { grid-column:auto; }
  .service-admin-grid,.admin-grid,.caregiver-review-grid { grid-template-columns:1fr; }
}

@media (max-width: 680px) {
  :root { --topbar:64px; }
  .container { width:min(calc(100% - 28px),var(--container)); }
  body { font-size:15px; }
  .desktop-only { display:none!important; }
  .site-header .brand img { width:146px; }
  .nav-row { min-height:68px; }
  .hero { padding-top:48px; }
  .hero-actions .button { width:100%; }
  .floating-card { position:relative; inset:auto!important; margin:10px auto; width:min(100%,330px); }
  .signal-grid,.feature-grid,.service-cards,.pricing-grid,.gate-grid,.safety-layers,.steps,.footer-grid,.form-grid,.choice-grid,.choice-grid.three,.choice-grid.four,.pet-card-grid,.metric-row,.offer-grid,.verification-overview,.decision-grid,.facts-table,.passport-grid,.pin-grid,.operations-grid { grid-template-columns:1fr; }
  .section-heading,.cta-band .container,.app-heading,.footer-bottom { align-items:flex-start; flex-direction:column; }
  .section-heading { display:flex; }
  .price-card.featured { transform:none; }
  .footer-grid > div:first-child { grid-column:auto; }
  .footer-bottom { display:flex; }
  .auth-section { padding:0; background:#fff; }
  .auth-wrap { border:0; border-radius:0; box-shadow:none; }
  .auth-art { min-height:250px; padding:28px; }
  .auth-panel { padding:30px 22px 45px; }
  .app-topbar { padding:0 14px; }
  .app-brand img { width:128px; }
  .app-top-actions { gap:9px; }
  .app-sidebar { top:var(--topbar); }
  .app-sidebar a { min-height:40px; padding:8px 10px; font-size:.78rem; }
  .app-main { padding:22px 14px 60px; }
  .app-heading h1 { font-size:2rem; }
  .heading-actions { width:100%; }
  .heading-actions .button { flex:1; }
  .panel { padding:18px; }
  .stat-grid { grid-template-columns:1fr 1fr; }
  .metric-card { padding:16px; }
  .metric-card strong { font-size:1.5rem; }
  .booking-row { grid-template-columns:auto 1fr auto; }
  .booking-row .status { grid-column:2; }
  .booking-row > b { display:none; }
  .empty-state { flex-direction:column; min-height:300px; padding:28px; text-align:center; }
  .empty-state img { width:180px; max-width:100%; }
  .trust-banner { align-items:flex-start; flex-wrap:wrap; }
  .trust-banner .button { width:100%; }
  .pet-card-photo { height:220px; }
  .tag-preview { grid-template-columns:1fr; text-align:center; }
  .qr-code { margin-inline:auto; }
  .status-steps { grid-template-columns:repeat(3,1fr); row-gap:15px; }
  .message { max-width:90%; }
  .media-grid { grid-template-columns:repeat(2,1fr); }
  .tracking-layout { gap:14px; }
  .care-map { min-height:360px; height:52vh; }
  .dual-track { grid-template-columns:1fr; }
  .case-actions,.incident-update { align-items:stretch; flex-direction:column; }
  .case-actions > *,.incident-update > * { width:100%; }
  .inline-form { flex-direction:column; align-items:stretch; }
  .toast { left:14px; right:14px; top:76px; }
}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns:1fr; }
  .app-top-actions .notification-chip { display:none; }
  .button-row .button { width:100%; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}

@media print {
  .site-header,.site-footer,.app-topbar,.app-sidebar,.button,.toast { display:none!important; }
  .app-main { margin:0; padding:0; }
  body { background:#fff; color:#000; }
  .panel { box-shadow:none; break-inside:avoid; }
}

/* NearPaw v1.3 completion refinements */
.heading-line,.heading-actions,.button-row { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.detail-copy { color:var(--muted); line-height:1.7; }
.full-row,.full { grid-column:1/-1; }
.form-grid.five { grid-template-columns:repeat(5,minmax(0,1fr)); }
.form-grid.six { grid-template-columns:repeat(6,minmax(0,1fr)); }
.offer-grid.wide { grid-template-columns:repeat(3,minmax(0,1fr)); }
.simple-list { display:grid; gap:8px; }
.simple-list > a,.simple-list > article { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:14px; padding:13px 14px; border:1px solid var(--line); border-radius:12px; background:#fff; color:inherit; text-decoration:none; }
.simple-list > a:hover { border-color:#9fc8c0; box-shadow:0 8px 22px rgba(16,42,42,.08); }
.simple-list strong,.simple-list span,.simple-list small { min-width:0; }
.simple-list span,.simple-list small { color:var(--muted); }
.event-list { display:grid; gap:0; }
.event-list .event { position:relative; display:grid; grid-template-columns:72px 1fr; gap:12px; padding:12px 0 12px 22px; border-left:2px solid #dbe4e2; }
.event-list .event::before { content:""; position:absolute; left:-6px; top:18px; width:10px; height:10px; border-radius:50%; background:#c8d3d1; }
.event-list .event.done::before,.event-list .event.active::before { background:var(--teal); }
.event-list .event.active { color:var(--teal); font-weight:800; }
.caregiver-panel { display:grid; grid-template-columns:1.1fr .9fr; align-items:center; gap:42px; padding:44px; border-radius:30px; background:linear-gradient(135deg,var(--ink),#174d4a); color:#fff; overflow:hidden; }
.caregiver-panel p { color:rgba(255,255,255,.72); }
.caregiver-panel img { width:100%; max-height:430px; object-fit:contain; }
.support-grid { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:20px; }
.tab-panels { display:grid; gap:20px; }
.dispatch-admin { display:grid; gap:16px; }
.incident-mini-list { display:grid; gap:10px; }
.incident-mini-list article { padding:13px; border:1px solid var(--line); border-left:4px solid var(--amber); border-radius:12px; }
.risk-flags .danger,.badge-list .danger { background:var(--red-soft); color:var(--red); }
.risk-flags .warning,.badge-list .warning { background:var(--amber-soft); color:#8a5c0b; }
.risk-flags > span,.badge-list > span { display:inline-flex; padding:5px 9px; border-radius:999px; background:var(--mist); font-size:.72rem; font-weight:800; }
.segmented a { display:block; padding:10px; border-radius:10px; color:var(--muted); text-align:center; text-decoration:none; font-weight:800; }
.segmented a.active { background:#fff; color:var(--teal); box-shadow:0 3px 10px rgba(0,0,0,.08); }
.status-steps { grid-template-columns:repeat(auto-fit,minmax(68px,1fr)); }
.status-steps > * { position:relative; padding-top:22px; color:var(--muted); font-size:.68rem; text-align:center; }
.status-steps > *::before { content:""; position:absolute; left:50%; top:4px; width:10px; height:10px; transform:translateX(-50%); border:3px solid #fff; border-radius:50%; background:#c5d0ce; box-shadow:0 0 0 1px #c5d0ce; }
.status-steps > *::after { content:""; position:absolute; right:50%; top:8px; width:100%; height:2px; background:#dfe6e4; z-index:-1; }
.status-steps > *:first-child::after { display:none; }
.status-steps > *.done { color:var(--teal); font-weight:800; }
.status-steps > *.done::before,.status-steps > *.done::after { background:var(--teal); box-shadow:0 0 0 1px var(--teal); }
.live-status .signal-cards { display:grid; grid-template-columns:1fr; gap:10px; }
.live-status .signal-cards > div { display:block; padding:13px; border-radius:12px; background:var(--mist); }
.live-status .signal-cards span,.live-status .signal-cards b,.live-status .signal-cards small { display:block; }
.live-status .signal-cards span,.live-status .signal-cards small { color:var(--muted); }
.pin-form label { margin-top:10px; }
.pin-form input[type="file"] { padding:.55rem; background:#fff; }
.pin-form .check-line { align-items:flex-start; margin:12px 0; }
.fine-print { color:var(--muted); font-size:.75rem; }
.kicker { color:var(--teal); font-size:.75rem; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
@media (max-width:1100px){.offer-grid.wide{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.five,.form-grid.six{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){.caregiver-panel,.support-grid{grid-template-columns:1fr}.caregiver-panel{padding:28px}.offer-grid.wide{grid-template-columns:1fr}.simple-list>a,.simple-list>article{grid-template-columns:1fr}.form-grid.five,.form-grid.six{grid-template-columns:1fr}.status-steps{grid-template-columns:repeat(3,1fr)}}

/* NearPaw v1.3.2 public-layout and dashboard hotfix */
.feature-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-heading.centre {
  display: block;
  max-width: 860px;
  margin: 0 auto 46px;
  text-align: center;
}
.section-heading.centre .eyebrow {
  justify-content: center;
}
.section-heading.centre h2 {
  max-width: 780px;
  margin: .5rem auto .85rem;
}
.section-heading.centre p {
  max-width: 720px;
  margin: 0 auto;
}

.section-dark .timeline-demo {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
  padding: 0;
}
.section-dark .timeline-demo > .phone-frame {
  display: block;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}
.section-dark .timeline-demo .phone-frame > div {
  min-height: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.section-dark .timeline-demo .phone-frame > .phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 20px;
  border-radius: 28px 28px 0 0;
  background: #fff;
  color: var(--ink);
  font-size: .76rem;
  font-weight: 850;
}
.section-dark .timeline-demo .phone-frame > .mini-map {
  display: block;
  min-height: 250px;
  overflow: hidden;
  background: linear-gradient(35deg,#dcebe6 25%,transparent 25%) 0 0/48px 48px,
              linear-gradient(-35deg,#edf4f0 25%,transparent 25%) 0 0/48px 48px,
              #f6f1e7;
}
.section-dark .timeline-demo .phone-frame > .mini-map img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.section-dark .timeline-demo .phone-frame > .event-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 18px 22px 20px;
  border-radius: 0 0 28px 28px;
  background: #f6f8f7;
  color: var(--ink);
}
.section-dark .timeline-demo .phone-frame .event {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: .82rem;
}
.section-dark .timeline-demo .phone-frame .event b,
.section-dark .timeline-demo .phone-frame .event span {
  min-width: 0;
}

.section-dark .timeline-demo > .proof-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0;
}
.section-dark .timeline-demo .proof-points > article {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}
.section-dark .timeline-demo .proof-points > article > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: rgba(201,228,109,.16);
  color: var(--lime);
  font-size: 1.15rem;
  font-weight: 900;
}
.section-dark .timeline-demo .proof-points > article > div {
  display: block;
  min-width: 0;
  font-size: 1rem;
}
.section-dark .timeline-demo .proof-points h3 {
  margin: 0 0 7px;
  font-size: 1.14rem;
}
.section-dark .timeline-demo .proof-points p {
  margin: 0;
  font-size: .94rem;
  line-height: 1.62;
}

.service-cards:not(.large) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.steps article > span {
  display: none;
}

.stat-grid.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.stat-grid > article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.stat-grid > article > span,
.stat-grid > article > strong,
.stat-grid > article > small {
  display: block;
}
.stat-grid > article > span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}
.stat-grid > article > strong {
  margin: 7px 0 3px;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -.04em;
}
.stat-grid > article > small {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
}
.stat-grid > article.urgent { border-top: 3px solid var(--coral); }
.stat-grid > article.danger { border-top: 3px solid var(--red); }

@media (max-width: 1180px) {
  .feature-grid.four,
  .service-cards:not(.large) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-grid.six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .section-dark .timeline-demo {
    grid-template-columns: 1fr;
  }
  .section-dark .timeline-demo > .proof-points {
    max-width: 680px;
    margin-inline: auto;
  }
}

@media (max-width: 680px) {
  .feature-grid.four,
  .service-cards:not(.large),
  .stat-grid.six {
    grid-template-columns: 1fr;
  }
  .section-heading.centre {
    display: block;
    margin-bottom: 34px;
    text-align: left;
  }
  .section-heading.centre .eyebrow {
    justify-content: flex-start;
  }
  .section-heading.centre h2,
  .section-heading.centre p {
    margin-left: 0;
    margin-right: 0;
  }
  .section-dark .timeline-demo .phone-frame > .mini-map,
  .section-dark .timeline-demo .phone-frame > .mini-map img {
    min-height: 220px;
    height: 220px;
  }
}


/* NearPaw v1.4.1 resilience additions */
.segmented > span.disabled { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:.55rem .9rem; border-radius:999px; color:var(--muted-2); font-weight:750; cursor:not-allowed; }
.app-main, main { min-width:0; }
.responsive-table { max-width:100%; }
