/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.contents{display:contents}.flex{display:flex}.grid{display:grid}.inline{display:inline}.table{display:table}.grow{flex-grow:1}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.border{border-style:var(--tw-border-style);border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}:root{color:#1e3a5f;font-synthesis:none;text-rendering:optimizelegibility;--ink:#1e3a5f;--muted:#5c7489;--line:#d7e7f2;--paper:#fff;--paper-soft:#eef8fd;--primary:#0ea5e9;--primary-dark:#0369a1;--primary-soft:#e2f4fd;--navy:#1e3a5f;--coral:#ff6b6b;--coral-dark:#e95858;--coral-soft:#fff0ef;--green:#0f766e;--green-soft:#e3f6f3;--amber:#b96f08;--amber-soft:#fff3d7;--red:#c74646;--red-soft:#fff0ef;--shadow:0 18px 48px #1e3a5f1a;background:#f7fcff;font-family:Noto Sans TC,PingFang TC,Microsoft JhengHei,system-ui,sans-serif}*{box-sizing:border-box}html{background:#f7fcff;min-width:320px}body{background:radial-gradient(circle at 92% 0,#0ea5e91a,#0000 32rem),radial-gradient(circle at 5% 22%,#ff6b6b12,#0000 28rem),#f7fcff;min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{color:inherit;font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:2px;outline:3px solid #0ea5e947}h1,h2,h3,p{margin-top:0}h1{color:var(--navy);letter-spacing:-.025em;margin-bottom:.45rem;font-size:clamp(1.75rem,4vw,2.45rem);line-height:1.2}h2{margin:0;font-size:1.18rem;line-height:1.35}h3{margin-bottom:.4rem;font-size:1.05rem}.app-shell{min-height:100vh}.topbar{z-index:30;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#ffffffeb;border-bottom:1px solid #d7e7f2e0;position:sticky;top:0;box-shadow:0 8px 24px #1e3a5f0d}.topbar-inner{justify-content:space-between;align-items:center;gap:1.5rem;width:min(1180px,100% - 2rem);min-height:74px;margin:0 auto;display:flex}.brand{align-items:center;gap:.75rem;min-width:0;display:inline-flex}.brand-mark{color:#fff;background:linear-gradient(145deg, var(--primary), #38bdf8);border-radius:14px;flex:0 0 44px;place-items:center;width:44px;height:44px;font-weight:800;display:inline-grid;box-shadow:0 10px 22px #0ea5e93d}.brand strong,.brand small{display:block}.brand strong{color:var(--navy);font-size:1rem}.brand small{max-width:340px;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:.12rem;font-size:.76rem;overflow:hidden}.topbar nav{align-items:center;gap:.3rem;display:flex}.nav-link{min-height:44px;color:var(--muted);border-radius:11px;align-items:center;padding:0 .95rem;font-size:.92rem;font-weight:700;display:inline-flex}.nav-link:hover,.nav-link.active{color:var(--primary-dark);background:var(--primary-soft)}.page-container{width:min(1180px,100% - 2rem);min-height:calc(100vh - 160px);margin:0 auto;padding:2rem 0 4rem}.footer{color:#857b70;text-align:center;padding:1.25rem 1rem 2rem;font-size:.78rem}.page-stack{gap:1.25rem;display:grid}.compact-stack{gap:1rem}.page-heading>p:last-child,.detail-hero>div>p:last-child{max-width:720px;color:var(--muted);margin-bottom:0;line-height:1.7}.heading-with-action{justify-content:space-between;align-items:flex-end;gap:1.25rem;display:flex}.page-actions,.inline-actions,.card-actions,.table-actions{align-items:center;gap:.65rem;display:flex}.table-actions{gap:.25rem}.eyebrow{color:var(--primary);letter-spacing:.12em;text-transform:uppercase;margin-bottom:.4rem;font-size:.75rem;font-weight:800}.back-link{min-height:40px;color:var(--primary);align-items:center;margin-bottom:.65rem;font-size:.9rem;font-weight:700;display:inline-flex}.back-link:hover{color:var(--primary-dark)}.button{cursor:pointer;border:1px solid #0000;border-radius:11px;justify-content:center;align-items:center;gap:.35rem;min-height:44px;padding:.65rem 1rem;font-size:.92rem;font-weight:800;line-height:1.2;transition:transform .12s,background .12s,border-color .12s;display:inline-flex}.button:hover:not(:disabled){transform:translateY(-1px)}.button:disabled{cursor:wait;opacity:.58}.button-primary{color:#fff;background:var(--primary);box-shadow:0 8px 18px #8b4b3229}.button-primary:hover:not(:disabled){background:var(--primary-dark)}.button-secondary{border-color:var(--line);color:var(--primary-dark);background:#fff}.button-secondary:hover:not(:disabled){background:#faf6f0;border-color:#c6b4a2}.button-ghost{color:var(--muted);background:0 0}.button-small{min-height:36px;padding:.4rem .7rem;font-size:.82rem}.card{background:var(--paper);min-width:0;box-shadow:var(--shadow);border:1px solid #ded5c8e6;border-radius:18px;padding:1.3rem}.card-header{border-bottom:1px solid #eee7dd;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.15rem;padding-bottom:.9rem;display:flex}.card-header .eyebrow{margin-bottom:.3rem}.field{align-content:start;gap:.42rem;min-width:0;display:grid}.field-label{color:#4d453e;align-items:center;gap:.45rem;font-size:.86rem;font-weight:800;display:flex}.required{color:var(--red);background:var(--red-soft);border-radius:999px;padding:.14rem .38rem;font-size:.65rem}.input{width:100%;min-height:44px;color:var(--ink);background:#fff;border:1px solid #cdc3b7;border-radius:10px;padding:.63rem .78rem;font-size:.94rem}.input:focus{border-color:var(--primary);outline:3px solid #8b4b321f}.textarea{resize:vertical;min-height:88px;line-height:1.6}.field-error .input{border-color:var(--red)}.field-message{color:var(--red);font-size:.78rem}.field-hint{color:var(--muted);font-size:.75rem}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.2rem;display:grid}.compact-grid{gap:.8rem}.form-grid-top{margin-top:1.2rem}.field-span-full{grid-column:1/-1}.filter-grid{grid-template-columns:minmax(250px,1.5fr) minmax(180px,1fr) minmax(160px,.7fr) auto;align-items:end;gap:.85rem;display:grid}.filter-reset{white-space:nowrap}.result-toolbar{justify-content:space-between;align-items:center;min-height:36px;display:flex}.result-toolbar p{color:var(--muted);align-items:baseline;gap:.55rem;margin:0;font-size:.84rem;display:flex}.result-toolbar strong{color:var(--ink);font-size:1.2rem}.desktop-table-wrap,.comparison-table-wrap,.activity-table-scroll{border:1px solid var(--line);background:var(--paper);box-shadow:var(--shadow);border-radius:16px;overflow:auto}.data-table,.comparison-table,.activity-table{border-collapse:collapse;width:100%;font-size:.86rem}.data-table th,.data-table td,.comparison-table th,.comparison-table td,.activity-table th,.activity-table td{text-align:left;vertical-align:middle;border-bottom:1px solid #ece5dc;padding:.85rem .8rem}.data-table thead th,.comparison-table thead th,.activity-table thead th{z-index:1;color:#5d5147;letter-spacing:.02em;white-space:nowrap;background:#f1ebe2;font-size:.75rem;position:sticky;top:0}.data-table tr:last-child td,.comparison-table tr:last-child td,.comparison-table tr:last-child th,.activity-table tr:last-child td,.activity-table tr:last-child th{border-bottom:0}.data-table small,.record-list small,.senior-mobile-card small{color:var(--muted);margin-top:.22rem;font-size:.74rem;display:block}.table-primary-link{color:var(--primary-dark);font-weight:800}.table-primary-link:hover{text-decoration:underline}.mini-progress,.progress-bar{background:#e5ddd3;border-radius:99px;height:5px;margin-top:.42rem;overflow:hidden}.mini-progress span,.progress-bar span{border-radius:inherit;background:var(--green);height:100%;display:block}.mobile-card-list,.mobile-activity-list{display:none}.status-badge{white-space:nowrap;border-radius:999px;align-items:center;min-height:26px;padding:.22rem .55rem;font-size:.72rem;font-weight:800;line-height:1.2;display:inline-flex}.loading-block,.empty-state,.error-state{min-height:240px;color:var(--muted);text-align:center;background:#fffdf9b3;border:1px dashed #cfc4b7;border-radius:18px;align-content:center;place-items:center;gap:.65rem;padding:2rem;display:grid}.loading-block{grid-template-columns:auto auto}.spinner{border:3px solid #dfd4c8;border-top-color:var(--primary);border-radius:50%;width:22px;height:22px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.empty-icon{width:54px;height:54px;color:var(--primary);background:var(--primary-soft);border-radius:50%;place-items:center;font-size:1.8rem;display:grid}.empty-state p,.error-state p{max-width:480px;margin-bottom:.5rem;line-height:1.65}.error-state{color:#78403c;background:#fff8f6;border-color:#e4b8b1}.inline-error{color:var(--red);background:var(--red-soft);border:1px solid #e4b8b1;border-radius:10px;padding:.8rem 1rem}.measurement-grid,.content-grid,.summary-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.summary-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.span-two{grid-column:1/-1}.measurement-bmi{background:var(--paper-soft);border-radius:12px;justify-content:space-between;align-items:baseline;margin-bottom:1rem;padding:.8rem 1rem;display:flex}.measurement-bmi span{color:var(--muted);font-weight:800}.measurement-bmi strong{color:var(--primary-dark);font-size:1.7rem}.metric-row{grid-template-columns:repeat(3,1fr);gap:.75rem;margin:0 0 .8rem;display:grid}.metric-row>div,.analysis-highlight{background:var(--paper-soft);border-radius:12px;padding:.9rem}.metric-row dt{color:var(--muted);font-size:.78rem}.metric-row dd{margin:.3rem 0 0;font-size:1.3rem;font-weight:800}.metric-up{color:var(--amber)}.metric-down{color:var(--green)}.muted,.updated-note,.section-intro{color:var(--muted);font-size:.84rem;line-height:1.65}.updated-note{text-align:right;margin:0}.success-copy{color:var(--green);margin:0;font-weight:700}.checkbox-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;display:grid}.choice-card{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:11px;align-items:center;gap:.65rem;min-height:52px;padding:.75rem;font-size:.86rem;font-weight:700;display:flex}:is(.choice-card:has(input:checked),.choice-selected){color:var(--primary-dark);background:var(--primary-soft);border-color:#c08e73}.choice-card input,.checkbox-list input,.alert-choice-list input,.radio-row input,.switch-row input,.food-check input,.interactive-goal input{width:20px;height:20px;accent-color:var(--primary);flex:0 0 20px}.sticky-save-bar{z-index:20;color:var(--muted);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffdf9f2;border:1px solid #d4c6b8;border-radius:14px;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem .8rem .75rem 1rem;display:flex;position:sticky;bottom:1rem;box-shadow:0 12px 32px #412b1b29}.detail-hero{box-shadow:var(--shadow);background:linear-gradient(120deg,#fffdf9f2,#f4e4dacc);border-radius:20px;justify-content:space-between;align-items:flex-end;gap:1.25rem;padding:1.45rem;display:flex}.detail-title-row{align-items:center;gap:1rem;display:flex}.detail-title-row h1{margin-bottom:0}.tab-list{border:1px solid var(--line);background:var(--paper);scrollbar-width:thin;border-radius:14px;gap:.35rem;padding:.35rem;display:flex;overflow-x:auto}.tab-list button{cursor:pointer;min-height:44px;color:var(--muted);background:0 0;border:0;border-radius:10px;flex:none;padding:.55rem .85rem;font-size:.86rem;font-weight:800}.tab-list button.active{color:#fff;background:var(--primary)}.detail-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:.95rem;margin:0;display:grid}.detail-list div{min-width:0}.detail-list dt{color:var(--muted);font-size:.75rem}.detail-list dd{overflow-wrap:anywhere;margin:.22rem 0 0;font-weight:700}.note-box{background:var(--paper-soft);border-radius:11px;margin-top:1rem;padding:.9rem}.note-box strong{margin-bottom:.35rem;font-size:.82rem;display:block}.note-box p{white-space:pre-wrap;margin:0;line-height:1.65}.tag-list{flex-wrap:wrap;gap:.45rem;display:flex}.comparison-table-wrap{box-shadow:none;border-radius:11px}.comparison-table th:first-child{font-weight:800}.record-layout,.report-layout{grid-template-columns:minmax(0,1.65fr) minmax(270px,.65fr);align-items:start;gap:1rem;display:grid}.food-date-row{grid-template-columns:minmax(190px,.65fr) 1fr;align-items:center;gap:1rem;margin-bottom:1rem;display:grid}.category-count{color:var(--amber);background:var(--amber-soft);border-radius:12px;grid-template-columns:auto auto 1fr;align-items:baseline;gap:.25rem;padding:.7rem .9rem;display:grid}.category-count strong{font-size:1.6rem}.category-count small{justify-self:end}.category-count.count-good{color:var(--green);background:var(--green-soft)}.date-nav{flex-wrap:wrap;gap:.2rem;margin-top:.35rem;display:flex}.date-nav .button{min-height:34px;padding:.32rem .48rem;font-size:.75rem}.food-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;display:grid}.food-category{border:1px solid var(--line);background:#fff;border-radius:12px;gap:.6rem;padding:.8rem;display:grid}.food-selected{background:#fffaf5;border-color:#bd9a82}.food-check{cursor:pointer;align-items:center;gap:.55rem;min-height:28px;display:flex}.fridge-toolbar{grid-template-columns:minmax(180px,.8fr) auto minmax(180px,1fr);align-items:end;gap:.85rem;margin-bottom:1rem;display:grid}.fridge-week-actions{flex-wrap:wrap;gap:.25rem;display:flex}.fridge-week-range{color:var(--primary-dark);background:var(--primary-soft);border-radius:11px;justify-items:end;gap:.18rem;padding:.7rem .85rem;display:grid}.fridge-week-range span{color:var(--muted);font-size:.78rem}.fridge-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin-bottom:1rem;display:grid}.fridge-metric{border:1px solid var(--line);background:var(--paper-soft);border-radius:11px;gap:.18rem;padding:.75rem .85rem;display:grid}.fridge-metric span,.fridge-metric small{color:var(--muted);font-size:.72rem}.fridge-metric strong{font-size:1.25rem}.fridge-metric-good{background:var(--green-soft);border-color:#aec5b3}.fridge-metric-good strong{color:var(--green)}.fridge-table-wrap{border:1px solid var(--line);border-radius:12px;overflow-x:auto}.fridge-table{border-collapse:separate;border-spacing:0;background:#fff;width:100%;min-width:780px}.fridge-table th,.fridge-table td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-align:center;padding:.55rem .45rem;font-size:.78rem}.fridge-table tr>:last-child{border-right:0}.fridge-table thead th:first-child,.fridge-table tbody th,.fridge-table tfoot th{text-align:left;min-width:105px;font-weight:800}.fridge-table thead th.selected,.fridge-table td.selected{background:var(--primary-soft)}.fridge-table thead th button{cursor:pointer;background:0 0;border:0;place-items:center;gap:.15rem;width:100%;padding:.15rem;font-weight:800;display:grid}.fridge-table thead th button small{color:var(--muted);font-size:.67rem;font-weight:600}.fridge-cell{cursor:pointer;width:34px;height:34px;color:var(--muted);background:#fff;border:1px solid #cfc3b5;border-radius:9px;place-items:center;font-size:1rem;font-weight:900;display:inline-grid}.fridge-cell.checked{border-color:var(--primary);color:#fff;background:var(--primary)}.fridge-table tfoot>tr:last-child>*{border-bottom:0}.fridge-table tfoot td.day-good{color:var(--green);background:var(--green-soft)}.fridge-help{color:var(--muted);margin:.85rem 0 0;font-size:.78rem;line-height:1.6}.fridge-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-bottom:.9rem;display:grid}.fridge-day-list{gap:.45rem;display:grid}.fridge-day-list button{cursor:pointer;text-align:left;background:var(--paper-soft);border:1px solid #0000;border-radius:10px;justify-content:space-between;align-items:center;gap:.7rem;width:100%;min-height:54px;padding:.6rem .7rem;display:flex}.fridge-day-list button:hover,.fridge-day-list button.active{background:var(--primary-soft);border-color:#c99d84}.fridge-day-list button>span{gap:.15rem;display:grid}.fridge-day-list button small{color:var(--muted);font-size:.72rem}.fridge-tips{color:var(--muted);gap:.55rem;margin:0;padding-left:1.2rem;font-size:.82rem;line-height:1.6;display:grid}.contact-book-intro{background:linear-gradient(120deg, var(--primary-soft), var(--amber-soft));border-radius:14px;justify-content:space-between;align-items:center;gap:1rem;padding:1rem;display:flex}.contact-book-intro strong{color:var(--primary-dark);margin-top:.25rem;font-size:1.55rem;display:block}.contact-book-intro p{max-width:650px;color:var(--muted);margin:.35rem 0 0;line-height:1.6}.contact-book-progress{min-width:90px;min-height:90px;color:var(--primary-dark);background:#fffdf9bf;border:6px solid #8b4b322e;border-radius:50%;flex:0 0 90px;align-content:center;place-items:center;display:grid}.contact-book-progress span{font-size:1.2rem;font-weight:900}.contact-book-progress small{color:var(--muted);font-size:.58rem}.contact-book-action-grid,.contact-book-status-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;display:grid}.contact-book-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.contact-book-stat{color:var(--primary-dark);margin:.15rem 0 .3rem;font-size:1.55rem;display:block}.contact-book-action-grid .card p,.contact-book-status-grid .card p{min-height:2.6rem;color:var(--muted);margin-bottom:.8rem;font-size:.8rem;line-height:1.55}.contact-book-week-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;display:grid}.contact-book-week{border:1px solid var(--line);cursor:pointer;min-height:118px;color:var(--ink);background:var(--paper-soft);text-align:left;border-radius:12px;align-content:start;gap:.25rem;padding:.75rem;display:grid}.contact-book-week:hover,.contact-book-week.completed{background:var(--green-soft);border-color:#aec5b3}.contact-book-week strong{color:var(--primary-dark);font-size:.9rem}.contact-book-week small{min-height:2.1rem;color:var(--muted);font-size:.7rem;line-height:1.45}.contact-book-week .status-badge{justify-self:start;margin-top:auto}.contact-book-status-row{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:.75rem;padding:.7rem 0;font-size:.84rem;display:flex}.contact-book-status-row:last-child{border-bottom:0}.record-list{gap:.45rem;display:grid}.segmented-control{background:var(--paper-soft);border-radius:9px;padding:.2rem;display:inline-flex}.segmented-control button{cursor:pointer;min-height:34px;color:var(--muted);background:0 0;border:0;border-radius:7px;padding:.35rem .55rem;font-size:.75rem;font-weight:800}.segmented-control button.active{color:#fff;background:var(--primary)}.record-list button{cursor:pointer;text-align:left;background:var(--paper-soft);border:1px solid #0000;border-radius:10px;justify-content:space-between;align-items:center;gap:.75rem;width:100%;min-height:58px;padding:.65rem .7rem;display:flex}.record-list button:hover,.record-list button.active{background:var(--primary-soft);border-color:#c99d84}.week-strip,.milestone-strip{scrollbar-width:thin;gap:.5rem;padding:.2rem 0 .45rem;display:flex;overflow-x:auto}.week-strip button,.milestone-strip button{border:1px solid var(--line);cursor:pointer;min-width:88px;min-height:58px;color:var(--muted);background:var(--paper);text-align:center;border-radius:12px;place-content:center;gap:.15rem;padding:.5rem;display:grid}.week-strip button small,.milestone-strip button span{font-size:.7rem}.week-strip button.completed,.milestone-strip button.completed{color:var(--green);background:var(--green-soft);border-color:#aec5b3}.week-strip button.active,.milestone-strip button.active{border-color:var(--primary);color:#fff;background:var(--primary)}.milestone-strip button{min-width:150px}.weekly-tip{background:var(--amber-soft);border-radius:12px;grid-template-columns:auto 1fr;gap:.75rem;margin-bottom:1rem;padding:.9rem;display:grid}.weekly-tip span{color:#fff;background:var(--amber);border-radius:6px;align-self:start;padding:.2rem .45rem;font-size:.7rem;font-weight:800}.weekly-tip p{color:#6c5128;margin:0;font-size:.86rem;line-height:1.65}.range-action{color:var(--muted);align-items:center;gap:.8rem;margin:.9rem 0 1rem;font-size:.78rem;display:flex}.goal-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;display:grid}.goal-card{border:1px solid var(--line);background:var(--paper-soft);border-radius:11px;grid-template-columns:auto 1fr;align-items:center;gap:.55rem;min-height:84px;padding:.7rem;display:grid}.goal-card>span:first-child{background:#ddd6ce;border-radius:50%;place-items:center;width:28px;height:28px;font-weight:900;display:grid}.goal-card small,.goal-card strong{display:block}.goal-card small{color:var(--muted);font-size:.7rem}.goal-card strong{margin-top:.18rem;font-size:.9rem}.goal-card .status-badge{grid-column:1/-1;justify-self:start}.goal-met{background:var(--green-soft);border-color:#aec5b3}.goal-met>span:first-child{color:#fff;background:var(--green)}.interactive-goal{cursor:pointer}.activity-table{min-width:900px}.activity-table .input{min-width:78px;min-height:38px;padding:.4rem .5rem}.activity-table tfoot th,.activity-table tfoot td{color:#3d5c45;background:var(--green-soft)}.activity-other-name{margin-top:.3rem}.activity-summary{background:var(--green-soft);border-radius:12px;flex-wrap:wrap;align-items:baseline;gap:.8rem 1.25rem;margin-top:1rem;padding:.9rem 1rem;display:flex}.activity-summary strong{color:var(--green);font-size:1.3rem}.activity-summary span{color:#53675a;font-size:.82rem}.health-alert-banner,.export-success{color:#7b302f;background:var(--red-soft);border:1px solid #e4aaa4;border-radius:14px;align-items:flex-start;gap:.8rem;padding:1rem 1.1rem;display:flex}.health-alert-banner>span,.export-success>span{color:#fff;background:var(--red);border-radius:50%;flex:0 0 30px;place-items:center;width:30px;height:30px;font-weight:900;display:grid}.health-alert-banner p,.export-success p{margin:.2rem 0 0;font-size:.82rem;line-height:1.55}.analysis-stack{gap:.9rem;display:grid}.analysis-highlight{grid-template-columns:1fr auto;align-items:baseline;gap:.2rem .8rem;display:grid}.analysis-highlight>span{color:var(--muted);font-size:.78rem}.analysis-highlight strong{color:var(--primary-dark);grid-row:span 2;font-size:1.3rem}.analysis-highlight small{color:var(--muted)}.subheading{margin-bottom:.5rem;font-size:.82rem;display:block}.form-fieldset{border:0;margin:1.1rem 0 0;padding:0}.form-fieldset legend{color:#4d453e;margin-bottom:.6rem;font-size:.86rem;font-weight:800}.checkbox-list,.alert-choice-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin-bottom:1rem;display:grid}.checkbox-list label,.alert-choice-list label,.radio-row label{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:10px;align-items:center;gap:.6rem;min-height:48px;padding:.65rem .75rem;font-size:.84rem;display:flex}.alert-choice-list label{background:snow;border-color:#e4c1bb}:is(.checkbox-list label:has(input:checked),.radio-row label:has(input:checked)){background:var(--primary-soft);border-color:#c08e73}.alert-choice-list label:has(input:checked){border-color:var(--red);color:#7b302f;background:var(--red-soft)}.radio-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;display:grid}.switch-row{cursor:pointer;align-items:center;gap:.75rem;display:flex}.switch-row strong,.switch-row small{display:block}.switch-row small{color:var(--muted);margin-top:.2rem}.summary-card-grid .card{min-height:190px}.big-metric{align-items:baseline;gap:.35rem;margin-bottom:.65rem;display:flex}.big-metric strong{color:var(--primary-dark);font-size:2.2rem}.big-metric span{color:var(--muted)}.progress-bar{height:8px;margin:.75rem 0}.report-actions{border-top:1px solid #eee7dd;justify-content:flex-end;align-items:center;gap:.7rem;margin-top:1.2rem;padding-top:1rem;display:flex}.sheet-list{color:#544b43;gap:.45rem;margin:0 0 1rem;padding-left:1.4rem;font-size:.86rem;display:grid}.export-success{color:#31583c;background:var(--green-soft);border-color:#b8ceb9}.export-success>span{background:var(--green)}.toast-region{z-index:100;pointer-events:none;gap:.55rem;width:min(380px,100% - 2rem);display:grid;position:fixed;bottom:1rem;right:1rem}.toast{border:1px solid var(--line);cursor:pointer;min-height:52px;color:var(--ink);pointer-events:auto;text-align:left;background:#fff;border-radius:12px;align-items:center;gap:.7rem;padding:.75rem .9rem;display:flex;box-shadow:0 12px 32px #34261b33}.toast>span{color:#fff;border-radius:50%;flex:0 0 26px;place-items:center;width:26px;height:26px;font-weight:900;display:grid}.toast-success>span{background:var(--green)}.toast-error>span{background:var(--red)}.toast-info>span{background:var(--amber)}.standalone-error{text-align:center;align-content:center;place-items:center;gap:.75rem;min-height:100vh;padding:2rem;display:grid}.standalone-error p{color:var(--muted)}@media (width<=1000px){.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-reset{justify-self:start}.goal-grid,.summary-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-card-grid .card:last-child{grid-column:1/-1}.contact-book-action-grid,.contact-book-status-grid{grid-template-columns:1fr}.contact-book-week-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=820px){.topbar-inner,.page-container{width:min(100% - 1.2rem,720px)}.topbar-inner{min-height:66px}.brand small{display:none}.nav-link{padding:0 .65rem;font-size:.8rem}.page-container{padding-top:1.2rem}.desktop-table-wrap{display:none}.mobile-card-list{gap:.75rem;display:grid}.senior-mobile-card{border:1px solid var(--line);background:var(--paper);box-shadow:var(--shadow);border-radius:15px;gap:.85rem;padding:1rem;display:grid}.mobile-card-heading{justify-content:space-between;align-items:flex-start;gap:.75rem;display:flex}.mobile-card-heading strong{color:var(--primary-dark);font-size:1.08rem}.mobile-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin:0;display:grid}.mobile-summary-grid dt{color:var(--muted);font-size:.7rem}.mobile-summary-grid dd{margin:.2rem 0 0;font-size:.82rem;font-weight:700}.record-layout,.report-layout{grid-template-columns:1fr}.record-layout aside{order:-1}.record-list{grid-template-columns:repeat(3,minmax(130px,1fr));overflow-x:auto}.record-list button{min-width:150px}.content-grid,.measurement-grid{grid-template-columns:1fr}.span-two{grid-column:auto}}@media (width<=700px){h1{font-size:1.7rem}.brand-mark{flex-basis:40px;width:40px;height:40px}.brand strong{text-overflow:ellipsis;white-space:nowrap;max-width:130px;overflow:hidden}.heading-with-action,.detail-hero{flex-direction:column;align-items:stretch}.page-actions{grid-template-columns:1fr 1fr;display:grid}.heading-with-action>.button,.detail-hero>.button{width:100%}.card{border-radius:15px;padding:1rem}.card-header{flex-direction:column;align-items:stretch}.card-actions,.card-actions .inline-actions{grid-template-columns:repeat(2,1fr);display:grid}.card-actions>.button:only-child{width:100%}.form-grid,.filter-grid,.food-category-grid,.checkbox-grid,.checkbox-list,.alert-choice-list,.radio-row,.summary-card-grid{grid-template-columns:1fr}.summary-card-grid .card:last-child,.search-field,.field-span-full{grid-column:auto}.filter-reset{width:100%}.detail-title-row{flex-direction:column;align-items:flex-start;gap:.55rem}.metric-row,.food-date-row,.fridge-toolbar,.fridge-metric-grid,.fridge-detail-grid{grid-template-columns:1fr}.fridge-week-range{justify-items:start}.contact-book-intro{flex-direction:column;align-items:flex-start}.contact-book-week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-count{grid-template-columns:auto auto 1fr}.weekly-tip{grid-template-columns:1fr}.range-action{flex-direction:column;align-items:stretch}.goal-grid{grid-template-columns:1fr}.desktop-activity-table{display:none}.mobile-activity-list{gap:.6rem;display:grid}.activity-day-card{border:1px solid var(--line);background:#fff;border-radius:11px;overflow:hidden}.activity-day-card summary{cursor:pointer;background:var(--paper-soft);justify-content:space-between;align-items:center;gap:.75rem;min-height:50px;padding:.7rem .8rem;list-style:none;display:flex}.activity-day-card summary::-webkit-details-marker{display:none}.activity-day-fields{gap:.7rem;padding:.8rem;display:grid}.activity-day-fields .field .input+.input{margin-top:.4rem}.activity-summary{grid-template-columns:1fr 1fr;display:grid}.sticky-save-bar{bottom:.5rem}.report-actions{grid-template-columns:1fr 1fr;display:grid}.toast-region{width:calc(100% - 1.2rem);bottom:.6rem;right:.6rem}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}::selection{color:#fff;background:var(--primary)}h2,h3,.field-label,.form-fieldset legend{color:var(--navy)}.page-heading{padding:.85rem 0 .45rem}.page-heading h1,.detail-hero h1{letter-spacing:-.035em}.eyebrow{color:var(--primary-dark)}.page-heading>p:last-child,.detail-hero>div>p:last-child{color:var(--muted)}.topbar-inner{min-height:78px}.brand-mark{border-radius:16px}.nav-link{border:1px solid #0000;transition:color .16s,background .16s,border-color .16s}.nav-link:hover,.nav-link.active{border-color:#0ea5e92e}.button{border-radius:13px;transition:transform .16s,background .16s,border-color .16s,box-shadow .16s;box-shadow:0 4px 12px #1e3a5f0a}.button-primary{border-color:var(--coral);color:#fff;background:var(--coral);box-shadow:0 10px 22px #ff6b6b38}.button-primary:hover:not(:disabled){background:var(--coral-dark);box-shadow:0 12px 26px #ff6b6b4d}.button-secondary{color:var(--navy);background:#fff;border-color:#b9d8e9}.button-secondary:hover:not(:disabled){border-color:var(--primary);color:var(--primary-dark);background:var(--primary-soft);box-shadow:0 8px 18px #0ea5e91a}.button-danger{color:var(--red);background:var(--red-soft);border-color:#c746464d}.button-ghost{color:var(--muted)}.button-ghost:hover:not(:disabled){color:var(--navy);background:var(--paper-soft)}.card{box-shadow:var(--shadow);border-color:#d7e7f2f0;border-radius:22px}.card-header{border-bottom-color:#e4f0f7}.card-header .eyebrow{background:var(--primary-soft);letter-spacing:.08em;border-radius:999px;margin-bottom:.42rem;padding:.23rem .5rem;display:inline-flex}.input{border-color:#bdd7e8;border-radius:14px;min-height:46px;box-shadow:inset 0 1px 1px #1e3a5f08}.input::placeholder{color:#8aa1b2}.input:hover{border-color:#83c8e8}.input:focus{border-color:var(--primary);outline:3px solid #0ea5e921;box-shadow:0 0 0 1px #0ea5e914}.desktop-table-wrap,.comparison-table-wrap,.activity-table-scroll{border-color:var(--line);box-shadow:var(--shadow);border-radius:20px}.data-table th,.data-table td,.comparison-table th,.comparison-table td,.activity-table th,.activity-table td{border-bottom-color:#e4f0f7}.data-table thead th,.comparison-table thead th,.activity-table thead th{color:var(--navy);background:linear-gradient(#edf9fe,#e1f4fc)}.data-table tbody tr:hover{background:#f3fbff}.table-primary-link,.back-link{color:var(--primary-dark)}.table-primary-link:hover,.back-link:hover{color:var(--primary)}.mini-progress,.progress-bar{background:#dceef7}.status-good{color:#0f5f59;background:var(--green-soft)}.status-warn{color:#8a5a05;background:var(--amber-soft)}.status-danger{color:#a63737;background:var(--red-soft)}.status-neutral{color:#5c7489;background:#edf3f7}.loading-block,.empty-state,.error-state{background:#ffffffd1;border-color:#b9d8e9;border-radius:20px}.spinner{border-color:#d8edf7}.measurement-bmi,.metric-row>div,.analysis-highlight,.note-box,.fridge-metric,.goal-card{background:var(--paper-soft)}.measurement-bmi strong,.contact-book-stat,.contact-book-week strong,.analysis-highlight strong,.big-metric strong,.mobile-card-heading strong{color:var(--primary-dark)}.choice-card,.food-category,.checkbox-list label,.radio-row label,.senior-mobile-card,.activity-day-card{border-color:var(--line);border-radius:14px}.choice-selected{color:var(--primary-dark);background:var(--primary-soft);border-color:#0ea5e994;box-shadow:0 6px 16px #0ea5e914}.choice-card:has(input:checked){color:var(--primary-dark);background:var(--primary-soft);border-color:#0ea5e994;box-shadow:0 6px 16px #0ea5e914}.checkbox-list label:has(input:checked){color:var(--primary-dark);background:var(--primary-soft);border-color:#0ea5e994;box-shadow:0 6px 16px #0ea5e914}.radio-row label:has(input:checked){color:var(--primary-dark);background:var(--primary-soft);border-color:#0ea5e994;box-shadow:0 6px 16px #0ea5e914}.sticky-save-bar{background:#fffffff0;border-color:#0ea5e947;border-radius:16px;box-shadow:0 16px 34px #1e3a5f2b}.detail-hero{border:1px solid var(--line);background:radial-gradient(circle at 96% 12%,#ff6b6b21,#0000 13rem),linear-gradient(135deg,#fff 0%,#f1faff 72%,#e7f7fd 100%);border-radius:24px}.tab-list{border-color:var(--line);border-radius:17px;box-shadow:0 8px 22px #1e3a5f0d}.tab-list button{border:1px solid #0000;transition:color .16s,background .16s,border-color .16s}.tab-list button:hover:not(.active){color:var(--primary-dark);background:var(--primary-soft);border-color:#0ea5e93d}.tab-list button.active,.segmented-control button.active{color:#fff;background:var(--primary);box-shadow:0 7px 16px #0ea5e92e}.segmented-control{border:1px solid var(--line);background:var(--paper-soft);border-radius:999px}.segmented-control button{border-radius:999px}.food-selected,.fridge-table thead th.selected,.fridge-table td.selected{background:var(--primary-soft);border-color:#0ea5e96b}.fridge-table-wrap{border-color:var(--line);border-radius:16px}.fridge-table thead th,.fridge-table tfoot th,.fridge-table tfoot td{background:#edf9fe}.fridge-cell{border-color:#b9d8e9}.fridge-cell.checked{border-color:var(--primary);background:var(--primary);box-shadow:0 5px 12px #0ea5e92e}.contact-book-intro{background:radial-gradient(circle at 95% 15%,#ff6b6b24,#0000 11rem),linear-gradient(120deg,#e5f6fd,#f7fcff);border:1px solid #0ea5e926}.contact-book-progress{color:var(--primary-dark);background:#ffffffd1;border-color:#0ea5e938}.contact-book-week:hover,.contact-book-week.completed,.goal-met{background:var(--green-soft);border-color:#0f766e59}.record-list button,.fridge-day-list button{background:var(--paper-soft);border-color:#0000}.record-list button:hover,.record-list button.active,.fridge-day-list button:hover,.fridge-day-list button.active{background:var(--primary-soft);border-color:#0ea5e957}.week-strip button,.milestone-strip button{border-color:var(--line)}.week-strip button.active,.milestone-strip button.active{border-color:var(--primary);background:var(--primary)}.weekly-tip{border:1px solid #b96f082e}.weekly-tip span{background:var(--amber)}.health-alert-banner,.export-success{border-radius:16px}.report-actions{border-top-color:#e4f0f7}.sheet-list{color:var(--navy)}.toast{border-color:var(--line);border-radius:16px;box-shadow:0 16px 34px #1e3a5f2e}@keyframes bright-fade-up{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.page-heading,.detail-hero{animation:.6s cubic-bezier(.22,1,.36,1) both bright-fade-up}.page-stack>.card,.page-stack>.desktop-table-wrap,.page-stack>.mobile-card-list,.tab-panel>*{animation:.5s cubic-bezier(.22,1,.36,1) both bright-fade-up}@supports (animation-timeline:view()){.tab-panel .card,.page-stack>.card{animation-name:bright-fade-up;animation-timeline:view();animation-range:entry cover 22%}}@media (width<=700px){.topbar-inner{min-height:70px}.page-container{padding-bottom:4.75rem}.button{min-height:46px}.card{border-radius:19px}.page-actions,.report-actions{gap:.55rem}.sticky-save-bar{border-radius:17px;margin:0 -.15rem;bottom:.65rem}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
