.pet-diary-page{background:var(--lp-page,#fbf8f2)}
.pet-diary-shell{max-width:1180px;padding-top:34px}
.pet-diary-shell svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pet-breadcrumb{display:flex;gap:10px;margin:0 0 14px;color:var(--lp-muted,#5f6f68);font-size:14px}.pet-breadcrumb a{text-decoration:none}
.pet-identity{display:grid;grid-template-columns:205px minmax(0,1fr) 240px;gap:34px;align-items:center;padding-bottom:16px;border-bottom:1px solid var(--lp-border,#e4d5c3)}
.pet-identity__photo{height:180px;overflow:hidden;border-radius:16px;background:#f4eadc}.pet-identity__photo img{width:100%;height:100%;object-fit:cover;object-position:center}
.pet-identity__photo>svg{width:64px;height:64px;color:var(--lp-brand,#15543c)}.pet-identity__photo:not(:has(img)){display:grid;place-items:center;background:linear-gradient(145deg,#edf3ec,#f5eadb)}
.pet-identity h1{margin:0 0 14px;color:var(--lp-brand-dark,#0d442f);font:400 clamp(3rem,5vw,4rem)/1 var(--lp-display,Georgia,serif)}
.pet-facts{display:flex;flex-wrap:wrap;gap:10px}.pet-facts span,.pet-chip{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid var(--lp-border,#e4d5c3);border-radius:10px;background:#fffdf9}.pet-facts svg{width:20px;height:20px}
.pet-ok{display:flex;align-items:center;gap:10px;margin:16px 0 0;font-size:20px}.pet-ok b{display:grid;width:34px;height:34px;place-items:center;border-radius:50%;background:#2f7d4c;color:#fff}.pet-ok svg{width:22px;height:22px;stroke-width:2}
.profile-progress{padding:20px;border:1px solid var(--lp-border,#e4d5c3);border-radius:14px;background:#fffdf9}.profile-progress>span{display:block;color:var(--lp-muted,#5f6f68)}.profile-progress strong{display:block;margin:6px 0;color:var(--lp-brand,#15543c);font:400 3.2rem/1.1 var(--lp-display,Georgia,serif)}.profile-progress>div{height:9px;overflow:hidden;border-radius:99px;background:#eee7dc}.profile-progress i{display:block;height:100%;border-radius:inherit;background:var(--lp-brand,#15543c)}.profile-progress a{display:flex;align-items:center;gap:6px;margin-top:14px;text-decoration:none}.profile-progress a svg{width:18px;height:18px}
.diary-tabs{display:grid;grid-template-columns:repeat(5,1fr);margin:0 0 20px;border-bottom:1px solid var(--lp-border,#e4d5c3)}.diary-tabs a{display:flex;align-items:center;justify-content:center;gap:10px;padding:17px 8px;border-bottom:3px solid transparent;color:var(--lp-text,#172b25);text-decoration:none}.diary-tabs a[aria-current=page]{border-color:var(--lp-brand,#15543c);font-weight:700}.diary-tabs svg{width:27px;height:27px;stroke-width:1.55}
.diary-section h2,.diary-title-row h2{margin:8px 0 16px;color:var(--lp-brand-dark,#0d442f);font:400 clamp(2.4rem,4vw,3rem)/1.08 var(--lp-display,Georgia,serif)}
.diary-card{border:1px solid var(--lp-border,#e4d5c3);border-radius:14px;background:#fffdf9;box-shadow:0 10px 28px rgba(35,65,53,.035)}
.today-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.summary-card{display:flex;align-items:center;gap:14px;min-height:112px;padding:16px;text-decoration:none;color:inherit}.diary-icon,.plan-symbol,.document-icon,.expense-mini-icon{display:grid;width:52px;height:52px;flex:0 0 52px;place-items:center;border-radius:50%;background:#f5eee2;color:var(--lp-brand,#15543c)}.diary-icon svg,.plan-symbol svg,.document-icon svg{width:31px;height:31px}.summary-card>div{display:grid;flex:1;gap:3px}.summary-card small{font-size:16px}.summary-card strong{font:400 1.55rem/1.12 var(--lp-display,Georgia,serif)}.summary-card em{color:var(--lp-muted,#5f6f68);font-size:12px;font-style:normal}.card-arrow{width:20px;height:20px}.weight-sparkline{width:115px;height:60px}.weight-sparkline polyline{fill:none;stroke:var(--lp-brand,#15543c);stroke-width:2}.weight-sparkline circle{fill:var(--lp-brand,#15543c);stroke:none}
.diary-two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:14px;margin-top:14px}.diary-two-col>*{min-width:0}.daily-plan{padding:18px}.daily-plan header,.recent-timeline header,.expense-overview header,.diary-title-row,.weight-panel header{display:flex;align-items:center;justify-content:space-between;gap:16px}.daily-plan h3,.diary-card h3{margin:0;font:400 1.5rem/1.2 var(--lp-display,Georgia,serif)}.mini-button,.outline-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 13px;border:1px solid var(--lp-brand,#15543c);border-radius:9px;background:#fff;color:var(--lp-brand,#15543c);text-decoration:none}.mini-button svg,.outline-button svg{width:18px;height:18px}.daily-plan ol{margin:12px 0 0;padding:0;list-style:none}.daily-plan li{position:relative;display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--lp-border,#e4d5c3)}.daily-plan li>div{display:grid;flex:1}.daily-plan time{color:var(--lp-muted,#5f6f68)}.daily-plan form button,.upcoming-card form button{display:grid;width:28px;height:28px;place-items:center;border:0;background:transparent}.daily-plan form button span,.upcoming-card form button span{width:18px;height:18px;border:1.7px solid var(--lp-text,#172b25);border-radius:50%}
.today-aside{display:grid;min-width:0;gap:14px}.checkup-callout{position:relative;display:grid;min-width:0;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;padding:24px}.checkup-callout p{margin:6px 0 0;color:var(--lp-muted,#5f6f68)}.checkup-callout .button{min-width:160px}.callout-close{position:absolute;top:10px;right:10px;display:grid;width:34px;height:34px;place-items:center;border:0;background:transparent;color:var(--lp-muted,#5f6f68)}.callout-close svg{width:18px;height:18px}
.pet-assistant{display:flex;min-width:0;align-items:center;gap:16px;padding:16px 20px;border:1px solid #cfdaca;border-radius:14px;background:#f0f5ed}.pet-assistant h3{margin:0;font:400 1.45rem var(--lp-display,Georgia,serif)}.pet-assistant p{margin:4px 0}.pet-assistant--photo>img{width:74px!important;height:74px!important;max-width:74px!important;flex:0 0 74px;border-radius:50%;object-fit:cover}.assistant-paw{display:grid;width:48px;height:48px;flex:0 0 48px;place-items:center;border:1px solid #cfdaca;border-radius:50%;background:#e6efe3;color:var(--lp-brand,#15543c)}.assistant-paw svg{width:30px;height:30px;fill:currentColor;stroke:none}.pet-assistant--photo .assistant-paw{margin-left:auto}
.diary-title-row{margin:4px 0 16px}.diary-title-row p{margin:5px 0 0;color:var(--lp-muted,#5f6f68)}.diary-context-title{justify-content:flex-start}.pet-chip{margin-left:20px}.pet-chip img{width:32px;height:32px;border-radius:50%;object-fit:cover}.pet-chip i{font-style:normal;color:var(--lp-muted,#5f6f68)}
.health-layout{display:grid;width:100%;min-width:0;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:14px}.health-layout>div{display:grid;width:100%;min-width:0;grid-template-columns:minmax(0,1fr);align-content:start;gap:14px}.health-overview{width:100%;min-width:0;padding:22px}.health-overview dl{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0}.health-overview dt{display:flex;align-items:center;gap:9px}.health-overview dt svg{width:25px;height:25px;color:var(--lp-brand,#15543c)}.health-overview dd{margin:4px 0 0 34px;color:var(--lp-brand,#15543c)}
.weight-panel{padding:22px}.weight-panel header p{margin:4px 0;color:var(--lp-muted,#5f6f68)}.weight-panel header>span{padding:6px 10px;border:1px solid var(--lp-border,#e4d5c3);border-radius:8px}.weight-chart-wrap{position:relative;margin:18px 0 4px;padding:0 0 22px 52px}.weight-chart{width:100%;height:180px;overflow:visible}.weight-chart line{stroke:#dce4de;stroke-width:.7;stroke-dasharray:2 2}.weight-chart .weight-target{fill:#e9efe3;stroke:none}.weight-chart polyline{fill:none;stroke:var(--lp-brand,#15543c);stroke-width:2}.weight-chart circle{fill:var(--lp-brand,#15543c);stroke:none}.weight-axis{position:absolute;left:0;color:var(--lp-muted,#5f6f68);font-size:11px}.weight-axis--1{top:4px}.weight-axis--2{top:49px}.weight-axis--3{top:94px}.weight-axis--4{top:139px}.weight-dates{display:flex;justify-content:space-between;color:var(--lp-muted,#5f6f68);font-size:10px}.chart-legend{display:flex;justify-content:center;gap:20px;color:var(--lp-muted,#5f6f68);font-size:12px}.chart-legend i{display:inline-block;width:24px;height:3px;margin-right:7px;background:var(--lp-brand,#15543c);vertical-align:middle}.chart-legend i.target{height:10px;border-radius:4px;background:#e9efe3}.weight-panel h4{margin:18px 0 10px;font:400 1.1rem var(--lp-display,Georgia,serif)}
.health-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.health-metrics>div{display:grid;grid-template-columns:34px 1fr;gap:2px 8px;padding:12px;border:1px solid var(--lp-border,#e4d5c3);border-radius:10px}.health-metrics svg{grid-row:1/4;width:30px;height:30px;color:var(--lp-brand,#15543c)}.health-metrics strong{color:var(--lp-brand,#15543c);font:400 1.35rem var(--lp-display,Georgia,serif)}.health-metrics small{color:var(--lp-muted,#5f6f68)}
.upcoming-card,.medications{padding:20px}.upcoming-card ul{margin:8px 0 0;padding:0;list-style:none}.upcoming-card li{display:grid;grid-template-columns:26px 1fr auto auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--lp-border,#e4d5c3)}.upcoming-card li>svg{width:23px;height:23px;color:var(--lp-brand,#15543c)}.upcoming-card time{color:var(--lp-muted,#5f6f68)}.reminder-note{display:grid;grid-template-columns:28px 1fr auto;gap:10px;align-items:center;margin-top:12px;padding:12px;border:1px solid #e7ca9a;border-radius:9px;background:#fff8e9}.reminder-note>svg{width:25px;height:25px;color:#b8652a}.reminder-note div{display:grid}.reminder-note span{color:var(--lp-muted,#5f6f68);font-size:12px}.reminder-note button{padding:8px 12px;border:1px solid #c99b61;border-radius:8px;background:transparent;color:#744916}
.medications>div{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--lp-border,#e4d5c3)}.medications p{display:grid;flex:1;margin:0}.medications small{color:var(--lp-muted,#5f6f68)}.medications>div>b svg{width:25px;height:25px;color:#2f7d4c}.row-arrow{width:18px;height:18px}.outline-button{justify-content:space-between;margin-top:14px}
.recent-timeline{margin-top:14px;padding:16px 20px}.recent-timeline header>div{display:grid;gap:10px}.timeline-filters{display:flex;gap:7px}.timeline-filters span{padding:6px 12px;border:1px solid var(--lp-border,#e4d5c3);border-radius:999px;background:#f8f3eb;font-size:12px}.timeline-filters .is-active{background:var(--lp-brand,#15543c);color:#fff}.recent-timeline>div{display:grid;grid-template-columns:repeat(4,1fr);margin-top:14px}.recent-timeline article{display:grid;grid-template-columns:58px 48px 1fr;gap:6px 10px;padding:0 14px;border-right:1px solid var(--lp-border,#e4d5c3)}.recent-timeline article:last-child{border:0}.recent-timeline time{grid-row:1/5;color:var(--lp-muted,#5f6f68);font-size:11px}.recent-timeline .diary-icon{grid-row:1/4;width:44px;height:44px}.recent-timeline .diary-icon svg{width:25px;height:25px}.recent-timeline h4,.recent-timeline p,.recent-timeline small{grid-column:3;margin:0}.recent-timeline h4{font:600 14px var(--lp-body,system-ui)}.recent-timeline p{font-size:12px}.recent-timeline small{justify-self:start;padding:4px 8px;border:1px solid var(--lp-border,#e4d5c3);border-radius:999px;color:var(--lp-muted,#5f6f68);font-size:10px}
.pet-assistant--wide{margin-top:14px}.pet-assistant--wide p{flex:1}.pet-assistant--wide a{display:flex;align-items:center;gap:8px;text-decoration:none}.pet-assistant--wide a svg{width:18px;height:18px}
.diary-history-layout{display:grid;grid-template-columns:220px 1fr;gap:14px}.diary-stats{display:grid;align-content:start;padding:20px}.diary-stats strong{margin-top:16px;color:var(--lp-brand,#15543c);font:400 2.5rem var(--lp-display,Georgia,serif)}.diary-stats span{color:var(--lp-muted,#5f6f68)}.journal-list{padding:20px}.filter-chips{display:flex;gap:8px;margin-bottom:10px;overflow-x:auto}.filter-chips button{padding:7px 13px;border:1px solid var(--lp-border,#e4d5c3);border-radius:999px;background:#f8f3eb}.filter-chips button.is-active{background:var(--lp-brand,#15543c);color:#fff}.journal-list article{display:grid;grid-template-columns:135px 1fr;padding:16px 0;border-top:1px solid var(--lp-border,#e4d5c3)}.journal-list time{color:var(--lp-muted,#5f6f68);font-size:12px}.journal-list article>div{display:grid;grid-template-columns:auto 1fr;gap:4px 12px}.journal-list .diary-icon{grid-row:1/4}.journal-list h3,.journal-list p,.journal-list small{grid-column:2;margin:0}.journal-list small{color:var(--lp-muted,#5f6f68)}
.combined-title{margin-bottom:12px}.expense-documents-layout{display:grid;grid-template-columns:1.65fr 1fr;gap:14px}.expense-overview,.documents-list,.care-habits{padding:20px}.expense-overview header{display:grid;grid-template-columns:1fr auto auto}.expense-overview header>strong{color:var(--lp-text,#172b25);font:400 2rem var(--lp-display,Georgia,serif)}.expense-change{padding:7px 10px;border:1px solid #ccd5c9;border-radius:999px;background:#f5f7f0;font-size:12px}.expense-content{display:grid;grid-template-columns:190px 1fr 1.15fr;gap:18px;align-items:center;margin-top:14px}.expense-donut{position:relative;display:grid;width:175px;aspect-ratio:1;place-items:center;border-radius:50%}.expense-donut:before{position:absolute;width:54%;height:54%;border-radius:50%;background:#fffdf9;content:""}.expense-donut span{z-index:1;text-align:center;font-size:12px}.expense-donut b{font:400 1rem var(--lp-display,Georgia,serif)}.expense-content>ul,.recent-expenses ul{margin:0;padding:0;list-style:none}.expense-content>ul{padding-right:16px;border-right:1px solid var(--lp-border,#e4d5c3)}.expense-content>ul li{display:grid;grid-template-columns:auto 1fr auto auto;gap:8px;padding:7px 0;font-size:12px}.expense-dot{width:12px;height:12px;border-radius:50%;background:#15543c}.expense-dot--veterinary{background:#dfc28e}.expense-dot--care{background:#99b79e}.expense-dot--accessories{background:#c8974c}.expense-content small{color:var(--lp-muted,#5f6f68)}.recent-expenses h4{margin:0 0 6px;font:500 13px var(--lp-body,system-ui)}.recent-expenses li{display:grid;grid-template-columns:30px 55px 1fr auto;gap:7px;align-items:center;padding:6px 0;font-size:11px}.expense-mini-icon{width:28px;height:28px}.expense-mini-icon svg{width:17px;height:17px}.recent-expenses time{color:var(--lp-muted,#5f6f68)}.expense-add{display:flex;width:220px;justify-content:center;margin:14px auto 0}
.documents-list>h3{margin-bottom:10px}.documents-list article{display:grid;grid-template-columns:auto 1fr auto 22px 22px;gap:10px;align-items:center;padding:11px;border:1px solid var(--lp-border,#e4d5c3);border-radius:10px;margin-bottom:8px}.documents-list h4{margin:0;font:600 13px var(--lp-body,system-ui)}.documents-list small{color:var(--lp-muted,#5f6f68);font-size:11px}.document-icon{width:42px;height:42px;flex-basis:42px;border-radius:9px}.document-icon svg{width:25px;height:25px}.document-status{display:flex;align-items:center;gap:5px;color:#4b6c37;font-size:11px}.document-status svg,.document-lock,.documents-list article>a svg{width:18px;height:18px}.documents-list article>a{display:grid;place-items:center}.documents-list .outline-button{width:100%}
.care-habits{margin-top:14px}.care-habits__layout{display:grid;grid-template-columns:1fr 280px;gap:24px;margin-top:12px}.care-habits__cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.care-habits article{display:grid;grid-template-columns:38px 1fr;gap:3px 9px;padding:13px;border:1px solid var(--lp-border,#e4d5c3);border-radius:10px}.care-habits article>svg{grid-row:1/5;width:32px;height:32px;color:var(--lp-brand,#15543c)}.care-habits strong{font:400 1.45rem var(--lp-display,Georgia,serif)}.care-habits article>i{grid-column:2;height:7px;border-radius:99px;background:linear-gradient(to right,var(--lp-brand,#15543c) var(--progress),#eee7dc var(--progress))}.care-habits small{color:var(--lp-muted,#5f6f68)}.care-medal{display:flex;align-items:center;gap:15px;padding-left:24px;border-left:1px solid var(--lp-border,#e4d5c3)}.care-medal>svg{width:72px;height:72px;color:#5e704a}.care-medal h4{margin:0;font:400 1.3rem var(--lp-display,Georgia,serif)}.care-medal p{margin:5px 0}
.diary-useful{margin-top:14px;padding:0 14px}.diary-useful>h3{margin:0 0 10px;font:400 1.45rem var(--lp-display,Georgia,serif)}.diary-useful>div{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.diary-useful a{display:grid;grid-template-columns:128px 1fr;overflow:hidden;border:1px solid var(--lp-border,#e4d5c3);border-radius:12px;background:#fffdf9;color:inherit;text-decoration:none}.diary-useful__image{background-position:center;background-size:cover}.diary-useful__image--1{background-image:url("/static/core/images/home/articles/corgi-grooming.fba5545292f6.jpg")}.diary-useful__image--2{background-image:url("/static/core/images/breeds/golden-retriever.eacc63653505.jpg")}.diary-useful__image--3{background-image:url("/static/core/images/home/direction-clinic.b61a24b590f2.jpg")}.diary-useful a>span:last-child{display:grid;padding:11px}.diary-useful small{justify-self:start;padding:3px 6px;border-radius:5px;background:#e9efe3}.diary-useful strong{margin:5px 0}.diary-useful p{margin:0;color:var(--lp-muted,#5f6f68);font-size:11px}.diary-useful em{align-self:end;margin-top:8px;color:var(--lp-muted,#5f6f68);font-size:10px;font-style:normal}.pet-assistant--decor{overflow:hidden}.pet-assistant--decor img{width:120px;height:62px;object-fit:cover;object-position:center 35%;mix-blend-mode:multiply}
.empty-row{padding:14px 0;color:var(--lp-muted,#5f6f68)}

/* Expenses and documents are separate diary workspaces. */
.expense-summary,.document-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:14px}.expense-summary article,.document-summary article{display:grid;gap:5px;padding:18px 20px}.expense-summary small,.document-summary small{color:var(--lp-muted,#5f6f68);font-size:12px}.expense-summary strong,.document-summary strong{color:var(--lp-brand-dark,#0d442f);font:600 1.75rem/1.1 var(--lp-display,Georgia,serif)}.expense-summary span,.document-summary span{color:var(--lp-muted,#5f6f68);font-size:11px;line-height:1.4}
.expense-dashboard{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:14px}.expense-overview>header,.recent-expenses>header,.expense-trend>header,.documents-page>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.expense-overview header>div,.recent-expenses header>div,.expense-trend header>div,.documents-page header>div{display:grid;gap:3px}.expense-overview header h3,.recent-expenses header h3,.expense-trend header h3,.documents-page header h3{margin:0}.expense-overview>header>strong{font-size:1.65rem}.expense-breakdown{display:grid;grid-template-columns:175px 1fr;gap:22px;align-items:center;margin-top:18px}.expense-breakdown>ul{margin:0;padding:0;list-style:none}.expense-breakdown>ul li{display:grid;grid-template-columns:auto 1fr auto auto;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid var(--lp-border,#e4d5c3);font-size:12px}.expense-breakdown>ul li:last-child{border:0}.expense-dot--medication{background:#85a7b3}.expense-empty{display:grid;grid-template-columns:90px 1fr;gap:22px;align-items:center;min-height:250px;padding:34px}.expense-empty>span,.document-empty>span{display:grid;width:90px;height:90px;place-items:center;border-radius:26px;background:#e7f0e9;color:var(--lp-brand,#15543c)}.expense-empty>span svg,.document-empty>span svg{width:48px;height:48px}.expense-empty h3,.document-empty h3{margin:2px 0 8px;font-size:1.55rem}.expense-empty p,.document-empty p{max-width:650px;margin:0;color:var(--lp-muted,#5f6f68);line-height:1.55}.expense-empty .button,.document-empty .button{margin-top:16px}
.recent-expenses{padding:20px}.recent-expenses>ul{display:grid;gap:2px;margin-top:12px}.recent-expenses>ul li{grid-template-columns:36px 1fr auto;min-height:54px;padding:8px 0;border-bottom:1px solid var(--lp-border,#e4d5c3);font-size:12px}.recent-expenses>ul li>div{display:grid;gap:2px}.recent-expenses>ul li>div small{color:var(--lp-muted,#5f6f68)}.recent-expenses>ul li>b{white-space:nowrap}.recent-expenses .outline-button{width:100%}
.expense-trend{margin-top:14px;padding:22px}.expense-trend>header>span{color:var(--lp-muted,#5f6f68);font-size:12px}.expense-bars{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;height:230px;margin-top:18px}.expense-bars>div{display:grid;min-width:0;grid-template-rows:30px 1fr 22px;gap:5px;text-align:center}.expense-bars b{overflow:hidden;color:var(--lp-muted,#5f6f68);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.expense-bars>div>span{display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid var(--lp-border,#e4d5c3);background:linear-gradient(180deg,transparent,#f6f4ee)}.expense-bars i{display:block;width:min(58px,72%);min-height:5px;border-radius:8px 8px 2px 2px;background:linear-gradient(180deg,#4b8469,var(--lp-brand,#15543c))}.expense-bars small{color:var(--lp-muted,#5f6f68);text-transform:uppercase}
.documents-page{padding:22px}.document-privacy{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:#e7f0e9;color:var(--lp-brand,#15543c);font-size:11px;font-weight:750}.document-privacy svg{width:16px;height:16px}.documents-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.documents-grid article{display:grid;grid-template-columns:auto 1fr auto 28px;gap:10px;align-items:center;padding:14px;border:1px solid var(--lp-border,#e4d5c3);border-radius:12px}.documents-grid h4{margin:0;font-size:14px}.documents-grid article>div{display:grid;gap:3px}.documents-grid article>div small,.documents-grid article>div p{margin:0;color:var(--lp-muted,#5f6f68);font-size:11px}.document-download{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;color:var(--lp-brand,#15543c)}.document-download svg{width:18px;height:18px}.document-empty{display:grid;justify-items:center;padding:50px 24px 34px;text-align:center}.document-empty>span{margin-bottom:14px}.document-safety{display:flex;align-items:flex-start;gap:14px;margin-top:14px;padding:18px 20px;border:1px solid #ccd8cf;border-radius:14px;background:#eef5ef}.document-safety>svg{width:28px;height:28px;flex:0 0 28px;color:var(--lp-brand,#15543c)}.document-safety p{margin:4px 0 0;color:var(--lp-muted,#5f6f68);font-size:12px}

/* Diary 2.0 */
.pet-status{display:flex;align-items:center;gap:9px;margin:14px 0 0;color:var(--lp-muted,#5f6f68);font-size:14px}.pet-status b{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;background:#e7f0e9;color:var(--lp-brand,#15543c)}.pet-status svg{width:18px;height:18px}.diary-welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin:10px 0 18px}.diary-welcome h2{margin:2px 0 6px;color:var(--lp-brand-dark,#0d442f);font-size:clamp(2.25rem,4vw,3.2rem);line-height:1}.diary-welcome p{margin:0;color:var(--lp-muted,#5f6f68)}.diary-quick-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.diary-quick-actions a{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:9px 13px;border:1px solid var(--lp-border,#e4d5c3);border-radius:11px;background:#fff;color:var(--lp-brand,#15543c);font-size:13px;font-weight:700;text-decoration:none}.diary-quick-actions a:first-child{border-color:var(--lp-brand,#15543c);background:var(--lp-brand,#15543c);color:#fff}.diary-quick-actions svg{width:19px;height:19px}.diary-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr);gap:14px}.dashboard-plan,.daily-checkin,.dashboard-trend,.care-rhythm{min-width:0;padding:20px}.dashboard-plan ol{margin-bottom:0}.dashboard-plan li.is-overdue{background:#fff4ee}.dashboard-plan li.is-overdue time{color:#8c4434}.dashboard-plan footer{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--lp-border,#e4d5c3)}.dashboard-plan footer span{color:var(--lp-muted,#5f6f68);font-weight:700}.dashboard-plan footer small{padding:3px 7px;border-radius:7px;background:#f1f3ed}.daily-checkin header,.dashboard-trend header,.care-rhythm header,.achievements-panel>header,.service-bridge>header,.care-circle>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.daily-checkin form{display:grid;gap:12px;margin-top:14px}.checkin-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.checkin-fields fieldset{min-width:0;margin:0;padding:10px;border:1px solid var(--lp-border,#e4d5c3);border-radius:10px}.checkin-fields legend{padding:0 4px;font-size:12px;font-weight:750}.checkin-fields ul{display:grid;gap:5px;margin:0;padding:0;list-style:none}.checkin-fields label{display:flex;align-items:flex-start;gap:6px;color:var(--lp-muted,#5f6f68);font-size:11px;line-height:1.25}.checkin-fields input{margin:1px 0 0;accent-color:var(--lp-brand,#15543c)}.daily-checkin>form>label{font-size:12px;font-weight:750}.daily-checkin input[type=text]{width:100%;min-height:42px;margin:0;padding:9px 11px;border:1px solid #aebcb4;border-radius:9px;font:inherit}.daily-checkin .button{justify-self:start;margin:0}.saved-state{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:999px;background:#e7f0e9;color:var(--lp-brand,#15543c);font-size:11px;font-weight:750}.saved-state svg{width:15px;height:15px}.daily-checkin dl{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0 0}.daily-checkin dl div{padding:10px;border-radius:10px;background:#f4f2ea}.daily-checkin dt{color:var(--lp-muted,#5f6f68);font-size:11px}.daily-checkin dd{margin:4px 0 0;font-weight:700}.dashboard-trend>p,.care-rhythm>p,.care-circle>p{color:var(--lp-muted,#5f6f68);font-size:13px;line-height:1.5}.dashboard-chart{display:grid;gap:4px;margin-top:12px;color:var(--lp-brand,#15543c);font-size:12px;text-decoration:none}.dashboard-chart svg{width:100%;height:92px;border-radius:10px;background:linear-gradient(180deg,#eef4ed,#fff)}.dashboard-chart polyline{fill:none;stroke:var(--lp-brand,#15543c);stroke-width:2}.dashboard-chart circle{fill:var(--lp-brand,#15543c);stroke:#fff;stroke-width:1}.care-rhythm header>strong{color:var(--lp-brand,#15543c);font-size:1.7rem}.care-rhythm header>strong small{display:block;color:var(--lp-muted,#5f6f68);font-size:10px;font-weight:500}.rhythm-bars{display:grid;grid-template-columns:repeat(14,1fr);gap:5px;align-items:end;height:105px;margin-top:14px}.rhythm-bars>span{display:grid;height:100%;grid-template-rows:1fr auto;align-items:end;gap:5px;text-align:center}.rhythm-bars i{display:block;min-height:8px;border-radius:6px 6px 3px 3px;background:#e7e9e4}.rhythm-bars .level-1 i{height:28%;background:#cbdcca}.rhythm-bars .level-2 i{height:48%;background:#a7c4ad}.rhythm-bars .level-3 i{height:70%;background:#71a282}.rhythm-bars .level-4 i{height:92%;background:var(--lp-brand,#15543c)}.rhythm-bars .is-today i{outline:2px solid #d3a552;outline-offset:2px}.rhythm-bars small{color:var(--lp-muted,#5f6f68);font-size:9px}.achievements-panel{margin-top:14px;padding:22px}.achievements-panel>header p{margin:5px 0 0;color:var(--lp-muted,#5f6f68);font-size:12px}.achievement-total{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:999px;background:#f5ecdc;color:#745b29;font-weight:750}.achievement-total svg{width:25px;height:25px}.achievements-panel>div{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:16px}.achievements-panel article{position:relative;display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:center;min-width:0;padding:12px;border:1px dashed #cbd2cc;border-radius:12px;opacity:.66}.achievements-panel article.is-earned{border-style:solid;border-color:#b9cdbd;background:#f3f7f1;opacity:1}.achievements-panel article>span{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:#edece7;color:#7b8b83}.achievements-panel article.is-earned>span{background:#dfece1;color:var(--lp-brand,#15543c)}.achievements-panel article>span svg{width:25px;height:25px}.achievements-panel article>div{display:grid;gap:3px}.achievements-panel article strong{font-size:12px}.achievements-panel article small{color:var(--lp-muted,#5f6f68);font-size:10px;line-height:1.35}.achievement-check{position:absolute;right:7px;top:7px;width:14px;height:14px;color:var(--lp-brand,#15543c)}.diary-support-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr);gap:14px;margin-top:14px}.service-bridge,.care-circle{padding:20px}.service-bridge>div{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}.service-bridge a{display:grid;grid-template-columns:44px 1fr 18px;gap:10px;align-items:center;padding:12px;border:1px solid var(--lp-border,#e4d5c3);border-radius:11px;color:inherit;text-decoration:none}.service-bridge a>span{display:grid;width:44px;height:44px;place-items:center;border-radius:11px;background:#e7f0e9;color:var(--lp-brand,#15543c)}.service-bridge svg{width:22px;height:22px}.service-bridge a>div{display:grid;gap:2px}.service-bridge a small,.service-bridge article small{color:var(--lp-muted,#5f6f68);font-size:10px}.service-bridge article{display:grid;gap:3px;padding:11px;border-radius:11px;background:#f5f3ec}.service-bridge article strong{font-size:12px}.service-bridge article p{margin:0;color:var(--lp-muted,#5f6f68);font-size:10px;line-height:1.4}.care-circle header>span{display:grid;width:34px;height:34px;place-items:center;border-radius:50%;background:#e7f0e9;color:var(--lp-brand,#15543c);font-weight:800}.care-circle ul{display:grid;gap:7px;margin:12px 0;padding:0;list-style:none}.care-circle li{display:grid;padding:9px 10px;border-radius:9px;background:#f5f3ec}.care-circle li small{color:var(--lp-muted,#5f6f68);font-size:10px}.diary-quick-actions a:hover,.service-bridge a:hover{border-color:var(--lp-brand,#15543c);background:#f4f8f3}.diary-quick-actions a:focus-visible,.daily-checkin :is(input,button):focus-visible,.service-bridge a:focus-visible,.care-circle a:focus-visible{outline:3px solid color-mix(in srgb,var(--lp-brand,#15543c) 28%,transparent);outline-offset:2px}
@media(max-width:1024px){.pet-identity{grid-template-columns:170px 1fr}.pet-identity__photo{height:150px}.profile-progress{grid-column:1/-1}.today-summary{grid-template-columns:1fr 1fr}.today-summary .summary-card:last-child{grid-column:1/-1}.health-layout,.diary-two-col,.expense-documents-layout{grid-template-columns:minmax(0,1fr)}.expense-content{grid-template-columns:190px 1fr 1fr}.care-habits__layout{grid-template-columns:1fr}.care-medal{padding:18px 0 0;border-top:1px solid var(--lp-border,#e4d5c3);border-left:0}.recent-timeline>div{grid-template-columns:repeat(2,1fr);gap:18px}.recent-timeline article:nth-child(2){border-right:0}}
@media(max-width:1024px){.diary-welcome{align-items:flex-start;flex-direction:column}.diary-quick-actions{justify-content:flex-start}.diary-dashboard-grid,.diary-support-grid{grid-template-columns:1fr}.achievements-panel>div{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1024px){.expense-dashboard{grid-template-columns:1fr}.documents-grid{grid-template-columns:1fr}}
@media(max-width:767px){.pet-diary-shell{padding:20px 14px 0}.pet-identity{grid-template-columns:92px 1fr;gap:12px}.pet-identity__photo{height:92px}.pet-identity h1{font-size:2.4rem}.pet-facts{gap:5px}.pet-facts span{padding:6px 8px;font-size:11px}.pet-facts svg{width:16px;height:16px}.pet-ok{font-size:17px}.profile-progress{padding:16px}.diary-tabs{display:flex;overflow-x:auto;margin-inline:-14px;padding-inline:14px;scroll-snap-type:x proximity}.diary-tabs a{flex:0 0 112px;scroll-snap-align:start}.diary-tabs svg{width:24px;height:24px}.today-summary{display:flex;overflow-x:auto;margin-inline:-14px;padding:0 14px 8px;scroll-snap-type:x mandatory}.summary-card{flex:0 0 82vw;scroll-snap-align:start}.diary-two-col,.health-layout,.diary-history-layout,.expense-documents-layout{grid-template-columns:1fr}.checkup-callout{grid-template-columns:auto 1fr}.checkup-callout .button{grid-column:1/-1}.pet-assistant--photo{align-items:flex-start}.pet-assistant--photo .assistant-paw{display:none}.diary-title-row{align-items:flex-start}.diary-context-title{flex-direction:column}.pet-chip{margin-left:0}.health-overview dl{grid-template-columns:1fr}.health-metrics{display:flex;overflow-x:auto}.health-metrics>div{flex:0 0 72%}.upcoming-card li{grid-template-columns:24px 1fr auto}.upcoming-card li form{grid-column:3}.reminder-note{grid-template-columns:26px 1fr}.reminder-note button{grid-column:1/-1}.recent-timeline header{align-items:flex-start}.timeline-filters{max-width:250px;overflow-x:auto}.recent-timeline>div{display:grid;grid-template-columns:1fr}.recent-timeline article{border-right:0;border-bottom:1px solid var(--lp-border,#e4d5c3);padding:12px 0}.journal-list article{grid-template-columns:1fr}.journal-list article>time{margin-bottom:7px}.expense-content{grid-template-columns:1fr;justify-items:center}.expense-content>ul{width:100%;padding:0;border:0}.recent-expenses{width:100%}.documents-list article{grid-template-columns:auto 1fr 22px 22px}.documents-list .document-status{grid-column:2}.care-habits__cards{grid-template-columns:1fr 1fr}.diary-useful>div{display:flex;overflow-x:auto;margin-inline:-14px;padding:0 14px 8px;scroll-snap-type:x mandatory}.diary-useful a{flex:0 0 84vw;scroll-snap-align:start}.pet-assistant--wide{align-items:flex-start;flex-wrap:wrap}.pet-assistant--wide a{width:100%;padding-left:64px}.pet-assistant--decor img{display:none}}
@media(max-width:767px){.expense-summary,.document-summary{grid-template-columns:1fr}.expense-breakdown{grid-template-columns:1fr;justify-items:center}.expense-breakdown>ul{width:100%}.expense-empty{grid-template-columns:1fr;justify-items:start;padding:24px}.expense-bars{gap:5px;height:190px}.expense-bars b{font-size:8px}.documents-grid article{grid-template-columns:auto 1fr 28px}.documents-grid .document-status{grid-column:2}.expense-overview>header,.expense-trend>header{flex-direction:column}.expense-overview>header>strong{font-size:1.35rem}}
@media(max-width:430px){.care-habits__cards{grid-template-columns:1fr}.expense-overview,.documents-list,.care-habits,.health-overview,.weight-panel,.upcoming-card,.medications,.daily-plan{padding:15px}.expense-overview header{grid-template-columns:1fr auto}.expense-change{grid-column:1/-1;justify-self:start;margin-top:8px}.weight-chart-wrap{padding-left:42px}.weight-axis{font-size:9px}.pet-chip{font-size:11px}.pet-chip i{display:none}}

.summary-action,.inline-edit-link{display:inline-flex;margin-top:6px;color:var(--lp-brand,#15543c);font-size:12px;font-style:normal;text-decoration:underline;text-underline-offset:3px}.chart-link{display:block;min-width:110px}.health-quick-actions{display:flex;gap:8px;margin:0 0 14px;overflow-x:auto;padding:2px 1px 6px}.health-quick-actions a{display:inline-flex;flex:0 0 auto;align-items:center;gap:7px;min-height:40px;padding:8px 13px;border:1px solid var(--lp-border,#e4d5c3);border-radius:10px;background:#fff;color:var(--lp-brand,#15543c);font-size:13px;text-decoration:none}.health-quick-actions svg{width:20px;height:20px}.health-quick-actions a:hover{border-color:var(--lp-brand,#15543c);background:#f7faf7}.health-quick-actions a:focus-visible,.inline-edit-link:focus-visible,.summary-action:focus-visible,.chart-link:focus-visible{outline:3px solid color-mix(in srgb,var(--lp-brand,#15543c) 28%,transparent);outline-offset:2px}.health-overview .inline-edit-link{margin:18px 0 0 34px}.timeline-filters button{padding:6px 12px;border:1px solid var(--lp-border,#e4d5c3);border-radius:999px;background:#f8f3eb;color:inherit;font:inherit;font-size:12px;cursor:pointer}.timeline-filters button:focus-visible{outline:3px solid color-mix(in srgb,var(--lp-brand,#15543c) 28%,transparent);outline-offset:2px}.reminder-note a{padding:7px 11px;border:1px solid currentColor;border-radius:8px;color:var(--lp-brand,#15543c);font-size:12px;text-decoration:none}
@media(max-width:767px){.health-quick-actions{margin-inline:-14px;padding-inline:14px}.health-overview .inline-edit-link{margin-left:0}.chart-link{min-width:92px}}
@media(max-width:767px){.diary-history-layout>*{min-width:0;width:100%;box-sizing:border-box}.journal-list article>div,.journal-list h3,.journal-list p,.journal-list small{min-width:0;overflow-wrap:anywhere}}
@media(max-width:767px){.pet-identity__main .eyebrow{display:none}.diary-welcome{margin-top:2px}.diary-quick-actions{display:flex;width:calc(100% + 28px);flex-wrap:nowrap;overflow-x:auto;margin-inline:-14px;padding:2px 14px 7px}.diary-quick-actions a{flex:0 0 auto}.diary-dashboard-grid{display:flex;flex-direction:column}.dashboard-plan,.daily-checkin,.dashboard-trend,.care-rhythm,.achievements-panel,.service-bridge,.care-circle{padding:16px}.daily-checkin{order:-1}.checkin-fields{grid-template-columns:1fr}.checkin-fields ul{grid-template-columns:repeat(2,1fr)}.achievements-panel>header{align-items:flex-start;flex-direction:column}.achievements-panel>div{display:flex;overflow-x:auto;margin-inline:-16px;padding:0 16px 7px;scroll-snap-type:x mandatory}.achievements-panel article{flex:0 0 78vw;scroll-snap-align:start}.service-bridge>div{grid-template-columns:1fr}.rhythm-bars{gap:3px}.rhythm-bars small{font-size:8px}}

.achievement-total{color:inherit;text-decoration:none;transition:background-color .18s ease,box-shadow .18s ease}.achievement-total>span{display:grid;gap:2px}.achievement-total strong{font-size:14px}.achievement-total small{font-size:9px;font-weight:650;opacity:.78}.achievement-total:hover{background:#eee0c6}.achievement-total:focus-visible,.achievement-explainer a:focus-visible{outline:3px solid color-mix(in srgb,var(--lp-brand,#15543c) 28%,transparent);outline-offset:2px}.achievement-explainer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:16px;padding:13px 15px;border-radius:12px;background:#f5f3ec}.achievement-explainer p{max-width:720px;margin:0;color:var(--lp-muted,#5f6f68);font-size:12px;line-height:1.5}.achievement-explainer p strong{color:var(--lp-brand-dark,#0d442f)}.achievement-explainer nav{display:flex;flex:0 0 auto;gap:8px}.achievement-explainer a{padding:8px 10px;border:1px solid #c5d3c8;border-radius:9px;color:var(--lp-brand,#15543c);font-size:11px;font-weight:750;text-decoration:none}.achievement-explainer a:hover{background:#fff}.achievements-panel article em{color:var(--lp-brand,#15543c);font-size:9px;font-style:normal;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.achievements-panel article:not(.is-earned) em{color:var(--lp-muted,#5f6f68)}
@media(max-width:767px){.achievement-explainer{align-items:flex-start;flex-direction:column}.achievement-explainer nav{width:100%;flex-wrap:wrap}.achievement-explainer a{flex:1;text-align:center}}
@media(prefers-reduced-motion:reduce){.diary-quick-actions a,.service-bridge a{transition:none}}
.life-stream{margin-top:14px;padding:20px}.life-stream>div{display:grid;margin-top:12px}.life-stream article{display:grid;grid-template-columns:105px 42px 1fr;gap:12px;align-items:start;padding:14px 0;border-top:1px solid var(--lp-border,#e4d5c3)}.life-stream article>time{color:var(--lp-muted,#5f6f68);font-size:11px}.life-stream article>span{display:grid;width:38px;height:38px;place-items:center;border-radius:50%;background:#e7f0e9;color:var(--lp-brand,#15543c)}.life-stream article>span svg{width:21px;height:21px}.life-stream article>div{display:grid;gap:4px}.life-stream article p{margin:0;color:var(--lp-muted,#5f6f68);font-size:12px;line-height:1.5}.life-stream article small{color:var(--lp-brand,#15543c);font-size:10px}
@media(max-width:767px){.life-stream{padding:16px}.life-stream article{grid-template-columns:38px 1fr}.life-stream article>time{grid-column:2}.life-stream article>span{grid-row:1/3}.life-stream article>div{grid-column:2}}

.pet-context-bar{display:flex;align-items:center;gap:12px;margin-bottom:14px;padding:12px 14px;border:1px solid var(--lp-border,#e4d5c3);border-radius:14px;background:#fffdf9}.pet-context-bar__photo{display:grid;width:58px;height:58px;flex:0 0 58px;place-items:center;overflow:hidden;border-radius:12px;background:#edf3ec;color:var(--lp-brand,#15543c)}.pet-context-bar__photo img{width:100%;height:100%;object-fit:cover}.pet-context-bar__photo svg{width:30px;height:30px}.pet-context-bar>div:nth-child(2){display:grid;gap:2px}.pet-context-bar span,.pet-context-bar small{color:var(--lp-muted,#5f6f68);font-size:11px}.pet-context-bar strong{font:500 1.35rem var(--lp-display,Georgia,serif)}.pet-context-bar>a{margin-left:auto;color:var(--lp-brand,#15543c);font-weight:700}.usual-checkin{margin-bottom:12px;padding:9px 13px;border:1px solid #b9cbbc;border-radius:999px;background:#eef5ef;color:var(--lp-brand,#15543c);font-weight:750}.record-inline-action{display:inline-flex;margin-top:6px;color:var(--lp-brand,#15543c);font-size:11px;font-weight:750}.pet-owner-tools{display:grid;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--lp-border,#e4d5c3)}.pet-owner-tools a,.pet-owner-tools button,.care-circle li button{border:0;background:none;color:var(--lp-brand,#15543c);font:700 11px var(--lp-body,system-ui);text-align:left;text-decoration:underline;cursor:pointer}.danger-link{color:#9b332b!important}.journal-list .timeline-filter-empty{padding:18px 0}.document-actions{display:grid;justify-items:end;gap:4px}
.documents-grid article{grid-template-columns:auto minmax(0,1fr) auto minmax(60px,auto)}.measurement-records{display:grid;gap:6px;margin:0 0 18px;padding:0;list-style:none}.measurement-records li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--lp-border,#e4d5c3);font-size:12px}.medication-note{max-width:120px;color:var(--lp-muted,#5f6f68);font-size:10px;text-align:right}
@media(max-width:767px){.diary-tabs{position:relative;scrollbar-width:thin}.diary-tabs:after{position:sticky;right:-1px;width:24px;flex:0 0 24px;background:linear-gradient(90deg,transparent,#fbf7ef);content:""}.pet-context-bar{margin-top:4px}.pet-context-bar>a{font-size:11px}.pet-diary-page .lapa-assistant__launcher,.pet-form-body .lapa-assistant__launcher{right:auto;left:14px}.pet-diary-shell,.pet-form-page{padding-bottom:130px}}
.pet-context-bar h1{margin:0;font:500 1.35rem var(--lp-display,Georgia,serif)}
@media(max-width:767px){.diary-title-row.combined-title{flex-direction:column}.diary-title-row.combined-title>.button{align-self:flex-start;white-space:normal}}
.pet-care-focus {
  margin: 10px 0 0;
  color: var(--muted, #65766f);
  font-size: 14px;
}

.pet-care-focus b {
  color: var(--ink, #17352a);
}

/* Keep the diary hero and check-in controls independent from global card/form rules. */
.pet-diary-page .pet-identity {
  gap: 28px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--lp-brand, #15543c) 13%, transparent);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .72), transparent 30%),
    linear-gradient(135deg, #edf4ed 0%, #f7f2e8 100%);
  box-shadow: 0 14px 36px rgba(35, 65, 53, .055);
}

.pet-diary-page .pet-identity__photo {
  height: 176px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 17px;
  box-shadow: 0 8px 24px rgba(35, 65, 53, .08);
}

.pet-diary-page .profile-progress {
  padding: 18px;
  border-color: rgba(21, 84, 60, .14);
  background: rgba(255, 255, 255, .68);
  box-shadow: none;
}

.pet-diary-page .daily-checkin {
  overflow: hidden;
}

.pet-diary-page .checkin-fields fieldset {
  display: grid;
  align-content: start;
  padding: 12px;
  background: #fbfcf9;
}

.pet-diary-page .checkin-fields legend {
  float: left;
  width: 100%;
  margin: 0 0 9px;
  padding: 0;
  color: var(--lp-text, #172b25);
  font-size: 12px;
  line-height: 1.3;
}

.pet-diary-page .checkin-fields ul {
  clear: both;
}

.pet-diary-page .checkin-fields label {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 30px;
  margin: 0;
  color: var(--lp-muted, #5f6f68);
  font-size: 11px;
  line-height: 1.25;
}

.pet-diary-page .checkin-fields input[type="radio"] {
  appearance: auto;
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  accent-color: var(--lp-brand, #15543c);
}

@media(max-width:1024px) {
  .pet-diary-page .pet-identity {
    gap: 20px;
  }
}

@media(max-width:767px) {
  .pet-diary-page .pet-identity {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
  }

  .pet-diary-page .pet-identity__photo {
    height: 92px;
    border-radius: 13px;
  }

  .pet-diary-page .profile-progress {
    padding: 14px;
  }

  .pet-diary-page .checkin-fields label {
    min-height: 28px;
  }
}

/* Health entries are actions, not section tabs. */
.health-record-actions {
  margin: 0 0 18px;
  padding: 20px;
  border: 1px solid var(--lp-border, #e4d5c3);
  border-radius: 18px;
  background: #fff;
}

.health-record-actions header h3 {
  margin: 2px 0 5px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.health-record-actions header > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--lp-muted, #5f6f68);
  font-size: 13px;
}

.health-record-actions nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.health-record-actions a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--lp-border, #e4d5c3);
  border-radius: 13px;
  background: #fafcf9;
  color: var(--lp-brand, #15543c);
  text-decoration: none;
  transition: .16s ease;
}

.health-record-actions a:hover {
  border-color: var(--lp-brand, #15543c);
  background: #f0f6f1;
  transform: translateY(-1px);
}

.health-record-actions a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--lp-brand, #15543c) 28%, transparent);
  outline-offset: 2px;
}

.health-record-actions svg {
  width: 28px;
  height: 28px;
}

.health-record-actions span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.health-record-actions strong {
  font-size: 12px;
  line-height: 1.25;
}

.health-record-actions small {
  color: var(--lp-muted, #5f6f68);
  font-size: 10px;
  line-height: 1.35;
}

.health-record-actions i {
  font-style: normal;
}

.recent-timeline article[hidden],
.journal-list article[hidden],
.recent-timeline .timeline-filter-empty[hidden],
.journal-list .timeline-filter-empty[hidden] {
  display: none !important;
}

.recent-timeline .timeline-filter-empty,
.journal-list .timeline-filter-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px 14px;
  color: var(--lp-muted, #5f6f68);
  text-align: center;
}

/* Readable weight charts: values, dates and personal target stay distinct. */
.weight-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.weight-summary > div {
  display: grid;
  gap: 2px;
  padding: 13px 15px;
  border: 1px solid var(--lp-border, #e4d5c3);
  border-radius: 12px;
  background: #fafcf9;
}

.weight-summary span,
.weight-summary small {
  color: var(--lp-muted, #5f6f68);
  font-size: 10px;
}

.weight-summary strong {
  color: var(--lp-brand-dark, #0d442f);
  font-size: 18px;
}

.weight-summary a {
  color: var(--lp-brand, #15543c);
}

.weight-chart-wrap {
  margin: 16px 0 4px;
  padding: 0;
}

.weight-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 180px;
  overflow: visible;
}

.weight-chart .weight-grid {
  stroke: #dce4de;
  stroke-width: 1;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
}

.weight-chart polyline {
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.weight-chart .weight-target-line {
  stroke: #c19b52;
  stroke-width: 2;
  stroke-dasharray: 7 5;
  vector-effect: non-scaling-stroke;
}

.weight-axis-label,
.weight-date-label,
.weight-target-label,
.weight-current-label {
  fill: var(--lp-muted, #5f6f68);
  font: 11px var(--lp-body, system-ui);
}

.weight-target-label {
  fill: #7a5b22;
  font-weight: 700;
}

.weight-current-label {
  fill: var(--lp-brand-dark, #0d442f);
  font-size: 12px;
  font-weight: 800;
}

.weight-chart circle {
  fill: #fff;
  stroke: var(--lp-brand, #15543c);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.weight-chart .is-latest circle {
  fill: var(--lp-brand, #15543c);
  stroke: #fff;
  stroke-width: 3;
}

.weight-point:focus {
  outline: none;
}

.weight-point:focus circle {
  stroke: #d3a552;
  stroke-width: 5;
}

.weight-chart-hint {
  margin: -2px 0 0;
  color: var(--lp-muted, #5f6f68);
  font-size: 10px;
  text-align: center;
}

.filter-chips button {
  color: var(--lp-brand-dark, #0d442f);
  cursor: pointer;
}

.filter-chips button:not(.is-active) {
  background: #f8f3eb;
}

.filter-chips button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--lp-brand, #15543c) 28%, transparent);
  outline-offset: 2px;
}

.dashboard-chart {
  gap: 7px;
}

.dashboard-chart svg {
  height: auto;
  min-height: 92px;
}

.dashboard-chart line {
  stroke: #d6e0d8;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.dashboard-chart polyline {
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.dashboard-chart circle {
  fill: #fff;
  stroke: var(--lp-brand, #15543c);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.dashboard-chart circle:last-of-type {
  fill: var(--lp-brand, #15543c);
}

.dashboard-chart__range {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--lp-muted, #5f6f68);
}

.dashboard-chart__range strong,
.dashboard-chart__range small {
  font-size: 10px;
}

.dashboard-chart > b {
  margin-top: 3px;
  font-size: 11px;
}

@media(max-width:1100px) {
  .health-record-actions nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width:767px) {
  .health-record-actions {
    padding: 16px;
  }

  .health-record-actions nav {
    grid-template-columns: 1fr;
  }

  .health-record-actions a {
    min-height: 68px;
  }

  .weight-summary {
    grid-template-columns: 1fr;
  }
}

.pet-diary-page .plan-hint {
  max-width: 440px;
  margin: 5px 0 0;
  color: var(--lp-muted, #5f6f68);
  font-size: 12px;
  line-height: 1.4;
}

.pet-diary-page .daily-plan form .complete-action {
  display: inline-flex;
  width: auto;
  height: auto;
  min-height: 34px;
  gap: 7px;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid #b7c5bc;
  border-radius: 9px;
  background: #fff;
  color: var(--lp-brand, #15543c);
  box-shadow: none;
  font-size: 11px;
}

.pet-diary-page .daily-plan form .complete-action:hover {
  border-color: var(--lp-brand, #15543c);
  background: #edf5ef;
  transform: none;
}

.pet-diary-page .daily-plan form .complete-action span {
  width: 16px;
  height: 16px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}

.pet-diary-page .daily-plan form .complete-action em {
  font-style: normal;
  font-weight: 720;
}

.pet-diary-page .completed-plan {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--lp-border, #e4d5c3);
}

.pet-diary-page .completed-plan > span {
  color: var(--lp-muted, #5f6f68);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pet-diary-page .completed-plan ul {
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.pet-diary-page .completed-plan li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px 0;
  border: 0;
  color: var(--lp-muted, #5f6f68);
}

.pet-diary-page .completed-plan li > svg {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: #e3efe5;
  color: var(--lp-brand, #15543c);
}

.pet-diary-page .completed-plan li > div {
  display: grid;
}

.pet-diary-page .completed-plan strong {
  font-size: 12px;
}

.pet-diary-page .completed-plan time {
  font-size: 10px;
}

.pet-diary-page .completed-plan form {
  margin: 0;
}

.pet-diary-page .completed-plan .reopen-action {
  width: auto;
  height: auto;
  min-height: 32px;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid #bdc9c1;
  border-radius: 8px;
  background: transparent;
  color: var(--lp-brand, #15543c);
  box-shadow: none;
  font-size: 10px;
  white-space: nowrap;
}

.pet-diary-page .completed-plan .reopen-action:hover {
  border-color: var(--lp-brand, #15543c);
  background: #edf5ef;
  transform: none;
}

@media(max-width:767px) {
  .pet-diary-page .daily-plan form .complete-action em {
    display: none;
  }

  .pet-diary-page .daily-plan form .complete-action {
    width: 34px;
    padding: 6px;
  }

  .pet-diary-page .completed-plan li {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .pet-diary-page .completed-plan form {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }
}
