/* v55: health diary — morning data and the training diary with temporary estimates. */
#healthDiaryView{max-width:850px;margin:0 auto}
#healthDiaryView .surface{padding:18px;margin-bottom:12px}
#healthDiaryView h1{font-size:24px;letter-spacing:-.6px;margin:0 0 6px}
#healthDiaryView h2{margin:0 0 10px;font-size:17px}
#healthDiaryView h3{margin:16px 0 6px;font-size:15px}
.hd-heading{margin-bottom:12px}
.hd-note{font-size:13px;line-height:1.5;color:var(--muted);margin:6px 0}
#hdStatus{min-height:20px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.hd-kind{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 14px}
.hd-kind label{display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;font-size:14px;cursor:pointer}
.hd-kind input{width:18px;height:18px;margin:0;accent-color:var(--teal,#037d86)}
.hd-file,.hd-field,.hd-grid label{display:grid;gap:6px;font-size:13px;font-weight:600;margin:10px 0}
#healthDiaryView input:not([type=radio]),#healthDiaryView select{box-sizing:border-box;width:100%;min-width:0;padding:10px 12px;border:1px solid var(--input-line,var(--line));border-radius:12px;background:var(--inset,#fff);color:var(--ink);font-size:16px}
.hd-thumbs{display:flex;flex-wrap:wrap;gap:8px}
.hd-thumb{position:relative;width:64px;height:112px;border-radius:10px;overflow:hidden;border:1px solid var(--line)}
.hd-thumb img{width:100%;height:100%;object-fit:cover}
.hd-thumb button{position:absolute;top:2px;right:2px;min-height:0;width:24px;height:24px;padding:0;border-radius:12px;line-height:1}
.hd-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}
.hd-actions button{padding:11px 15px}
#hdRecognize,#hdSave{background:var(--accent-fill,#037d86);border:0;color:var(--on-accent,#fff)}
#healthDiaryView button:disabled{opacity:.55;cursor:not-allowed}
#hdDraft{border-top:1px solid var(--line);margin-top:14px;padding-top:4px}
.hd-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.hd-row{display:grid;grid-template-columns:1fr 120px 32px;gap:8px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line)}
.hd-row label{font-size:13px;font-weight:600;display:grid;gap:2px}
.hd-row small{font-weight:400;color:var(--muted)}
.hd-row button{min-height:0;padding:4px}
.hd-list{display:grid;gap:10px}
.hd-card{border:1px solid var(--line);border-radius:14px;padding:12px}
.hd-card header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;align-items:center;font-size:14px}
.hd-badge{border-radius:20px;padding:4px 9px;font-size:11px;background:var(--raised,#eef6f5)}
.hd-card.hd-estimate{border-style:dashed;border-color:#bd8a46}
.hd-card.hd-estimate .hd-badge{background:#bd8a4622}
.hd-card.hd-replaced{opacity:.7}
.hd-card dl{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px 12px;margin:10px 0 0}
.hd-card dt{font-size:11px;color:var(--muted)}
.hd-card dd{margin:2px 0 0;font-size:15px;font-weight:600}
.hd-card details{margin-top:8px;font-size:13px}
.hd-card-actions{display:flex;gap:12px;margin-top:8px}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:480px){.hd-grid{grid-template-columns:1fr}.hd-row{grid-template-columns:1fr 100px 28px}.hd-actions button{width:100%}}
/* v56: several snapshots per recognition; metrics outside the catalog. */
.hd-entry{border:1px solid var(--line);border-radius:14px;padding:10px 12px 12px;margin:12px 0;min-width:0}
.hd-entry legend{padding:0 6px;font-size:13px;font-weight:700}
.hd-extra span{display:grid;gap:2px;font-size:13px}
.hd-extra small{color:var(--muted);font-weight:400}
/* v58: time zone banner and settings. */
.tz-banner{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;justify-content:space-between;margin:8px auto;max-width:850px;padding:10px 14px;border:1px solid #bd8a46;border-radius:14px;background:var(--surface,#fff);font-size:13px;line-height:1.5}
.tz-banner[hidden]{display:none}
.tz-actions{display:flex;gap:8px}
#tzSwitch{background:var(--accent-fill,#037d86);border:0;color:var(--on-accent,#fff);padding:8px 14px}
.tz-form{display:grid;gap:8px;max-width:420px}
.tz-form label{display:grid;gap:6px;font-size:13px;font-weight:600}
.tz-form select,.tz-form input{box-sizing:border-box;width:100%;padding:10px 12px;border:1px solid var(--input-line,var(--line));border-radius:12px;background:var(--inset,#fff);color:var(--ink);font-size:16px}
