@font-face{font-family:Chakra Petch;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/chakra-petch-latin-500-normal-BR1ody1F.woff2)format("woff2"),url(/assets/chakra-petch-latin-500-normal-CnUQnZ4D.woff)format("woff")}@font-face{font-family:Chakra Petch;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/chakra-petch-latin-600-normal-DVQm9bgb.woff2)format("woff2"),url(/assets/chakra-petch-latin-600-normal-DQKfcdKo.woff)format("woff")}@font-face{font-family:Chakra Petch;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/chakra-petch-latin-700-normal-CnDBPjkL.woff2)format("woff2"),url(/assets/chakra-petch-latin-700-normal-D1s_c2du.woff)format("woff")}:root{--bg:#0d0911;--surface:#170f1d;--surface-2:#20152a;--text:#c4b8cb;--text-h:#f4ece3;--border:#3a2a44;--control-border:#8a6e98;--accent:#ff9147;--accent-strong:#ffb27a;--accent-bg:#ff91471a;--accent-border:#ff914780;--glow:#ff6a284d;--glow-soft:#ff6a2824;--cool:#6fdcd8;--danger:#ff7a8a;--horizon:#c04fd0;--shadow:0 8px 24px -12px #000c;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:"Chakra Petch", system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:17px/150% var(--sans);letter-spacing:.1px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (width<=1024px){:root{font-size:16px}}html{background:var(--bg)}body{background:radial-gradient(120% 60% at 50% -10%, var(--glow-soft), transparent 60%), radial-gradient(80% 40% at 50% 110%, #c04fd014, transparent 70%), var(--bg);background-attachment:fixed;min-height:100svh;margin:0}#root{text-align:left;box-sizing:border-box;flex-direction:column;width:480px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}h1,h2,h3{font-family:var(--heading);color:var(--text-h);font-weight:600}h1{letter-spacing:-.5px;text-shadow:0 0 18px var(--glow);margin:24px 0;font-size:40px}@media (width<=1024px){h1{margin:18px 0;font-size:32px}}h2{letter-spacing:.2px;margin:0 0 8px;font-size:22px;line-height:120%}h3{margin:0 0 6px;font-size:17px}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--surface-2);padding:4px 8px;font-size:15px;line-height:135%}button,input,select,textarea{font:inherit;color:var(--text-h)}button{background:var(--surface-2);border:1px solid var(--control-border);cursor:pointer;border-radius:8px;min-height:44px;padding:0 14px;transition:border-color .15s,box-shadow .15s,background-color .15s}button:hover:not(:disabled){border-color:var(--accent-border);box-shadow:0 0 14px -2px var(--glow-soft)}input,select,textarea{background:var(--bg);border:1px solid var(--control-border);box-sizing:border-box;border-radius:8px;min-height:44px;padding:8px 10px;font-size:16px}input[type=file]{color:var(--text);padding:6px}input[type=file]::file-selector-button{font:inherit;color:var(--text-h);background:var(--surface-2);border:1px solid var(--control-border);cursor:pointer;border-radius:6px;min-height:32px;margin-right:10px;padding:0 12px}input::placeholder,textarea::placeholder{color:var(--text);opacity:.7}input[type=checkbox],input[type=radio]{width:22px;height:22px;min-height:0;accent-color:var(--accent);margin:0;padding:0}a{color:var(--accent-strong)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px;box-shadow:0 0 0 5px var(--glow-soft)}::selection{color:var(--text-h);background:#ff914759}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}.today-screen{flex-direction:column;gap:16px;padding:16px;display:flex}.day-nav{justify-content:space-between;align-items:center;gap:8px;display:flex}.day-nav button{background:var(--surface-2);color:var(--text-h);border-radius:8px;padding:8px 14px;font-size:16px}.day-nav-date{flex:1;font-weight:600}.totals-header dl{grid-template-columns:repeat(2,1fr);gap:8px 16px;margin:0;display:grid}.totals-header div{border:1px solid var(--border);border-radius:8px;padding:8px 12px}.totals-header dt{color:var(--text);font-size:13px}.totals-header dd{color:var(--text-h);margin:0;font-size:20px;font-weight:600}.progress-remaining{color:var(--text);font-size:12px;font-weight:400;display:block}.progress-row-exceeded .progress-remaining{color:var(--danger)}.progress-bar{background:var(--border);border-radius:3px;height:6px;margin-top:4px;display:block;overflow:hidden}.progress-bar-fill{background:var(--accent);height:100%;display:block}.progress-row-exceeded .progress-bar-fill{background:var(--danger)}.add-buttons{gap:8px;display:flex}.add-buttons button{border:1px solid var(--accent-border);background:var(--accent-bg);color:var(--accent);border-radius:8px;flex:1;padding:10px;font-size:15px}.entry-form{border:1px solid var(--border);border-radius:8px;flex-direction:column;gap:10px;padding:16px;display:flex}.entry-form label{color:var(--text);flex-direction:column;gap:4px;font-size:14px;display:flex}.form-actions{gap:8px;display:flex}.form-actions button{border-radius:8px;flex:1;padding:10px;font-size:15px}.entry-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.entry-list li{border:1px solid var(--border);border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;display:flex}.entry-actions{flex-shrink:0;gap:6px;display:flex}.entry-actions button{background:var(--surface-2);padding:0 12px;font-size:14px}.entry-tabs{gap:8px;display:flex}.entry-tabs button{background:var(--surface-2);border-radius:8px;flex:1;min-height:44px;font-size:15px}.entry-tabs button[aria-selected=true]{background:var(--accent-bg);border-color:var(--accent-border);font-weight:600}.entry-list-empty{color:var(--text);font-size:14px}.undo-toast{background:var(--text-h);color:var(--bg);border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;display:flex;position:sticky;bottom:12px}.undo-toast button{color:var(--accent);background:0 0;border:none;font-weight:600}.sync-status{border-bottom:1px solid var(--border);flex-direction:column;gap:8px;padding:10px 16px;font-size:13px;display:flex}.sync-status-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.sync-status-row button{background:var(--surface-2);color:var(--text-h);padding:0 14px;font-size:14px}.sync-status-badge{color:var(--text-h);font-weight:600}.sync-status-time{color:var(--text)}.sync-status-error{color:var(--danger);margin:0}.sync-status-note{color:var(--text);margin:0}.beta-banner{background:var(--accent);color:#1a1206;text-align:center;margin:0;padding:6px 16px;font-size:13px;font-weight:600}.work-computer-toggle{min-height:44px;color:var(--text-h);align-items:center;gap:6px;display:inline-flex}.shortcut-run{margin-top:8px;display:inline-block}.conflict-log{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.conflict-log li{border:1px solid var(--border);border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;display:flex}.conflict-log-summary{flex-direction:column;gap:2px;display:flex}.conflict-log-time,.conflict-log-restored{color:var(--text);font-size:12px}.conflict-log-actions{flex-shrink:0;gap:6px;display:flex}.conflict-log-empty{color:var(--text);margin:0;font-size:13px}.app-nav{border-bottom:1px solid var(--border);scrollbar-width:none;gap:8px;padding:8px 16px;display:flex;overflow-x:auto}.app-nav button{border:1px solid var(--border);background:var(--surface-2);color:var(--text);border-radius:6px;flex:1 0 auto;padding:8px;font-size:14px}.app-nav button[aria-current=page]{background:var(--accent-bg);color:var(--accent);border-color:var(--accent-border);font-weight:600}.settings-screen,.trends-screen,.diagnostics-screen,.insights-screen,.plan-screen{padding:16px;padding-bottom:max(16px, env(safe-area-inset-bottom,0px));flex-direction:column;gap:16px;display:flex}.trends-screen section{flex-direction:column;gap:8px;display:flex}.trends-empty{color:var(--text);font-size:14px}.trend-chart{width:100%;max-width:480px;height:auto}.trend-chart-line{stroke:var(--accent);stroke-width:2px}.trend-chart-raw-line{stroke:var(--text);stroke-width:1px;opacity:.4}.trend-chart-goal-line{stroke:var(--text);stroke-dasharray:4 4;stroke-width:1px}.trend-chart-goal-indicator{fill:var(--text-h);font-size:10px;font-weight:600}.trend-chart-gridline{stroke:var(--border);stroke-width:1px}.trend-chart-y-label,.trend-chart-x-label{fill:var(--text);font-size:9px}.trend-chart-legend{color:var(--text);margin:0;font-size:12px}.exercise-history{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.exercise-history li{border:1px solid var(--border);border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;font-size:14px;display:flex}.trends-subnav{gap:8px;display:flex}.trends-subnav button{border:1px solid var(--border);background:var(--surface-2);color:var(--text);border-radius:6px;flex:1;padding:8px;font-size:14px}.trends-subnav button[aria-current=page]{background:var(--accent-bg);color:var(--accent);border-color:var(--accent-border);font-weight:600}.weight-history{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.weight-history li{border:1px solid var(--border);border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;display:flex}.pending-drafts-banner{border:1px solid var(--accent-border);background:var(--accent-bg);border-radius:8px;margin-bottom:8px;padding:10px 12px}.pending-drafts-banner p{margin:0 0 6px;font-weight:600}.pending-drafts-banner ul{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.pending-drafts-banner li{justify-content:space-between;align-items:center;gap:8px;display:flex}.diagnostics-list{flex-direction:column;gap:6px;margin:0 0 16px;display:flex}.diagnostics-list>div{border-bottom:1px solid var(--border);justify-content:space-between;gap:8px;padding-bottom:4px;display:flex}.diagnostics-list dt{color:var(--text)}.diagnostics-list dd{margin:0;font-weight:600}.diagnostics-debug-toggle{align-items:center;gap:8px;margin-bottom:16px;display:flex}.calorie-calculator{border:1px solid var(--border);border-radius:8px;padding:12px 16px}.calorie-calculator-fields,.mfp-import{flex-direction:column;gap:10px;display:flex}.calorie-calculator-fields label,.mfp-import label{color:var(--text);flex-direction:column;gap:4px;font-size:14px;display:flex}.calorie-calculator-result{margin-top:8px}.mfp-import-errors{color:var(--danger)}.mfp-import-errors ul{margin:4px 0 0;padding-left:20px}.totals-header div,.entry-form,.entry-list li,.conflict-log li,.exercise-history li,.weight-history li,.calorie-calculator{background:var(--surface);box-shadow:var(--shadow)}.totals-header dd,.diagnostics-list dd{font-family:var(--heading);letter-spacing:.3px}.totals-header dd{text-shadow:0 0 14px var(--glow-soft);font-size:22px}.progress-bar{background:var(--bg);border:1px solid var(--border);box-sizing:border-box;border-radius:4px;height:8px}.progress-bar-fill{background:linear-gradient(90deg, #d9531e, var(--accent) 70%, var(--accent-strong));box-shadow:0 0 10px 0 var(--glow);border-radius:4px}.progress-row-exceeded .progress-bar-fill{background:var(--danger);box-shadow:0 0 10px #ff7a8a59}.progress-row-exceeded{border-color:var(--danger)}.add-buttons button{box-shadow:0 0 16px -6px var(--glow);font-weight:600}.app-nav{background:var(--surface);border-bottom-color:var(--border);box-shadow:0 1px 0 0 var(--glow-soft)}.app-nav button,.trends-subnav button{border-color:var(--border);background:0 0;min-height:44px}.app-nav button[aria-current=page],.trends-subnav button[aria-current=page]{background:var(--accent-bg);box-shadow:inset 0 -2px 0 0 var(--accent), 0 6px 14px -8px var(--glow)}.undo-toast{background:var(--surface-2);color:var(--text-h);border:1px solid var(--accent-border);box-shadow:0 0 18px -4px var(--glow)}.pending-drafts-banner{box-shadow:0 0 18px -8px var(--glow)}.sync-status{background:var(--surface)}.trend-chart-line{stroke-width:2.5px;filter:drop-shadow(0 0 4px var(--glow))}.trend-chart-point{fill:var(--accent-strong)}.app-nav{gap:6px;padding:8px}.app-nav button,.trends-subnav button{flex:auto;min-width:0;padding:8px 6px;font-size:13px}.add-buttons{flex-wrap:wrap}.add-buttons button{flex:30%;min-width:0}.totals-header dd{font-size:18px}.meal-estimate-flow,.meal-estimate-review,.exercise-review,.calorie-calculator{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:8px;flex-direction:column;gap:12px;padding:16px;display:flex}.meal-estimate-flow>form{flex-direction:column;gap:10px;display:flex}.meal-estimate-flow label,.meal-estimate-review label,.exercise-review label,.sets-editor label{color:var(--text);flex-direction:column;gap:4px;font-size:14px;display:flex}.meal-estimate-review>p:first-child,.exercise-review>p:first-child{font-family:var(--heading);color:var(--text-h);font-size:18px;font-weight:600}.meal-estimate-review ul[aria-label=Estimated\ items]{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.meal-estimate-review ul[aria-label=Estimated\ items] li{color:var(--text-h);background:var(--bg);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:2px;max-width:100%;padding:6px 12px;font-size:14px;display:flex}.estimate-item-detail{color:var(--text);overflow-wrap:anywhere;font-size:13px}.meal-estimate-review .estimate-item-scale{color:var(--text);flex-direction:row;align-items:center;gap:8px;margin-top:4px;font-size:13px;display:flex}.meal-estimate-review .estimate-item-scale input{width:6.5em;min-height:44px}.exercise-review .exercise-row{border:1px solid var(--border);background:var(--bg);border-radius:8px;flex-direction:column;gap:8px;min-width:0;margin:0;padding:12px;display:flex}.exercise-review .exercise-row-fields{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;display:grid}.exercise-review .exercise-row-footer{align-items:flex-end;gap:8px;display:flex}.exercise-review .exercise-row-footer label{flex:1;min-width:0}.exercise-review .exercise-row-fields input,.exercise-review .exercise-row-footer input{box-sizing:border-box;width:100%;min-width:0}.exercise-review .exercise-row-footer button{min-height:44px}.exercise-review .exercise-total{font-family:var(--heading);color:var(--text-h);margin:0;font-size:16px}.exercise-add-sheet .meal-add-links{align-items:center}.estimate-notes,.parse-notes,.calorie-calculator-intro,.field-note{color:var(--text);border-left:2px solid var(--cool);padding:2px 0 2px 10px;font-size:14px}.meal-estimate-error,.exercise-log-error{border:1px solid var(--danger);background:var(--bg);color:var(--text-h);border-radius:8px;flex-direction:column;gap:8px;padding:12px;display:flex}.meal-estimate-error button,.exercise-log-error button{width:100%}.recent-meals{border-top:1px solid var(--border);flex-direction:column;gap:8px;padding-top:12px;display:flex}.recent-meals>details>summary{cursor:pointer;line-height:44px;font-family:var(--heading);color:var(--text-h);font-size:16px;display:list-item}.recent-meals>details>*+*{margin-top:8px}.recent-meals ul{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.recent-meals li label{border:1px solid var(--control-border);background:var(--bg);min-height:44px;color:var(--text-h);border-radius:8px;flex-direction:row;align-items:center;gap:10px;padding:0 12px;font-size:15px;display:flex}.recent-meals li label:has(input:checked){border-color:var(--accent-border);background:var(--accent-bg)}.recent-meals input[type=checkbox]{width:20px;height:20px;accent-color:var(--accent);flex:none}.recent-meal-name{overflow-wrap:anywhere;flex:auto;min-width:0}.recent-meal-detail,.recent-meals-empty{color:var(--text);font-size:13px}.meal-entry-panel{position:relative}.meal-entry-panel>form{padding-top:4px}.meal-entry-panel>form>label[for=food-description]{padding-right:48px}.panel-close{width:44px;height:44px;min-height:44px;color:var(--text);background:0 0;border-color:#0000;padding:0;font-size:26px;line-height:1;position:absolute;top:6px;right:6px}.panel-close:hover{color:var(--text-h)}.meal-entry-panel .form-actions button{flex:1 1 0}details.food-search>summary{cursor:pointer;line-height:44px;font-family:var(--heading);color:var(--text-h);font-size:15px;display:list-item}.food-search{border-top:1px solid var(--border);flex-direction:column;gap:8px;padding-top:12px;display:flex}.food-search h3{font-family:var(--heading);color:var(--text-h);margin:0;font-size:16px}.food-search form{flex-direction:column;gap:10px;display:flex}.food-search label{color:var(--text);flex-direction:column;gap:4px;font-size:14px;display:flex}.food-search-results{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.food-search-results button{text-align:left;background:var(--bg);flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-height:44px;display:flex}.food-result-name{color:var(--text-h);overflow-wrap:anywhere}.food-result-detail,.food-search-empty{color:var(--text);overflow-wrap:anywhere;font-size:13px}.food-search-error{border:1px solid var(--danger);color:var(--text-h);background:var(--bg);border-radius:8px;padding:10px 12px}.meal-add-links{flex-wrap:wrap;gap:8px;display:flex}.link-button{min-height:44px;color:var(--accent);text-underline-offset:3px;background:0 0;border-color:#0000;padding:8px 4px;text-decoration:underline}.copy-meals-review{flex-direction:column;gap:12px;display:flex}.copy-meal-card{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:8px;flex-direction:column;gap:10px;min-width:0;margin:0;padding:16px;display:flex}.copy-meal-card legend{font-family:var(--heading);color:var(--text-h);padding:0 4px;font-size:17px;font-weight:600}.copy-meal-card label{color:var(--text);flex-direction:column;gap:4px;font-size:14px;display:flex}.copy-meal-card ul{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.copy-meal-card li{color:var(--text-h);flex-direction:column;font-size:14px;display:flex}.sets-editor{flex-direction:column;gap:8px;display:flex}.sets-editor>p{color:var(--text);font-size:14px}.sets-editor ul{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.sets-editor li{border:1px solid var(--border);background:var(--bg);border-radius:8px;grid-template-columns:1fr 1fr;gap:8px;padding:10px;display:grid}.sets-editor li>label:first-child,.sets-editor li>button{grid-column:1/-1}.sets-editor input{width:100%}.sets-editor>button{align-self:flex-start}.insights-screen section{flex-direction:column;gap:8px;display:flex}.insights-tdee,.insights-adherence{grid-template-columns:1fr 1fr;gap:8px;margin:0;display:grid}.insights-tdee>div,.insights-adherence>div{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:8px;flex-direction:column;justify-content:space-between;gap:6px;padding:10px 12px;display:flex}.insights-tdee dt,.insights-adherence dt{color:var(--text-h);font-size:14px}.stat-hint{color:var(--text);margin-top:2px;font-size:13px;line-height:140%;display:block}.insights-tdee dd,.insights-adherence dd{font-family:var(--heading);color:var(--text-h);font-variant-numeric:tabular-nums;margin:0;font-size:19px;font-weight:600}.insights-tdee>.insights-stat-primary{border-color:var(--accent-border);box-shadow:0 0 18px -8px var(--glow);grid-column:1/-1}.insights-stat-primary dd{color:var(--accent-strong);text-shadow:0 0 14px var(--glow-soft);font-size:26px}.insights-empty{color:var(--text);font-size:14px}.insights-warning{color:var(--danger);margin:0;font-size:14px}.weigh-in-warning{color:var(--danger);margin:0;font-size:14px;display:block}.insights-suspect{font-family:var(--sans);color:var(--danger);font-size:13px;font-weight:400;display:block}.insights-granularity{gap:8px;display:flex}.insights-granularity button{border-color:var(--border);color:var(--text);background:0 0;flex:1;font-size:14px}.insights-granularity button[aria-current=page]{background:var(--accent-bg);color:var(--accent);border-color:var(--accent-border);box-shadow:inset 0 -2px 0 0 var(--accent), 0 6px 14px -8px var(--glow);font-weight:600}.insights-rollup-scroll{border:1px solid var(--border);background:var(--surface);border-radius:8px;overflow-x:auto}.insights-rollup-table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:14px}.insights-rollup-table th,.insights-rollup-table td{text-align:right;vertical-align:top;border-bottom:1px solid var(--border);padding:8px}.insights-rollup-table th:first-child,.insights-rollup-table td:first-child{text-align:left}.insights-rollup-table td:first-child{min-width:6.4em;color:var(--text-h)}.insights-rollup-table th{font-family:var(--heading);color:var(--text-h);background:var(--surface-2);font-size:13px;font-weight:600}.insights-rollup-table tbody tr:last-child td{border-bottom:none}.target-calculator-section{margin-bottom:16px}.target-calculator-section>summary{cursor:pointer;align-items:center;min-height:44px;font-weight:600;display:flex}.calorie-calculator h2{margin:0}.calorie-calculator-fields{margin-top:0}.calorie-calculator-result{border:1px solid var(--accent-border);background:var(--bg);box-shadow:0 0 18px -8px var(--glow);border-radius:8px;flex-direction:column;gap:10px;padding:12px;display:flex}.calorie-calculator-result strong{font-family:var(--heading);color:var(--accent-strong);font-size:22px}.diagnostics-screen>section{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.diagnostics-list dd{color:var(--text-h)}.diagnostics-debug-toggle{cursor:pointer;min-height:44px}.settings-diagnostics>button,.conflict-log{align-self:stretch}.conflict-log li{flex-wrap:wrap}.conflict-log-summary{overflow-wrap:anywhere;flex:220px;min-width:0}.conflict-log-actions{flex-wrap:wrap;flex-shrink:1}.mfp-import{align-self:stretch}.mfp-import-preview{flex-direction:column;gap:8px;display:flex}.mfp-import-errors{border:1px solid var(--danger);background:var(--bg);border-radius:8px;padding:10px 12px}.barcode-scan-flow{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);border-radius:8px;flex-direction:column;gap:12px;padding:16px;display:flex}.barcode-scan-flow>form{flex-direction:column;gap:10px;display:flex}.barcode-scan-flow label,.health-sync-banner label,.shortcut-pairing label{color:var(--text);flex-direction:column;gap:4px;font-size:14px;display:flex}.barcode-viewfinder{aspect-ratio:4/3;border:1px solid var(--accent-border);background:var(--bg);max-height:260px;box-shadow:0 0 18px -6px var(--glow);border-radius:8px;position:relative;overflow:hidden}.barcode-viewfinder video{object-fit:cover;width:100%;height:100%;display:block;position:absolute;inset:0}.barcode-viewfinder:after{content:"";border-top:2px solid var(--accent);box-shadow:0 0 8px var(--glow);pointer-events:none;position:absolute;top:50%;left:12%;right:12%}.barcode-hint{color:var(--text);margin:0;padding:8px 12px;font-size:14px}.health-sync-banner{border:1px solid var(--accent-border);border-left:3px solid var(--cool);background:var(--accent-bg);box-shadow:0 0 18px -8px var(--glow);border-radius:8px;margin-bottom:8px;padding:10px 12px}.health-sync-title{color:var(--text-h);margin:0 0 8px;font-weight:600}.health-sync-banner ul{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.health-sync-banner li{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.health-sync-banner li>span:first-child{overflow-wrap:anywhere;min-width:0;color:var(--text-h);flex:180px}.health-sync-actions{gap:6px;display:flex}.health-sync-banner button,.shortcut-pairing button,.barcode-scan-flow button{min-height:44px}.health-sync-banner .entry-form{margin-top:8px}.shortcut-pairing{border-top:1px solid var(--border);flex-direction:column;gap:10px;margin-top:16px;padding-top:16px;display:flex}.shortcut-pairing h2{font-family:var(--heading);color:var(--text-h);margin:0;font-size:18px}.shortcut-key{flex-direction:column;gap:8px;display:flex}.shortcut-key input{font-family:var(--mono);min-width:0;font-size:14px}.app-header{border-bottom:1px solid var(--border);background:var(--surface);align-items:flex-start;display:flex}.app-header>.sync-status{border-bottom:none;flex:auto;min-width:0}.beta-link{min-height:44px;color:var(--text-h);background:var(--surface-2);border:1px solid var(--border);border-radius:8px;flex:none;align-items:center;margin:10px 8px 10px 0;padding:0 12px;font-size:14px;text-decoration:none;display:inline-flex}.feedback-button{background:var(--surface-2);min-height:44px;color:var(--text-h);flex:none;margin:10px 16px 10px 0;padding:0 14px;font-size:14px;position:relative}.feedback-button[aria-current=page]{border-color:var(--accent-border);color:var(--accent-strong)}.feedback-badge{background:var(--accent);color:#1a1206;border-radius:10px;justify-content:center;align-items:center;min-width:20px;height:20px;margin-left:6px;padding:0 6px;font-size:12px;font-weight:700;display:inline-flex}.report-link{margin:0}.report-link .link-button{color:var(--text);font-size:14px}.feedback-sheet-backdrop{z-index:90;background:#0d0911b8;justify-content:center;align-items:flex-start;padding:16px;display:flex;position:fixed;inset:0;overflow-y:auto}.feedback-sheet{box-sizing:border-box;border:1px solid var(--border);background:var(--surface);width:100%;max-width:560px;box-shadow:var(--shadow);border-radius:12px;flex-direction:column;gap:12px;padding:16px;display:flex;position:relative}.feedback-sheet h2{padding-right:48px}.feedback-sheet textarea{font:inherit;flex:none}.feedback-kind{gap:8px;display:flex}.feedback-kind button{flex:1 1 0;min-height:44px}.feedback-kind button[aria-pressed=true],.feedback-where button[aria-pressed=true]{background:var(--accent-bg);border-color:var(--accent-border);color:var(--accent-strong)}.feedback-where{border:none;flex-wrap:wrap;gap:8px;margin:0;padding:0;display:flex}.feedback-where legend{color:var(--text-h);margin-bottom:8px;padding:0}.feedback-where button{min-height:44px;padding:0 12px;font-size:14px}.feedback-pictures{flex-wrap:wrap;gap:8px;display:flex}.feedback-pictures:empty{display:none}.feedback-thumb{border:1px solid var(--border);background:var(--surface-2);border-radius:8px;width:72px;height:72px;position:relative;overflow:hidden}.feedback-thumb img,.feedback-picture-loading{object-fit:cover;width:100%;height:100%;display:block}.feedback-thumb>button:not(.feedback-picture-open){width:44px;height:44px;min-height:44px;color:var(--text-h);background:#0d091199;border-color:#0000;padding:0;font-size:22px;line-height:1;position:absolute;top:0;right:0}.feedback-picture-open{background:0 0;border:none;width:100%;height:100%;min-height:44px;padding:0;display:block}.feedback-add-picture,.feedback-build-now{color:var(--text-h);flex-direction:column;gap:6px;display:flex}.feedback-build-now{flex-direction:row;align-items:center;min-height:44px}.feedback-add-picture-full{color:var(--text)}.feedback-screen{flex-direction:column;gap:16px;padding:16px;display:flex}.feedback-screen h1{margin:0}.feedback-new{align-self:flex-start;min-height:44px}.feedback-screen>section{flex-direction:column;gap:8px;display:flex}.feedback-list{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.feedback-card{border:1px solid var(--border);background:var(--surface);overflow-wrap:anywhere;border-radius:8px;flex-direction:column;gap:8px;padding:12px 16px;display:flex}.feedback-card label{flex-direction:column;gap:6px;display:flex}.feedback-card textarea{font:inherit}.feedback-card-head{flex-wrap:wrap;justify-content:space-between;gap:8px;display:flex}.feedback-kind-label{color:var(--text-h);font-weight:700}.feedback-status{color:var(--accent-strong)}.feedback-text{color:var(--text-h);white-space:pre-wrap}.feedback-meta{font-size:13px}.feedback-note,.feedback-question{font-size:14px}.feedback-question{color:var(--text-h)}.feedback-card .form-actions button,.feedback-card .form-actions .feedback-link{flex:1 1 0}.feedback-link{border:1px solid var(--control-border);background:var(--surface-2);min-height:44px;color:var(--text-h);text-align:center;border-radius:8px;justify-content:center;align-items:center;padding:0 14px;text-decoration:none;display:inline-flex}.feedback-link:hover{border-color:var(--accent-border)}details.feedback-done>summary{color:var(--text-h);line-height:44px;display:list-item}details.feedback-done>.feedback-list{margin-top:8px}.feedback-enlarged{z-index:95;background:#0d0911eb;border:none;border-radius:0;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.feedback-enlarged img{max-width:100%;max-height:100%}.build-runs{flex-direction:column;gap:8px;display:flex}.release-card{border:1px solid var(--accent-border);background:var(--surface);box-shadow:0 0 24px -8px var(--glow);border-radius:12px;flex-direction:column;gap:8px;padding:12px 16px;display:flex}.release-card ul{margin:0;padding-left:20px}.release-card .form-actions button{flex:1 1 0}button:disabled{opacity:.45;cursor:not-allowed;background:var(--surface);color:var(--text);border-color:var(--border);box-shadow:none}.settings-diagnostics{border-top:1px solid var(--border);flex-direction:column;align-items:flex-start;gap:12px;padding-top:16px;display:flex}.settings-diagnostics>.diagnostics-screen{align-self:stretch;padding:0}.plan-goal,.plan-goal-form,.plan-day{border:1px solid var(--border);background:var(--surface);border-radius:8px;flex-direction:column;gap:8px;min-width:0;padding:12px 16px;display:flex}.plan-goal-form label{color:var(--text);flex-direction:column;gap:4px;font-size:14px;display:flex}.plan-goal-form .exercise-row-fields{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;display:grid}.plan-goal-form input,.plan-goal-form select,.plan-goal-form textarea{box-sizing:border-box;width:100%;min-width:0}.plan-goal-summary{font-family:var(--heading);color:var(--text-h);margin:0;font-weight:600}.plan-goal p,.plan-day p,.plan-disclaimer{margin:0}.plan-week{flex-direction:column;gap:12px;display:flex}.plan-week-notes{color:var(--text);border-left:3px solid var(--accent-border);margin:0;padding-left:10px;font-size:14px}.plan-day h3{color:var(--text-h);margin:0;font-size:15px}.plan-day-today{border-color:var(--accent-border)}.plan-day ul{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.plan-item{justify-content:space-between;align-items:center;gap:12px;display:flex}.plan-item-text{overflow-wrap:anywhere;flex-direction:column;gap:2px;min-width:0;display:flex}.plan-item-name{color:var(--text-h);font-weight:600}.plan-item-detail{color:var(--text);font-size:14px}.plan-item button{flex-shrink:0;min-height:44px}.plan-item-status{color:var(--accent);flex-shrink:0;font-weight:600}.plan-item-done .plan-item-name{color:var(--text)}.plan-editor-day{flex-direction:column;gap:8px;min-width:0;display:flex}.plan-editor-day h3{color:var(--text-h);margin:0;font-size:15px}.plan-week-editor select,.plan-week-editor .exercise-row>label input{box-sizing:border-box;width:100%;min-width:0}.plan-week>.link-button{align-self:flex-start}.plan-feedback{border:1px solid var(--border);background:var(--surface);border-radius:8px;flex-direction:column;gap:8px;padding:12px 16px;display:flex}.plan-feedback label{color:var(--text);flex-direction:column;gap:4px;font-size:14px;display:flex}.plan-feedback textarea{box-sizing:border-box;width:100%}.plan-feedback p{margin:0}.plan-feedback-list{color:var(--text);margin:0;padding-left:18px;font-size:14px}.plan-item-actions{flex-direction:column;flex-shrink:0;gap:6px;display:flex}.streak-card{border:1px solid var(--accent-border);background:var(--accent-bg);border-radius:8px;flex-direction:column;gap:4px;padding:12px 16px;display:flex}.streak-card p{margin:0}.streak-card-count{font-family:var(--heading);color:var(--text-h);font-size:20px;font-weight:600}.celebration-settings{border-top:1px solid var(--border);flex-direction:column;gap:4px;margin-top:16px;padding-top:16px;display:flex}.celebration-settings p{margin:0}.celebration-sound-toggle{min-height:44px;color:var(--text-h);align-items:center;gap:8px;display:inline-flex}.streak-celebration{z-index:100;background:#0d0911b8;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.streak-confetti{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.streak-celebration-card{box-sizing:border-box;border:1px solid var(--accent-border);background:var(--surface);width:100%;max-width:360px;box-shadow:0 0 40px var(--glow);text-align:center;border-radius:12px;flex-direction:column;gap:8px;padding:20px;display:flex;position:relative}.streak-celebration-card h2{font-family:var(--heading);color:var(--text-h);margin:0}.streak-celebration-card p{margin:0}.streak-celebration-burst{font-size:48px;line-height:1.1}.streak-celebration-card button{min-height:44px}.plan-day>summary{cursor:pointer;align-items:center;min-height:44px;display:flex}.plan-day[open]>summary{margin-bottom:8px}.feedback-ready,.tonights-ideas{border-color:var(--accent-border)}.tonights-ideas h2{margin:0}.tonights-ideas-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.tonights-ideas-list label{border:1px solid var(--border);background:var(--bg);cursor:pointer;border-radius:8px;flex-direction:row;align-items:flex-start;gap:12px;min-height:44px;padding:10px 12px}.tonights-ideas-list label:has(input:checked){border-color:var(--accent-border);background:var(--accent-bg)}.tonights-ideas-list input[type=checkbox]{width:20px;height:20px;accent-color:var(--accent);flex:none;margin-top:2px}.tonights-idea-body{flex-direction:column;gap:2px;min-width:0;display:flex}.tonights-idea-category{letter-spacing:.04em;text-transform:uppercase;color:var(--accent-strong);font-size:12px;font-weight:700}.tonights-idea-title{color:var(--text-h);font-weight:700}.tonights-idea-detail{font-size:14px}
