:root{--bg:#f3f6f2;--bg-glow:#dcf1e7;--surface:#fff;--surface-2:#eaf0eb;--text:#14201b;--muted:#5d6b64;--border:#e1e8e2;--accent:#0e8f6b;--accent-strong:#0a6f54;--accent-text:#fff;--accent-soft:#daf2e7;--warning:#a35f00;--warning-soft:#fff3dc;--danger:#c3342b;--danger-soft:#fde7e5;--user-bubble:linear-gradient(135deg, #14a57c, #0a7a5b);--protein:#3d7be0;--carbs:#f0a030;--fat:#ec6a5a;--radius:20px;--radius-small:14px;--shadow:0 1px 2px #14201b0f, 0 4px 14px #14201b0f;--shadow-up:0 -6px 24px #14201b12;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#0c1210;--bg-glow:#12261f;--surface:#151d1a;--surface-2:#1f2a26;--text:#e8f0ec;--muted:#92a39b;--border:#25322d;--accent:#3cc99a;--accent-strong:#7be0bb;--accent-text:#05211a;--accent-soft:#163429;--warning:#f2b45a;--warning-soft:#33280f;--danger:#f28b82;--danger-soft:#3b1f1d;--user-bubble:linear-gradient(135deg, #2fbd91, #1b9873);--protein:#6a9cf0;--carbs:#f4b552;--fat:#f08a7c;--shadow:0 0 0 1px #ffffff0a, 0 6px 18px #00000059;--shadow-up:0 -6px 24px #00000059;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg) radial-gradient(120% 40% at 50% 0%, var(--bg-glow), transparent 70%) no-repeat;color:var(--text);letter-spacing:-.005em;-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;font:16px/1.45 Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}button,input,select,textarea{font:inherit;color:inherit}a{color:var(--accent-strong)}p{margin:.25rem 0}.icon{width:22px;height:22px}.page{flex-direction:column;max-width:640px;height:100%;margin:0 auto;display:flex}.page-body{flex:1;padding:16px;overflow-y:auto}.bar{min-height:56px;padding:env(safe-area-inset-top) 8px 0;background:color-mix(in srgb, var(--bg) 78%, transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);grid-template-columns:48px 1fr auto;align-items:center;gap:4px;display:grid}.bar h1{letter-spacing:-.02em;text-align:center;margin:0;font-size:1.1rem;font-weight:700}.bar-actions{justify-content:flex-end;min-width:48px;display:flex}.bar-spacer{width:48px}.center{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:12px;height:100%;padding:24px;display:flex}.center-text{text-align:center}.logo{border-radius:24px;width:88px;height:88px;margin:12px auto 20px;display:block;box-shadow:0 10px 28px #0e8f6b59}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row>.field{flex:1;min-width:120px}.muted{color:var(--muted)}.small{font-size:.85rem}.big{letter-spacing:-.02em;font-variant-numeric:tabular-nums;font-size:1.4rem;font-weight:700}.button{cursor:pointer;border:1px solid #0000;border-radius:999px;min-height:48px;padding:0 22px;font-weight:650;transition:transform 80ms,box-shadow .15s,filter .15s}.button:active:not(:disabled){transform:scale(.98)}.button:disabled{opacity:.5;cursor:default}.button-primary{color:#fff;background:linear-gradient(135deg,#14a57c,#0a7a5b);box-shadow:0 4px 14px #0e8f6b4d}.button-primary:hover:not(:disabled){filter:brightness(1.06)}.button-secondary{background:var(--accent-soft);color:var(--accent-strong)}.button-danger{background:var(--danger);color:#fff}.button-ghost{color:var(--accent-strong);background:0 0;min-height:40px;padding:0 12px}.icon-button{cursor:pointer;background:0 0;border:0;border-radius:999px;justify-content:center;align-items:center;width:44px;height:44px;line-height:1;display:inline-flex}.icon-button:hover:not(:disabled){background:var(--surface-2)}.icon-button:disabled{opacity:.4}.link{cursor:pointer;background:0 0;border:0;font-weight:700}.form{flex-direction:column;gap:16px;display:flex}.field{flex-direction:column;gap:6px;display:flex}.field-label{font-size:.9rem;font-weight:650}.field-hint{color:var(--muted);font-size:.8rem}input:not([type=checkbox]),select,textarea{border:1px solid var(--border);border-radius:var(--radius-small);background:var(--surface);width:100%;min-height:48px;padding:10px 14px;transition:border-color .15s,box-shadow .15s}input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);outline:none}button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.input-with-button{gap:8px;display:flex}input[type=checkbox]{accent-color:var(--accent)}.checkbox{white-space:nowrap;align-items:center;gap:6px;display:flex}.error{color:var(--danger)}.warning{color:var(--warning)}.success,.notice{color:var(--accent-strong)}.spinner{color:var(--muted);align-items:center;gap:8px;display:flex}.spinner-dot{background:var(--accent);border-radius:50%;width:12px;height:12px;animation:1s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.3;transform:scale(.7)}}@keyframes rise{0%{opacity:0;transform:translateY(6px)}}@media (prefers-reduced-motion:reduce){.spinner-dot{animation:none}.bubble,.card{animation:none!important}.ring-fill,.macro-bar span{transition:none!important}}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px 16px;animation:.22s ease-out rise}.card-warning{background:var(--warning-soft)}.menu{border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);flex-direction:column;margin-bottom:20px;display:flex;overflow:hidden}.menu button{border:0;border-bottom:1px solid var(--border);text-align:left;cursor:pointer;background:0 0;justify-content:space-between;align-items:center;min-height:56px;padding:0 18px;font-weight:550;display:flex}.menu button:hover{background:var(--surface-2)}.menu button span[aria-hidden]{color:var(--muted);font-size:1.3rem}.menu button:last-child{border-bottom:0}.model-list ul{border:1px solid var(--border);border-radius:var(--radius-small);max-height:280px;margin:8px 0;padding:0;list-style:none;overflow-y:auto}.model-list li button{border:0;border-bottom:1px solid var(--border);background:var(--surface);text-align:left;cursor:pointer;overflow-wrap:anywhere;width:100%;min-height:44px;padding:8px 12px}.model-list li button.selected{background:var(--accent-soft);color:var(--accent-strong);font-weight:650}.danger-zone{border-top:1px solid var(--border);margin-top:24px;padding-top:16px}.day .bar h1 button:disabled{cursor:default}.totals{background:var(--surface);box-shadow:var(--shadow);border-radius:24px;margin:0 12px 4px;padding:16px 18px}.totals-main{align-items:center;gap:18px;display:flex}.ring{flex:none;width:112px;height:112px;position:relative}.ring svg{width:100%;height:100%;transform:rotate(-90deg)}.ring circle{fill:none;stroke-width:9px}.ring-track{stroke:var(--surface-2)}.ring-fill{stroke:var(--accent);stroke-linecap:round;transition:stroke-dasharray .6s}.ring.over .ring-fill{stroke:var(--danger)}.ring-center{flex-direction:column;justify-content:center;align-items:center;line-height:1.15;display:flex;position:absolute;inset:0}.ring-center .big{font-size:1.55rem}.ring-center .small{font-size:.72rem}.totals-side{flex-direction:column;flex:1;gap:8px;min-width:0;display:flex}.totals .left,.totals .over{border-radius:999px;align-self:flex-start;padding:3px 12px;font-size:.9rem;font-weight:650}.totals .left{background:var(--accent-soft);color:var(--accent-strong)}.totals .over{background:var(--danger-soft);color:var(--danger)}.macro-list{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.macro{grid-template-columns:auto 1fr auto;align-items:center;column-gap:8px;font-size:.88rem;display:grid}.macro-bar{background:var(--surface-2);border-radius:3px;grid-column:1/-1;height:5px;margin:3px 0 5px;overflow:hidden}.macro-bar span{background:var(--protein);border-radius:3px;height:100%;transition:width .6s;display:block}.macro-carbs .macro-bar span{background:var(--carbs)}.macro-fat .macro-bar span{background:var(--fat)}.macro-dot{border-radius:50%;width:9px;height:9px}.macro-protein .macro-dot,.split-protein{background:var(--protein)}.macro-carbs .macro-dot,.split-carbs{background:var(--carbs)}.macro-fat .macro-dot,.split-fat{background:var(--fat)}.macro-label{color:var(--muted);flex:1}.macro-value{font-variant-numeric:tabular-nums;font-weight:650}.split{gap:3px;height:8px;margin-top:14px;display:flex}.split span{border-radius:4px;min-width:6px}.conversation{flex-direction:column;flex:1;gap:10px;padding:14px 12px 18px;display:flex;overflow-y:auto}.empty{text-align:center;max-width:280px;color:var(--muted);margin:auto}.empty:before{content:"🍽️";margin-bottom:8px;font-size:2.6rem;display:block}.bubble{overflow-wrap:anywhere;border-radius:20px;max-width:85%;padding:10px 14px;animation:.2s ease-out rise}.bubble.user{background:var(--user-bubble);color:#fff;border-bottom-right-radius:6px;align-self:flex-end;box-shadow:0 4px 12px #0e8f6b38}.bubble.user.pending{opacity:.7}.bubble.twyf{background:var(--surface);box-shadow:var(--shadow);border-bottom-left-radius:6px;align-self:flex-start}.error-bubble{color:var(--danger);background:var(--danger-soft)!important}.photos{flex-wrap:wrap;gap:4px;margin-bottom:4px;display:flex}.photos img{object-fit:cover;border-radius:var(--radius-small);width:120px;height:120px}.photo-gone{color:var(--muted);border:1px dashed var(--border);border-radius:var(--radius-small);padding:8px;font-size:.8rem;display:inline-block}.card header{align-items:center;gap:8px;display:flex}.card header strong{flex:1}.slot{background:var(--accent-soft);width:auto;min-height:32px;color:var(--accent-strong);border:0;border-radius:999px;padding:2px 10px;font-size:.85rem;font-weight:650}.booking{align-self:stretch}.booking .check{background:var(--accent);width:24px;height:24px;color:var(--accent-text);border-radius:50%;justify-content:center;align-items:center;font-size:.8rem;font-weight:800;display:inline-flex}.dock{padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:color-mix(in srgb, var(--bg) 88%, transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:var(--shadow-up);flex-direction:column;gap:8px;max-height:70vh;display:flex;overflow-y:auto}.draft{background:linear-gradient(180deg, var(--warning-soft), var(--surface) 55%);box-shadow:0 0 0 1.5px color-mix(in srgb, var(--warning) 55%, transparent), var(--shadow)}.draft.compact{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px;padding:8px 14px;display:flex}.question{margin:8px 0}.question>p:first-child{font-weight:650}.chips{flex-wrap:wrap;gap:8px;margin:6px 0;display:flex}.chip{background:var(--accent-soft);min-height:40px;color:var(--accent-strong);cursor:pointer;border:0;border-radius:999px;padding:0 16px;font-weight:650;transition:transform 80ms}.chip:active:not(:disabled){transform:scale(.97)}.chip:disabled{opacity:.5}.chip-muted{background:var(--surface);color:var(--muted);box-shadow:var(--shadow)}.levels{grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0 4px;display:grid}.level{background:var(--surface);min-height:72px;box-shadow:inset 0 0 0 1px var(--border);cursor:pointer;border:0;border-radius:16px;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;transition:transform 80ms;display:flex}.level:active:not(:disabled){transform:scale(.97)}.level:disabled{opacity:.6}.level-mid{color:#fff;background:linear-gradient(135deg,#14a57c,#0a7a5b);box-shadow:0 4px 12px #0e8f6b4d}.level-name{color:var(--muted);font-size:.8rem;font-weight:600}.level-kcal{font-variant-numeric:tabular-nums;font-size:1.2rem;font-weight:750}.level-hint{color:var(--muted);text-align:center;font-size:.72rem;line-height:1.2}.level-mid .level-name,.level-mid .level-hint{color:#ffffffd1}.details ul{margin:6px 0;padding-left:18px;font-size:.9rem}.composer-row{background:var(--surface);box-shadow:var(--shadow);border-radius:28px;align-items:flex-end;gap:4px;padding:5px 5px 5px 4px;transition:box-shadow .15s;display:flex}.composer-row:focus-within{box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent), var(--shadow)}.composer textarea{resize:none;background:0 0;border:0;border-radius:22px;flex:1;min-height:44px;max-height:120px;padding:10px 8px}.composer textarea:focus-visible{box-shadow:none}.composer .icon-button{color:var(--muted)}.send-button{color:#fff;cursor:pointer;background:linear-gradient(135deg,#14a57c,#0a7a5b);border:0;border-radius:50%;flex:none;justify-content:center;align-items:center;width:44px;height:44px;transition:transform 80ms;display:inline-flex;box-shadow:0 3px 10px #0e8f6b4d}.send-button:active:not(:disabled){transform:scale(.94)}.send-button:disabled{background:var(--surface-2);color:var(--muted);box-shadow:none;cursor:default}.photo-previews{gap:8px;padding:2px 4px;display:flex}.preview{position:relative}.preview img{object-fit:cover;border-radius:12px;width:64px;height:64px}.preview button{background:var(--text);width:24px;height:24px;color:var(--bg);cursor:pointer;border:0;border-radius:50%;position:absolute;top:-6px;right:-6px}.data-card,.suggestion{align-self:stretch}.suggestion header,.data-card header{justify-content:space-between}.suggestion header .muted{background:var(--accent-soft);color:var(--accent-strong);border-radius:999px;padding:2px 10px;font-weight:650}.card-rows{margin:8px 0;padding:0;list-style:none}.card-rows li{border-bottom:1px solid var(--border);grid-template-columns:1fr auto;gap:0 12px;padding:6px 0;display:grid}.card-rows li:last-child{border-bottom:0}.card-row-value{font-variant-numeric:tabular-nums;font-weight:650}.card-row-macros{grid-column:1/-1}.card-total .left{color:var(--accent-strong)}.card-total .over{color:var(--danger)}
