:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#243d31;background:#f5f5ed;--green:#29513d;--muted:#5d7064;--line:#d9e0d3}*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input,select,textarea{font:inherit}button,.button{cursor:pointer;border:0;border-radius:12px;background:var(--green);color:white;padding:12px 18px;font-weight:650;text-decoration:none;display:inline-block}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b78220;outline-offset:3px}.quiet{background:transparent;color:var(--green);padding:8px;text-decoration:underline;text-underline-offset:4px}.secondary{color:var(--green);background:#edf0e7}header{max-width:1200px;margin:auto;border-bottom:1px solid var(--line);padding:24px 32px;display:flex;justify-content:space-between;align-items:center;gap:12px}.brand{font-family:Georgia,serif;font-size:23px;text-decoration:none}main{max-width:1200px;margin:auto;padding:44px 32px}.intro{display:flex;justify-content:space-between;align-items:end;gap:24px}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:.14em;font-weight:750;color:var(--muted)}h1,h2,h3,p{margin:0}h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(34px,7vw,50px);letter-spacing:-.035em;margin:12px 0 16px}h2{font-size:20px;font-weight:650}h3{font-size:16px}.lead{line-height:1.65;color:var(--muted)}label{display:block;font-size:12px;font-weight:650}input,select,textarea{display:block;width:100%;border:1px solid #bbcaba;border-radius:10px;padding:11px;background:#fffef9;color:#243d31;margin-top:7px}.date input{width:auto}.stats{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:30px 0}.stat{border-radius:20px;padding:26px;background:#e5ecd9}.stat.movement{background:#e2ebef}.stat>p:first-child{font-size:14px}.stat h2{font:clamp(25px,4vw,38px) Georgia,serif;margin:16px 0 10px}.stat>p:last-child{font-size:12px;color:var(--muted);line-height:1.6}.columns{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:26px}.panel{border:1px solid var(--line);border-radius:20px;padding:26px;background:#fffef9}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.entry{padding:20px 0;border-bottom:1px solid var(--line)}.entry:last-child{border-bottom:0}.entry-head{display:flex;justify-content:space-between;gap:16px}.energy{font-weight:650;font-size:14px;white-space:nowrap}.meta,.small{font-size:12px;color:var(--muted);line-height:1.6;margin-top:8px}.entry p{margin-top:10px;line-height:1.65;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.entry h3{overflow-wrap:anywhere}.entry img{width:220px;max-width:100%;max-height:190px;object-fit:cover;border-radius:12px;margin-top:12px}.entry details{font-size:12px;margin:12px 0;color:var(--muted)}.entry li{margin:5px 0;overflow-wrap:anywhere}.steps{padding-left:22px;margin:24px 0}.steps li{margin:20px 0;padding-left:6px}.steps strong{font-size:13px}.steps p,.note{font-size:12px;color:var(--muted);line-height:1.7;margin-top:7px}.note{border-top:1px solid var(--line);padding-top:18px}.empty{text-align:center;padding:44px 16px;color:var(--muted);line-height:1.7}.empty strong{display:block;color:#243d31;font-size:17px;margin-bottom:10px}footer{display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:11px;margin-top:24px}#status,#form-error{font-size:13px;color:#755321;line-height:1.6;white-space:pre-wrap}#status:not(:empty){padding:12px;border:1px solid #d9c69f;border-radius:10px;margin-top:20px}dialog{width:min(560px,calc(100% - 24px));max-height:92dvh;overflow:auto;border:1px solid var(--line);border-radius:20px;background:#fffef9;color:#243d31;padding:28px}dialog::backdrop{background:#203b3277}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.full{grid-column:1/-1}.check{display:flex;align-items:center;gap:10px}.check input{width:auto;margin:0}.form-actions{display:flex;justify-content:end;gap:12px;margin-top:22px}#form-error:not(:empty){margin-top:15px}.signin{max-width:620px;margin:10vh auto}.signin .button{margin-top:28px}.signin>p{line-height:1.7}.small{display:block}[hidden]{display:none!important}@media(max-width:740px){header{padding:18px 20px}.brand{font-size:20px}main{padding:30px 20px}.intro{display:block}.date{margin-top:22px}.stats{gap:12px}.stat{padding:20px 16px}.columns{grid-template-columns:1fr}.panel{padding:22px}.entry-head{display:block}.energy{margin-top:8px}.panel-heading button{white-space:nowrap}footer{display:block}footer p{margin:8px 0}dialog{padding:22px}.fields{gap:14px}}@media(max-width:360px){.stats,.fields{grid-template-columns:1fr}.full{grid-column:auto}}
/* Compact field-and-number journal */
main{padding-top:24px}.intro h1{font-size:34px;margin:6px 0 8px}.lead{font-size:13px}.eyebrow{font-size:10px}.stats{margin:20px 0 14px;gap:12px}.stat{padding:18px}.stat h2{font-size:28px;margin:10px 0}.panel{padding:20px;margin:16px 0}.columns{display:block}.entry{padding:14px 0}.entry h3{font-size:15px}.entry-head{align-items:baseline}.energy{font-size:13px;white-space:normal}.entry .meta{margin:4px 0 9px}.field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0}.field-grid div{min-width:0;background:#f1f4eb;border-radius:9px;padding:8px}.field-grid dt{font-size:11px;color:var(--muted)}.field-grid dd{margin:3px 0 0;font-size:13px;font-weight:650;overflow-wrap:anywhere}.entry-summary{margin:8px 0!important}.entry-actions{display:flex;gap:12px;align-items:start;flex-wrap:wrap}.entry details,.help{font-size:12px;line-height:1.7}.entry details>summary{cursor:pointer;min-height:36px;padding:6px 0;color:var(--green)}.entry .quiet{min-height:40px}.photo-content img{margin-top:8px;max-height:420px;object-fit:contain}.macro-strip>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.macro-tile{padding:12px;background:#fffef9;border:1px solid var(--line);border-radius:12px;min-width:0}.macro-tile strong{display:block;font-size:14px;margin:5px 0}.macro-tile p{font-size:11px;line-height:1.5;overflow-wrap:anywhere}.number-value{font:28px Georgia,serif;margin:10px 0}.completion{margin-top:16px;font-size:13px;line-height:1.5;min-height:44px}.period-controls{display:flex;gap:8px}.period-controls button[aria-pressed=true]{background:var(--green);color:white}.table-scroll{max-width:100%;overflow-x:auto;margin-top:14px}.table-scroll:focus-visible{outline:3px solid #b78220;outline-offset:3px}table{border-collapse:collapse;width:100%;font-size:12px;line-height:1.5;text-align:left}caption{text-align:left;font-size:11px;color:var(--muted);padding-bottom:8px}th,td{padding:9px 8px;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:11px}td:first-child{white-space:nowrap}.help{padding:12px 0;color:var(--muted)}#settings-error{font-size:13px;color:#755321}.overview-panel details{font-size:12px;margin-top:12px;line-height:1.7}summary:focus-visible{outline:3px solid #b78220;outline-offset:3px}.panel-heading h2{font-size:18px}.panel-heading button{font-size:12px}.macro-strip{margin-bottom:16px}@media(max-width:740px){.intro h1{font-size:30px}.date{margin-top:15px}.stat h2{font-size:24px}.macro-strip>div{gap:6px}.macro-tile{padding:9px}.macro-tile strong{font-size:12px}.field-grid{gap:5px}.field-grid div{padding:7px}.field-grid dd{font-size:12px}.panel{padding:16px}.panel-heading{flex-wrap:wrap}.entry-head{display:flex;flex-wrap:wrap}.entry-head h3{flex:1;min-width:140px}.energy{max-width:100%}th,td{padding:8px 5px}header{padding:14px 20px}main{padding-top:20px}.number-value{font-size:25px}.period-controls button{min-height:40px;padding:10px 14px}}@media(max-width:360px){.stats{grid-template-columns:1fr}.field-grid{grid-template-columns:1fr 1fr}.macro-strip>div{grid-template-columns:1fr}.fields{grid-template-columns:1fr}}

/* Compact visual bundles preserve independent records and native disclosures. */
.bundle-list{margin-top:12px}.bundle-item{border-top:1px solid var(--line);min-width:0}.bundle-item>summary{min-height:44px;padding:10px 0!important;overflow-wrap:anywhere}.bundle-item>summary strong{font-size:13px}.bundle-line{display:block;font-size:12px;color:var(--muted);font-weight:400;white-space:pre-wrap;overflow-wrap:anywhere}.bundle-item>.entry{margin:0 0 12px;padding:12px;border-radius:10px;box-shadow:none}.bundle{min-width:0}.bundle h3,.bundle dd{overflow-wrap:anywhere}.bundle>.entry-head{flex-wrap:wrap;gap:8px}@media(max-width:420px){.bundle{padding:14px}.bundle-item>.entry{padding:10px}.bundle .field-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bundle .field-grid dd{font-size:11px}}

.water-records>summary{min-height:44px}.water-bundle{min-width:0}.water-bundle .bundle-item>summary{display:block}.water-bundle .bundle-item>summary span{display:block;color:var(--muted);font-size:12px}.water-bundle strong{overflow-wrap:anywhere}
/* r7.4: neutral, summary-first daily journal. */
:root{--green:#256b63;--ink:#20282c;--muted:#667176;--line:#e3e7e8}body{background:#f6f7f8;color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}header{background:#fff;border-bottom:1px solid var(--line);max-width:none;padding:12px max(20px,calc((100% - 860px)/2));gap:12px}.brand{font-size:16px;letter-spacing:-.3px;white-space:nowrap}.header-actions{display:flex;flex:0 0 auto;gap:6px;white-space:nowrap}button,.quiet,.secondary{min-height:44px;border-radius:9px;font-family:inherit}.quiet{color:var(--muted)}main{max-width:860px;padding:24px 20px 40px}.intro{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.intro h1{font:600 24px/1.2 system-ui,sans-serif;letter-spacing:-.5px;margin:0}.date-nav{display:flex;align-items:center;gap:4px}.date{margin:0}.date input{min-height:44px;font:500 13px system-ui,sans-serif;padding:8px;border:1px solid var(--line);background:#fff;border-radius:8px}.date-nav button{font-size:24px;min-width:44px;padding:4px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.daily-dashboard{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;margin-bottom:22px}.dashboard-state{display:flex;gap:8px;font-size:11px;color:var(--muted);margin-bottom:20px}.dashboard-state span{background:#f0f4f3;border-radius:20px;padding:4px 9px}.dashboard-numbers{display:grid;grid-template-columns:1fr 1fr;gap:20px}.dashboard-numbers>div{min-width:0}.dashboard-numbers span,.dashboard-macros span{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.dashboard-numbers strong{display:block;font-size:28px;line-height:1.2;font-weight:600;letter-spacing:-1px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}#dashboard-balance{font-size:12px;line-height:1.6;color:var(--green);background:#f1f6f4;padding:10px 12px;border-radius:8px;margin:20px 0}.dashboard-macros{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.dashboard-macros strong{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.summary-details{border-top:1px solid var(--line);margin-top:20px;padding-top:6px}.summary-details>summary,.trends-disclosure>summary{font-size:12px;color:var(--muted);min-height:44px;cursor:pointer;line-height:44px}.summary-details .stats{margin-top:12px;gap:10px}.summary-details .stat{padding:14px;box-shadow:none;background:#f7f8f8;border:1px solid var(--line);border-radius:10px}.summary-details .stat h2{font:600 17px system-ui,sans-serif}.summary-details .stat p{font-size:11px}.summary-details .macro-strip{margin-top:14px}.summary-details .overview-panel{border:0;box-shadow:none;padding:0;margin:0}.number-value{font:600 19px system-ui,sans-serif}.panel{background:#fff;border:1px solid var(--line);box-shadow:none;border-radius:14px;padding:18px;margin-bottom:18px}.panel-heading{margin-bottom:12px}.panel-heading h2{font:600 17px system-ui,sans-serif;margin:0}.entry,.bundle{border:0;border-top:1px solid var(--line);border-radius:0;background:none;box-shadow:none;margin:0;padding:14px 0;min-width:0}.entry-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;cursor:pointer}.entry-head h3{font:500 14px/1.5 system-ui,sans-serif;margin:0;min-width:0;overflow-wrap:anywhere}.energy{color:var(--ink);font:500 13px/1.5 system-ui,sans-serif;text-align:right;font-variant-numeric:tabular-nums;max-width:50%;overflow-wrap:anywhere}.entry>.meta,.detail-estimate{font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0}.bundle>.meta{display:none}.bundle-item>.entry{border:0;background:#f7f8f8;padding:12px}.bundle-item>summary{font-size:13px;min-height:44px}.bundle-line{font-size:12px;line-height:1.5}.bundle-item>summary strong{font-weight:500}.entry details>summary{min-height:44px}.entry .field-grid{margin:12px 0}.entry .field-grid div{background:#f5f7f6}.entry .field-grid dt{font-size:10px}.entry .field-grid dd{font-size:12px}.water-bundle .meta{font-size:11px;margin:4px 0;color:var(--muted)}.water-records>summary{font-size:12px}.trends-disclosure{padding:4px 18px}.trends-disclosure .trends-panel{padding:12px 0}.help{font-size:12px}footer{font-size:10px;color:var(--muted);padding:8px 0}#status:empty{display:none}#status{font-size:12px;line-height:1.5}dialog{border:1px solid var(--line);border-radius:16px}input,select,textarea{font-family:inherit}summary:focus-visible,button:focus-visible{outline:3px solid #386e63;outline-offset:3px}@media(max-width:540px){header{padding:10px 16px;flex-wrap:wrap}main{padding:20px 14px 32px}.brand{font-size:14px}.header-actions button{font-size:11px;padding:8px}.intro{gap:8px}.intro h1{font-size:22px}.date-nav{gap:0}.date input{width:139px;font-size:12px}.date-nav button{min-width:44px}.daily-dashboard{padding:18px 16px;border-radius:13px}.dashboard-numbers{gap:12px}.dashboard-numbers strong{font-size:23px;letter-spacing:-.8px}.dashboard-macros{gap:8px}.dashboard-macros strong{font-size:13px}.panel{padding:14px}.entry-head{gap:8px}.entry-head h3{font-size:13px;flex:1}.energy{font-size:12px;max-width:48%}.summary-details .stats{grid-template-columns:1fr}.bundle{padding:12px 0}.field-grid{gap:6px}.entry-summary{font-size:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Recorded trend controls and responsive range chart. The bars duplicate nearby text. */
.trends-panel{min-width:0}.trend-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.trend-controls label{flex:1;min-width:min(100%,180px)}.trend-controls select{min-height:44px}.trends-panel button{min-height:44px}.trend-controls .period-controls{flex-wrap:wrap}
#trend-chart{list-style:none;display:grid;gap:13px;padding:0;margin:12px 0}.trend-point{min-width:0}.trend-point-header{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:2px 12px;font-size:12px;font-variant-numeric:tabular-nums}.trend-point-header span,.trend-coverage{color:var(--muted)}.trend-point-header strong{font-weight:650}.trend-coverage{font-size:11px;display:block}.trend-bar{width:100%;height:14px;display:block}.trend-bar-track,.trend-bar-min,.trend-bar-range,.trend-bar-dot{vector-effect:non-scaling-stroke;stroke-linecap:round}.trend-bar-track{stroke:#e3e7e8;stroke-width:4}.trend-bar-min{stroke:var(--green);stroke-width:4}.trend-bar-range{stroke:#448579;stroke-width:4;stroke-dasharray:2 4}.trend-bar-dot{stroke:var(--green);stroke-width:7}.trend-bar-partial{stroke:#76542a}.trend-data>summary{font-size:12px;cursor:pointer;min-height:44px;line-height:44px;color:var(--green)}.trend-data{border-top:1px solid var(--line);margin-top:16px}
@media(min-width:600px){#trend-chart{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}}
.trend-bar-base{stroke:#2d4145;stroke-width:9}

/* Separate first-level journal and trend views with direct-touch filters. */
.journal-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;background:#edf1f1;padding:4px;border-radius:12px;margin-bottom:16px}.journal-nav button{min-height:44px;background:transparent;color:var(--green);padding:8px 12px}.journal-nav button[aria-pressed=true],#trend-metrics button[aria-pressed=true]{background:var(--green);color:#fff}.trends-panel h1{font:600 24px/1.2 system-ui,sans-serif;letter-spacing:-.5px;margin:0}.trends-panel #trend-window{font-size:13px;font-weight:650;color:var(--green);margin:2px 0 14px}#trend-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-bottom:12px}#trend-metrics button{min-width:0;padding:8px 4px;font-size:12px}@media(max-width:540px){#trend-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}.trends-panel .period-controls button{font-size:12px}.trends-panel #trend-summary{margin-top:12px}

.trend-latest{margin:10px 0 0;background:#edf1f1;border-radius:9px;padding:8px 12px;display:grid;gap:2px;font-size:13px;font-variant-numeric:tabular-nums}.trend-latest span{font-size:12px;color:var(--muted)}
#trend-legend{margin:0 0 12px;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12px}#trend-legend li{display:flex;align-items:center;gap:6px}.trend-key{display:inline-block;flex:none;width:18px;border-top:3px solid var(--green)}.trend-key-range{border-top:3px dashed #448579}.trend-key-base{width:3px;height:11px;border:0;border-radius:2px;background:#2d4145}#trend-chart{margin-top:14px}

/* Native date/time controls must not dictate a dialog grid track's width. */
dialog .fields>label,dialog .fields>details{min-width:0}
dialog input:not([type=checkbox]),dialog select,dialog textarea{min-width:0;max-width:100%}
dialog input:not([type=checkbox]),dialog select{min-height:44px}
@media(max-width:440px){dialog .fields{grid-template-columns:minmax(0,1fr);gap:12px}dialog .full{grid-column:1/-1}}

.day-review{margin:12px 0;padding:4px 10px 8px;background:#edf1f1;border-radius:9px}.day-review .completion{min-height:44px;margin:0;font-size:13px}.day-review .completion input{flex:none}.day-review p{margin:0 0 0 23px}

.trend-lines{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.line-card{min-width:0;border:1px solid #d7dfe2;border-radius:12px;padding:16px}.line-card h2{font-size:17px;margin:0}.line-chart{width:100%;height:auto;display:block}.line-grid{stroke:#d7dfe2;stroke-width:1}.line-axis{font-size:10px;fill:#4a5960}.line-bound{fill:none;stroke:#136b59;stroke-width:2}.line-max{stroke-dasharray:5 3}.line-whisker{stroke:#136b59;stroke-width:1;opacity:.5}.line-dot{fill:#136b59}.line-partial{fill:white;stroke:#136b59;stroke-width:2}.line-card summary{min-height:44px;padding-top:10px}.line-card li{font-size:13px;overflow-wrap:anywhere}.line-card ul{padding-left:18px}@media(max-width:600px){.trend-lines{grid-template-columns:minmax(0,1fr)}}

.line-cursor{stroke:#64747b;stroke-width:1;stroke-dasharray:2 3}

/* Keep the next action and the route to progress easy to find. */
.intro-context{color:#52646a;margin:-4px 0 18px;font-size:14px}.quick-log{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.quick-log a{font-size:13px;min-height:44px;display:inline-flex;align-items:center;color:#215f55}.progress-link{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;border:1px solid #bfd4ce;border-radius:14px;background:#eaf2ee;margin:20px 0}.progress-link h2{font-size:17px;margin:0 0 5px}.progress-link p{font-size:13px;margin:0;color:#465e57}.progress-link button{flex:none}.journal-search h2{font-size:18px;margin-top:0}.search-fields{display:grid;grid-template-columns:2fr 1fr;gap:12px}.search-fields label{min-width:0}.search-fields input,.search-fields select{width:100%;min-width:0;min-height:44px}.search-result{border-top:1px solid #d7dfe2;padding:16px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px}.search-result h3{font-size:15px;overflow-wrap:anywhere;margin:0}.search-result p{margin:0}.search-result button{grid-column:2;grid-row:1/3;align-self:center}.journal-nav{position:sticky;top:8px;z-index:5;box-shadow:0 0 0 8px #f6f7f8}.journal-nav button{min-height:48px}#trend-line-guide{font-size:13px;margin:12px 0;color:#445a54}#trend-line-guide summary{min-height:44px;display:list-item;padding:10px 0;cursor:pointer}#trends-heading{scroll-margin-top:90px}.search-result button:focus-visible,.quick-log a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #755321;outline-offset:3px}@media(max-width:600px){.progress-link{align-items:flex-start;flex-direction:column;gap:12px}.progress-link button{width:100%}.search-fields{grid-template-columns:minmax(0,1fr)}.quick-log button{flex:1}.search-result{grid-template-columns:minmax(0,1fr)}.search-result button{grid-column:1;grid-row:auto;justify-self:start}.journal-nav button{font-size:14px}}
.sync-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:12px 0}.sync-controls .check{font-size:12px;margin:0;min-height:44px}.sync-controls p{flex-basis:100%;margin:0}.line-chart{touch-action:pan-y;cursor:crosshair}#trend-today-option{font-size:13px;min-height:44px}

/* Daily journal and Trends share the selected lavender palette. */
:root{--green:#6044b1;--ink:#221e30;--line:#e3deeb;--muted:#615c70}
body{background:#faf8ff;color:var(--ink)}
.icon-defs{position:absolute;pointer-events:none}
.ui-icon{width:19px;height:19px;fill:currentColor;flex:none}
header{background:transparent;border:0;max-width:900px;margin:auto;padding:16px 24px 0}
.brand{font:780 clamp(22px,3vw,28px)/1.1 system-ui,sans-serif;letter-spacing:-1.15px}
#refresh-journal{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:8px 14px;border:1px solid var(--line);border-radius:24px;background:transparent;color:var(--ink);font-size:13px}
main{max-width:900px;padding:10px 24px 90px}
.day-toolbar{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px}
.day-toolbar #freshness{font-size:12px;color:var(--muted);text-align:right}
.date-nav{gap:0}.date-nav button{color:#4f4563;text-decoration:none;width:36px;min-width:36px}
.date input{background:transparent;border:0;color:var(--ink);font-weight:660;padding:4px;max-width:143px}
.momentum-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:22px}
.protein-card,.intake-card,.week-card,.featured-entry{border-radius:21px}
.protein-card{display:flex;align-items:center;gap:16px;background:#ddd5f8;padding:18px 22px;min-width:0}
.protein-card h2{font-size:clamp(19px,3.5vw,24px);letter-spacing:-.6px}
.protein-card p,.intake-card p{font-size:14px;line-height:1.4;margin:4px 0 0;color:#514765}
.protein-meter{position:relative;width:120px;aspect-ratio:1;flex:none;display:grid;place-items:center}
.protein-meter svg{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke-width:8;stroke-linecap:round}
.protein-meter svg[hidden]{display:none}
.ring-track{stroke:#f8f5ff}#protein-arc{stroke:#856bd8}
.protein-meter strong{max-width:80%;font-size:clamp(23px,5vw,34px);text-align:center;line-height:1.1;letter-spacing:-1px}
.protein-meter strong.long-value{font-size:19px}
.intake-card{display:flex;align-items:center;gap:16px;background:#f8d6d9;padding:17px 20px;min-width:0}
.intake-card>div{border-left:1px solid #dbaeb7;padding-left:16px}
.intake-card strong{font-size:clamp(20px,3.5vw,27px);line-height:1.15;letter-spacing:-.6px}
.icon-disc{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#ffffffad;flex:none}
.icon-disc .ui-icon{width:24px;height:24px}
.week-card{min-width:0;padding:6px 12px 12px;background:white;border:1px solid #eeeaf5;grid-row:span 2}
#open-trends{width:100%;display:flex;align-items:center;gap:9px;color:var(--ink);background:transparent;text-align:left;padding:8px 4px;font-size:17px}
#open-trends .ui-icon:last-child,.featured-entry>.ui-icon{margin-left:auto;width:15px}
#week-plot{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px}
.week-day{display:flex;flex-direction:column;align-items:center;min-width:0;padding:2px 0 5px;background:transparent;color:#60586c;border-radius:8px;font-weight:500;line-height:1.25}
.week-day:hover,.week-day:focus-visible,.week-day[aria-pressed=true]{background:#f5f1ff;color:#382367}
.week-day svg{width:100%;height:55px;border-bottom:1px solid #e8e2ee}
.week-day span,.week-day small{font-size:10px}.week-day span{margin-top:4px}
.week-range{stroke:#a58bdc;stroke-width:9;stroke-linecap:round}
.week-range.partial{stroke:#7c659e;stroke-width:4;stroke-dasharray:1 3}
.week-missing{fill:#fbfaff;stroke:#b9b1cb;stroke-dasharray:2 2}
.week-point{fill:#886dc0}.week-point.partial{fill:white;stroke:#785e9e;stroke-width:2}
#week-readout{font-size:12px;line-height:1.35;color:var(--muted);margin:8px 4px 0}
#featured-entries,.quick-log{display:grid;gap:8px;min-width:0}
#featured-entries:empty{display:none}
.featured-entry{width:100%;display:flex;align-items:center;text-align:left;color:var(--ink);gap:13px;padding:10px 16px;min-height:66px}
.featured-meal{background:#fff0df}.featured-exercise{background:#eae5fa}
.featured-group{border-radius:21px}
.featured-group>details{padding:0 16px;color:var(--ink);font-size:13px}
.featured-group summary{cursor:pointer;min-height:44px;padding:10px 0}
.featured-group .photo-content img{display:block;max-width:100%;width:auto;max-height:280px;border-radius:11px;margin-bottom:8px}
.featured-exercise .icon-disc{color:#543c96;background:#ded6f6}
.featured-copy{min-width:0;overflow-wrap:anywhere}
.featured-copy strong,.featured-copy small{display:block}.featured-copy strong{font-size:16px;line-height:1.25}
.featured-copy small{font-size:12px;margin-top:3px;color:#564c60;font-weight:450}
.quick-log{margin:0;align-content:start}
#quick-meal{display:flex;align-items:center;justify-content:center;gap:10px;border-radius:25px;background:#7056bf;color:white}
#quick-workout{background:transparent;text-decoration:underline;text-underline-offset:3px;color:#563699}
.daily-dashboard h2{margin-bottom:14px}
.account-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.account-panel h2{font-size:17px;margin-bottom:8px}
.journal-nav{position:fixed;inset:auto 0 0;max-width:560px;margin:0 auto;background:#fff;box-shadow:0 -3px 20px #3027430b;border:1px solid #e7e1f0;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:5px 8px max(5px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0}
.journal-nav button,.journal-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:48px;background:transparent;color:#51495e;text-decoration:none;font-size:12px;font-weight:630;padding:3px 4px}
.journal-nav button[aria-pressed=true]{background:#eee8fd;color:#56399d}
html{scroll-padding-bottom:76px}
@media(max-width:650px){
 header{padding:10px 16px 0}main{padding:0 10px 85px}
 .day-toolbar{padding:0 3px;margin-bottom:5px}
 .momentum-board{grid-template-columns:minmax(0,1fr);gap:9px}
 .protein-card{padding:12px 19px;gap:16px;min-height:132px}
 .protein-meter{width:clamp(101px,29vw,125px)}
 .week-card{grid-row:auto}.intake-card{padding:11px 18px}
 .featured-entry{min-height:59px}.quick-log{gap:1px}
 .journal-nav{border-radius:0}
}

.trends-panel{padding:0;border:0;background:transparent}
.trends-toolbar{background:#e4dcfa;border-radius:22px;padding:clamp(15px,3vw,24px);margin:12px 0}
.trends-toolbar .panel-heading{margin:0;align-items:center}
.trends-toolbar h1{font-size:clamp(27px,4vw,38px);letter-spacing:-1.2px}
.trends-toolbar .period-controls{display:flex;flex-wrap:wrap;gap:4px}
.trends-toolbar .period-controls[hidden],.chart-jump[hidden]{display:none}
.trends-toolbar .period-controls button,#trend-metrics button{border-radius:18px;background:#f7f4ff;color:#42365b}
.trends-toolbar .period-controls button[aria-pressed=true],#trend-metrics button[aria-pressed=true]{background:#604798;color:#fff}
.trends-panel #trend-window{margin:7px 0 14px;color:#514463}
.trends-panel #trend-today-option{margin-bottom:0}
.chart-jump{display:flex;align-items:center;gap:10px;color:#534863;font-size:13px}
.chart-jump select{margin:0;width:auto;max-width:65%;min-height:44px;background:white;border-color:var(--line)}
#trend-line-guide{margin:0}
.trend-lines{margin:2px 0 20px;gap:12px}
.line-card{--series:#7556aa;border:1px solid var(--line);border-radius:20px;padding:16px;background:white}
.line-card[data-metric=intake]{--series:#994952}
.line-card[data-metric=water]{--series:#256b78}
.line-card h2{font-size:20px;letter-spacing:-.5px;scroll-margin-top:16px}
.line-card>p.small:first-of-type{font-size:13px;color:var(--series);margin:5px 0 12px;font-weight:620}
.line-chart{background:#fbf9ff;border-radius:10px}
.line-card[data-metric=intake] .line-chart{background:#fff5f2}
.line-card[data-metric=water] .line-chart{background:#f1f9fb}
.line-bound,.line-whisker,.line-partial{stroke:var(--series)}
.line-dot{fill:var(--series)}
.inspect-plot{position:relative}
.inspect-plot input.sr-only{left:0;top:0;padding:0;margin:0;border:0}
.inspect-plot:has(input:focus-visible){outline:3px solid var(--series);outline-offset:2px;border-radius:10px}
.line-readout{position:absolute;top:4px;max-width:min(68%,250px);margin:0;padding:7px 10px;border-radius:9px;border:1px solid var(--line);background:#fff;color:var(--ink);box-shadow:0 2px 8px #29233420;font:500 12px/1.4 system-ui,sans-serif;pointer-events:none}
.line-readout[data-side=left]{left:4px}.line-readout[data-side=right]{right:4px}
.line-card summary{color:#5c417e}
.trend-latest{background:#eee8fb;border-radius:14px;padding:12px}
.trend-point{background:white;border-radius:14px}
@media(max-width:380px){.trends-toolbar .panel-heading{gap:6px}.trends-toolbar .period-controls button{padding-inline:12px}}
.meter-label{display:grid;place-items:center;position:relative;max-width:83%;text-align:center}
.meter-label strong{max-width:100%}
.meter-label small{font-size:14px;color:#574c68;border-top:1px solid #b8a9d6;padding:4px 5px 0;margin-top:4px}
.week-key{font-size:11px;line-height:1.4;color:#655e70;margin:7px 4px 0}
#week-readout{margin-top:3px;color:#4b3f5b}
@media(max-width:650px){
 .protein-card h2{font-size:clamp(20px,5.8vw,25px)}
 .protein-card{min-height:clamp(132px,39vw,160px)}
 .protein-meter{width:clamp(104px,32vw,132px)}
 .protein-meter strong{font-size:clamp(25px,7vw,31px)}
 .protein-meter strong.long-value{font-size:19px}
}
