/* Audit fixes 2026-10-25 — same heading language as 今日 / マイページ v2. */
.screen-kicker{font-size:10.5px!important;letter-spacing:.16em!important;font-weight:600!important;color:var(--secondary)!important;text-transform:none;margin:6px 0 2px!important}
#records>h1,#documents>h1,#local>h1{font-size:26px!important;margin:0 0 14px!important}
#documents>.screen-intro,#local>.screen-intro{font-size:13px;margin:0 0 16px}
/* header: マイページ is in the bottom nav; keep the shortcut out of the way */
.app-header #profile-shortcut{display:none!important}
/* records */
.rec-retired{display:none!important}
/* Body: import first, latest and personal goals independent of the history range. */
#body-dashboard{display:none}
.app[data-record-kind=body] #body-dashboard{display:block}
.app[data-record-kind=body] #legacy-records>.rec-quick,.app[data-record-kind=body] #record-journal,.app[data-record-kind=body] #record-composer{display:none!important}
.app[data-record-kind=body] #legacy-records>.body-entry,.app[data-record-kind=body] #legacy-records>p,.app[data-record-kind=body] #legacy-records>.soft-note{display:none!important}
.app[data-screen=records][data-record-kind=body] .ai-fab{opacity:0;pointer-events:none}
.app[data-record-kind=body] #record-tabs [data-kind]{white-space:normal;min-width:0;overflow-wrap:anywhere;line-height:1.45;padding:6px 4px}
#body-dashboard button,.bc-import button{font:inherit;cursor:pointer;min-height:44px}
#body-dashboard{font-variant-numeric:tabular-nums}
.bc-intake{margin:16px 0 10px}
.bc-import-primary{display:flex;align-items:center;gap:14px;width:100%;padding:19px 18px;border:0;border-radius:20px;background:var(--brand);color:#fff;text-align:left}
.bc-import-primary svg{width:25px;height:25px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7}
.bc-import-primary svg:last-child{width:19px;height:19px;margin-left:auto}
.bc-import-primary span{min-width:0}
.bc-import-primary b{display:block;font-size:16px;font-weight:600;line-height:1.6}
.bc-import-primary small{display:block;font-size:11.5px;font-weight:400;margin-top:2px;line-height:1.6;color:#fff}
.bc-intake-secondary{display:grid;grid-template-columns:1fr 1fr;margin-top:8px;gap:8px}
.bc-intake-secondary button{background:var(--surface);border:1px solid var(--hairline);border-radius:13px;padding:10px 6px;font-size:13px!important;color:var(--text);font-weight:550!important}
.bc-guide{font-size:12px;color:var(--secondary);margin:4px 0 24px;padding:0 2px}
.bc-guide summary{min-height:44px;display:flex;align-items:center;cursor:pointer;gap:8px;list-style:none}
.bc-guide summary:before{content:'?';display:grid;place-items:center;width:18px;height:18px;border:1px solid currentColor;border-radius:50%;font-size:11px;flex:none}
.bc-guide summary:after{content:'⌄';margin-left:auto}
.bc-guide[open]{padding:0 14px 14px;background:var(--soft);border-radius:14px}
.bc-guide ol{padding-left:20px;margin:4px 0 12px;line-height:1.8}
.bc-guide li+li{margin-top:8px}
.bc-guide p{line-height:1.75}
.bc-guide a{font-size:12px;min-height:44px;display:inline-flex;align-items:center}
.bc-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
#body-dashboard .bc-section-head h2{font-size:18px;font-weight:600;margin:0;line-height:1.4}
.bc-section-head .text-button{font-size:12px!important;padding:4px 0;flex:none}
.bc-current{padding:17px 17px 13px;border-radius:20px;background:var(--surface);border:1px solid var(--hairline)}
.bc-stats{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px}
.bc-consult{display:block;width:100%;border:0;border-top:1px solid var(--hairline);background:none;color:var(--brand);font-size:12px!important;padding:12px 0 0;margin-top:16px;text-align:center}
.bc-stat:first-child{grid-column:1/-1;border-bottom:1px solid var(--hairline);padding-bottom:16px;display:grid;grid-template-columns:1fr 1fr;align-items:baseline;column-gap:20px}
#body-dashboard .bc-stat h3{font-size:12px;color:var(--secondary);font-weight:500;margin:0 0 5px}
.bc-stat:first-child h3{grid-column:1/-1}
.bc-stat-number{display:flex;gap:4px;align-items:baseline;margin:0;color:var(--brand);line-height:1.2}
.bc-stat-number strong{font-size:29px;font-weight:600;letter-spacing:-.035em}
.bc-stat:first-child .bc-stat-number strong{font-size:46px;font-weight:550}
.bc-stat-number>span{font-size:12px;font-weight:400;letter-spacing:0}
.bc-stat-date{display:block;font-size:10.5px;color:var(--secondary);margin:5px 0 10px;line-height:1.6}
.bc-stat:first-child .bc-stat-date{grid-column:1;grid-row:3}
.bc-target{display:flex;align-items:baseline;justify-content:space-between;gap:7px;font-size:11px;margin:0;padding-top:9px;border-top:1px solid var(--hairline)}
.bc-target>span{color:var(--secondary)}
.bc-target b{font-size:14px;font-weight:550}
.bc-stat:first-child .bc-target{grid-column:2;grid-row:2;align-self:end;display:grid;gap:3px;border:0;padding:0}
.bc-stat:first-child .bc-target b{font-size:23px;line-height:1.3}
.bc-goal-gap{display:block;color:var(--secondary);font-size:10.5px;line-height:1.5;margin-top:6px}
.bc-stat:first-child .bc-goal-gap{grid-column:2;grid-row:3}
.bc-stat:first-child>.bc-conflict{grid-column:1/-1;grid-row:4;margin:6px 0 0}
.bc-trend{margin:24px 0;padding:20px 17px 12px;background:var(--soft);border-radius:20px}
.bc-metric-tabs{display:flex;gap:7px;border-bottom:1px solid var(--hairline);margin-bottom:12px}
.bc-metric-tabs button{border:0;background:transparent;flex:1;padding:7px 0;color:var(--secondary);font-size:12px!important;position:relative}
.bc-metric-tabs button[aria-pressed=true]{color:var(--brand);font-weight:650}
.bc-metric-tabs button[aria-pressed=true]:after{content:'';position:absolute;height:2px;border-radius:2px;background:var(--brand);left:8px;right:8px;bottom:-1px}
.bc-periods{display:flex;gap:5px;justify-content:flex-end}
.bc-periods button{font-size:11px!important;border:0;background:transparent;color:var(--secondary);padding:5px 10px;border-radius:10px}
.bc-periods button[aria-pressed=true]{background:var(--surface);color:var(--brand);font-weight:600}
.bc-range{font-size:10.5px;color:var(--secondary);margin:10px 0}
.bc-trend-delta{display:flex;align-items:baseline;gap:4px;margin:10px 0 4px}
.bc-trend-delta strong{font-size:28px;font-weight:550;letter-spacing:-.03em}
.bc-trend-delta>span,.bc-trend-delta small{font-size:11px;color:var(--secondary)}
.bc-trend-delta small{margin-left:8px}
.bc-chart{display:block;width:100%;height:auto;margin-top:10px;overflow:visible}
.bc-chart text{fill:var(--secondary);font-size:10px}
.bc-chart-grid{stroke:var(--hairline);stroke-width:1}
.bc-chart-line{fill:none;stroke:var(--brand);stroke-width:2.4;stroke-linejoin:round}
.bc-chart circle{fill:var(--brand);stroke:var(--soft);stroke-width:1.5}
.bc-history{margin-top:26px}
.bc-history>.helper{margin:0 0 10px}
.bc-history-row{position:relative;display:flex;flex-direction:column;gap:8px;width:100%;text-align:left;background:var(--surface);border:1px solid var(--hairline);border-radius:16px;padding:16px 26px 14px 14px;margin-bottom:9px;color:var(--text)}
.bc-history-meta{display:flex;gap:10px;align-items:center;font-size:12px;font-weight:550}
.bc-history-meta small{font-size:10px;font-weight:400;color:var(--secondary);padding:2px 6px;background:var(--soft);border-radius:5px}
.bc-history-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.bc-history-values>span{display:flex;flex-direction:column;gap:3px}
.bc-history-values small{color:var(--secondary);font-size:10px}
.bc-history-values b{font-size:15px;font-weight:550}
.bc-history-source{font-size:10.5px;line-height:1.6;color:var(--secondary);overflow-wrap:anywhere}
.bc-chevron{position:absolute;right:12px;top:45%;color:var(--secondary)}
.bc-conflict{font-size:11.5px;line-height:1.8;color:var(--secondary);margin:9px 0 0}
.bc-empty{font-size:12px;line-height:1.8;padding:8px 0;color:var(--secondary)}
.bc-import{width:min(530px,100%);max-width:100%;max-height:90dvh;box-sizing:border-box;padding:22px 20px 28px;border:0;border-radius:24px;background:var(--paper);color:var(--text);font:inherit;overflow-y:auto;overscroll-behavior:contain}
.bc-import::backdrop{background:#18221d66}
.bc-import-head{display:flex;justify-content:space-between;align-items:center;gap:12px;position:sticky;top:0;z-index:2;background:var(--paper);padding-bottom:8px}
.bc-import h2{font-size:21px;font-weight:600;margin:0}
.bc-import h3{font-size:17px;margin:0 0 16px;font-weight:600}
.bc-import .helper{font-size:12px;line-height:1.8}
.bc-import-head .text-button{font-size:12px;flex:none;padding:6px 0}
.bc-upload-form{margin-top:20px}
.bc-file{display:block;width:100%;font:inherit;font-size:12px!important;padding:12px 9px!important;box-sizing:border-box;min-width:0;background:var(--surface)}
.bc-file::file-selector-button{font:inherit;background:var(--soft);border:0;border-radius:8px;padding:9px;margin-right:8px;color:var(--text)}
.bc-import-preview{display:block;max-height:200px;max-width:100%;object-fit:contain;margin:12px auto;border-radius:10px}
.bc-import .check-row{align-items:center;font-size:12px;line-height:1.8;margin:10px 0;gap:10px;min-height:44px}
.bc-import .check-row input{flex:none;margin-top:4px}
.bc-import input[type=checkbox]{width:20px;height:20px;min-height:20px;flex:none}
.bc-import .primary{display:block;width:100%;margin-top:14px;font-size:14px;font-weight:550;min-height:48px}
.bc-import-status{font-size:12px;line-height:1.8;white-space:pre-line;margin:16px 0 0}
.bc-source-note{padding-top:12px;border-top:1px solid var(--hairline);margin-top:16px}
.bc-review{padding-top:12px;margin-top:12px}
.bc-review>h3{margin-bottom:4px}
.bc-review>.text-button{font-size:12px;min-height:44px;padding:0}
.bc-review-original,.bc-review-source{font-size:12px}
.bc-review-original summary,.bc-review-source summary{min-height:44px;display:flex;align-items:center;cursor:pointer;gap:8px}
.bc-review-original summary:before,.bc-review-source summary:before{content:'›'}
.bc-review-original img{display:block;max-width:100%;max-height:320px;object-fit:contain;margin:10px auto}
.bc-review-measurement{padding:14px;border:1px solid var(--hairline);border-radius:14px;margin:12px 0;background:var(--surface)}
.bc-review-measurement>.check-row{margin:0 0 14px;font-size:14px}
.bc-review .field{font-size:12px;margin:0 0 10px;min-width:0}
.bc-review .field label{margin:0;font-size:12px;min-width:0}
.bc-review input:not([type=checkbox]){box-sizing:border-box;width:100%;min-width:0;font-size:16px;min-height:44px;padding:9px 10px;border-radius:10px}
.bc-review-primary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.bc-review-primary .field small{font-size:10px;color:var(--secondary);margin-left:4px}
.bc-review-more summary{font-size:12px;min-height:44px;cursor:pointer;padding:8px 0}
.bc-review-more>.field{padding-top:6px}
.bc-review-primary>.field,.bc-review-more>.field{display:grid;grid-template-columns:minmax(0,1fr) 54px;gap:7px;align-items:end}
.bc-review .bc-unit-label{font-size:10px;color:var(--secondary)}
.bc-review .bc-unit{font-size:12px!important;padding:9px 5px!important;text-align:center}
.bc-csv-format{font-size:12px;margin:10px 0 16px}
.bc-csv-format summary{min-height:44px;cursor:pointer;padding-top:10px}
.bc-csv-format pre{font-size:10px;overflow-x:auto;background:var(--soft);padding:10px;border-radius:10px}
.bc-review-measurement.is-saved{opacity:.65}
.bc-report-back{min-height:44px;display:flex;align-items:center;font-size:12px}
#body-dashboard button:focus-visible,.bc-import button:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
@media(min-width:768px){.bc-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.bc-stat:first-child{display:block;grid-column:auto;border:0;border-right:1px solid var(--hairline);padding:0 24px 0 0}.bc-stat:first-child .bc-stat-number strong{font-size:39px}.bc-stat:first-child .bc-target{display:flex;padding-top:9px;border-top:1px solid var(--hairline)}.bc-stat:first-child .bc-target b{font-size:14px}.bc-current,.bc-trend{padding:24px}.bc-import-primary{padding:24px}.bc-history-values b{font-size:18px}}
@media(max-width:350px){.bc-import{padding:18px 14px 24px}.bc-import-primary{gap:10px;padding:16px 13px}.bc-import-primary b{font-size:14px}.bc-import-primary small{font-size:10.5px}.bc-import-primary svg{width:22px;height:22px}.bc-current,.bc-trend{padding:16px 13px}.bc-stats{column-gap:14px}.bc-stat-number strong{font-size:25px}.bc-stat:first-child .bc-stat-number strong{font-size:41px}.bc-review-primary{grid-template-columns:1fr}.bc-history-values b{font-size:13px}.bc-intake-secondary button{font-size:12px!important}}
.rec-journal{margin:6px 0 0}
.rec-journal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 10px}
.rec-title{font-size:18px!important;font-weight:650;margin:0!important}
.rec-add{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:999px;background:var(--brand);color:var(--paper,#fff);font-size:13px;font-weight:650;padding:9px 16px;min-height:40px}
.rec-add svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2}
.rec-journal .record-tools{display:grid;grid-template-columns:auto 1fr;gap:8px;margin:0 0 6px}
.rec-journal .record-tools .field{margin:0;font-size:0}
.rec-journal .record-tools .field select,.rec-journal .record-tools .field input{font-size:14px;min-height:44px;margin:0;border-radius:12px}
.rec-journal #record-range{font-size:11.5px;margin:6px 2px 10px}
.rec-journal #cloud-records{background:var(--surface);border:1px solid var(--hairline);border-radius:16px;padding:0 14px}
.rec-journal #cloud-records:empty{display:none}
.rec-journal #cloud-records .food-entry:last-child{border-bottom:0}
.rec-journal #cloud-records .soft-note{border:0;background:transparent;padding:14px 0;margin:0}
.rec-export{display:block;margin:8px 0 0 auto;font-size:12px;color:var(--secondary)}
.rec-composer{margin-top:28px;padding-top:22px;border-top:1px solid var(--hairline);scroll-margin-top:12px}
.rec-composer>.rec-title{margin-bottom:6px!important}
.rec-composer #record-intro{font-size:12.5px;margin:0 0 12px}
/* local */
.local-area-chip:not(:empty){display:inline-block;font-size:12px;font-weight:600;color:var(--brand);background:var(--soft);border-radius:999px;padding:4px 12px;margin:0 0 8px}
#local>#local-search{margin-top:6px}
.local-more{border:1px solid var(--hairline);border-radius:16px;background:var(--surface);padding:0 16px;margin:14px 0}
.local-more>summary{min-height:54px;display:flex;align-items:center;justify-content:space-between;font-size:14.5px;font-weight:600;cursor:pointer;list-style:none;color:var(--text)}
.local-more>summary::-webkit-details-marker{display:none}
.local-more>summary:after{content:"";width:7px;height:7px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg);opacity:.5;transition:transform .2s}
.local-more[open]>summary:after{transform:rotate(-135deg)}
.local-more[open]>summary{border-bottom:1px solid var(--hairline);margin-bottom:12px}
/* consult: shorter intro so the input is reachable */
#consult .coach-portrait figure{display:none}
#consult .coach-portrait{padding:12px 14px!important;min-height:0!important;border-radius:16px;margin:10px 0!important}
#consult .coach-portrait h2{font-size:15px!important;margin:0!important}
#consult .coach-portrait p{font-size:12px!important;margin:4px 0!important;line-height:1.6}
#consult .consult-intro{margin:14px 0!important}
#consult .consult-intro h2{font-size:18px!important}
#consult .consult-intro>p{font-size:12.5px!important;margin:4px 0 12px!important}
#consult .question-starters button{border-radius:14px;background:var(--surface);font-weight:600;min-height:48px}
/* records list: compact rows (Lifesum / Fitbit diary density) */
.rec-journal #cloud-records .food-entry{display:grid;grid-template-columns:1fr auto;column-gap:12px;padding:14px 0!important;margin:0!important;border:0!important;border-bottom:1px solid var(--hairline)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.rec-journal .food-entry>small{grid-column:1;font-size:11px!important;color:var(--secondary)}
.rec-journal .food-entry .record-name{grid-column:1;font-size:15px!important;line-height:1.45!important;margin:2px 0 0!important;font-weight:650}
.rec-journal .food-entry .meal-nutrition,.rec-journal .food-entry>p:not(.ai-state){grid-column:1/-1;margin:4px 0 0!important}
.rec-journal .food-entry .meal-nutrition{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;padding:0!important;background:transparent!important}
.rec-journal .meal-energy{display:flex;align-items:baseline;gap:3px;margin:0!important}
.rec-journal .meal-energy strong{font-size:18px!important;font-weight:650;font-variant-numeric:tabular-nums}
.rec-journal .meal-energy span{font-size:11px}
.rec-journal .meal-energy small{font-size:10px;padding:1px 6px;border-radius:6px;background:var(--soft);margin-left:4px}
.rec-journal .meal-serving{font-size:11.5px;color:var(--secondary);margin:0!important}
.rec-journal .meal-macros{display:flex!important;gap:10px;margin:0!important;padding:0!important;background:transparent!important;border:0!important}
.rec-journal .meal-macros>div{display:flex!important;align-items:baseline;gap:3px;padding:0!important;border:0!important;background:transparent!important}
.rec-journal .meal-macros dt{font-size:10.5px!important;color:var(--secondary)}
.rec-journal .meal-macros dd{font-size:12px!important;margin:0!important;font-weight:600;font-variant-numeric:tabular-nums}
.rec-journal .meal-macros dd small{font-size:10px}
.rec-journal .food-entry .ai-state{display:none}
.rec-journal .food-entry>p:empty{display:none}
.rec-journal .food-entry>details{grid-column:1/-1;font-size:11.5px}
.rec-journal .food-entry .food-actions{grid-column:2;grid-row:1/3;align-self:start;display:flex;gap:4px;margin:0!important;padding:0!important;border:0!important}
.rec-journal .food-entry .food-actions button{font-size:11.5px!important;min-height:30px;padding:4px 10px!important;border-radius:999px;border:1px solid var(--hairline)!important;background:var(--surface);text-decoration:none}
.rec-journal .food-entry>.text-button{grid-column:2;grid-row:1/3;font-size:11.5px}
.rec-journal .insight-summary{font-size:12.5px;padding:12px 14px;border-radius:14px;margin:0 0 10px}
/* consult: single column card once the photo is hidden */
#consult .coach-portrait{display:block!important}
/* 相談: keep the main menu under the chat so other features are one tap away; hide it only while typing. */
.app[data-screen=consult]:has(#private-app:not([hidden])) .bottom-nav{display:grid!important;position:static!important;transform:none!important;inset:auto!important;width:100%!important;flex:none;margin:0;order:9}
.app[data-nav-mode=frame][data-screen=consult]:not([data-nav-keyboard=true])>.bottom-nav{display:grid!important}
.app[data-screen=consult]:has(#private-app:not([hidden])):has(.chat-input textarea:focus) .bottom-nav,.app[data-nav-mode=frame][data-screen=consult][data-nav-keyboard=true]:has(#private-app:not([hidden]))>.bottom-nav{display:none!important}
.app[data-screen=consult]:has(.bottom-nav) .chat-dock{padding-bottom:6px}
.app[data-screen=consult]:has(.chat-input textarea:focus) .chat-dock{padding-bottom:calc(6px + var(--safe-bottom))}
/* 記録: photo / barcode tiles first (tap starts immediately) */
.rec-quick{margin:2px 0 18px}
.rec-ways{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rec-way{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px;border:1px solid var(--hairline);border-radius:20px;background:var(--surface);text-align:left;min-height:128px;color:var(--text)}
.rec-way.is-primary{background:var(--brand);border-color:var(--brand);color:#fff}
.rec-way-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--soft);color:var(--brand)}
.rec-way.is-primary .rec-way-icon{background:#ffffff1f;color:#fff}
.rec-way-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
.rec-way-text{display:flex;flex-direction:column;gap:2px}
.rec-way b{font-size:16px;font-weight:650;line-height:1.3}
.rec-way small{font-size:11px;color:var(--secondary);line-height:1.4}
.rec-way.is-primary small{color:#ffffffb3}
.rec-ways-more{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.rec-way-link{border:1px solid var(--hairline);background:var(--surface);color:var(--brand);border-radius:999px;font-size:12.5px;font-weight:600;padding:8px 14px;min-height:38px}
.app:not([data-record-kind=meal]) .rec-quick{display:none}
#legacy-records:has(.rec-quick) #meal-capture:not([open]),#legacy-records:has(.rec-quick) .catalog-search:not([open]),#legacy-records:has(.rec-quick) .barcode-entry{display:none!important}
.rec-composer #meal-capture[open],.rec-composer .catalog-search[open]{margin:0 0 14px}
/* empty journal: one message, not two */
.rec-journal:has(#cloud-records>.soft-note:only-child) #insight-summary:not(.period-total){display:none}
.app[data-record-kind=meal] .rec-add{display:none}
.rec-way-icon svg path{stroke:currentColor}
/* queue2503 CaLFi推奨店 directory */
.venue-dir{margin:4px 0 18px}
.venue-dir-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px}
.venue-dir-head h2{margin:0;font-size:18px;flex:none;white-space:nowrap}
.venue-food-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:12px 0}
.venue-food-search select{grid-column:1/-1;min-width:0;font:inherit;font-size:16px;background:var(--surface);color:var(--text);border:1px solid var(--hairline);border-radius:12px;padding:10px}
.venue-food-search input{min-width:0;font:inherit;font-size:16px;background:var(--surface);color:var(--text);border:1px solid var(--hairline);border-radius:12px;padding:10px}
.venue-food-search button{min-height:44px}
.venue-menu-evidence{padding:0;list-style:none;display:grid;gap:12px}
.venue-menu-evidence li{display:grid;gap:4px;padding:12px 0;border-bottom:1px solid var(--hairline)}
.venue-dir-area{min-height:44px;font:inherit;font-size:13px;padding:6px 10px;border:1px solid var(--hairline);border-radius:999px;background:var(--surface);color:var(--text);max-width:52%;min-width:0;flex:1}
.venue-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 8px;margin:0 -2px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.venue-chips::-webkit-scrollbar{display:none}
.venue-chip{flex:none;font:inherit;font-size:13px;font-weight:600;padding:7px 14px;border-radius:999px;border:1px solid var(--hairline);background:var(--surface);color:var(--secondary);white-space:nowrap}
.venue-chip[aria-pressed="true"]{background:var(--brand);border-color:var(--brand);color:var(--paper)}
.venue-chips-feature{padding-top:0}
.venue-chips-feature .venue-chip{font-size:12px;padding:5px 12px}
.venue-chips-feature .venue-chip[aria-pressed="true"]{background:var(--soft);border-color:var(--brand);color:var(--text)}
.venue-chip:focus-visible,.venue-row:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.venue-sort{display:inline-flex;gap:2px;padding:2px;margin:0 0 6px;border:1px solid var(--hairline);border-radius:999px;background:var(--surface)}
.venue-sort[hidden]{display:none}
.venue-sort-btn{font:inherit;font-size:12px;font-weight:600;padding:5px 12px;border:0;border-radius:999px;background:transparent;color:var(--secondary)}
.venue-sort-btn[aria-pressed="true"]{background:var(--soft);color:var(--text)}
.venue-sort-btn:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.venue-dir-status{margin:2px 0 6px;min-height:1.2em}
.venue-list{list-style:none;margin:0;padding:0;display:grid;gap:1px;background:var(--hairline);border-radius:16px;overflow:hidden}
.venue-list[aria-busy="true"]{opacity:.55;transition:opacity .2s}
.venue-row{display:flex;gap:12px;align-items:center;width:100%;padding:12px 14px;border:0;background:var(--surface);color:var(--text);text-align:left;font:inherit}
.venue-row:active{background:var(--soft)}
.venue-row-body{display:grid;gap:2px;min-width:0}
.venue-tag-pick{color:var(--brand);border-color:var(--brand)}
.venue-more{display:block;width:100%;padding:0 14px 10px;border:0;background:var(--surface);color:var(--brand);font:inherit;font-size:12px;font-weight:600;text-align:left}
.venue-more:focus-visible,.venue-branch:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.venue-branches{list-style:none;margin:0;padding:0 0 6px;background:var(--surface)}
.venue-branch{display:flex;justify-content:space-between;gap:12px;width:100%;padding:8px 14px 8px 28px;border:0;border-top:1px solid var(--hairline);background:transparent;color:var(--text);font:inherit;font-size:13px;text-align:left}
.venue-name{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.venue-name-area{font-weight:500;color:var(--secondary);font-size:.85em}
.venue-meta{color:var(--muted);font-size:12px}
.venue-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
.venue-tag{font-size:11px;color:var(--secondary);border:1px solid var(--hairline);border-radius:6px;padding:1px 6px}
.venue-credit{color:var(--muted);font-size:11px;margin:6px 2px 0}
.venue-sheet{padding-top:6px}
.venue-sheet-grip{width:40px;height:4px;border-radius:2px;background:var(--hairline);margin:4px auto 10px}
.venue-sheet-close{position:absolute;top:12px;right:14px;font:inherit;font-size:13px;border:0;background:none;color:var(--secondary);padding:6px}
.venue-sheet-name{margin:0 64px 2px 0;font-size:20px;line-height:1.3}
.venue-actions{display:grid;grid-template-columns:1fr;gap:0;margin-top:8px}
.venue-actions>*{text-align:center;text-decoration:none;display:flex;align-items:center;justify-content:center;min-height:48px;white-space:normal;margin:0}
.venue-actions .venue-map-link{justify-self:end;min-height:44px;padding:4px 0 4px 12px;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--secondary);font-size:12px;font-weight:400;text-decoration:underline;text-underline-offset:3px}
.venue-toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(90%,440px);margin:0;padding:14px 18px;border-radius:15px;background:var(--brand);color:var(--surface);font-size:14px;box-shadow:0 4px 15px #0002;text-align:center}
.venue-toast[hidden]{display:none}
/* 2617: real-photo discovery; retain CaLFi tokens, avoid fake imagery or unsupported delivery promises. */
.venue-list{gap:16px;background:transparent;border-radius:0;overflow:visible;align-items:start}
.venue-card{min-width:0;overflow:hidden;border-radius:18px;background:var(--surface)}
.venue-card .venue-row{align-items:flex-start;gap:8px;padding:16px 16px 10px}
.venue-card .venue-row-body{gap:6px;flex:1}
.venue-card .venue-name{font-size:17px;line-height:1.35;white-space:normal;text-wrap:balance}
.venue-card .venue-name-area{display:block;margin-top:3px;font-size:12px;font-weight:400;line-height:1.4}
.venue-card-arrow{align-self:center;color:var(--brand);font-size:24px;font-weight:400}
.venue-menu-kicker{font-size:10px;color:var(--secondary);letter-spacing:.03em;margin-top:5px}
.venue-menu-hook{font-size:14px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.venue-card .venue-tags{margin-top:5px;gap:5px}
.venue-card .venue-tag{background:var(--soft);border:0;padding:3px 7px;border-radius:5px;font-size:10px}
.venue-card .venue-tag-pick{background:transparent;padding-left:0;font-weight:600}
.venue-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 16px 15px}
.venue-card-detail,.venue-card-grab{font:inherit;font-size:12px;font-weight:600;min-height:44px;border-radius:999px;padding:8px 14px;border:0;cursor:pointer}
.venue-card-detail{background:transparent;color:var(--secondary);padding-left:0;text-align:left}
.venue-card-grab{background:var(--brand);color:var(--paper);flex-shrink:0}
.venue-card-notice{font-size:12px;line-height:1.5;margin:0;padding:0 16px 14px;color:var(--secondary)}
.venue-card .venue-more{padding:8px 16px 14px;background:transparent;min-height:44px}
.venue-card .venue-branches{background:var(--soft)}
.venue-quick-picks{display:flex;gap:8px;overflow-x:auto;margin:2px 0 14px;padding-bottom:3px;scrollbar-width:none}
.venue-quick-pick{flex:none;min-height:44px;border:0;border-radius:12px;background:var(--soft);color:var(--text);font:inherit;font-size:12px;font-weight:600;padding:10px 14px;cursor:pointer}
.venue-quick-pick[aria-pressed=true]{background:var(--brand);color:var(--paper)}
.venue-dir-discover .venue-food-search{margin:8px 0 10px;align-items:center}
.venue-dir-discover .venue-food-search input{height:44px;min-height:44px;max-height:44px;box-sizing:border-box;border-radius:999px;padding:10px 14px;margin:0;font-size:16px;line-height:1.2}
.venue-dir-discover .venue-food-search button{height:44px;min-height:44px;margin:0;padding:8px 14px;font-size:12px}
.venue-filter-panel{margin:0 0 10px;border:0;background:transparent;padding:0}
.venue-filter-panel summary{cursor:pointer;min-height:40px;display:flex;align-items:center;color:var(--secondary);font-size:12px;text-decoration:underline;text-underline-offset:4px}
.venue-filter-panel summary::after{content:'＋';margin-left:auto;font-size:18px;text-decoration:none}.venue-filter-panel[open] summary::after{content:'−'}
.venue-filter-panel select{width:100%;box-sizing:border-box;min-height:44px;font:inherit;font-size:16px;border:1px solid var(--hairline);border-radius:12px;color:var(--text);background:var(--surface);margin:6px 0 10px;padding:8px 12px}
.venue-filter-panel[open]{padding-bottom:10px;border-bottom:1px solid var(--hairline)}
.venue-card button:focus-visible,.venue-quick-pick:focus-visible{outline:2px solid var(--brand);outline-offset:-3px}
.venue-google-photo{margin:0;background:var(--surface);color:var(--text)}
.venue-store-photo{display:block;width:100%;height:190px;object-fit:cover;background:var(--soft)}
.venue-google-photo figcaption{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;padding:8px 12px;font-size:12px;line-height:1.4;border-bottom:1px solid var(--hairline)}
.venue-google-photo a,.venue-google-details a{color:var(--secondary);text-underline-offset:3px;overflow-wrap:anywhere}
.venue-google-credit{font-family:Arial,sans-serif;font-style:normal;font-weight:400;font-size:12px;letter-spacing:normal;white-space:nowrap;color:#5e5e5e}
.venue-google-author{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%}
.venue-google-author img{width:24px;height:24px;border-radius:50%;object-fit:cover}
.venue-google-details{margin:18px 0;padding:16px;background:var(--surface);border:1px solid var(--hairline);border-radius:16px;color:var(--text);font-size:13px;line-height:1.6}
.venue-google-details h3{font-size:16px;margin:10px 0}
.venue-google-rating{display:flex;align-items:baseline;gap:4px}.venue-google-rating strong{font-size:24px}
.venue-google-hours summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--brand)}
.venue-google-hours p{font-size:12px;margin:2px 0}
.venue-google-review{display:grid;gap:6px;padding:16px 0;border-top:1px solid var(--hairline);margin-top:12px}
.venue-review-text{white-space:pre-wrap;overflow-wrap:anywhere;margin:2px 0;line-height:1.7}
.venue-live-info>.venue-google-photo{border-radius:14px;overflow:hidden;margin-top:14px}
.venue-live-info .venue-store-photo{height:auto;max-height:340px;object-fit:contain}
@media(min-width:680px){.venue-list{grid-template-columns:repeat(2,minmax(0,1fr))}.venue-store-photo{height:190px}}
/* Records2563: direct methods; one date range for rows, totals and CSV. */
.rec-way{min-height:108px;gap:12px;padding:14px}.rec-way-link{min-height:44px}
.record-periods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(60px,1.2fr);gap:5px;margin:0 0 12px;padding:4px;border-radius:16px;background:var(--soft)}
.record-periods button{border:0;border-radius:12px;min-height:44px;padding:8px 3px;background:transparent;font-size:12px;line-height:1.3;font-weight:500;color:var(--secondary)}
.record-periods button[aria-pressed=true]{background:var(--surface);color:var(--brand);font-weight:650;box-shadow:0 1px 4px #0000000a}
.record-periods button:focus-visible,.rec-way:focus-visible,.rec-way-link:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.rec-journal .record-tools{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}.rec-journal .record-tools>.field{grid-column:1;grid-row:1;min-width:0}
.record-more-periods{grid-column:2;grid-row:1;position:relative;font-size:12px;color:var(--secondary)}.record-more-periods>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:4px}.record-more-periods[open]>.field{position:absolute;right:0;top:44px;z-index:3;width:170px;padding:12px;background:var(--surface);border:1px solid var(--hairline);border-radius:14px;font-size:12px}
.record-custom-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;margin:0 0 12px;border:1px solid var(--hairline);border-radius:16px;background:var(--surface)}.record-custom-range .field{font-size:12px;margin:0;min-width:0}.record-custom-range input{min-width:0;width:100%;min-height:44px;font-size:16px}.record-custom-range p{grid-column:1/-1;margin:0}.record-custom-range button{min-height:44px;font-size:12px}
.rec-journal .insight-summary.period-total{padding:18px;margin-bottom:18px;background:var(--soft);font-variant-numeric:tabular-nums}.period-total p{margin:0}.period-total-title{font-size:12px;font-weight:600;color:var(--secondary)}
.period-total-lead{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:8px 0 14px}.period-total-kcal{display:flex;align-items:baseline;gap:7px}.period-total-kcal strong{font-size:34px;letter-spacing:-.04em;line-height:1.2;color:var(--brand);font-weight:650}.period-total-kcal>span{font-size:13px;color:var(--secondary)}.period-total-count{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:flex-end;gap:4px;font-size:12px}.period-total-count strong{font-size:21px;font-weight:600}.period-total-count small{width:100%;text-align:right;color:var(--secondary);font-size:11px}
.period-nutrients{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-top:1px solid var(--hairline);padding:12px 0 0;margin:0 0 12px}.period-nutrients dt{font-size:11px;color:var(--secondary)}.period-nutrients dd{margin:3px 0 0;font-size:15px;font-weight:600}.period-nutrients small{font-size:10px;color:var(--secondary)}.period-total .period-total-note{font-size:11px;line-height:1.6;color:var(--secondary)}
.ql-mode-back{display:inline-flex;align-items:center;min-height:44px;border:0;background:transparent;color:var(--brand);font-size:13px;padding:6px 0;text-decoration:underline;text-underline-offset:4px}.ql-mode-help{font-size:13px;line-height:1.7;color:var(--secondary);margin:2px 0 8px}#meal-log-sheet [hidden],.record-custom-range[hidden]{display:none!important}
.ql-sheet[data-mode=voice] #meal-voice-controls{order:0}.ql-sheet[data-mode=voice] #meal-estimate-submit{order:1}
@media(max-width:380px){.record-custom-range>.field{grid-column:1/-1}}
html:is([lang=en],[lang=th],[lang=ru]) .record-periods{display:flex;flex-wrap:wrap}html:is([lang=en],[lang=th],[lang=ru]) .record-periods button{flex:1 1 80px}

/* 2571: history values remain unobscured; trainer consultation is inline. */
.app[data-screen=records][data-record-kind=training] .ai-fab{opacity:0;pointer-events:none}

/* 2626: rating + total reviews are visible with the exact branch thumbnail. */
.venue-card-rating{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;font-size:13px;line-height:1.5;color:var(--secondary);margin:2px 0}
.venue-card-rating strong{font-weight:600;color:var(--text)}
.venue-card-rating .venue-google-credit{margin-left:3px}

/* Owner 2626: compact 80px square in the name row; large photos stay in store details. */
.venue-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;width:100%}
.venue-card-identity{flex:1;min-width:0}
.venue-card-thumb{display:block;flex:0 0 80px;width:80px;height:80px;border-radius:12px;overflow:hidden;background:var(--soft)}
.venue-card-thumb .venue-store-photo{display:block;width:80px;height:80px;object-fit:cover;aspect-ratio:1}
.venue-card-photo-credit{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0 16px;padding:2px 0 6px;font-size:12px;line-height:1.4;color:var(--secondary)}
.venue-card-photo-credit .venue-google-author img{display:none}
.venue-card-photo-credit a{color:var(--secondary);text-underline-offset:3px;overflow-wrap:anywhere}
@media(max-width:350px){.venue-card-thumb,.venue-card-thumb .venue-store-photo{width:72px;height:72px}.venue-card-thumb{flex-basis:72px}.venue-card-heading{gap:10px}}

/* Owner 18:32: store-first detail; menus stay in search/AI evidence, not a tall visible list. */
.venue-google-details>summary{min-height:44px;display:flex;align-items:center;font-size:12px;color:var(--secondary);cursor:pointer}
.venue-google-details>summary::after{content:'＋';margin-left:auto;font-size:17px}
.venue-google-details[open]>summary::after{content:'−'}
.venue-google-details-body:empty{display:none}
.venue-live-info>.venue-google-photo{display:flex;align-items:center;gap:12px;background:transparent}
.venue-live-info>.venue-google-photo .venue-store-photo{width:96px;height:96px;object-fit:cover;flex:none;border-radius:10px}
.venue-live-info>.venue-google-photo figcaption{padding:0;border:0;font-size:11px;min-width:0}
.venue-live-info>.venue-google-photo .venue-google-author img{display:none}
.venue-media-notice{margin-top:8px}

/* 2563: opened period editor must not inherit WebKit date-control intrinsic widths. */
.record-custom-range{grid-template-columns:minmax(0,1fr);max-width:100%;min-width:0;box-sizing:border-box}
.record-custom-range>.gregorian-date{width:100%;min-width:0;max-width:100%;margin:0;padding:0;border:0}
.record-custom-range .gregorian-parts{grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr));gap:8px}
.record-custom-range .gregorian-parts label{min-width:0;max-width:100%;margin:0;gap:4px}
.record-custom-range .gregorian-parts input{display:block;min-width:0;max-width:100%;width:100%;min-height:48px;font-size:16px!important;box-sizing:border-box}
.record-custom-range>button{width:100%;min-width:0;margin:0}.record-custom-range>.text-button{justify-self:start;width:auto}
@media(min-width:680px){.record-custom-range{grid-template-columns:repeat(2,minmax(0,1fr))}.record-custom-range>.gregorian-date{grid-column:auto}}

/* MY BODY: familiar home-scale entry and independently selectable measurement definitions. */
.mine-body-import{color:var(--on-primary,#fff);font-size:14px;min-height:44px;margin-top:10px;text-align:left}
.mine-body-metrics{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0}
.mine-body-metrics button{flex:1 1 auto;min-height:44px;padding:8px 12px;border:1px solid var(--line,#d8dfd2);border-radius:12px;background:transparent;color:inherit;font:inherit;font-size:14px}
.mine-body-metrics button[aria-pressed="true"]{background:var(--primary,#354f41);color:#fff}
.mine-trend .mine-card-action{display:block;min-height:44px;margin-top:12px}

/* Explanations are available on demand; missing values and safety notices stay visible. */
.mine-energy-details>summary,.mine-trend-details>summary,.mine-cal-details>summary,.mine-cal-method>summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;font-size:14px;font-weight:600;line-height:1.5}
.mine-energy-details>summary:focus-visible,.mine-trend-details>summary:focus-visible,.mine-cal-details>summary:focus-visible,.mine-cal-method>summary:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.mine-cal-method{padding-top:12px;padding-bottom:12px}
.meal-reuse{padding:24px;max-width:560px;width:calc(100% - 24px);box-sizing:border-box}
.meal-reuse .ql-head{padding:0 0 16px;align-items:center}.meal-reuse h2{margin:0;font-size:1.2rem;text-wrap:balance}
.meal-reuse input{font-size:16px;min-height:48px;box-sizing:border-box;min-width:0;max-width:100%}
.meal-reuse>input,.reuse-builder input{width:100%;border:1px solid var(--line,#d9dfd4);border-radius:14px;padding:12px;background:var(--surface,#fff)}
.reuse-list{max-height:38dvh;overflow-y:auto;overscroll-behavior:contain}.reuse-row{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line,#d9dfd4)}
.reuse-row>input{flex:0 0 24px;width:24px;min-height:44px;margin:0 4px}.reuse-single{display:flex;align-items:center;gap:12px;flex:1;min-width:0;min-height:80px;background:transparent;border:0;text-align:start;padding:12px 0}
.reuse-copy{min-width:0}.reuse-single b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font-size:15px;line-height:1.5}.reuse-single small{display:block;overflow-wrap:anywhere;margin-top:4px;font-size:12px;color:var(--secondary,#657066)}
.reuse-single small span{display:block}.reuse-single .reuse-portion{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reuse-builder{padding-top:16px}.reuse-builder label{display:grid;gap:6px}.reuse-amounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.reuse-builder>.primary{width:100%;min-height:48px}
.meal-reuse :focus-visible{outline:2px solid var(--ink,#345548);outline-offset:3px}

.meal-reuse .ql-head{position:sticky;top:-24px;z-index:1;background:var(--surface,#fff);padding:12px 0}.meal-reuse .ql-head>button{min-width:44px;min-height:44px}.reuse-check{display:grid;place-items:center;flex:0 0 44px;min-height:44px}.reuse-check input{width:24px;height:24px;min-height:24px;margin:0;accent-color:var(--text,#345548)}.reuse-selected{overflow-wrap:anywhere}
#report .progress-controls,#report .progress-navigation{display:flex;gap:8px;align-items:center;margin:12px 0}#report .progress-controls>button{flex:1;min-height:48px;border:1px solid var(--hairline);background:var(--surface);color:var(--text);border-radius:14px;font:inherit}#report .progress-controls>button[aria-pressed="true"],#report .progress-tabs button[aria-pressed="true"]{background:var(--brand);color:var(--on-primary,#fff)}#report .progress-navigation{justify-content:space-between}#report .progress-navigation>button{min-height:44px;max-width:34%;padding:8px 10px;font:inherit;border-radius:12px;border:1px solid var(--hairline);background:var(--surface);color:var(--text)}#report .progress-navigation>button:disabled{opacity:.4}#report .progress-review{margin:20px 0 28px}#report .progress-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}#report .progress-heading h2{margin:0;font-size:22px}#report .progress-heading .helper{font-size:12px}#report .progress-balance{padding:20px 0 16px;border-bottom:1px solid var(--hairline)}#report .progress-balance>span,#report .progress-balance>strong,#report .progress-balance>small{display:block}#report .progress-balance>strong{font-size:clamp(30px,7vw,42px);line-height:1.25;margin:8px 0;color:var(--brand);font-weight:650;font-variant-numeric:tabular-nums}#report .progress-balance>small{font-size:14px}#report .progress-balance .helper{margin-bottom:0}#report .progress-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px;margin:22px 0}#report .progress-summary>div{min-width:0}#report .progress-summary dt{font-size:13px;color:var(--muted)}#report .progress-summary dd{margin:5px 0 0;font-size:21px;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}#report .progress-tabs{display:flex;gap:6px;overflow-x:auto;padding:6px 0 12px;overscroll-behavior:contain}#report .progress-tabs button{flex:0 0 auto;min-height:44px;padding:8px 12px;border:1px solid var(--hairline);border-radius:999px;font:inherit;font-size:14px;background:var(--surface);color:var(--text)}#report .progress-plot{display:block;width:100%;height:auto;max-height:270px;background:var(--surface);border-radius:16px}#report .progress-plot text{fill:var(--muted);font-size:14px}#report .progress-zero{stroke:var(--outline);stroke-width:1}#report .progress-mark{fill:var(--brand)}#report .progress-mark.is-partial{fill-opacity:.35;stroke:var(--brand);stroke-dasharray:2 2}#report .progress-empty{padding:28px 16px;background:var(--soft);border-radius:16px}#report .progress-feedback{margin-top:24px}#report .progress-feedback h2{font-size:20px;margin:0 0 12px}#report .progress-advice{font-size:15px;line-height:1.8;margin:10px 0}#report .progress-advice.attention{font-weight:600}#report .progress-nutrients{margin:24px 0}#report .progress-nutrients h3{font-size:17px}#report .progress-nutrients dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}#report .progress-nutrients dt{font-size:12px}#report .progress-nutrients dd{margin:8px 0 6px;font-size:20px;font-weight:600;overflow-wrap:anywhere}#report .progress-nutrients small{display:block;font-size:12px;margin-top:4px}#report .progress-detail{margin:14px 0;font-size:14px}#report .progress-detail summary{min-height:44px;display:flex;align-items:center;cursor:pointer;text-decoration:underline;text-underline-offset:4px}#report .progress-detail table{width:100%;border-collapse:collapse}#report .progress-detail th,#report .progress-detail td{padding:8px 4px;border-bottom:1px solid var(--hairline);text-align:start}#report .progress-review .helper{font-size:13px;line-height:1.7}#report .progress-review :focus-visible,#report .progress-controls :focus-visible,#report .progress-navigation :focus-visible{outline:2px solid var(--text);outline-offset:3px}

#report .progress-heading h2{margin:0}#report .progress-heading .helper{margin:0}#report .progress-review .helper{margin:6px 0;font-size:12px}#report .progress-balance{padding-top:12px}#report .progress-balance>span{font-size:13px}#report .progress-feedback h2{margin:12px 0}#report .progress-feedback .progress-advice{margin:10px 0}#report .progress-balance>span b{margin-left:8px}

#report .progress-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;overflow:visible}#report .progress-tabs button{min-width:44px;padding:7px 4px;font-size:13px;overflow-wrap:anywhere;border-radius:12px}#report .progress-plot-label{font-size:16px;margin:4px 0 8px}#report .progress-summary small{display:block;font-size:12px;margin-top:5px}

#report .progress-body-field{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;margin:8px 0 14px}#report .progress-body-field select{min-height:44px;max-width:65%;font-size:16px;padding:8px;border:1px solid var(--hairline);border-radius:12px;background:var(--surface);color:var(--text)}

/* Semantic balance colors are independent of the six decorative brand palettes. */
:root{--balance-deficit:#20656B;--balance-surplus:#9B4D24;--balance-deficit-soft:#E6F1F0;--balance-surplus-soft:#F8EBE2}
[data-balance-tone=deficit]{--balance-ink:var(--balance-deficit);--balance-soft:var(--balance-deficit-soft)}
[data-balance-tone=surplus]{--balance-ink:var(--balance-surplus);--balance-soft:var(--balance-surplus-soft)}
[data-balance-tone=neutral],[data-balance-tone=unknown]{--balance-ink:var(--text);--balance-soft:var(--soft)}
#report .progress-balance>strong,#report .progress-summary [data-balance-tone] dd,.record-energy-grid [data-balance-tone] dd{color:var(--balance-ink,var(--text))}
#report .progress-balance>span b{display:inline-block;background:var(--balance-soft);color:var(--balance-ink);padding:3px 10px;border-radius:8px;font-size:13px}
#report .progress-balance progress{display:block;width:100%;height:6px;margin:12px 0 4px;accent-color:var(--brand)}
#report .progress-legend{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:4px 0 12px;font-size:12px}
#report .progress-legend span{display:flex;align-items:center;gap:6px;color:var(--balance-ink);font-weight:600}
#report .progress-legend span::before{content:'';width:10px;height:10px;border-radius:3px;background:var(--balance-ink)}
#report .progress-legend small{color:var(--muted)}
#report .progress-mark[data-balance-tone]{fill:var(--balance-ink)}
#report .progress-mark.is-selected{stroke:var(--text);stroke-width:2;paint-order:stroke fill}
#report .progress-inspect{margin:12px 0;padding:12px 14px;background:var(--surface);border:1px solid var(--hairline);border-radius:14px}
#report .progress-inspect p{display:flex;justify-content:space-between;gap:12px;margin:0;font-size:13px;font-variant-numeric:tabular-nums}
#report .progress-inspect strong{color:var(--balance-ink);font-size:16px}
#report .progress-inspect input[type=range]{display:block;width:100%;min-width:0;height:44px;padding:0;margin:2px 0;accent-color:var(--brand);touch-action:pan-y}
#report .progress-inspect button{min-height:44px;width:100%;text-align:center;font-size:14px}
#report .progress-detail td[data-balance-tone]{color:var(--balance-ink);font-weight:600}
#report .progress-log-meal{display:block;width:100%;min-height:48px;padding:12px;background:var(--brand);color:var(--on-primary,#fff);border:0;border-radius:14px;font:inherit;font-weight:600;margin:16px 0}
.mine-bars .is-deficit{fill:var(--balance-deficit)}.mine-bars .is-surplus{fill:var(--balance-surplus)}
.mine-bars-legend .is-deficit::before{background:var(--balance-deficit)}.mine-bars-legend .is-surplus::before{background:var(--balance-surplus)}
.mine-days-table td[data-tone=deficit]{color:var(--balance-deficit)}.mine-days-table td[data-tone=surplus]{color:var(--balance-surplus)}
/* Owner-adopted prototype; accounting is not a health grade. */
[data-balance-tone]{--balance-ink:var(--brand);--balance-soft:var(--soft)}
#report .progress-plot{stroke:none;stroke-width:0;fill:none}
#report .progress-plot text{stroke:none;stroke-width:0;fill:var(--muted);font:400 13px/1.4 -apple-system,BlinkMacSystemFont,sans-serif;paint-order:normal}
#report .progress-plot .progress-zero{fill:none;stroke:var(--outline);stroke-width:1}
#report .progress-plot .progress-mark{stroke:none;fill:var(--brand)}
#report .progress-plot .progress-mark.is-selected{stroke:var(--brand);stroke-width:1}
#report .progress-day-nav{display:flex;justify-content:space-between;gap:16px}
#report .progress-day-nav button,#report .progress-detail td button{min-height:44px;padding:8px 12px}
#report .progress-inspect{background:var(--soft);border-radius:18px;padding:18px;margin-top:16px}
#report .progress-controls{margin-top:18px;flex-wrap:wrap}
#report .progress-navigation>button{min-height:44px}
#report-period{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
#report h1,#home h1{font-family:inherit;font-weight:700;letter-spacing:0}
#today-hero.today-log-card{background:var(--soft);color:var(--ink);padding:20px;border-radius:22px;box-shadow:none;overflow:visible}
#today-hero.today-log-card:before,#today-hero.today-log-card:after{display:none}
#today-hero .today-hero-top{display:none}
#today-hero .today-overview{margin:0;padding:0;border:0;display:grid;grid-template-columns:1fr auto;gap:8px 16px}
#today-hero .today-overview>div{padding:0;border:0;color:inherit}
#today-hero .today-overview>div:has(#home-energy-total){grid-row:1;grid-column:1/-1}
#today-hero #home-energy-total{font:700 clamp(32px,8vw,46px)/1.2 -apple-system,BlinkMacSystemFont,sans-serif;color:var(--brand)}
#today-hero .calorie-target{grid-column:1/-1}
#today-hero .today-overview strong{color:var(--brand)}
#today-hero #home-complete-day{width:100%;margin:16px 0;min-height:48px}
#today-hero .today-balance{background:transparent;border:0;border-top:1px solid var(--hairline);border-radius:0;color:var(--ink);padding:14px 0 0;margin-top:0}
#today-hero .today-balance-value,#today-hero .today-balance-main,#today-hero .today-energy-io b{color:var(--brand)}
#today-hero .today-balance-sub,#today-hero .today-balance-more,#today-hero .today-energy-io small,#today-hero .energy-guidance{color:var(--muted)}
#home .today-week{margin:8px 0 18px;padding:0;border:0}
#home .today-week .today-kicker{display:none}
#home .today-week-grid{gap:8px;margin:14px 0 8px}
#home .today-day{border:0;border-radius:0;background:none;color:var(--ink);padding:6px 0;min-width:0}
#home .today-day-n,#home .today-day-check{display:grid;place-items:center;width:32px;height:32px;margin:4px auto;border:1px dashed var(--line);border-radius:50%;font-size:14px}
#home .today-day.is-complete .today-day-n{display:none}
#home .today-day-check{background:var(--brand);color:var(--paper);border:0}
#home .today-day.is-today .today-day-n{outline:1px solid var(--brand);outline-offset:3px}
#home .today-week-summary{font-size:13px;gap:8px}
#home-incomplete{border-block:1px solid var(--line);padding:12px 0;margin-top:14px;font-size:14px}
#home-incomplete summary{min-height:44px;cursor:pointer;font-weight:600}
#home-incomplete button{display:block;min-height:44px;text-align:start;width:100%;border-top:1px solid var(--line)}
#home .today-quick{margin:10px 0 16px}
.completion-sheet,.local-report{padding:24px;max-width:580px;width:calc(100% - 24px);max-height:85dvh;overflow:auto;overscroll-behavior:contain;border:0;border-radius:24px;background:var(--paper);color:var(--ink)}
.completion-sheet h2,.local-report h2{font:700 22px/1.5 -apple-system,BlinkMacSystemFont,sans-serif;margin:0 0 14px}
.completion-sheet ul{max-height:26dvh;overflow:auto;padding-inline-start:20px}
.completion-agree,.local-report fieldset label{display:flex;gap:12px;align-items:center;min-height:48px;padding:8px 0}
.completion-agree input,.local-report input[type=checkbox]{width:22px;height:22px;flex-shrink:0;accent-color:var(--brand)}
.completion-sheet button,.local-report button,.local-report a{min-height:44px;margin:8px 0;max-width:100%;white-space:normal}
.local-report fieldset{border:1px solid var(--line);border-radius:16px;margin:16px 0;padding:12px 16px;min-width:0}
.local-report select,.local-report textarea{width:100%;min-height:48px;max-width:100%;font-size:16px}
.local-report-preview{max-height:40dvh;overflow:auto;margin:16px 0;border-block:1px solid var(--line);padding:12px 0}
.local-report-preview:empty{display:none}
.local-report-preview h3{margin:16px 0 6px;font-weight:700}
.local-report-preview p{overflow-wrap:anywhere;font-size:14px;margin:6px 0}
.local-report a{display:flex;align-items:center;padding:10px 16px}
@media(prefers-reduced-motion:reduce){.today-day,.completion-sheet,.local-report{animation:none!important;transition:none!important}}
@media(min-width:768px){#home .home-primary-column>.today-week{max-width:none}.completion-sheet,.local-report{margin:auto}}
#today-hero .today-overview span,#today-hero .today-overview p,#today-hero .today-overview small,#today-hero .today-overview strong{color:var(--brand)!important}
#home .page-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}
#home .page-heading>.today-text-link{font-size:14px;white-space:nowrap;min-height:44px;padding:6px 0}
#today-hero .today-training-stat,#today-hero .today-overview>div:has(#home-meal-total),#today-hero #home-energy-note{display:none}
#today-hero .today-overview>div:has(#home-energy-total){display:flex;flex-direction:column;align-items:start}
#today-hero #home-energy-total small{font-size:15px!important}
#home .today-week .today-title{font-size:15px}
#home .today-week #report-open{font-size:13px;margin:4px 0;min-height:44px}
#home #today-hero .today-overview *,#home #today-hero .today-balance *{color:var(--brand)!important}
#home #today-hero #home-energy-total{font-size:42px!important;line-height:1.2!important;font-family:-apple-system,BlinkMacSystemFont,sans-serif!important;font-weight:700!important}
#home #today-hero #home-energy-total small{font-size:15px!important}
/* TOP and RECORD keep the personal AI entry visible. */
.app[data-screen=home] .ai-fab.is-yielding,.app[data-screen=report] .ai-fab.is-yielding{opacity:1;pointer-events:auto;transform:none}
#home .page-heading{margin:8px 0 14px}
#home .page-heading h1{font-size:26px;margin:0}
#home .page-heading .greeting{margin:0}
#home .today-week-grid{margin:8px 0 4px}
#home .today-week-grid .today-day{padding:0;min-height:60px}
#home .today-week-summary{margin:4px 0}
#home #home-incomplete{padding:4px 0;margin:8px 0}
#home #home-incomplete summary{min-height:36px;padding:4px 0}
#home #today-hero #home-target-caption{font-size:13px;line-height:1.5}
@media(max-width:360px){#home #today-hero{padding:16px}#home #today-hero #home-complete-day{margin-block:8px}#home .today-week-grid .today-day{min-height:52px}#home #home-incomplete summary{font-size:12px}}
/* Keep My Data's existing accounting chart consistent with Today and review. */
:root{--balance-deficit:var(--brand);--balance-surplus:var(--brand);--balance-deficit-soft:var(--soft);--balance-surplus-soft:var(--soft)}
.mine-cal-hero[data-tone] .mine-cal-tag,.today-balance[data-tone] .today-balance-value em{background:var(--soft);color:var(--brand)}
.mine-days-table td[data-tone=deficit],.mine-days-table td[data-tone=surplus]{color:var(--brand)}
.mine-bars text{stroke:none;stroke-width:0}
#report .report-page-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}
#report .report-page-actions button{min-height:44px;margin:0}

/* CaLFi file preview: same brand surfaces and hierarchy as the app, no paragraph dump. */
.local-report-preview{max-height:60dvh;padding:0;border:1px solid var(--line);border-radius:20px;background:#F8F7F1;color:#354F41}
.report-preview-cover{padding:18px;background:#E9EEE2}.report-preview-cover>img{width:106px;height:auto;display:block}.report-preview-cover h3{font-size:20px;margin:8px 0}.report-preview-cover p{font-size:12px}
.report-preview-body{padding:14px}.report-preview-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.report-preview-stats>div{background:white;border-radius:12px;padding:10px;min-width:0}.report-preview-stats small,.report-preview-stats strong{display:block;font-variant-numeric:tabular-nums}.report-preview-stats strong{font-size:20px}.report-preview-stats small{font-size:10px}
.report-preview-day{margin-top:12px;border-top:1px solid #DAE0D5;padding-top:12px}.report-preview-day>summary{font-size:13px;min-height:44px;cursor:pointer}.report-preview-meal{display:flex;gap:10px;background:white;border-radius:12px;padding:9px;margin-bottom:8px}.report-preview-meal>img,.report-preview-no-photo{width:78px;height:78px;object-fit:cover;border-radius:8px;flex:none}.report-preview-no-photo{display:grid;place-items:center;font-size:11px;background:#E9EEE2}.report-preview-meal>div{min-width:0}.report-preview-meal b,.report-preview-meal small,.report-preview-meal strong{display:block;overflow-wrap:anywhere}.report-preview-meal b{font-size:12px}.report-preview-meal small{font-size:11px}.report-preview-meal strong{font-size:16px}
/* 11/2 Owner: bright deficit / dark surplus encodes arithmetic only, never a health grade. */
:root{--balance-deficit:#507747;--balance-surplus:#354F41;--balance-deficit-soft:#DCEACC;--balance-surplus-soft:#354F41}
[data-balance-tone=deficit]{--balance-ink:#354F41;--balance-soft:#DCEACC}
[data-balance-tone=surplus]{--balance-ink:#354F41;--balance-soft:#DCE3DA}
#report .progress-mark[data-balance-tone=deficit]{fill:#ACC99A;stroke:#507747;stroke-width:.7}
#report .progress-mark[data-balance-tone=surplus]{fill:#354F41}
#report .progress-balance{padding:20px;background:var(--soft);border:0;border-radius:22px;display:grid;grid-template-columns:1fr auto;gap:8px 12px}
#report .progress-balance>strong{grid-column:1/-1;font-size:clamp(28px,7vw,42px);line-height:1.2;letter-spacing:0}
#report .progress-balance>span{grid-column:1/-1;font-size:12px}
#report .progress-balance>span b{font-size:12px;margin-left:8px;font-weight:500}
#report .progress-balance>small{font-size:11px;margin:0}
#report .progress-balance>progress{grid-column:1/-1;height:5px}
#report .progress-balance[data-balance-tone=deficit]{background:#DCEACC;color:#354F41}
#report .progress-balance[data-balance-tone=surplus]{background:#354F41;color:#fff}
#report .progress-balance[data-balance-tone=surplus]>strong,#report .progress-balance[data-balance-tone=surplus]>small{color:#fff}
#report .progress-balance>p{margin:0}
#report .progress-context{margin-top:8px}
#report .progress-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;border-radius:14px;background:var(--soft);padding:4px;margin:20px 0 12px;overflow:visible}
#report .progress-tabs button{padding:8px 3px;min-width:0;min-height:44px;border-radius:10px;font-size:13px;white-space:normal}
#report .progress-tabs button[aria-pressed=true]{background:var(--brand);color:var(--paper)}
#report .progress-inspect{padding:14px;margin:8px 0 20px}.progress-inspect>p{margin:0 0 8px}.progress-inspect .helper{font-size:12px}.progress-inspect input{min-height:28px}
#report .progress-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#report .progress-summary dd{font-size:22px}
#report .progress-nutrients>dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#report .progress-nutrients>dl>div{background:var(--soft);padding:12px;border-radius:14px;min-width:0}#report .progress-nutrients dd{font-size:20px;margin:5px 0}#report .progress-nutrients dt,#report .progress-nutrients small{font-size:11px}
#report .progress-nutrient-field{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;margin:10px 0}#report .progress-nutrient-field select{font:inherit;min-height:44px;max-width:70%}
#report .weekly-days{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:14px;margin:16px 0}#report .weekly-days>summary{min-height:44px;font-size:17px;font-weight:600;cursor:pointer;padding:10px 0}
#report .weekly-record-group h3{font-size:16px;margin:14px 0 8px}#report .weekly-record-group>.helper{font-size:12px;margin:0 0 10px}#report .record-energy{padding:14px;margin:12px 0}
.record-energy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.record-energy-grid>div{padding:10px;min-width:0}.record-energy-grid>div:last-child{grid-column:1/-1;border-radius:14px;background:var(--balance-soft,var(--soft))}.record-energy-grid dt{font-size:11px}.record-energy-grid dd{font-size:24px;line-height:1.3;margin:6px 0}.record-energy-grid dd small{font-size:12px}
.record-energy-grid>div[data-balance-tone=surplus]{background:#354F41;color:#fff}.record-energy-grid>div[data-balance-tone=surplus] dd,.record-energy-grid>div[data-balance-tone=surplus] dt{color:#fff}
.record-energy>.record-energy-basis{font-size:12px;margin:10px 0}.record-energy-head span{font-size:10px}.record-energy .energy-next{font-size:13px;min-height:44px;margin:12px 0}
.progress-detail{border-top:1px solid var(--line);padding:8px 0;margin:8px 0}.progress-detail>summary{min-height:44px;display:list-item;align-content:center;font-size:13px;cursor:pointer}.progress-detail>p,.progress-detail .helper{font-size:12px}.progress-advice.attention,.record-feedback.attention{padding:12px 14px;border-radius:12px;background:#FFF1DD;color:#68491B;font-size:13px}
.record-action-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0 20px}.record-action-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:60px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--brand);font-size:15px;font-weight:600}.record-action-button:first-child{background:var(--brand);color:var(--paper)}.record-action-button svg{width:24px;height:24px;flex:none}
#today-hero .today-balance[data-balance-tone=deficit]{background:#DCEACC;border-radius:16px;padding:14px}#today-hero .today-balance[data-balance-tone=surplus]{background:#354F41;border-radius:16px;padding:14px;color:white}#today-hero .today-balance[data-balance-tone=surplus] :is(b,span,small,em){color:white}
#today-energy-info{font-size:12px;text-align:left}.today-quick-grid{gap:10px}.today-quick-btn{min-height:64px}
@media(max-width:350px){#report .progress-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}#report .progress-nutrients>dl{grid-template-columns:repeat(2,minmax(0,1fr))}.record-action-button{font-size:13px;gap:6px}}
#report .progress-extras>details{margin-inline:10px}#report .progress-nutrients small{line-height:1.35}#report .progress-nutrients progress{width:100%;height:5px;margin:8px 0 0;accent-color:var(--brand)}#report .progress-nutrients>dl>div{padding:10px}#report .progress-legend [data-balance-tone=deficit]::before{background:#ACC99A;border:1px solid #507747}#report .progress-legend [data-balance-tone=surplus]::before{background:#354F41}
.mine-bars .is-deficit{fill:#ACC99A;stroke:#507747;stroke-width:.7}.mine-bars .is-surplus{fill:#354F41}.mine-bars-legend .is-deficit::before{background:#ACC99A}.mine-bars-legend .is-surplus::before{background:#354F41}.mine-days-table td[data-tone=deficit]{background:#E3EED8;color:#354F41}.mine-days-table td[data-tone=surplus]{background:#354F41;color:white}
#report .progress-inspect>p[data-balance-tone=deficit]{padding:10px;border-radius:12px;background:#DCEACC;color:#354F41}#report .progress-inspect>p[data-balance-tone=surplus]{padding:10px;border-radius:12px;background:#354F41;color:white}#report .progress-inspect>p[data-balance-tone=surplus] strong,#report .progress-inspect>p[data-balance-tone=surplus] span{color:white}
.report-preview-stats strong{overflow-wrap:anywhere}@media(max-width:380px){.report-preview-stats{grid-template-columns:1fr}.report-preview-stats>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.report-preview-stats strong{font-size:20px}}

/* Contextual task sheets: no stacked dialogs, persistent daily dismissal, 44px controls. */
.guidance-entry{display:block;margin:8px 0 12px auto;min-height:44px;font-size:13px}.guidance-entry[hidden]{display:none}
.guidance-sheet{padding:24px;max-height:85dvh;overflow-y:auto;max-width:520px}.guidance-head{display:flex;align-items:center;justify-content:space-between;position:relative;padding-top:12px}.guidance-head .sheet-grab{position:absolute;top:-12px;left:calc(50% - 22px)}.guidance-head h2{font-size:18px;margin:0}.guidance-head .ql-close{font-size:12px;min-width:48px;min-height:44px}.guidance-task{padding:18px 0;border-bottom:1px solid var(--line,#DAE0D5)}.guidance-task h3{font-size:22px;line-height:1.4;margin:0 0 10px}.guidance-task p{font-size:15px;line-height:1.7;margin:0 0 18px}.guidance-task button{display:block;min-height:48px;width:100%;margin-top:8px}.guidance-later{display:block;min-height:44px;margin:12px auto 0}.report-preview-meal>img,.report-preview-no-photo{width:56px;height:56px}.report-preview-day .report-nutrients{font-size:12px;color:var(--muted)}

.report-share-button{display:block;min-height:48px;margin:12px 0;padding:12px 18px;font-weight:700}.today-share-entry{display:block;min-height:44px;margin:12px 0;font-size:14px}.report-preview-name{font-size:22px!important;font-weight:700;overflow-wrap:anywhere}.report-preview-purpose{font-weight:600;overflow-wrap:anywhere}.local-report>label{display:grid;gap:6px;margin:14px 0;font-weight:600}.local-report>label>input{width:100%;box-sizing:border-box;min-height:48px;font-size:16px}.salt-reference{background:var(--soft);border-radius:16px;padding:16px;margin:14px 0}.salt-reference>strong{font-size:18px}.nutrition-difference{font-weight:600}.report-care-note{font-size:13px;line-height:1.7}
/* The on-device export preview uses the same open, editorial hierarchy as the PDF. */
.local-report-preview{background:#fff;border-color:#DFE6DA;border-radius:16px}.report-preview-cover{background:#EDF3E6;padding:20px}.report-preview-cover h3{font-size:22px;letter-spacing:-.02em}.report-preview-cover .report-preview-name{margin-top:16px;font-size:24px!important}.report-preview-body{padding:18px}.report-preview-stats{gap:0;padding-block:16px;border-block:1px solid #DFE6DA}.report-preview-stats>div{background:transparent;border-radius:0;padding:0 10px}.report-preview-stats>div:first-child{padding-left:0}.report-preview-stats>div+div{border-left:1px solid #DFE6DA}.report-preview-stats strong{font-size:26px;letter-spacing:-.03em}.report-preview-meal{background:transparent;border-radius:0;padding:10px 0;margin:0;border-bottom:1px solid #DFE6DA}.report-preview-meal>img,.report-preview-no-photo{width:42px;height:42px;border-radius:6px}.report-preview-day>summary{font-size:15px;font-weight:600}.report-preview-body .report-care-note{background:#EDF3E6;padding:12px;border-radius:10px}@media(max-width:380px){.report-preview-stats>div{padding:6px 0}.report-preview-stats>div+div{border-left:0}.report-preview-stats strong{font-size:23px}}
/* Category colors identify P/F/C consistently; salt and potassium share an equal neutral surface. */
.nutrition-overview{margin:16px 0;color:var(--ink);min-width:0}.nutrition-overview h3{font-size:18px;margin:0 0 10px}.nutrition-overview>small{display:block;color:var(--muted);font-size:12px;margin-bottom:12px}.pfc-ratio-bar{display:flex;height:10px;border-radius:6px;overflow:hidden;background:#E7ECE4;margin:12px 0 18px}.pfc-ratio-bar>span[data-macro=protein_g]{background:#638673}.pfc-ratio-bar>span[data-macro=fat_g]{background:#AA9C8A}.pfc-ratio-bar>span[data-macro=carbs_g]{background:#91AFC6}.pfc-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.pfc-summary-grid>div{min-width:0;display:grid;align-content:start;gap:5px}.pfc-summary-grid b{font-size:12px;overflow-wrap:anywhere}.pfc-summary-grid [data-macro=protein_g] b{color:#4C6A59}.pfc-summary-grid [data-macro=fat_g] b{color:#756959}.pfc-summary-grid [data-macro=carbs_g] b{color:#4F7089}.pfc-summary-grid strong{font-size:26px;line-height:1.15;font-variant-numeric:tabular-nums;letter-spacing:-.03em}.pfc-summary-grid span{font-size:14px}.pfc-summary-grid small{font-size:11px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}.mineral-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;border-top:1px solid var(--line);padding-top:16px;margin-top:18px}.mineral-summary-grid>div{display:grid;gap:6px;min-width:0}.mineral-summary-grid b{font-size:13px}.mineral-summary-grid strong{font-size:21px;font-variant-numeric:tabular-nums}.mineral-summary-grid small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.nutrition-ratio-method{margin:14px 0}.nutrition-ratio-method summary{min-height:44px;display:flex;align-items:center;font-size:12px;cursor:pointer}.nutrition-ratio-method p{font-size:12px;line-height:1.7;color:var(--muted)}.nutrition-review{background:var(--soft);border-radius:14px;padding:16px;margin-top:16px}.nutrition-review h3{font-size:16px}.nutrition-review small{font-size:11px;color:var(--muted)}.nutrition-review p{font-size:13px;line-height:1.7;margin:10px 0 0}.report-ai-options{margin:20px 0;padding:18px;border:1px solid var(--line);border-radius:16px}.report-ai-options h3{margin:0 0 10px}.report-ai-options button{min-height:48px}.selected-ai-review{padding:16px;border:1px solid var(--line);border-radius:12px;margin:20px 0}.selected-ai-review p{white-space:pre-wrap;overflow-wrap:anywhere}.local-report>label>textarea{width:100%;min-height:180px;font-size:16px;box-sizing:border-box}.salt-reference,.report-preview-body .report-care-note{background:transparent;border:1px solid var(--line);padding:12px;border-radius:12px}.review-export-action{min-height:44px;font-size:12px}@media(max-width:360px){.pfc-summary-grid{gap:8px}.pfc-summary-grid strong{font-size:23px}.pfc-summary-grid b{font-size:11px}.mineral-summary-grid strong{font-size:19px}}

.report-coach-panel{margin:22px 0;padding:20px;border:1px solid #AFBF9D;border-radius:12px;background:#F7F9F3;color:#293B32}.report-coach-panel>small{display:block;color:#647168;font-size:12px;line-height:1.6}.report-coach-panel h3{font-size:20px;line-height:1.4;margin:7px 0 16px}.report-coach-panel p{font-size:15px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}.report-preview-cover h3{font-size:28px;letter-spacing:-.02em;line-height:1.25}

.report-preview-cover{padding:14px 18px}.report-preview-brand{display:flex;align-items:center;gap:14px}.report-preview-cover .report-preview-brand img{width:108px;max-width:43%;margin:0}.report-preview-cover .report-preview-brand h3{font-size:16px;line-height:1.4;letter-spacing:0;margin:0}.report-preview-cover>p{font-size:12px;line-height:1.5;margin:8px 0 0}.report-preview-body>.report-preview-name{font-size:24px;line-height:1.5;margin:0 0 12px}.report-preview-body{font-family:'Noto Sans JP',-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif;color:#293B32;line-height:1.75}.report-preview-body .helper,.report-coach-panel>small{color:#526159}.report-coach-panel p{font-size:16px;line-height:1.85}.report-preview-meal b{font-size:16px}.report-preview-meal small{font-size:13px;color:#526159}
/* Today: registration and the daily numbers share one compact first view. */
#home{--today-gap:12px}#home .home-primary-column,#home .home-secondary-column{gap:var(--today-gap)}#home .home-layout{margin-top:10px}#home .page-heading{margin:8px 0 12px;align-items:center;gap:8px;flex-wrap:wrap}#home .page-heading h1{font-size:23px;line-height:1.25;margin:2px 0}#home #home-date{font-size:12px;line-height:1.4;margin:0}#home #home-greeting{display:none}#home .page-heading .today-text-link{min-height:44px;padding:8px 12px;font-size:13px}#home .page-heading .guidance-entry{width:auto;min-height:36px;padding:5px 9px;margin:0;font-size:11px;border:0;background:transparent;flex:0 0 auto}
#home .today-quick{margin:0;padding:0}#home .today-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}#home .today-quick-btn{display:flex;align-items:center;gap:10px;padding:10px 12px;min-height:56px;border-radius:14px}#home .today-quick-icon{width:30px;height:30px;flex:0 0 30px;padding:0;background:transparent}#home .today-quick-icon svg{width:26px;height:26px}#home .today-quick-label{font-size:16px;line-height:1.2}#home .today-quick-sub{font-size:11px;margin-top:4px}#home .today-quick>.today-link{display:inline-flex;min-height:36px;padding:5px 8px;margin:0 6px 0 0;font-size:12px}#home #report-open{display:none}
#home #today-hero{padding:12px 14px!important;border:1px solid var(--line);border-radius:18px;background:var(--soft);margin:0;display:flex;flex-direction:column;gap:4px}#home #today-hero>.today-hero-top{display:none}#home #today-hero #today-balance{order:-2;width:100%;border:0;padding:10px 12px!important;margin:0!important;border-radius:12px;box-shadow:none}#home #today-hero .today-balance-main{display:flex;align-items:center;justify-content:space-between;gap:10px}#home #today-hero .today-balance-label{font-size:13px!important;line-height:1.35}#home #today-hero .today-balance-value{font-size:27px!important;line-height:1.15!important;white-space:nowrap}#home #today-hero .today-balance-value em{font-size:11px;font-style:normal;margin-left:5px}#home #today-hero .today-energy-io{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:9px 0 0;border:0}#home #today-hero .today-energy-io small{font-size:11px!important;line-height:1.4}#home #today-hero .today-energy-io b{font-size:20px!important;line-height:1.25!important}#home #today-hero .today-balance-status{font-size:11px!important;display:inline-block;margin-top:6px}#home #today-hero .today-balance-more{font-size:11px;margin-top:5px}#home #today-hero #home-complete-day{font-size:12px;min-height:36px;width:auto;margin:0;padding:6px 10px;background:transparent!important;border:1px solid var(--line);color:var(--brand)!important}#home #today-energy-info,#home #today-energy-extra{margin:0;font-size:11px}#home #today-energy-info>summary,#home #today-energy-extra>summary{min-height:30px;line-height:1.5;padding:5px 2px}#home #today-energy-extra:not([open])~.today-overview{display:none}#home #today-energy-extra .today-overview{padding:12px 0;margin:0;gap:10px}#home #today-energy-extra #home-energy-total{font-size:25px!important}
#home #today-nutrition{margin:0;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--paper)}#home .nutrition-compact>h3{font-size:16px;line-height:1.3;margin:0 0 5px}#home .nutrition-compact>small{font-size:11px}#home .nutrition-compact .pfc-ratio-bar{height:8px;margin:9px 0 12px}#home .nutrition-compact .pfc-summary-grid{gap:10px}#home .nutrition-compact .pfc-summary-grid b{font-size:11px;line-height:1.4}#home .nutrition-compact .pfc-summary-grid strong{font-size:22px;line-height:1.2;margin:5px 0}#home .nutrition-compact .pfc-summary-grid small{font-size:11px;line-height:1.5}#home .nutrition-compact progress{height:5px;margin-top:5px}#home .nutrition-compact .mineral-summary-grid{padding-top:9px;margin-top:10px;gap:12px}#home .nutrition-compact .mineral-summary-grid b{font-size:11px}#home .nutrition-compact .mineral-summary-grid strong{font-size:17px;line-height:1.3;margin:2px 0}#home .nutrition-compact .mineral-summary-grid small{font-size:10px;line-height:1.5}#home .nutrition-ratio-method,#home .today-nutrition-analysis{font-size:11px;margin-top:6px}#home .nutrition-ratio-method>summary,#home .today-nutrition-analysis>summary{min-height:30px;line-height:1.5;padding:5px 0}#home .today-care-note,#home .today-nutrition-alert{font-size:11px;line-height:1.5;margin:7px 0 0}#home .today-nutrition-alert{border:1px solid #8C6B42;border-radius:8px;padding:8px;color:var(--ink)}
#home #meal-next{margin:0;padding:10px 12px;border-radius:12px;display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px}#home #meal-next[hidden]{display:none}#home #meal-next h2{font-size:14px;margin:0}#home #meal-next p{font-size:12px;margin:0}#home #meal-next button{font-size:12px;min-height:40px;padding:7px 10px;margin:0}#home #meal-next .section-kicker{display:none}
#home .today-week{margin:0;padding:12px 0}#home .today-week .today-head{margin:0 0 8px}#home .today-week .today-title{font-size:16px;margin:0}#home .today-week .today-kicker{display:none}#home .today-week-grid{display:flex;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;padding:2px 0 6px}#home .today-week-grid .today-day{position:relative;flex:1 0 44px;min-width:44px;min-height:74px;padding:7px 2px;display:flex;flex-direction:column;gap:2px;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:var(--paper)}#home .today-day .today-day-w{font-size:10px;color:var(--muted)}#home .today-day .today-day-n{font-size:18px;font-weight:700;color:var(--ink)}#home .today-day .today-day-check{position:absolute;right:2px;top:1px;font-size:9px;color:var(--brand)}#home .today-day .today-day-dots{min-height:4px;gap:3px}#home .today-day .today-day-kcal{font-size:10px;color:var(--brand);line-height:1.3}#home .today-week-grid .today-day.is-today{border:2px solid var(--brand);color:var(--ink)}#home .today-week-grid .today-day.is-complete{background:var(--soft);color:var(--ink)}#home .today-week-summary{font-size:11px;gap:7px;margin:6px 0}#home #home-incomplete summary{font-size:11px;min-height:32px;padding:6px 0}#today-more{font-size:12px;padding:8px 0}#today-more>summary{min-height:36px;padding:8px 0}#today-more #home-next-card{padding:12px;margin:6px 0}#today-more .today-share-entry{margin:8px 0;min-height:44px}
@media(max-width:600px){.app:has(#home:not([hidden])) .app-header{padding-top:10px;padding-bottom:10px;margin-bottom:8px;min-height:58px}.app:has(#home:not([hidden])) .brand-button [data-theme-logo]{width:136px;max-width:36vw}.app:has(#home:not([hidden])) .brand-symbol{width:30px;height:30px}#home .today-coach,#home .today-docs{margin-block:12px}#home .daily-meals{margin-block:12px}}
#home .today-week #report-open{display:inline-flex;align-items:center;min-height:36px;margin:0;padding:4px 6px;font-size:11px;text-align:right}#home .today-week .today-head{align-items:center;gap:8px}#home #today-more .guidance-entry{font-size:13px;width:auto;min-height:40px;padding:6px 10px}#home #today-hero #today-energy-extra .today-overview{display:grid}#home #today-hero #today-energy-extra #today-energy-info{margin-top:10px}

/* Keep the first-view controls horizontal even under the legacy mobile card rule. */
#home .today-quick-btn{flex-direction:row;justify-content:flex-start;text-align:left;min-height:56px}#home .today-quick-text{min-width:0}#home .today-quick-sub{white-space:normal}#home #today-hero #today-balance{display:grid;grid-template-columns:1fr auto;gap:4px 8px;padding:6px 8px!important}#home #today-hero .today-energy-io{margin:0;padding:5px 0}#home #today-hero .today-balance-status{grid-column:1;margin:0}#home #today-hero .today-balance-more{grid-column:2;margin:0}#home #today-nutrition{margin:0!important;padding:12px 14px!important;border:1px solid var(--line)!important}#home .nutrition-compact{margin:0}#home .today-week-legend{font-size:11px;color:var(--muted);margin:4px 0}
@media(max-width:600px){.app:has(#home:not([hidden])) .brand-button img:not(.brand-symbol){width:136px;height:auto}.app:has(#home:not([hidden])) .app-header{height:auto;min-height:54px}#home .page-heading{margin-top:0}#home .today-quick-label{font-size:15px}#home .today-quick-icon{width:24px;flex-basis:24px}#home .today-quick-btn{padding:9px 10px;gap:7px}}

#home #today-hero #today-balance[data-balance-tone=surplus]{background:#354F41;color:white}#home #today-hero #today-balance[data-balance-tone=surplus] *{color:white!important}#home .nutrition-compact .pfc-summary-grid small{font-size:12px}#home .nutrition-compact .mineral-summary-grid small{font-size:11px}

#home .today-week .today-title{white-space:nowrap;flex-shrink:0}
#home #today-energy-extra>summary,#home #today-energy-info>summary,#home .nutrition-ratio-method>summary,#home .today-nutrition-analysis>summary,#today-more>summary{min-height:44px;display:flex;align-items:center}#home #today-hero #home-complete-day{min-height:44px}
#home #today-energy-extra>summary::before,#home #today-energy-info>summary::before,#home .nutrition-ratio-method>summary::before,#home .today-nutrition-analysis>summary::before,#today-more>summary::before{content:'▸';display:inline-block;margin-right:6px}#home #today-energy-extra[open]>summary::before,#home #today-energy-info[open]>summary::before,#home .nutrition-ratio-method[open]>summary::before,#home .today-nutrition-analysis[open]>summary::before,#today-more[open]>summary::before{transform:rotate(90deg)}

/* Report-only Japanese typography, loaded lazily by font use. */
@font-face{font-family:'CaLFi Report JP';src:url('assets/report-fonts/BIZUDPGothic-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:'CaLFi Report JP';src:url('assets/report-fonts/BIZUDPGothic-Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}.report-preview-body,.report-preview-cover h3{font-family:'CaLFi Report JP','Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif}.report-preview-body :is(h3,b,strong){font-weight:700}
/* Report values stay together after applying Japanese proportional typography. */
.report-preview-stats strong{white-space:nowrap;overflow-wrap:normal}@media(max-width:600px){.report-preview-stats{grid-template-columns:1fr;gap:0}.report-preview-stats>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:8px 0}.report-preview-stats>div+div{border-left:0}.report-preview-stats strong{font-size:25px;line-height:1.25}.report-preview-cover .report-preview-brand h3{white-space:nowrap;font-size:14px}.report-preview-cover .report-preview-brand{gap:10px}}@media(max-width:380px){.report-preview-cover .report-preview-brand img{width:78px}.report-preview-cover .report-preview-brand h3{font-size:11.5px}.report-preview-cover .report-preview-brand{gap:8px}}
.report-photo-presets{display:flex;align-items:center;gap:12px;margin:12px 0}.report-photo-presets button{min-height:48px;flex:1}.report-photo-presets .outline{background:#EDF3E6;border-color:#B5C4AA;font-weight:700}@media(max-width:360px){.report-photo-presets{gap:8px}.report-photo-presets button{padding-inline:8px;font-size:14px}}

/* Owner navigation 2026-11-03. Scoped to the explicit panel hosts. */
.navigation-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;background:var(--soft);border-radius:18px;margin:12px 0 18px}
.navigation-tabs button{border:0;background:transparent;color:var(--muted);border-radius:14px;min-width:0;min-height:48px;padding:10px 6px;font-size:13px;font-weight:600;line-height:1.35;cursor:pointer}
.navigation-tabs button[aria-selected=true]{background:var(--paper);color:var(--brand);box-shadow:0 2px 8px #20372a0a}
.top-panel[hidden],.record-tab-panel[hidden]{display:none!important}
#home .home-layout,#home .home-primary-column{display:block}
#home .page-heading{margin:12px 0 16px;gap:8px}#home .page-heading h1{font-size:24px;line-height:1.25}#home #home-greeting{font-size:13px;margin:4px 0 0}
#home .today-quick{margin:0 0 10px}#home .today-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#home .today-quick-btn{min-width:0;width:100%;min-height:114px;aspect-ratio:1.45;border-radius:24px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;padding:16px 18px;background:var(--surface);border:1px solid var(--line);box-shadow:none}
#home #home-log-meal{background:var(--brand);color:var(--paper);border-color:var(--brand)}
#home .today-quick-icon{width:32px;height:32px;background:transparent;margin:0;padding:0;color:inherit}#home .today-quick-icon svg{width:30px;height:30px}
#home .today-quick-label{font-size:18px;line-height:1.25;color:inherit}#home .today-quick-sub{font-size:12px;line-height:1.3;color:inherit;opacity:.8;margin-top:3px}
#home .today-quick>.today-link{font-size:13px;min-height:44px;margin:0;padding:8px 2px}
#home .today-hero{margin:0;border-radius:20px;padding:16px;background:var(--soft)}#home .today-balance{padding:0;background:transparent;border:0}
#home .today-balance-main{gap:10px;margin-bottom:10px}#home .today-balance-main b{font-size:30px}#home .today-balance-io{gap:12px}#home .today-balance-io b{font-size:23px}#home .today-balance-io span{font-size:12px}
#home #today-energy-extra{margin:10px 0 0;font-size:12px}#home #home-complete-day{min-height:44px;padding:10px;margin:10px 0 0;font-size:13px}
#home #today-nutrition{margin:12px 0;padding:16px;border:1px solid var(--line);border-radius:20px}#home .nutrition-overview>h3{font-size:17px;margin:0 0 4px}
#home .pfc-summary-grid{gap:10px}#home .nutrition-row>b{font-size:12px}#home .nutrition-row>strong{font-size:23px;line-height:1.3}#home .nutrition-row small,#home .nutrition-overview>small{font-size:11px;line-height:1.45}#home .nutrition-row progress{height:5px}
#home .mineral-summary-grid{gap:12px;padding-top:12px;margin-top:12px}#home .mineral-summary-grid .nutrition-row>strong{font-size:20px}#home .nutrition-ratio-method,#home .today-nutrition-analysis{font-size:12px;margin-top:12px}
#home .today-block{margin-top:16px}#home .today-title{font-size:18px}#home .top-resources{margin-top:20px;border-top:1px solid var(--line);padding:14px 0;font-size:14px}#home .top-resources>.home-secondary-column{display:block;margin-top:12px}
#home #top-panel-week .today-week-grid{display:grid;grid-template-columns:repeat(7,minmax(44px,1fr));gap:4px;overflow-x:auto;padding:4px 0}
#home #top-panel-week .today-day{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;min-height:88px;min-width:44px;padding:8px 2px;border-radius:16px;background:transparent;color:var(--brand)}
#home #top-panel-week .today-day-n,#home #top-panel-week .is-complete .today-day-n{display:flex;width:28px;height:28px;border:0;background:transparent;color:inherit;font-size:18px;line-height:28px}
#home #top-panel-week .today-day-check{position:absolute;right:2px;top:2px;width:14px;height:14px;min-width:0;border:0;border-radius:50%;background:var(--brand);color:var(--on-primary,#fff);font-size:10px;line-height:14px;padding:0}
#home #top-panel-week .today-day-kcal{font-size:10px;line-height:1.3;color:inherit;margin:0;max-width:100%}#home #top-panel-week .today-day.is-today{border:2px solid var(--brand)}
#home .today-week-summary{font-size:12px;gap:10px;margin:8px 0}#home .today-week-legend{font-size:11px;margin:6px 0}
#home #meal-next{padding:12px 14px;margin:12px 0}#home #meal-next h2{font-size:16px;margin:0 0 4px}#home #meal-next p{font-size:13px;margin:4px 0}#home #meal-next .primary{min-height:44px;font-size:13px;padding:10px}
#report>h1{font-size:24px;margin:8px 0 12px}#report .report-page-actions{font-size:12px;margin:0 0 8px}
#report .progress-controls{margin:0;display:flex;gap:4px;padding:0;background:none}#report .progress-controls button{min-height:44px;padding:8px 12px;font-size:12px;border-radius:12px}
#report .progress-navigation{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:4px;align-items:center;margin:8px 0 16px}
#report .progress-navigation>button{min-height:44px;min-width:44px;font-size:24px;padding:4px;border-radius:12px}#report .progress-navigation>.text-button{grid-column:1/-1;grid-row:2;font-size:12px;min-height:44px;padding:4px}
#report #report-period{margin:0;min-width:0;text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;font-size:12px}
#report #report-period .report-share-button{font-size:11px;min-height:44px;padding:4px 10px;margin:0;border:0;background:transparent}
#report .progress-heading{margin:0 0 8px}#report .progress-heading h2{font-size:18px}#report .progress-balance{padding:16px;border-radius:20px;gap:5px}#report .progress-balance strong{font-size:32px}#report .progress-balance small{font-size:11px}
#report .progress-nutrients{margin:12px 0;padding:14px;border:1px solid var(--line);border-radius:20px}#report .progress-nutrients .nutrition-overview{padding:0}#report .progress-nutrients h3{font-size:16px;margin:0 0 4px}#report .progress-nutrients .nutrition-row>b{font-size:11px}#report .progress-nutrients .nutrition-row>strong{font-size:22px}#report .progress-nutrients .nutrition-row small{font-size:11px}
#report .progress-tabs{gap:4px;margin:12px 0}#report .progress-tabs button{padding:8px;min-height:44px;font-size:12px}#report .progress-plot{max-height:210px;margin:8px 0}#report .progress-inspect{padding:12px;margin:8px 0;border-radius:16px}#report .progress-inspect p{margin:4px 0;font-size:13px}#report .progress-day-nav button{min-height:44px;padding:8px;font-size:12px}
#report .weekly-days{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:16px;margin:12px 0;min-width:0;box-sizing:border-box}#report .weekly-days>h2{font-size:16px;margin:0 0 8px;list-style:none}#report .weekly-days>h2::-webkit-details-marker{display:none}
#report .weekly-timeline{margin:0 0 12px}#report #week-day-selector .today-day{min-height:64px;min-width:44px;padding:5px;gap:2px;border-radius:14px}#report #week-day-selector .today-day-n{font-size:18px;height:28px;width:28px;background:transparent;color:inherit}
#report .weekly-record-group{margin:16px 0}#report .weekly-record-group h3{font-size:17px;margin:0 0 8px}#report .weekly-record-list{margin:0;padding:0}#report .weekly-record-list li{padding:0;border-top:0;border-bottom:1px solid var(--line);margin:0}#report .weekly-record-open{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:12px 0;gap:12px;min-height:72px;box-sizing:border-box}#report .weekly-record-open.weekly-record-meal{grid-template-columns:56px minmax(0,1fr) auto}#report .weekly-record-open strong{font-size:14px;line-height:1.5}#report .weekly-record-open small{font-size:11px;margin-top:3px}#report .weekly-record-value{font-size:14px;white-space:nowrap;text-align:right}#report .weekly-record-value b{display:block;font-size:19px;line-height:1.3}#report .weekly-record-value small{display:block;font-size:11px;margin-top:2px}#report .weekly-record-value.is-unknown{font-size:11px;white-space:normal;max-width:5em}#report .weekly-record-photo{display:grid;place-items:center;width:56px;height:56px;overflow:hidden;border-radius:12px;background:var(--soft);color:var(--muted)}#report .weekly-record-photo img{width:100%;height:100%;object-fit:cover;display:block}#report .weekly-record-photo svg{width:22px;height:22px;opacity:.55}#report .weekly-photo-retry{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px}#report .weekly-photo-retry[hidden]{display:none}#report .weekly-photo-retry .helper{font-size:11px;margin:0}#report .weekly-photo-retry button{min-height:44px;font-size:12px}
#report .record-day-energy{font-size:13px;padding:10px 0}#report .record-cross-links{display:flex;flex-wrap:wrap;gap:6px;margin:20px 0}#report .record-cross-links button{padding:8px 10px;min-height:44px;border:1px solid var(--line);border-radius:12px;font-size:12px}
#mine .mine-target-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}#mine .mine-target-grid>div:last-child{grid-column:1/-1}#mine .mine-target-grid dt{font-size:12px;color:var(--muted)}#mine .mine-target-grid dd{font-size:22px;font-weight:650;margin:4px 0}
#mine .mine-goal-chips{display:flex;flex-wrap:wrap;gap:6px}#mine .mine-goal-chips span{font-size:13px;padding:6px 10px;border-radius:12px;background:var(--soft)}#mine .mine-record-return{min-height:44px;font-size:12px}
.bottom-nav button>span{font-size:10px;letter-spacing:.04em;font-weight:650}
@media(min-width:900px){#home .home-primary-column{max-width:820px;margin:auto}#home .today-quick-btn{min-height:120px}#report{max-width:900px;margin:auto}}

/* Compact overview: all three RECORD tabs retain the same range and evidence. */
#report .record-shared-summary{margin:0 0 8px}#report .record-shared-summary .progress-balance{display:grid;grid-template-columns:1fr auto;padding:12px 14px;gap:4px 10px}#report .record-shared-summary .progress-balance>span{font-size:12px}#report .record-shared-summary .progress-balance>strong{font-size:28px;grid-column:2;grid-row:1/3}#report .record-shared-summary .progress-balance>progress{display:none}#report .record-shared-summary .progress-balance>small{font-size:11px}
#report .record-shared-summary .progress-nutrients{padding:12px;margin:8px 0;border-radius:16px}#report .record-shared-summary .nutrition-overview>h3{font-size:14px;display:inline-block;margin:0 6px 0 0}#report .record-shared-summary .nutrition-overview>small{font-size:10px}#report .record-shared-summary .pfc-ratio-bar{height:6px;margin:8px 0}#report .record-shared-summary .pfc-summary-grid{gap:8px;margin:0}#report .record-shared-summary .nutrition-row>strong{font-size:21px}#report .record-shared-summary .nutrition-row small{line-height:1.35;font-size:11px}#report .record-shared-summary .mineral-summary-grid{margin-top:8px;padding-top:8px;gap:10px}#report .record-shared-summary .mineral-summary-grid .nutrition-row{display:grid;grid-template-columns:1fr auto;gap:2px 4px}#report .record-shared-summary .mineral-summary-grid .nutrition-row>strong{font-size:16px}#report .record-shared-summary .mineral-summary-grid .nutrition-row>b{font-size:11px}#report .record-shared-summary .nutrition-ratio-method{margin:4px 0 0}#report .record-shared-summary .nutrition-ratio-method>summary{font-size:12px;min-height:44px;align-content:center}
.nutrition-notes{font-size:12px;line-height:1.6}.nutrition-notes p{margin:6px 0}
#report .progress-heading{display:none}#report .progress-navigation{margin-bottom:8px}#report #report-period{flex-direction:row;flex-wrap:wrap;gap:0 10px}#report .progress-navigation #report-period .report-share-button{min-height:44px}#report .progress-navigation .record-range-label{font-size:11px}
#home #today-hero{gap:0!important}#home #today-hero #today-balance{padding:14px 16px!important}#home #home-complete-day{margin:2px 0 0;min-height:44px;padding:8px}#home #today-energy-extra{margin:0}#home #today-nutrition{padding:12px;margin-top:8px}#home .nutrition-overview .pfc-ratio-bar{margin:8px 0;height:6px}#home .nutrition-overview .pfc-summary-grid{margin:0}#home .nutrition-overview .mineral-summary-grid{margin-top:8px;padding-top:8px}#home .navigation-tabs{margin:4px 0 12px}#home .today-quick>.today-link{min-height:44px;padding:8px 2px;margin:0}#home .page-heading{margin:4px 0 12px}
#mine .mine-purpose{padding:16px;margin-bottom:12px}#mine .mine-target-grid{gap:8px;margin:12px 0}#mine .mine-target-grid>div:last-child{grid-column:auto}#mine .mine-target-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#mine .mine-target-grid dt{font-size:11px}#mine .mine-target-grid dd{font-size:18px}#mine .mine-purpose .mine-card-action{margin-top:6px;font-size:12px;min-height:44px}#mine .mine-record-return{margin:0}

@media(min-width:600px){#home .today-quick-grid{grid-template-columns:repeat(2,minmax(0,220px))}#home .today-quick-btn{aspect-ratio:1.6}#report .record-shared-summary{display:grid;grid-template-columns:1fr 1.4fr;gap:12px}#report .record-shared-summary .progress-nutrients{margin:0}#report .record-shared-summary>.progress-advice{grid-column:1/-1}}

/* Compact record summary leaves the selected chart close to the navigation. */
#report .nutrition-dense .nutrition-target,#report .nutrition-dense progress{display:none}
#report .nutrition-dense .nutrition-ratio-method{margin:0}#report .nutrition-dense .nutrition-ratio-method>summary{min-height:44px}
#report .record-shared-summary .progress-balance>span{grid-column:1;grid-row:1;align-self:center}#report .record-shared-summary .progress-balance>strong{grid-column:2;grid-row:1/3;align-self:center}#report .record-shared-summary .progress-balance>small{font-size:11px}#report .record-shared-summary .progress-balance>p{grid-column:1/-1}
#report .record-shared-summary .nutrition-notes{font-size:11px}#report .navigation-tabs{margin:8px 0 10px}
.app:has(#report:not([hidden])) .app-header{margin-bottom:8px;padding-top:10px;padding-bottom:10px;min-height:58px}.app:has(#report:not([hidden])) .brand-button img:not(.brand-symbol){width:136px;height:auto}.app:has(#report:not([hidden])) .brand-symbol{width:30px;height:30px}
#home #today-hero #today-energy-extra{margin:0}#home #today-hero .today-energy-io{padding:0}#home #today-hero #home-complete-day{margin:0;padding:8px}#home #today-energy-extra>summary{min-height:44px}#home .today-quick>.today-link{padding:4px 2px}

/* Card spacing / seven-day alignment — Owner 2026-11-03. */
#home #today-hero #today-balance{box-sizing:border-box;min-width:0}
#home #today-hero .today-balance-main{flex-wrap:wrap;row-gap:6px}
#home #today-hero .today-balance-value{margin-left:auto}
#home #today-hero .today-energy-io{gap:12px;padding-top:10px}
#home #today-hero .today-balance-more{padding-top:8px}
#home #top-panel-week .today-week-grid{gap:6px;padding:4px 0 8px}
#home #top-panel-week .today-day{display:grid;grid-template-rows:14px 28px 14px 14px;justify-items:center;align-content:center;gap:4px;min-height:100px;padding:10px 3px;border-radius:14px;border:1px solid var(--line)}
#home #top-panel-week .today-day-w{grid-row:1;line-height:14px}
#home #top-panel-week .today-day-n,#home #top-panel-week .is-complete .today-day-n{grid-row:2;justify-content:center;align-items:center;margin:0;outline:none;font-size:20px;line-height:28px}
#home #top-panel-week .today-day-kcal{grid-row:3;line-height:14px;font-variant-numeric:tabular-nums}
#home #top-panel-week .today-day-check{position:static;grid-row:4;display:grid;place-items:center;width:14px;height:14px;margin:0;font-size:9px;line-height:1}
#home #top-panel-week .today-day-dots{grid-row:4;align-self:center;margin:0}
#home #top-panel-week .today-day.is-today{border:2px solid var(--brand);background:var(--soft)}
#home .today-week .today-head{justify-content:space-between;flex-wrap:wrap}
@media(max-width:360px){#home #today-hero #today-balance{padding:12px!important}#home #today-hero .today-balance-value{font-size:25px!important}#home #top-panel-week .today-day{min-height:96px}}

#home .today-week #report-open{width:auto!important;max-width:65%;flex:0 1 auto;min-height:44px;justify-content:flex-end}
#app-share .app-share-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}#app-share .app-share-buttons button{min-height:44px;flex:1 1 140px}#app-share>a{display:inline-block;overflow-wrap:anywhere}

@media(max-width:359px){#report .weekly-days{padding:12px}#report .weekly-record-open.weekly-record-meal{grid-template-columns:48px minmax(0,1fr) auto;gap:8px}#report .weekly-record-photo{width:48px;height:48px}#report .weekly-record-value b{font-size:17px}}

/* Meal methods stay reachable when TOP opens the photo task directly. */
.today-quick-links{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 16px}.today-quick-links .today-link{width:auto;margin:4px 0 0;min-height:44px}.today-barcode{display:inline-flex;align-items:center;gap:7px}.today-barcode svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}

/* 2871: everyday recording first. The shared values and completion rules stay intact. */
.app[data-screen=home]:has(#private-app:not([hidden])) .app-header{min-height:60px;height:64px;padding-top:8px;padding-bottom:8px}
.app[data-screen=home]:has(#private-app:not([hidden])) .brand-button img:not(.brand-symbol){width:130px;max-height:44px;height:auto}
.app[data-screen=home]:has(#private-app:not([hidden])) .brand-symbol{width:28px;height:28px}
#home[data-layout=v2] .page-heading h1{font-size:23px}
#home[data-layout=v2] .today-quick-btn{aspect-ratio:auto;min-height:88px;padding:12px;gap:6px;flex-direction:column;align-items:flex-start}
#home[data-layout=v2] .today-quick-icon{width:24px;height:24px;flex-basis:24px}
#home[data-layout=v2] .today-quick-icon svg{width:24px;height:24px}
#home[data-layout=v2] #home-log-meal .today-quick-icon{color:inherit!important}
#home[data-layout=v2] .today-quick-label{font-size:15px;white-space:normal;overflow-wrap:anywhere}
#home[data-layout=v2] .today-quick-sub{font-size:12px;margin-top:2px;word-break:auto-phrase;overflow-wrap:normal}
#home[data-layout=v2] #today-hero{padding:0!important;background:transparent;border:0;gap:0}
#home[data-layout=v2] #today-hero #today-balance{padding:18px!important;background:var(--soft);border:1px solid var(--line);border-radius:16px}
#home[data-layout=v2] #today-hero #today-balance,#home[data-layout=v2] #today-hero #today-balance *{color:var(--brand)!important}
#home[data-layout=v2] #today-hero .today-balance-value{font-size:32px!important;line-height:1.2!important}
#home[data-layout=v2] #today-hero .today-energy-io{grid-template-columns:1fr;gap:10px;margin:14px 0 8px;padding:0}
#home[data-layout=v2] #today-hero .today-energy-measure{display:grid;grid-template-columns:1fr auto;gap:5px 12px;align-items:baseline}
#home[data-layout=v2] #today-hero .today-energy-measure>small{font-size:12px!important}
#home[data-layout=v2] #today-hero .today-energy-measure>b{font-size:16px!important}
#home[data-layout=v2] #today-hero .today-energy-track{display:block;grid-column:1/-1;height:7px;border-radius:5px;background:var(--line);overflow:hidden}
#home[data-layout=v2] #today-hero .today-energy-track i{display:block;height:100%;background:var(--brand);border-radius:5px}
#home[data-layout=v2] #today-hero .today-energy-track.is-burn i{opacity:.48}
#home[data-layout=v2] #today-hero .today-energy-track.is-unknown{background:transparent;border:1px dashed var(--line)}
#home[data-layout=v2] #today-hero .today-energy-period{grid-column:1/-1;font-size:12px;line-height:1.65;margin:0 0 10px;text-align:left}
#home[data-layout=v2] #today-hero .today-balance-status,#home[data-layout=v2] #today-hero .today-balance-more{font-size:12px!important}
#home[data-layout=v2] #today-hero #home-complete-day{min-height:44px;margin-top:8px}
#home[data-layout=v2] #today-energy-extra{padding-top:5px}
#home[data-layout=v2] .today-text-link,#home[data-layout=v2] #home-recent .recent-meal{min-height:44px}
.ql-sheet .ql-usual{margin-top:0;padding-top:8px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.ql-sheet .ql-usual-row{gap:8px}
.ql-sheet .ql-chip{min-height:52px}
.ql-sheet .ql-usual .ql-label{margin:0 0 8px}
.ql-sheet:not([data-mode]),.ql-sheet[data-mode=""]{padding-top:8px}
.ql-sheet:not([data-mode]) .ql-grid,.ql-sheet[data-mode=""] .ql-grid{margin-top:12px;grid-auto-rows:auto;gap:8px}
.ql-sheet:not([data-mode]) .ql-tile,.ql-sheet[data-mode=""] .ql-tile{min-height:106px;padding:12px;gap:8px;justify-content:flex-start;border-radius:14px}
.ql-sheet:not([data-mode]) .ql-tile:not(.is-primary),.ql-sheet[data-mode=""] .ql-tile:not(.is-primary){min-height:68px}
.ql-sheet:not([data-mode]) .ql-tile-icon,.ql-sheet[data-mode=""] .ql-tile-icon{width:28px;height:28px;border-radius:8px}
.ql-sheet:not([data-mode]) .ql-tile-icon .ql-svg,.ql-sheet[data-mode=""] .ql-tile-icon .ql-svg{width:24px;height:24px}
.ql-sheet:not([data-mode]) .ql-tile-text b,.ql-sheet[data-mode=""] .ql-tile-text b{font-size:15px;line-height:1.4;word-break:auto-phrase;overflow-wrap:normal}
.ql-sheet .ql-tile-text small,.ql-sheet .ql-chip small{font-size:12px}
@media(max-width:360px){#home[data-layout=v2] #today-hero #today-balance{padding:14px!important}#home[data-layout=v2] #today-hero .today-balance-value{font-size:29px!important}.app[data-screen=home]:has(#private-app:not([hidden])) .brand-button img:not(.brand-symbol){width:112px}}
.ql-primary-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 8px}.ql-primary-method{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:48px;margin:0;padding:10px 12px;border:1px solid var(--hairline);border-radius:14px;background:var(--surface);color:var(--brand);font:inherit;font-size:14px;font-weight:650}.ql-primary-method[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:#fff}.ql-primary-method svg{width:22px;height:22px;flex:none}
/* queue3028 Stance: 「ジムで測った姿勢」 card + import sheet. CaLFi tokens; the two figure states carry meaning only
   (張りやすい = clay, 働きにくい = slate). Flat fills, no gradients, numbers tabular and right-aligned. */
.bc-posture,.stance-import{--stance-figure-base:var(--soft,#ECF0E5);--stance-tension:#C27A5E;--stance-weak:#7E97A6}
.bc-posture{padding:17px 17px 13px;border-radius:20px;background:var(--surface);border:1px solid var(--hairline);margin-top:14px}
.bc-posture-meta{display:flex;justify-content:space-between;gap:10px;font-size:11.5px;color:var(--secondary);margin:-6px 0 12px}
.bc-posture-main{display:grid;grid-template-columns:minmax(0,104px) minmax(0,1fr);gap:16px;align-items:center}
.stance-figure-art svg{display:block;width:100%;height:auto;max-height:220px;fill:initial;stroke:none}
.stance-legend{display:flex;flex-wrap:wrap;gap:4px 12px;list-style:none;padding:0;margin:8px 0 0;font-size:10.5px;color:var(--secondary)}
.stance-legend li{display:flex;align-items:center;gap:5px}
.stance-legend li::before{content:'';width:9px;height:9px;border-radius:50%;background:var(--stance-tension)}
.stance-legend li[data-state=weak]::before{background:var(--stance-weak)}
.bc-posture-score h3{font-size:12px;color:var(--secondary);font-weight:500;margin:0 0 5px}
.bc-posture-score .bc-stat-number strong,.stance-num,.bc-posture-delta b{font-variant-numeric:tabular-nums}
.bc-posture-score .bc-stat-number strong{font-size:40px;font-weight:600}
.bc-posture-delta{display:flex;justify-content:space-between;gap:8px;font-size:11.5px;color:var(--secondary);margin:6px 0 0}
.bc-posture-delta b{color:var(--brand);font-weight:600}
.bc-posture-type{font-size:12px;line-height:1.7;color:var(--brand);margin:8px 0 0}
.bc-posture-focus{font-size:13px;line-height:1.8;color:var(--ink);background:var(--soft);border-radius:12px;padding:11px 13px;margin:14px 0 0}
.bc-posture-sub{font-size:12px;color:var(--secondary);font-weight:500;margin:16px 0 4px}
.stance-chart{width:100%;height:auto}
.stance-axis{font-size:10px;fill:var(--secondary)}
.stance-chart circle{fill:var(--brand)}
.stance-estimate{stroke-dasharray:6 5}
.bc-posture-more{margin-top:12px;font-size:12px}
.bc-posture-more summary{min-height:44px;display:flex;align-items:center;color:var(--brand);cursor:pointer}
.stance-angles{width:100%;border-collapse:collapse;font-size:12px}
.stance-angles th{text-align:left;font-weight:500;padding:7px 8px 7px 0;border-top:1px solid var(--hairline)}
.stance-angles td{padding:7px 0 7px 8px;border-top:1px solid var(--hairline);color:var(--secondary);white-space:nowrap}
.stance-angles td.stance-num{text-align:right;color:var(--ink)}
.stance-import .bc-posture-main{margin:6px 0 4px}
.stance-note{font-size:12px;line-height:1.8;color:var(--secondary);margin:12px 0 0}
.stance-return{margin-top:4px}
