:root{font-family:Arial,Helvetica,sans-serif;color:#050505;background:#fff;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.page{width:100%;max-width:460px;margin:0 auto;padding:0 12px 38px;overflow:hidden}.celebration{position:relative;height:143px;margin:0 -12px}.heart{position:absolute;display:block;width:39px;height:39px;object-fit:contain;animation:burst .9s cubic-bezier(.18,.8,.24,1.2) both}.h1{left:8%;top:43px;--x:-80px;--y:-55px;animation-delay:.1s}.h2{left:24%;top:23px;--x:-32px;--y:-100px;animation-delay:.16s}.h3{left:64%;top:43px;--x:55px;--y:-85px;animation-delay:.14s}.h4{left:82%;top:14px;--x:125px;--y:-95px;animation-delay:.19s}.h5{left:20%;top:99px;--x:-80px;--y:80px;animation-delay:.22s}.h6{left:86%;top:85px;--x:110px;--y:65px;animation-delay:.12s}.main-heart{width:81px;height:81px;left:50%;top:57px;transform:translateX(-50%);animation:pop .65s cubic-bezier(.2,1.5,.45,1) both}h1{text-align:center;font-size:clamp(22px,6.1vw,28px);line-height:1.12;letter-spacing:-.7px;margin:13px 0 24px;font-weight:750}.featured{background:#ebebeb;border-radius:12px;padding:11px 13px;display:flex;gap:25px;align-items:center;min-height:102px}.featured>img{width:39%;aspect-ratio:1.48;object-fit:cover;border-radius:10px;flex-shrink:0}.featured-info{min-width:0}.featured h2{font-size:24px;line-height:1.05;margin:0 0 5px;font-weight:500}.featured p{font-size:15px;line-height:1.4;margin:0;white-space:nowrap}.other-section{margin-top:33px}.other-section>h2{font-size:19px;font-weight:500;margin:0 0 15px 24px}.carousel{display:flex;gap:15px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 -12px;padding:0 12px 12px;overscroll-behavior-inline:contain}.carousel::-webkit-scrollbar{display:none}.cat-card{background:#ebebeb;border-radius:12px;padding:11px;flex:0 0 155px;scroll-snap-align:start;min-width:0}.cat-card img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:10px}.cat-card h3{font-size:16px;font-weight:500;margin:11px 0 2px}.cat-card p{font-size:12px;line-height:1.25;margin:0;white-space:nowrap}.instagram{display:flex;justify-content:center;align-items:center;gap:6px;background:#329bd9;border-radius:8px;text-decoration:none;color:#fff;font-size:17px;font-weight:400;min-height:54px;margin:29px 15px 0;text-align:center;padding:9px 12px}.instagram span{font-size:23px}.instagram:hover{background:#2387c5}@keyframes burst{0%{opacity:0;transform:translate(calc(-1 * var(--x)),calc(-1 * var(--y))) scale(.25)}60%{opacity:1}100%{opacity:1;transform:translate(0,0) scale(1)}}@keyframes pop{0%{opacity:0;transform:translateX(-50%) scale(.2)}70%{opacity:1;transform:translateX(-50%) scale(1.12)}100%{opacity:1;transform:translateX(-50%) scale(1)}}@media(min-width:461px){.page{border-left:1px solid #eee;border-right:1px solid #eee;min-height:100vh}}@media(prefers-reduced-motion:reduce){.heart{animation:none}}

/* CATSAFE celebration: replaces original heart graphics, leaves page layout intact. */
.celebration { perspective: 850px; overflow: visible; }
.logo-perspective {
  position: absolute; top: 57px; left: 50%;
  width: 81px; height: 81px; transform: translateX(-50%);
  perspective: 650px; z-index: 3;
}
.catsafe-coin {
  display: block; width: 100%; height: 100%; object-fit: contain;
  transform-origin: center center; transform-style: preserve-3d;
  backface-visibility: visible;
  animation: catsafe-coin-spin 1850ms cubic-bezier(.22,.65,.22,1) 130ms both;
}
@keyframes catsafe-coin-spin {
  0% { transform: rotateY(0deg) scale(.92); }
  22% { transform: rotateY(180deg) scale(1.15); }
  48% { transform: rotateY(540deg) scale(1.14); }
  78% { transform: rotateY(900deg) scale(1.05); }
  100% { transform: rotateY(1080deg) scale(1); }
}
.confetti-overlay {
  position: fixed; inset: 0; overflow: hidden;
  pointer-events: none; z-index: 100; contain: layout style;
}
.confetti-heart {
  position: absolute; display: block; object-fit: contain;
  opacity: 0; transform-origin: center;
  will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
  .catsafe-coin { animation: none; transform: none; }
}



/* Twelve lightweight falling hearts. No upward burst and no JavaScript dependency. */
.rain-layer { position:fixed; inset:0; z-index:9999; overflow:hidden; pointer-events:none; }
.rain-heart { position:absolute; top:-70px; width:36px; height:36px; object-fit:contain; opacity:0; animation:fall-heart 3.5s linear both; will-change:transform,opacity; }
.rain-heart-1 {left:4%; --drift:28px; --turn:220deg; animation-delay:0s; width:34px}
.rain-heart-2 {left:14%; --drift:-37px; --turn:-240deg; animation-delay:.15s; width:44px}
.rain-heart-3 {left:25%; --drift:48px; --turn:280deg; animation-delay:.45s; width:33px}
.rain-heart-4 {left:36%; --drift:-31px; --turn:-200deg; animation-delay:.08s; width:39px}
.rain-heart-5 {left:48%; --drift:42px; --turn:250deg; animation-delay:.58s; width:35px}
.rain-heart-6 {left:59%; --drift:-51px; --turn:-300deg; animation-delay:.3s; width:42px}
.rain-heart-7 {left:69%; --drift:26px; --turn:190deg; animation-delay:.68s; width:37px}
.rain-heart-8 {left:81%; --drift:-34px; --turn:-220deg; animation-delay:.22s; width:44px}
.rain-heart-9 {left:91%; --drift:36px; --turn:230deg; animation-delay:.48s; width:33px}
.rain-heart-10 {left:20%; --drift:56px; --turn:310deg; animation-delay:.9s; width:36px}
.rain-heart-11 {left:74%; --drift:-44px; --turn:-280deg; animation-delay:1.05s; width:38px}
.rain-heart-12 {left:43%; --drift:25px; --turn:210deg; animation-delay:1.18s; width:40px}
@keyframes fall-heart {
  0% {opacity:0; transform:translate3d(0,0,0) rotate(0deg)}
  6% {opacity:1}
  86% {opacity:1}
  100% {opacity:0; transform:translate3d(var(--drift),calc(100vh + 140px),0) rotate(var(--turn))}
}
@media (prefers-reduced-motion: reduce) { .rain-heart {animation:none; display:none} }

/* Contain falling hearts strictly within the mobile dashboard column. */
.page { position:relative; isolation:isolate; }
.rain-layer { position:absolute; inset:0; width:100%; height:100%; overflow:hidden; z-index:10; pointer-events:none; }
@keyframes fall-heart {
  0% { opacity:0; transform:translate3d(0,0,0) rotate(0deg); }
  6% { opacity:1; }
  86% { opacity:1; }
  100% { opacity:0; transform:translate3d(var(--drift),var(--fall-distance, 1100px),0) rotate(var(--turn)); }
}

/* Homepage — same brand, two-column vertical gallery. */
[hidden]{display:none!important}
.home-logo{display:flex;justify-content:center;padding-top:48px}
.home-logo img{width:82px;height:82px;object-fit:contain}
.home-title{text-align:center;font-size:28px;line-height:1.15;margin:28px 0 30px;letter-spacing:-.6px}
.home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.home-cat{min-width:0;background:#ebebeb;border-radius:12px;padding:11px}
.home-cat img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:10px;display:block}
.home-cat h2{font-size:18px;font-weight:500;margin:10px 0 5px}
.home-cat p{font-size:12px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.home-cat a{color:inherit;text-decoration:none}
.home-cat:focus-within{outline:none}
.homepage + #confirmation-view[hidden] + .instagram{margin-top:38px}
@media(max-width:340px){.home-grid{gap:9px}.home-cat{padding:8px}.home-cat h2{font-size:16px}}

/* Main homepage: logo/title and Instagram CTA stay visible; only cards scroll. */
html,body{height:100%}
body:has(.homepage:not([hidden])){overflow:hidden}
.page:has(.homepage:not([hidden])){
 height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;
 padding-bottom:0;overflow:hidden;
}
.homepage:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0;position:relative}
.home-logo{flex:0 0 auto;padding-top:clamp(15px,4dvh,48px)}
.home-title{flex:0 0 auto;margin:clamp(12px,2.5dvh,28px) 0 clamp(12px,2.8dvh,30px)}
.home-scroll{
 flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;
 overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
 scrollbar-width:thin;position:relative;
}
.home-grid{padding-bottom:16px}
.page:has(.homepage:not([hidden]))>.instagram{
 flex:0 0 auto;margin:12px 15px max(14px,env(safe-area-inset-bottom));
 position:relative;z-index:12;
}
/* On the homepage only: shift Rico's image crop to reveal his face. */
.home-cat img[alt="Rico"]{object-position:12% center}
/* The confetti is clipped to the portrait website, not the browser window. */
.home-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:8}
.home-fall{
 position:absolute;top:-58px;width:30px;height:30px;object-fit:contain;
 opacity:0;will-change:transform,opacity;
 animation:home-heart-fall 3.8s linear both;
}
@keyframes home-heart-fall{
 0%{opacity:0;transform:translate3d(0,0,0) rotate(-20deg)}
 6%{opacity:1}
 87%{opacity:1}
 100%{opacity:0;transform:translate3d(var(--sway),calc(100dvh + 95px),0) rotate(var(--rotate))}
}
/* 2, 1, 2, 1 rhythm, repeated: 12 hearts total. */
.hf1{left:16%;--sway:22px;--rotate:210deg;animation-delay:0s}
.hf2{left:72%;--sway:-28px;--rotate:-160deg;animation-delay:.08s}
.hf3{left:43%;--sway:18px;--rotate:190deg;animation-delay:.55s}
.hf4{left:12%;--sway:25px;--rotate:-180deg;animation-delay:1.1s}
.hf5{left:84%;--sway:-18px;--rotate:200deg;animation-delay:1.18s}
.hf6{left:55%;--sway:25px;--rotate:-210deg;animation-delay:1.65s}
.hf7{left:25%;--sway:17px;--rotate:200deg;animation-delay:2.2s}
.hf8{left:79%;--sway:-26px;--rotate:-220deg;animation-delay:2.28s}
.hf9{left:46%;--sway:22px;--rotate:160deg;animation-delay:2.75s}
.hf10{left:12%;--sway:27px;--rotate:-180deg;animation-delay:3.3s}
.hf11{left:70%;--sway:-24px;--rotate:230deg;animation-delay:3.38s}
.hf12{left:54%;--sway:17px;--rotate:-170deg;animation-delay:3.85s}
@media(prefers-reduced-motion:reduce){.home-fall{display:none;animation:none}}

/* Approved homepage reporting affordance; no form URLs connected yet. */
.home-title{margin-bottom:5px!important}
.home-instruction{text-align:center;font-size:13px;line-height:1.4;color:#6b6b6b;margin:0 0 16px;flex:0 0 auto}
.home-cat{display:flex;flex-direction:column}
.home-cat .home-report{margin-top:auto;padding-top:10px;border-top:1px solid #d5d5d5;display:flex;justify-content:space-between;align-items:center;gap:5px;color:#329bd9;font-size:12px;font-weight:600;white-space:nowrap}
.home-report span{font-size:17px;line-height:1}
@media(max-width:360px){.home-cat .home-report{font-size:11px}}

/* Requested homepage-only polish: slight upward heading shift and balanced CTA. */
.home-title, .home-instruction { position:relative; top:-4px; }
.home-cat .home-report {
  margin:14px -5px -5px;
  padding:12px 8px 11px;
  background:#f3f3f3;
  border-top:1px solid #d5d5d5;
  border-radius:0 0 8px 8px;
}

/* Caregiver note: compact badge inside card, fixed bottom sheet over gallery. */
.home-cat .feeder-update-badge{
 align-self:flex-start;max-width:100%;border:1px solid #a8d6ef;
 background:#e7f5fc;color:#187eaf;border-radius:999px;
 padding:5px 9px;font:600 11px/1.2 inherit;
 font-family:inherit;font-size:11px;font-weight:600;
 cursor:pointer;margin:3px 0 8px;
}
.feeder-update-badge:focus-visible,.feeder-sheet button:focus-visible{outline:3px solid #329bd9;outline-offset:2px}
.feeder-sheet-backdrop[hidden]{display:none!important}
.feeder-sheet-backdrop{
 position:absolute;inset:0;z-index:40;background:rgba(25,37,50,.35);
 display:flex;align-items:flex-end;justify-content:center;
}
.feeder-sheet{
 background:#fff;width:100%;border-radius:22px 22px 0 0;
 box-shadow:0 -8px 35px rgba(0,0,0,.12);padding:24px 22px max(26px,env(safe-area-inset-bottom));
 position:relative;max-height:78%;overflow-y:auto;
 animation:sheet-rise .26s ease-out both;
}
@keyframes sheet-rise{from{transform:translateY(50px);opacity:.5}to{transform:translateY(0);opacity:1}}
.feeder-sheet-kicker{font-size:12px;color:#329bd9;font-weight:650;margin-bottom:8px}
.feeder-sheet h2{font-size:23px;line-height:1.2;margin:0 38px 7px 0}
.feeder-sheet-date{font-size:12px;color:#777;margin:0 0 18px}
.feeder-sheet-message{font-size:15px;line-height:1.6;margin:0 0 24px}
.feeder-sheet-close{position:absolute;right:18px;top:15px;border:0;background:#f2f2f2;width:34px;height:34px;border-radius:50%;font-size:23px;cursor:pointer}
.feeder-sheet-done{background:#329bd9;color:white;border:0;border-radius:10px;padding:13px;width:100%;font-family:inherit;font-size:14px;font-weight:650;cursor:pointer}
body.feeder-sheet-open .home-scroll{overscroll-behavior:none}
@media(prefers-reduced-motion:reduce){.feeder-sheet{animation:none}}

/* Badge overlays bottom-right of Mao Mao photo; no added card height. */
.home-photo-wrap{position:relative;width:100%;aspect-ratio:1/1;flex-shrink:0}
.home-photo-wrap>img{width:100%;height:100%;object-fit:cover;display:block;border-radius:10px}
.home-cat .home-photo-wrap .feeder-update-badge{
 position:absolute;right:5px;bottom:6px;left:auto;top:auto;
 display:inline-flex;align-items:center;justify-content:center;gap:5px;
 border:1px solid rgba(0,0,0,.07);border-radius:999px;
 padding:5px 6px 5px 8px;margin:0;max-width:calc(100% - 10px);
 background:#fff;color:#353535;box-shadow:0 2px 8px rgba(0,0,0,.15);
 font-family:inherit;font-size:clamp(8px,2.45vw,10px);font-weight:650;
 line-height:1;white-space:nowrap;cursor:pointer;z-index:2;
}
.home-cat .feeder-update-badge .update-count{
 display:inline-flex;align-items:center;justify-content:center;
 background:#e74646;color:white;border-radius:50%;width:17px;height:17px;
 font-size:10px;font-weight:700;line-height:1;flex:0 0 17px;
}

/* FIX: Modal is a viewport overlay outside clipped .page container. */
.feeder-sheet-backdrop{
 position:fixed!important;inset:0!important;z-index:2147483000!important;
 width:100vw;height:100dvh;
 display:flex;align-items:flex-end;justify-content:center;
 background:rgba(25,37,50,.43);pointer-events:auto;
}
.feeder-sheet{width:min(100%,460px);max-height:80dvh}

.feeder-sheet-backdrop:not([hidden]){display:flex!important;position:fixed!important;inset:0!important;z-index:2147483000!important}
.feeder-sheet-backdrop[hidden]{display:none!important}
.feeder-sheet{max-width:440px}

/* Final modal refinements: simple prominent heading, no blue focus ring on panel. */
.feeder-sheet:focus,.feeder-sheet:focus-visible{outline:none!important;border-color:transparent!important}
.feeder-sheet .feeder-sheet-kicker{font-size:20px;line-height:1.25;font-weight:700;color:#329bd9;margin:0 42px 12px 0;letter-spacing:-.3px}
.feeder-sheet .feeder-sheet-date{margin-top:0}

/* Compact reaction row inside feeder modal; all other UI remains unchanged. */
.feeder-reaction-row{display:flex;align-items:center;justify-content:flex-end;margin:0 0 16px;padding-top:13px;border-top:1px solid #ececec}
.feeder-love-button{font-family:inherit;display:inline-flex;align-items:center;gap:7px;border:1px solid #e2e2e2;border-radius:999px;background:#fff;color:#303030;padding:8px 12px;font-size:13px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}
.feeder-love-button:hover{background:#fff6f8}
.feeder-love-button.is-loved{background:#fff1f4;border-color:#ffb4c6;color:#bf3558}
.feeder-love-button:focus-visible{outline:2px solid #329bd9;outline-offset:2px}
.love-heart{font-size:21px;color:#e14a70;line-height:1}
.love-count{font-size:12px;color:#777;font-variant-numeric:tabular-nums;padding-left:2px}

/* Final compact modal: single full-width heart CTA, no divider or Got it button. */
.feeder-sheet .feeder-love-button{
 display:flex;width:100%;min-height:46px;justify-content:center;align-items:center;
 margin:24px 0 0;padding:12px 15px;border:1px solid #e6a1b4;
 border-radius:11px;background:#fff7f9;color:#bf3558;
 font-size:15px;font-weight:650;box-sizing:border-box;
}
.feeder-sheet .feeder-love-button.is-loved{background:#ffeaf0;border-color:#ed86a4;color:#bf3558}
.feeder-sheet .feeder-love-button .love-count{color:inherit;font-size:14px}
.feeder-sheet .feeder-love-button .love-heart{font-size:22px}
.feeder-sheet .feeder-sheet-message{margin-bottom:0}

/* Expandable cat search: homepage only, preserving original centered heading. */
.home-heading-row{position:relative;flex:0 0 auto;min-height:0}
.home-heading-row .home-title{padding:0 39px;margin-left:0;margin-right:0}
.cat-search-toggle{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:50%;background:#f0f0f0;color:#333;cursor:pointer;z-index:4}
.cat-search-toggle:hover{background:#e8e8e8}
.cat-search-toggle:focus-visible,.cat-search-panel button:focus-visible,.cat-search-panel input:focus-visible{outline:2px solid #329bd9;outline-offset:2px}
.cat-search-panel[hidden],.cat-search-empty[hidden]{display:none!important}
.cat-search-panel{display:flex;gap:8px;align-items:center;flex:0 0 auto;margin:0 10px 12px}
.cat-search-panel input{box-sizing:border-box;min-width:0;width:100%;height:41px;padding:0 13px;background:#f3f3f3;border:1px solid #ddd;border-radius:11px;font:inherit;font-size:14px;color:#222}
.cat-search-panel button{width:34px;height:34px;border:0;background:transparent;font-size:23px;color:#666;cursor:pointer;flex-shrink:0}
.cat-search-empty{text-align:center;font-size:14px;color:#666;margin:28px 10px}

/* Individual cat confirmation: feeder note is shown only for Mao Mao. */
.featured-feeder-note[hidden]{display:none!important}
.featured-feeder-note{margin:18px 0 0;background:#f3f7fa;border-radius:13px;padding:17px 17px 16px}
.featured-feeder-note h2{font-size:17px;line-height:1.3;color:#329bd9;margin:0 0 7px;font-weight:700}
.featured-note-date{font-size:12px;color:#777;margin:0 0 12px}
.featured-note-body{font-size:14px;line-height:1.55;margin:0 0 15px}
.featured-love-button{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;border:1px solid #f4a7bf;border-radius:10px;padding:12px;background:#fff4f7;color:#bf3558;font:600 14px Arial,Helvetica,sans-serif;cursor:pointer}
.featured-love-button.is-loved{background:#ffe1eb}
.featured-love-button:focus-visible{outline:2px solid #329bd9;outline-offset:2px}
.other-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 8px 15px 24px}
.other-heading h2{font-size:19px;font-weight:500;margin:0}
.view-all-cats{font-size:12px;white-space:nowrap;color:#329bd9;text-decoration:none;font-weight:600}
.view-all-cats:focus-visible{outline:2px solid #329bd9;outline-offset:3px}
/* Instagram is visible at the bottom on confirmation as well as homepage. */
.page:has(#confirmation-view:not([hidden])){height:100vh;height:100dvh;display:flex;flex-direction:column;min-height:0;padding-bottom:0}
#confirmation-view:not([hidden]){min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;padding-bottom:12px;-webkit-overflow-scrolling:touch}
.page:has(#confirmation-view:not([hidden]))>.instagram{flex:0 0 auto;position:relative;z-index:10;margin:10px 15px max(14px,env(safe-area-inset-bottom))}
@media(max-width:360px){.featured-feeder-note{padding:14px}.other-heading{margin-left:12px}}


/* Responsive mobile fit — 19 Oct 2026. Keep pinch zoom available. */
html { width:100%; max-width:100%; overflow-x:hidden; -webkit-text-size-adjust:100%; }
body { width:100%; max-width:100%; overflow-x:hidden; }
.page { width:100%; max-width:460px; min-width:0; }
.homepage { width:100%; min-width:0; }
.home-heading-row { min-width:0; }
.home-heading-row .home-title { font-size:clamp(21px, 6.3vw, 28px); padding-left:32px; padding-right:40px; overflow-wrap:normal; }
.home-grid { min-width:0; width:100%; }
.home-cat { overflow:hidden; }
.home-cat img, .home-photo-wrap { max-width:100%; }
/* Search overlays the existing subtitle slot instead of adding a new row. */
.homepage .cat-search-panel {
 position:absolute; z-index:15; top:calc(var(--catsafe-search-top, 0px));
 left:10px; right:10px; margin:0; width:auto; height:41px;
 display:flex; align-items:center; gap:8px;
}
.homepage.search-open .home-instruction { visibility:hidden; }
/* 16px stops Safari's automatic input-focus zoom; manual pinch zoom remains enabled. */
.cat-search-panel input { font-size:16px; min-width:0; flex:1; width:0; }
.cat-search-panel button { flex:0 0 34px; }
@media(max-width:380px){
 .page { padding-left:10px; padding-right:10px; }
 .home-grid { gap:10px; }
 .home-cat { padding:8px; }
 .home-cat h2 { font-size:17px; }
 .home-cat p { font-size:11px; }
 .home-heading-row .home-title { letter-spacing:-.9px; }
 .page:has(.homepage:not([hidden]))>.instagram { margin-left:8px; margin-right:8px; font-size:clamp(12px,3.7vw,17px); }
}


/* Compact app-style header, 19 Oct 2026: logo left, title and subtitle beside it.
   Only the homepage is affected; confirmation pages retain their original layout. */
.homepage .home-topbar {
  display:flex; align-items:center; gap:11px; flex:0 0 auto;
  min-height:88px; padding:20px 5px 20px; position:relative;
}
.homepage .home-logo { display:block; flex:0 0 48px; padding:0; }
.homepage .home-logo img { display:block; width:48px; height:48px; object-fit:contain; }
.homepage .home-heading-copy { flex:1; min-width:0; padding-right:37px; }
.homepage .home-heading-row { position:static; }
.homepage .home-heading-row .home-title {
  position:static; top:auto; margin:0 0 3px!important; padding:0!important;
  text-align:left; font-size:clamp(17px,4.65vw,21px); line-height:1.12;
  letter-spacing:-.5px; font-weight:750; white-space:nowrap;
}
.homepage .home-instruction {
  position:static; top:auto; text-align:left; margin:0; font-size:clamp(10px,2.85vw,12px);
  line-height:1.3; color:#6b6b6b; white-space:nowrap;
}
.homepage .cat-search-toggle { right:4px; top:50%; width:34px; height:34px; }
/* Search sits over the subtitle without adding height or shifting the gallery. */
.homepage .cat-search-panel { left:63px; right:5px; height:37px; }
.homepage .cat-search-panel input { height:37px; }
@media(max-width:350px) {
  .homepage .home-topbar { gap:8px; }
  .homepage .home-logo { flex-basis:40px; }
  .homepage .home-logo img { width:40px; height:40px; }
  .homepage .home-heading-copy { padding-right:34px; }
  .homepage .home-heading-row .home-title { font-size:clamp(15px,4.6vw,17px); }
  .homepage .home-instruction { font-size:10px; }
  .homepage .cat-search-panel { left:52px; }
}



/* Stable compact search: replaces heading while open, never overlaps it. */
.homepage .home-topbar { position:relative; }
.homepage .cat-search-panel {
 position:absolute; top:50%; transform:translateY(-50%);
 left:63px; right:44px; width:auto; height:40px; margin:0; z-index:8;
 display:flex; align-items:center; gap:5px;
}
.homepage .cat-search-panel input { min-width:0; width:100%; flex:1; height:40px; font-size:16px; padding:0 10px; }
.homepage .cat-search-panel button { width:27px; flex:0 0 27px; height:36px; font-size:22px; }
.homepage.search-open .home-heading-copy { visibility:hidden; }
.homepage.search-open .cat-search-toggle { z-index:9; }
@media(max-width:350px){ .homepage .cat-search-panel { left:52px; right:41px; } }
/* Inline icons stay aligned and survive live data refreshes. */
.stat-count,.stat-time { display:flex; align-items:center; gap:6px; }
.stat-inline-icon { width:15px; height:15px; flex:0 0 15px; display:inline-block; color:#858585; }

/* Keep SVG and live statistics separate. */
.stat-count,.stat-time{display:flex;align-items:center;gap:6px;}
.stat-inline-icon{width:15px;height:15px;flex:0 0 15px;color:#858585;display:block;}
.stat-value{min-width:0;}

/* Tally sighting actions are accessible links, retaining original button appearance. */
.home-cat a.home-report{color:#329bd9;text-decoration:none;cursor:pointer;}
.home-cat a.home-report:focus-visible{outline:2px solid #329bd9;outline-offset:3px;}

/* Public serial numbers share the name line without changing card dimensions. */
.cat-name-row{display:flex;align-items:baseline;justify-content:space-between;gap:6px;}
.cat-name-row .cat-name{min-width:0;}
.cat-name-row .cat-serial{flex-shrink:0;font-size:11px;font-weight:400;line-height:1;color:#666;letter-spacing:0;white-space:nowrap;}
.featured-info{flex:1;}

/* Keep confirmation carousel timestamps inside the existing card width. */
#carousel .cat-card .stat-time .stat-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Responsive card contract: retain readable content within image-aligned insets. */
.home-cat,.cat-card { padding:11px; }
.featured-info { min-width:0; }
.featured p,.cat-name-row .cat-name,.stat-value {
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.home-cat .stat-count,.home-cat .stat-time { min-width:0; }
#carousel { margin-inline:0; padding-inline:0; gap:15px; scroll-padding-inline:0; }
#carousel .cat-card { flex:0 0 calc((100% - 15px)/2); scroll-snap-align:start; scroll-snap-stop:always; }
#carousel:focus-visible { outline:2px solid #329bd9; outline-offset:-2px; }
.featured-note-body,.feeder-sheet-message { overflow-wrap:anywhere; }
.page>.instagram,.page:has(.homepage:not([hidden]))>.instagram {
  font-size:clamp(.8125rem,3.45vw,1rem); line-height:1.35;
  padding-inline:8px; gap:6px; white-space:normal; overflow-wrap:anywhere;
}
.instagram .instagram-label { font-size:inherit; min-width:0; }
.instagram .instagram-arrow { font-size:1.2em; flex:none; }
@media(max-height:420px) {
 .page:has(.homepage:not([hidden])),.page:has(#confirmation-view:not([hidden])) { height:auto; min-height:100dvh; }
 body:has(.homepage:not([hidden])) { overflow:auto; }
 .home-scroll,#confirmation-view:not([hidden]) { overflow:visible; }
}
/* Featured metadata is plain text, so ellipsis needs a block (not anonymous flex text). */
.featured .stat-count,.featured .stat-time { display:block; }

/* One native link per card; sibling buttons keep their own hit area and semantics. */
.home-cat,.cat-card,.featured { position:relative; isolation:isolate; }
.card-link::after { content:""; position:absolute; inset:0; z-index:1; border-radius:12px; }
.card-link:focus-visible::after { outline:3px solid #187eaf; outline-offset:-3px; }
.card-link-label { position:absolute; inset:0; z-index:1; font-size:0; }
.home-cat .feeder-update-badge { z-index:2; }
.home-cat button,.cat-card button,.featured button { position:relative; z-index:2; }
/* No refresh space at rest; temporary reveal belongs to the card scroller. */
#pull-indicator { flex:0 0 auto; position:relative; isolation:isolate; height:0; overflow:hidden; display:flex; align-items:center; justify-content:center; color:#329bd9; pointer-events:none; transition:height 180ms ease; }
#pull-indicator span { font-size:26px; line-height:32px; }
#pull-indicator.is-pulling { transition:none; }
#pull-indicator.is-loading span { animation:refresh-turn 900ms linear infinite; }
.refresh-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
@keyframes refresh-turn { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { #pull-indicator { transition:none; } #pull-indicator.is-loading span { animation:none; } }

/* Separate post-submission chooser; ordinary sighting cards stay unchanged. */
.pair-view { padding:28px 0 4px; }
.pair-logo { display:block; width:58px; height:58px; margin:0 auto 22px; }
.pair-view h1 { line-height:1.2; margin:0 8px 12px; }
.pair-view>p { text-align:center; font-size:15px; line-height:1.5; margin:0 0 24px; }
.pair-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.pair-card { min-width:0; display:block; padding:11px; background:#ebebeb; border-radius:12px; text-decoration:none; color:inherit; }
.pair-card>img { display:block; width:100%; aspect-ratio:1; object-fit:cover; border-radius:10px; }
.pair-card h2 { font-size:18px; font-weight:500; margin:12px 0; }
.pair-card .cat-serial { font-size:12px; }
.pair-action { display:block; border-top:1px solid #d2d2d2; padding-top:12px; color:#2387c5; font-size:13px; line-height:1.4; }
.pair-all { display:block; width:fit-content; max-width:100%; margin:24px auto 0; color:#2387c5; line-height:1.5; }
.pair-card:focus-visible,.pair-all:focus-visible { outline:3px solid #2387c5; outline-offset:3px; }

/* Design requirement: Instagram is the final in-flow CTA, never covering content.
   At normal text size its established handle stays on one line; enlarged text may wrap. */
.page:has(#pair-view:not([hidden])) { min-height:100dvh; display:flex; flex-direction:column; }
.page:has(#pair-view:not([hidden]))>.instagram { margin-top:auto; }
.pair-view { padding-bottom:29px; }
.pair-card p { display:flex; align-items:center; gap:4px; font-size:12px; line-height:1.4; margin:3px 0 0; min-width:0; }
.pair-card .stat-value { min-width:0; }
#pair-other-cats { margin-inline:0; padding-inline:0; gap:12px; scroll-padding-inline:0; }
#pair-other-cats .cat-card { flex:0 0 calc((100% - 24px)/3); padding:8px; }
#pair-other-cats h3 { font-size:13px; margin-top:8px; }
#pair-other-cats .cat-serial { display:none; }
#pair-other-cats:focus-visible { outline:2px solid #329bd9; outline-offset:-2px; }

/* Start falling hearts after assets are ready, outside the inner scroll clip. */
.rain-layer .rain-heart{animation-play-state:paused}
.rain-layer.rain-running .rain-heart{animation-play-state:running}

/* Consistent footer: larger readable label, with a clear breathing space above.
   Normal text fits at 320px; enlarged user text remains free to wrap. */
.page>.instagram,
.page:has(.homepage:not([hidden]))>.instagram,
.page:has(#confirmation-view:not([hidden]))>.instagram,
.page:has(#pair-view:not([hidden]))>.instagram {
  font-size:clamp(.875rem,3.95vw,1.0625rem);
  margin-top:24px;
}
.page:has(#pair-view:not([hidden]))>.instagram { margin-top:auto; }
.pair-view { padding-bottom:40px; }

/* Ring once when a changed feeder update becomes visible in this browser. */
.home-cat .feeder-update-badge .update-bell{display:inline-block;font-size:14px;line-height:1;transform-origin:50% 15%;flex-shrink:0}
.home-cat .feeder-update-badge.is-new{border-color:#e74646;color:#a42d2d;background:#fff7f6}
.home-cat .feeder-update-badge.is-ringing .update-bell{animation:feeder-bell-ring .55s ease-in-out 3}
@keyframes feeder-bell-ring{0%,100%{transform:rotate(0)}20%{transform:rotate(22deg)}40%{transform:rotate(-20deg)}60%{transform:rotate(15deg)}80%{transform:rotate(-10deg)}}
@media(prefers-reduced-motion:reduce){.home-cat .feeder-update-badge.is-ringing .update-bell{animation:none}}
