.history-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.history-heading h2{font-size:30px;font-weight:500;letter-spacing:-.8px;line-height:1.2}.history-heading p{font-size:14px;color:var(--muted);margin:10px 0 0;line-height:1.7}.history-heading>.button{font-size:12px;min-height:43px;white-space:nowrap}
.history-filters{margin-bottom:27px}.history-period{display:flex;gap:5px;padding:5px;border-radius:16px;background:var(--quiet-surface);width:fit-content}.history-period button{border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:12px;min-height:44px;padding:11px 22px}.history-period button.active{background:var(--panel);color:var(--accent);box-shadow:0 1px 4px #29251f08}.history-med-filter{display:flex;align-items:center;gap:10px;margin-top:17px}.history-med-filter>label{margin:0}.history-med-filter select{font-size:12px;min-height:41px;width:230px;max-width:100%;border-radius:24px;background:var(--panel);border-color:var(--quiet-border);padding:10px 15px}.history-all-meds{border:1px solid var(--quiet-border);border-radius:24px;background:var(--quiet-surface);color:var(--muted);min-height:41px;padding:10px 16px;font-size:12px}.history-all-meds.active{background:var(--action-bg);border-color:var(--action-bg);color:var(--action-fg)}.history-date-range{font-size:10px;color:var(--muted);margin-left:auto;line-height:1.7}.history-custom-range{display:flex;align-items:end;gap:10px;margin-top:18px;flex-wrap:wrap}.history-custom-range label{margin:0;display:grid;gap:6px;font-size:12px}.history-custom-range input{font-size:14px;min-height:44px;background:var(--panel)}.history-custom-range .button{min-height:44px;font-size:12px}.history-range-error{color:#a34550;font-size:13px;line-height:1.7;margin:10px 0 0;width:100%}.history-range-error:empty{display:none}
.history-layout{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(0,1.35fr);gap:30px;align-items:start}.history-insights{display:grid;gap:23px;min-width:0}.history-overview{background:var(--panel);border:1px solid var(--quiet-border);border-radius:24px;padding:25px}.history-overview-heading{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}.history-soft-badge{font-size:10px;background:var(--soft);color:var(--accent);border-radius:20px;padding:6px 10px;line-height:1.5}.history-private{font-size:9px;color:var(--muted)}.history-rate{display:flex;align-items:center;gap:15px;margin:24px 0}.history-rate>strong{font-family:Outfit,sans-serif;font-size:45px;font-weight:550;letter-spacing:-1.8px;line-height:1;color:var(--accent)}.history-rate>div{min-width:0}.history-rate h2{font-size:18px;font-weight:500;margin:0}.history-rate p{font-size:11px;color:var(--muted);line-height:1.7;margin:6px 0 0;max-width:190px}.history-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.history-stat-grid>div{display:grid;gap:5px;text-align:center;padding:15px 6px;border-radius:12px;background:var(--quiet-surface)}.history-stat-grid strong{font-family:Outfit,sans-serif;font-size:25px;font-weight:500;color:var(--ink);line-height:1}.history-stat-grid span{font-size:10px;color:var(--muted);line-height:1.6}.history-upcoming-count{font-size:11px;color:var(--muted);line-height:1.7;text-align:right;margin:12px 0 0}
.history-dot-overview{background:var(--quiet-surface);border-radius:15px;padding:17px 12px;margin-top:20px}.history-chart-heading h3{font-family:'DM Sans',sans-serif;font-size:11px;font-weight:500;margin:0 0 15px;color:var(--muted)}.history-dot-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;align-items:start}.history-dot-day{border:0;background:transparent;border-radius:10px;min-width:0;display:grid;justify-items:center;gap:5px;padding:9px 2px 12px;color:var(--muted);font-size:9px}.history-dot-day.is-today{background:var(--panel);color:var(--ink)}.history-dot-day small{font-size:10px}.history-dot-day>div{display:flex;flex-direction:column;align-items:center;gap:5px;margin-top:6px;min-height:20px}.history-dot-day b{font-size:9px;font-weight:400}.history-dot{display:inline-block;width:7px;height:7px;border-radius:50%;flex:none;border:1px solid transparent}.history-dot.status-taken{background:#4a7a5a;border-color:#4a7a5a}.history-dot.status-skipped{background:#c77a5c;border-color:#c77a5c}.history-dot.status-unlogged{background:transparent;border-color:#888987}.history-dot.status-upcoming{background:var(--soft);border:1px dashed var(--accent)}.history-dot.no-schedule{width:3px;height:3px;background:#c5c2be;margin-top:2px}.history-legend{display:flex;gap:9px;flex-wrap:wrap;border-top:1px solid var(--quiet-border);margin-top:14px;padding-top:13px}.history-legend span{display:flex;align-items:center;gap:4px;font-size:8px;color:var(--muted)}.history-legend .history-dot{width:6px;height:6px}.history-calculation-note{font-size:10px;color:var(--muted);line-height:1.8;margin:15px 0 0}
.history-patterns{border:1px solid var(--quiet-border);border-radius:22px;padding:23px;background:var(--panel)}.history-patterns h2{font-size:23px;font-weight:500}.history-patterns .sub{font-size:12px;line-height:1.7;margin:9px 0 15px}.history-window{padding:15px 0;border-top:1px solid var(--quiet-border)}.history-window strong{font-size:13px;font-weight:550}.history-window>div{display:flex;flex-wrap:wrap;gap:6px 13px;font-size:10px;color:var(--muted);line-height:1.7;margin-top:8px}.history-window:last-child{padding-bottom:0}
.history-visit-card{background:var(--quiet-surface);border-radius:23px;padding:25px}.history-visit-icon{display:grid;place-items:center;width:37px;height:37px;background:var(--soft);color:var(--accent);border-radius:12px;margin-bottom:17px}.history-visit-icon svg{width:19px;height:19px}.history-visit-card h2{font-size:26px;font-weight:500;letter-spacing:-.5px;line-height:1.2}.history-visit-card>p{font-size:13px;color:var(--muted);line-height:1.8;margin:13px 0 20px}.history-visit-card label{font-size:12px}.history-visit-card textarea{font-size:14px;min-height:135px;background:var(--panel);border-color:var(--quiet-border);line-height:1.7}.history-visit-card>.text-button{display:block;font-size:11px}.history-visit-card>.button{width:100%;font-size:12px;margin-top:8px}.history-visit-card>small{display:block;font-size:10px;color:var(--muted);line-height:1.8;margin-top:14px}
.history-day{margin-bottom:28px;scroll-margin-top:20px}.history-day-title{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:14px;padding-left:13px;position:relative}.history-day-title:before{content:'';position:absolute;left:0;top:9px;width:4px;height:4px;background:var(--accent);border-radius:50%}.history-day-title h2{font-size:20px;font-weight:500;line-height:1.4}.history-day-title>span{font-size:10px;line-height:1.6;color:var(--muted);background:var(--quiet-surface);padding:6px 9px;border-radius:13px;flex:none}.history-day-entries{display:grid;gap:11px}.history-entry{border:1px solid var(--quiet-border);background:var(--panel);border-radius:17px;overflow:hidden}.history-entry-top{display:flex;gap:12px;align-items:center;padding:18px 18px 12px}.history-entry-symbol{display:grid;place-items:center;width:33px;height:33px;flex:none;border-radius:12px;background:var(--quiet-surface);color:var(--muted);font-size:16px}.history-entry-symbol svg{width:16px;height:16px}.history-entry.status-taken .history-entry-symbol{background:#e3eee6;color:#3c6c50}.history-entry.status-skipped .history-entry-symbol{background:#f8e8e0;color:#9c583e}.history-entry-copy{flex:1;min-width:0;overflow-wrap:anywhere}.history-entry-copy h3{font-family:'DM Sans',sans-serif;font-size:14px;font-weight:550;line-height:1.4;margin:0}.history-entry-copy p{font-size:11px;color:var(--muted);line-height:1.6;margin:5px 0 0}.history-state-pill{font-size:9px;line-height:1.6;padding:4px 8px;border-radius:20px;white-space:nowrap;flex:none;background:var(--quiet-surface);color:var(--muted)}.history-state-pill.status-taken{background:#e3eee6;color:#3c6c50}.history-state-pill.status-skipped{background:#f8e8e0;color:#9c583e}.history-state-pill.status-upcoming{background:var(--soft);color:var(--accent)}.history-entry-detail{padding:0 18px 12px 63px}.history-entry-detail>p{font-size:10px;color:var(--muted);line-height:1.8;margin:0}.history-entry-detail>small{display:block;font-size:10px;color:var(--muted);line-height:1.8;margin-top:6px;overflow-wrap:anywhere}.history-entry-detail blockquote{margin:13px 0 9px;background:var(--quiet-surface);border-left:2px solid var(--accent-line);border-radius:0 10px 10px 0;padding:12px 14px;font-size:12px;line-height:1.9;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}.history-entry-detail blockquote>span{display:block;font-size:9px;color:var(--muted);margin-bottom:6px;white-space:normal}.history-entry-actions{display:flex;justify-content:space-between;gap:15px}.history-entry-actions .text-button{font-size:10px;min-height:38px;padding-bottom:2px}.history-entry.status-upcoming{background:var(--quiet-surface)}.history-more{display:flex;margin:25px auto 10px;font-size:12px}.history-empty{padding:40px 28px;text-align:center;border:1px solid var(--quiet-border);border-radius:23px;background:var(--panel)}.history-empty>span{display:grid;place-items:center;width:60px;height:60px;background:var(--soft);border-radius:20px;color:var(--accent);margin:0 auto 23px}.history-empty svg{width:25px;height:25px}.history-empty h2{font-size:27px;font-weight:500;line-height:1.3}.history-empty p{font-size:14px;color:var(--muted);line-height:1.8;margin:15px 0 23px}
.history-note-caption{font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 20px}.history-save-note{margin-top:22px;width:100%}#history-note-text{min-height:160px;line-height:1.8}.history-export-dialog h2{font-size:28px}.history-export-range{color:var(--muted);font-size:13px;line-height:1.8;margin:0 0 20px}.history-export-choice{display:flex;align-items:center;gap:12px;padding:17px 0;border-top:1px solid var(--quiet-border);font-size:14px;color:var(--ink);margin:0}.history-export-choice input{width:22px;height:22px;min-height:22px;flex:none}.history-export-choice small{display:block;font-size:11px;color:var(--muted);line-height:1.7;margin-top:5px}.history-export-actions{display:grid;gap:10px;margin-top:22px}.history-export-actions .button{font-size:13px;min-height:46px}.history-export-help{color:var(--muted);font-size:11px;line-height:1.8;margin:15px 0 0}
.dark .history-entry.status-taken .history-entry-symbol,.dark .history-state-pill.status-taken{background:#2e483b;color:#b5dfc3}.dark .history-entry.status-skipped .history-entry-symbol,.dark .history-state-pill.status-skipped{background:#49352e;color:#efb99f}.dark .history-dot.status-taken{background:#a6cbb3;border-color:#a6cbb3}.dark .history-dot.status-skipped{background:#dc9c80;border-color:#dc9c80}.dark .history-dot.status-unlogged{border-color:#bac0c9}.dark .history-range-error{color:#f2b2bd}
.large .history-layout{grid-template-columns:1fr}.large .history-period button,.large .history-med-filter select,.large .history-all-meds,.large .history-visit-card textarea,.large .history-heading>.button{font-size:17px}.large .history-rate p,.large .history-stat-grid span,.large .history-calculation-note,.large .history-private,.large .history-window>div,.large .history-legend span,.large .history-dot-day,.large .history-dot-day small,.large .history-entry-copy p,.large .history-entry-detail>p,.large .history-entry-detail>small,.large .history-entry-actions .text-button,.large .history-state-pill{font-size:14px}.large .history-entry-copy h3{font-size:19px}.large .history-entry-top{flex-wrap:wrap}.large .history-day-title{flex-wrap:wrap}.large .history-entry-detail blockquote{font-size:17px}
@media(max-width:1000px){.history-layout{grid-template-columns:minmax(270px,.9fr) minmax(0,1.1fr);gap:22px}.history-overview{padding:22px 18px}.history-private{display:none}.history-med-filter{flex-wrap:wrap}.history-date-range{width:100%;margin:4px 0 0}.history-day-title{flex-wrap:wrap;gap:6px}.history-day-title h2{font-size:19px}.history-entry-top{gap:10px;padding:17px 15px 11px}.history-entry-detail{padding:0 15px 12px 58px}.history-state-pill{font-size:8px}.history-entry-copy h3{font-size:13px}}
@media(max-width:760px){.history-layout{grid-template-columns:1fr;gap:26px}.history-insights{display:contents}.history-overview{grid-row:1;padding:24px}.history-timeline{grid-row:2}.history-patterns{grid-row:3}.history-visit-card{grid-row:4}.history-heading h2{font-size:29px}.history-private{display:inline}.history-rate>strong{font-size:50px}.history-rate p{max-width:300px}.history-day-title{flex-wrap:nowrap}.history-entry-copy h3{font-size:15px}.history-state-pill{font-size:9px}.history-entry-top{padding:19px 18px 12px}.history-entry-detail{padding-left:63px;padding-right:18px}}
@media(max-width:540px){.history-heading{display:block;margin-bottom:20px}.history-heading h2{font-size:28px;letter-spacing:-.5px}.history-heading p{font-size:13px;max-width:290px;margin-top:9px}.history-heading>.button{font-size:12px;margin-top:17px;min-height:42px}.history-filters{margin-bottom:22px}.history-period{display:grid;grid-template-columns:repeat(3,1fr);width:100%;padding:4px;border-radius:13px}.history-period button{font-size:11px;padding:10px 5px;min-height:43px;border-radius:10px}.history-med-filter{gap:8px;margin-top:14px}.history-all-meds{font-size:10px;min-height:40px;padding:9px 12px;flex:none}.history-med-filter>label{flex:1;min-width:0}.history-med-filter select{width:100%;font-size:11px;padding:10px 9px;min-height:40px}.history-date-range{font-size:10px}.history-custom-range{display:grid;grid-template-columns:1fr 1fr;gap:10px}.history-custom-range label{min-width:0;font-size:11px}.history-custom-range input{font-size:13px;width:100%;min-width:0;padding:10px 7px}.history-custom-range .button{grid-column:1/-1}.history-range-error{font-size:12px;grid-column:1/-1}.history-overview{padding:22px 19px;border-radius:21px}.history-overview-heading{gap:8px}.history-soft-badge{font-size:9px}.history-private{font-size:8px}.history-rate{gap:15px;margin:23px 0}.history-rate>strong{font-size:46px}.history-rate h2{font-size:19px}.history-rate p{font-size:11px;max-width:190px}.history-stat-grid strong{font-size:26px}.history-stat-grid span{font-size:10px}.history-stat-grid>div{padding:15px 6px}.history-dot-overview{padding:17px 11px}.history-chart-heading h3{font-size:10px}.history-dot-day{padding:8px 0 10px;gap:4px;font-size:8px}.history-dot-day small{font-size:9px}.history-legend{gap:8px}.history-legend span{font-size:8px}.history-calculation-note{font-size:10px}.history-timeline{min-width:0}.history-day{margin-bottom:25px}.history-day-title{align-items:start;gap:10px}.history-day-title h2{font-size:19px;max-width:220px}.history-day-title>span{font-size:9px;padding:5px 8px;max-width:105px}.history-day-title:before{top:8px}.history-entry-top{padding:17px 14px 10px;gap:10px}.history-entry-symbol{width:29px;height:29px;border-radius:10px;font-size:14px}.history-entry-copy h3{font-size:14px}.history-entry-copy p{font-size:10px}.history-state-pill{font-size:8px;padding:4px 7px}.history-entry-detail{padding:0 14px 10px 53px}.history-entry-detail>p{font-size:9px}.history-entry-detail>small{font-size:10px}.history-entry-detail blockquote{font-size:12px;padding:11px 12px;margin-top:12px}.history-entry-detail blockquote>span{font-size:9px}.history-entry-actions .text-button{font-size:10px;min-height:40px}.history-patterns{padding:23px 20px}.history-patterns h2{font-size:24px}.history-visit-card{padding:24px 21px}.history-visit-card h2{font-size:27px}.history-visit-card label{font-size:12px}.history-visit-card textarea{font-size:16px;min-height:130px}.history-visit-card>small{font-size:10px}.history-empty{padding:32px 22px}.history-empty h2{font-size:26px}.history-empty p{font-size:13px}.large .history-period{grid-template-columns:1fr}.large .history-med-filter>label{flex-basis:100%}.large .history-med-filter select{font-size:16px}.large .history-day-title{flex-wrap:wrap}.large .history-entry-detail{padding-left:15px}.large .history-entry-copy h3{font-size:19px}.large .history-state-pill{font-size:14px}.large .history-stat-grid{grid-template-columns:1fr}.large .history-legend span{font-size:13px}.large .history-dot-days{gap:2px}.large .history-dot-day small{font-size:12px}.large .history-entry-actions .text-button{font-size:15px}.large .history-overview-heading{flex-wrap:wrap}}
#daykind-print-report{display:none}
@media print{body>*:not(#daykind-print-report){display:none!important}body>#daykind-print-report{display:block!important;color:#252e2a;background:#fff;font:10pt/1.5 system-ui,sans-serif;max-width:none;margin:0;padding:0}#daykind-print-report h1{font-size:24pt}#daykind-print-report h2{font-size:16pt;margin-top:24px}#daykind-print-report h3{font-size:12pt}#daykind-print-report table{width:100%;border-collapse:collapse;margin:14px 0}#daykind-print-report th,#daykind-print-report td{text-align:left;vertical-align:top;border-bottom:1px solid #dce2db;padding:8px;overflow-wrap:anywhere}#daykind-print-report th{background:#eef3ed}#daykind-print-report tr{break-inside:avoid}#daykind-print-report thead{display:table-header-group}#daykind-print-report .report-dose-note,#daykind-print-report .report-note{white-space:pre-wrap}#daykind-print-report .report-muted,#daykind-print-report footer{font-size:9pt;color:#626b66}#daykind-print-report footer{margin-top:25px;border-top:1px solid #dce2db;padding-top:15px}@page{margin:17mm}}
body[data-medication-view="history"] .medication-page>.intro,body[data-medication-view="history"] .health-sections,body[data-medication-view="history"] .regimen-tools{display:none}.history-heading{position:relative;padding-top:4px;margin-top:7px}.history-heading h1{font-size:32px;font-weight:500;line-height:1.2;letter-spacing:-.8px;margin:13px 0 0}.history-back{font-size:12px;padding:0;min-height:38px;color:var(--muted)}.history-heading>.button{align-self:flex-start;margin-top:0}.history-heading p{margin-top:11px}.history-heading>.button{margin-top:10px}@media(max-width:540px){.history-heading{padding-top:0;margin-top:0}.history-heading>.button{position:absolute;right:0;top:0;margin:0;min-height:36px;font-size:10px;padding:8px 13px}.history-back{font-size:10px;min-height:36px}.history-heading h1{font-size:29px;letter-spacing:-.6px;margin-top:19px}.history-heading p{font-size:13px;margin-top:11px}.large .history-heading>.button{position:static;margin-top:15px}.large .history-back{font-size:16px}}@media print{body{background:#fff!important;color:#252e2a!important;margin:0!important;padding:0!important}}
@media(max-width:540px){.history-state-pill{font-size:10px}.history-entry-detail>p{font-size:11px}.history-entry-actions .text-button{font-size:11px;min-height:44px}.history-legend span{font-size:10px}.history-dot-day{font-size:10px}.history-dot-day small{font-size:10px}.history-private{font-size:9px}}
