:root{--ink:#171715;--panel:#22221f;--panel-2:#2a2925;--paper:#eee9df;--muted:#aba79e;--line:#3b3933;--amber:#d8a657;--teal:#63b1a7;--rose:#c77b82;--blue:#7e9bbd;--danger:#d16d68;--radius:22px;--shadow:0 18px 50px rgba(0,0,0,.22)}
*{box-sizing:border-box}html{background:var(--ink);color:var(--paper);font-family:Arial,"Noto Sans Hebrew",sans-serif;font-size:16px}body{margin:0;min-height:100vh;background:radial-gradient(circle at 80% -10%,rgba(216,166,87,.12),transparent 34%),var(--ink)}button,input,textarea{font:inherit}.app-shell{width:min(100%,760px);min-height:100vh;margin:auto;padding:0 18px 100px}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:sticky;top:0;background:rgba(23,23,21,.94);backdrop-filter:blur(16px);z-index:4}.brand{display:flex;gap:12px;align-items:center;color:var(--paper);background:none;border:0;padding:0;text-align:right}.brand-mark{width:38px;height:38px;border:1px solid var(--amber);border-radius:50%;display:grid;place-items:center;color:var(--amber);font-size:1.55rem}.brand strong,.brand small{display:block}.brand strong{font-size:1.05rem}.brand small{color:var(--muted);margin-top:3px;font-size:.76rem}.icon-button{border:1px solid var(--line);background:var(--panel);color:var(--paper);border-radius:50%;width:42px;height:42px;font-size:1.3rem}.view{display:none;padding:34px 0 12px;animation:enter .24s ease}.view.active{display:block}@keyframes enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}.eyebrow{color:var(--amber);font-weight:700;font-size:.82rem;letter-spacing:.04em;margin:0 0 10px}.intro h1,h2{font-size:clamp(2rem,8vw,3.2rem);line-height:1.07;letter-spacing:-.04em;margin:0 0 28px}.intro{margin-bottom:28px}.lead{color:#c9c5bc;line-height:1.7;margin:-12px 0 26px;max-width:56ch}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.action-card{min-height:190px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);color:var(--paper);padding:18px;text-align:right;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr auto auto;gap:8px;box-shadow:var(--shadow);transition:.18s transform,.18s border-color}.action-card:active{transform:scale(.98)}.action-card:hover{border-color:#68645a}.action-card .card-index{color:var(--muted);font-size:.76rem}.card-icon{font-size:2rem}.action-card strong{grid-column:1/-1;font-size:1.18rem;line-height:1.25;align-self:end}.action-card small{grid-column:1/-1;color:var(--muted);line-height:1.45}.amber .card-icon{color:var(--amber)}.teal .card-icon{color:var(--teal)}.rose .card-icon{color:var(--rose)}.blue .card-icon{color:var(--blue)}.privacy-note{margin:18px 0 0;border:1px dashed var(--line);border-radius:16px;padding:14px 16px;display:flex;gap:12px;color:var(--muted);font-size:.86rem;line-height:1.45}.privacy-note p{margin:0}.privacy-note strong{color:var(--paper)}.back,.text-button{color:var(--muted);background:none;border:0;padding:8px 0;margin-bottom:24px}.tool-card{border-top:1px solid var(--line);margin-top:10px}.tool-step{display:none;gap:16px;padding:28px 0;border-bottom:1px solid var(--line)}.tool-step.active{display:flex}.tool-step>span{flex:0 0 42px;width:42px;height:42px;border:1px solid var(--amber);border-radius:50%;display:grid;place-items:center;color:var(--amber)}.tool-step strong{font-size:1.25rem}.tool-step p{color:#c9c5bc;line-height:1.7;margin:8px 0 0}.button-row{display:flex;gap:10px;margin-top:26px}.primary,.secondary,.danger{border-radius:14px;padding:14px 18px;font-weight:700;border:1px solid transparent}.primary{background:var(--paper);color:var(--ink);flex:1}.secondary{background:transparent;border-color:var(--line);color:var(--paper)}.danger{background:transparent;border-color:var(--danger);color:#ef9c97;width:100%;margin-top:12px}.stack-form{display:grid;gap:18px}.stack-form label{display:grid;gap:8px;color:#d7d2c9;font-weight:700}.stack-form textarea,.search-box input{width:100%;border:1px solid var(--line);border-radius:15px;background:var(--panel);color:var(--paper);padding:14px;line-height:1.55;resize:vertical;outline:none}.stack-form textarea:focus,.search-box:focus-within{border-color:var(--amber);box-shadow:0 0 0 3px rgba(216,166,87,.12)}.freewrite textarea{font-size:1.08rem}.form-status{min-height:1.3em;color:var(--teal);margin:0}.saved-list-wrap{margin-top:34px;border-top:1px solid var(--line);padding-top:22px}.saved-list-wrap h3{font-size:1rem}.saved-list{display:grid;gap:9px}.saved-entry{border:1px solid var(--line);background:var(--panel);padding:14px;border-radius:14px}.saved-entry time{color:var(--muted);font-size:.76rem}.saved-entry p{margin:8px 0 0;color:#d0ccc4;white-space:pre-wrap}.empty{color:var(--muted);padding:18px 0}.results{display:grid;gap:10px;margin-top:22px}.result-summary{color:var(--muted);margin-bottom:2px}.food-chip{border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:14px;display:flex;align-items:center;justify-content:space-between;gap:14px}.food-chip strong{display:block}.food-chip small{display:block;color:var(--muted);margin-top:4px}.confidence{color:var(--teal);font-size:.78rem;white-space:nowrap}.unknown{color:var(--rose)}.prototype-note{border-right:3px solid var(--amber);background:rgba(216,166,87,.08);padding:14px 16px;margin-top:24px;color:#cbc6bd;line-height:1.55;font-size:.88rem}.search-box{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:15px;background:var(--panel);padding:0 14px;margin-bottom:18px}.search-box input{border:0;background:transparent;padding-inline:0}.myth-list{display:grid;gap:10px}.myth-item{border:1px solid var(--line);border-radius:16px;background:var(--panel);overflow:hidden}.myth-item button{width:100%;border:0;background:none;color:var(--paper);display:flex;justify-content:space-between;gap:15px;padding:18px;text-align:right;font-weight:700}.myth-answer{display:none;padding:0 18px 18px;color:#c9c5bc;line-height:1.65}.myth-item.open .myth-answer{display:block}.myth-item.open button span{transform:rotate(45deg)}.settings-card{border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:18px;margin-bottom:12px}.settings-card h3{margin:0 0 8px}.settings-card p{margin:0;color:#c9c5bc;line-height:1.65}.about{border-top:1px solid var(--line);margin-top:34px;padding-top:18px;color:var(--muted);display:grid;gap:6px;font-size:.85rem}.bottom-nav{position:fixed;bottom:0;right:50%;transform:translateX(50%);width:min(100%,760px);padding:10px 18px calc(10px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);background:rgba(23,23,21,.96);backdrop-filter:blur(18px);border-top:1px solid var(--line);z-index:5}.bottom-nav button{border:0;background:none;color:var(--muted);font-size:.72rem;display:grid;gap:4px;place-items:center;padding:7px}.bottom-nav button span{font-size:1.2rem}.bottom-nav button.active{color:var(--amber)}
@media(max-width:520px){.action-grid{grid-template-columns:1fr}.action-card{min-height:150px}.app-shell{padding-inline:15px}.intro h1,h2{font-size:2.25rem}.topbar{height:70px}}@media(min-width:760px){.view{padding-top:48px}.action-card{min-height:210px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Version 0.2: update prompt and food-confirmation states */
button,input,textarea,select{font:inherit}.update-banner{position:fixed;z-index:9;top:14px;right:50%;transform:translateX(50%);width:min(calc(100% - 28px),700px);border:1px solid var(--amber);border-radius:17px;background:#2c281f;color:var(--paper);padding:13px 15px;box-shadow:0 16px 44px rgba(0,0,0,.42);display:flex;align-items:center;justify-content:space-between;gap:14px}.update-banner[hidden]{display:none}.update-banner strong,.update-banner small{display:block}.update-banner small{color:#c9c5bc;margin-top:3px}.update-actions{display:flex;gap:7px}.update-actions button{border-radius:11px;padding:9px 11px;border:1px solid var(--line);white-space:nowrap}.update-now{background:var(--paper);color:var(--ink)}.update-later{background:transparent;color:var(--paper)}.secondary.compact{padding:9px 12px;margin-top:13px}.version-card{margin-top:22px}.food-chip{display:grid;grid-template-columns:1fr auto;gap:10px 14px;align-items:center}.food-chip select{width:100%;grid-column:1/-1;border:1px solid var(--line);border-radius:11px;background:var(--panel-2);color:var(--paper);padding:10px}.match-actions{grid-column:1/-1;display:flex;gap:8px}.match-actions button{border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--paper);padding:8px 12px}.match-actions .confirm{border-color:var(--teal);color:#8bd0c7}.match-actions .reject{color:var(--muted)}.food-chip.confirmed{border-color:rgba(99,177,167,.7)}.food-chip.rejected{opacity:.55}.confidence.medium{color:var(--amber)}
@media(max-width:520px){.update-banner{align-items:flex-start;flex-direction:column}.update-actions{width:100%}.update-actions button{flex:1}}

/* Version 0.4: meal hierarchy and local meal saving */
.meal-save{margin-top:18px;border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:16px;display:grid;gap:12px}.meal-save[hidden]{display:none}.meal-save label{display:grid;gap:7px;color:#d7d2c9;font-weight:700}.meal-save select{border:1px solid var(--line);border-radius:11px;background:var(--panel-2);color:var(--paper);padding:11px}.dish-card{border-color:rgba(216,166,87,.55)}.dish-mode{grid-column:1/-1;display:flex;gap:7px}.dish-mode button{flex:1;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--muted);padding:9px}.dish-mode button.active{border-color:var(--amber);color:var(--paper);background:rgba(216,166,87,.1)}.dish-children{grid-column:1/-1;border-right:2px solid var(--line);padding-right:12px;display:grid;gap:7px}.dish-child{display:flex;justify-content:space-between;gap:12px;color:#c9c5bc;font-size:.88rem}.dish-child.inactive{text-decoration:line-through;opacity:.45}.learned-badge{color:var(--blue);font-size:.74rem}.saved-entry .meal-title{display:flex;justify-content:space-between;gap:12px}.saved-entry .meal-items{color:var(--muted);font-size:.82rem}.meal-delete{border:0;background:none;color:var(--muted);padding:0;font-size:.78rem}

/* Version 0.5: local Tzameret recipe analyzer */
.mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:5px;margin:-4px 0 20px}.mode-switch button{border:1px solid transparent;border-radius:10px;background:transparent;color:var(--muted);padding:10px 9px}.mode-switch button.active{background:var(--panel-2);border-color:var(--line);color:var(--paper)}.servings-field input{width:100%;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--paper);padding:12px}.source-strip{display:flex;align-items:center;gap:11px;border:1px solid rgba(126,155,189,.4);border-radius:13px;padding:11px 13px;margin-top:18px;color:#c9c5bc}.source-strip[hidden]{display:none}.source-strip span{color:var(--blue);font-size:.72rem;font-weight:800;border:1px solid rgba(126,155,189,.55);border-radius:99px;padding:4px 8px}.source-strip p{margin:0;font-size:.82rem}.recipe-row{align-items:start}.recipe-row .original-line{grid-column:1/-1;color:var(--muted);font-size:.78rem;white-space:pre-wrap}.recipe-row .match-main{min-width:0}.recipe-row .match-main strong{line-height:1.35}.recipe-row .match-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.recipe-row .match-meta span{border:1px solid var(--line);border-radius:99px;padding:4px 7px;color:#bbb7ae;font-size:.7rem}.recipe-row select{grid-column:1/-1}.recipe-row .match-source{grid-column:1/-1;color:var(--blue);font-size:.72rem}.recipe-row.unmatched{border-color:rgba(199,123,130,.55)}.recipe-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:0 2px 13px;color:#c9c5bc}.recipe-summary strong{color:var(--paper)}.confidence.low,.confidence.none{color:var(--rose)}

/* Version 0.6: full Tzameret correction search */
.food-search{grid-column:1/-1;border-top:1px solid var(--line);padding-top:12px;display:grid;gap:10px}.food-search label{display:grid;gap:7px;color:#d7d2c9;font-size:.82rem;font-weight:700}.inline-search{display:flex;gap:7px}.inline-search input{min-width:0;flex:1;border:1px solid var(--line);border-radius:10px;background:var(--panel-2);color:var(--paper);padding:10px}.inline-search button,.more-match{border:1px solid var(--blue);border-radius:10px;background:transparent;color:#a9c1dc;padding:9px 11px}.more-match{grid-column:1/-1}.candidate-list{display:grid;gap:6px;max-height:310px;overflow:auto}.candidate-list button{border:1px solid var(--line);border-radius:10px;background:var(--panel-2);color:var(--paper);padding:10px;text-align:right}.candidate-list button strong,.candidate-list button small{display:block}.candidate-list button small{color:var(--blue);margin-top:3px;font-size:.69rem}.search-note{color:var(--muted);font-size:.8rem;margin:3px 0}.manual-food{display:grid;gap:10px;margin-top:4px}.manual-food>.secondary{width:100%}

/* Version 0.9: playful home, affirmations and quiet mode */
:root{--pastel-yellow:#f4dfa4;--pastel-mint:#a9ddd2;--pastel-pink:#efb9c4;--pastel-blue:#b6cee8;--pastel-lilac:#cfc0ea;--pastel-peach:#f0c4a3}
[hidden]{display:none!important}.home-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.home-intro h1{margin-bottom:0}.quiet-shortcut,.quiet-exit{border:1px solid var(--line);border-radius:99px;background:var(--panel);color:var(--paper);padding:10px 14px;white-space:nowrap}.quiet-shortcut span{color:var(--pastel-lilac);margin-left:5px}.home-hub{position:relative;width:min(100%,500px);aspect-ratio:1;margin:14px auto 8px}.hub-center,.orbit-item{position:absolute;border:0;box-shadow:0 14px 36px rgba(0,0,0,.18)}.hub-center{z-index:2;top:50%;left:50%;translate:-50% -50%;width:164px;aspect-ratio:1;border-radius:45% 55% 51% 49%/55% 42% 58% 45%;background:linear-gradient(145deg,var(--pastel-lilac),#eee3ff);color:#252126;display:grid;place-items:center;align-content:center;text-align:center;padding:18px;animation:soft-blob 7s ease-in-out infinite}.hub-center strong{font-size:1.08rem}.hub-center small{font-size:.75rem;line-height:1.38;margin-top:6px;max-height:3.1em;overflow:hidden}.hub-spark{font-size:1.65rem;margin-bottom:5px}.orbit-item{width:128px;min-height:98px;border-radius:30px;background:var(--paper);color:#242320;padding:12px 10px;display:grid;place-items:center;align-content:center;text-align:center;cursor:pointer;transition:transform .2s ease,filter .2s ease;animation:soft-float 4.8s ease-in-out infinite}.orbit-item:hover{transform:translateY(-3px) rotate(-1deg);filter:brightness(1.04)}.orbit-item span{font-size:1.35rem;line-height:1}.orbit-item strong{font-size:.88rem;margin-top:7px}.orbit-item small{font-size:.69rem;margin-top:3px;opacity:.7}.orbit-reflect{top:0;right:50%;transform:translateX(50%);background:var(--pastel-yellow)}.orbit-food{top:94px;right:0;background:var(--pastel-pink);animation-delay:-1.7s}.orbit-tools{right:22px;bottom:25px;background:var(--pastel-mint);animation-delay:-3.1s}.orbit-affirmations{left:22px;bottom:25px;background:var(--pastel-lilac);animation-delay:-.8s}.orbit-library{top:94px;left:0;background:var(--pastel-blue);animation-delay:-2.4s}@keyframes soft-float{0%,100%{margin-top:0}50%{margin-top:-7px}}@keyframes soft-blob{0%,100%{border-radius:45% 55% 51% 49%/55% 42% 58% 45%;transform:rotate(-1deg)}50%{border-radius:54% 46% 43% 57%/46% 58% 42% 54%;transform:rotate(2deg)}}
.quiet-home{min-height:calc(100vh - 220px);display:grid;place-items:center;align-content:center;text-align:center;padding:24px 8px}.quiet-exit{position:absolute;top:100px;left:18px;color:var(--muted);background:transparent}.quiet-symbol{width:94px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:var(--pastel-lilac);color:#28232d;font-size:2.6rem;box-shadow:0 18px 55px rgba(207,192,234,.16);margin-bottom:26px;animation:quiet-breathe 5s ease-in-out infinite}.quiet-message{font-size:clamp(1.55rem,6vw,2.4rem);line-height:1.45;max-width:19ch;margin:10px auto 30px}.quiet-actions{display:flex;gap:10px;width:min(100%,390px)}@keyframes quiet-breathe{50%{transform:scale(1.06);box-shadow:0 22px 65px rgba(207,192,234,.25)}}
[data-home-layout="cards"] .home-hub{position:static;width:100%;aspect-ratio:auto;display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:22px}[data-home-layout="cards"] .hub-center,[data-home-layout="cards"] .orbit-item{position:static;translate:none;transform:none;width:auto;animation:none}[data-home-layout="cards"] .hub-center{grid-column:1/-1;aspect-ratio:auto;min-height:145px;border-radius:30px}[data-home-layout="cards"] .orbit-item{min-height:130px;border-radius:24px}[data-home-layout="cards"] .orbit-library{grid-column:1/-1}
.tone-filter{display:flex;gap:7px;overflow:auto;padding:2px 2px 10px;margin:0 -2px 16px;scrollbar-width:none}.tone-filter::-webkit-scrollbar{display:none}.tone-filter button{border:1px solid var(--line);border-radius:99px;background:var(--panel);color:var(--muted);padding:9px 13px;white-space:nowrap}.tone-filter button.active{background:var(--pastel-yellow);border-color:var(--pastel-yellow);color:#29251c}.affirmation-card{min-height:270px;border:0;border-radius:34px;background:linear-gradient(145deg,var(--pastel-lilac),#f2e9ff);color:#28232d;padding:30px;display:grid;place-items:center;align-content:center;text-align:center;box-shadow:0 22px 60px rgba(0,0,0,.2);position:relative;overflow:hidden}.affirmation-card:after{content:"";position:absolute;width:110px;height:110px;border-radius:50%;background:rgba(255,255,255,.3);left:-32px;bottom:-38px}.affirmation-card p{font-size:clamp(1.55rem,6vw,2.35rem);line-height:1.42;margin:14px 0}.affirmation-card small{font-weight:700;opacity:.62}.affirmation-doodle{font-size:2rem}.affirmation-actions{display:grid;grid-template-columns:1fr auto;gap:9px;margin-top:14px}.affirmation-actions .compact-text{grid-column:1/-1;margin:0;text-align:center}.custom-affirmation{border-top:1px solid var(--line);margin-top:28px;padding-top:20px}.custom-affirmation summary{cursor:pointer;color:#d7d2c9;font-weight:700}.compact-form{margin-top:16px}.stack-form input,.preference-row select{width:100%;border:1px solid var(--line);border-radius:12px;background:var(--panel-2);color:var(--paper);padding:12px;outline:none}.stack-form input:focus,.preference-row select:focus{border-color:var(--amber);box-shadow:0 0 0 3px rgba(216,166,87,.12)}.favorite-list{display:grid;gap:8px}.favorite-list button{border:1px solid var(--line);border-radius:15px;background:var(--panel);color:var(--paper);padding:14px;text-align:right}.favorite-list span,.favorite-list small{display:block}.favorite-list small{color:var(--muted);margin-top:5px}.preference-card{display:grid;gap:14px}.preference-card h3{margin-bottom:0}.preference-row label{display:grid;grid-template-columns:1fr minmax(150px,45%);gap:14px;align-items:center;color:#d7d2c9;font-weight:700}.preference-row select{appearance:auto}.quiet-setting{grid-template-columns:1fr auto;align-items:center}.switch{display:grid;justify-items:center;gap:6px;color:var(--muted);font-size:.72rem}.switch input{position:absolute;opacity:0;pointer-events:none}.switch span{width:54px;height:30px;border:1px solid var(--line);border-radius:99px;background:var(--panel-2);padding:3px;transition:.2s}.switch span:after{content:"";display:block;width:22px;height:22px;border-radius:50%;background:var(--muted);transition:.2s}.switch input:checked+span{background:var(--pastel-mint);border-color:var(--pastel-mint)}.switch input:checked+span:after{transform:translateX(-24px);background:#21322f}.switch input:focus-visible+span{outline:3px solid rgba(216,166,87,.35)}
[data-motion="reduced"] .orbit-item,[data-motion="reduced"] .hub-center,[data-motion="reduced"] .quiet-symbol{animation:none}[data-motion="off"] *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(max-width:520px){.home-intro{align-items:center}.home-intro h1{font-size:2rem}.home-intro .eyebrow{max-width:24ch}.quiet-shortcut{font-size:.78rem;padding:9px 10px}.home-hub{max-width:390px}.hub-center{width:142px}.orbit-item{width:105px;min-height:88px;border-radius:24px;padding:9px 7px}.orbit-item strong{font-size:.78rem}.orbit-item small{font-size:.63rem}.orbit-food,.orbit-library{top:80px}.orbit-tools{right:8px;bottom:18px}.orbit-affirmations{left:8px;bottom:18px}.quiet-exit{top:82px}.affirmation-card{min-height:240px;padding:24px 20px}.preference-row label{grid-template-columns:1fr}.quiet-setting{grid-template-columns:1fr auto}[data-home-layout="cards"] .home-hub{max-width:none}[data-home-layout="cards"] .orbit-item{width:auto}}
@media(prefers-reduced-motion:reduce){.orbit-item,.hub-center,.quiet-symbol{animation:none!important}}
.orbit-reflect:hover{transform:translateX(50%) translateY(-3px) rotate(-1deg)}
@media(max-width:360px){.hub-center{width:118px;padding:13px}.hub-center strong{font-size:.95rem}.hub-center small{font-size:.65rem}.orbit-item{width:92px;min-height:80px}.orbit-item strong{font-size:.72rem}.orbit-item small{display:none}.orbit-food,.orbit-library{top:72px}.orbit-tools{right:2px;bottom:12px}.orbit-affirmations{left:2px;bottom:12px}}
[data-home-layout="cards"] .orbit-reflect:hover{transform:none}

/* Version 0.9.1: illustrated mascot and navigation */
.brand-mascot{width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 5px 9px rgba(0,0,0,.18))}.hub-center{padding:10px 14px 14px}.hub-mascot{position:relative;display:block;width:88px;height:91px;margin:-8px auto -1px}.hub-mascot img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 7px 8px rgba(36,30,31,.15))}.mascot-neutral{opacity:1;animation:mascot-rest 9s ease-in-out infinite}.mascot-happy{opacity:0;animation:mascot-pop 9s ease-in-out infinite}.orbit-item img{width:52px;height:52px;object-fit:contain;margin:-5px auto -2px;filter:drop-shadow(0 5px 7px rgba(45,34,39,.12))}.orbit-item strong{margin-top:3px}.quiet-symbol{width:190px;height:190px;object-fit:contain;border-radius:0;background:none;box-shadow:none;margin-bottom:18px;filter:drop-shadow(0 18px 20px rgba(0,0,0,.18))}.affirmation-doodle{width:78px;height:78px;object-fit:contain;filter:drop-shadow(0 7px 12px rgba(96,63,89,.15))}.affirmation-card p{margin-top:7px}@keyframes mascot-rest{0%,48%,100%{opacity:1;transform:translateY(0)}55%,78%{opacity:0;transform:translateY(4px)}}@keyframes mascot-pop{0%,48%,100%{opacity:0;transform:translateY(5px) scale(.95)}55%,78%{opacity:1;transform:translateY(-2px) scale(1.03)}}
[data-motion="reduced"] .hub-mascot img,[data-motion="off"] .hub-mascot img{animation:none}.hub-center:hover .mascot-neutral{opacity:0}.hub-center:hover .mascot-happy{opacity:1;transform:translateY(-2px) scale(1.03)}
@media(max-width:520px){.brand-mascot{width:39px;height:39px}.hub-mascot{width:74px;height:76px}.orbit-item img{width:44px;height:44px}.quiet-symbol{width:165px;height:165px}.affirmation-doodle{width:66px;height:66px}[data-home-layout="cards"] .orbit-item img{width:60px;height:60px}}
@media(max-width:360px){.hub-mascot{width:59px;height:61px;margin-top:-5px}.orbit-item img{width:39px;height:39px;margin-top:-3px}.hub-center{padding:8px 10px 10px}}
@media(prefers-reduced-motion:reduce){.hub-mascot img{animation:none!important}}

/* Version 0.9.2: clear action hierarchy and box breathing */
html{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,"Noto Sans Hebrew",sans-serif}.intro h1,h2,.orbit-item strong,.hub-center strong,.primary,.secondary{font-family:ui-rounded,"Arial Rounded MT Bold",system-ui,-apple-system,"Segoe UI",Arial,sans-serif}.home-hub{margin-top:8px}.hub-center{cursor:pointer;transform-origin:center;transition:box-shadow .25s ease}.hub-center:focus-visible,.orbit-item:focus-visible{outline:4px solid rgba(244,223,164,.55);outline-offset:4px}.hub-center small{font-size:.76rem;max-height:none}.orbit-item{padding:10px}.orbit-item strong{font-size:.875rem;line-height:1.15;margin-top:2px}.primary-action{width:156px;min-height:132px;border-radius:36px}.primary-action img{width:70px;height:70px}.primary-action strong{font-size:1.05rem}.secondary-action{width:108px;min-height:88px;border-radius:27px}.secondary-action img{width:47px;height:47px}.orbit-affirmations{top:0;right:50%;left:auto;bottom:auto;transform:translateX(50%);background:var(--pastel-lilac)}.orbit-reflect{top:67px;right:18px;left:auto;bottom:auto;transform:none;background:var(--pastel-yellow)}.orbit-library{top:67px;left:18px;right:auto;bottom:auto;background:var(--pastel-blue)}.orbit-food{right:0;bottom:9px;top:auto;left:auto;background:var(--pastel-pink)}.orbit-tools{left:0;bottom:9px;top:auto;right:auto;background:var(--pastel-mint)}.orbit-reflect:hover,.orbit-library:hover,.orbit-food:hover,.orbit-tools:hover{transform:translateY(-3px) rotate(-1deg)}.orbit-affirmations:hover{transform:translateX(50%) translateY(-3px) rotate(-1deg)}.hub-center.breathing-active{animation:box-breathing 16s linear 1;box-shadow:0 20px 60px rgba(207,192,234,.36)}.hub-center.breathing-active .mascot-neutral{opacity:1;animation:none}.hub-center.breathing-active .mascot-happy{opacity:0;animation:none}@keyframes box-breathing{0%{transform:scale(1)}25%,50%{transform:scale(1.17)}75%,100%{transform:scale(1)}}@keyframes box-breathing-reduced{0%{transform:scale(1)}25%,50%{transform:scale(1.045)}75%,100%{transform:scale(1)}}
[data-motion="reduced"] .hub-center.breathing-active{animation:box-breathing-reduced 16s linear 1}[data-home-layout="cards"] .home-hub{grid-template-columns:repeat(2,1fr)}[data-home-layout="cards"] .hub-center{grid-column:1/-1;grid-row:1}[data-home-layout="cards"] .orbit-food{grid-column:1;grid-row:2}[data-home-layout="cards"] .orbit-tools{grid-column:2;grid-row:2}[data-home-layout="cards"] .orbit-reflect{grid-column:1;grid-row:3}[data-home-layout="cards"] .orbit-affirmations{grid-column:2;grid-row:3}[data-home-layout="cards"] .orbit-library{grid-column:1/-1;grid-row:4}[data-home-layout="cards"] .primary-action{min-height:155px}[data-home-layout="cards"] .secondary-action{min-height:108px}[data-home-layout="cards"] .orbit-affirmations:hover{transform:none}
@media(max-width:520px){.home-hub{max-width:390px}.primary-action{width:126px;min-height:110px;border-radius:30px}.primary-action img{width:59px;height:59px}.primary-action strong{font-size:.94rem}.secondary-action{width:92px;min-height:78px;border-radius:24px}.secondary-action img{width:40px;height:40px}.secondary-action strong{font-size:.78rem}.orbit-affirmations{top:0}.orbit-reflect{top:59px;right:4px}.orbit-library{top:59px;left:4px}.orbit-food{right:0;bottom:4px}.orbit-tools{left:0;bottom:4px}[data-home-layout="cards"] .primary-action,[data-home-layout="cards"] .secondary-action{width:auto}[data-home-layout="cards"] .primary-action{min-height:145px}}
@media(max-width:360px){.primary-action{width:112px;min-height:98px}.primary-action img{width:51px;height:51px}.primary-action strong{font-size:.86rem}.secondary-action{width:80px;min-height:70px}.secondary-action img{width:34px;height:34px}.secondary-action strong{font-size:.72rem}.orbit-reflect{top:52px;right:0}.orbit-library{top:52px;left:0}}
@media(prefers-reduced-motion:reduce){.hub-center.breathing-active{animation:box-breathing-reduced 16s linear 1!important}}

/* Version 0.9.3: lightweight beta access gate */
.beta-gate{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 8%,rgba(216,166,87,.2),transparent 34%),var(--ink)}
body:not(.beta-locked) .beta-gate{display:none}
body.beta-locked{overflow:hidden}
body.beta-locked .app-shell,body.beta-locked .update-banner{visibility:hidden}
.beta-gate-card{width:min(100%,430px);padding:30px;border:1px solid var(--line);border-radius:30px;background:var(--panel);box-shadow:0 28px 80px rgba(0,0,0,.42);text-align:center}
.beta-gate-card>img{width:118px;height:118px;object-fit:contain;margin:-10px auto 4px;animation:beta-bob 2.8s ease-in-out infinite}
.beta-gate-card h1{margin:0 0 12px;font:800 clamp(2rem,9vw,3rem)/1.05 ui-rounded,"Arial Rounded MT Bold","Noto Sans Hebrew",system-ui,sans-serif;letter-spacing:-.035em}
.beta-gate-card>p:not(.eyebrow):not(.beta-gate-status){max-width:34ch;margin:0 auto 24px;color:#c9c5bc;line-height:1.6}
.beta-gate-card label{display:block;margin-bottom:8px;text-align:right;font-weight:750}
.beta-gate-row{display:grid;grid-template-columns:1fr auto;gap:9px}
.beta-gate-row input{min-width:0;border:1px solid var(--line);border-radius:15px;background:var(--ink);color:var(--paper);padding:14px 16px;font-size:1.1rem;outline:none}
.beta-gate-row input:focus{border-color:var(--amber);box-shadow:0 0 0 3px rgba(216,166,87,.14)}
.beta-gate-row button{border:0;border-radius:15px;padding:14px 20px;background:var(--amber);color:var(--ink);font-weight:850}
.beta-gate-status{min-height:1.5em;margin:12px 0 0;color:var(--rose);font-weight:700}
@keyframes beta-bob{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-6px) rotate(1deg)}}
@media(max-width:420px){.beta-gate-card{padding:24px 18px}.beta-gate-row{grid-template-columns:1fr}.beta-gate-row button{width:100%}}
@media(prefers-reduced-motion:reduce){.beta-gate-card>img{animation:none}}

/* Version 0.10: local barcode lookup and controlled product contributions */
.barcode-box{margin:0 0 22px;border:1px solid rgba(169,221,210,.42);border-radius:20px;background:linear-gradient(145deg,rgba(169,221,210,.1),rgba(182,206,232,.05));padding:16px}
.barcode-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.barcode-head h3{margin:3px 0 0;font-size:1rem}.barcode-kicker{color:var(--pastel-mint);font-size:.75rem;font-weight:800}.barcode-box>p{margin:10px 0 0;color:#c9c5bc;line-height:1.5;font-size:.86rem}.barcode-open{flex:0 0 auto;border:0;border-radius:14px;background:var(--pastel-mint);color:#21322f;padding:12px 15px;font-weight:850}.barcode-open span{margin-left:5px;font-size:1.15rem}.barcode-workspace{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.barcode-camera{position:relative;overflow:hidden;border-radius:18px;background:#0d0d0c;aspect-ratio:4/3}.barcode-camera video{width:100%;height:100%;object-fit:cover}.barcode-guide{position:absolute;inset:50% 12% auto;translate:0 -50%;height:36%;border:3px solid var(--pastel-mint);border-radius:15px;box-shadow:0 0 0 999px rgba(0,0,0,.28)}.barcode-status{min-height:1.5em;margin:12px 0;color:#d3cec5;line-height:1.45}.barcode-manual{display:grid;gap:7px}.barcode-manual label{font-weight:750;color:#d7d2c9}.barcode-manual>div{display:grid;grid-template-columns:1fr auto;gap:8px}.barcode-manual input{min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--panel-2);color:var(--paper);padding:12px;direction:ltr;text-align:left}.barcode-manual button{border:1px solid var(--pastel-mint);border-radius:12px;background:transparent;color:var(--pastel-mint);padding:11px 16px;font-weight:750}.barcode-result{margin-top:14px}.barcode-product{border:1px solid rgba(169,221,210,.5);border-radius:17px;background:var(--panel);padding:16px}.barcode-product h3{margin:6px 0;font-size:1.25rem}.barcode-product p{margin:0 0 8px;color:#d2cec5}.barcode-product small{display:block;color:var(--muted);line-height:1.45}.barcode-product .primary{width:100%;margin-top:14px}.barcode-found{display:inline-block;border-radius:99px;background:var(--pastel-mint);color:#21322f;padding:4px 8px;font-size:.7rem;font-weight:850}.contribution-form{display:grid;gap:14px;margin-top:16px;border:1px solid rgba(244,223,164,.38);border-radius:18px;background:var(--panel);padding:16px}.contribution-heading h3{margin:4px 0 7px}.contribution-heading span{color:var(--pastel-yellow);font-size:.74rem;font-weight:850}.contribution-heading p{margin:0;color:var(--muted);font-size:.84rem;line-height:1.5}.contribution-form>label,.photo-fields label{display:grid;gap:7px;color:#d7d2c9;font-weight:750}.contribution-form input[type="text"],.contribution-form input:not([type]){width:100%;border:1px solid var(--line);border-radius:12px;background:var(--panel-2);color:var(--paper);padding:12px}.photo-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.photo-fields label{border:1px dashed var(--line);border-radius:14px;padding:12px;font-size:.86rem}.photo-fields small{color:var(--muted);font-weight:500}.photo-fields input{width:100%;color:var(--muted);font-size:.76rem}.contribution-share{width:100%}.barcode-close{width:100%;margin:12px 0 0;text-align:center}
@media(max-width:520px){.barcode-head{align-items:flex-start}.barcode-open{padding:11px 12px;font-size:.83rem}.photo-fields{grid-template-columns:1fr}.barcode-manual>div{grid-template-columns:1fr}.barcode-manual button{width:100%}}

/* Version 0.11: needs-based tools and a stable home affirmation */
.home-affirmation{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:stretch;margin:18px 0 8px;border:1px solid rgba(244,223,164,.38);border-radius:19px;background:linear-gradient(135deg,rgba(244,223,164,.14),rgba(207,192,234,.09));overflow:hidden}.home-affirmation-copy{border:0;background:none;color:var(--paper);padding:14px 16px;text-align:right}.home-affirmation-copy span{display:block;color:var(--pastel-yellow);font-size:.72rem;font-weight:850;margin-bottom:4px}.home-affirmation-copy p{margin:0;font-size:1.04rem;line-height:1.45;font-weight:650}.home-affirmation-another{border:0;border-right:1px solid var(--line);background:rgba(255,255,255,.025);color:#d2cec5;padding:10px 13px;font-size:.78rem;white-space:nowrap}.home-affirmation button:focus-visible{outline:3px solid rgba(244,223,164,.5);outline-offset:-3px}.tool-paths{display:grid;gap:11px}.tool-path{width:100%;display:grid;grid-template-columns:54px 1fr auto;align-items:center;gap:13px;border:1px solid var(--line);border-radius:19px;background:var(--panel);color:var(--paper);padding:15px;text-align:right;box-shadow:0 12px 32px rgba(0,0,0,.14);transition:transform .18s ease,border-color .18s ease}.tool-path:hover{transform:translateY(-2px);border-color:#625f57}.tool-path>span{width:50px;height:50px;border-radius:17px;display:grid;place-items:center;color:#252422;font-size:1.35rem;font-weight:900}.tool-path div{min-width:0}.tool-path strong,.tool-path small{display:block}.tool-path strong{font-size:1.05rem;line-height:1.3}.tool-path small{margin-top:5px;color:var(--muted);line-height:1.45}.tool-path>b{color:var(--muted);font-size:1.15rem}.tool-path-yellow>span{background:var(--pastel-yellow)}.tool-path-pink>span{background:var(--pastel-pink)}.tool-path-blue>span{background:var(--pastel-blue)}.tool-path-mint>span{background:var(--pastel-mint)}.tool-chooser-back{margin-bottom:14px}.tool-runner .lead{margin-bottom:18px}.therapist-cta{display:grid;grid-template-columns:95px 1fr;gap:16px;align-items:center;margin-top:34px;border:1px solid rgba(169,221,210,.46);border-radius:24px;background:linear-gradient(145deg,rgba(169,221,210,.14),rgba(182,206,232,.07));padding:18px}.therapist-cta img{width:95px;height:95px;object-fit:contain}.therapist-cta h3{margin:0 0 7px;font-size:1.15rem}.therapist-cta p{margin:0 0 11px;color:#d2cec5;line-height:1.55}.therapist-cta strong{display:block;color:var(--pastel-mint);font-size:1rem}.therapist-cta small{display:block;margin-top:5px;color:var(--muted);line-height:1.4}.tool-card{margin-top:2px}
@media(max-width:520px){.home-affirmation{grid-template-columns:1fr}.home-affirmation-another{border-right:0;border-top:1px solid var(--line);padding:9px}.tool-path{grid-template-columns:46px 1fr auto;padding:13px;gap:10px}.tool-path>span{width:44px;height:44px;border-radius:14px}.tool-path small{font-size:.8rem}.therapist-cta{grid-template-columns:1fr;text-align:center}.therapist-cta img{margin:auto}}

/* Version 0.11.1: roomier illustrated home hierarchy */
.home-affirmation{grid-template-columns:minmax(0,1fr) auto;gap:0;margin:10px 0 2px;border-radius:15px}
.home-affirmation-copy{min-width:0;padding:9px 12px}
.home-affirmation-copy span{font-size:.64rem;margin-bottom:2px}
.home-affirmation-copy p{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:.88rem;line-height:1.32;font-weight:600}
.home-affirmation-another{padding:7px 10px;font-size:.7rem}
.home-hub{width:min(100%,560px);height:570px;aspect-ratio:auto;margin-top:4px}
.hub-center{width:220px;aspect-ratio:1;padding:12px 18px 17px}
.hub-mascot{width:126px;height:130px;margin:-12px auto -4px}
.hub-center strong{font-size:.94rem}
.hub-center small{font-size:.69rem;margin-top:4px}
.orbit-item{padding:9px 8px}
.orbit-item strong{font-size:.74rem;line-height:1.16;margin-top:0}
.primary-action{width:184px;min-height:154px;border-radius:40px}
.primary-action img{width:88px;height:88px;margin:-7px auto -4px}
.primary-action strong{font-size:.84rem}
.secondary-action{width:116px;min-height:96px;border-radius:29px}
.secondary-action img{width:64px;height:64px;margin:-7px auto -4px}
.secondary-action strong{font-size:.72rem}
.orbit-affirmations{top:0}
.orbit-reflect{top:80px;right:14px}
.orbit-library{top:80px;left:14px}
.orbit-food{right:0;bottom:0}
.orbit-tools{left:0;bottom:0}
[data-home-layout="cards"] .home-hub{height:auto;aspect-ratio:auto}
[data-home-layout="cards"] .hub-center{width:auto;min-height:170px}
[data-home-layout="cards"] .primary-action,[data-home-layout="cards"] .secondary-action{width:auto}
[data-home-layout="cards"] .primary-action{min-height:165px}
[data-home-layout="cards"] .secondary-action{min-height:120px}
@media(max-width:520px){
  .home-affirmation{grid-template-columns:minmax(0,1fr) auto;margin-top:8px}
  .home-affirmation-copy{padding:8px 10px}
  .home-affirmation-copy span{font-size:.61rem}
  .home-affirmation-copy p{font-size:.82rem;-webkit-line-clamp:2}
  .home-affirmation-another{border-top:0;border-right:1px solid var(--line);padding:7px 9px;font-size:.66rem}
  .home-hub{max-width:400px;height:500px}
  .hub-center{width:188px;padding:10px 14px 15px}
  .hub-mascot{width:108px;height:112px;margin:-10px auto -3px}
  .hub-center strong{font-size:.88rem}
  .hub-center small{font-size:.65rem}
  .primary-action{width:148px;min-height:130px;border-radius:34px}
  .primary-action img{width:76px;height:76px}
  .primary-action strong{font-size:.78rem}
  .secondary-action{width:100px;min-height:88px;border-radius:25px}
  .secondary-action img{width:55px;height:55px}
  .secondary-action strong{font-size:.7rem}
  .orbit-reflect{top:72px;right:2px}
  .orbit-library{top:72px;left:2px}
  .orbit-food{right:0;bottom:0}
  .orbit-tools{left:0;bottom:0}
  [data-home-layout="cards"] .home-hub{height:auto;max-width:none}
  [data-home-layout="cards"] .hub-center{width:auto}
}

/* Version 0.13: package nutrition capture with human-reviewed AI paste */
.nutrition-ai-box{display:grid;gap:10px;border:1px solid rgba(182,206,232,.45);border-radius:16px;background:rgba(182,206,232,.07);padding:14px}
.nutrition-ai-box>div>span{color:var(--pastel-blue);font-size:.75rem;font-weight:850}.nutrition-ai-box h4{margin:4px 0 6px;font-size:1rem}.nutrition-ai-box p{margin:0;color:var(--muted);font-size:.84rem;line-height:1.5}.nutrition-ai-box .secondary{width:100%}.nutrition-ai-box details{border-top:1px solid var(--line);padding-top:10px}.nutrition-ai-box summary{cursor:pointer;color:#d7d2c9;font-weight:750}.nutrition-ai-box details label{display:grid;gap:7px;margin-top:11px;color:#d7d2c9;font-weight:750}.nutrition-ai-box textarea{width:100%;border:1px solid var(--line);border-radius:12px;background:var(--panel-2);color:var(--paper);padding:12px;resize:vertical;direction:ltr;text-align:left}.nutrition-ai-box details .secondary{margin-top:9px}
.nutrition-fields{display:grid;gap:13px;border:1px solid var(--line);border-radius:16px;padding:14px}.nutrition-fields legend{padding:0 7px;color:var(--pastel-yellow);font-weight:850}.nutrition-fields label{display:grid;gap:6px;color:#d7d2c9;font-size:.86rem;font-weight:750}.nutrition-fields input,.nutrition-fields select,.nutrition-fields textarea{width:100%;border:1px solid var(--line);border-radius:11px;background:var(--panel-2);color:var(--paper);padding:10px;outline:none}.nutrition-fields input:focus,.nutrition-fields select:focus,.nutrition-fields textarea:focus{border-color:var(--pastel-yellow);box-shadow:0 0 0 3px rgba(244,223,164,.1)}.nutrition-fields textarea{resize:vertical}.nutrition-basis{display:grid;grid-template-columns:1fr 1fr;gap:9px}.nutrition-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.nutrition-fields>small{color:var(--muted);line-height:1.45}
@media(max-width:520px){.nutrition-basis,.nutrition-grid{grid-template-columns:1fr}}

/* Version 0.14: guided ACT/DBT flow, stepwise reflection and urge wave */
.guided-start{width:100%;display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:14px;border:1px solid rgba(244,223,164,.5);border-radius:22px;background:linear-gradient(135deg,rgba(244,223,164,.17),rgba(207,192,234,.08));color:var(--paper);padding:17px;text-align:right;box-shadow:0 16px 38px rgba(0,0,0,.16)}
.guided-start>span{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:var(--pastel-yellow);color:#2a261d;font-size:1.45rem}.guided-start strong,.guided-start small{display:block}.guided-start strong{font-size:1.1rem}.guided-start small{margin-top:5px;color:#c9c5bc}.guided-start>b{color:var(--pastel-yellow);font-size:1.25rem}.direct-tools{margin-top:25px}.direct-tools h3{margin:0 0 12px;color:#d7d2c9;font-size:.92rem}
.guided-flow{border:1px solid rgba(244,223,164,.4);border-radius:24px;background:var(--panel);padding:19px;box-shadow:var(--shadow)}.wizard-progress{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px;color:var(--muted);font-size:.78rem;font-weight:750}.wizard-progress>div{display:flex;gap:6px;direction:rtl}.wizard-progress i{width:8px;height:8px;border-radius:99px;background:#4c4943}.wizard-progress i.active{width:22px;background:var(--pastel-yellow)}
.guided-prompt{display:grid;gap:10px;border:0;padding:0;margin:0}.guided-prompt>strong,.guided-prompt legend{font-size:1.35rem;font-weight:850;line-height:1.35;margin-bottom:3px}.guided-prompt>small{color:var(--muted);line-height:1.5}.guided-prompt textarea{width:100%;margin-top:4px;border:1px solid var(--line);border-radius:16px;background:var(--panel-2);color:var(--paper);padding:14px;line-height:1.55;resize:vertical;outline:none}.guided-prompt textarea:focus{border-color:var(--pastel-yellow);box-shadow:0 0 0 3px rgba(244,223,164,.1)}.guided-choice{width:100%;border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.02);color:#d8d3ca;padding:14px;text-align:right;line-height:1.45}.guided-choice:hover,.guided-choice.active{border-color:var(--pastel-yellow);background:rgba(244,223,164,.11);color:var(--paper)}
.wizard-actions{display:grid;grid-template-columns:1fr auto;gap:9px;margin-top:22px}.wizard-links,.tool-footer-links{display:flex;align-items:center;justify-content:space-between;gap:14px}.wizard-links .text-button,.tool-footer-links .text-button{margin:9px 0 0;font-size:.82rem}.guided-result{display:grid;grid-template-columns:58px 1fr;gap:14px;align-items:start;border:1px solid var(--line);border-radius:20px;padding:17px;background:rgba(255,255,255,.025)}.guided-result>span{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;color:#282622;font-size:1.4rem;font-weight:900}.guided-result small,.guided-result strong{display:block}.guided-result small{color:var(--pastel-yellow);font-weight:800;margin-bottom:5px}.guided-result strong{font-size:1.2rem}.guided-result p{margin:7px 0 0;color:var(--muted);line-height:1.55}.tool-path-lilac>span,.guided-result.tool-path-lilac>span{background:var(--pastel-lilac)}.tool-path-peach>span,.guided-result.tool-path-peach>span{background:#f2c7ae}.guided-result.tool-path-yellow>span{background:var(--pastel-yellow)}.guided-result.tool-path-pink>span{background:var(--pastel-pink)}.guided-result.tool-path-blue>span{background:var(--pastel-blue)}.guided-result.tool-path-mint>span{background:var(--pastel-mint)}
.tool-footer-links{flex-wrap:wrap}.tool-footer-links .text-button{color:#bdb8af}.tool-runner #toolPrevious:disabled{opacity:.35}.reflection-step{min-height:230px;align-content:start}.reflection-step[hidden]{display:none}.reflection-step textarea{font-size:1.05rem}.stack-form>.wizard-progress{margin-bottom:2px}.stack-form>.wizard-links .text-button{margin-bottom:0}
.urge-wave{display:grid;justify-items:center;text-align:center;margin:8px 0 5px;border-bottom:1px solid var(--line);padding:8px 0 24px}.urge-wave-visual{width:min(100%,320px);height:112px;display:flex;align-items:center;justify-content:center;gap:8px;overflow:hidden}.urge-wave-visual i{width:14px;height:38px;border-radius:99px;background:linear-gradient(180deg,var(--pastel-blue),var(--pastel-lilac));opacity:.7;transform:scaleY(.6)}.urge-wave-visual i:nth-child(2){height:74px}.urge-wave-visual i:nth-child(3){height:50px}.urge-wave.active .urge-wave-visual i{animation:urge-pulse 3.4s ease-in-out infinite}.urge-wave.active .urge-wave-visual i:nth-child(2){animation-delay:.35s}.urge-wave.active .urge-wave-visual i:nth-child(3){animation-delay:.7s}.urge-wave>strong{font-size:2.1rem;font-variant-numeric:tabular-nums}.urge-wave>p{min-height:3em;margin:6px 0 14px;color:#c9c5bc;line-height:1.5;max-width:36ch}.urge-wave .secondary{min-width:170px}@keyframes urge-pulse{0%,100%{transform:scaleY(.55);opacity:.55}50%{transform:scaleY(1.35);opacity:1}}
@media(max-width:520px){.guided-start{grid-template-columns:50px 1fr auto;padding:14px}.guided-start>span{width:48px;height:48px}.guided-flow{padding:16px}.wizard-actions{grid-template-columns:1fr}.wizard-actions .secondary{width:100%}.wizard-links{align-items:flex-start}.guided-result{grid-template-columns:50px 1fr;padding:14px}.guided-result>span{width:46px;height:46px}.tool-footer-links{justify-content:flex-start}.reflection-step{min-height:205px}}
@media(prefers-reduced-motion:reduce){.urge-wave.active .urge-wave-visual i{animation:none}.wizard-progress i{transition:none}}

/* Version 0.14.2: one quiet introduction below the home tools */
.creator-note{margin:16px 0 0;padding:15px 16px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.025)}
.creator-note h2{margin:0 0 6px;font-size:1rem;line-height:1.35;letter-spacing:0}
.creator-note p{margin:0;color:#c9c5bc;font-size:.89rem;line-height:1.6}
.creator-note a{display:inline-flex;align-items:center;gap:7px;margin-top:10px;color:var(--pastel-mint);font-size:.89rem;font-weight:750;text-decoration:underline;text-underline-offset:3px}
.creator-note a:focus-visible{outline:2px solid var(--pastel-mint);outline-offset:4px;border-radius:3px}

/* Version 0.14.3: compact contact line above the home actions */
.contact-strip{display:flex;align-items:center;justify-content:space-between;gap:8px 18px;flex-wrap:wrap;margin:-15px 0 25px;padding:9px 13px;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.025);color:#d7d2c9;text-decoration:none;line-height:1.4}
.contact-strip strong{color:var(--pastel-mint);font-size:.9rem;white-space:nowrap}.contact-strip span{font-size:.83rem}.contact-strip:hover{border-color:var(--pastel-mint)}.contact-strip:focus-visible{outline:2px solid var(--pastel-mint);outline-offset:3px}
@media(max-width:520px){.contact-strip{margin:-17px 0 22px;padding:10px 12px}.contact-strip strong{font-size:.88rem}.contact-strip span{font-size:.82rem}}
@media(max-width:360px){
  .home-hub{height:456px}
  .hub-center{width:170px}
  .hub-mascot{width:96px;height:100px}
  .primary-action{width:132px;min-height:116px;border-radius:31px}
  .primary-action img{width:67px;height:67px}
  .primary-action strong{font-size:.74rem}
  .secondary-action{width:86px;min-height:78px;border-radius:23px}
  .secondary-action img{width:48px;height:48px}
  .secondary-action strong{font-size:.66rem}
  .orbit-reflect{top:64px;right:0}
  .orbit-library{top:64px;left:0}
}

/* Version 0.12: contribution export and clearer home spacing */
.home-affirmation{margin:3px 0 28px}
.home-hub{margin-top:0}
.contribution-export{margin-top:16px;border-top:1px solid rgba(169,221,210,.34);padding-top:16px}
.contribution-export-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.contribution-export-head span{display:block;color:var(--pastel-mint);font-size:.75rem;font-weight:800}
.contribution-export-head h3{margin:4px 0 0;font-size:1rem}
.contribution-export-head>strong{min-width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:var(--pastel-mint);color:#21322f;font-size:1.1rem}
.contribution-export>p:not(.form-status){margin:10px 0 13px;color:#c9c5bc;font-size:.84rem;line-height:1.5}
.contribution-preview{display:grid;gap:6px;margin-bottom:12px}
.contribution-preview>div{display:flex;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:11px;padding:9px 11px;background:rgba(255,255,255,.025)}
.contribution-preview strong,.contribution-preview small{font-size:.78rem}
.contribution-preview small{color:var(--muted);text-align:left}
.contribution-more{color:var(--muted);font-size:.76rem}
.contribution-export-actions{display:grid;grid-template-columns:1fr auto;gap:8px}
.contribution-export-actions .secondary:disabled{opacity:.38;cursor:not-allowed}
@media(max-width:520px){
  .home-affirmation{margin-top:1px;margin-bottom:34px}
  .contribution-export-actions{grid-template-columns:1fr}
  .contribution-preview>div{display:grid;gap:3px}
  .contribution-preview small{text-align:right}
}

/* Version 0.15: a warm, light canvas and calmer Hebrew typography. */
:root{
  --ink:#faf8f5;--panel:#fffefd;--panel-2:#f5f1f0;--paper:#302d38;
  --muted:#66636d;--line:#e2dce3;--amber:#775286;--teal:#2e7167;
  --rose:#9b526e;--blue:#496b8b;--danger:#a73543;
  --shadow:0 12px 32px rgba(77,57,86,.07)
}
html{font-family:"Noto Sans Hebrew","Arial Rounded MT Bold",system-ui,sans-serif;line-height:1.5}
body{background:radial-gradient(circle at 88% 4%,rgba(207,192,234,.25),transparent 32%),radial-gradient(circle at 6% 48%,rgba(169,221,210,.16),transparent 40%),var(--ink)}
h1,h2,h3,strong{letter-spacing:-.015em}
.intro h1,h2{line-height:1.24;letter-spacing:-.025em}
.topbar,.bottom-nav{background:rgba(250,248,245,.94)}
.topbar{border-bottom-color:#e8e1e7}.bottom-nav{border-top-color:#e8e1e7}
.update-banner{background:#fffefd;box-shadow:var(--shadow)}
.update-banner small,.lead,.tool-step p,.saved-entry p,.prototype-note,.myth-answer,.settings-card p,
.dish-child,.source-strip,.recipe-summary,.guided-start small,.urge-wave>p,.therapist-cta p,
.creator-note p,.contribution-export>p:not(.form-status),.contact-strip,
.stack-form label,.meal-save label,.food-search label,.preference-row label,.custom-affirmation summary,
.nutrition-ai-box summary,.nutrition-ai-box details label,.nutrition-fields label,.direct-tools h3,
.recipe-row .match-meta span,.guided-choice,.tool-footer-links .text-button,
.beta-gate-card>p:not(.eyebrow):not(.beta-gate-status),.barcode-box>p,.barcode-status,
.barcode-manual label,.barcode-product p,.contribution-form>label,.photo-fields label{color:#56515c}
.match-actions .confirm,.inline-search button,.more-match,.creator-note a{color:var(--teal)}
.barcode-manual button{color:var(--teal);border-color:var(--teal)}
.guided-result small,.nutrition-fields legend,.nutrition-ai-box>div>span{color:var(--amber)}
.barcode-kicker,.contribution-heading span{color:var(--teal)}
.beta-gate-card{box-shadow:0 22px 60px rgba(77,57,86,.15)}
.beta-gate-row button{color:#fff}.beta-gate{background:radial-gradient(circle at 50% 8%,rgba(207,192,234,.3),transparent 40%),var(--ink)}
.wizard-progress i{background:#ddd5dd}
.home-affirmation-another{background:rgba(255,255,255,.42);color:#57505e}
.home-affirmation-copy span{color:var(--amber)}
.home-affirmation{background:linear-gradient(120deg,#fff9e8,#f6f0fd);border-color:#eadff0}
.creator-note,.contact-strip,.contribution-preview>div{background:rgba(255,255,255,.72)}
.therapist-cta strong{color:var(--teal)}
.guided-choice,.guided-result{background:rgba(255,255,255,.72)}
.orbit-item{background:var(--pastel-lilac);color:#292530;box-shadow:0 10px 26px rgba(85,68,96,.13)}
.hub-center{box-shadow:0 13px 33px rgba(85,68,96,.14)}
.danger{color:var(--danger)}
.home-intro{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;margin-bottom:16px}
.home-intro>div{width:100%}.home-intro .eyebrow{max-width:none;margin-bottom:6px;color:var(--muted)}
.home-intro h1{margin:0;font-size:clamp(1.9rem,6vw,2.6rem)}
.home-intro .quiet-shortcut{align-self:flex-end;font-size:.78rem;padding:7px 12px}
.quiet-shortcut span{color:var(--amber)}
.home-affirmation-copy{text-align:center;padding:12px 16px}
.home-affirmation-copy span{font-size:.75rem;margin-bottom:4px}
.home-affirmation-copy p{font-size:1rem;line-height:1.5}
.creator-note{text-align:center;padding:18px 18px 20px}
.creator-note h2{font-size:1.1rem;margin-bottom:8px}.creator-note p{max-width:56ch;margin:auto}
.creator-note a{justify-content:center}
@media(max-width:520px){
  .home-intro{gap:9px;margin-bottom:13px}.home-intro h1{font-size:1.9rem}
  .home-affirmation-copy{padding:10px 12px}.home-affirmation-copy span{font-size:.71rem}
  .home-affirmation-copy p{font-size:.91rem;line-height:1.42}
  .home-affirmation-another{font-size:.7rem;padding:8px 10px}
}

/* Version 0.15.1: quiet blue-grey surround, clear surface and distinct orbit colors. */
html{background:#e5e8ed}
body{background:linear-gradient(145deg,#e6e8ee,#edf0ee)}
.app-shell{background:#fcfbfa;box-shadow:0 0 55px rgba(57,62,76,.1)}
.topbar,.bottom-nav{background:rgba(252,251,250,.95)}
.beta-gate{background:linear-gradient(145deg,#e6e8ee,#edf0ee)}
.orbit-reflect{background:var(--pastel-yellow)}
.orbit-food{background:var(--pastel-pink)}
.orbit-tools{background:var(--pastel-mint)}
.orbit-affirmations{background:var(--pastel-lilac)}
.orbit-library{background:var(--pastel-blue)}
@media(max-width:760px){.app-shell{box-shadow:none}}

/* Nutrient discovery: a small comparison surface beside the food diary. */
.richness-shortcut{width:100%;margin:15px 0 4px;padding:15px 17px;display:flex;align-items:center;gap:14px;text-align:right;border:1px solid #bfd0dc;border-radius:20px;background:linear-gradient(110deg,#e7f7fa,#f5ebfa);color:#314452;cursor:pointer;box-shadow:0 8px 22px rgba(57,99,122,.08)}
.richness-shortcut>span:first-child{font-size:1.55rem;color:#8471aa}.richness-shortcut>span:nth-child(2){display:grid;gap:3px;flex:1}.richness-shortcut strong{font-size:1.07rem}.richness-shortcut small{font-size:.81rem;color:#526575}.richness-shortcut b{font-size:1.3rem}
.richness-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:23px 0 18px;padding:17px;border:1px solid #cadce6;border-radius:22px;background:rgba(250,253,255,.68)}
.richness-controls label{display:grid;gap:7px;font-weight:700;font-size:.86rem;color:#435665}.richness-controls select,.richness-controls input{width:100%;min-width:0;padding:12px;border:1px solid #b5cbd7;border-radius:12px;background:#fff;color:#263c4a;outline:none}
.richness-controls :is(select,input):focus-visible,.richness-shortcut:focus-visible,.richness-basis button:focus-visible{outline:3px solid #8ebbd1;outline-offset:2px}
.richness-basis{display:grid;grid-template-columns:1fr 1fr;gap:4px;align-self:end;padding:4px;border-radius:13px;background:#e1edf3}.richness-basis button{border:0;border-radius:10px;background:transparent;color:#50636e;padding:12px 6px;cursor:pointer}.richness-basis button.active{background:#fff;color:#253f4c;font-weight:800;box-shadow:0 2px 8px rgba(57,99,122,.1)}
.richness-status{font-size:.84rem;color:#526575;line-height:1.5;margin:16px 2px}.richness-list{display:grid;gap:8px;list-style:none;padding:0;margin:0;counter-reset:none}
.richness-row{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #d3e1e8;border-radius:16px;background:rgba(255,255,255,.72)}.richness-rank{flex:0 0 32px;width:32px;height:32px;display:grid;place-items:center;border-radius:11px;background:#e7e2f4;color:#584e70;font-weight:800}.richness-food{flex:1;min-width:0}.richness-food strong{display:block;line-height:1.35;overflow-wrap:anywhere}.richness-food small{display:block;margin-top:5px;color:#566674;line-height:1.35}.richness-value{min-width:65px;text-align:left;color:#2b6870}.richness-value strong{display:block;font-size:1.25rem;font-variant-numeric:tabular-nums}.richness-value small{display:block;font-size:.72rem}.richness-note{font-size:.78rem;color:#526575;line-height:1.6;margin:20px 2px}
@media(max-width:520px){.richness-controls{grid-template-columns:1fr}.richness-row{gap:9px;padding:11px}.richness-food strong{font-size:.91rem}.richness-value{min-width:56px}}

/* Version 0.16: a small, always-available guide to the app. */
.header-actions{display:flex;align-items:center;gap:8px}
.help-trigger{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border:1px solid rgba(69,112,133,.2);border-radius:999px;background:rgba(245,251,254,.68);color:#334753;padding:8px 12px;font-size:.78rem;font-weight:750;cursor:pointer}
.help-trigger span{display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#b6cee8;color:#2f4558;font-weight:900}
.help-trigger:hover{background:#f1faff}.help-trigger:focus-visible,.help-close:focus-visible,.help-done:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.help-dialog{width:min(calc(100% - 28px),580px);max-height:min(86dvh,760px);margin:auto;padding:22px;border:1px solid #accbd9;border-radius:26px;background:#e7f5fb;color:var(--paper);box-shadow:0 26px 80px rgba(28,62,80,.27);overflow:auto}
.help-dialog::backdrop{background:rgba(27,55,74,.48);backdrop-filter:blur(4px)}
.help-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.help-head .eyebrow{margin:0 0 3px;color:var(--blue)}
.help-head h2{font-size:1.65rem;line-height:1.25;margin:0}.help-close{flex:0 0 38px;width:38px;height:38px;border:1px solid #bfd7e1;border-radius:50%;background:#f6fbfd;color:#394850;font-size:1.55rem;line-height:1;cursor:pointer}
.help-intro{margin:10px 0 18px;line-height:1.6;color:#455763}
.help-items{display:grid;gap:8px}.help-items section{display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:start;border:1px solid rgba(82,126,149,.16);border-radius:16px;background:rgba(255,255,255,.57);padding:11px}
.help-emoji{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:#d2eaf4;font-size:1.15rem}.help-items section:nth-child(3n+1) .help-emoji{background:var(--pastel-lilac)}.help-items section:nth-child(3n+2) .help-emoji{background:var(--pastel-mint)}
.help-items h3{font-size:.98rem;line-height:1.3;margin:0 0 3px}.help-items p{font-size:.87rem;line-height:1.55;margin:0;color:#505d65}
.help-privacy{margin:16px 0;padding:13px 14px;border-radius:15px;background:#d6edf7;color:#435561;font-size:.86rem;line-height:1.55}.help-privacy strong{color:#2c4859}
.help-done{width:100%;border:0;border-radius:14px;background:#376c81;color:#fff;padding:12px 16px;font-weight:800;cursor:pointer}
@media(max-width:390px){.header-actions{gap:5px}.help-trigger{font-size:.68rem;padding:7px 8px;gap:4px}.help-trigger span{width:17px;height:17px}.help-dialog{padding:17px}}

/* Version 0.15.2: a soft sky, with faint cloud shapes behind the content. */
html{background:#a9d8ef}
body{
  background:
    radial-gradient(ellipse 150px 34px at 12% 17%,rgba(255,255,255,.42) 55%,transparent 72%),
    radial-gradient(ellipse 185px 42px at 89% 43%,rgba(255,255,255,.32) 55%,transparent 73%),
    linear-gradient(160deg,#9acfe9,#b7dfee 72%,#a4d6e8)
}
.app-shell{
  background:
    radial-gradient(ellipse 74px 34px at 9% 12%,rgba(255,255,255,.42) 58%,transparent 76%),
    radial-gradient(ellipse 92px 32px at 18% 12%,rgba(255,255,255,.42) 58%,transparent 76%),
    radial-gradient(ellipse 95px 35px at 82% 37%,rgba(255,255,255,.27) 58%,transparent 77%),
    radial-gradient(ellipse 64px 26px at 91% 37%,rgba(255,255,255,.27) 58%,transparent 77%),
    linear-gradient(180deg,#b8e1f4,#d0ebf7 56%,#b7ddeb);
  box-shadow:0 0 45px rgba(55,99,122,.12)
}
.topbar,.bottom-nav{background:rgba(190,226,242,.91);border-color:rgba(69,112,133,.16)}
.beta-gate{background:linear-gradient(160deg,#9acfe9,#b7dfee)}
.beta-gate-card{background:#d9eff9}
.home-affirmation{background:linear-gradient(115deg,rgba(255,249,232,.83),rgba(234,228,249,.78))}
.creator-note,.contact-strip,.contribution-preview>div{background:rgba(245,251,254,.62)}
@media(max-width:760px){.app-shell{box-shadow:none}}

/* Food diary: write, review, and save in one continuous mobile flow. */
[data-view="food"]>.lead{margin-bottom:15px;font-size:.92rem;line-height:1.55}
.food-steps{display:flex;align-items:center;justify-content:space-between;gap:5px;margin:0 0 21px;color:#536575;font-size:.75rem}.food-steps span{display:flex;align-items:center;gap:5px;white-space:nowrap}.food-steps b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#e4dff2;color:#554e68;font-size:.7rem}.food-steps span:first-child b{background:#f3d2dd}
.food-entry-card{padding:18px;gap:14px;border:1px solid #cbdae3;border-radius:23px;background:rgba(249,253,255,.85);box-shadow:0 11px 28px rgba(57,99,122,.09)}
.food-entry-head{display:flex;gap:11px;align-items:flex-start}.food-entry-head>span{width:37px;height:37px;flex:0 0 37px;display:grid;place-items:center;background:#efdfed;color:#655071;border-radius:13px;font-size:1.25rem}.food-entry-head h3{font-size:1.06rem;margin:0 0 3px}.food-entry-head p{font-size:.78rem;line-height:1.5;margin:0;color:#596a75}
.food-entry-card label{color:#364c5b;font-size:.85rem}.food-entry-card .freewrite textarea{min-height:125px;background:#fff;color:#263744;border-color:#bbd0dc;border-radius:15px;font-size:1rem;line-height:1.6}.food-entry-card textarea::placeholder{color:#81919c}.food-entry-card textarea:focus-visible{border-color:#589dbb;box-shadow:0 0 0 3px rgba(102,163,187,.15)}
.food-entry-card .primary{background:#386e84;color:#fff;border-radius:14px;min-height:52px;cursor:pointer}.food-entry-card .primary:hover{background:#2d6075}.food-entry-card .primary span{margin-right:7px}
.food-entry-privacy{color:#61717b;font-size:.74rem;line-height:1.5}.food-examples{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.food-examples>span{font-size:.73rem;color:#657582;margin-left:4px}.food-examples button{padding:7px 9px;border:1px solid #cbd9e2;border-radius:999px;background:#f3f8fb;color:#3e5968;font-size:.72rem;cursor:pointer}
.food-empty{display:flex;align-items:center;gap:11px;padding:14px;border:1px dashed #c4d9e4;border-radius:16px;color:#526879;background:rgba(246,252,255,.45)}.food-empty span{font-size:1.4rem;color:#927bb5}.food-empty p{margin:0;line-height:1.45;font-size:.82rem}
#foodResults{scroll-margin-top:96px}.result-summary{border-radius:13px;background:#e7f3f7;padding:11px 13px;color:#365667;font-size:.86rem;line-height:1.5}
.diary-result{border-color:#cbdce5;border-radius:17px;background:rgba(255,255,255,.78);grid-template-columns:minmax(0,1fr) auto;gap:11px}.diary-result .food-result-main{min-width:0}.diary-result .food-origin{display:block;color:#647783;font-size:.73rem;margin:0 0 6px}.diary-result .food-result-main strong{font-size:1rem;line-height:1.35;overflow-wrap:anywhere}.diary-result .food-result-main>small:last-child{font-size:.72rem;line-height:1.45}.food-quantity{color:#376f80;font-weight:750}
.food-state{justify-self:end;align-self:start;border-radius:999px;padding:4px 8px;background:#fff0d9;color:#795e34;font-size:.71rem;white-space:nowrap}.diary-result.confirmed{border-color:#9acabc}.diary-result.confirmed .food-state{background:#dff4eb;color:#316858}.diary-result.rejected{opacity:.75}.diary-result.rejected .food-state{background:#e7e9ec;color:#5c6871}
.diary-result .match-actions{display:grid;grid-template-columns:1fr auto auto;align-items:center}.diary-result .match-actions button{min-height:38px;padding:7px 10px;background:#fff;color:#415e6d;border-color:#cad9e0;cursor:pointer;font-size:.79rem}.diary-result .match-actions .confirm{background:#ddf2ed;color:#276654;border-color:#8cc6b7;font-weight:750}.diary-result .match-actions .reject{border:0;background:transparent;color:#707e85;font-size:.71rem}.diary-result .match-actions .undo{grid-column:1/-1;background:#edf3f7}
.correction-panel{background:#f1f8fb;padding:12px;border-radius:12px;border:1px solid #c9dce6}.correction-panel label{color:#405867}.correction-panel label>input{width:100%;min-width:0;border:1px solid #bdd2dd;border-radius:10px;padding:10px;background:#fff;color:#273d49}.correction-panel select{background:#fff;color:#273d49}.correction-panel .correction-close{justify-self:start;border:0;background:none;color:#386e84;font-weight:700;padding:6px 0;cursor:pointer}
#saveMeal:disabled{opacity:.65;cursor:not-allowed}.barcode-box{margin-top:26px}.source-strip{margin-top:24px}
@media(max-width:430px){.food-steps{font-size:.67rem}.food-steps b{width:18px;height:18px}.food-entry-card{padding:14px}.diary-result .match-actions{grid-template-columns:1fr 1fr}.diary-result .match-actions .reject{grid-column:1/-1;justify-self:start}.diary-result .match-actions button{font-size:.76rem}}

/* Analyzer console: motion follows the user's actions, then settles. */
.analyzer-console{
  --paper:#edfaff;--muted:#a9c7d5;--line:rgba(92,194,230,.25);
  --panel:#102338;--panel-2:#152d43;--blue:#65d8f5;--teal:#80e7d5;
  position:relative;isolation:isolate;overflow:hidden;margin:-10px -12px 27px;padding:24px 22px 26px;
  border:1px solid rgba(76,180,220,.38);border-radius:27px;
  background:radial-gradient(circle at 85% 4%,rgba(23,131,183,.27),transparent 30%),linear-gradient(153deg,#071524 0%,#0b1d30 50%,#102439 100%);
  color:var(--paper);box-shadow:0 22px 50px rgba(9,43,69,.23),inset 0 1px rgba(202,246,255,.12)
}
.analyzer-console::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.3;background:linear-gradient(90deg,transparent 31px,rgba(82,180,217,.16) 32px,transparent 33px),linear-gradient(transparent 31px,rgba(82,180,217,.12) 32px,transparent 33px);background-size:32px 32px;mask-image:linear-gradient(to bottom,black,transparent 68%)}
.analyzer-console .back{color:#b9d7e5;margin-bottom:20px}.analyzer-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:86px}
.analyzer-heading .eyebrow{color:#83d9ef;letter-spacing:.05em}.analyzer-heading h2{margin:2px 0 0;color:#f2fbff;font-size:clamp(1.75rem,5vw,2.45rem)}
.analyzer-orb{flex:none;position:relative;width:74px;height:74px;border:1px solid rgba(92,214,245,.55);border-radius:50%;background:radial-gradient(circle,rgba(67,199,231,.16),transparent 68%);box-shadow:0 0 0 8px rgba(48,157,203,.055),inset 0 0 15px rgba(49,193,238,.18);transition:transform .55s cubic-bezier(.22,1,.36,1),box-shadow .55s ease,border-color .4s ease}
.analyzer-orb::before,.analyzer-orb::after,.analyzer-orb span{content:"";position:absolute;border-radius:50%;inset:9px;border:1px dashed rgba(109,217,241,.54)}
.analyzer-orb::after{inset:22px;border:1px solid #70d9f0;box-shadow:0 0 15px rgba(91,211,245,.43)}
.analyzer-orb span{inset:32px;background:#a6f3ff;border:0;box-shadow:0 0 13px #6dd8f2}
.analyzer-console[data-stage="reading"] .analyzer-orb{transform:scale(1.1);border-color:#a7efff;box-shadow:0 0 0 9px rgba(48,157,203,.1),0 0 25px rgba(43,174,228,.32)}
.analyzer-console[data-stage="reading"] .analyzer-orb::before{animation:analyzer-scan 2.2s linear infinite}
.analyzer-console[data-stage="ready"] .analyzer-orb,.analyzer-console[data-stage="saved"] .analyzer-orb{border-color:#8ce7d6;box-shadow:0 0 0 8px rgba(97,220,196,.08),inset 0 0 15px rgba(97,220,196,.14)}
.analyzer-console[data-stage="ready"] .analyzer-orb span,.analyzer-console[data-stage="saved"] .analyzer-orb span{background:#92efdc;box-shadow:0 0 14px #72d9c7}
@keyframes analyzer-scan{to{transform:rotate(360deg)}}
.analyzer-stage-label{display:inline-flex;align-items:center;gap:8px;margin:8px 0 17px;padding:6px 10px;border:1px solid rgba(121,212,234,.28);border-radius:999px;background:rgba(41,125,165,.15);color:#bfeafa;font-size:.82rem;font-weight:750;transition:background .35s ease,color .35s ease}
.analyzer-stage-label::before{content:"";width:7px;height:7px;border-radius:50%;background:#79dcf2;box-shadow:0 0 9px #79dcf2}
.analyzer-console[data-stage="ready"] .analyzer-stage-label,.analyzer-console[data-stage="saved"] .analyzer-stage-label{color:#b9f3e5;background:rgba(62,161,143,.14)}
.analyzer-console[data-stage="ready"] .analyzer-stage-label::before,.analyzer-console[data-stage="saved"] .analyzer-stage-label::before{background:#8ce7d6;box-shadow:0 0 9px #8ce7d6}
.analyzer-console>#foodLead{color:#b4cfdd;font-size:.96rem}.analyzer-console .food-steps{border-top:1px solid rgba(125,203,228,.18);padding-top:15px;color:#b4cfdd}
.analyzer-console .food-steps b{background:#24455b;color:#defaff}.analyzer-console[data-stage="review"] .food-steps span:nth-child(2) b,.analyzer-console[data-stage="reading"] .food-steps span:nth-child(2) b{background:#75d8f0;color:#082034}
.analyzer-console[data-stage="ready"] .food-steps span:nth-child(3) b,.analyzer-console[data-stage="saved"] .food-steps span:nth-child(3) b{background:#8ce7d6;color:#082c2b}
.analyzer-console .mode-switch{background:#0b1b2d;border-color:var(--line)}.analyzer-console .mode-switch button{color:#b1ccd8}.analyzer-console .mode-switch button.active{background:#21445d;color:#f3fcff;border-color:#5eaec8}
.analyzer-console .food-entry-card{background:linear-gradient(145deg,rgba(25,58,80,.92),rgba(15,37,57,.92));border-color:rgba(102,195,224,.39);box-shadow:0 14px 27px rgba(1,10,21,.18)}
.analyzer-console .food-entry-head>span{background:#1f4e66;color:#a7efff}.analyzer-console .food-entry-head h3{color:#f2fbff}.analyzer-console .food-entry-head p,.analyzer-console .food-entry-privacy,.analyzer-console .food-examples>span{color:#b6d0dc}
.analyzer-console .food-entry-card label{color:#e0f5fc;font-size:.94rem}.analyzer-console .food-entry-card .freewrite textarea,.analyzer-console .servings-field input{background:#081c2c;color:#f1fcff;border-color:#4b8199}
.analyzer-console .food-entry-card textarea::placeholder{color:#9ebac7}.analyzer-console .food-entry-card textarea:focus-visible,.analyzer-console input:focus-visible,.analyzer-console select:focus-visible,.analyzer-console button:focus-visible{outline:2px solid #8de6fa;outline-offset:2px}
.analyzer-console .food-examples button{background:#163a50;color:#d9f5fc;border-color:#477b92}.analyzer-console .food-entry-card .primary,.analyzer-console .meal-save .primary{background:linear-gradient(105deg,#78def0,#9be9e0);color:#062634;border:0;font-weight:850;box-shadow:0 6px 20px rgba(39,188,220,.18);transition:transform .24s ease,box-shadow .24s ease}
.analyzer-console .food-entry-card .primary:hover,.analyzer-console .meal-save .primary:hover{background:linear-gradient(105deg,#96e9f8,#b0f2e9);transform:translateY(-2px);box-shadow:0 9px 26px rgba(39,188,220,.26)}
.analyzer-console .food-empty,.analyzer-console .result-summary{background:rgba(23,63,87,.74);border-color:rgba(98,184,215,.38);color:#d1edf6}.analyzer-console .food-empty span{color:#8de6fa}
.analyzer-console .diary-result,.analyzer-console .recipe-row{background:linear-gradient(135deg,rgba(24,55,78,.98),rgba(13,35,57,.98));border:1px solid rgba(96,181,213,.38);color:#f0faff;box-shadow:0 8px 22px rgba(0,8,17,.13);transition:border-color .28s ease,background .28s ease,box-shadow .28s ease}
.analyzer-console .diary-result:hover,.analyzer-console .recipe-row:hover{border-color:#78d7ee;box-shadow:0 11px 24px rgba(23,160,205,.13)}
.analyzer-console .diary-result.confirmed{border-color:rgba(120,227,205,.73)}.analyzer-console .diary-result.rejected{opacity:.7}.analyzer-console .diary-result .food-origin,.analyzer-console .recipe-row .original-line{color:#accbd9;font-size:.82rem}
.analyzer-console .diary-result .food-result-main>small:last-child,.analyzer-console .recipe-row .match-meta span{color:#bad3df;font-size:.8rem}.analyzer-console .food-quantity,.analyzer-console .recipe-row .match-source{color:#8cdef0}
.analyzer-console .food-state{background:#38536a;color:#fff0c9}.analyzer-console .diary-result.confirmed .food-state{background:#205e59;color:#c6fff0}.analyzer-console .diary-result.rejected .food-state{background:#425364;color:#e1e9ed}
.analyzer-console .diary-result .match-actions button,.analyzer-console .dish-mode button,.analyzer-console .more-match,.analyzer-console .manual-food>.secondary{background:#1b4057;color:#dcf7ff;border:1px solid #5289a0;min-height:42px}
.analyzer-console .diary-result .match-actions .confirm{background:#1c665f;color:#e0fff7;border-color:#75d7c8}.analyzer-console .diary-result .match-actions .reject{background:transparent;border-color:transparent;color:#d0dce2}
.analyzer-console .dish-mode button.active{background:#2f7082;color:#fff}.analyzer-console .dish-child{color:#d1e5ed}
.analyzer-console .correction-panel,.analyzer-console .food-search{background:#102b41;border-color:#4a8198;color:#e2f4fa}.analyzer-console .food-search label,.analyzer-console .correction-panel label{color:#d7edf6}
.analyzer-console .correction-panel input,.analyzer-console .correction-panel select,.analyzer-console .inline-search input,.analyzer-console .recipe-row select,.analyzer-console .meal-save select{background:#081c2c;color:#effbff;border:1px solid #578aa1}
.analyzer-console .inline-search button,.analyzer-console .correction-close,.analyzer-console .candidate-list button{background:#19425a;color:#e3f9ff;border-color:#568ca3}
.analyzer-console .candidate-list button small,.analyzer-console .search-note{color:#add3e2}.analyzer-console .manual-food{margin-top:10px}
.analyzer-console .meal-save{background:#102a3f;border-color:#5c99ad}.analyzer-console .meal-save label,.analyzer-console .form-status{color:#d7eff7}.analyzer-console .recipe-summary{color:#bbd5e1;border-color:var(--line)}.analyzer-console .recipe-summary strong{color:#f3fdff}
@media(max-width:520px){.analyzer-console{margin-inline:-15px;border-radius:0;padding:20px 15px 24px}.analyzer-orb{width:58px;height:58px}.analyzer-orb::after{inset:18px}.analyzer-orb span{inset:26px}.analyzer-console .food-steps{flex-wrap:wrap;gap:8px}.analyzer-console .food-entry-card{padding:15px}}
@media(max-width:360px){.analyzer-console .food-steps span{font-size:.69rem}.analyzer-console .diary-result{grid-template-columns:1fr}.analyzer-console .food-state{justify-self:start}}
@media(prefers-reduced-motion:reduce){.analyzer-console .analyzer-orb::before{animation:none!important}}
[data-motion="reduced"] .analyzer-console .analyzer-orb::before,[data-motion="off"] .analyzer-console .analyzer-orb::before{animation:none!important}

/* Nutrition console: layered HUD, motion responds to interaction. */
body[data-screen="food"]{background:#050f1b;color:#ebf7ff;transition:background .6s ease}
body[data-screen="food"] .topbar{background:rgba(5,16,29,.94);border-color:#26485d;color:#dff6ff}
body[data-screen="food"] .brand,body[data-screen="food"] .brand small,body[data-screen="food"] .topbar button{color:#dff6ff}
body[data-screen="food"] .bottom-nav{background:rgba(6,20,34,.96);border-color:#315568}
body[data-screen="food"] .bottom-nav button{color:#aacadb}body[data-screen="food"] .bottom-nav button.active{color:#9ae8ff;background:#133749}
body[data-screen="food"] .barcode-box,body[data-screen="food"] .saved-entry{background:#102235;color:#e7f6ff;border-color:#365e75}
body[data-screen="food"] .barcode-box p,body[data-screen="food"] .source-note,body[data-screen="food"] .saved-entry time,body[data-screen="food"] .meal-items,body[data-screen="food"] .tzameret-status{color:#b3d1e1}
body[data-screen="food"] h3{color:#e6f7ff}
.analyzer-console{border-radius:12px 32px 12px 32px;background:radial-gradient(ellipse at 100% 0,rgba(24,146,197,.22),transparent 44%),linear-gradient(150deg,#061421,#0a1d30);box-shadow:0 24px 70px #0005,inset 0 1px #8ce5ff30}
.analyzer-heading{border-bottom:1px solid #71cdf02a;padding-bottom:18px}.analyzer-heading h2{font-weight:500;letter-spacing:-.025em}.analyzer-heading .eyebrow{font-size:.875rem;letter-spacing:0}
.analyzer-orb{width:92px;height:92px;border:2px solid #47c5ec80;box-shadow:0 0 0 7px #368aab10,0 0 0 15px #368aab08,inset 0 0 22px #1caadd25;background:conic-gradient(from 45deg,transparent,#63cfe826,transparent 40%,#63cfe815,transparent)}
.analyzer-orb::before{inset:8px;border:2px dashed #91e6fa88}.analyzer-orb::after{inset:22px;border:3px double #7ed7f0}.analyzer-orb span{inset:38px}
.analyzer-stage-label{font-size:.875rem;min-height:35px}.analyzer-console .food-steps{justify-content:space-between;margin-bottom:22px;font-size:.875rem}.analyzer-console .food-steps span{font-size:.875rem}
.analyzer-console .food-entry-card{border-radius:9px 23px 9px 23px;position:relative;background:linear-gradient(120deg,#153b5190,#0c2133);box-shadow:inset 3px 0 #74dff030,0 16px 35px #0002}
.analyzer-console input,.analyzer-console select,.analyzer-console textarea{font-size:1rem;min-width:0}.analyzer-console select{max-width:100%}.analyzer-console button{min-height:44px;font-size:.875rem}
.analyzer-console .diary-result,.analyzer-console .recipe-row{border-radius:8px 19px 8px 19px;border-inline-start:3px solid #4fbed48a;animation:hud-reveal .36s cubic-bezier(.22,1,.36,1) both}.analyzer-console .diary-result.confirmed{border-inline-start-color:#8ce7d6}
.analyzer-console .diary-result .food-origin,.analyzer-console .diary-result .food-result-main>small:last-child,.analyzer-console .search-note,.analyzer-console .food-entry-privacy{font-size:.875rem}
.analyzer-console .correction-panel{animation:hud-reveal .3s ease both;border-radius:8px;background:#0b2336}.analyzer-console[data-stage="reading"] .food-entry-card{border-color:#78def0;box-shadow:0 0 28px #43b6db22}
.nutrition-result{margin-top:24px;padding:22px;border:1px solid #589ab8;border-radius:8px 30px 8px 30px;background:radial-gradient(circle at 5% 0,#1a5e8138,transparent 55%),#081c2c;box-shadow:0 20px 40px #0003,inset 0 1px #c2f7ff22;animation:hud-reveal .5s cubic-bezier(.22,1,.36,1) both;scroll-margin-top:90px}
.nutrition-result[data-complete="true"]{border-color:#77d4c6}.nutrition-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.nutrition-head h3{margin:0;font-size:clamp(1.35rem,4vw,1.8rem);font-weight:500}.nutrition-head .eyebrow{color:#9adcee;font-size:.875rem;margin:0 0 7px}
.result-reticle{position:relative;width:82px;height:82px;flex:none;display:grid;place-items:center;border:1px solid #72d5ef88;border-radius:50%;background:radial-gradient(circle,#36aed329,transparent 65%);box-shadow:0 0 0 6px #5fcdeb0b;font-size:1.7rem;color:#a4e9ff}.result-reticle:before,.result-reticle:after{content:"";position:absolute;inset:7px;border:2px solid #83d4ea70;border-block-color:transparent;border-radius:50%;transform:rotate(35deg)}.result-reticle:after{inset:16px;transform:rotate(-20deg);border-width:1px}.result-reticle i{position:absolute;width:100%;height:1px;background:#6cc8eb40;transform:rotate(45deg)}
.calc-summary{font-size:.9375rem;color:#b8d8e6;line-height:1.65;margin:12px 0 18px}.macro-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.macro-cell{position:relative;display:flex;flex-direction:column;gap:7px;padding:17px 12px;border:1px solid #37617a;border-radius:4px 15px 4px 15px;background:linear-gradient(140deg,#153b526e,#0c2438);min-width:0}.macro-cell:before{content:"";position:absolute;right:12px;left:12px;bottom:0;height:2px;background:linear-gradient(90deg,transparent,#77d7ed,transparent)}.macro-cell span{color:#bfe3ee;font-size:.9375rem}.macro-cell strong{font-size:clamp(1.55rem,5vw,2.1rem);font-weight:500;font-variant-numeric:tabular-nums;color:#e5faff;line-height:1.2;direction:ltr;text-align:right}.macro-cell small{color:#a8cadb;font-size:.875rem}.macro-proteinG:before{background:#7ddbc6}.macro-carbsG:before{background:#aab9fa}.macro-fatG:before{background:#e1bf80}
.calc-editors{margin-top:23px;border-top:1px solid #37617a;padding-top:20px}.calc-editors h4{margin:0;font-size:1.125rem;font-weight:600}.calc-help{font-size:.9375rem;line-height:1.7;color:#b0d0df;margin:8px 0 16px}.calc-row{display:grid;gap:10px;padding:16px 0;border-bottom:1px solid #315368}.calc-row:last-child{border-bottom:0}.calc-row label{display:grid;gap:7px;font-size:.9375rem;color:#d5edf8}.calc-row select,.calc-row input{width:100%;min-height:46px;border:1px solid #517f97;border-radius:8px;background:#061726;color:#e8f8ff;padding:9px}.calc-row .calc-food-label{font-weight:650}.calc-quantity{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:12px}.calc-row small{font-size:.875rem;line-height:1.6;color:#bfe4ef}.calc-row .calc-source{color:#9fc0d0}.calc-row button,.calc-retry{background:#153b50;color:#ddf8ff;border:1px solid #598ea3;border-radius:8px;min-height:44px;padding:9px 14px}.calc-row button{justify-self:start}
.nutrition-details{margin:20px 0 15px;border-top:1px solid #37617a;padding-top:17px}.nutrition-details summary{cursor:pointer;min-height:44px;font-size:1rem;color:#d8f6ff}.nutrition-details p{font-size:.9375rem;line-height:1.65;color:#b6d5e4}.nutrition-details table{width:100%;border-collapse:collapse;font-size:.875rem}.nutrition-details th,.nutrition-details td{text-align:right;border-bottom:1px solid #315368;padding:11px 6px}.nutrition-details th{font-weight:500;color:#c4e5f3}.nutrition-details td{font-variant-numeric:tabular-nums;color:#effaff}.nutrition-details tr td:last-child{color:#9fc3d5}.calc-retry{width:100%}
.daily-nutrition{border:1px solid #4b879d;border-radius:14px;background:#0c2436;padding:18px;margin:14px 0 22px;color:#ddf7ff}.daily-nutrition h3{margin:0}.daily-nutrition p,.saved-nutrition{color:#b8d9e6;font-size:.9375rem;line-height:1.6}.daily-nutrition .macro-cell strong{font-size:1.4rem}
@keyframes hud-reveal{from{opacity:0;transform:translateY(12px);filter:blur(2px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
@media(max-width:540px){.analyzer-console{margin-inline:-15px;padding:20px 15px;border-radius:0;border-inline:0}.analyzer-orb{width:74px;height:74px}.analyzer-orb span{inset:30px}.analyzer-orb::after{inset:19px}.nutrition-result{padding:17px 13px}.macro-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.macro-cell{padding:16px 13px}.result-reticle{width:68px;height:68px}.calc-quantity{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}.analyzer-console .food-steps{gap:8px}.nutrition-details th,.nutrition-details td{padding:10px 4px}.analyzer-console .recipe-row{overflow-wrap:anywhere}}
[data-motion="reduced"] .analyzer-console *,[data-motion="off"] .analyzer-console *{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){body[data-screen="food"],.analyzer-console,.analyzer-console *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.analyzer-console .food-steps button{display:inline-flex;align-items:center;gap:8px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#9ebdcd;padding:8px 6px;flex:1;justify-content:center;font-size:.9375rem;transition:border-color .25s,color .25s}.analyzer-console .food-steps button[aria-pressed="true"]{color:#e5faff;border-bottom-color:#79d9ee}.analyzer-console .food-steps button[aria-pressed="true"] b{background:#78dbec;color:#092433}.analyzer-console .food-steps button:disabled{opacity:.45;cursor:default}
.analyzer-console[data-pane="input"] #foodResults,.analyzer-console[data-pane="input"] #nutritionResult,.analyzer-console[data-pane="input"] #mealSave{display:none}
.analyzer-console[data-pane="review"] .mode-switch,.analyzer-console[data-pane="review"] #foodForm,.analyzer-console[data-pane="review"] #foodLead,.analyzer-console[data-pane="review"] #nutritionResult,.analyzer-console[data-pane="review"] #mealSave{display:none}
.analyzer-console[data-pane="result"] .mode-switch,.analyzer-console[data-pane="result"] #foodForm,.analyzer-console[data-pane="result"] #foodLead,.analyzer-console[data-pane="result"] #foodResults{display:none}
.analyzer-console[data-pane="input"] #foodForm,.analyzer-console[data-pane="review"] #foodResults,.analyzer-console[data-pane="result"] #nutritionResult{animation:hud-reveal .4s cubic-bezier(.22,1,.36,1) both}
@media(max-width:360px){.analyzer-console .food-steps button{gap:5px;font-size:.875rem;padding-inline:2px}.analyzer-console .food-steps b{width:23px;height:23px;min-width:23px}}
[data-motion="reduced"] .analyzer-console *,[data-motion="off"] .analyzer-console *{animation:none!important;transition:none!important}
/* Keep the writing surface stable and touch-friendly. */
.analyzer-console .food-entry-card,.analyzer-console .freewrite{min-width:0;max-width:100%}
.analyzer-console #foodText{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:190px;max-height:65vh;padding:16px;font-size:1rem;font-weight:400;line-height:1.65;letter-spacing:normal;direction:rtl;text-align:right;white-space:pre-wrap;overflow-wrap:break-word;overflow:auto;resize:vertical;appearance:none;scroll-margin-top:105px;color:#f1fcff;background:#081c2c;caret-color:#a4edff}
.analyzer-console[data-pane="input"] #foodForm{animation:none;filter:none;transform:none}
.analyzer-console .edit-food-text{display:inline-flex;align-items:center;margin-inline-start:10px;margin-bottom:15px;padding:8px 14px;border:1px solid #5a8a9e;border-radius:9px;background:#133447;color:#dff7ff;min-height:44px}
.analyzer-console[data-pane="input"] .edit-food-text{display:none}
.analyzer-console #foodSubmit:disabled{opacity:.65;cursor:wait;transform:none}
@media(max-width:430px){.analyzer-console #foodText{min-height:180px;padding:14px;max-height:60vh}.analyzer-console .edit-food-text{margin-inline-start:0}}

/* Emotional workspace: quiet hierarchy, readable writing, no dashboard styling. */
[data-view="tools"],[data-view="reflect"]{color:#233b47}
[data-view="tools"] h2,[data-view="reflect"] h2{font-size:clamp(1.8rem,5vw,2.5rem);line-height:1.3;letter-spacing:0;margin-bottom:22px}
[data-view="tools"] .eyebrow,[data-view="reflect"] .eyebrow{color:#286b74}
[data-view="tools"] .lead,[data-view="reflect"] .lead{color:#506570}
[data-view="tools"] .tool-path{background:#fff;border:1px solid #d3e1e5;border-radius:16px;box-shadow:0 3px 12px #274a5610;color:#233b47}
[data-view="tools"] .tool-path>span{background:#eef5f6;color:#286b74;border-radius:12px}
[data-view="tools"] .tool-path small,[data-view="tools"] .tool-path>b{color:#506570}
[data-view="tools"] .tool-card,[data-view="reflect"] .stack-form{background:#fff;border:1px solid #d3e1e5;border-radius:20px;padding:24px;box-shadow:0 8px 28px #2447550a}
.emotional-privacy{font-size:.83rem;line-height:1.65;color:#506570;margin:0 0 18px}
.emotional-step h3,.tool-completion h3{font-size:1.45rem;line-height:1.4;margin:22px 0 12px}
.emotional-step .step-guidance,.tool-completion>p{color:#506570;line-height:1.8;margin:0 0 24px}
.emotional-step label{display:block;font-weight:700;line-height:1.6;margin-bottom:10px}
.emotional-step textarea,[data-view="reflect"] textarea,[data-view="tools"] .guided-prompt textarea{display:block;width:100%;min-height:150px;background:#f8fbfc;border:1px solid #9bb5c0;border-radius:12px;padding:16px;font:inherit;font-size:1rem;line-height:1.8;color:#233b47;resize:vertical;touch-action:manipulation}
.emotional-step textarea:focus,[data-view="reflect"] textarea:focus,[data-view="tools"] textarea:focus{outline:3px solid #bde4e8;outline-offset:2px;border-color:#286b74}
.emotional-step small{display:block;color:#506570;margin-top:10px;line-height:1.6}
[data-view="tools"] .primary,[data-view="reflect"] .primary{background:#256774;color:#fff;min-height:48px}
[data-view="tools"] .secondary,[data-view="reflect"] .secondary{color:#345968;border-color:#9bb5c0;min-height:48px}
[data-view="tools"] .text-button,[data-view="reflect"] .text-button{color:#345968}
[data-view="tools"] .wizard-progress,[data-view="reflect"] .wizard-progress{color:#506570}
[data-view="tools"] .wizard-progress i.active,[data-view="reflect"] .wizard-progress i.active{background:#286b74}
.tool-answer{padding:18px 0;border-top:1px solid #d3e1e5}
.tool-answer strong{font-size:.9rem;color:#286b74}.tool-answer p{line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0;color:#233b47}
.tool-completion .primary{width:100%;margin-top:18px}
[data-view="tools"] button:disabled{opacity:.5;cursor:default}
[data-view="reflect"] .stack-form label{color:#233b47}
[data-view="reflect"] .saved-entry{background:#fff;border-color:#d3e1e5}
[data-view="reflect"] .saved-entry p{color:#233b47;line-height:1.8;overflow-wrap:anywhere}
[data-view="tools"] .urge-wave{background:#eff7f8;color:#233b47;border-color:#b5d5d9}
@media(max-width:480px){[data-view="tools"] .tool-card,[data-view="reflect"] .stack-form{padding:18px}[data-view="tools"] .tool-path{grid-template-columns:42px 1fr auto;padding:14px;gap:10px}[data-view="tools"] .tool-path>span{width:42px;height:42px}}
[data-view="tools"] .guided-start,[data-view="tools"] .guided-flow{background:#f0f7f8;border-color:#b5d5d9;box-shadow:0 4px 18px #2447550a;color:#233b47}
[data-view="tools"] .guided-start>span{background:#d9edf0;color:#286b74}
[data-view="tools"] .guided-start small,[data-view="tools"] .guided-start>b,[data-view="tools"] .guided-prompt>small,[data-view="tools"] .direct-tools h3{color:#506570}
[data-view="tools"] .guided-choice{background:#fff;color:#233b47;border-color:#b5cbd3}
[data-view="tools"] .guided-choice.active,[data-view="tools"] .guided-choice:hover{background:#e5f3f5;border-color:#286b74;color:#233b47}
[data-motion="reduced"] [data-view="tools"],[data-motion="reduced"] [data-view="reflect"]{animation:none}

/* Soft, action-led motion. Independent scale preserves orbit positioning. */
:root{--soft-spring:cubic-bezier(.22,1,.36,1)}
button:not(.breathing-active){transition:scale .28s var(--soft-spring),box-shadow .28s ease,background-color .2s ease,border-color .2s ease}
button:not(:disabled):not(.breathing-active):active{scale:.96}
@media(hover:hover){.primary:hover:not(:disabled),.guided-start:hover,.tool-path:hover{box-shadow:0 7px 20px #25677424}.home-hub button:not(.breathing-active):hover img{scale:1.06}}
.home-hub button img{transition:scale .35s var(--soft-spring)}
[data-view="tools"] .tool-card,[data-view="reflect"] .stack-form{transition:border-color .25s ease,box-shadow .25s ease}
[data-view="tools"] .tool-card:has(textarea:focus),[data-view="reflect"] .stack-form:has(textarea:focus){border-color:#70aab5;box-shadow:0 8px 30px #25677415}
[data-view="tools"] textarea,[data-view="reflect"] textarea{transition:border-color .22s ease,background-color .22s ease,box-shadow .22s ease}
[data-view="tools"] textarea:focus,[data-view="reflect"] textarea:focus{background:#fff}
.wizard-progress>div{gap:7px;align-items:center}.wizard-progress i{position:relative;transition:width .3s var(--soft-spring),background-color .25s ease;flex-shrink:0}
.wizard-progress i:not(:last-child)::after{content:"";position:absolute;top:3px;right:100%;width:7px;height:2px;background:#ccdce1}
.wizard-progress i.active:not(:last-child)::after{background:#72a9b2}
[data-view="tools"] .guided-choice{transition:background-color .2s ease,border-color .2s ease,scale .28s var(--soft-spring)}
.tool-completion{transform-origin:top center}
/* Settings and system preferences both suppress decorative movement. */
[data-motion="reduced"] button,[data-motion="reduced"] .home-hub button img,[data-motion="reduced"] .wizard-progress i,[data-motion="reduced"] textarea,[data-motion="reduced"] .tool-card,[data-motion="reduced"] .stack-form{transition:none!important;animation:none!important;scale:1!important}
[data-motion="off"] button,[data-motion="off"] .home-hub button img{scale:1!important}
@media(prefers-reduced-motion:reduce){button,.home-hub button img{scale:1!important;transition:none!important}html{scroll-behavior:auto!important}}
/* A little mischief: finite arrivals and responses, never moving the writing. */
@keyframes playful-arrival{0%{opacity:0;scale:.75;translate:0 16px}65%{opacity:1;scale:1.07;translate:0 -3px}100%{opacity:1;scale:1;translate:0 0}}
[data-view="home"].active .orbit-item img{animation:playful-arrival .62s cubic-bezier(.22,1,.36,1) both}
[data-view="home"].active .orbit-reflect img{animation-delay:.04s}
[data-view="home"].active .orbit-food img{animation-delay:.11s}
[data-view="home"].active .orbit-tools img{animation-delay:.18s}
[data-view="home"].active .orbit-affirmations img{animation-delay:.25s}
[data-view="home"].active .orbit-library img{animation-delay:.32s}
@keyframes card-unfold{from{opacity:0;translate:0 14px;scale:.98}to{opacity:1;translate:0 0;scale:1}}
[data-view="tools"].active .tool-path{animation:card-unfold .38s cubic-bezier(.22,1,.36,1) both}
[data-view="tools"] .tool-path:nth-child(2){animation-delay:.05s}[data-view="tools"] .tool-path:nth-child(3){animation-delay:.1s}[data-view="tools"] .tool-path:nth-child(4){animation-delay:.15s}[data-view="tools"] .tool-path:nth-child(5){animation-delay:.2s}[data-view="tools"] .tool-path:nth-child(6){animation-delay:.25s}
@keyframes progress-pop{0%{scale:.65}65%{scale:1.2}100%{scale:1}}
.wizard-progress i.active:has(+i:not(.active)),.wizard-progress i.active:last-child{animation:progress-pop .4s ease-out}
@keyframes gentle-confirm{0%{opacity:.4;translate:0 5px}60%{opacity:1;translate:0 -2px}100%{opacity:1;translate:0 0}}
.form-status:not(:empty){animation:gentle-confirm .42s ease-out}
.analyzer-console[data-stage="saved"] .analyzer-orb{animation:progress-pop .5s ease-out}
.analyzer-console[data-pane="result"] .macro-cell{animation:card-unfold .38s cubic-bezier(.22,1,.36,1) both}
.analyzer-console .macro-cell:nth-child(2){animation-delay:.06s}.analyzer-console .macro-cell:nth-child(3){animation-delay:.12s}.analyzer-console .macro-cell:nth-child(4){animation-delay:.18s}
@media(hover:hover){.tool-path:hover>span{rotate:-7deg;scale:1.08}.guided-start:hover>span{rotate:8deg;scale:1.08}}
.tool-path>span,.guided-start>span{transition:rotate .32s ease,scale .32s cubic-bezier(.22,1,.36,1)}
[data-motion="reduced"] .orbit-item img,[data-motion="reduced"] .tool-path,[data-motion="reduced"] .wizard-progress i,[data-motion="reduced"] .form-status,[data-motion="reduced"] .macro-cell,[data-motion="reduced"] .analyzer-orb{animation:none!important;translate:none!important;scale:1!important}
[data-motion="off"] .tool-path>span,[data-motion="reduced"] .tool-path>span,[data-motion="off"] .guided-start>span,[data-motion="reduced"] .guided-start>span{rotate:none!important;scale:1!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.orbit-item img,.tool-path,.wizard-progress i,.form-status,.macro-cell,.analyzer-orb{animation:none!important;translate:none!important;scale:1!important}.tool-path>span,.guided-start>span{rotate:none!important;scale:1!important;transition:none!important}}

/* ACT as a four-quadrant map, with fixed physical directions in RTL. */
[data-view="tools"] .act-workspace{padding:18px}
.act-matrix-intro>p:last-child{color:#506570;line-height:1.7;margin:0 0 18px;font-size:.95rem}
.act-directions{display:grid;grid-template-columns:1fr 1fr;direction:ltr;gap:20px;text-align:center;font-size:.9rem;font-weight:750;color:#386171}
.act-directions span{direction:rtl;padding:9px 4px;border-radius:8px;background:#edf4f7}.act-directions span:last-child{background:#e4f5ee;color:#276452}
.act-axis{font-size:.85rem;line-height:1.6;color:#506570;text-align:center;margin:10px 0}
.act-quadrants{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-auto-rows:1fr;gap:24px;direction:ltr;position:relative;isolation:isolate}
.act-quadrants::before,.act-quadrants::after{content:"";position:absolute;background:#91b9c1;z-index:-1;pointer-events:none}
.act-quadrants::before{top:0;bottom:0;width:2px;left:calc(50% - 1px)}.act-quadrants::after{left:0;right:0;height:2px;top:calc(50% - 1px)}
.act-quadrant{direction:rtl;min-width:0;background:#f3f8fb;border:1px solid #c6dbe4;border-radius:14px;padding:16px;display:flex;flex-direction:column}
.act-toward,.act-values{background:#f0faf5;border-color:#b6dccc}
.act-away{grid-column:1;grid-row:1}.act-toward{grid-column:2;grid-row:1}.act-inner{grid-column:1;grid-row:2}.act-values{grid-column:2;grid-row:2}
.act-quadrant h3{font-size:1rem;line-height:1.5;margin:0 0 8px;color:#233b47}
.act-hint{font-size:.875rem;line-height:1.6;color:#506570;margin:0 0 12px}
.act-field-label{font-size:.875rem;line-height:1.6;font-weight:650;margin-top:auto;margin-bottom:8px;color:#345968}
[data-view="tools"] .act-quadrant textarea{width:100%;min-height:115px;padding:10px;border:1px solid #a8c1ca;border-radius:9px;font:inherit;font-size:1rem;line-height:1.65;background:#ffffffcf;color:#233b47;resize:vertical}
.act-observer{position:absolute;left:50%;top:50%;translate:-50% -50%;background:white;border:1px solid #91b9c1;border-radius:999px;padding:5px 9px;font-size:.78rem;white-space:nowrap;color:#345968;pointer-events:none}
.act-guide{display:grid;grid-template-columns:76px 1fr;align-items:center;gap:14px;background:#edf8f3;border:1px solid #b6dccc;border-radius:16px;padding:12px 16px;margin:22px 0 8px}
.act-guide img{width:76px;height:90px;object-fit:contain;animation:pineapple-hello .7s ease-out both}
.act-guide strong{font-size:1rem;color:#276452}.act-guide p{font-size:.95rem;line-height:1.7;margin:5px 0 0;color:#345968}
.act-written{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;font-size:1rem;color:#233b47;margin:0}
.act-chosen-action{background:#edf8f3;border-radius:12px;padding:16px;margin-top:20px}
@keyframes pineapple-hello{0%{rotate:-9deg;scale:.85}55%{rotate:6deg;scale:1.07}100%{rotate:0deg;scale:1}}
@media(max-width:480px){[data-view="tools"] .act-workspace{padding:12px}.act-quadrants{gap:18px}.act-quadrant{padding:10px}.act-quadrant h3{font-size:.95rem}.act-hint,.act-field-label{font-size:.875rem}.act-guide{grid-template-columns:60px 1fr;padding:12px;gap:10px}.act-guide img{width:60px;height:75px}.act-observer{font-size:.75rem;padding:3px 6px}}
[data-motion="reduced"] .act-guide img,[data-motion="off"] .act-guide img{animation:none!important;rotate:none!important;scale:1!important}
@media(prefers-reduced-motion:reduce){.act-guide img{animation:none!important;rotate:none!important;scale:1!important}}

/* Compact navigation and locally bundled Hebrew typography. */
@font-face{font-family:Assistant;src:url('./assets/fonts/Assistant.ttf') format('truetype');font-weight:200 800;font-style:normal;font-display:swap}
html,body,button,input,textarea,select,.intro h1,h2,.orbit-item strong,.hub-center strong,.primary,.secondary{font-family:Assistant,"Noto Sans Hebrew",Arial,sans-serif}
.bottom-nav{bottom:0;width:min(100%,760px);padding:5px 12px calc(5px + env(safe-area-inset-bottom));gap:6px;align-items:center}
.bottom-nav button{min-width:0;min-height:48px;padding:4px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:.82rem;line-height:1.15;text-align:center;border-radius:16px}
.bottom-nav button>span{display:block;font-size:1.35rem;line-height:1;min-height:22px}
.app-shell{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
/* Nutrition review: one clear action, details on demand. */
.analyzer-console .diary-result{padding:16px;gap:12px;border-radius:14px;background:#102b3e;box-shadow:none}
.analyzer-console .diary-result .food-result-main strong{font-size:1.0625rem;line-height:1.55}
.analyzer-console .diary-result .food-origin{font-size:.875rem;color:#abc6d4}
.analyzer-console .diary-result .food-state{font-size:.875rem;white-space:normal;text-align:center;line-height:1.45;max-width:10rem}
.analyzer-console .diary-result .match-actions{display:flex;flex-wrap:wrap;gap:10px}
.analyzer-console .diary-result .match-actions button{font-size:.9375rem;min-height:44px;padding:10px 16px}
.analyzer-console .diary-result .match-actions .review-primary{background:#96e3ec;color:#082a39;border-color:#96e3ec;font-weight:700}
.analyzer-console .diary-result.confirmed:has(.review-primary){border-color:#52768a}
.analyzer-console .diary-result .match-actions .reject{margin-inline-start:auto;color:#adc8d5}
.analyzer-console .correction-panel{gap:16px;padding:16px;border-radius:12px;grid-column:1/-1;animation:none}
.analyzer-console .correction-panel label{font-size:1rem;line-height:1.5}
.analyzer-console .correction-panel input,.analyzer-console .correction-panel select{min-height:48px;font-size:1rem;min-width:0;width:100%}
.correction-hint{font-size:.875rem;color:#b6cedb;line-height:1.6;margin:-5px 0 0}
.correction-other{border-top:1px solid #416277;padding-top:8px;min-width:0}
.correction-other summary{min-height:44px;padding:10px 0;font-size:.9375rem;color:#c8e7f1;cursor:pointer}
.correction-other label{margin-top:10px}
.analyzer-console .correction-panel .correction-close{padding:12px 18px;min-height:48px;justify-self:stretch;background:#96e3ec;color:#082a39;border-radius:10px;text-align:center;font-size:1rem}
.unmatched-review{padding:16px;border:1px solid #c3a876;border-radius:14px;background:#2c3040;color:#f1e8d2}
.unmatched-review h4{margin:0;font-size:1.0625rem}
.unmatched-review p{font-size:.9375rem;line-height:1.65}
.unmatched-review>div{display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid #726c5c;padding:12px 0}
.unmatched-review span{width:100%;overflow-wrap:anywhere;font-size:1rem}
.unmatched-review button{min-height:44px;border:1px solid #b1a68c;background:#343e4d;color:#fff4da;padding:9px 13px;border-radius:9px;font-size:.9375rem}
.calculation-audit{margin-top:18px;display:grid;gap:10px;font-size:1rem;line-height:1.6}
.calculation-audit:empty{display:none}
.calculation-audit p{margin:4px 0;color:#c6e1eb}
.calculation-audit>button{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 14px;text-align:right;padding:13px;border:1px solid #82745b;background:#29333c;color:#fff0d2;border-radius:12px;min-height:48px}
.calculation-audit button span{font-size:1rem;overflow-wrap:anywhere}
.calculation-audit button small{grid-row:2;color:#ddcfb6;font-size:.875rem}
.calculation-audit button b{grid-column:2;grid-row:1/3;align-self:center;font-size:.9375rem}
.nutrition-result[data-complete="false"] .calc-summary{padding:12px 14px;border-inline-start:3px solid #e5c086;background:#d5a96014;color:#ffe3b2;border-radius:8px}
.calc-editors>summary{font-size:1rem;color:#d7eef8;min-height:44px;cursor:pointer}
.calc-row{display:block;padding:12px 0}
.calc-row>summary{display:list-item;cursor:pointer;color:#d7eef8;min-height:44px;padding:8px 0}
.calc-row>summary span{font-size:1rem;overflow-wrap:anywhere}
.calc-row>summary small{display:block;font-size:.875rem;color:#abcbd9;margin-top:4px}
.calc-row>label,.calc-row>.calc-quantity,.calc-row>small,.calc-row>button{margin-top:14px}
.calc-row>small{display:block}
@media(max-width:430px){.analyzer-console .diary-result{grid-template-columns:minmax(0,1fr)}.analyzer-console .food-state{justify-self:start}.analyzer-console .diary-result .match-actions{display:flex}.analyzer-console .diary-result .match-actions .reject{margin-inline-start:auto}.calculation-audit>button{padding:12px}}
.dismissed-text{font-size:.875rem;color:#bed8e4;border-top:1px solid #416277;padding-top:12px}
.dismissed-text summary{cursor:pointer;min-height:44px;padding:8px 0}
.dismissed-text>div{display:flex;flex-wrap:wrap;gap:12px;padding:10px 0;align-items:center}
.dismissed-text span{flex:1;min-width:140px;overflow-wrap:anywhere}
.dismissed-text button{border:1px solid #608ca1;color:#dff4fa;background:#153449;border-radius:8px;padding:9px 12px;min-height:44px}

/* Fudzy accompanies the diary review without covering its controls. */
.food-review-guide{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:8px 12px;border-radius:16px;background:rgba(30,75,98,.5);color:#e4f7ff}
.food-review-guide img{width:88px;height:104px;object-fit:contain;flex:none}
.food-review-guide strong{font-size:1.125rem;line-height:1.4;color:#a0ecf5}
.food-review-guide p{margin:4px 0 0;font-size:.9375rem;line-height:1.6}
@media(max-width:380px){.food-review-guide{gap:8px;padding:8px}.food-review-guide img{width:72px;height:88px}}

/* Mobile readability: stronger Hebrew typography and a clear sky/navy palette. */
html{font-size:17px;line-height:1.65}
body{font-weight:500}
button,input,textarea,select{font-weight:500;line-height:1.5}
h1,h2,h3,strong{letter-spacing:0;font-weight:700}
.intro h1,h2{line-height:1.3}
.app-shell{background:linear-gradient(180deg,#c9eafa,#e1f3fa 58%,#c8e7f4)}
.topbar,.bottom-nav{background:rgba(215,239,250,.97);border-color:#a7cbdc}
.brand,.brand small,.bottom-nav button{color:#294d64}
.bottom-nav button{font-size:.875rem;font-weight:600}
.bottom-nav button.active{background:#d6eee7;color:#17584c;box-shadow:inset 0 0 0 1px #96c8ba}
.stack-form label,.settings-card p,.myth-answer,.tool-step p,.creator-note p{font-size:1rem;line-height:1.7}
input,textarea,select{font-size:1rem;color:#233f51}
input::placeholder,textarea::placeholder{color:#5b6e7c;opacity:1}
.primary,.secondary{font-weight:700}
.home-affirmation{background:linear-gradient(120deg,#fff2d5,#e9e8fc);border-color:#d0c9df}
.home-affirmation-copy p{color:#324959;line-height:1.65}
body[data-screen="food"] .app-shell{background:linear-gradient(155deg,#0a1c30,#102b43)}
.analyzer-console{background:linear-gradient(150deg,#10263e,#0c2034 64%,#17374e)}
.analyzer-console .food-entry-card,.analyzer-console .correction-panel,.analyzer-console .food-search{background:#17354c;border-color:#668da4}
.analyzer-console .food-entry-card textarea,.analyzer-console input,.analyzer-console select{background:#0b2135;color:#f2faff;border-color:#7094a9;font-size:1rem}
.analyzer-console textarea::placeholder,.analyzer-console input::placeholder{color:#bfd4df;opacity:1}
.analyzer-console .diary-result{background:#18384f;border-color:#6b92a6}
.analyzer-console .diary-result .food-origin,.analyzer-console .diary-result .food-result-main>small:last-child,.analyzer-console .candidate-list button small,.analyzer-console .search-note{color:#cfdfeb;font-size:.875rem;line-height:1.6}
.analyzer-console .food-steps span,.analyzer-stage-label{font-size:.875rem;letter-spacing:0}
.analyzer-console .food-state{background:#3b4e63;color:#fff0ca}
.analyzer-console .diary-result.confirmed .food-state{background:#245c54;color:#e0fff4}
.analyzer-console .food-entry-card .primary,.analyzer-console .meal-save .primary,.analyzer-console .correction-close,.analyzer-console .diary-result .match-actions .review-primary{background:#a0e9eb;color:#0d3040;font-weight:700}
button:focus-visible,a:focus-visible{outline:3px solid #326b8b;outline-offset:3px}
.analyzer-console button:focus-visible{outline-color:#b4f2f1}
@media(max-width:520px){
 .app-shell{padding-inline:14px}
 .analyzer-console{margin-inline:-14px;padding-inline:14px}
 .analyzer-console .match-actions button{min-height:48px}
 .bottom-nav{padding-inline:8px;gap:3px}
 .home-intro .quiet-shortcut,.back,.food-examples button{font-size:.875rem}
}

/* Android's shell already reserves the system navigation inset. */
:root{--app-bottom-inset:env(safe-area-inset-bottom,0px)}
html[data-android-shell="true"]{--app-bottom-inset:0px}
.bottom-nav{padding:4px 10px calc(4px + var(--app-bottom-inset));align-items:center}
.bottom-nav button{min-height:48px;padding:4px 8px;gap:2px}
.app-shell{padding-bottom:calc(72px + var(--app-bottom-inset))}

/* Quantity editing stays with the food; roomy touch targets, no nested search. */
.analyzer-console .quantity-inline{grid-column:1/-1;min-width:0}
.analyzer-console .quantity-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;background:#112d42;border:1px solid #6596ae;border-radius:14px;color:#eefaff;padding:10px 14px;text-align:start}
.quantity-toggle small{color:#a0e9eb;font-size:.875rem;white-space:nowrap}
.quantity-picker{padding:12px 0;display:grid;gap:10px}
.quantity-presets{display:flex;flex-wrap:wrap;gap:8px}
.analyzer-console .quantity-presets button,.analyzer-console [data-quantity-done]{min-height:44px;padding:8px 14px;background:#20465c;color:#fff;border:1px solid #719cac;border-radius:12px}
.analyzer-console .quantity-presets button[aria-pressed=true]{background:#a0e9eb;color:#0d3040}
.quantity-custom{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:10px}
.quantity-custom label{min-width:0;font-size:.875rem}.quantity-custom input,.quantity-custom select{width:100%;min-height:48px}
.quantity-picker>small,.review-finish small{color:#cfdfeb;font-size:.875rem}
.review-finish{position:sticky;bottom:0;z-index:2;padding:12px;background:#102b40;display:grid;gap:6px;border:1px solid #6692a7;border-radius:16px;box-shadow:0 -8px 24px #071b2c55}
.review-finish button{min-height:50px;width:100%;background:#a0e9eb;color:#0d3040}

.identity-presets{grid-column:1/-1;display:grid;gap:8px}
.analyzer-console .identity-presets button{min-height:44px;text-align:start;padding:10px 12px;border-radius:12px;background:#20465c;color:#fff;border:1px solid #719cac;white-space:normal}

.egg-salt-choice{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.egg-salt-choice small{width:100%;font-size:.875rem;color:#cfdfeb}.analyzer-console .egg-salt-choice button{min-height:44px;padding:8px 12px;border-radius:12px;background:#20465c;color:#fff;border:1px solid #719cac}.analyzer-console .egg-salt-choice button[aria-pressed=true]{background:#a0e9eb;color:#0d3040}
/* Guided meal review: one stable work surface, with the meal always in view. */
.analyzer-console{--review-blue:#98e8f3;--review-ink:#edf8ff;--review-muted:#b9d0e1;background:radial-gradient(ellipse at 90% 0%,#234d6c66,transparent 52%),linear-gradient(145deg,#102b46,#0b2035 70%,#17354e);border-color:#52758d;box-shadow:0 20px 55px #17375222;isolation:isolate}
.analyzer-console .food-entry-head{align-items:center;gap:16px}.entry-mascot{width:66px;height:84px;object-fit:contain;flex:none}.entry-precision{font-size:.88rem;color:#c3dbe7;line-height:1.6;margin:0;text-align:center}.nutrition-mascot{width:76px;height:92px;object-fit:contain;flex:none}
.guided-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:6px 2px 4px}.guided-intro>div{min-width:0}.guided-intro h3{font-size:clamp(1.4rem,5vw,1.9rem);color:#f3fbff;margin:6px 0;line-height:1.2}.guided-intro .eyebrow{color:#a0e9f2;font-size:.78rem;letter-spacing:0;margin:0}.guided-intro .result-summary{padding:0;background:none;border:0;margin:10px 0;color:#c7deeb;font-size:.97rem;line-height:1.6}.guided-intro img{object-fit:contain;width:88px;height:110px;flex:none;filter:drop-shadow(0 8px 15px #06172855)}
.precision-note{border-bottom:1px solid #56768c66;padding:4px 0 14px;margin:0 0 18px;color:#b9d0e1;font-size:.86rem;line-height:1.6}.precision-note summary{cursor:pointer;width:fit-content;padding:7px 0;min-height:40px}.precision-note p{margin:6px 0;color:#d3e6f0;max-width:38rem}
.meal-overview{display:grid;gap:8px;margin:0 0 22px}.analyzer-console .meal-pill{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border:1px solid #5d7f9566;border-radius:16px;background:#15344a88;min-height:65px;text-align:start;color:#e9f7ff;box-shadow:none;transition:background .2s,border-color .2s,transform .2s}.meal-pill>span:nth-child(2){flex:1;min-width:0}.meal-pill strong{display:block;font-size:.98rem;font-weight:650;line-height:1.45;overflow-wrap:anywhere}.meal-pill small{display:block;color:#b8d0de;font-size:.79rem;line-height:1.5;margin-top:2px}.meal-pill-dot{display:grid;place-items:center;width:25px;height:25px;border:1px solid #739cb088;border-radius:50%;color:#9cdef2;flex:none}.meal-pill-action{font-size:.76rem;color:#b9d5e4;flex:none}.analyzer-console .meal-pill.is-current{background:#23577666;border-color:#9fe7f0;box-shadow:inset 3px 0 0 #9fe7f0}.meal-pill.is-ready .meal-pill-dot{color:#a8e9d0;border-color:#8ed3ba66;background:#245d5444}.meal-pill.is-removed{opacity:.6}.meal-pill.is-removed strong{text-decoration:line-through}
.analyzer-console .guided-card{display:flex;flex-direction:column;gap:12px;position:relative;min-width:0;padding:24px;border:1px solid #79b5cf;border-radius:24px;background:radial-gradient(ellipse at 0% 0%,#29638155,transparent 60%),linear-gradient(150deg,#1b405a,#112e46);box-shadow:0 12px 34px #05152655,inset 0 1px 0 #b5edff18;animation:guided-enter .24s ease-out;scroll-margin-top:20px}.guided-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.guided-kicker{color:#a6e9f2;letter-spacing:0;font-size:.8rem;font-weight:600}.analyzer-console .guided-close{display:grid;place-items:center;width:40px;min-height:40px;padding:0;background:#0e2b4055;color:#c9e6f1;border:1px solid #6d99ac66;border-radius:50%;font-size:1.35rem}.guided-card h4{font-size:clamp(1.45rem,5.2vw,1.9rem);line-height:1.25;letter-spacing:-.02em;margin:0;color:#f3fbff}.guided-food-name{margin:0;color:#d6eaf4;font-size:1.04rem;line-height:1.5}.guided-card .food-origin{font-size:.79rem!important;color:#abc8d9!important;line-height:1.5;margin-top:-4px}.guided-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:8px 0}.guided-options.identity-presets{grid-template-columns:1fr}.analyzer-console .guided-options button{border:1px solid #7dacc1;background:#204a65;color:#effaff;min-height:55px;border-radius:15px;padding:13px 16px;text-align:center;font-size:1.04rem;line-height:1.4;transition:background .16s,transform .16s,border-color .16s}.analyzer-console .identity-presets button{text-align:start}.guided-options button strong,.guided-options button small{display:block}.guided-options button strong{font-size:1rem;font-weight:600;line-height:1.5}.guided-options button small{font-size:.76rem;color:#bed9e8;margin-top:5px}.analyzer-console .guided-options button[aria-pressed=true]{background:#a2e7ee;color:#0b2e43;border-color:#c2f3f7}.analyzer-console .guided-options button:active{transform:scale(.98)}.guided-estimate{color:#d3e5ef;line-height:1.5;font-size:.9rem;margin:0}.guided-actions{display:flex;flex-direction:column;gap:8px;margin-top:4px}.analyzer-console .guided-card .primary{background:#a0e9ee;color:#0c2d42;font-size:1rem;font-weight:700;min-height:52px;border-radius:15px;width:100%;padding:13px 18px;border:1px solid #baf0f5;box-shadow:0 5px 16px #071b3022}.analyzer-console .guided-secondary{padding:10px 14px;min-height:44px;background:transparent;color:#c9e3f0;border:1px solid #6b92a566;border-radius:12px;font-size:.88rem;line-height:1.45}.analyzer-console .guided-remove{background:transparent;border:0;color:#a8c4d4;padding:8px 12px;min-height:44px;font-size:.8rem}.guided-missing{padding:12px;background:#37506566;color:#f0e8c9;border-radius:12px;font-size:.9rem;line-height:1.6;margin:0}.salt-details{font-size:.83rem;color:#bfd7e5;border-top:1px solid #63889d55;padding-top:12px}.salt-details summary{padding:8px 0;cursor:pointer;min-height:40px}.salt-details .egg-salt-choice{padding-top:8px}.salt-details small{line-height:1.65!important}.guided-card .correction-panel{padding:16px;background:#0d293e!important;border:1px solid #7399ad88;border-radius:16px}.guided-card .quantity-picker{margin-top:10px;border:0;padding:0}.guided-card .quantity-custom{gap:10px}.guided-card .quantity-custom label{color:#d6eaf5;font-size:.9rem}.guided-card .quantity-toggle{background:#173d5666;border-color:#6f9db077}.guided-card [data-quantity-done]{background:#a0e9ee!important;color:#0c2d42!important;width:100%;font-weight:700}
.review-ready{display:flex;align-items:center;gap:16px;padding:20px;border-radius:22px;background:#1a425266;border:1px solid #77bea677;color:#e5f8f7}.review-ready img{object-fit:contain;flex:none}.review-ready strong{font-size:1.05rem}.review-ready p{font-size:.9rem;line-height:1.6;color:#c4dedf;margin:8px 0 0}.analyzer-console .review-finish{margin-top:18px;padding:14px;background:#102d43f5;backdrop-filter:blur(12px);border-radius:19px;border-color:#719eb4;box-shadow:0 -5px 20px #071b2c55;bottom:8px}.review-finish small{font-size:.78rem;line-height:1.55;text-align:center}.analyzer-console .review-finish button{border-radius:13px;font-size:1.04rem;min-height:52px}.analyzer-console .manual-food{margin-top:16px}.analyzer-console .manual-food>button{width:100%;min-height:46px;background:transparent;border:1px dashed #688fa6;color:#c0dbe9;border-radius:14px;font-size:.9rem}
@keyframes guided-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:430px){.analyzer-console .guided-card{padding:20px 16px;border-radius:21px}.guided-intro img{width:75px;height:96px}.guided-intro{gap:10px}.meal-pill-action{font-size:.7rem}.analyzer-console .meal-pill{padding:11px;gap:10px}.entry-mascot{width:58px;height:76px}.guided-options{gap:8px}.analyzer-console .guided-options button{padding:12px 10px}.review-ready{padding:16px;gap:12px}.review-ready img{width:60px;height:76px}}
@media(prefers-reduced-motion:reduce){.analyzer-console .guided-card{animation:none}.analyzer-console .meal-pill,.analyzer-console .guided-options button{transition:none}.analyzer-console .guided-options button:active{transform:none}}
body.reduce-motion .analyzer-console .guided-card{animation:none}body.reduce-motion .analyzer-console .meal-pill,body.reduce-motion .analyzer-console .guided-options button{transition:none}
.guided-issue{align-self:flex-start;color:#b8d6e5;border:1px solid #638da366;border-radius:8px;font-size:.76rem;padding:3px 8px;margin:0}.guided-card h4:focus{outline:none}.guided-card h4:focus-visible{outline:2px solid #b4f2f1;outline-offset:5px;border-radius:4px}
[data-motion="reduced"] .analyzer-console .guided-options button:active,[data-motion="off"] .analyzer-console .guided-options button:active{transform:none}
.guided-source{font-size:.8rem;color:#b8d3e3;margin-top:-6px}.guided-source summary{cursor:pointer;min-height:34px;padding:6px 0}.guided-source p{font-size:.9rem;color:#d7eaf3;line-height:1.5;margin:6px 0}.guided-source small{line-height:1.6}
.meal-overview-hint{color:#b9d4e3;font-size:.77rem;line-height:1.5;margin:0 0 7px}.meal-overview{display:flex;overflow-x:auto;gap:9px;padding:2px 2px 10px;margin-bottom:18px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#6f9eb3 #173a51}.analyzer-console .meal-overview .meal-pill{flex:0 0 min(84%,270px);width:auto;scroll-snap-align:start;align-items:flex-start}.meal-overview .meal-pill-dot{margin-top:3px}.meal-overview .meal-pill-action{padding-top:4px}.meal-overview .meal-pill strong{font-size:.9rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.meal-overview .meal-pill small{font-size:.76rem}
