/* A short reading view; the complete timeline remains in the main page. */
#summary-dialog{width:min(560px,calc(100vw - 32px));padding:24px}
#summary-dialog .sheet-heading{margin-bottom:22px}
#summary-period{font-size:14px;line-height:1.7}
.summary-section+.summary-section{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.summary-section h3{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:16px;font-weight:600;margin-bottom:14px}
.summary-section h3>span{font-size:13px;color:var(--muted);font-weight:400}
.summary-temperature{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.summary-reading>span{display:block;font-size:14px;color:var(--muted)}
.summary-reading>strong{display:block;font-size:30px;line-height:1.4;font-weight:600;color:var(--blue);font-variant-numeric:tabular-nums}
.summary-reading>strong small{font-size:15px;font-weight:400}
.summary-reading p{font-size:13px;line-height:1.7;margin-top:4px;color:var(--muted)}
.summary-peaks .summary-reading+.summary-reading{margin-top:16px}
.summary-medicines,.summary-notes ul{list-style:none;padding:0;margin:0}
.summary-medicines li+li{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.summary-medicine-title{display:flex;justify-content:space-between;gap:16px;align-items:baseline}
.summary-medicine-title strong{font-size:16px;font-weight:600;overflow-wrap:anywhere}
.summary-medicine-title>span{color:var(--blue);font-size:14px;font-weight:600;white-space:nowrap}
.summary-medicines p{font-size:14px;line-height:1.7;margin-top:4px;overflow-wrap:anywhere}
.summary-medicines small,.summary-notes small{display:block;font-size:13px;color:var(--muted);margin-top:4px}
.summary-notes{border-top:1px solid var(--line);margin-top:20px;padding-top:4px}
.summary-notes summary,.summary-text summary{font-size:14px;min-height:44px;padding:12px 0;cursor:pointer;color:var(--blue)}
.summary-notes summary span{font-size:13px;margin-left:6px;color:var(--muted)}
.summary-notes li{padding:10px 0;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.summary-notes li strong{font-weight:500}
.summary-notes li p{white-space:pre-wrap;color:var(--muted)}
.summary-text{margin-top:6px}
.summary-footnote{font-size:12px;line-height:1.8;color:var(--muted);margin-top:16px}
.summary-demo{font-size:13px;color:#834b36;background:#fff1e9;border-radius:8px;padding:10px 12px;margin-bottom:18px}
.summary-none{font-size:14px;color:var(--muted);grid-column:1/-1}
#summary-dialog .summary-actions{margin-top:12px}
@media(max-width:519px){#summary-dialog{width:100%;padding:22px 20px calc(24px + env(safe-area-inset-bottom))}.summary-temperature{gap:16px}.summary-actions{gap:8px}.summary-actions .secondary-button{min-width:0;padding:12px}.summary-actions .primary-button{min-width:108px}}
