/* Calendar: no old 82px clipping or horizontal mask, full safe bleed in the lock. */
.page.v72-home{overflow:visible!important}
/* Reference: docs/references/sticky-calendar/README.md. */
.v72-home .v76-sticky-calendar{--sticky-calendar-surface:#e4ddfa;top:env(safe-area-inset-top,0px)!important;width:calc(100% + 40px)!important;max-width:none!important;margin-left:-20px!important;margin-right:-20px!important;padding:0 20px!important;box-sizing:border-box;isolation:isolate;overflow-anchor:none;background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-radius:0!important}
.v72-home .v76-sticky-calendar.is-stuck{--sticky-calendar-surface:var(--taily-sticky,#BACAFC);background:var(--sticky-calendar-surface)!important}
.v72-home .v76-sticky-calendar>.sectionhead,.v72-home .v76-sticky-calendar:not(.is-stuck)>.sectionhead,.v72-home .v76-sticky-calendar.is-stuck>.sectionhead{position:relative!important;inset:auto!important;display:flex;align-items:center;gap:8px;height:0!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow:clip!important;visibility:visible;opacity:0;transform:none;pointer-events:none;transition:height 460ms cubic-bezier(.22,1,.36,1),opacity 360ms ease!important}
.v72-home .v76-sticky-calendar.is-stuck>.sectionhead{height:44px!important;opacity:1;pointer-events:auto}
.v72-home .v76-sticky-calendar>.sectionhead>h2{opacity:0;transform:translateY(10px);transition:opacity 340ms ease,transform 460ms cubic-bezier(.22,1,.36,1)}
.v72-home .v76-sticky-calendar.is-stuck>.sectionhead>h2{opacity:1;transform:translateY(0)}
.v72-home .v76-sticky-calendar .v76-mini-pets{flex:1;max-width:none!important;min-width:0;visibility:visible;opacity:0!important;transform:translateY(12px) scale(.92)!important;transform-origin:right center;transition:opacity 360ms ease,transform 460ms cubic-bezier(.22,1,.36,1)!important;pointer-events:inherit}
.v72-home .v76-sticky-calendar.is-stuck .v76-mini-pets{opacity:1!important;transform:translateY(0) scale(1)!important}
.v72-home .v76-sticky-calendar .v76-mini-pets button{opacity:0;transform:translateY(8px);transition:opacity 320ms ease,transform 420ms cubic-bezier(.22,1,.36,1);transition-delay:0s}
.v72-home .v76-sticky-calendar.is-stuck .v76-mini-pets button{opacity:1;transform:translateY(0)}
.v72-home .v76-sticky-calendar.is-stuck .v76-mini-pets button:nth-child(2){transition-delay:30ms}
.v72-home .v76-sticky-calendar.is-stuck .v76-mini-pets button:nth-child(3){transition-delay:60ms}
.v72-home .v76-sticky-calendar.is-stuck .v76-mini-pets button:nth-child(4){transition-delay:90ms}
.v72-home .v76-sticky-calendar .v5-strip-wrap{height:auto!important;min-height:84px!important;max-height:none!important;overflow:visible!important;contain:none!important;margin:0 0 12px!important;border:0!important;border-radius:0!important}
.v72-home .v76-sticky-calendar .v5-date-strip{height:84px!important;min-height:84px!important;max-height:none!important;padding:0!important;box-sizing:border-box;align-items:center!important;mask-image:none!important;-webkit-mask-image:none!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-padding:0!important;scroll-snap-type:x mandatory!important}
.v72-home .v76-sticky-calendar .v5-date-strip>button{scroll-snap-align:start!important;scroll-margin:0!important;flex-shrink:0!important}
/* Exact Figma 73:491/497/503 portrait composition and 73:553 wide composition. */
.v76-pets .v72-pet-choice.v77-pet-card{aspect-ratio:339/385;container-type:inline-size}
.v76-pets .v76-single>.v77-pet-card{aspect-ratio:695/405}
.v77-portrait-disc{position:absolute;left:50.1475%;top:-45.4545%;width:123.3038%;aspect-ratio:1;transform:translateX(-50%);border-radius:50%;overflow:hidden;background:#ffffff33;box-shadow:inset 0 0 0 1px #ffffff70;pointer-events:none}
.v77-portrait-slot{position:absolute;display:block}
.v77-portrait-slot>img{position:absolute;display:block;max-width:none!important;object-fit:contain;border:0;border-radius:0;margin:0!important;pointer-events:none}
.v77-art-asiris{left:17.2249%;top:32.5359%;width:65.311%;height:81.5789%}.v77-art-asiris>img{inset:0;width:100%;height:100%;object-fit:cover}
.v77-art-michael{left:17.9426%;top:34.4498%;width:64.1148%;height:85.8852%;overflow:hidden;transform:scaleX(-1)}.v77-art-michael>img{top:-5.54%;left:-13.6%;width:212.54%;height:105.54%;object-fit:fill}
.v77-art-cherrik{left:20.3349%;top:42.5837%;width:59.0909%;height:71.5311%;overflow:hidden}.v77-art-cherrik>img{top:-24.2%;left:0;width:100%;height:124.2%;object-fit:fill}
.v77-art-user{left:15%;top:42%;width:70%;height:58%}.v77-art-user>img{inset:0;width:100%;height:100%;object-position:center bottom}
.v77-pet-card>.v76-pet-caption{top:67.7922%;left:12px;right:12px;bottom:auto;align-items:center;gap:4px;text-align:center}
.v77-pet-card>.v76-pet-caption>strong{font-size:clamp(20px,13.2743cqw,45px)!important;line-height:1.15!important;font-weight:700;letter-spacing:-.02em;text-shadow:none!important;width:100%;text-align:center}
.v77-pet-card>.v76-pet-caption>small{display:block;width:100%;max-width:100%;padding:0!important;background:none!important;border:0!important;border-radius:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;font-size:12px!important;line-height:17px!important;font-weight:300;color:var(--pet-ink)!important;text-align:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.v77-pet-card.is-wide>.v77-portrait-disc{left:54.2446%;top:-27.9012%;width:84.0288%;transform:none}
.v77-pet-card.is-wide .v77-art-asiris{left:3.0822%;top:15.9247%;width:58.0479%;height:72.6027%}
.v77-pet-card.is-wide .v77-art-user{left:3%;top:16%;width:58%;height:73%}
.v77-pet-card.is-wide>.v76-pet-caption{top:34.8148%;left:8.2014%;right:auto;width:36.7812%;gap:1.2683cqw;align-items:flex-start;text-align:left}
.v77-pet-card.is-wide>.v76-pet-caption>strong{font-size:clamp(28px,9.5124cqw,66.111px)!important;text-align:left;line-height:1.15!important}
.v77-pet-card.is-wide>.v76-pet-caption>small{font-size:clamp(12px,4.2278cqw,29.383px)!important;line-height:1.2!important;text-align:left}
.v77-all>.v76-pet-caption>strong{font-size:clamp(17px,10.6cqw,30px)!important;white-space:nowrap}
.v77-group-item{position:absolute;inset:0;display:block}.v77-group-item .v77-portrait-slot{left:25%;top:38%;width:65%;height:62%;transform:none;overflow:visible}.v77-group-item .v77-portrait-slot>img{inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.v77-group-item:nth-child(2){transform:translateX(-25%) scale(.85);transform-origin:center bottom}.v77-group-item:nth-child(3){transform:translateX(24%) scale(.75);transform-origin:center bottom}
/* Figma 73:561 capsule: five equal circles, clean white app icons. */
body>.bottom{width:calc(100% - 24px)!important;max-width:409px!important;height:77px!important;min-height:77px!important;padding:12px 0!important;gap:17px!important;justify-content:center!important;align-items:center!important;background:#9991FC!important;border:0!important;border-radius:999px!important;box-shadow:0 8px 24px #6334cf20!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;bottom:calc(10px + env(safe-area-inset-bottom,0px))!important}
body>.bottom>button.v76-nav-item,body>.bottom>button.v76-nav-item.active,body>.bottom>button.v76-nav-create{width:52px!important;height:52px!important;min-width:52px!important;max-width:52px!important;min-height:52px!important;flex:0 0 52px!important;padding:0!important;margin:0!important;box-sizing:border-box;border:1px solid #ffffff40!important;border-radius:50%!important;background:#ffffff1a!important;color:white!important;box-shadow:none!important}
body>.bottom>button.v76-nav-item.active{background:#ffffff30!important;border-color:#ffffffb3!important}
body>.bottom>button.v76-nav-create{background:#ffffff24!important}
body>.bottom>button.v76-nav-item>.icon,body>.bottom>button.v76-nav-item.active>.icon{width:24px!important;height:24px!important;stroke-width:1.8!important;color:white!important;stroke:white!important;background:none!important;border:0!important;box-shadow:none!important}
body>.bottom>button.v76-nav-create>.icon{width:28px!important;height:28px!important;stroke-width:1.7!important}
body>.bottom>button.v76-nav-item:focus-visible{outline:2px solid white!important;outline-offset:3px!important}
@media(max-width:440px){body>.bottom{gap:12px!important}}
@media(max-width:360px){.v72-home .v76-sticky-calendar{padding-left:16px!important;padding-right:16px!important}body>.bottom{gap:9px!important}body>.bottom>button.v76-nav-item,body>.bottom>button.v76-nav-item.active,body>.bottom>button.v76-nav-create{width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;min-height:44px!important;flex-basis:44px!important}.v77-pet-card>.v76-pet-caption>strong{font-size:20px!important}.v77-all>.v76-pet-caption>strong{font-size:17px!important}}
@media(prefers-reduced-motion:reduce){.v72-home .v76-sticky-calendar>.sectionhead{transition:none!important}.v72-home .v76-sticky-calendar .v5-date-strip{scroll-behavior:auto!important}}
/* Solid circular avatar backing also works with the transparent demo photographs. */
.v76-mini-pets .t-avatar{background:#d8cff1;object-position:center 22%}
.v76-mini-pets .t-avatar[src$="taily-demo-michael.png"]{object-position:left center}
.v72-home .v72-progress>div:first-child>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Latest approved selection: outline only, no check badges or all-pets tile. */
.v76-pets .v72-pet-choice.v77-pet-card{border:2px solid transparent!important;box-shadow:none!important}
.v76-pets .v72-pet-choice.v77-pet-card.is-selected{border-color:#6334cf!important;box-shadow:none!important}
.v77-pet-card>.v76-pet-check{display:none!important}
.v77-art-user{left:7.5%;top:42%;width:85%;height:auto;aspect-ratio:auto}
.v77-art-user>img{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;object-fit:contain!important;object-position:center bottom}
.v77-pet-card.is-wide .v77-art-user{left:3%;top:25%;width:58%;height:auto}
html,body{scrollbar-width:none!important;-ms-overflow-style:none}
html::-webkit-scrollbar,body::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
/* Figma's 40/385 bottom inset must survive minimum readable type on small cards. */
.v76-pets .v77-pet-card:not(.is-wide)>.v76-pet-caption{top:auto!important;bottom:10.3896%!important;gap:1.7699cqw!important}
.v76-pets .v77-pet-card:not(.is-wide)>.v76-pet-caption>strong{font-size:clamp(18px,13.2743cqw,45px)!important;line-height:1.15!important;margin:0!important}
.v76-pets .v77-pet-card:not(.is-wide)>.v76-pet-caption>small{font-size:clamp(11px,5.8997cqw,20px)!important;line-height:1.15!important;margin:0!important}
.v76-pets .v72-pet-choice.v77-pet-card.is-selected{border-color:#fff!important}
@media(max-width:360px){.v72-home .v76-sticky-calendar{width:calc(100% + 32px)!important;margin-left:-16px!important;margin-right:-16px!important;padding-left:16px!important;padding-right:16px!important}.v72-home .v76-sticky-calendar>.sectionhead{left:auto!important;right:auto!important}}

/* Final reference geometry: one pet uses Card 20, 695 × 312. */
.v76-pets .v76-single>.v77-pet-card{aspect-ratio:695/312!important}
.v77-pet-card.is-wide>.v77-portrait-disc{left:54.1007%;top:-19.5513%;width:62.3022%;transform:none}
.v77-pet-card.is-wide .v77-art-asiris{left:4.3718%;top:5.7737%;width:77.7829%;height:97.2286%}
.v77-pet-card.is-wide>.v76-pet-caption{top:31.7308%;bottom:auto;left:8.2014%;width:36.7812%}
/* Readable mobile type needs extra vertical room rather than squeezing Figma's gaps. */
.v76-pets .v72-pet-choice.v77-pet-card:not(.is-wide){min-height:185px!important}
.v76-pets .v77-pet-card:not(.is-wide)>.v76-pet-caption{bottom:18px!important;gap:5px!important}
.v76-pets .v77-pet-card:not(.is-wide)>.v77-portrait-disc{top:auto;bottom:36.8831%;}
.v76-pets .v72-pet-choice.v77-pet-card:not(.is-selected){border-color:transparent!important;outline:none!important;box-shadow:none!important}
.v72-home .v76-pets{margin-bottom:8px!important}
.v72-home .v76-sticky-calendar{margin-top:0!important}
body>.bottom{position:fixed!important;top:auto!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;z-index:40!important}

.v72-home .v76-pets{margin-bottom:0!important}

/* Glass lenses: soft optical highlights, separate outline only for active route. */
body>.bottom>button.v76-nav-item,body>.bottom>button.v76-nav-create{position:relative;isolation:isolate;border-color:transparent!important;background:linear-gradient(145deg,#ffffff25,#ffffff0d 55%,#ffffff20)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:inset 1px 1px 2px #ffffff80,inset -1px -1px 2px #ffffff55,inset 0 0 10px #ffffff0d!important;transition:background .5s cubic-bezier(.22,1,.36,1),box-shadow .5s cubic-bezier(.22,1,.36,1),border-color .5s ease!important}
body>.bottom>button.v76-nav-item.active{border-color:#fffffff0!important;box-shadow:inset 1px 1px 2px #ffffff99,inset -1px -1px 2px #ffffff66,0 0 0 2px #ffffff24!important}
.v76-pets .v72-pet-choice.v77-pet-card{transition:border-color .5s cubic-bezier(.22,1,.36,1)!important}
@media(prefers-reduced-motion:reduce){body>.bottom>button.v76-nav-item,.v76-pets .v72-pet-choice.v77-pet-card,.v72-home .v76-sticky-calendar>.sectionhead{transition:none!important}}

.v76-pets .v72-pet-choice.v77-pet-card{border-width:0!important;outline:none!important}
.v76-pets .v72-pet-choice.v77-pet-card.is-selected{box-shadow:inset 0 0 0 2px #fff!important}
.v76-pets .v72-pet-choice.v77-pet-card:not(.is-selected){border:0!important;box-shadow:none!important}
.v77-portrait-disc{box-shadow:none!important}

/* Selection stroke sits above all pet artwork, never behind ears. */
.v76-pets .v72-pet-choice.v77-pet-card.is-selected{box-shadow:none!important}
.v76-pets .v72-pet-choice.v77-pet-card.is-selected::after{content:'';position:absolute;inset:0;z-index:5;border:2px solid #fff;border-radius:inherit;box-sizing:border-box;pointer-events:none;background:none}
/* Shared glass texture: preserve approved color, frame geometry and glyphs. */
.taily-reference-tabs,.v7-health-symbol,.care-health-icon,.iconbutton,.care-profile-menu button>span:first-child:has(>.icon),.v9-folder-edit{background-image:linear-gradient(145deg,#ffffff26,#ffffff06 55%,#ffffff20)!important;box-shadow:inset 1px 1px 2px #ffffff95,inset -1px -1px 2px #ffffff55,inset 0 0 9px #ffffff12!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
body>.bottom{overflow:hidden!important;background-image:none!important}
body>.bottom::before,body>.bottom::after{display:none!important;content:none!important}
body>.bottom>button.v76-nav-item{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.v78-avatar-scope{display:flex!important;gap:6px!important;align-items:center!important;overflow-x:auto!important;padding:4px 0!important;min-height:48px!important}
.v78-avatar-scope>button{display:grid!important;place-items:center!important;flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:4px!important;border:2px solid transparent!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important}
.v78-avatar-scope>button.active{border-color:var(--button-purple)!important;background:#ffffff20!important}
.v78-avatar-scope>button>.t-avatar{width:32px!important;height:32px!important;min-width:32px!important;border-radius:50%!important;object-fit:cover;margin:0!important;background:#d8cff1}

/* Equal vertical breathing room around the week, 12px on each side. */
.v72-home .v76-pets{margin-bottom:12px!important}
.v72-home .v76-pets .v72-pet-rail{padding-bottom:0!important}
.v72-home .v76-sticky-calendar{margin-bottom:12px!important}
.v72-home .v76-sticky-calendar .v5-strip-wrap{margin-bottom:0!important}
.pageheading>.t-avatar,.care-health>.t-avatar,.v76-mini-pets .t-avatar,.v78-avatar-scope .t-avatar{background-color:#d8c6ff!important;border-radius:50%!important}
.t-avatar[src$="taily-demo-michael.png"]{object-position:left center!important}
.t-profile-photo,.v11-pet-card .t-profile-photo{background-color:#d8c6ff!important;border-radius:50%!important}
[data-v78-edit-key]{cursor:pointer}

.page.v72-home{padding-top:calc(16px + env(safe-area-inset-top,0px))!important}

/* Pet selection preview: one palette per state, readable breed and fixed photo geometry. */
.v76-pets .v72-pet-choice.v77-pet-card{background:var(--pet-bg)!important;color:var(--pet-ink)!important;transition:background-color .5s ease,color .4s ease!important}
.v76-pets .v77-pet-card:not(.is-wide)>.v76-pet-caption>small{font-size:13px!important;line-height:18px!important;font-weight:400;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v76-pets .v77-pet-card>.v76-pet-caption{color:var(--pet-ink)!important}
.v76-pets .v77-pet-card>.v76-pet-caption>strong{color:var(--pet-ink)!important}
.v76-pets .v77-pet-card:focus-visible{outline:none!important;box-shadow:inset 0 0 0 2px #fff!important}
.v79-all-photos{position:absolute;left:14px;right:14px;top:18px;height:55%;display:grid;grid-template-columns:repeat(var(--avatar-count),minmax(0,1fr));align-content:center;align-items:center;gap:0}
.v79-all-photos>.t-avatar{width:100%!important;height:auto!important;aspect-ratio:1;border-radius:50%!important;object-fit:cover;background:#d8c6ff!important;margin:0!important;border:2px solid var(--pet-bg);box-sizing:border-box}
.v79-all-photos>.t-avatar:only-child{width:75%!important;justify-self:center}
.v79-all-photos:has(>.t-avatar:nth-child(2):last-child){display:block}
.v79-all-photos:has(>.t-avatar:nth-child(2):last-child)>.t-avatar{position:absolute;width:65%!important;top:0;left:0}
.v79-all-photos:has(>.t-avatar:nth-child(2):last-child)>.t-avatar:nth-child(2){left:auto;right:0;top:30%}
.v76-pets .v77-all>.v76-pet-caption{bottom:24px!important}
.v76-pets .v77-all>.v76-pet-caption>strong{font-size:18px!important;white-space:normal}
@media(max-width:360px){.v76-pets .v72-pet-choice.v77-pet-card:not(.is-wide){min-height:200px!important}}
@media(prefers-reduced-motion:reduce){.v76-pets .v72-pet-choice.v77-pet-card{transition:none!important}}

/* Reference spacing: room between portrait, name, breed and bottom edge. */
.v76-pets .v72-pet-choice.v77-pet-card:not(.is-wide){aspect-ratio:339/425!important;min-height:220px!important}
.v76-pets .v77-pet-card:not(.is-wide)>.v76-pet-caption{bottom:22px!important;gap:2px!important}
.v76-pets .v77-pet-card:not(.is-wide)>.v76-pet-caption>strong{font-size:22px!important;line-height:26px!important}
.v76-pets .v77-pet-card:not(.is-wide)>.v76-pet-caption>small{font-weight:300!important}
.v76-pets .v77-all>.v76-pet-caption>strong{font-size:18px!important}

.v79-all-photos>.t-avatar,.v76-mini-pets .t-avatar,.v78-avatar-scope .t-avatar,.pageheading>.t-avatar,.care-health>.t-avatar,.t-profile-photo,.v11-pet-card .t-profile-photo{background-color:#c8df0c!important}

/* All-pets card: centered rows and an explicit two-line label. */
.v77-all:not(.is-selected) > .v79-all-photos > .t-avatar {
  background-color: #9991FC !important;
}
.v77-all>.v79-all-photos{display:flex!important;flex-wrap:wrap;justify-content:center;align-content:center;align-items:center;gap:5px;left:14px;right:14px;top:14px;height:55%}
.v77-all>.v79-all-photos>.t-avatar{position:static!important;flex:0 0 calc((100% - 10px)/3);width:calc((100% - 10px)/3)!important;min-width:0!important;height:auto!important;aspect-ratio:1;border:0!important;margin:0!important;object-fit:cover}
.v76-pets .v77-all>.v76-pet-caption{bottom:22px!important;align-items:center!important;text-align:center!important}
.v76-pets .v77-all>.v76-pet-caption>strong{white-space:normal!important;text-align:center!important;font-size:20px!important;line-height:19px!important}

/* Match the two-line group label to the 26 + 2 + 18px individual caption block. */
.v76-pets .v77-all>.v76-pet-caption{height:46px!important;justify-content:center!important;bottom:22px!important}
.v79-photo-dialog{width:min(420px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;border:1px solid white;border-radius:24px;padding:20px;background:#f6f1ff;color:#282033}
.v79-photo-dialog::backdrop{background:#28203366;backdrop-filter:blur(8px)}
.v79-photo-dialog h2{margin:0 0 12px;font-size:24px}.v79-photo-dialog p{font-size:14px;line-height:20px}.v79-photo-dialog label{display:grid;gap:6px;margin:14px 0;font-size:14px}.v79-photo-dialog input{width:100%;min-height:44px;accent-color:#9991FC}.v79-frame-stage{position:relative;aspect-ratio:339/268;overflow:hidden;border-radius:20px 20px 45% 45%;background:#a8adfd;touch-action:none}.v79-frame-stage.is-lime{background:#c8df0c}.v79-frame-stage img,.v79-custom-portrait img{width:100%;height:100%;object-fit:contain;object-position:center bottom;transform-origin:center center;pointer-events:none;user-select:none}.v79-frame-tools{display:flex;gap:5px}.v79-frame-tools button{flex:1;min-height:44px}.v79-photo-dialog>.wide{margin-top:5px;min-height:44px}.v79-custom-portrait{position:absolute;inset:0 0 auto;height:63.1169%;overflow:hidden;border-radius:0 0 48% 48%;background:#ffffff33;pointer-events:none}.v77-pet-card.is-wide .v79-custom-portrait{left:54%;height:100%;border-radius:50% 0 0 50%}

/* Compact two-line title; glyph descenders must never be clipped. */
.v76-pets .v77-all>.v76-pet-caption>strong{line-height:18px!important;overflow:visible!important;max-height:none!important;height:auto!important;padding:2px 0!important;display:block!important;text-overflow:clip!important}
/* Sticky pet selectors: right-aligned, 7px visible gaps inside 44px touch targets. */
main>.top:has(>.section-tab-heading){
  padding-top:var(--section-heading-top)!important;
  padding-bottom:0!important;
  margin-bottom:var(--section-heading-gap)!important;
}
.section-tab-heading{
  display:grid;
  grid-template-columns:minmax(max-content,1fr) minmax(0,1fr);
  align-items:center;
  width:100%;
  min-height:var(--round-control-size);
}
main:has(>[data-health-section])>.top{display:none!important}
[data-health-section]>.pageheading{
  padding-top:var(--section-heading-top);
  min-height:calc(var(--section-heading-top) + var(--round-control-size));
  margin-bottom:var(--section-heading-gap)!important;
}
:is(.section-tab-heading,[data-health-section]>.pageheading)>h1{
  font-size:var(--section-heading-size);
  line-height:var(--section-heading-line);
  font-weight:var(--section-heading-weight);
  letter-spacing:-.025em;
  margin:0;
  overflow-wrap:anywhere;
}
.section-tab-heading>h1{padding-inline-end:8px}
.section-tab-heading>.v76-mini-pets{width:100%;max-width:100%;min-width:0;opacity:1;transform:none;pointer-events:auto;transition:none}
.v76-sticky-calendar .v76-mini-pets,.section-tab-heading>.v76-mini-pets{justify-content:flex-start!important;margin-left:auto!important;gap:0!important;mask-image:none!important;-webkit-mask-image:none!important}
.v76-mini-pets button{flex:0 0 44px!important;width:44px!important;height:44px!important;padding:3.5px!important;background:transparent!important}
.section-tab-heading .v76-mini-pets button{flex-basis:42px!important;width:42px!important;padding-inline:2.5px!important}
.v76-mini-pets button:first-child{margin-inline-start:auto}
.v76-mini-pets button>.t-avatar{width:37px!important;height:37px!important;min-width:37px!important;background-color:#a8adfd!important;box-sizing:border-box;border:2px solid transparent!important}
.v76-mini-pets button[aria-pressed=true]>.t-avatar{background-color:#c8df0c!important;border-color:white!important}
.v76-mini-pets button[data-v72-pet="all"]>.t-avatar{display:grid;place-items:center;color:#282034}
.v76-mini-pets button::before{display:none!important}
/* One real border clips every layer; no colored rim outside the selection. */
.v76-pets .v72-pet-choice.v77-pet-card,.v76-pets .v72-pet-choice.v77-pet-card:not(.is-selected){box-sizing:border-box!important;border:2px solid transparent!important;background-clip:padding-box!important;overflow:hidden!important;box-shadow:none!important}
.v76-pets .v72-pet-choice.v77-pet-card.is-selected{border:2px solid white!important;background-clip:padding-box!important;box-shadow:none!important}
.v76-pets .v72-pet-choice.v77-pet-card.is-selected::after{display:none!important;content:none!important}
/* Shared pet switcher across calendar, health and profile. */
.v78-avatar-scope{justify-content:flex-end!important;gap:0!important;margin-left:auto!important}
.v78-avatar-scope>button{flex:0 0 44px!important;width:44px!important;height:44px!important;padding:3.5px!important;border:0!important;background:transparent!important}
.v78-avatar-scope>button>.t-avatar{width:37px!important;height:37px!important;min-width:37px!important;background-color:#a8adfd!important;border:2px solid transparent!important;box-sizing:border-box}
.v78-avatar-scope>button.active>.t-avatar{background-color:var(--button-purple)!important;border-color:white!important}

.v72-masthead{display:flex!important;align-items:center!important;justify-content:space-between!important}.v72-masthead>div{display:flex!important;align-items:center!important;gap:8px!important}
/* Shared avatar row must end at the content edge, not the old filter fade inset. */
.top>.t-scope.v78-avatar-scope,.t-scope.v78-avatar-scope{width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding-left:0!important;padding-right:0!important;margin-right:0!important;mask-image:none!important;-webkit-mask-image:none!important;justify-content:flex-end!important}
/* Group typography wins over the individual-card rule; no edge fade on pet cards. */
.v76-pets .v77-pet-card.v77-all:not(.is-wide)>.v76-pet-caption>strong{font-size:20px!important;line-height:21px!important;overflow:visible!important}
.v76-pets .v72-pet-rail,.v76-pets .v72-pet-rail.can-left,.v76-pets .v72-pet-rail.can-right{mask-image:none!important;-webkit-mask-image:none!important}
/* Full-width scrolling viewport, preserving the content inset at its ends. */
.page.v72-home{--pet-rail-edge:20px}
.page.v72-home .v76-pets{overflow:visible!important}
.page.v72-home .v76-pets .v72-pet-rail{width:calc(100% + var(--pet-rail-edge) + var(--pet-rail-edge))!important;max-width:none!important;margin-left:calc(0px - var(--pet-rail-edge))!important;margin-right:calc(0px - var(--pet-rail-edge))!important;padding-left:var(--pet-rail-edge)!important;padding-right:var(--pet-rail-edge)!important;box-sizing:border-box!important;scroll-padding-inline:var(--pet-rail-edge);mask-image:none!important;-webkit-mask-image:none!important}
@media(max-width:360px){.page.v72-home{--pet-rail-edge:16px}}
/* Keyboard focus shares the circle; no oversized purple outline. */
.v76-mini-pets button:focus,.v76-mini-pets button:focus-visible,.t-scope.v78-avatar-scope>button:focus,.t-scope.v78-avatar-scope>button:focus-visible{outline:none!important;box-shadow:none!important}
.v76-mini-pets button:focus-visible>.t-avatar,.t-scope.v78-avatar-scope>button:focus-visible>.t-avatar{border-color:white!important;box-shadow:inset 0 0 0 1px #6334cf!important}
/* Override old filter-chip height/padding as a unit: circles cannot be clipped. */
.top>.t-scope.v78-avatar-scope,.t-scope.v78-avatar-scope{height:52px!important;min-height:52px!important;max-height:none!important;padding-top:4px!important;padding-bottom:4px!important;align-items:center!important;overflow-y:hidden!important;overflow-x:auto!important}
.top>.t-scope.v78-avatar-scope>button:not(.iconbutton),.t-scope.v78-avatar-scope>button:not(.iconbutton){box-sizing:border-box!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-height:44px!important;padding:3.5px!important;line-height:1!important;border:0!important;display:grid!important;place-items:center!important;overflow:visible!important}
.top>.t-scope.v78-avatar-scope>button:not(.iconbutton)>.t-avatar,.t-scope.v78-avatar-scope>button:not(.iconbutton)>.t-avatar{display:block!important;width:37px!important;height:37px!important;min-width:37px!important;max-width:37px!important;max-height:37px!important;aspect-ratio:1!important;flex:none!important;margin:0!important;object-fit:cover!important;border-radius:50%!important}

/* The light circle sits behind the portrait, leaving the silhouette free to overlap it. */
.v77-pet-card.is-wide .v79-custom-portrait {
 background:transparent;
 border-radius:0;
 overflow:visible;
}
.v77-pet-card.is-wide .v79-custom-portrait::before {
 content:'';
 position:absolute;
 left:.2189%;
 top:-19.5513%;
 width:135.4396%;
 aspect-ratio:1;
 border-radius:50%;
 background:#ffffff33;
 pointer-events:none;
}
.v77-pet-card.is-wide .v79-custom-portrait>img { position:relative; }

.v5-calendar-agenda > .sectionhead > .iconbutton[data-action="add-event"] {
  background: var(--surface) !important;
  border: 0;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Shared compact pet rail: four complete controls in each resting viewport. */
.v76-mini-pets {
  --pet-preview-size: 44px;
  direction: rtl;
  display: flex !important;
  flex: 0 1 calc(4 * var(--pet-preview-size)) !important;
  width: calc(4 * var(--pet-preview-size)) !important;
  max-width: 100% !important;
  min-width: 0;
  justify-content: flex-start !important;
  gap: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
.v76-mini-pets::-webkit-scrollbar { display: none; }
.v76-mini-pets button:first-child { margin-inline-start: 0; }
.v76-mini-pets button,
.section-tab-heading .v76-mini-pets button {
  flex: 0 0 25% !important;
  width: 25% !important;
  min-width: 0 !important;
  scroll-snap-align: start;
}
/* Width can shrink inside the four-slot rail; height must follow it. */
.v76-mini-pets button > .t-avatar {
  width: min(37px, 100%) !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  flex-shrink: 0;
  align-self: center;
  justify-self: center;
}
.v76-mini-pets button[aria-pressed=true] > .t-avatar {
  background-color: #c8df0c !important;
  border-color: white !important;
}
main > .top > .v76-mini-pets {
  margin-inline-start: auto;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: none;
}
.section-tab-heading { grid-template-columns: minmax(0, 1fr) min(176px, 57%); }
.section-tab-heading > .v76-mini-pets { justify-self: end; }
/* Opaque utility controls use the calendar arrow geometry. */
:root {
  --section-heading-size: 23px;
  --section-heading-line: 29px;
  --section-heading-weight: 750;
  --section-heading-top: 32px;
  --section-heading-gap: 16px;
  --round-control-size: 44px;
  --round-control-icon: 17px;
}
.v72-masthead .iconbutton,
.care-profile-menu button > span:first-child:has(> .icon),
.care-health-grid .care-health-card,
:where(.pageheading, .v8-heading-actions, .v14-document-tools) .iconbutton,
.v9-folder-edit {
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.care-health-grid > .care-health-card {
  overflow: hidden;
  box-shadow: none !important;
}
.care-health-grid > .care-health-card > .care-health-open {
  background: transparent !important;
  border-radius: inherit;
  box-shadow: none !important;
}
.care-health-grid > .care-health-card > .care-health-open:focus-visible {
  outline-offset: -3px;
}
.care-health-grid .v7-health-symbol {
  background-image: none !important;
  box-shadow: none !important;
}
:where(.iconbutton, .v9-folder-edit, .v72-calendar-open, .taily-event-calendar-nav > button,
  .care-profile-menu button > span:first-child, .care-pinned-link > .v18-pin-symbol, .v68-stock-open > .v18-pin-symbol,
  .v72-swipe-actions button > span) > svg.icon,
.care-health-grid .v7-health-symbol > svg.icon,
.taily-event-calendar-nav > button > svg {
  color: var(--icon-purple) !important;
  stroke: currentColor !important;
}
.care-health-grid .v7-health-symbol { --category-ink: var(--icon-purple); }
.care-health-grid .v7-health-symbol > svg.icon:is([data-icon="pill"], [data-icon="firstAid"]),
.care-pinned-link .v18-pin-symbol > svg.icon:is([data-icon="pill"], [data-icon="firstAid"]) { color: white !important; }
.v72-home .care-pinned-link > .v18-pin-symbol > svg.icon[data-icon="wellbeing"] {
  color: #fff !important;
}

#care-pins .care-pin-option {
  position: relative;
  cursor: pointer;
  padding-block: 20px;
}
#care-pins .care-pin-option:last-of-type {
  border-bottom: 1px solid #9a83ac26;
}
#care-pins .care-pin-label > .icon {
  color: var(--icon-purple);
}
#care-pins .care-pin-option > input {
  position: absolute;
  inset-inline-end: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  opacity: 0;
}
#care-pins .care-pin-option > .taily-choice-check {
  position: static;
  display: grid;
  flex: 0 0 24px;
  border: 1px solid #777;
  background: transparent;
}
#care-pins .taily-choice-check > .icon {
  width: 15px;
  height: 15px;
  color: inherit;
}
#care-pins input:checked + .taily-choice-check {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
}
#care-pins input:not(:checked) + .taily-choice-check > svg {
  visibility: hidden;
}
#care-pins input:focus-visible + .taily-choice-check {
  outline: 2px solid var(--icon-purple);
  outline-offset: 2px;
}
:where(.pageheading, .v8-heading-actions, .v14-document-tools, .monthtitle, .t-arrows) button.iconbutton,
.v5-calendar-agenda > .sectionhead > .iconbutton[data-action="add-event"],
.taily-event-calendar-nav > button {
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center;
  width: var(--round-control-size) !important;
  height: var(--round-control-size) !important;
  min-width: var(--round-control-size) !important;
  min-height: var(--round-control-size) !important;
  padding: 0 !important;
  border-radius: 50% !important;
  flex: 0 0 var(--round-control-size);
}
:where(.pageheading, .v8-heading-actions, .v14-document-tools, .monthtitle, .t-arrows) button.iconbutton > .icon,
.v5-calendar-agenda > .sectionhead > .iconbutton[data-action="add-event"] > .icon,
.taily-event-calendar-nav > button > svg {
  width: var(--round-control-icon) !important;
  height: var(--round-control-icon) !important;
  margin: 0 !important;
}
.v66-stock-previews > .v66-stock-preview {
  flex-basis: calc((100% - 10px) / 2) !important;
  width: calc((100% - 10px) / 2) !important;
  max-width: calc((100% - 10px) / 2);
}
.plus-inventory.plus-kit-grid .plus-stock-card { grid-template-columns: minmax(0, 1fr); }
.v66-stock-previews { scroll-snap-type: x mandatory; }
.care-pinned-link .v66-stock-preview > small,
.care-pinned-link > span > small {
  font-size: var(--action-detail-size) !important;
  line-height: var(--action-detail-line-height) !important;
  font-weight: var(--action-detail-weight) !important;
}

.v72-action .v72-swipe-actions button .icon,
.v76-health-record .v76-health-art > .icon,
.v76-mini-pets button[data-v72-pet="all"] > .t-avatar {
  color: var(--icon-purple) !important;
}

/* Health section actions use the same white frame as the calendar add button. */
[data-health-page] :is(.pageheading, .v8-heading-actions, .v14-document-tools) button.iconbutton,
[data-health-page] > button.v50-section-close,
.v5-calendar-agenda > .sectionhead > .iconbutton[data-action="add-event"],
.calendar-add-control {
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center;
  width: var(--round-control-size) !important;
  min-width: var(--round-control-size) !important;
  height: var(--round-control-size) !important;
  min-height: var(--round-control-size) !important;
  flex: 0 0 var(--round-control-size);
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
[data-health-page] :is(.pageheading, .v8-heading-actions, .v14-document-tools) button.iconbutton > .icon,
[data-health-page] > button.v50-section-close > .icon,
.v5-calendar-agenda > .sectionhead > .iconbutton[data-action="add-event"] > .icon,
.calendar-add-control > .icon {
  display: block;
  width: var(--round-control-icon) !important;
  height: var(--round-control-icon) !important;
  margin: 0 !important;
  color: var(--icon-purple) !important;
  stroke: currentColor !important;
}

/* The two sections share one indicator, including during a selection change. */
.tabs.taily-section-switch {
  --switch-inset: 4px;
  --switch-gap: 4px;
  position: relative;
  isolation: isolate;
  padding: var(--switch-inset) !important;
  gap: var(--switch-gap) !important;
}
.taily-section-switch::before {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--switch-inset);
  width: calc((100% - 2 * var(--switch-inset) - var(--switch-gap)) / 2);
  height: var(--filter-height);
  border-radius: 999px;
  background: var(--button-purple);
  pointer-events: none;
  z-index: -1;
  transform: translate(0, -50%);
  transition: transform var(--tab-indicator-duration) var(--tab-indicator-slide);
}
.taily-section-switch:has(> button:nth-child(2)[aria-pressed="true"])::before {
  transform: translate(calc(100% + var(--switch-gap)), -50%);
}
.tabs.taily-section-switch > button,
.tabs.taily-section-switch > button.active {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  font-size: 13px !important;
  line-height: var(--button-label-line) !important;
  font-weight: 400 !important;
}
.tabs.taily-section-switch > button[aria-pressed="true"] {
  color: #fff !important;
  font-weight: 600 !important;
}
.tabs.taily-section-switch > button:focus-visible { outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) {
  .taily-section-switch::before { transition: none; }
}

/* Match the reference without motion when the device requests it. */
@media(prefers-reduced-motion:reduce){.v72-home .v76-sticky-calendar>.sectionhead,.v72-home .v76-sticky-calendar>.sectionhead>h2,.v72-home .v76-sticky-calendar .v76-mini-pets,.v72-home .v76-sticky-calendar .v76-mini-pets button{transform:none!important;transition:none!important}}

/* The alternate pet filter uses the same proportional portrait box. */
.v78-avatar-scope > button > .t-avatar {
  width: min(37px, 100%) !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Keep All pets on the left; only the portraits scroll from right to left. */
.v76-mini-pets{direction:ltr;overflow:visible!important}
.v76-mini-pets>.v76-pet-thumbnails{direction:rtl;display:flex;align-items:center;flex:1;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-snap-type:x mandatory;gap:0}
.v76-pet-thumbnails::-webkit-scrollbar{display:none}
.v76-mini-pets>.v76-pet-thumbnails>button{flex:0 0 25%!important;width:25%!important}
.v76-mini-pets.has-all>.v76-pet-thumbnails>button{flex-basis:33.333333%!important;width:33.333333%!important}
.v76-mini-pets>button[data-v72-pet="all"]{flex:0 0 25%!important;width:25%!important;margin:0!important}
