.camera-page .brand{text-decoration:none}.capture-shell{max-width:780px;margin:0 auto;padding:22px 24px 28px}.capture-heading{justify-content:space-between;align-items:center;gap:18px;margin-bottom:26px;display:flex}.capture-heading h1{letter-spacing:-.055em;margin:10px 0 14px;font-size:clamp(2rem,5vw,3rem);line-height:1.16}.capture-heading h1 em{color:var(--purple);font-style:normal}.capture-heading p:not(.eyebrow){color:var(--muted);font-size:16px;line-height:1.65}.capture-heading img{object-fit:contain;width:180px;height:145px}.capture-toolbar{justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;display:flex}.capture-toolbar .goal-pill{margin:0;font-size:14px}.photo-tray{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.photo-empty{background:var(--lilac);border:2px dashed var(--purple);text-align:center;border-radius:24px;grid-column:1/-1;padding:28px 18px}.photo-empty .empty-camera{color:var(--purple);font-size:44px;line-height:1;display:block}.photo-empty h2{margin:12px 0 8px;font-size:20px}.photo-empty p{color:var(--muted);font-size:15px;line-height:1.6}.photo-tile{background:var(--paper);border:2px solid var(--ink);box-shadow:0 3px 0 var(--ink);border-radius:19px;position:relative;overflow:hidden}.photo-tile>img{object-fit:cover;width:100%;height:135px;display:block}.photo-tile-body{padding:10px}.photo-tile h3{margin:0 0 6px;font-size:15px;line-height:1.4}.photo-tile .photo-extra{text-align:left;min-height:38px;color:var(--purple);background:0 0;padding:0;font-size:13px}.photo-number{background:var(--yellow);border:1px solid var(--ink);text-align:center;border-radius:8px;min-width:28px;padding:2px 5px;font-weight:800;position:absolute;top:8px;left:8px}.photo-remove{background:var(--ink);color:#fff;border-radius:50%;width:42px;height:42px;font-size:20px;position:absolute;top:4px;right:4px}.photo-favorite{background:0 0;border-top:1px solid #21173422;align-items:center;gap:5px;width:100%;min-height:42px;padding:7px 10px;font-size:13px;display:flex}.photo-favorite[aria-pressed=true]{background:var(--peach)}.capture-entry{grid-template-columns:2fr 1fr;gap:12px;margin-top:22px;display:grid}.capture-entry button{min-height:62px;font-size:17px}.capture-entry .primary{justify-content:center;align-items:center;gap:10px;display:flex}.capture-entry .primary>span:first-child{font-size:27px}.capture-help{color:var(--muted);margin:16px 4px;font-size:14px;line-height:1.7}.analyze-dock{border-top:1px solid #21173424;margin-top:22px;padding-top:20px}.analyze-dock>button{background:var(--purple);color:#fff;width:100%;min-height:62px;font-size:19px}.analyze-dock>button:disabled{color:#675e70;box-shadow:none;cursor:default;background:#e5deeb}.analyze-dock>p{color:var(--muted);text-align:center;max-width:420px;margin:12px auto 0;font-size:12px;line-height:1.7}.capture-error{background:#ffdfd2;border:1px solid #743721;border-radius:14px;margin-top:16px;padding:16px;font-size:16px;line-height:1.6}.analysis-progress{background:var(--mint);border:2px solid var(--ink);border-radius:18px;align-items:center;gap:14px;margin-top:20px;padding:20px;display:flex}.analysis-progress strong{font-size:17px}.analysis-progress p{margin-top:5px;font-size:14px;line-height:1.6}.analysis-progress button{flex-shrink:0;min-height:44px;margin-left:auto}.scan-spinner{border:4px solid #21173422;border-top-color:var(--purple);border-radius:50%;flex-shrink:0;width:30px;height:30px;animation:1s linear infinite scan-turn}.camera-page dialog{width:calc(100% - 28px);max-width:640px;max-height:90dvh}.camera-page #live-camera{color:#fff;background:#151022;border:0;border-radius:24px;width:min(640px,100%);max-height:100dvh;padding:0}.live-camera-top{justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.live-camera-top h2{font-size:18px}.live-camera-top button{color:#fff;background:#ffffff24;border-radius:50%;width:44px;height:44px;font-size:22px}.viewfinder{background:#09060d;height:min(60dvh,500px);min-height:240px;position:relative}.viewfinder video{object-fit:contain;width:100%;height:100%;display:block}.viewfinder-corners{pointer-events:none;border:2px dashed #e6f9aa8a;border-radius:20px;position:absolute;inset:15% 7%}.viewfinder>p{color:#fff;text-align:center;background:#151022dc;border-radius:12px;max-width:max-content;margin:0 auto;padding:9px 14px;font-size:14px;position:absolute;bottom:15px;left:10px;right:10px}.live-camera-controls{padding:20px 16px max(20px,env(safe-area-inset-bottom));justify-content:space-around;align-items:center;gap:20px;display:flex}.live-camera-controls button{color:#fff;background:0 0;min-width:70px;min-height:60px;font-size:14px;line-height:1.5}.live-camera-controls .shutter{border:3px solid #fff;border-radius:50%;flex-shrink:0;width:78px;height:78px;padding:5px}.shutter>span{background:var(--yellow);border-radius:50%;width:100%;height:100%;display:block}.shutter:disabled{opacity:.5}.camera-done strong{color:var(--yellow);font-size:20px}.pick-card{background:var(--yellow);border:2px solid var(--ink);box-shadow:0 5px 0 var(--ink);border-radius:26px;margin:20px 0 28px;padding:26px}.pick-card .eyebrow{color:var(--ink);margin-bottom:10px;font-size:14px}.pick-card h2{letter-spacing:-.045em;margin:0 0 16px;font-size:clamp(1.7rem,5vw,2.3rem);line-height:1.35}.pick-card p{font-size:17px;line-height:1.75}.pick-card .pick-limits{background:#ffffff65;border-radius:14px;margin-top:18px;padding:14px;font-size:14px}.result-basis{color:var(--muted);margin:14px 0;font-size:14px;line-height:1.65}.result-foods{gap:14px;display:grid}.result-food{background:var(--paper);border:1.5px solid var(--ink);border-radius:20px;grid-template-columns:80px 1fr;gap:16px;padding:18px;display:grid}.result-food>img{object-fit:cover;border-radius:10px;width:80px;height:92px}.result-food>div{min-width:0}.result-food h3{overflow-wrap:anywhere;margin:0 0 8px;font-size:19px;line-height:1.45}.result-food p{font-size:15px;line-height:1.7}.result-food details{border-top:1px solid #21173422;grid-column:1/-1;padding-top:10px;font-size:14px}.result-food summary{cursor:pointer;min-height:38px;font-weight:700}.result-food .status-note{color:var(--purple);font-size:14px}.camera-result-actions{gap:12px;margin:24px 0;display:flex}.camera-result-actions button{flex:1;min-height:56px}.priority-options{gap:12px;margin:20px 0;display:grid}.priority-options label{border:1.5px solid var(--ink);cursor:pointer;border-radius:16px;align-items:center;gap:14px;padding:16px;display:flex}.priority-options label:has(input:checked){background:var(--mint)}.priority-options input{width:22px;height:22px;accent-color:var(--purple);flex-shrink:0}.priority-options strong,.priority-options small{display:block}.priority-options small{color:var(--muted);margin-top:5px;font-size:14px;line-height:1.5}.scan-history-item{text-align:left;background:var(--paper);border:1px solid var(--ink);border-radius:16px;width:100%;margin:12px 0;padding:18px;display:block}.scan-history-item strong{font-size:18px;line-height:1.4;display:block}.scan-history-item small{color:var(--muted);margin-top:6px;font-size:14px;display:block}.camera-page button:disabled{cursor:default}.camera-page [hidden]{display:none!important}@keyframes scan-turn{to{transform:rotate(360deg)}}@media (width<=540px){.capture-shell{padding:16px 18px 24px}.capture-heading{gap:8px;margin-bottom:20px}.capture-heading .eyebrow{letter-spacing:0;font-size:12px}.capture-heading h1{font-size:32px}.capture-heading img{width:115px;height:115px}.capture-heading p:not(.eyebrow){font-size:14px}.photo-tray{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-tile>img{height:145px}.capture-entry{grid-template-columns:1fr}.capture-entry .secondary{min-height:46px;font-size:15px}.camera-page #live-camera{border-radius:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh}.viewfinder{height:calc(100dvh - 214px)}.pick-card{padding:22px}.camera-result-actions{flex-direction:column}.result-food{grid-template-columns:64px 1fr;gap:13px;padding:15px}.result-food>img{width:64px;height:80px}}@media (prefers-reduced-motion:reduce){.scan-spinner{animation:none}}.health-entry-point{flex:1;min-width:0}.health-entry-point .goal-pill{background:var(--mint);min-height:44px;color:var(--ink);align-items:center;gap:9px;font-weight:800;display:inline-flex}.health-entry-point .goal-pill>span:last-child{margin-left:8px;font-size:20px}#health-status{color:var(--muted);overflow-wrap:anywhere;margin:8px 2px 0;font-size:13px;line-height:1.5}#health-status.health-load-error{color:#8c3324}.capture-toolbar{align-items:flex-start}.capture-toolbar .count-pill{flex-shrink:0;margin-top:8px}#health-form{font-size:16px;line-height:1.65;position:relative}.health-intro{color:var(--ink);margin:10px 0 20px;font-size:16px;line-height:1.7}.health-reflection{background:var(--mint);border:1.5px solid var(--ink);border-radius:17px;margin:0 0 24px;padding:16px}.health-reflection>span,.health-reflection>strong{display:block}.health-reflection>span{margin-bottom:5px;font-size:12px}.health-reflection>strong{font-size:19px}.health-reflection>p{margin:7px 0 0;font-size:14px}.health-section{border-top:1px solid #21173430;margin:0;padding:20px 0}.health-section h3,.health-section>summary{color:var(--ink);font-size:18px;font-weight:800;line-height:1.5}.health-section h3{margin:0 0 18px}.health-section>summary{cursor:pointer;min-height:44px;padding:7px 0;display:list-item}.health-section[open]>summary{margin-bottom:16px}.health-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px;display:grid}.health-metric,.health-entry label{min-width:0}#health-form label{color:var(--ink);font-size:14px;font-weight:650;line-height:1.65;display:block}#health-form input:not([type=checkbox]),#health-form select,#health-form textarea{font:inherit;color:var(--ink);box-sizing:border-box;background:#fffdf8;border:1.5px solid #82788f;border-radius:10px;width:100%;min-width:0;min-height:46px;margin-top:6px;padding:10px;font-size:16px}#health-form input::placeholder,#health-form textarea::placeholder{color:#746b80;opacity:1;font-size:14px;font-weight:400}#health-form select{appearance:auto;padding-right:24px}#health-form textarea{resize:vertical}#health-form .unit-input{align-items:center;gap:7px;display:flex}#health-form .unit-input>input{flex:1;width:50%}#health-form .unit-input>span{white-space:nowrap;margin-top:6px;font-size:13px;font-weight:500}#health-form .unit-input>select{flex:0 0 92px}#health-form .health-date{color:var(--muted);margin-top:9px;font-size:12px;font-weight:500}.health-date>span,.optional{color:var(--muted);font-size:12px;font-weight:400}#health-form .health-date input{min-height:42px;margin-top:3px;font-size:14px;font-weight:400}#health-form .health-select{margin:18px 0 10px}.health-hint{color:var(--muted);margin:12px 0;font-size:13px;line-height:1.75}.health-entry{background:var(--paper);border:1.5px solid #82788f;border-radius:16px;margin:16px 0;padding:16px}.health-entry legend{padding:0 6px;font-size:13px;font-weight:700}.health-entry label+label,.health-entry .health-grid{margin-top:14px}.health-entry .text-button{color:#85382c;min-height:44px;margin-top:5px;font-size:13px}.health-check,#health-form .health-check{cursor:pointer;align-items:center;gap:10px;min-height:44px;margin:16px 0;font-size:15px;font-weight:550;line-height:1.5;display:flex}.health-check input{accent-color:var(--purple);flex-shrink:0;width:22px;height:22px}.health-add{width:100%;min-height:48px;font-size:15px}.health-save{padding:14px 0 max(12px,env(safe-area-inset-bottom));background:var(--cream);z-index:2;border-top:1px solid #21173430;margin-top:22px;position:sticky;bottom:-26px}.health-save button{background:var(--purple);color:#fff;width:100%;min-height:54px}.health-save p{text-align:center;color:var(--muted);margin:10px 0 0;font-size:12px;line-height:1.5}.health-confirm{z-index:3;border:2px solid var(--ink);background:var(--paper);border-radius:16px;padding:18px;line-height:1.6;position:sticky;bottom:0;box-shadow:0 -12px 28px #21173430}.health-confirm p{margin-top:9px;font-size:14px}.health-confirm button{flex:1;min-height:48px;font-size:14px}.result-health{background:var(--paper);border:1.5px solid #82788f;border-radius:18px;margin:18px 0;padding:18px;font-size:14px;line-height:1.7}.result-health>strong{font-size:16px}.result-health>p{color:var(--purple);margin-top:5px}.result-health summary{cursor:pointer;min-height:42px;margin-top:8px;padding-top:10px;display:list-item}.result-health details p{color:var(--muted);margin:10px 0}.result-health .health-alert{color:#85382c;background:#ffede3;border-radius:10px;padding:12px}.book-auto{border:1.5px solid var(--ink);background:var(--mint);border-radius:14px;padding:12px 14px}.book-list{gap:12px;margin:22px 0;display:grid}.book-item{text-align:left;background:var(--paper);border:1.5px solid var(--ink);border-radius:16px;align-items:center;gap:14px;width:100%;min-height:84px;padding:13px;display:flex}.book-item img,.book-placeholder{object-fit:cover;border-radius:8px;flex-shrink:0;width:58px;height:68px}.book-placeholder{background:var(--lilac);color:var(--purple);place-items:center;font-size:30px;display:grid}.book-item>span:nth-child(2){flex:1;min-width:0}.book-item strong{overflow-wrap:anywhere;font-size:17px;line-height:1.45;display:block}.book-item small{color:var(--muted);margin-top:6px;font-size:12px;line-height:1.5;display:block}.book-item>span:last-child{font-size:22px}.book-detail-image{object-fit:contain;background:var(--paper);border-radius:12px;width:96px;height:112px;margin:18px auto;display:block}.book-links{flex-wrap:wrap;align-items:center;gap:14px;margin:12px 0;display:flex}.book-links button,.book-links a{min-height:44px;color:var(--purple);padding:10px 0;font-size:14px}.book-links button.secondary{padding:10px 14px}.book-status,.book-save-status{background:var(--mint);border:1px solid #82788f;border-radius:15px;margin:20px 0;padding:14px 18px;font-size:14px;line-height:1.6}.book-save-status .book-links{margin-bottom:0}#health-form :focus-visible,.book-item:focus-visible,.health-check input:focus-visible{outline:3px solid var(--purple);outline-offset:3px}#health-form :disabled{opacity:.65;cursor:wait}@media (width<=440px){.health-grid{gap:18px 12px}.health-metric .unit-input{flex-wrap:wrap}.health-metric .unit-input>input{flex-basis:100%;width:100%}.health-metric .unit-input>span{margin:0 2px}.health-metric .unit-input>select{flex-basis:100%!important;min-height:38px!important;margin-top:0!important}.capture-toolbar .count-pill{font-size:12px}.health-confirm .modal-actions{flex-direction:column}.health-entry .health-grid{grid-template-columns:1fr}.health-save{bottom:-20px}}
