/* Dated notes and medication times. Existing page layout is retained. */
.note-quick{background:#f8f1e8;margin-bottom:12px}.note-quick .movement-symbol,.activity-icon.note{background:#eee1d2;color:#846241}
.note-presets{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.note-presets .button{min-height:44px;padding:9px 13px;font-size:13px}
.entry-when{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px}.entry-when .field{min-width:0}.entry-when input{min-width:0;max-width:100%}
.med-times{display:grid;gap:10px;margin:18px 0}.med-times[hidden]{display:none}.med-times .med-time-row{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:center;gap:12px;margin:0;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:#f8faf5}.med-time-row input{margin:0;min-width:0;width:100%;min-height:48px;font-size:18px}
.as-needed-list{margin:14px 0 0;border:1px solid var(--border);border-radius:16px;background:#fff;padding:16px}.as-needed-list h3{margin:0 0 6px;font-size:14px;font-weight:600}.as-needed-row{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--border)}.as-needed-row:last-child{border-bottom:0;padding-bottom:0}.as-needed-row>div{min-width:0;overflow-wrap:anywhere}.as-needed-row strong{display:block;font-size:15px}.as-needed-row small{display:block;margin-top:5px;color:var(--muted)}.as-needed-row .button{flex-shrink:0}
@media(max-width:380px){.entry-when{grid-template-columns:1fr}.as-needed-row{align-items:stretch;flex-direction:column}.med-times .med-time-row{grid-template-columns:70px minmax(0,1fr);padding:10px}}
/* Optional notes and movement retain the two large daily actions. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.symptom-tile{position:relative;padding:0;overflow:hidden}.symptom-main{width:100%;min-height:166px;display:flex;flex-direction:column;align-items:flex-start;padding:19px 17px;border:0;background:transparent;text-align:left;border-radius:16px}.symptom-main strong{display:block;text-align:left}.symptom-main small{margin-top:6px;color:#7c8876}.symptom-note{position:absolute;right:10px;top:9px;min-width:49px;min-height:51px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border:1px solid #e3e9dc;background:#f6f8f2;border-radius:11px;color:#476f42}.symptom-note svg{width:21px;height:21px}.symptom-note span{font-size:11px}.symptom-main:focus-visible{outline-offset:-4px}.symptom-note:focus-visible{outline-offset:2px}
.movement-quick{width:100%;display:flex;align-items:center;gap:15px;padding:18px 23px;background:#eef2e8;border:1px solid var(--border);border-radius:18px;text-align:left;margin:0 0 27px;min-height:86px}.movement-quick>span:nth-child(2){flex:1}.movement-quick strong{display:block;font-size:17px;font-weight:600}.movement-quick small{display:block;font-size:13px;color:#63745d;margin-top:5px}.movement-quick>svg{width:24px;height:24px}.movement-symbol{width:44px;height:44px;display:grid;place-items:center;background:#dfe8d7;border-radius:13px;color:#54744c}.activity-icon.activity{background:#e6eee0;color:#507744}.activity-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px;align-items:end}.activity-fields .field{margin:12px 0}.activity-fields .field small{font-size:10px;margin:4px 0}.field select{font-size:15px}
/* Report first presents aggregates; the complete diary is an explicit action. */
.report-intro{margin-bottom:20px}.report-intro h1{font-size:29px}.period-select{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px}.period-select select{font:inherit;font-size:14px;background:white;border:1px solid var(--border);border-radius:11px;min-height:46px;padding:10px 30px 10px 12px;color:var(--ink)}
.summary-coverage{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:12px;line-height:1.5;color:#697860;margin-bottom:14px}.summary-coverage>svg{width:16px;height:16px}.summary-coverage>span{font-size:11px}
.summary-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:19px}.summary-stats>div{background:white;border:1px solid var(--border);border-radius:15px;padding:18px;min-width:0}.summary-stats span{font-size:12px;color:#5f7057}.summary-stats strong{display:block;font-size:29px;line-height:1.3;font-weight:600;margin:7px 0 2px;overflow-wrap:anywhere}.summary-stats strong small{font-size:15px;font-weight:450}.summary-stats>div>small{font-size:11px;color:#78836f}
.trend-panel{margin-bottom:18px;padding:21px 24px}.trend-panel .section-header{margin-bottom:10px}.trend-panel .section-header h2{font-size:16px}.trend-chart{padding-top:6px}.trend-columns{display:flex;align-items:flex-end;gap:12px}.trend-column{flex:1;min-width:0;text-align:center}.trend-track{height:90px;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #dee6d8;margin-top:5px}.trend-bar{display:block;background:#b39abf;width:60%;max-width:38px;border-radius:6px 6px 0 0}.trend-bar.minutes{background:#8ba77a}.trend-value{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}.trend-label{display:block;font-size:11px;color:#65705e;margin-top:9px;white-space:nowrap}.chart-caption{font-size:11px;color:#6a7665;line-height:1.5;margin:12px 0 0}
.summary-pair{display:grid;grid-template-columns:1fr 1.3fr;gap:18px;margin-bottom:19px}.summary-pair .panel{padding:20px}.summary-pair .section-header h2{font-size:15px}.summary-types ul{padding:0;list-style:none;margin:0}.summary-types li{display:flex;justify-content:space-between;gap:15px;padding:8px 0;font-size:13px;border-bottom:1px solid #edf0e8}.summary-types li span{overflow-wrap:anywhere;min-width:0}.summary-types li b{flex-shrink:0}.summary-intervals table{font-size:12px;table-layout:fixed}.summary-intervals th{font-size:9px;white-space:normal;padding:7px 3px;letter-spacing:0}.summary-intervals td{font-size:12px;padding:8px 3px;overflow-wrap:anywhere}.summary-intervals th:first-child{width:44%}.summary-empty{font-size:13px;line-height:1.5;color:#78836f;margin:0}.summary-notes{padding:0 4px}.summary-notes h2{font-size:15px;margin-bottom:8px}.summary-notes h2 span{margin-left:7px;color:#78866f;font-size:13px}.summary-notes p{font-size:12px;line-height:1.6;margin:6px 0;overflow-wrap:anywhere}.summary-footnote{margin-bottom:24px}
.report-breakdown{padding:0}.detail-toggle{display:flex;align-items:center;gap:10px;width:100%;min-height:65px;text-align:left;padding:18px 22px;border:0;background:transparent;font-size:15px;font-weight:600}.detail-toggle[aria-expanded=true]>svg{transform:rotate(90deg)}.detail-toggle span{margin-left:auto;font-size:12px;color:#6e7a67;font-weight:400}.report-breakdown>.settings-hint,.report-breakdown>.button-group,.report-breakdown>.table-wrap,.report-breakdown>.detail-pagination{margin:0 22px 20px}.detail-table{table-layout:fixed}.detail-table th:first-child{width:18%}.detail-table th:nth-child(2){width:25%}.detail-table th:last-child{width:55px}.detail-table td{overflow-wrap:anywhere}.detail-table .detail-note{white-space:pre-wrap;line-height:1.6;font-size:12px;margin:5px 0}.detail-intervals{margin-top:7px}.detail-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}.print-detail{display:none}
@media(max-width:900px){.summary-pair{grid-template-columns:1fr}.summary-stats{gap:10px}.summary-stats>div{padding:14px}.trend-columns{gap:6px}}
@media(max-width:640px){.symptom-main{padding:17px 14px;min-height:157px}.symptom-note{top:8px;right:8px;min-width:45px;min-height:48px}.movement-quick{padding:17px 16px;gap:11px}.movement-quick strong{font-size:16px}.movement-quick small{font-size:12px;line-height:1.5}.movement-symbol{width:39px;height:39px;flex-shrink:0}.activity-fields{gap:11px}.activity-fields .field{font-size:13px}.report-intro h1{font-size:25px}.summary-stats{grid-template-columns:repeat(2,1fr)}.summary-stats strong{font-size:26px}.summary-stats span{font-size:12px}.summary-coverage{font-size:11px}.summary-coverage>span{flex-basis:100%;font-size:10px}.trend-panel{padding:18px 15px}.trend-panel .section-header{gap:7px;align-items:flex-start}.trend-panel .section-header h2{font-size:15px}.trend-panel .section-header small{font-size:10px;max-width:110px;text-align:right}.trend-columns{gap:3px}.trend-value{font-size:10px}.trend-label{font-size:9px}.trend-bar{width:70%}.trend-track{height:85px}.chart-caption{font-size:10px}.summary-pair .panel{padding:19px}.summary-intervals td{font-size:12px}.period-select{gap:6px;font-size:11px}.period-select select{padding:9px 18px 9px 10px;font-size:13px}.report-toolbar .date-control input{width:120px;min-width:120px}.detail-toggle{padding:18px 16px;font-size:14px;gap:7px}.detail-toggle span{font-size:11px}.report-breakdown>.settings-hint,.report-breakdown>.button-group,.report-breakdown>.table-wrap,.report-breakdown>.detail-pagination{margin-left:12px;margin-right:12px}.detail-table th{font-size:9px;padding:9px 5px;white-space:normal;letter-spacing:0}.detail-table td{font-size:10px;padding:12px 5px}.detail-table .detail-note{font-size:11px}.detail-table th:first-child{width:22%}.detail-table th:nth-child(2){width:26%}.detail-table th:last-child{width:40px}.detail-table .icon-button{width:34px;min-height:44px}.detail-table .icon-button svg{width:17px}.detail-table td small{font-size:9px}.detail-pagination .button{font-size:11px;padding:9px 12px}.detail-pagination{font-size:10px}}
@page{size:A4;margin:12mm}
@media print{
 html{background:#fff}.report-intro{margin:0 0 10px}.report-intro h1{font-size:22px;margin-bottom:5px}.report-intro .subtext{font-size:12px}.summary-coverage{font-size:10px;margin-bottom:10px}.summary-coverage>span{font-size:9px}.summary-stats{grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}.summary-stats>div{padding:10px;border-radius:9px}.summary-stats span{font-size:10px}.summary-stats strong{font-size:24px;margin:4px 0}.summary-stats>div>small{font-size:9px}.summary-stats strong small{font-size:12px}.trend-panel{padding:13px 16px;margin:0 0 11px;border-radius:11px;break-inside:avoid}.trend-panel .section-header h2{font-size:13px}.trend-panel .section-header small{font-size:9px}.trend-columns{gap:8px}.trend-track{height:54px}.trend-value{font-size:10px}.trend-label{font-size:9px;margin-top:5px}.chart-caption{font-size:9px;line-height:1.4;margin-top:6px}.summary-pair{grid-template-columns:1fr 1.3fr;gap:12px;margin-bottom:12px;break-inside:avoid}.summary-pair .panel{padding:13px;border-radius:11px}.summary-pair .section-header{margin-bottom:8px}.summary-pair .section-header h2{font-size:12px}.summary-types li{font-size:10px;padding:5px 0}.summary-intervals th{font-size:8px;padding:5px 3px}.summary-intervals td{font-size:10px;padding:5px 3px}.summary-notes{break-inside:avoid}.summary-notes h2{font-size:12px;margin-bottom:4px}.summary-notes p{font-size:10px;line-height:1.4;margin:4px 0}.summary-notes .chart-caption{font-size:9px}.summary-footnote{font-size:9px;line-height:1.5;margin:10px 0 0}.summary-empty{font-size:10px}.print-detail{display:none}.printing-detail .report-summary,.printing-detail .report-intro{display:none}.printing-detail .print-detail{display:block}.print-detail h1{font-size:22px}.print-detail>p{font-size:11px}.print-detail .detail-table{table-layout:fixed}.print-detail .detail-table th:first-child{width:19%}.print-detail .detail-table th:nth-child(2){width:24%}.print-detail .detail-table th:nth-child(3){width:57%}.print-detail .detail-table td{font-size:10px}.print-detail .detail-note{font-size:10px}.print-detail .table-wrap{overflow:visible}.print-detail tr{break-inside:avoid}.print-detail thead{display:table-header-group}
}
