:root{color-scheme:light;--app-viewport-height: 100dvh;--bg: #f7f8f8;--surface: #ffffff;--surface-alt: #f1f2f4;--surface-hover: #ebedf0;--border: #d8dee3;--border-strong: #c3c9ce;--border-interactive: #808790;--text: #1a1d23;--text-secondary: #4e5560;--text-tertiary: #626b78;--accent: #0f7e4e;--accent-soft: #e8f8ef;--accent-ink: #0f7e4e;--accent-edge: #0f7e4e;--accent-line: #0f7e4e;--on-accent: #ffffff;--success: #046c4e;--error: #b42318;--error-soft: #fdeceb;--on-danger: #ffffff;--scrim: rgb(11 13 16 / .42);--scrim-strong: rgb(11 13 16 / .5);--backdrop-heavy: rgb(0 0 0 / .84);--backdrop-solid: #e8ecea;--backdrop-dark: #121719;--chart-average: #87938f;--shadow-xs: 0 1px 2px rgb(16 24 40 / .04);--shadow-sm: 0 1px 3px rgb(16 24 40 / .06), 0 1px 2px rgb(16 24 40 / .04);--shadow-nav: 0 5px 18px rgb(32 48 47 / .1);--shadow-dialog: 0 10px 30px rgb(0 0 0 / .2);--shadow-phone: 0 20px 60px rgb(23 48 43 / .16);--nav-material: color-mix(in srgb, var(--surface) 90%, transparent);--nav-edge: color-mix(in srgb, var(--border-interactive) 34%, transparent);--lightbox-text: #ffffff;--lightbox-border: rgb(255 255 255 / .35);--lightbox-control: rgb(0 0 0 / .3);--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 24px;--space-6: 32px;--space-7: 48px;--space-8: 64px;--radius: 10px;--radius-capsule: 999px;--radius-sheet: 26px;--dur-fast: .12s;--dur-base: .18s;--ease-out: cubic-bezier(.16, 1, .3, 1);--font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;font-family:var(--font-sans);color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-variant-numeric:lining-nums tabular-nums}:root[data-theme=dark]{color-scheme:dark;--bg: #0b0d10;--surface: #121519;--surface-alt: #0e1116;--surface-hover: #1a1e23;--border: #262b31;--border-strong: #363c44;--border-interactive: #626a78;--text: #f2f4f7;--text-secondary: #a8b0ba;--text-tertiary: #7e858f;--accent: #3ecf8e;--accent-soft: #11291f;--accent-ink: var(--accent);--accent-edge: var(--accent);--accent-line: var(--accent);--on-accent: #0b0d10;--success: #5fd39b;--error: #ff8a8a;--error-soft: #3a1b1c;--on-danger: #0b0d10;--scrim: rgb(0 0 0 / .52);--scrim-strong: rgb(0 0 0 / .64);--backdrop-heavy: rgb(0 0 0 / .9);--backdrop-solid: #121719;--backdrop-dark: #0b0d10;--chart-average: #8b9695;--shadow-xs: 0 1px 2px rgb(0 0 0 / .16);--shadow-sm: 0 1px 3px rgb(0 0 0 / .22), 0 1px 2px rgb(0 0 0 / .14)}*{box-sizing:border-box}html,body,#root{width:100%;height:var(--app-viewport-height, 100dvh);min-height:0;margin:0}html{overflow:hidden;background:var(--bg)}body{overflow:hidden;font-size:14px;line-height:1.7;letter-spacing:.02em;text-autospace:normal}body,button,input,textarea{font-family:var(--font-sans)}button,input,textarea{font-size:inherit;letter-spacing:inherit}button{color:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.app-phone:not(.keyboard-nav) :focus,.app-phone:not(.keyboard-nav) :focus-visible{outline:none;outline-offset:0;box-shadow:none}.app-phone.keyboard-nav :focus-visible{outline:2px solid var(--accent-edge);outline-offset:2px}button:disabled{cursor:not-allowed;opacity:.56}::selection{color:var(--on-accent);background:var(--accent)}.app-phone{isolation:isolate;position:relative;display:flex;width:100%;height:100%;min-height:0;flex-direction:column;overflow:hidden;color:var(--text);background:var(--bg)}.desktop-status{display:none;min-height:34px;align-items:center;justify-content:space-between;padding:0 var(--space-5);color:var(--text);font-size:12px;font-weight:600;letter-spacing:0;font-variant-numeric:tabular-nums}.desktop-status-icons{display:flex;align-items:center;gap:var(--space-2)}.signal-bars{width:16px;height:10px;background:linear-gradient(to right,currentColor 0 3px,transparent 3px 5px,currentColor 5px 8px,transparent 8px 10px,currentColor 10px 13px,transparent 13px 15px,currentColor 15px 16px);clip-path:polygon(0 50%,0 100%,25% 100%,25% 33%,50% 33%,50% 100%,75% 100%,75% 12%,100% 12%,100% 100%)}.battery-outline{position:relative;width:18px;height:9px;border:1.4px solid currentColor;border-radius:3px}.battery-outline:before{content:"";position:absolute;inset:1.5px 3px 1.5px 1.5px;border-radius:1px;background:currentColor}.battery-outline:after{content:"";position:absolute;right:calc(-1 * var(--space-1));top:0;width:2px;height:4px;border-radius:0 2px 2px 0;background:currentColor}.app-header{display:flex;min-height:calc(env(safe-area-inset-top) + var(--space-8));align-items:center;justify-content:space-between;gap:var(--space-3);padding:calc(env(safe-area-inset-top) + var(--space-2)) var(--space-4) var(--space-2);background:var(--bg)}.app-brand,.header-side,.sync-indicator,.app-brand>span:last-child,.panel-title,.panel-title>div,.section-block,.calendar-heading,.calendar-legend,.calendar-legend button,.legend,.metric-grid,.target-detail,.signed-in-card,.account-copy,.sync-benefit,.form-footer,.form-grid,.photo-heading,.form-error,.confirm-actions,.theme-options,.theme-choice,.bottom-nav,.nav-item,.record-nav-action,.photo-strip,.photo-placeholder,.update-banner,.toast-message,.trend-value-row,.entry-actions,.chart-tooltip{display:flex;align-items:center}.app-brand{min-height:44px;gap:var(--space-2);padding:0;border:0;background:none;cursor:pointer;color:var(--text);font-size:16px;font-weight:650}.brand-mark{display:inline-grid;width:34px;height:34px;flex:none;place-items:center;border:1px solid var(--accent-edge);border-radius:var(--radius);color:var(--on-accent);background:var(--accent)}.brand-mark svg{width:20px;height:20px;stroke-width:1.8}.header-side{min-width:0;justify-content:flex-end;gap:var(--space-2)}.sync-indicator{max-width:200px;min-height:38px;gap:var(--space-1);overflow:hidden;color:var(--text-secondary);font-size:12px;white-space:nowrap}.sync-indicator svg{width:15px;height:15px;flex:none;color:var(--accent-ink);stroke-width:1.8}.sync-indicator.is-offline svg{color:var(--text-tertiary)}.icon-button{display:inline-grid;width:44px;height:44px;flex:none;place-items:center;padding:0;border:1px solid transparent;border-radius:var(--radius);background:transparent;color:var(--text-secondary);cursor:pointer;transition:background var(--dur-fast) ease,color var(--dur-fast) ease}.icon-button svg{width:19px;height:19px;stroke-width:1.8}.icon-button:hover{background:var(--surface-hover);color:var(--text)}.header-theme{border-color:var(--border);background:var(--surface);color:var(--text-secondary)}.login-reminder{display:flex;min-height:52px;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);border-radius:var(--radius);color:var(--text);background:var(--accent-soft);font-size:13px;font-weight:600}.login-reminder>svg{width:18px;height:18px;flex:none;color:var(--accent-ink)}.login-reminder>span{flex:1}.login-reminder button{display:inline-flex;min-height:44px;align-items:center;gap:0;padding:0 var(--space-1);border:0;background:transparent;color:var(--accent-ink);font:inherit;font-weight:700;white-space:nowrap;cursor:pointer}.login-reminder button svg{width:16px;height:16px}.record-detail-header{position:relative;display:flex;min-height:calc(60px + env(safe-area-inset-top));flex:none;align-items:center;justify-content:space-between;gap:var(--space-2);padding:calc(env(safe-area-inset-top) + var(--space-1)) var(--space-4) var(--space-1);background:var(--bg)}.record-detail-header h1{position:absolute;left:50%;margin:0;font-size:16px;font-weight:630;transform:translate(-50%)}.detail-back-button{display:inline-flex;min-width:88px;min-height:44px;align-items:center;gap:0;padding:0 var(--space-1) 0 0;border:0;border-radius:var(--radius-capsule);background:transparent;color:var(--accent-ink);font-size:14px;font-weight:560;cursor:pointer;transition:transform var(--dur-fast) ease,background var(--dur-fast) ease}.detail-back-button svg{width:23px;height:23px;margin-left:calc(-1 * var(--space-1));stroke-width:2.2}.detail-back-button:active{transform:scale(.96);background:var(--accent-soft)}.detail-heading-spacer{width:88px;height:44px;flex:none}.section-eyebrow{margin:0 0 var(--space-1);color:var(--text-tertiary);font-size:11px;line-height:1.7;letter-spacing:.02em;font-weight:600}.screen-scroll{position:relative;isolation:isolate;min-height:0;flex:1;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:0 var(--space-4) calc(env(safe-area-inset-bottom) + var(--space-8) + var(--space-6) + var(--space-5));scrollbar-width:none}.screen-scroll::-webkit-scrollbar{display:none}.view-stack{position:relative;z-index:0;display:flex;flex-direction:column;gap:var(--space-4);padding-top:var(--space-2);transform:translate(0) scale(1);transform-origin:left center;opacity:1;filter:blur(0);transition:transform .42s var(--ease-out),opacity .32s ease,filter .32s ease}.surface-panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-xs)}.record-detail-page{position:absolute;z-index:20;inset:0;display:flex;flex-direction:column;overflow:hidden;border-left:1px solid var(--border);background:var(--bg);box-shadow:calc(-1 * var(--space-3)) 0 var(--space-7) color-mix(in srgb,var(--text) 12%,transparent);transform:translate(102%);opacity:.88;transition:transform .28s var(--ease-out),opacity .22s ease;touch-action:pan-y;will-change:transform}.record-detail-page.is-active{transform:translate(0);opacity:1}.record-detail-scroll{display:flex;min-height:0;flex:1;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:var(--space-3) var(--space-4) calc(env(safe-area-inset-bottom) + var(--space-6));scrollbar-width:none}.record-detail-scroll::-webkit-scrollbar{display:none}.record-detail-content{display:flex;flex:0 0 auto;flex-direction:column;gap:var(--space-3)}.record-detail-hero{position:relative;display:flex;min-height:206px;flex-direction:column;justify-content:center;overflow:hidden;padding:var(--space-5);border:1px solid var(--border);border-radius:var(--radius);background:radial-gradient(ellipse at 100% 0%,color-mix(in srgb,var(--accent) 19%,transparent),transparent 58%),var(--surface);box-shadow:var(--shadow-xs)}.record-detail-hero:after{position:absolute;top:calc(-1 * var(--space-7));right:calc(-1 * var(--space-6));width:156px;height:156px;border:1px solid color-mix(in srgb,var(--accent) 22%,transparent);border-radius:50%;content:"";pointer-events:none}.record-detail-hero>.section-eyebrow{margin-bottom:var(--space-3);color:var(--text-secondary)}.record-detail-weight{display:flex;align-items:baseline;gap:var(--space-1);color:var(--text);font-size:clamp(48px,14vw,62px);font-weight:680;line-height:1.12;letter-spacing:-.045em;font-variant-numeric:tabular-nums}.record-detail-weight small{color:var(--text-secondary);font-size:16px;font-weight:520;letter-spacing:0}.record-detail-timing{display:flex;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-4)}.record-detail-timing>span{display:inline-flex;min-height:36px;align-items:center;gap:var(--space-1);padding:0 var(--space-2);border:1px solid var(--border);border-radius:var(--radius-capsule);background:var(--surface);color:var(--text-secondary);font-size:11px;font-variant-numeric:tabular-nums}.record-detail-timing svg{width:14px;height:14px;color:var(--accent-ink);stroke-width:1.9}.record-detail-panel{display:flex;flex-direction:column;padding:var(--space-3) var(--space-4)}.record-detail-panel .panel-title{margin-bottom:var(--space-1)}.record-detail-panel .panel-title h2{font-size:14px}.record-detail-note,.record-detail-empty{margin:0;color:var(--text);font-size:13px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}.record-detail-empty{color:var(--text-tertiary)}.record-detail-photos .photo-thumb{width:92px;height:92px;border-radius:var(--radius)}.record-detail-actionbar{position:sticky;bottom:0;z-index:1;margin-top:auto;padding:var(--space-3) 0 var(--space-2);background:linear-gradient(to bottom,color-mix(in srgb,var(--bg) 0%,transparent),var(--bg) 38%)}.record-detail-edit{min-height:52px;border-radius:var(--radius-capsule);box-shadow:var(--shadow-sm);font-weight:650}.record-detail-edit svg{width:18px;height:18px}.section-block{display:block;min-width:0}.history-view{display:flex;align-items:stretch;flex-direction:column;gap:var(--space-3)}.panel-title{justify-content:space-between;gap:var(--space-2);margin:0 0 var(--space-3)}.panel-title h2{margin:0;color:var(--text);font-size:16px;font-weight:620;line-height:1.7;letter-spacing:.01em}.panel-title p{margin:var(--space-1) 0 0;color:var(--text-secondary);font-size:12px;line-height:1.7}.subtle-label{display:block;color:var(--text-secondary);font-size:12px;line-height:1.7}.text-button{display:inline-flex;min-height:44px;flex:none;align-items:center;justify-content:center;gap:0;padding:0;border:0;background:transparent;color:var(--accent-ink);font-size:12px;font-weight:600;cursor:pointer}.text-button svg{width:16px;height:16px}.primary-button,.secondary-button,.danger-button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:var(--space-2);padding:0 var(--space-4);border:1px solid transparent;border-radius:var(--radius);font-size:14px;font-weight:600;line-height:1.7;cursor:pointer;transition:background var(--dur-fast) ease,color var(--dur-fast) ease,border-color var(--dur-fast) ease,transform var(--dur-fast) ease}.primary-button{border-color:var(--accent-edge);background:var(--accent);color:var(--on-accent)}.primary-button:hover:not(:disabled){filter:brightness(.96)}.primary-button:active:not(:disabled),.secondary-button:active:not(:disabled),.danger-button:active:not(:disabled){transform:scale(.985)}.secondary-button{border-color:var(--border-interactive);background:var(--surface);color:var(--text)}.secondary-button:hover:not(:disabled){background:var(--surface-hover)}.danger-button{color:var(--on-danger);background:var(--error)}.primary-button svg,.secondary-button svg,.danger-button svg{width:17px;height:17px;flex:none}.full-button{width:100%}.entry-row{display:flex;width:100%;min-height:68px;align-items:center;gap:var(--space-3);padding:var(--space-2) 0;border:0;border-bottom:0 solid var(--border);text-align:left;background:transparent;cursor:pointer}.entry-row:last-child{border-bottom:0}.entry-row:hover{background:var(--surface-hover)}.entry-date{display:flex;width:47px;flex:none;flex-direction:column;align-items:center;color:var(--text-secondary)}.entry-date strong{color:var(--text);font-size:21px;font-weight:650;line-height:1.25;font-variant-numeric:tabular-nums}.entry-date small{font-size:10px;line-height:1.7}.entry-copy{display:flex;min-width:0;flex:1;flex-direction:column}.entry-copy>strong{font-size:16px;font-weight:640;line-height:1.7;font-variant-numeric:tabular-nums}.entry-copy>strong small{color:var(--text-secondary);font-size:11px;font-weight:500}.entry-copy>small{color:var(--text-secondary);font-size:11px;line-height:1.7}.entry-note{display:-webkit-box;overflow:hidden;color:var(--text-tertiary);font-size:11px;line-height:1.7;-webkit-box-orient:vertical;-webkit-line-clamp:1}.entry-actions{min-width:40px;justify-content:flex-end;gap:var(--space-1);color:var(--text-tertiary)}.entry-actions>svg{width:17px;height:17px;flex:none}.photo-count{display:inline-flex;align-items:center;gap:var(--space-1);color:var(--text-secondary);font-size:11px}.photo-count svg{width:14px;height:14px}.trend-summary,.metrics-panel,.target-detail,.calendar-panel,.profile-panel,.account-panel,.backup-panel,.appearance-panel{padding:var(--space-4)}.trend-summary .panel-title,.metrics-panel .panel-title,.calendar-panel .panel-title,.profile-panel .panel-title,.account-panel .panel-title,.backup-panel .panel-title,.appearance-panel .panel-title{margin-bottom:var(--space-3)}.account-panel{scroll-margin-top:var(--space-3)}.period-switch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-1);padding:var(--space-1);border-radius:var(--radius);background:var(--surface-alt)}.period-switch button{min-height:44px;padding:0 var(--space-1);border:1px solid transparent;border-radius:var(--radius);background:transparent;color:var(--text-secondary);font-size:12px;cursor:pointer;transition:color var(--dur-fast) ease,background var(--dur-fast) ease,transform var(--dur-fast) ease}.period-switch button.selected{border-color:var(--accent-edge);background:var(--accent);color:var(--on-accent);font-weight:700}.period-switch button:active{transform:scale(.96)}.latest-summary{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:var(--space-3);padding:var(--space-4)}.latest-weight-copy{display:flex;min-width:0;flex-direction:column;align-items:flex-start}.latest-weight-copy>strong{color:var(--text);font-size:34px;font-weight:680;line-height:1.25;font-variant-numeric:tabular-nums}.latest-weight-copy>strong small{color:var(--text-secondary);font-size:14px;font-weight:550}.latest-weight-copy>span:last-child{color:var(--text-secondary);font-size:11px;line-height:1.7}.latest-change{display:flex;min-width:82px;flex:none;flex-direction:column;align-items:flex-end;padding-left:var(--space-3);border-left:1px solid var(--border)}.latest-change>span,.latest-change>small{color:var(--text-secondary);font-size:11px;line-height:1.7}.latest-change>strong{color:var(--text);font-size:14px;font-weight:620;font-variant-numeric:tabular-nums}.trend-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-1);padding:var(--space-1);border:1px solid var(--nav-edge);border-radius:var(--radius-capsule);background:var(--surface-alt)}.trend-tabs button{min-width:0;min-height:44px;border:0;border-radius:var(--radius-capsule);background:transparent;color:var(--text-secondary);font-size:13px;font-weight:550;cursor:pointer;transition:color var(--dur-fast) ease,background var(--dur-fast) ease,transform var(--dur-fast) ease}.trend-tabs button[aria-selected=true]{border:1px solid var(--accent-edge);background:var(--accent);color:var(--on-accent);font-weight:700}.trend-tabs button:active{transform:scale(.98)}.trend-panel-stack{display:flex;min-width:0;flex-direction:column;gap:var(--space-4)}.trend-panel-stack[hidden]{display:none}.trend-summary>.period-switch{margin-bottom:var(--space-4)}.metrics-panel>.period-switch{margin-bottom:var(--space-4)}.trend-value-row{justify-content:space-between;gap:var(--space-2);margin-top:var(--space-4)}.trend-value-row>div{display:flex;flex-direction:column}.trend-value-row strong{font-size:30px;font-weight:660;line-height:1.28;letter-spacing:-.025em;font-variant-numeric:tabular-nums}.trend-value-row strong small{margin-left:0;color:var(--text-secondary);font-size:13px;font-weight:500;letter-spacing:0}.trend-value-row .change-neutral{color:var(--accent-ink)}.legend{min-height:35px;flex-wrap:wrap;gap:var(--space-2);margin-top:var(--space-1);color:var(--text-secondary);font-size:10px}.legend>span{display:inline-flex;align-items:center;gap:var(--space-1)}.legend i{display:inline-block;width:15px;height:3px;border-radius:2px;background:var(--accent-line)}.legend i.legend-average{background:repeating-linear-gradient(to right,var(--chart-average) 0 4px,transparent 4px 7px)}.legend i.legend-goal{height:0;border-top:0 dashed var(--text-tertiary);background:transparent}.chart-holder{width:100%;min-width:0;min-height:286px}.chart-loading{min-height:260px}.chart-view-meta{display:flex;min-height:28px;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 var(--space-2);margin-bottom:var(--space-1);color:var(--text-secondary);font-size:10px}.chart-scale-label{color:var(--text);font-size:12px;font-weight:650}.chart-scroll{position:relative;width:100%;min-width:0;min-height:286px;overflow:hidden;overscroll-behavior:contain;cursor:grab;touch-action:pan-y;user-select:none;-webkit-user-select:none}.chart-scroll.is-panning{cursor:grabbing}.chart-canvas{position:relative;width:100%;height:286px;min-width:0}.chart-date-tick-dot{fill:var(--text-tertiary)}.chart-date-tick-weekday{fill:var(--text-secondary);font-family:var(--font-sans);font-size:9px}.chart-date-tick-day{fill:var(--text);font-family:var(--font-sans);font-size:11px;font-variant-numeric:tabular-nums}.chart-date-tick-month{fill:var(--text);font-family:var(--font-sans);font-size:10px;font-variant-numeric:tabular-nums}.chart-date-tick-year{fill:var(--text-secondary);font-family:var(--font-sans);font-size:8px;font-variant-numeric:tabular-nums}.chart-marker-hit-targets{position:absolute;z-index:9999;inset:0;pointer-events:none}.chart-marker-hit-target{position:absolute;display:grid;width:40px;height:40px;place-items:center;padding:0;transform:translate(-50%,-50%);border:2.5px solid var(--accent-edge);border-radius:50%;background:var(--accent);color:var(--on-accent);font-size:10px;font-weight:700;font-variant-numeric:tabular-nums;cursor:pointer;pointer-events:auto;touch-action:manipulation;transition:border-width .14s ease,transform .14s ease}.chart-marker-hit-target:hover{border-width:3px;transform:translate(-50%,-50%) scale(1.04)}.chart-marker-hit-target.is-selected{border:3.5px solid var(--text)}.chart-marker-hit-target.is-compact{border-color:transparent;background:transparent;color:transparent;font-size:0}.chart-marker-hit-target.is-compact:before{width:10px;height:10px;border:2px solid var(--accent-edge);border-radius:50%;background:var(--accent);content:""}.chart-marker-hit-target.is-compact:hover:before{transform:scale(1.2)}.chart-marker-hit-target.is-compact.is-selected:before{outline:2px solid var(--text);outline-offset:2px}.keyboard-nav .chart-marker-hit-target:focus-visible{outline:2px solid var(--text);outline-offset:1px}.chart-tooltip{min-width:135px;flex-direction:column;align-items:flex-start;gap:0;padding:var(--space-2) var(--space-3);border:1px solid var(--border-interactive);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm);color:var(--text-secondary);font-size:11px;pointer-events:none}.recharts-tooltip-wrapper{pointer-events:none!important}.chart-tooltip strong{margin-bottom:var(--space-1);color:var(--text);font-size:12px}.chart-empty{position:relative;display:flex;min-height:245px;align-items:flex-end;justify-content:center;padding-bottom:var(--space-6);overflow:hidden}.chart-empty p{position:relative;z-index:1;color:var(--text-secondary);font-size:12px}.chart-empty-line{position:absolute;right:var(--space-4);bottom:var(--space-8);left:var(--space-5);height:1px;background:var(--border)}.chart-empty-line:after{content:"";position:absolute;left:8%;top:calc(-1 * var(--space-4));width:26%;height:23px;border-right:0 solid var(--accent-line);border-top:0 solid var(--accent-line);border-radius:0 12px 0 0;transform:skew(-32deg);opacity:.45}.metric-grid{display:grid;grid-template-columns:1fr 1fr}.metric-cell{display:flex;min-height:84px;flex-direction:column;justify-content:center;padding:var(--space-3) var(--space-2);border-bottom:0 solid var(--border)}.metric-cell:nth-child(odd){border-right:0 solid var(--border)}.metric-cell:nth-last-child(-n+2){border-bottom:0}.metric-cell>span{color:var(--text-secondary);font-size:11px}.metric-cell>strong{margin-top:0;font-size:20px;font-weight:650;line-height:1.45;font-variant-numeric:tabular-nums}.metric-cell>strong small{margin-left:0;color:var(--text-secondary);font-size:10px;font-weight:500}.metric-detail{color:var(--text-secondary);font-size:10px}.target-detail{gap:var(--space-3)}.target-icon{display:grid;width:42px;height:42px;flex:none;place-items:center;border-radius:var(--radius);color:var(--accent-ink);background:var(--accent-soft)}.target-icon svg{width:20px;height:20px}.target-detail>div:nth-child(2){display:flex;min-width:0;flex-direction:column}.target-copy{flex:1}.target-detail strong{font-size:17px;font-weight:650;font-variant-numeric:tabular-nums}.target-detail p{margin:0;color:var(--text-secondary);font-size:11px}.target-copy>small{margin-top:var(--space-1);color:var(--text-secondary);font-size:10px}.target-progress{height:6px;overflow:hidden;margin-top:var(--space-2);border-radius:var(--radius-capsule);background:var(--surface-alt)}.target-progress>span{display:block;height:100%;border-radius:inherit;background:var(--accent-line)}.calendar-heading{min-height:44px;justify-content:space-between}.calendar-heading h2{margin:0;font-size:16px;font-weight:630;font-variant-numeric:tabular-nums}.week-header,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));justify-items:stretch}.week-header{min-height:38px;align-items:center;color:var(--text-secondary);font-size:11px;text-align:center}.calendar-day{position:relative;display:grid;min-width:0;min-height:44px;place-items:center;padding:0;border:1px solid transparent;border-radius:var(--radius);background:transparent;color:var(--text);font-size:13px;font-variant-numeric:tabular-nums;cursor:pointer}.calendar-day:not(:disabled):hover{background:var(--surface-hover)}.calendar-day:disabled{color:var(--text-tertiary);opacity:.5}.calendar-day.out-month{visibility:hidden}.calendar-day.has-entry>span{font-weight:650}.calendar-day.has-entry>i{position:absolute;bottom:var(--space-1);width:5px;height:5px;border-radius:50%;background:var(--accent-line)}.calendar-day.is-today{border-color:var(--accent-edge);color:var(--accent-ink);font-weight:700}.calendar-day.is-today>i{bottom:0}.calendar-day.is-expanded{border-color:var(--accent-edge);background:var(--accent-soft);color:var(--accent-ink)}.calendar-legend{min-height:46px;justify-content:space-between;margin-top:var(--space-2);padding-top:var(--space-1);border-top:0 solid var(--border);color:var(--text-secondary);font-size:11px}.calendar-legend>span{display:inline-flex;align-items:center;gap:var(--space-1)}.calendar-legend>span i{width:6px;height:6px;border-radius:50%;background:var(--accent-line)}.calendar-legend button{min-height:44px;gap:var(--space-1);padding:0;border:0;background:transparent;color:var(--accent-ink);font-size:11px;font-weight:600;cursor:pointer}.calendar-legend button svg{width:15px;height:15px}.calendar-entry-detail{display:flex;flex-direction:column;gap:var(--space-2);margin-top:var(--space-2);padding-top:var(--space-3);border-top:1px solid var(--border)}.calendar-entry-detail-head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-2)}.calendar-entry-detail-head>strong{color:var(--text);font-size:24px;font-weight:680;font-variant-numeric:tabular-nums}.calendar-entry-detail-head>strong small{color:var(--text-secondary);font-size:12px;font-weight:500}.calendar-entry-detail-head>span{color:var(--text-secondary);font-size:11px;text-align:right}.calendar-entry-note{margin:0;color:var(--text-secondary);font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.calendar-entry-actions{display:flex;justify-content:flex-end}.calendar-entry-actions .secondary-button{min-width:120px}.history-list .entry-row{padding-right:var(--space-1);padding-left:var(--space-1)}.history-list .panel-title{margin-bottom:var(--space-1)}.empty-note{display:flex;min-height:180px;flex-direction:column;align-items:center;justify-content:center;padding:var(--space-4);text-align:center}.empty-note-icon{display:grid;width:42px;height:42px;place-items:center;margin-bottom:var(--space-2);border:1px solid var(--border);border-radius:var(--radius);color:var(--accent-ink)}.empty-note-icon svg{width:20px;height:20px}.empty-note>strong{font-size:14px}.empty-note>span{max-width:240px;margin-top:0;color:var(--text-secondary);font-size:11px}.settings-view{gap:var(--space-3);padding-bottom:var(--space-3)}.settings-form{display:flex;flex-direction:column;gap:var(--space-3)}.field{display:flex;min-width:0;flex-direction:column;gap:var(--space-1);color:var(--text)}.field>span:first-child,.photo-heading>span:first-child{display:flex;align-items:baseline;gap:var(--space-1);font-size:12px;font-weight:590}.field>span:first-child small,.photo-heading small{color:var(--text-secondary);font-size:10px;font-weight:450}.field input,.field textarea,.backup-controls input,.unit-input{width:100%;min-height:44px;padding:var(--space-2) var(--space-3);border:1px solid var(--border-interactive);border-radius:var(--radius);color:var(--text);background:var(--surface)}.field input::placeholder,.field textarea::placeholder{color:var(--text-tertiary);opacity:1}.app-phone.keyboard-nav .field input:focus-visible,.app-phone.keyboard-nav .field textarea:focus-visible{border-color:var(--accent-edge)}.app-phone:not(.keyboard-nav) .field input:focus,.app-phone:not(.keyboard-nav) .field textarea:focus{border-color:var(--border-interactive)}.field textarea{min-height:77px;resize:vertical}.unit-input{display:flex;align-items:center;gap:var(--space-1);padding:0 var(--space-3)}.unit-input input{min-width:0;min-height:44px;padding:0;border:0;outline-offset:1px}.unit-input small{flex:none;color:var(--text-secondary);font-size:12px}.field-hint{margin:0;color:var(--text-secondary);font-size:11px;line-height:1.75}.profile-readout{display:flex;min-height:63px;flex-wrap:wrap;align-items:center;justify-content:space-between;column-gap:var(--space-2);padding:var(--space-2) var(--space-3);border-radius:var(--radius);background:var(--surface-alt)}.profile-readout>span{color:var(--text-secondary);font-size:13px;font-weight:600}.profile-readout>strong{color:var(--text);font-size:22px;font-weight:700;font-variant-numeric:tabular-nums}.profile-readout>strong small{color:var(--text-secondary);font-size:13px;font-weight:500}.profile-readout>small{width:100%;color:var(--text-tertiary);font-size:12px;text-align:right}.profile-reference{display:flex;flex-direction:column;gap:var(--space-2);margin-top:var(--space-1);padding:var(--space-3);border-radius:var(--radius);background:var(--accent-soft)}.profile-reference>span{color:var(--accent-ink);font-size:13px;font-weight:700}.profile-reference>div{display:grid;gap:var(--space-2)}.profile-reference p{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:var(--space-1);margin:0}.profile-reference p span{color:var(--text-secondary);font-size:13px}.profile-reference p strong{color:var(--text);font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}.profile-reference>small{color:var(--text-secondary);font-size:12px}.login-form{display:flex;flex-direction:column;gap:var(--space-3);margin-top:var(--space-3)}.sync-benefit{min-height:38px;gap:var(--space-2);color:var(--text-secondary);font-size:11px}.sync-benefit>svg{width:16px;height:16px;flex:none;color:var(--accent-ink)}.setup-note{display:flex;align-items:flex-start;gap:var(--space-1);padding:var(--space-2);border:1px solid var(--border);border-radius:var(--radius)}.setup-note>svg{width:15px;height:15px;flex:none;margin-top:0}.signed-in-card{min-height:63px;gap:var(--space-2)}.sync-breakdown{display:flex;flex-wrap:wrap;gap:var(--space-3);padding:var(--space-2) var(--space-1);color:var(--text-secondary);font-size:11px}.account-avatar{display:grid;width:38px;height:38px;flex:none;place-items:center;border-radius:var(--radius);color:var(--accent-ink);background:var(--accent-soft)}.account-avatar svg{width:18px;height:18px}.account-copy{min-width:0;flex:1;flex-direction:column;align-items:flex-start}.account-copy>strong{display:block;max-width:100%;overflow:hidden;color:var(--text);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.account-copy>span{color:var(--text-secondary);font-size:10px}.account-copy>span.error-text{color:var(--error)}.small-button{min-height:44px;padding:0 var(--space-2);font-size:11px}.account-exit{width:44px;min-height:44px;color:var(--text-secondary)}.account-exit svg{width:16px}.backup-controls{display:flex;flex-direction:column;gap:var(--space-2)}.backup-month{display:flex;min-height:48px;align-items:center;gap:var(--space-2);padding:var(--space-1) var(--space-2);border-radius:var(--radius);background:var(--surface-alt);color:var(--text-secondary);font-size:13px;font-weight:600}.backup-month svg{width:18px;height:18px;color:var(--accent-ink)}.backup-month span{flex:1}.backup-controls .backup-month input{width:142px;min-height:40px;padding:0 var(--space-1);border:0;background:transparent;color:var(--text);font-size:15px;font-weight:650;text-align:right}.file-button{position:relative;background:var(--surface)}.file-button input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.file-button.is-disabled{opacity:.55}.form-error{min-height:38px;align-items:flex-start;gap:var(--space-1);margin:var(--space-1) 0;padding:var(--space-2);border-radius:var(--radius);color:var(--error);background:var(--error-soft);font-size:11px;line-height:1.7}.form-error svg{width:15px;height:15px;flex:none;margin-top:0}.compact-error{width:100%}.appearance-panel{padding-bottom:var(--space-3)}.theme-options{gap:var(--space-1)}.theme-choice{min-height:48px;flex:1;justify-content:center;gap:var(--space-1);padding:0 var(--space-1);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text-secondary);font-size:11px;cursor:pointer;transition:color var(--dur-fast) ease,background var(--dur-fast) ease,border-color var(--dur-fast) ease,transform var(--dur-fast) ease}.theme-choice svg{width:16px;height:16px}.theme-choice.is-active{border-color:var(--accent-edge);color:var(--on-accent);background:var(--accent);font-weight:700}.theme-choice:active{transform:scale(.97)}.build-caption{margin:0;padding:var(--space-1) 0 0;color:var(--text-tertiary);font-size:10px;text-align:center}.bottom-nav{position:absolute;z-index:10;bottom:calc(env(safe-area-inset-bottom) + var(--space-2));left:50%;width:min(15rem,calc(100% - var(--space-6)));min-height:68px;justify-content:space-around;gap:0;padding:var(--space-1);border:1px solid var(--nav-edge);border-radius:var(--radius-capsule);background:var(--nav-material);box-shadow:var(--shadow-nav);-webkit-backdrop-filter:saturate(1.55) blur(22px);backdrop-filter:saturate(1.55) blur(22px);transform:translate(-50%)}.nav-item{min-width:0;min-height:56px;flex:0 0 76px;flex-direction:column;justify-content:center;gap:0;padding:var(--space-1) 0;border:0;border-radius:var(--radius-capsule);background:transparent;color:var(--text-secondary);cursor:pointer;transition:background var(--dur-fast) ease,color var(--dur-fast) ease,transform var(--dur-fast) ease}.nav-item svg{width:20px;height:20px;stroke-width:1.8}.nav-item span{font-size:10px;line-height:1.7}.nav-item.active{border:1px solid var(--accent-edge);color:var(--on-accent);background:var(--accent);font-weight:700}.nav-item:active{transform:scale(.96)}.record-nav-action{min-width:0;min-height:56px;flex:0 0 64px;flex-direction:column;justify-content:center;gap:0;padding:0;border:0;border-radius:var(--radius-capsule);background:transparent;color:var(--text-secondary);cursor:pointer;touch-action:manipulation}.record-nav-icon{position:relative;display:grid;width:44px;height:44px;place-items:center;color:var(--on-accent)}.record-nav-icon:before{position:absolute;inset:6px;border:1px solid var(--accent-edge);border-radius:10px 8px 11px 9px;background:var(--accent);box-shadow:var(--shadow-xs);content:"";transform:rotate(45deg);transition:transform var(--dur-fast) ease}.record-nav-icon svg{z-index:1;width:19px;height:19px;stroke-width:2}.record-nav-action>span:last-child{font-size:10px;line-height:1.5}.record-nav-action:active .record-nav-icon:before{transform:rotate(45deg) scale(.92)}.home-indicator{display:none}.sheet-backdrop,.lightbox{position:absolute;z-index:30;inset:0;display:flex;align-items:flex-end;justify-content:center;background:var(--scrim);animation:veil-in var(--dur-base) ease both}.sheet-card{position:relative;width:100%;max-height:min(92%,720px);overflow-y:auto;overscroll-behavior:contain;padding:var(--space-2) var(--space-4) calc(env(safe-area-inset-bottom) + var(--space-5));border:1px solid var(--border);border-bottom:0;border-radius:var(--radius-sheet) var(--radius-sheet) 0 0;background:var(--surface);animation:sheet-in var(--dur-base) var(--ease-out) both}.sheet-grabber{width:35px;height:4px;margin:0 auto var(--space-2);border-radius:10px;background:var(--border-strong)}.sheet-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:var(--space-3)}.sheet-head h2{margin:0;font-size:20px;font-weight:650;line-height:1.7}.sheet-head .section-eyebrow{margin-bottom:var(--space-1)}.sheet-card form{display:flex;flex-direction:column;gap:var(--space-3)}.weight-input-wrap{position:relative;display:flex;height:79px;flex-direction:column;justify-content:center;gap:0;padding:var(--space-1) var(--space-4);border:1px solid var(--border-interactive);border-radius:var(--radius);background:var(--surface)}.weight-input-wrap>span:first-child{color:var(--text-secondary);font-size:11px}.weight-input-wrap>input{width:calc(100% - 37px);height:39px;min-height:0;padding:0;border:0;background:transparent;color:var(--text);font-size:26px;font-weight:650;line-height:1.3;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.weight-input-wrap>input::placeholder{color:var(--text-tertiary);font-size:17px;font-weight:450;letter-spacing:0}.sheet-card input[type=number]{appearance:textfield;-moz-appearance:textfield}.sheet-card input[type=number]::-webkit-inner-spin-button,.sheet-card input[type=number]::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.weight-unit{position:absolute;right:var(--space-4);bottom:var(--space-4);color:var(--text-secondary);font-size:13px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:flex-start;gap:var(--space-3)}.form-grid>.field{width:100%;min-width:0}.form-grid input[type=date],.form-grid input[type=time]{display:block;width:100%;min-width:0;max-width:100%;padding-right:var(--space-2);padding-left:var(--space-2);font-weight:550}.note-field{position:relative}.character-count{align-self:flex-end;margin-top:calc(-1 * var(--space-5));padding-right:var(--space-2);color:var(--text-tertiary);font-size:10px;pointer-events:none}.photo-field{gap:var(--space-1)}.photo-heading{justify-content:space-between;color:var(--text);font-size:12px;font-weight:590}.photo-heading>span:last-child{color:var(--text-secondary);font-size:10px;font-weight:450}.photo-strip{flex-wrap:wrap;align-items:stretch;gap:var(--space-2)}.photo-thumb,.add-photo{position:relative;display:flex;width:70px;height:70px;flex:none;align-items:center;justify-content:center;overflow:hidden;padding:0;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-alt)}.photo-sync-status{position:absolute;z-index:1;bottom:var(--space-1);left:var(--space-1);padding:0 var(--space-1);border:1px solid var(--border-interactive);border-radius:var(--radius);background:var(--surface);color:var(--text-secondary);font-size:9px;line-height:1.7}.photo-sync-status.error{border-color:var(--error);color:var(--error)}.photo-thumb img{display:block;width:100%;height:100%;object-fit:cover}button.photo-thumb{cursor:zoom-in}.photo-placeholder{height:100%;flex-direction:column;justify-content:center;gap:0;color:var(--text-secondary)}.photo-placeholder svg{width:20px;height:20px}.photo-placeholder small{font-size:9px}.add-photo{flex-direction:column;gap:0;border:1px dashed var(--border-interactive);color:var(--accent-ink);background:var(--surface);cursor:pointer}.add-photo svg{width:19px;height:19px}.add-photo span{font-size:10px}.secondary-add{color:var(--text-secondary)}.hidden-input{display:none}.edit-photo-wrap{position:relative;width:70px;height:70px}.edit-photo-wrap .photo-thumb{width:100%;height:100%}.remove-photo{position:absolute;top:calc(-1 * var(--space-1));right:calc(-1 * var(--space-1));display:grid;width:26px;height:26px;place-items:center;border:1px solid var(--surface);border-radius:var(--radius);background:var(--text);color:var(--surface);cursor:pointer}.remove-photo:before{content:"";position:absolute;inset:calc(-1 * var(--space-3))}.remove-photo svg{width:14px;height:14px}.helper-text{color:var(--text-secondary);font-size:10px}.form-footer{min-height:54px;justify-content:space-between;gap:var(--space-2);margin-top:0}.form-footer .primary-button{min-width:150px;margin-left:auto}.text-danger{min-height:44px;padding:0 var(--space-1);border:0;color:var(--error);background:transparent;font-size:12px;font-weight:600;cursor:pointer}.confirm-layer{position:absolute;z-index:4;inset:0;display:grid;place-items:center;padding:var(--space-4);background:var(--scrim-strong)}.confirm-card{width:min(100%,350px);padding:var(--space-5);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-dialog)}.dialog-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:var(--radius)}.dialog-icon svg{width:20px;height:20px}.danger-icon{color:var(--error);background:var(--error-soft)}.confirm-card h3{margin:var(--space-2) 0 0;font-size:17px}.confirm-card p{margin:0;color:var(--text-secondary);font-size:12px}.confirm-actions{gap:var(--space-2);margin-top:var(--space-4)}.confirm-actions button{flex:1;padding:0 var(--space-1)}.lightbox{z-index:40;align-items:center;padding:var(--space-6);background:var(--backdrop-heavy)}.lightbox>img{max-width:100%;max-height:82%;border-radius:var(--radius);object-fit:contain}.lightbox>p{color:var(--lightbox-text)}.lightbox-close{position:absolute;top:calc(env(safe-area-inset-top) + var(--space-2));right:var(--space-3);display:grid;width:44px;height:44px;place-items:center;border:1px solid var(--lightbox-border);border-radius:var(--radius);background:var(--lightbox-control);color:var(--lightbox-text)}.lightbox-close svg{width:21px;height:21px}.toast-message{position:absolute;z-index:50;right:var(--space-4);bottom:calc(env(safe-area-inset-bottom) + var(--space-8) + var(--space-6));left:var(--space-4);min-height:46px;justify-content:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);border:1px solid var(--border-strong);border-radius:var(--radius);background:var(--surface);color:var(--text);box-shadow:var(--shadow-sm);font-size:12px;line-height:1.7;text-align:center;animation:rise-in var(--dur-base) var(--ease-out) both}.toast-message svg{width:17px;height:17px;flex:none;color:var(--accent-ink)}.update-banner{position:absolute;z-index:25;top:calc(env(safe-area-inset-top) + var(--space-2));right:var(--space-3);left:var(--space-3);min-height:52px;gap:var(--space-2);padding:var(--space-1) var(--space-2) var(--space-1) var(--space-3);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm);font-size:12px}.update-banner>span{min-width:0;flex:1}.update-banner-actions{display:flex;flex:none;align-items:center;gap:var(--space-1)}.update-banner .primary-button{min-height:38px;padding:0 var(--space-3);border-radius:var(--radius-capsule);font-size:12px}.update-banner .icon-button{width:44px;min-height:44px}.loading-screen{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-2);background:var(--bg);color:var(--text-secondary);font-size:12px}.loading-screen .brand-mark{width:44px;height:44px}@supports (backdrop-filter: blur(1px)){:root{--nav-material: color-mix(in srgb, var(--surface) 82%, transparent)}}@keyframes sheet-in{0%{transform:translateY(var(--space-4));opacity:.78}to{transform:translateY(0);opacity:1}}@keyframes veil-in{0%{opacity:0}to{opacity:1}}@keyframes rise-in{0%{transform:translateY(var(--space-2));opacity:0}to{transform:translateY(0);opacity:1}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@media(min-width:560px){body{display:grid;place-items:center;background:var(--backdrop-solid)}:root[data-theme=dark] body{background:var(--backdrop-dark)}.app-phone{width:min(430px,100%);height:min(900px,94dvh);border:1px solid var(--border-strong);border-radius:18px;box-shadow:var(--shadow-phone)}.desktop-status{display:flex}.app-header{min-height:55px;padding:var(--space-1) var(--space-5) var(--space-2)}.screen-scroll{padding-right:var(--space-5);padding-left:var(--space-5)}.home-indicator{position:absolute;z-index:12;bottom:var(--space-1);left:50%;display:block;width:98px;height:4px;border-radius:4px;background:var(--text);opacity:.78;transform:translate(-50%);pointer-events:none}}@media(orientation:landscape)and (max-height:600px){.app-phone{width:100%;height:var(--app-viewport-height, 100dvh);border:0;border-radius:0;box-shadow:none}.app-header{min-height:44px;padding-bottom:var(--space-1)}.screen-scroll{padding-right:var(--space-6);padding-left:var(--space-6)}.latest-summary{padding:var(--space-2) var(--space-4)}.chart-holder,.chart-scroll{min-height:0}.chart-canvas{height:min(64dvh,420px);min-height:220px}.home-indicator{display:none}}@media(max-width:360px){.app-header,.screen-scroll{padding-right:var(--space-3);padding-left:var(--space-3)}.sync-indicator{max-width:144px;font-size:10px}.calendar-day{min-height:44px;font-size:12px}}@media(max-width:559px){.form-grid{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-3)}.form-grid>.field{width:min(100%,244px)}.form-grid>.field:last-child{width:min(100%,148px)}body{font-size:16px;font-weight:500}.app-brand{font-size:18px;font-weight:700}.sync-indicator{font-size:13px}.section-eyebrow{font-size:12px}.detail-back-button{font-size:16px;font-weight:650}.record-detail-header h1{font-size:18px;font-weight:700}.record-detail-timing>span{min-height:40px;font-size:13px}.record-detail-panel .panel-title h2,.panel-title h2{font-size:18px;font-weight:700}.record-detail-note,.record-detail-empty{font-size:15px}.panel-title p,.subtle-label{font-size:14px}.text-button{font-size:14px;font-weight:650}.primary-button,.secondary-button,.danger-button{min-height:48px;font-size:16px;font-weight:650}.entry-date small{font-size:12px}.entry-copy>strong small,.entry-copy>small,.entry-note,.photo-count{font-size:13px}.period-switch button{min-height:48px;font-size:15px;font-weight:600}.trend-tabs button{min-height:48px;font-size:16px;font-weight:600}.latest-weight-copy>span:last-child,.latest-change>span,.latest-change>small{font-size:13px}.latest-change>strong{font-size:16px}.legend,.chart-view-meta{font-size:12px}.chart-scale-label{font-size:14px}.chart-date-tick-weekday{font-size:10px}.chart-date-tick-day{font-size:12px}.chart-date-tick-month{font-size:11px}.chart-date-tick-year{font-size:9px}.chart-marker-hit-target{font-size:11px}.chart-tooltip{font-size:13px}.chart-tooltip strong,.chart-empty p{font-size:14px}.metric-cell>span{font-size:13px}.metric-cell>strong small,.metric-detail{font-size:12px}.target-detail p{font-size:14px}.target-copy>small{font-size:13px}.week-header{font-size:12px}.calendar-day{font-size:14px}.calendar-legend{font-size:13px}.calendar-legend button{font-size:14px}.calendar-entry-detail-head>strong small,.calendar-entry-detail-head>span{font-size:13px}.calendar-entry-note{font-size:14px}.empty-note>strong{font-size:16px}.empty-note>span{font-size:13px}.field>span:first-child,.photo-heading>span:first-child{font-size:14px;font-weight:650}.field>span:first-child small,.photo-heading small{font-size:12px}.field input,.field textarea,.backup-controls input,.unit-input{font-size:16px;font-weight:500}.unit-input small{font-size:14px}.field-hint,.sync-benefit,.sync-breakdown{font-size:13px}.account-copy>strong{font-size:14px;font-weight:650}.account-copy>span{font-size:12px}.small-button{font-size:14px}.form-error{font-size:13px}.theme-choice{min-height:48px;font-size:14px;font-weight:600}.build-caption{font-size:12px}.nav-item span,.record-nav-action>span:last-child{font-size:12px;font-weight:600}.sheet-head h2{font-size:22px;font-weight:700}.weight-input-wrap>span:first-child{font-size:13px;font-weight:600}.weight-unit{font-size:15px}.character-count{font-size:12px}.photo-heading{font-size:14px}.photo-heading>span:last-child{font-size:13px}.photo-sync-status,.photo-placeholder small{font-size:11px}.add-photo span{font-size:13px;font-weight:600}.helper-text{font-size:12px}.text-danger{font-size:14px}.confirm-card h3{font-size:19px}.confirm-card p,.toast-message,.update-banner,.loading-screen{font-size:14px}.update-banner .primary-button{font-size:13px}}@media(max-width:559px)and (orientation:portrait){.view-stack{gap:var(--space-3);padding-top:var(--space-1)}.trend-panel-stack{gap:var(--space-3)}.trend-summary{padding:var(--space-3)}.trend-value-row{margin-top:0}.legend{min-height:28px;margin-top:0}.chart-holder,.chart-scroll{min-height:220px}.chart-canvas{height:220px}}@media(max-width:360px){.form-grid{grid-template-columns:minmax(0,1fr)}.sync-indicator{font-size:12px}}:root:not([data-theme=dark]) .header-theme,:root:not([data-theme=dark]) .primary-button,:root:not([data-theme=dark]) .secondary-button,:root:not([data-theme=dark]) .danger-button,:root:not([data-theme=dark]) .theme-choice,:root:not([data-theme=dark]) .calendar-day,:root:not([data-theme=dark]) .record-nav-icon:before,:root:not([data-theme=dark]) .remove-photo{border-color:transparent}:root:not([data-theme=dark]) .trend-tabs,:root:not([data-theme=dark]) .bottom-nav{border-color:transparent}:root:not([data-theme=dark]) .trend-tabs button[aria-selected=true],:root:not([data-theme=dark]) .period-switch button.selected,:root:not([data-theme=dark]) .nav-item.active,:root:not([data-theme=dark]) .theme-choice.is-active,:root:not([data-theme=dark]) .calendar-day.is-today,:root:not([data-theme=dark]) .calendar-day.is-expanded{border-color:transparent}:root:not([data-theme=dark]) .secondary-button,:root:not([data-theme=dark]) .theme-choice{background:var(--surface-alt)}:root:not([data-theme=dark]) .theme-choice.is-active{background:var(--accent);color:var(--on-accent)}:root:not([data-theme=dark]) .calendar-day.is-today,:root:not([data-theme=dark]) .calendar-day.is-expanded{background:var(--accent-soft)}:root:not([data-theme=dark]) .add-photo{border-color:transparent;background:var(--surface-alt)}:root:not([data-theme=dark]) button.photo-thumb{border-color:transparent}
