@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap');

:root {
  --ink: #172040; --ink-2: #10183a; --muted: #626a82; --paper: #d9d3ff;
  --card: #fffefa; --line: #b9b4d3; --teal: #009f91; --mint: #bdf5df;
  --coral: #ff657a; --violet: #7357ff; --sun: #ffe45e; --sky: #58daf3;
  --shadow: 0 22px 60px rgba(32, 24, 76, .13);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif; color: var(--ink); background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 93% -5%, #ff86bd 0, transparent 27rem), radial-gradient(circle at -8% 32%, #fff18b 0, transparent 22rem), radial-gradient(circle at 80% 72%, #8ee9dc 0, transparent 25rem), var(--paper); }
a { color: inherit; }
img { display: block; }
button, input { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Sora", ui-sans-serif, sans-serif; letter-spacing: -.055em; }
h1 { margin-bottom: 18px; font-size: clamp(3rem, 6.3vw, 5.8rem); line-height: .92; }
h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
h3 { margin-bottom: 3px; font-size: 1.2rem; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: .69rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.lede { max-width: 46rem; margin-bottom: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.6; }
.quiet { color: var(--muted); font-size: .82rem; }
.topbar { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; padding: 0 5vw; border-bottom: 2px solid rgba(23,32,64,.18); background: rgba(217,211,255,.86); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-weight: 700; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border: 2px solid var(--ink); border-radius: 11px 11px 15px 11px; color: var(--ink); background: var(--sun); box-shadow: 3px 3px 0 var(--coral); font-family: "Sora", sans-serif; }
.household { color: var(--muted); font-size: .82rem; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(7,132,119,.12); }
.account { position: relative; justify-self: end; }
.account summary { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: white; background: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
.account summary::-webkit-details-marker { display: none; }
.account-menu { position: absolute; right: 0; display: grid; gap: 5px; width: 200px; margin-top: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.account-menu span { color: var(--muted); font-size: .76rem; }
.account-menu > a { margin-top: 6px; color: var(--teal); font-size: .76rem; font-weight: 800; text-decoration: none; }
.account-menu form { margin-top: 8px; }
.account-menu button { width: 100%; padding: 9px; border: 0; border-radius: 9px; color: var(--ink); background: var(--mint); font-weight: 700; cursor: pointer; }
main { width: min(1200px, 90vw); margin: 0 auto; padding: 62px 0 100px; }
.hero { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; margin-bottom: 36px; }
.hero > div:first-child { max-width: 800px; }
.freshness { display: grid; gap: 3px; min-width: 150px; padding: 14px 0 6px 20px; border-left: 1px solid var(--line); }
.freshness span { color: var(--muted); font-size: .74rem; }
.latest-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-bottom: 70px; padding: 22px 25px; overflow: hidden; border: 2px solid var(--ink); border-radius: 22px; color: white; background: linear-gradient(120deg, #ff7a59, #f74391 56%, #8d55df); box-shadow: 8px 8px 0 rgba(23,32,64,.22); }
.latest-strip .pulse-icon { position: static; color: var(--ink) !important; border: 2px solid var(--ink); background: var(--sun); }
.latest-strip > div { display: flex; align-items: baseline; gap: 8px; }
.latest-strip p { margin: 0 12px 0 0; color: #fff1a8; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.latest-strip > div strong { font-family: "Sora", sans-serif; font-size: 1.25rem; }
.latest-strip > div span { color: #fff3ef; font-size: .82rem; }
.latest-time { display: grid !important; gap: 2px !important; text-align: right; }
.latest-time strong { font-size: .95rem !important; }
.latest-time span { font-size: .7rem !important; }
.pulse-card { position: relative; display: grid; gap: 5px; min-height: 135px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.8); box-shadow: 0 14px 42px rgba(24,49,54,.04); }
.pulse-card.primary { color: white; border-color: var(--ink); background: var(--ink); }
.pulse-card p { margin: 0; color: var(--muted); font-size: .78rem; }
.pulse-card.primary p, .pulse-card.primary span { color: #b6c8c9; }
.pulse-card strong { align-self: end; font-family: "Sora", sans-serif; font-size: 1.55rem; }
.pulse-card > span:not(.pulse-icon) { font-size: .78rem; }
.pulse-icon { position: absolute; right: 18px; top: 16px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #79d1c1 !important; background: rgba(255,255,255,.09); }
.section-block { margin-bottom: 70px; scroll-margin-top: 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading a { color: var(--teal); font-weight: 700; text-decoration: none; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.cat-card { position: relative; overflow: hidden; border: 2px solid var(--ink); border-radius: 25px; background: var(--card); box-shadow: 7px 7px 0 #63daca; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.cat-card:nth-child(4n+2) { box-shadow: 7px 7px 0 #ff7794; }
.cat-card:nth-child(4n+3) { box-shadow: 7px 7px 0 #ffe45e; }
.cat-card:nth-child(4n) { box-shadow: 7px 7px 0 #947fff; }
.cat-card:hover { transform: translate(-2px, -4px); box-shadow: 10px 12px 0 var(--ink); }
.cat-photo-wrap { position: relative; height: 210px; overflow: hidden; background: linear-gradient(135deg, #d9b397, #7c5d54); }
.cat-photo { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.cat-card:hover .cat-photo { transform: scale(1.035); }
.cat-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255,255,255,.9); font-family: "Sora", sans-serif; font-size: 5rem; background: linear-gradient(135deg, var(--coral), var(--violet)); }
.status-dot { position: absolute; right: 15px; bottom: 15px; width: 12px; height: 12px; border: 3px solid white; border-radius: 50%; background: #1dcc86; box-shadow: 0 0 0 2px var(--ink); box-sizing: content-box; }
.cat-body { padding: 20px; }
.card-title { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.card-title p { display: grid; gap: 2px; margin: 0; color: var(--muted); font-size: .7rem; }
.card-title p strong, .card-title p span { font-size: .76rem; font-weight: 700; }
.card-title p strong { color: var(--teal); }
.card-title p span { color: var(--ink); }
.card-title > span { color: var(--teal); font-size: 1.25rem; }
.last-meal { display: grid; gap: 3px; margin: 15px 0 0; padding: 13px 14px; border: 1px solid #bce9df; border-radius: 13px; background: linear-gradient(120deg, #d8faef, #d7f4ff); }
.last-meal > span { color: var(--teal); font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.last-meal strong { font-size: .78rem; }
.last-meal small { color: #557477; font-size: .63rem; line-height: 1.35; }
.preference { display: grid; gap: 2px; padding: 17px 0; }
.preference span, .preference small { color: var(--muted); font-size: .7rem; }
.preference strong { margin-top: 2px; }
.preference-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.preference-pair .preference + .preference { padding-left: 14px; border-left: 1px solid var(--line); }
.preference-pair strong { overflow-wrap: anywhere; }
.visit-summary { display: grid; gap: 3px; padding: 13px 14px; border: 2px solid var(--ink); border-radius: 13px; background: linear-gradient(120deg, #ffc1d4, #ff91ba); }
.visit-summary.paired { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.visit-summary.paired > div { display: grid; justify-items: center; gap: 3px; text-align: center; }
.visit-summary.paired > div + div { padding-left: 12px; border-left: 1px solid rgba(0,143,130,.2); }
.pace { justify-self: center; margin-top: 5px; padding: 4px 7px; border: 1px solid rgba(23,32,64,.28); border-radius: 99px; color: #174f5f; background: rgba(255,255,255,.78); font-size: .58rem; font-style: normal; font-weight: 800; letter-spacing: .04em; }
.pace.above-average { color: #865318; background: #fff0bd; }
.pace.below-average { color: #854335; background: #ffe0db; }
.expected-now { color: #4f716f; font-size: .56rem; line-height: 1.25; }
.visit-summary strong { font-size: .82rem; }
.visit-summary span { color: #376f6b; font-size: .68rem; }
.mini-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.mini-metrics.two { grid-template-columns: repeat(2, 1fr); }
.mini-metrics div { display: grid; gap: 2px; }
.mini-metrics strong { font-size: .92rem; }
.mini-metrics span { color: var(--muted); font-size: .64rem; line-height: 1.2; }
.feeder-stage { margin-bottom: 28px; padding: 32px; border-radius: 30px; color: white; background: var(--ink-2); box-shadow: 0 28px 80px rgba(14,39,45,.18); }
.feeder-stage.standalone { max-width: 1000px; margin: 0 auto; }
.section-heading.light .eyebrow, .feeder-stage .eyebrow { color: #73cebd; }
.section-heading.light a { color: #73cebd; }
.feeder-list { display: grid; gap: 8px; }
.feeder-row { display: grid; grid-template-columns: 40px minmax(190px, 1.4fr) minmax(150px, .8fr) 80px 20px; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 15px; background: rgba(255,255,255,.055); text-decoration: none; transition: background .2s ease; }
.feeder-row:hover { background: rgba(255,255,255,.11); }
.rank { color: #73cebd; font-weight: 700; font-variant-numeric: tabular-nums; }
.feeder-row div { display: grid; gap: 3px; }
.feeder-row span, .feeder-row small { color: #aabec0; font-size: .72rem; }
.feeder-row b { color: #73cebd; }
.feeder-dashboard { margin-bottom: 30px; }
.feeder-dashboard .section-heading > a { color: var(--teal); font-weight: 800; text-decoration: none; }
.feeder-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.feeder-card { overflow: hidden; border: 2px solid var(--ink); border-radius: 24px; background: var(--card); box-shadow: 6px 6px 0 rgba(23,32,64,.22); }
.feeder-card > header { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 18px 20px; color: white; background: linear-gradient(115deg, #087b74, #00ad9d); }
.feeder-card:nth-child(3n+2) > header { background: linear-gradient(115deg, #5338c8, #896cff); }
.feeder-card:nth-child(3n) > header { color: var(--ink); background: linear-gradient(115deg, #ffe45e, #ff9c68); }
.feeder-number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--ink); background: var(--sun); font-weight: 800; }
.feeder-card:nth-child(3n) .feeder-number { color: white; background: var(--coral); }
.feeder-card header > div:last-child { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; }
.feeder-card header span { color: rgba(255,255,255,.7); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.feeder-card:nth-child(3n) header span, .feeder-card:nth-child(3n) header small { color: rgba(21,51,58,.67); }
.feeder-card header strong { justify-self: end; font-family: "Sora", sans-serif; }
.feeder-card header small { grid-column: 1 / -1; justify-self: end; color: rgba(255,255,255,.65); font-size: .68rem; }
.feeder-name { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 14px; }
.feeder-name h3 { font-family: "Sora", sans-serif; font-size: 1.15rem; }
.feeder-name p { margin: 0; color: var(--muted); font-size: .7rem; }
.feeder-name > a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink); background: var(--mint); font-weight: 800; text-decoration: none; }
.feeder-events { padding: 0 20px 8px; }
.feeder-events > p { margin: 0 0 8px; color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.feeder-events > a { display: grid; grid-template-columns: 32px 1fr auto auto; align-items: center; gap: 9px; min-height: 47px; border-top: 1px solid var(--line); text-decoration: none; }
.event-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 10px; color: #365155; background: #d9f3ea; font-size: .68rem; font-weight: 800; }
.feeder-events a:nth-of-type(2) .event-avatar { background: #f0e6ff; }
.feeder-events a:nth-of-type(3) .event-avatar { background: #ffe7d7; }
.feeder-events a strong { font-size: .8rem; }
.feeder-events a small { color: var(--muted); font-size: .66rem; }
.feeder-events a b { min-width: 45px; font-size: .7rem; text-align: right; }
.no-events { padding: 14px 0; color: var(--muted); font-size: .75rem; }
.full-history { display: block; margin: 0 20px 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--teal); font-size: .72rem; font-weight: 800; text-decoration: none; }
.food-note { margin: 18px 0 0; color: var(--muted); font-size: .7rem; text-align: center; }
.memorial-card { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 22px; padding: 26px; border: 2px solid var(--ink); border-radius: 24px; background: linear-gradient(135deg, #f0d9ff, #ffe0ed); box-shadow: 7px 7px 0 #947fff; }
.memorial-photo { width: 74px; height: 74px; overflow: hidden; border: 4px solid white; border-radius: 50%; box-shadow: 0 8px 30px rgba(70,49,85,.12); }
.memorial-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.memorial-photo span { display: grid; place-items: center; height: 100%; color: var(--violet); background: white; font-size: 2rem; }
.memorial-card h2 { font-size: 1.6rem; }
.memorial-card p:last-child { max-width: 650px; margin: 5px 0 0; color: var(--muted); }
.memorial-card a { color: var(--violet); font-weight: 700; text-decoration: none; }
.page-hero { max-width: 800px; margin: 0 auto 42px; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--teal); font-weight: 700; text-decoration: none; }
.detail-hero { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; padding: 40px; border-radius: 30px; background: var(--card); box-shadow: var(--shadow); }
.detail-hero h1 { margin-bottom: 10px; font-size: clamp(3rem, 7vw, 6rem); }
.dark-detail { color: white; background: var(--ink-2); }
.dark-detail .eyebrow { color: #73cebd; }
.dark-detail .lede, .dark-detail .last-use span, .dark-detail .last-use small { color: #aabec0; }
.last-use { display: grid; gap: 4px; min-width: 170px; padding: 18px 0 8px 24px; border-left: 1px solid rgba(128,150,153,.35); }
.last-use span, .last-use small { color: var(--muted); font-size: .72rem; }
.last-use strong { font-size: 1.2rem; }
.cat-detail { grid-template-columns: 150px 1fr auto; align-items: center; }
.detail-cat-photo { width: 150px; height: 150px; overflow: hidden; border-radius: 36px; background: var(--mint); }
.detail-cat-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-cat-photo span { display: grid; place-items: center; height: 100%; font-family: "Sora", sans-serif; font-size: 4rem; }
.memorial-detail { background: linear-gradient(135deg, #f1e9f1, #fffaf2); }
.detail-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 65px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,248,.75); }
.detail-metrics.cat-preferences { grid-template-columns: repeat(4, 1fr); }
.detail-metrics div { display: grid; gap: 4px; padding: 23px; border-right: 1px solid var(--line); }
.detail-metrics div:last-child { border: 0; }
.detail-metrics strong { font-size: 1.3rem; }
.detail-metrics span { color: var(--muted); font-size: .72rem; }
.history { max-width: 1000px; margin: 0 auto; }
.timeline { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.timeline article { position: relative; display: grid; grid-template-columns: 140px 1fr 150px; gap: 28px; align-items: center; min-height: 82px; padding: 18px 24px 18px 38px; border-bottom: 1px solid var(--line); }
.timeline article:last-child { border-bottom: 0; }
.timeline-dot { position: absolute; left: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--mint); }
.timeline time, .timeline span { color: var(--muted); font-size: .72rem; }
.timeline div { display: grid; gap: 3px; }
.timeline div:last-child { text-align: right; }
.empty-state { padding: 60px 28px; border: 1px dashed var(--line); border-radius: 22px; color: var(--muted); text-align: center; background: rgba(255,255,255,.35); }
.error-page { max-width: 700px; margin: 8vh auto; }
.error-page h1 { color: var(--ink); }
.primary-button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 18px; border: 0; border-radius: 12px; color: white; background: var(--ink); font-weight: 700; text-decoration: none; cursor: pointer; }
.login-shell { display: grid; grid-template-columns: 1.15fr .85fr; width: min(1100px, 92vw); min-height: 650px; margin: 2vh auto; overflow: hidden; border: 1px solid var(--line); border-radius: 32px; background: var(--card); box-shadow: 0 35px 100px rgba(24,49,54,.14); }
.login-art { position: relative; display: flex; flex-direction: column; justify-content: end; overflow: hidden; padding: 52px; color: white; background: linear-gradient(145deg, #0f3b3f, #126d67); }
.login-art h1 { position: relative; z-index: 2; margin-bottom: 0; font-size: clamp(3rem, 5vw, 5rem); }
.login-art p { position: relative; z-index: 2; color: #a9dbd2; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.whiskers { position: absolute; z-index: 1; top: 80px; right: 100px; color: rgba(255,255,255,.18); font-size: 12rem; transform: rotate(-18deg); }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-one { top: -100px; left: -80px; width: 330px; height: 330px; background: rgba(124,211,194,.17); }
.orb-two { right: -100px; bottom: 90px; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.14); }
.login-panel { align-self: center; padding: 58px; }
.login-brand { margin-bottom: 65px; }
.login-panel h2 { margin-bottom: 10px; font-size: 2.8rem; }
.login-form { display: grid; gap: 18px; margin-top: 32px; }
.login-form label { display: grid; gap: 7px; color: var(--muted); font-size: .76rem; font-weight: 600; }
.login-form input { width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #fffefa; }
.login-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(7,132,119,.12); }
.form-error { margin-top: 22px; padding: 12px 14px; border-radius: 10px; color: #863f31; background: #f8e4df; font-size: .82rem; }
.privacy-note { margin: 24px 0 0; color: var(--muted); font-size: .7rem; text-align: center; }
.settings-shell { max-width: 900px; margin: 0 auto; }
.settings-shell h1 { max-width: 780px; }
.narrow-settings { max-width: 720px; }
.settings-card { display: grid; grid-template-columns: 1fr 250px; align-items: end; gap: 34px; margin-top: 36px; padding: 34px; border: 2px solid var(--ink); border-radius: 26px; background: var(--card); box-shadow: 8px 8px 0 var(--sky); }
.settings-card h2 { margin-bottom: 10px; }
.settings-action { align-self: end; }
.food-settings-card { box-shadow: 8px 8px 0 var(--mint); }
.pet-settings-card { box-shadow: 8px 8px 0 var(--violet); }
.connection-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; }
.connection-facts div { display: grid; gap: 3px; padding: 14px; border-radius: 13px; background: #efecff; }
.connection-facts dt { color: var(--muted); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.connection-facts dd { margin: 0; font-size: .82rem; font-weight: 800; }
.settings-form { display: grid; gap: 18px; margin-top: 34px; padding: 30px; border: 2px solid var(--ink); border-radius: 24px; background: var(--card); box-shadow: 7px 7px 0 var(--coral); }
.settings-form label { display: grid; gap: 7px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.settings-form input { width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: white; }
.settings-form input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(115,87,255,.13); }
.food-settings-shell { max-width: 980px; }
.saved-banner { margin: 24px 0 -12px; padding: 12px 15px; border: 1px solid #5fcbb9; border-radius: 12px; color: #075f59; background: var(--mint); font-size: .8rem; font-weight: 800; }
.feeder-food-form { gap: 12px; }
.food-form-heading { display: grid; grid-template-columns: minmax(150px, 1fr) repeat(2, minmax(170px, 1fr)); gap: 14px; padding: 0 15px 5px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.feeder-food-row { display: grid; grid-template-columns: minmax(150px, 1fr) repeat(2, minmax(170px, 1fr)); align-items: end; gap: 14px; margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fffdf9; }
.feeder-food-row > strong { color: var(--ink); font-family: "Sora", sans-serif; font-size: .9rem; font-weight: 800; }
.feeder-food-row label span { display: none; }
.feeder-food-row input { padding: 12px 13px; }
.food-orientation-note { margin: 8px 0 4px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.pet-status-shell { max-width: 850px; }
.pet-status-form { gap: 12px; }
.pet-status-row { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(170px, .7fr) 130px; align-items: end; gap: 14px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 16px; background: #fffdf9; }
.pet-status-identity { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.pet-status-avatar { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border: 2px solid var(--ink); border-radius: 15px; background: var(--mint); font-family: "Sora", sans-serif; font-weight: 800; }
.pet-status-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pet-status-row label { display: grid; gap: 7px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.pet-status-row select, .pet-status-row input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white; }
.pet-order-field input { text-align: center; }
.connected-pill { display: inline-flex; margin: 22px 0 0; padding: 8px 12px; border: 1px solid #5fcbb9; border-radius: 99px; color: #075f59; background: var(--mint); font-size: .74rem; font-weight: 800; }
.remove-connection { display: grid; justify-items: start; gap: 7px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(23,32,64,.25); }
.remove-connection button { padding: 0; border: 0; color: #963f51; background: transparent; font-weight: 800; cursor: pointer; }
.remove-connection small { color: var(--muted); }
.household-options { display: grid; gap: 13px; margin-top: 32px; }
.household-options > label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 20px; border: 2px solid var(--ink); border-radius: 18px; background: var(--card); box-shadow: 4px 4px 0 var(--sky); cursor: pointer; }
.household-options input { width: 20px; height: 20px; accent-color: var(--violet); }
.household-options span { display: grid; gap: 3px; }
.household-options small { color: var(--muted); }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .feeder-card-grid { grid-template-columns: 1fr; }
  .feeder-row { grid-template-columns: 34px 1fr 130px 22px; }
  .feeder-row > div:nth-of-type(3), .feeder-row > div:nth-child(4) { display: none; }
  .cat-detail { grid-template-columns: 115px 1fr; }
  .cat-detail .last-use { grid-column: 2; border-left: 0; padding-left: 0; }
  .detail-cat-photo { width: 115px; height: 115px; border-radius: 28px; }
  .detail-metrics.cat-preferences { grid-template-columns: repeat(2, 1fr); }
  .detail-metrics.cat-preferences div:nth-child(2) { border-right: 0; }
  .detail-metrics.cat-preferences div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .login-shell { grid-template-columns: 1fr; }
  .login-art { display: none; }
}
@media (max-width: 640px) {
  .topbar { grid-template-columns: 1fr auto; min-height: 62px; padding: 0 17px; }
  .household { display: none; }
  .brand { font-size: .9rem; }
  .brand-mark { width: 30px; height: 30px; }
  main { width: min(100% - 28px, 520px); padding: 42px 0 100px; }
  h1 { font-size: 3.35rem; }
  .hero { grid-template-columns: 1fr; }
  .freshness { border-left: 0; padding: 0; }
  .cat-grid { grid-template-columns: 1fr; }
  .latest-strip { grid-template-columns: auto 1fr; }
  .latest-time { grid-column: 2; text-align: left; }
  .cat-photo-wrap { height: 245px; }
  .section-heading { align-items: start; }
  .feeder-stage { padding: 22px 14px; border-radius: 22px; }
  .feeder-row { grid-template-columns: 30px 1fr 20px; gap: 8px; padding: 14px 10px; }
  .feeder-row > div:nth-child(3), .feeder-row > div:nth-child(4) { display: none; }
  .memorial-card { grid-template-columns: 60px 1fr; padding: 20px; }
  .memorial-photo { width: 60px; height: 60px; }
  .memorial-card > a { grid-column: 2; }
  .detail-hero { grid-template-columns: 1fr; padding: 26px; }
  .cat-detail { grid-template-columns: 85px 1fr; }
  .detail-cat-photo { width: 85px; height: 85px; border-radius: 22px; }
  .cat-detail .last-use { grid-column: 1 / -1; }
  .last-use { padding: 18px 0 0; border-left: 0; border-top: 1px solid rgba(128,150,153,.35); }
  .detail-metrics { grid-template-columns: 1fr; }
  .detail-metrics.cat-preferences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-metrics div { border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-metrics.cat-preferences div { padding: 18px 16px; }
  .detail-metrics.cat-preferences div:nth-child(odd) { border-right: 1px solid var(--line); }
  .detail-metrics.cat-preferences div:nth-last-child(-n+2) { border-bottom: 0; }
  .timeline article { grid-template-columns: 1fr 1fr; gap: 12px; padding-left: 30px; }
  .timeline time { grid-column: 1 / -1; }
  .login-shell { min-height: calc(100vh - 40px); margin: 0 auto; border-radius: 24px; }
  .login-panel { padding: 34px 25px; }
  .login-brand { margin-bottom: 70px; }
  .settings-card { grid-template-columns: 1fr; padding: 25px; }
  .connection-facts { grid-template-columns: 1fr; }
  .settings-form { padding: 23px; }
  .food-form-heading { display: none; }
  .feeder-food-row { grid-template-columns: 1fr; gap: 10px; }
  .feeder-food-row > strong { display: block; margin-bottom: 3px; }
  .feeder-food-row label span { display: block; }
  .pet-status-row { grid-template-columns: 1fr 105px; gap: 12px; }
  .pet-status-identity { grid-column: 1 / -1; }
  .pet-status-row label { font-size: .84rem; }
  .pet-status-row select, .pet-status-row input { min-height: 50px; font-size: .95rem; }
  .eyebrow { font-size: .76rem; }
  .lede { font-size: 1.12rem; line-height: 1.55; }
  .quiet { font-size: .9rem; }
  .card-title p strong, .card-title p span { font-size: .86rem; }
  .preference span, .preference small { font-size: .79rem; line-height: 1.35; }
  .preference strong { font-size: .98rem; line-height: 1.25; }
  .visit-summary strong { font-size: .9rem; }
  .visit-summary span { font-size: .77rem; line-height: 1.35; }
  .pace { font-size: .67rem; }
  .expected-now { font-size: .65rem; }
  .detail-metrics strong { font-size: 1.12rem; }
  .detail-metrics span, .timeline time, .timeline span { font-size: .84rem; line-height: 1.4; }
  .feeder-name p, .feeder-events a small, .feeder-events a b, .full-history, .food-note { font-size: .8rem; }
  .mobile-nav a { font-size: .72rem; }
  .mobile-nav { position: fixed; z-index: 25; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 8px max(11px, env(safe-area-inset-bottom)); border-top: 2px solid rgba(23,32,64,.2); background: rgba(217,211,255,.96); backdrop-filter: blur(18px); }
  .mobile-nav a { display: grid; gap: 2px; color: var(--muted); font-size: .65rem; text-align: center; text-decoration: none; }
  .mobile-nav a b { font-size: 1.05rem; }
  .mobile-nav a.active { color: var(--teal); }
}
