/* Health journal: owner-only records, shared PatimiBul shell. */
.hj-page{--hj-ink:#19314d;--hj-muted:#586b82;--hj-blue:#0f5fab;--hj-teal:#087c79;--hj-border:#d8e3ed;--hj-surface:#f3f7fa;background:#f4f7fa;color:var(--hj-ink)}
.hj-page *, .hj-page *::before,.hj-page *::after{box-sizing:border-box}
.hj-page [hidden]{display:none!important}
.hj-main{width:100%;max-width:1240px;margin:0 auto;padding:24px 32px 56px;min-width:0}
.hj-page .pb-page-path{margin-bottom:24px}
.hj-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 24px;padding:8px 0 24px;border-bottom:1px solid var(--hj-border)}
.hj-eyebrow{font-size:12px!important;font-weight:750;letter-spacing:.11em;text-transform:uppercase;color:var(--hj-blue)!important;margin:0 0 8px!important}
.hj-hero h1{font-size:clamp(27px,3vw,38px);letter-spacing:-.035em;line-height:1.15;margin:0 0 10px;font-weight:760;color:var(--hj-ink)}
.hj-hero p:not(.hj-eyebrow){font-size:16px;line-height:1.5;color:var(--hj-muted);margin:0}
.hj-button,.hj-text-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font:inherit;font-size:14px;font-weight:650;text-decoration:none;line-height:1.4;cursor:pointer;overflow-wrap:anywhere;text-align:center}
.hj-button{padding:11px 17px;background:var(--hj-blue);color:#fff;border:1px solid var(--hj-blue);border-radius:12px;box-shadow:none;max-width:100%}
.hj-button:visited{color:#fff}.hj-button:hover{background:#084f94;color:#fff}.hj-button:disabled{opacity:.55;cursor:not-allowed}
.hj-button--secondary,.hj-button--secondary:visited{background:#fff;color:var(--hj-blue);border-color:#b8cce0}.hj-button--secondary:hover{background:#ecf4fa;color:#0b477d}
.hj-button--teal,.hj-button--teal:visited{background:var(--hj-teal);border-color:var(--hj-teal);color:#fff}.hj-button--teal:hover{background:#056462}
.hj-button--danger{background:#a62c25;border-color:#a62c25}.hj-button--danger:hover{background:#872019}
.hj-text-button{color:var(--hj-blue);padding:8px 2px;text-underline-offset:4px}.hj-text-button:hover{text-decoration:underline}
.hj-page :where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #e3a52b;outline-offset:3px}
.hj-panel{background:#fff;border:1px solid var(--hj-border);border-radius:18px;min-width:0;overflow:hidden}
.hj-panel>summary,.hj-extra>summary,.hj-vet-editor>summary,.hj-legacy>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;cursor:pointer;min-height:56px}
.hj-page summary::-webkit-details-marker{display:none}.hj-panel>summary{padding:19px 22px}
.hj-panel>summary strong{display:block;font-size:17px;line-height:1.35}.hj-panel>summary small{display:block;font-size:13px;line-height:1.5;color:var(--hj-muted);margin-top:3px}
.hj-chevron{font-size:19px;flex:0 0 16px}.hj-page details[open]>summary>.hj-chevron{transform:rotate(180deg)}
.hj-editor{margin-bottom:28px;scroll-margin-top:100px}.hj-editor[open]>summary{border-bottom:1px solid var(--hj-border)}
.hj-form{padding:22px;display:flex;flex-direction:column;gap:20px}.hj-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.hj-field{min-width:0;display:flex;flex-direction:column;gap:7px}.hj-field--wide{grid-column:1/-1}
.hj-field label,.hj-photos legend{font-size:14px;font-weight:650;color:var(--hj-ink);line-height:1.4}.hj-field label span,.hj-photos legend span{font-size:12px;font-weight:400;color:var(--hj-muted)}
.hj-field :is(input,select,textarea){font:inherit;font-size:16px;line-height:1.4;width:100%;min-width:0;min-height:46px;border:1px solid #91a8be;border-radius:10px;background:#fff;color:var(--hj-ink);padding:10px 12px;box-shadow:none}
.hj-field textarea{resize:vertical}.hj-field p,.hj-muted{font-size:12px;color:var(--hj-muted);line-height:1.55;margin:0}.hj-field[hidden]{display:none}
.hj-extra{background:#f5f8fb;padding:0 16px;border-radius:12px}.hj-extra>summary{font-size:14px;font-weight:650}.hj-extra>.hj-form-grid{padding-bottom:16px}
.hj-photos{border:0;padding:0;margin:0;min-width:0}.hj-photos legend{padding:0;margin-bottom:7px}.hj-photos>p{font-size:12px;color:var(--hj-muted);line-height:1.6;margin:0 0 12px}
.hj-photo-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}.hj-file-choice{position:relative;overflow:hidden}.hj-file-choice input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.hj-file-choice:focus-within{outline:3px solid #e3a52b;outline-offset:3px}
.hj-photo-existing{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0 16px}.hj-photo-existing label{max-width:160px;font-size:12px}.hj-photo-existing img{display:block;width:100%;height:100px;object-fit:cover;border-radius:8px;margin-bottom:7px}.hj-photo-existing span{display:flex;align-items:center;gap:7px;min-height:44px}.hj-photo-existing input{width:20px;height:20px}.hj-photo-preview{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.hj-photo-preview[hidden]{display:none}.hj-photo-preview img{width:90px;height:90px;object-fit:cover;border-radius:8px}
.hj-form-note,.hj-private-note{font-size:12px;line-height:1.6;color:var(--hj-muted);margin:0}.hj-form-note{padding:13px 16px;background:#f0f7f6;border-radius:10px}.hj-form-actions{display:flex;justify-content:flex-end;gap:12px}
.hj-layout{display:grid;grid-template-columns:minmax(0,1fr) 308px;gap:28px;align-items:start}.hj-history,.hj-sidebar{min-width:0}.hj-sidebar{display:flex;flex-direction:column;gap:20px}
.hj-section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.hj-section-heading h2,.hj-panel h2{font-size:21px;line-height:1.25;letter-spacing:-.02em;margin:0;color:var(--hj-ink)}.hj-section-heading p{font-size:13px;color:var(--hj-muted);margin:6px 0 0}
.hj-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.65fr) auto;gap:10px;align-items:end;margin-bottom:16px}.hj-filters label{font-size:12px}.hj-filters .hj-text-button{grid-column:1/-1;justify-self:start}
.hj-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#eaf2f9;border-radius:12px;margin-bottom:14px}.hj-selection-bar span{font-size:12px;color:#36526f}.hj-selection-bar button{font-size:12px;min-height:44px;padding:8px 12px}
.hj-selection-info{min-width:0}.hj-share-photo-option{display:flex;align-items:center;gap:7px;min-height:44px;font-size:11px;line-height:1.4;cursor:pointer;color:#36526f}.hj-share-photo-option input{width:18px;height:18px;flex:0 0 18px;accent-color:var(--hj-blue);margin:0}
.hj-record-list{display:flex;flex-direction:column;gap:12px}.hj-record{position:relative;background:#fff;border:1px solid var(--hj-border);border-radius:14px;padding-left:48px;scroll-margin-top:120px}.hj-record-select{position:absolute;left:4px;top:10px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer}.hj-record-select input{width:20px;height:20px;accent-color:var(--hj-blue);margin:0}
.hj-record-detail>summary{list-style:none;display:flex;gap:12px;align-items:center;justify-content:space-between;padding:18px 18px 18px 2px;cursor:pointer;min-height:94px}.hj-record-main{min-width:0;display:flex;flex-direction:column;gap:7px}.hj-record-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;font-size:11px;color:var(--hj-muted);line-height:1.5}.hj-record-meta>time{font-weight:650;color:#365875}.hj-record-main>strong{display:flex;flex-wrap:wrap;align-items:baseline;gap:7px 14px;font-size:16px;line-height:1.45;color:var(--hj-ink);overflow-wrap:anywhere}.hj-record-weight{font-size:17px;color:var(--hj-blue)}
.hj-record-teaser{font-size:13px;line-height:1.55;color:var(--hj-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.hj-record-detail[open] .hj-record-teaser{display:none}
.hj-status{font-size:10px;letter-spacing:.015em;padding:2px 7px;border-radius:5px;background:#eaf1f7;color:#355a7a}.hj-status--planned{background:#edf2fe;color:#36569b}.hj-status--active{background:#fff3dd;color:#855b0d}.hj-status--resolved{background:#e6f4ee;color:#22684c}
.hj-record-body{padding:0 18px 18px 2px;border-top:1px solid #edf2f6}.hj-record-body h3,.hj-legacy h3{font-size:12px;font-weight:750;margin:17px 0 6px}.hj-record-body p,.hj-legacy-body p{font-size:13px;line-height:1.65;margin:12px 0;color:#41566f}.hj-note-text{white-space:pre-wrap;overflow-wrap:anywhere}.hj-related a{color:var(--hj-blue)}.hj-record-photos{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.hj-record-photos a{display:block;width:110px;height:95px;border-radius:8px;overflow:hidden}.hj-record-photos img{width:100%;height:100%;object-fit:cover}
.hj-record-actions{display:flex;align-items:flex-start;gap:22px;flex-wrap:wrap;margin-top:12px}.hj-record-actions>.hj-text-button{font-size:13px}.hj-delete{max-width:100%}.hj-delete>summary{font-size:13px;line-height:44px;min-height:44px;min-width:44px;color:#9c3028;cursor:pointer;list-style:none}.hj-delete form{padding:12px 14px;background:#fff3f1;border-radius:10px;max-width:340px}.hj-delete form p{margin:0 0 12px}
.hj-panel-heading{margin-bottom:18px}.hj-vet,.hj-weight{padding:22px}.hj-vet-identity{display:flex;gap:12px;align-items:center;margin-bottom:18px}.hj-vet-avatar{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;background:#e5f3f1;color:var(--hj-teal);font-size:18px;font-weight:750;border-radius:12px}.hj-vet-identity>div{min-width:0}.hj-vet-identity strong{font-size:15px;overflow-wrap:anywhere}.hj-vet-identity p{font-size:12px;color:var(--hj-muted);margin:5px 0 0;overflow-wrap:anywhere}.hj-vet-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.hj-vet-actions .hj-button{flex:1;padding:10px}.hj-vet-actions .hj-text-button{font-size:12px;flex-basis:100%;justify-content:flex-start}.hj-vet-editor{border-top:1px solid var(--hj-border);margin-top:18px;padding-top:4px}.hj-vet-editor>summary{font-size:12px;font-weight:650;min-height:44px;color:var(--hj-blue)}.hj-vet-editor .hj-form{padding:14px 0 0;gap:14px}.hj-vet-empty{font-size:13px;line-height:1.65;color:var(--hj-muted);margin:0}
.hj-weight-current>strong{display:block;font-size:30px;line-height:1.2;letter-spacing:-.03em;color:var(--hj-blue)}.hj-weight-current small{font-size:16px;font-weight:400}.hj-weight-current>span{display:block;font-size:11px;color:var(--hj-muted);margin:5px 0 15px}.hj-weight-graph{margin:0 -6px 10px;min-width:0}.hj-weight-graph svg{display:block;width:100%;height:auto;overflow:visible}.hj-weight-table{margin-top:10px}.hj-weight-table>summary{font-size:12px;color:var(--hj-blue);min-height:44px;display:flex;align-items:center;cursor:pointer}.hj-weight-table table{width:100%;border-collapse:collapse;font-size:12px}.hj-weight-table th,.hj-weight-table td{text-align:left;padding:9px 4px;border-bottom:1px solid var(--hj-border)}.hj-weight-table caption{text-align:left;font-size:11px;color:var(--hj-muted);padding-bottom:8px}
.hj-legacy>summary strong{font-size:14px}.hj-legacy-body{padding:0 22px 18px}.hj-legacy-body .hj-text-button{font-size:12px}.hj-private-note{margin-top:20px}.hj-empty{padding:36px 24px;background:#fff;border:1px dashed #b7c9da;border-radius:16px;text-align:center}.hj-empty-symbol{display:grid;place-items:center;width:44px;height:44px;background:#e9f2fa;border-radius:12px;color:var(--hj-blue);margin:0 auto 18px;font-size:24px}.hj-empty h3{font-size:19px;line-height:1.4;max-width:350px;margin:0 auto 12px}.hj-empty p{max-width:380px;font-size:14px;line-height:1.7;color:var(--hj-muted);margin:0 auto 20px}.hj-pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:20px;font-size:13px;flex-wrap:wrap}
.hj-error-summary{padding:18px 22px;border:1px solid #d99b94;background:#fff2f0;border-radius:12px;margin-bottom:20px;font-size:14px}.hj-error-summary ul{margin:8px 0;padding-left:20px}.hj-error-summary p{font-size:12px;margin:8px 0 0}.hj-field-error{color:#a22820!important;font-size:12px;line-height:1.5;margin:0}.hj-notice{padding:14px 18px;border:1px solid #abd1c4;background:#eaf7f0;border-radius:12px;margin-bottom:20px;font-size:14px}.hj-sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hj-share-dialog{width:min(780px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--hj-border);border-radius:20px;background:#fff;color:var(--hj-ink);box-shadow:0 20px 90px #19314d40;overflow:auto}.hj-share-dialog::backdrop{background:#132b48a6}.hj-share-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.hj-share-heading h2{font-size:24px;line-height:1.3;margin:0}.hj-share-heading>.hj-text-button{min-width:44px}.hj-share-dialog>p{font-size:13px;line-height:1.6;margin:16px 0}.hj-share-status{padding:10px 14px;background:#eef5fa;border-radius:9px}.hj-share-preview{width:100%;height:350px;background:#fff;border:1px solid var(--hj-border);border-radius:10px;margin:0 0 18px}.hj-share-preview[hidden]{display:none}.hj-share-actions{display:flex;gap:12px;flex-wrap:wrap}.hj-share-actions>*,.hj-share-actions>form>.hj-button{flex:1;min-width:0}.hj-share-actions>form{display:flex}.hj-share-dialog .hj-muted{font-size:12px;color:var(--hj-muted)}
.hj-share-actions>form[hidden]{display:none}
@media(max-width:980px){.hj-layout{grid-template-columns:minmax(0,1fr) 270px;gap:20px}.hj-main{padding:24px 24px 48px}.hj-vet,.hj-weight{padding:18px}.hj-selection-bar{align-items:flex-start;flex-direction:column;gap:8px}.hj-selection-bar button{width:100%}.hj-filters{grid-template-columns:minmax(0,1fr) 105px}.hj-filters>button{grid-column:1/-1;width:100%}}
@media(max-width:740px){.hj-main{padding:18px 18px 36px}.hj-layout{display:flex;flex-direction:column;gap:24px}.hj-history,.hj-sidebar{width:100%}.hj-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.hj-legacy{grid-column:1/-1}.hj-hero{gap:16px;padding-bottom:20px;margin-bottom:18px}.hj-hero h1{font-size:28px}.hj-hero p:not(.hj-eyebrow){font-size:14px}.hj-hero>.hj-button{flex:0 0 auto;padding:10px 13px;font-size:13px}.hj-editor{margin-bottom:24px}.hj-panel>summary{padding:16px 18px}.hj-editor>summary small{font-size:12px}.hj-selection-bar{flex-direction:row;align-items:center}.hj-selection-bar button{width:auto;max-width:210px}.hj-filters{grid-template-columns:minmax(0,1fr) 110px auto}.hj-filters>button{grid-column:auto;width:auto}.hj-form{padding:18px}.hj-field label{font-size:13px}.hj-section-heading h2,.hj-panel h2{font-size:20px}}
@media(max-width:480px){.hj-main{padding:14px 14px 32px}.hj-page .pb-page-path{margin-bottom:18px}.hj-hero{align-items:flex-start;flex-wrap:wrap;gap:14px}.hj-hero-copy{flex:1 1 100%}.hj-hero h1{font-size:28px}.hj-hero>.hj-button{min-width:132px}.hj-hero p:not(.hj-eyebrow){font-size:13px}.hj-editor>summary strong{font-size:15px}.hj-editor>summary small{font-size:11px}.hj-sidebar{display:flex}.hj-section-heading p{font-size:12px}.hj-selection-bar{gap:10px}.hj-selection-bar span{max-width:105px;font-size:11px}.hj-selection-bar button{font-size:11px;max-width:180px;padding:8px 10px}.hj-filters{grid-template-columns:minmax(0,1fr) 97px}.hj-filters>button{grid-column:1/-1}.hj-form-grid{grid-template-columns:minmax(0,1fr);gap:16px}.hj-form{padding:16px;gap:18px}.hj-form-actions{flex-direction:column-reverse}.hj-form-actions .hj-button{width:100%}.hj-record{padding-left:42px}.hj-record-select{left:0}.hj-record-detail>summary{padding:16px 12px 16px 2px;gap:8px}.hj-record-main>strong{font-size:15px}.hj-record-meta{font-size:10px;gap:5px 8px}.hj-record-teaser{font-size:12px}.hj-record-body{padding-right:14px}.hj-photos>p{font-size:11px}.hj-photo-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.hj-photo-actions .hj-button{font-size:12px;padding:10px 8px}.hj-record-photos a{width:91px;height:82px}.hj-empty{padding:28px 18px}.hj-empty h3{font-size:18px}}
@media(prefers-reduced-motion:reduce){.hj-page *{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:480px){.hj-share-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);padding:18px;border-radius:14px}.hj-share-heading h2{font-size:21px}.hj-share-preview{height:290px}.hj-share-actions{flex-direction:column}.hj-share-actions>.hj-button{width:100%}}
