.weekly-calories-card{position:relative;width:min(100%,calc(70% + 40px));padding:16px 18px;background:#181818;border:1px solid #2b2b2b;border-radius:12px}.weekly-calories-card h3{margin:0;font-size:12px;font-weight:500;color:#ddd}.weekly-calories-card p{margin:5px 0 10px;font-size:10px;color:#888}.weekly-calories-chart{display:block;width:100%;height:auto;overflow:visible}.weekly-calories-grid line{stroke:#303030;stroke-width:1;stroke-dasharray:2 4}.weekly-calories-grid text{fill:#6e6e6e;font-size:8px;font-family:inherit}.weekly-calories-line{fill:none;stroke-width:2;stroke-linejoin:miter;stroke-linecap:round;vector-effect:non-scaling-stroke}.weekly-calories-line.is-expenditure{stroke:#a6e3a1}.weekly-calories-line.is-consumed{stroke:#e56b6b}.weekly-calories-point{stroke:#181818;stroke-width:1.5;pointer-events:none}.weekly-calories-point.is-expenditure{fill:#a6e3a1}.weekly-calories-point.is-consumed{fill:#e56b6b}.weekly-calories-guide{stroke:#666;stroke-width:1;stroke-dasharray:3 4}.weekly-calories-date{fill:#888;font-size:8px;font-family:inherit}.weekly-calories-date.is-active{fill:#eee}.weekly-calories-hit{cursor:pointer;outline:none}.weekly-calories-hit rect{fill:transparent}.weekly-calories-hit:focus-visible rect{stroke:#777;stroke-width:1;rx:3}.weekly-calories-legend{display:flex;flex-wrap:wrap;gap:14px;margin-top:10px;font-size:10px;color:#999}.weekly-calories-legend span{display:flex;align-items:center;gap:5px}.weekly-calories-legend i{width:13px;height:2px;border-radius:2px;background:#a6e3a1}.weekly-calories-legend span:nth-child(2) i{background:#e56b6b}.weekly-calories-tooltip{position:absolute;bottom:calc(100% - 45px);left:8px;right:8px;z-index:20;display:grid;gap:5px;padding:12px;border:1px solid #444;border-radius:8px;background:#252525;box-shadow:0 6px 24px #0006;color:#ddd;font-size:11px;pointer-events:none}.weekly-calories-tooltip strong{font-weight:500}.weekly-calories-tooltip small{color:#999;font-size:9px}.weekly-calories-status{padding:25px 0;font-size:11px;color:#999}@media(max-width:700px){.weekly-calories-card{width:100%}}.statistics-page{width:min(920px,calc(100% - 48px));align-self:center}.statistics-header{display:flex;align-items:flex-start;justify-content:space-between;padding-bottom:22px;border-bottom:1px solid #292929}.statistics-eyebrow{color:#858585;font-size:10px;letter-spacing:1.8px}.statistics-header h1{margin:5px 0 4px;font-size:28px;font-weight:600}.statistics-header p,.statistics-card-heading p{margin:0;color:#858585;font-size:12px}.statistics-refresh{display:grid;place-items:center;width:38px;height:38px;border:1px solid #343434;border-radius:9px;background:#181818;color:#aaa;cursor:pointer}.statistics-refresh:hover{color:#fff;border-color:#555}.statistics-refresh:disabled{cursor:wait;opacity:.7}.is-spinning{animation:statistics-spin .8s linear infinite}@keyframes statistics-spin{to{transform:rotate(360deg)}}.statistics-error{margin-top:16px;padding:11px 13px;border:1px solid #573238;border-radius:8px;background:#2b1b1e;color:#ef9ba3}.statistics-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.statistics-metric,.statistics-card{border:1px solid #2b2b2b;border-radius:12px;background:#181818}.statistics-metric{display:grid;gap:7px;padding:17px 18px}.statistics-metric>span{color:#888;font-size:11px}.statistics-metric strong{font-size:22px;font-weight:600}.statistics-metric small{color:#777;font-size:11px}.statistics-metric.is-green strong{color:#a6e3a1}.statistics-metric.is-purple strong{color:#d1a7db}.statistics-card{padding:20px;margin-bottom:12px}.statistics-card-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px;color:#888}.statistics-card-heading h2{margin:0 0 5px;color:#e8e8e8;font-size:15px;font-weight:600}.statistics-chart{display:flex;height:240px}.statistics-y-axis{display:flex;flex-direction:column;justify-content:space-between;width:52px;padding:1px 10px 25px 0;color:#777;font-size:10px;text-align:right}.statistics-y-axis small{font-size:8px}.statistics-chart-area{position:relative;flex:1;min-width:0}.statistics-grid-lines{position:absolute;top:0;right:0;bottom:25px;left:0;display:flex;flex-direction:column;justify-content:space-between}.statistics-grid-lines i{border-top:1px solid #292929}.statistics-bars{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:flex-end;justify-content:space-around;gap:8px;padding:0 8px 25px}.statistics-bar-column{display:flex;align-items:center;flex-direction:column;justify-content:flex-end;height:100%;min-width:24px;flex:1;gap:8px}.statistics-bar{width:min(34px,70%);min-height:3px;border-radius:6px 6px 2px 2px;background:#a6e3a1;transition:height .3s}.statistics-bar.is-over{background:#ef6262}.statistics-bar-column span{color:#777;font-size:10px;white-space:nowrap}.statistics-target-line{position:absolute;left:0;right:0;border-top:1px dashed #d1a7db;pointer-events:none}.statistics-target-line span{position:absolute;right:2px;top:-17px;color:#d1a7db;font-size:9px}.statistics-two-columns{display:grid;grid-template-columns:1.3fr .7fr;gap:12px}.statistics-two-columns .statistics-card{margin-bottom:0}.statistics-legend{display:flex;gap:17px;margin:-3px 0 15px;color:#999;font-size:11px}.statistics-legend span{display:flex;align-items:center;gap:5px}.statistics-legend i{width:8px;height:8px;border-radius:50%}.legend-protein,.macro-protein-bar{background:#ef6262}.legend-fat,.macro-fat-bar{background:#5b9bea}.legend-carbs,.macro-carbs-bar{background:#f0b84b}.statistics-macro-chart{display:grid;gap:13px}.statistics-macro-row{display:grid;grid-template-columns:42px 1fr 70px;align-items:center;gap:9px}.statistics-macro-row>span,.statistics-macro-row small{color:#888;font-size:10px}.statistics-macro-row small{text-align:right;white-space:nowrap}.statistics-macro-row>div{display:flex;align-items:center;height:8px;gap:2px}.statistics-macro-row i{display:block;height:8px;border-radius:3px;min-width:2px}.statistics-totals{display:grid;align-content:start;gap:0}.statistics-totals .statistics-card-heading{margin-bottom:10px}.statistics-total-row{display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid #292929;color:#999;font-size:12px}.statistics-total-row:last-child{border-bottom:0}.statistics-total-row strong{color:#e8e8e8;font-size:14px;font-weight:500}@media(max-width:700px){.statistics-page{width:100%}.statistics-two-columns{grid-template-columns:1fr}.statistics-two-columns .statistics-card{margin-bottom:12px}}@media(max-width:520px){.statistics-metrics{grid-template-columns:1fr}.statistics-header h1{font-size:24px}.statistics-card{padding:16px}.statistics-macro-row{grid-template-columns:35px 1fr 64px;gap:6px}}.measurements-page{width:min(920px,calc(100% - 48px));align-self:center}.measurements-header{display:flex;align-items:flex-start;justify-content:space-between;padding-bottom:22px;border-bottom:1px solid #292929;color:#888}.measurements-header h1{margin:5px 0 4px;color:#e8e8e8;font-size:28px;font-weight:600}.measurements-header p{margin:0;color:#858585;font-size:12px}.measurements-form,.measurements-card{margin-top:22px;padding:20px;border:1px solid #2b2b2b;border-radius:12px;background:#181818}.measurements-form-heading,.measurements-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.measurements-form h2,.measurements-card h2{margin:0 0 5px;font-size:15px;font-weight:600}.measurements-form p{margin:0;color:#858585;font-size:12px}.measurements-date{display:flex;align-items:center;gap:7px;color:#888}.measurements-date input,.measurements-card-heading select{border:1px solid #363636;border-radius:7px;background:#191919;color:#ddd;padding:8px;font:inherit;font-size:12px}.measurements-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:20px 0}.measurements-fields label{display:grid;gap:7px;color:#999;font-size:11px}.measurements-fields label>span{display:flex;align-items:center;border:1px solid #363636;border-radius:7px;background:#191919}.measurements-fields input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#eee;padding:11px;font:inherit;font-size:14px}.measurements-fields i{padding-right:11px;color:#777;font-style:normal;font-size:11px}.measurements-save{display:flex;align-items:center;gap:7px;border:0;border-radius:7px;background:#dedede;color:#171717;padding:10px 14px;font:inherit;font-size:12px;font-weight:600;cursor:pointer}.measurements-save:hover{background:#fff}.measurements-chart{position:relative;height:255px;margin-top:25px;padding:12px 0 26px 58px}.measurements-chart:before{content:"";position:absolute;top:12px;right:0;bottom:38px;left:58px;background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(33.33% - 1px),#292929 calc(33.33% - 1px),#292929 33.33%)}.measurements-chart svg{position:relative;width:100%;height:100%;overflow:visible}.measurements-chart-labels{position:absolute;left:0;top:10px;bottom:39px;display:flex;flex-direction:column;justify-content:space-between;color:#777;font-size:10px}.measurements-chart-dates{position:absolute;left:58px;right:0;bottom:0;display:flex;justify-content:space-between;color:#777;font-size:10px}.measurements-empty{display:grid;place-items:center;min-height:180px;color:#777;font-size:12px}.measurements-history{margin-top:12px}.measurement-history-row{display:grid;grid-template-columns:75px 1fr 24px;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #292929}.measurement-history-row:last-child{border-bottom:0}.measurement-history-row time{color:#999;font-size:11px}.measurement-history-row>div{display:flex;flex-wrap:wrap;gap:5px 14px}.measurement-history-row span{color:#bbb;font-size:11px}.measurement-history-row b{color:#777;font-weight:400}.measurement-history-row button{display:grid;place-items:center;border:0;background:transparent;color:#777;cursor:pointer}.measurement-history-row button:hover{color:#ef7777}@media(max-width:600px){.measurements-page{width:100%}.measurements-fields{grid-template-columns:repeat(2,1fr)}.measurements-form-heading{display:grid}.measurements-date{justify-content:flex-start}.measurement-history-row{grid-template-columns:60px 1fr 24px}}@media(max-width:420px){.measurements-fields{grid-template-columns:1fr}.measurements-card-heading{display:grid}}.local-chat-page{width:min(760px,calc(100% - 48px));align-self:center;display:flex;flex-direction:column;height:calc(100vh - 68px);min-height:520px}.local-chat-header{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:20px;border-bottom:1px solid #292929}.local-chat-header h1{margin:0 0 5px;font-size:24px;font-weight:600}.local-chat-header p{margin:0;color:#777;font-size:12px}.local-chat-header>button{display:grid;place-items:center;width:36px;height:36px;border:1px solid #343434;border-radius:8px;background:#181818;color:#888;cursor:pointer}.local-chat-header>button:hover{color:#ef7777;border-color:#555}.local-chat-messages{flex:1;overflow-y:auto;padding:24px 4px 20px;display:flex;flex-direction:column;gap:17px}.local-chat-message{display:flex;align-items:flex-start;gap:10px;max-width:86%}.local-chat-message.user{align-self:flex-end;flex-direction:row-reverse}.local-chat-avatar{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:#292929;color:#aaa}.local-chat-message.assistant .local-chat-avatar{background:#273d2a;color:#a6e3a1}.local-chat-bubble{padding:11px 14px;border:1px solid #303030;border-radius:12px;background:#1b1b1b;color:#ddd;font-size:13px;line-height:1.5;white-space:pre-wrap}.local-chat-message.user .local-chat-bubble{background:#303030;border-color:#414141}.local-chat-typing span{animation:chat-dot 1.1s infinite;color:#a6e3a1}.local-chat-typing span:nth-child(2){animation-delay:.15s}.local-chat-typing span:nth-child(3){animation-delay:.3s}@keyframes chat-dot{0%,60%,to{opacity:.25}30%{opacity:1}}.local-chat-error{margin:0 4px 10px;padding:10px 12px;border:1px solid #573238;border-radius:8px;background:#2b1b1e;color:#ef9ba3;font-size:12px}.local-chat-input{display:flex;align-items:flex-end;gap:10px;padding:10px;border:1px solid #363636;border-radius:11px;background:#181818}.local-chat-input textarea{flex:1;resize:none;max-height:120px;border:0;outline:0;background:transparent;color:#eee;font:inherit;font-size:13px;line-height:1.4;padding:5px 2px}.local-chat-input button{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:8px;background:#dedede;color:#171717;cursor:pointer}.local-chat-input button:hover{background:#fff}.local-chat-input button:disabled{opacity:.4;cursor:not-allowed}@media(max-width:520px){.local-chat-page{width:100%;height:calc(100vh - 44px)}.local-chat-message{max-width:94%}.local-chat-header{padding-left:4px;padding-right:4px}}.local-chat-header>button{border:0;border-radius:0;background:transparent;box-shadow:none;padding:0}.local-chat-header{position:relative}.local-chat-header-actions{position:relative;display:flex;align-items:center}.local-chat-menu-button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:7px;background:transparent;color:#888;cursor:pointer}.local-chat-menu-button:hover{background:#292929;color:#eee}.local-chat-menu{position:absolute;top:40px;right:0;z-index:4;display:grid;min-width:170px;padding:5px;border:1px solid #3a3a3a;border-radius:8px;background:#242424;box-shadow:0 12px 30px #0009}.local-chat-menu button{display:flex;align-items:center;justify-content:flex-start;width:100%;height:34px;min-height:34px;box-sizing:border-box;gap:8px;padding:0 9px 0 12px;border:0;border-radius:5px;background:transparent;color:#ddd;font:inherit;font-size:12px;text-align:left;white-space:nowrap;cursor:pointer}.local-chat-menu button svg{flex:0 0 18px;color:#fff}.local-chat-menu button:hover:not(:disabled){background:#333;color:#fff}.local-chat-menu button:disabled{color:#888;cursor:default}.local-chat-bubble{position:relative;border-color:#292929;border-radius:14px 14px 14px 5px;box-shadow:none}.local-chat-bubble:after{content:"";position:absolute;left:-5px;bottom:2px;width:9px;height:9px;background:inherit;border-left:1px solid #292929;border-bottom:1px solid #292929;transform:skew(-25deg) rotate(25deg)}.local-chat-message.user .local-chat-bubble{border-radius:14px 14px 5px}.local-chat-message.user .local-chat-bubble:after{left:auto;right:-5px;border-left:0;border-bottom:1px solid #414141;border-right:1px solid #414141;transform:skew(25deg) rotate(-25deg)}.local-chat-bubble:after,.local-chat-message.user .local-chat-bubble:after{display:none}.local-chat-messages{scrollbar-width:none;-ms-overflow-style:none}.local-chat-messages::-webkit-scrollbar{display:none;width:0;height:0}.local-chat-input{align-items:center;min-height:54px;padding:8px 9px 8px 13px}.local-chat-input textarea{min-height:30px;max-height:120px;padding:6px 2px;line-height:18px}.local-chat-input button{flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:#a6e3a1;color:#142016;transition:transform .15s ease,background .15s ease}.local-chat-input button:hover:not(:disabled){background:#c1f2bd;transform:scale(1.04)}.local-chat-input button:disabled{background:#4b554c;color:#858d86}.local-chat-input button{flex-basis:38px;width:38px;height:38px;border-radius:8px;background:transparent;color:#858585}.local-chat-input button:hover:not(:disabled){background:#292929;color:#a6e3a1;transform:none}.local-chat-input button{flex-basis:40px;width:40px;height:40px;border-radius:0;background:transparent;color:#888}.local-chat-input button:hover:not(:disabled){background:transparent;color:#ddd;transform:none}.local-chat-input button:disabled{background:transparent;color:#555}.local-chat-input button svg{width:22px;height:22px;stroke-width:1.8}.local-chat-input button .local-chat-send-icon{width:26px;height:26px;transform:none}.local-chat-input{border:0;background:#181818}.local-chat-page{background:transparent}.local-chat-input{border-top:1px solid #292929;border-radius:0}.local-chat-input{background:#222}.local-chat-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.local-chat-input{min-height:44px;padding-top:5px;padding-bottom:5px}.local-chat-input textarea{min-height:24px;line-height:16px;padding-top:4px;padding-bottom:4px}.local-chat-input button{width:34px;height:34px;flex-basis:34px}.local-chat-message{align-items:flex-end}.local-chat-avatar{box-shadow:0 3px 12px #0008}.local-chat-message.assistant .local-chat-avatar{background:#294454;color:#9edcff}.local-chat-typing span{color:#9edcff}.local-chat-input .local-chat-plus-button{flex:0 0 34px;width:34px;height:34px;padding:0;border:0;border-radius:0;background:transparent;color:#777}.local-chat-input .local-chat-plus-button:hover:not(:disabled){background:transparent;color:#aaa}.local-chat-input .local-chat-plus-button svg{display:block;width:24px;height:24px}.local-chat-input textarea{font-size:14px}.local-chat-input textarea::placeholder{color:#a5a5a5;opacity:1}.local-chat-header>div{padding-left:6px}.local-chat-model-title{display:flex;align-items:center;gap:8px}.local-chat-model-title h1{margin:0}.local-chat-model-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#294454;color:#9edcff;box-shadow:0 3px 12px #0008}.local-chat-message.assistant .local-chat-avatar{margin-left:2px}.local-chat-message.user .local-chat-avatar{margin-right:2px}.local-chat-message.assistant{margin-left:8px}.local-chat-input{align-items:flex-end}.local-chat-input textarea{align-self:center;overflow:hidden}.local-chat-input textarea.is-expanded{align-self:flex-end}.local-chat-input>button{align-self:flex-end}.local-chat-input textarea:not(.is-expanded){padding-top:0;padding-bottom:0;line-height:24px}.local-chat-input textarea.is-expanded{line-height:18px}.local-chat-input textarea.is-expanded:not(.is-multiline){align-self:center;padding-top:0;padding-bottom:0;line-height:24px}.local-chat-input .local-chat-send-button,.local-chat-input .local-chat-send-button:disabled{background:transparent;color:#747474;opacity:1}.local-chat-input .local-chat-send-button:not(:disabled){background:transparent;color:#6fa7e6}.local-chat-input .local-chat-send-button:not(:disabled):hover{background:transparent;color:#7fb3ed}.local-chat-input .local-chat-send-button .local-chat-send-icon{width:26px;height:26px}.local-chat-input .local-chat-emoji-button{flex:0 0 34px;width:34px;height:34px;padding:0;border:0;border-radius:0;background:transparent;color:#747474}.local-chat-input .local-chat-emoji-button:hover{background:transparent;color:#8a8a8a}.local-chat-input .local-chat-emoji-button svg{width:22px;height:22px}.local-chat-messages{scrollbar-width:thin;scrollbar-color:transparent transparent}.local-chat-messages::-webkit-scrollbar{display:block;width:6px;height:6px}.local-chat-messages::-webkit-scrollbar-track{background:transparent}.local-chat-messages::-webkit-scrollbar-thumb{background:transparent;border-radius:6px;transition:background-color .5s ease}.local-chat-messages.is-scrolling{scrollbar-color:#3d3d3d transparent}.local-chat-messages.is-scrolling::-webkit-scrollbar-thumb{background:#3d3d3d}.local-chat-messages.is-scrolling::-webkit-scrollbar-thumb:hover{background:#555}.local-chat-scroll-bottom{position:absolute;right:18px;bottom:64px;z-index:2;display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:#222;color:#747474;cursor:pointer;box-shadow:0 4px 14px #0008}.local-chat-scroll-bottom svg{transform:translateY(2px)}.local-chat-scroll-bottom:hover{background:#303030;color:#fff;border-color:#aaa}.local-chat-page{position:relative}.local-chat-message-time{display:block;margin-top:4px;color:#747474;font-size:10px;line-height:1;text-align:right}.local-chat-message-body{display:flex;flex-direction:column;align-items:flex-start;min-width:0;max-width:100%}.local-chat-message.user .local-chat-message-body{align-items:flex-end}.local-chat-queued{margin:5px 3px 0;color:#888;font-size:11px}.local-chat-suggestions{display:flex;flex-wrap:wrap;gap:7px;max-width:100%;margin-top:9px}.local-chat-suggestions button{padding:7px 11px;border:1px solid #3b5873;border-radius:16px;background:#243847;color:#bedfff;font:inherit;font-size:12px;cursor:pointer}.local-chat-suggestions button:hover{border-color:#6fa7e6;background:#304b61;color:#fff}.page:has(.chat-workspace){width:calc(100vw - 295px);max-width:none;height:100vh;min-height:100vh;margin-left:265px;margin-right:0;padding-bottom:0;overflow:hidden;align-items:stretch}.chat-workspace{display:flex;align-self:stretch;width:100%;height:calc(100vh - 68px);min-height:520px;gap:14px}.chat-sessions{width:180px;flex:0 0 180px;display:flex;flex-direction:column;min-height:0;padding:0 0 12px;border-right:1px solid #292929}.chat-sessions-header{display:flex;align-items:center;justify-content:space-between;padding:0 10px 16px 0;border-bottom:1px solid #292929}.chat-sessions-header h2{margin:0;font-size:18px;font-weight:600}.chat-sessions-header button,.chat-session-actions{display:grid;place-items:center;border:0;background:transparent;color:#747474;cursor:pointer}.chat-sessions-header button{width:30px;height:30px;border-radius:7px}.chat-sessions-header button:hover,.chat-session-actions:hover{color:#eee;background:transparent}.chat-new-button{display:flex;align-items:center;justify-content:center;gap:7px;width:calc(100% - 20px);height:36px;margin:14px 10px 12px 0;border:0;border-radius:8px;background:transparent;color:#aaa;font:inherit;font-size:12px;cursor:pointer}.chat-new-button:hover{background:transparent;color:#fff}.chat-sessions-list{display:flex;flex-direction:column;gap:3px;overflow-y:auto;padding-right:10px}.chat-session-item{display:flex;align-items:center;gap:9px;width:100%;min-height:38px;padding:0 8px;border:0;border-radius:7px;background:transparent;color:#909090;font:inherit;font-size:12px;text-align:left;cursor:pointer}.chat-session-item span:not(.chat-session-actions){flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-session-item:hover,.chat-session-item.is-active{background:transparent;color:#eee}.chat-session-actions{flex:0 0 24px;width:24px;height:24px;border-radius:5px}.chat-workspace-main{display:flex;flex:1;min-width:0;justify-content:stretch}.chat-workspace-main .local-chat-page{width:100%;height:100%;min-height:0;align-self:stretch}.chat-sessions-header,.chat-workspace-main .local-chat-header{height:52px;min-height:52px;box-sizing:border-box;padding-top:0;padding-bottom:12px;align-items:center}.chat-workspace-main .local-chat-page{background:transparent}@media(max-width:700px){.page:has(.chat-workspace){width:calc(100vw - 225px)}.chat-workspace{gap:10px}.chat-sessions{width:150px;flex-basis:150px}.chat-session-item{font-size:11px}.chat-sessions-header h2{font-size:16px}}.local-chat-page{height:calc(100vh - 112px);min-height:480px}@media(max-width:520px){.local-chat-page{height:calc(100vh - 88px)}}.workout-document-page{display:flex;flex-direction:column;align-self:stretch;width:100%;max-width:1180px;height:calc(100dvh - 115px);min-height:500px;gap:18px}.workout-document-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid #2b2b2b}.workout-document-header h1{margin:0 0 6px;font-size:27px;font-weight:600}.workout-document-status{color:#8a8a8a;font-size:12px}.workout-document-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.workout-document-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 11px;border:1px solid #383838;border-radius:8px;background:#242424;color:#ddd;font:inherit;font-size:13px;cursor:pointer}.workout-document-actions button:hover:not(:disabled){border-color:#666;background:#303030;color:#fff}.workout-document-actions button:disabled{opacity:.45;cursor:default}.workout-document-actions .workout-sleep-sync-action,.workout-document-actions .workout-sleep-sync-action:hover:not(:disabled){border-color:transparent;background:transparent}.workout-document-actions .workout-sleep-sync-action>span{white-space:nowrap;color:#a6a6a6}.workout-day-note{display:flex;flex:1;min-height:0;flex-direction:column;overflow:auto;border:1px solid #303030;border-radius:12px;background:#1b1b1b;scrollbar-width:thin;scrollbar-color:#3d3d3d transparent}.workout-day-note::-webkit-scrollbar{width:8px}.workout-day-note::-webkit-scrollbar-track{background:transparent}.workout-day-note::-webkit-scrollbar-thumb{border:2px solid #1b1b1b;border-radius:8px;background:#3d3d3d}.workout-document-editor{flex:none;height:auto;min-height:360px;width:100%;box-sizing:border-box;resize:none;padding:22px 24px;border:0;border-radius:0;outline:none;background:transparent;color:#eee;font:16px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;overflow:hidden;scrollbar-width:none}.workout-day-card{flex:none;padding:14px 16px;border:0;border-bottom:1px solid #2b2b2b;border-radius:0;background:#181818}.workout-day-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#eee;font-size:13px}.workout-day-card-heading span{color:#8eaf99;font-size:11px}.workout-sleep-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:12px}.workout-sleep-metrics span{display:grid;gap:3px;min-width:0}.workout-sleep-metrics b{font-size:12px;font-weight:600;color:#ddd}.workout-sleep-metrics small{color:#777;font-size:10px;white-space:nowrap}.workout-day-card p{margin:12px 0 0;color:#777;font-size:10px;line-height:1.4}.muscle-recovery-info{flex:none;padding:12px 0 0}.muscle-recovery-info-heading{display:flex;justify-content:space-between;gap:10px;color:#eee;font-size:13px}.muscle-recovery-info-heading span{color:#8eaf99;font-size:11px}.muscle-recovery-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:9px}.muscle-recovery-item{display:flex;align-items:baseline;justify-content:space-between;gap:6px;padding:5px 7px;border-radius:5px;background:#1b1b1b;color:#aaa}.muscle-recovery-item b{font-size:11px;font-weight:500}.muscle-recovery-item small{color:#888;font-size:9px;text-align:right}.muscle-recovery-item.is-loaded{color:#ef9690}.muscle-recovery-item.is-recovering{color:#e4b071}.muscle-recovery-item.is-rested{color:#9fc0aa}.muscle-recovery-disclaimer{display:block;margin-top:8px;color:#686868;font-size:9px;line-height:1.35}.workout-day-health-summary{display:flex;gap:12px;margin-top:8px;color:#888;font-size:11px}.workout-day-health-summary b{color:#bbb;font-weight:600}.workout-document-editor::-webkit-scrollbar{width:8px;height:8px}.workout-document-editor::-webkit-scrollbar-track{background:transparent}.workout-document-editor::-webkit-scrollbar-thumb{border:2px solid #1b1b1b;border-radius:8px;background:#3d3d3d}.workout-document-editor::-webkit-scrollbar-thumb:hover{background:#666}.workout-document-editor::-webkit-scrollbar-corner{background:transparent}.workout-document-editor:focus{border-color:transparent}.workout-document-editor::placeholder{color:#747474}.workout-document-body{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:18px;min-height:0;flex:1}.workout-editor-column{display:flex;flex-direction:column;min-width:0;min-height:0;gap:12px}.workout-insights-column{position:relative;z-index:35;display:flex;flex-direction:column;min-width:0;min-height:0;gap:12px;overflow:visible}.workout-insights-column>.muscle-recovery{flex:1 1 auto;min-height:260px}.workout-day-summary span{min-width:0;white-space:pre-wrap;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.workout-day-summary small{grid-column:2;color:#8eaf99}.workout-agent-chat{height:280px;min-height:280px;border:1px solid #2b2b2b;border-radius:10px;overflow:hidden;background:#141414}.workout-agent-chat .local-chat-page{width:100%;height:100%;min-height:0;align-self:stretch}.workout-agent-chat .local-chat-header{padding:10px 12px 9px}.workout-agent-chat .local-chat-header h1{font-size:16px}.workout-chat-button{position:fixed;right:28px;bottom:28px;z-index:31;display:grid;place-items:center;width:49px;height:49px;padding:0;border:2px solid #fff;border-radius:50%;background:#fff;color:#171717;cursor:pointer;box-shadow:0 8px 24px #0008}.workout-chat-button:hover{background:#eee}.workout-floating-actions{position:fixed;right:28px;bottom:28px;z-index:31;display:flex;align-items:center;gap:10px}.workout-floating-actions .workout-chat-button{position:static}.workout-add-button{display:grid;place-items:center;width:49px;height:49px;padding:0;border:2px solid #fff;border-radius:50%;background:#fff;color:#171717;cursor:pointer;box-shadow:0 8px 24px #0008}.workout-add-button:hover{background:#eee}.workout-manual-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:grid;place-items:center;padding:20px;background:#0009}.workout-manual-form{position:relative;width:min(480px,100%);max-height:90vh;overflow:auto;padding:24px;border:1px solid #383838;border-radius:12px;background:#191919;color:#eee;box-shadow:0 18px 60px #000b}.workout-manual-form h2{margin:0 0 4px;font-size:21px}.workout-manual-form>p{margin:0 0 18px;color:#888;font-size:12px}.workout-manual-form>label{display:grid;gap:6px;margin:12px 0;color:#aaa;font-size:12px}.workout-manual-form input,.workout-manual-form select{box-sizing:border-box;width:100%;padding:10px 11px;border:1px solid #3a3a3a;border-radius:7px;background:#232323;color:#eee;font:inherit}.workout-manual-close{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;background:transparent;color:#888;cursor:pointer}.workout-manual-close:hover{color:#fff}.workout-manual-sets{margin-top:20px;padding-top:14px;border-top:1px solid #303030}.workout-manual-sets h3{margin:0 0 10px;font-size:14px}.workout-manual-set{display:grid;grid-template-columns:24px 1fr 1fr auto;align-items:center;gap:8px;margin:8px 0}.workout-manual-set label{display:flex;align-items:center;gap:5px;color:#aaa;font-size:11px;white-space:nowrap}.workout-manual-set label input{width:auto}.workout-manual-add-set{display:flex;align-items:center;gap:5px;margin-top:10px;border:0;background:transparent;color:#7fb4e8;font:inherit;font-size:12px;cursor:pointer}.workout-manual-save{width:100%;margin-top:22px;padding:11px;border:0;border-radius:8px;background:#eee;color:#111;font:inherit;font-weight:700;cursor:pointer}.workout-chat-panel{position:fixed;right:20px;bottom:20px;z-index:40;width:min(360px,calc(100vw - 40px));height:min(460px,calc(100vh - 120px));display:flex;flex-direction:column;overflow:hidden;background:#141414;border:0;border-radius:14px;box-shadow:0 18px 60px #000b,0 0 24px #fff0008;animation:workout-chat-panel-in .22s ease-out both}.workout-chat-panel-header{display:flex;align-items:center;justify-content:space-between;flex:none;height:44px;padding:0 12px 0 17px;background:#222;color:#eee}.workout-chat-panel-header strong{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}.workout-chat-panel-header>button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:7px;background:transparent;color:#888;cursor:pointer}.workout-chat-panel-header>button:hover{background:#2b2b2b;color:#eee}.workout-chat-header-actions{position:relative;display:flex;align-items:center;gap:4px}.workout-chat-header-actions>button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:7px;background:transparent;color:#888;cursor:pointer}.workout-chat-header-actions>button:hover{background:#2b2b2b;color:#eee}.workout-chat-menu{position:absolute;top:36px;right:34px;z-index:5;display:grid;min-width:170px;padding:5px;border:1px solid #3a3a3a;border-radius:8px;background:#242424;box-shadow:0 12px 30px #0009}.workout-chat-menu button{display:flex;align-items:center;gap:8px;width:100%;height:34px;padding:0 9px 0 12px;border:0;border-radius:5px;background:transparent;color:#ddd;font:inherit;font-size:12px;text-align:left;white-space:nowrap;cursor:pointer}.workout-chat-menu button:hover:not(:disabled){background:#333;color:#fff}.workout-chat-menu button:disabled{color:#888;cursor:default}.workout-chat-menu button svg{flex:0 0 18px;color:#fff}.workout-chat-bot-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#294454;color:#9edcff}.workout-chat-panel .local-chat-page{width:100%;height:100%;min-height:0;align-self:stretch;padding:0}.workout-chat-panel .local-chat-header{display:flex;height:44px;min-height:44px;box-sizing:border-box;padding:0 12px 0 17px;align-items:center;border-bottom:1px solid #2d2d2d;background:#222}.workout-chat-panel .local-chat-header h1{font-size:13px;margin:0}.workout-chat-panel .local-chat-header-actions{display:flex;align-items:center;gap:4px}.workout-chat-panel .local-chat-header-actions>button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:7px;background:transparent;color:#888;cursor:pointer}.workout-chat-panel .local-chat-header-actions>button:hover{background:#2b2b2b;color:#eee}.workout-chat-panel .local-chat-input{flex:none;min-height:44px;padding:5px 9px;border-top:1px solid #292929;border-radius:0;background:#222}.workout-chat-panel .local-chat-input textarea{min-height:24px;padding-top:4px;padding-bottom:4px;line-height:16px}.workout-chat-panel .local-chat-messages{padding:16px 12px 14px}@keyframes workout-chat-panel-in{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}.muscle-recovery{position:relative;display:flex;flex-direction:column;min-height:0;overflow:visible;box-sizing:border-box;padding:0;border:0;border-radius:0;background:transparent}.muscle-recovery-heading{display:flex;align-items:start;justify-content:space-between;gap:12px}.muscle-recovery-heading h2{margin:0;font-size:19px;line-height:1.25;font-weight:600;color:#f1f1f1}.muscle-recovery-heading p{margin:5px 0 0;color:#919191;font-size:12px}.muscle-recovery-tag{padding:3px 7px;border:1px solid #555;border-radius:5px;color:#aaa;font-size:11px}.muscle-recovery-canvas{position:relative;flex:1 1 auto;width:100%;height:100%;margin:0;overflow:hidden;border:0;border-radius:0;background:transparent;touch-action:none}.muscle-recovery-canvas canvas{display:block;width:100%;height:100%;cursor:grab}.muscle-recovery-canvas canvas:active{cursor:grabbing}.muscle-recovery-loading{position:absolute;z-index:1;top:50%;left:50%;width:max-content;max-width:90%;transform:translate(-50%,-50%);color:#bbb;font-size:12px;text-align:center;pointer-events:none}.muscle-recovery-hint{position:absolute;left:10px;right:10px;bottom:10px;color:#a9a9a9;font-size:11px;text-align:center;pointer-events:none;text-shadow:0 1px 5px #111}.muscle-recovery-legend{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:#aaa;font-size:11px}.muscle-recovery-legend span{display:inline-flex;align-items:center;gap:5px}.muscle-recovery-legend i,.muscle-recovery-group i{display:inline-block;flex:none;width:8px;height:8px;border-radius:50%}.muscle-recovery-legend .is-loaded{background:#ec6b65}.muscle-recovery-legend .is-recovering{background:#e8a455}.muscle-recovery-legend .is-rested{background:#86a796}.muscle-recovery-detail{display:flex;flex-direction:column;gap:3px;margin-top:15px;color:#e8e8e8}.muscle-recovery-detail strong{font-size:16px;font-weight:600}.muscle-recovery-detail span{color:#aaa;font-size:12px;line-height:1.45}.muscle-recovery-groups{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}.muscle-recovery-group{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:4px 8px;border:1px solid #3b3b3b;border-radius:6px;background:#272727;color:#bbb;font:inherit;font-size:11px;cursor:pointer}.muscle-recovery-group:hover,.muscle-recovery-group.is-active{border-color:#777;color:#f2f2f2;background:#343434}.muscle-recovery-caution{margin:16px 0 0;color:#929292;font-size:11px;line-height:1.5}.muscle-recovery-credit{margin-top:10px;color:#777;font-size:10px;line-height:1.4}.muscle-recovery-credit a{color:#999;text-decoration:underline;text-underline-offset:2px}.workout-notes-panel{display:flex;flex-direction:column;gap:12px;max-height:min(48vh,420px);min-height:0;padding:16px;border:1px solid #343434;border-radius:12px;background:#202020}.workout-notes-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 14px;color:#eee;font-size:15px}.workout-notes-heading span{color:#999;font-size:13px}.workout-notes-list{display:flex;flex-direction:column;gap:8px;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#3d3d3d transparent}.workout-note-row{display:flex;align-items:stretch;gap:8px}.workout-note-row textarea{flex:1;min-width:0;min-height:75px;resize:vertical;box-sizing:border-box;padding:10px 12px;border:1px solid #3b3b3b;border-radius:8px;outline:none;background:#181818;color:#eee;font:inherit;font-size:14px;line-height:1.5}.workout-note-row textarea:focus{border-color:#777}.workout-note-row textarea::placeholder{color:#777}.workout-note-remove,.workout-notes-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #3b3b3b;border-radius:8px;background:#292929;color:#ddd;cursor:pointer}.workout-note-remove{width:38px;flex:none}.workout-notes-actions{display:flex;justify-content:space-between;gap:8px}.workout-notes-actions button{min-height:36px;padding:7px 12px;font:inherit;font-size:13px}.workout-notes-actions .workout-notes-submit{background:#dedede;color:#151515;border-color:#dedede;font-weight:600}.workout-note-remove:disabled,.workout-notes-actions button:disabled{opacity:.45;cursor:default}.workout-note-process{display:none}.workout-notes-error{margin:0;color:#f18c8c;font-size:13px}.workout-calendar{position:relative;flex:0 0 45%;min-height:220px;width:100%}.workout-calendar .calendar-page{width:100%;height:100%;margin:0}.workout-calendar .calendar-card{display:flex;flex-direction:column;height:100%;box-sizing:border-box;margin:0;padding:14px 18px 16px;background:#181818;border:1px solid #2b2b2b;border-radius:12px}.workout-calendar .calendar-toolbar{margin-bottom:10px}.workout-calendar .calendar-toolbar h2{font-size:18px}.workout-calendar .calendar-period-selectors select{font-size:16px}.workout-calendar .calendar-navigation{gap:5px}.workout-calendar .calendar-navigation button{height:28px}.workout-calendar .calendar-navigation .calendar-today-button{font-size:14px}.workout-calendar .calendar-weekdays{margin-bottom:3px;font-size:12px}.workout-calendar .calendar-days{flex:1;min-height:0;grid-template-rows:repeat(6,minmax(0,1fr));gap:0}.workout-calendar .calendar-days button{min-height:0;height:auto;font-size:14px}.workout-calendar .calendar-days button{position:relative}.workout-calendar .calendar-days button i{position:absolute;left:50%;bottom:3px;width:5px;height:5px;transform:translate(-50%);border-radius:50%;background:#6fa7e6;content:""}.workout-calendar .calendar-days button.is-today i{background:#fff}.workout-calendar-visibility{position:absolute;top:10px;right:12px;z-index:3;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:7px;background:transparent;color:#999;cursor:pointer}.workout-calendar-visibility:hover{background:#292929;color:#fff}.workout-document-actions .workout-calendar-visibility{position:static;width:auto;min-width:36px;flex:none;border-color:#383838;background:#242424}.workout-calendar.is-hidden{display:none}.workout-day-card-heading .workout-calendar-visibility{position:static;margin-left:auto;flex:none}@media(max-width:700px){.workout-document-page{height:calc(100dvh - 145px);min-height:300px;gap:12px}.workout-document-header{align-items:flex-start;flex-direction:column;gap:10px;padding-bottom:12px}.workout-document-header h1{font-size:25px}.workout-document-actions{width:100%;gap:6px}.workout-document-actions button{font-size:12px;padding:7px 9px}.workout-document-editor{padding:16px;font-size:16px;line-height:1.55}}@media(max-width:700px){.workout-notes-panel{max-height:45vh;padding:12px}.workout-notes-heading span{font-size:12px}.workout-note-row textarea{font-size:14px}}@media(max-width:900px){.workout-document-body{grid-template-columns:minmax(0,1fr) 300px;gap:12px}}@media(max-width:700px){.workout-document-page{height:auto;min-height:calc(100dvh - 145px);padding-bottom:110px}.workout-document-body{display:flex;flex-direction:column}.workout-insights-column{display:contents}.muscle-recovery{order:-1;overflow:hidden}.muscle-recovery-canvas{height:360px}.workout-document-editor{flex:none;min-height:360px;height:auto}.workout-agent-chat{order:2;height:360px;min-height:360px}.workout-editor-column{display:contents}.workout-calendar{order:0}.workout-sleep-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.workout-sleep-metrics span:last-child{grid-column:span 2}}@media(max-width:700px){.workout-floating-actions{right:18px;bottom:18px;gap:7px}.workout-chat-button{right:18px;bottom:18px}.workout-chat-panel{right:12px;bottom:12px;width:calc(100vw - 24px);height:70vh}.workout-manual-form{padding:20px}.workout-manual-set{grid-template-columns:20px 1fr 1fr}.workout-manual-set label{grid-column:2 / -1}}@media(max-width:700px){.workout-editor-column{min-height:0}.workout-calendar{flex:0 0 300px;min-height:0}.workout-calendar .calendar-card{padding:12px 10px 14px}.workout-calendar .calendar-days button{min-height:28px;font-size:13px}}.workout-manual-form textarea{box-sizing:border-box;width:100%;min-height:88px;padding:10px 11px;border:1px solid #3a3a3a;border-radius:7px;background:#232323;color:#eee;font:inherit;line-height:1.5;resize:vertical}.workout-manual-hint{display:none}.workout-manual-error{margin:10px 0 0;color:#f18c8c;font-size:12px}.workout-manual-form{scrollbar-width:thin;scrollbar-color:#565656 #191919}.workout-manual-form::-webkit-scrollbar{width:8px}.workout-manual-form::-webkit-scrollbar-track{background:#191919;border-radius:8px}.workout-manual-form::-webkit-scrollbar-thumb{background:#565656;border-radius:8px;border:2px solid #191919}.workout-manual-form::-webkit-scrollbar-thumb:hover{background:#707070}.workout-manual-exercise{margin:18px 0 0;padding:14px 0 16px;border-top:1px solid #303030}.workout-manual-exercise-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;color:#ddd;font-size:14px}.workout-manual-remove{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:#888;cursor:pointer}.workout-manual-remove:hover{background:#2b2b2b;color:#fff}.workout-manual-add-exercise{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;margin-top:8px;padding:10px;border:1px dashed #4a4a4a;border-radius:8px;background:transparent;color:#9bc6ee;font:inherit;font-size:13px;cursor:pointer}.workout-manual-add-exercise:hover{border-color:#7fb4e8;background:#222}.workout-manual-exercise.is-running{border-color:#466a85}.workout-manual-exercise.is-running .workout-manual-exercise-heading{color:#9bc6ee}.workout-manual-exercise.is-collapsed{padding-bottom:10px}.workout-manual-notation-collapsed{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:34px;padding:7px 10px;border:1px solid #333;border-radius:7px;background:#222;color:#bbb;font-size:13px;white-space:pre-wrap;overflow:hidden}.workout-manual-notation-collapsed span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workout-manual-notation-collapsed button{display:grid;place-items:center;flex:none;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:#aaa;cursor:pointer}.workout-manual-notation-collapsed button:hover{background:#333;color:#fff}.workout-manual-exercise.is-collapsed .workout-manual-notation-collapsed{margin-top:14px}.workout-manual-notation-collapsed:before{content:"Подходы";flex:none;color:#888;font-size:11px;font-weight:600}.workout-manual-notation-collapsed{cursor:pointer}.workout-day-note>.workout-manual-backdrop{position:static;inset:auto;z-index:auto;display:block;padding:0;background:transparent}.workout-day-note>.workout-manual-backdrop>.workout-manual-form{width:100%;max-height:none;overflow:visible;padding:0 24px 22px;border:0;border-radius:0;background:transparent;box-shadow:none}.workout-day-note>.workout-manual-backdrop .workout-manual-close{display:none}.workout-day-note>.workout-manual-backdrop .workout-manual-save{font-size:0}.workout-day-note>.workout-manual-backdrop .workout-manual-save:after{content:"Сохранить";font-size:inherit}.workout-floating-actions .workout-add-button{display:none!important}.workout-manual-exercise>label{font-size:0}.workout-manual-exercise>label input,.workout-manual-exercise>label textarea{font-size:14px}.workout-manual-exercise>label:first-of-type{margin-top:18px}.workout-manual-exercise:not(.is-collapsed)>label+label{margin-top:14px}.workout-manual-exercise:not(.is-collapsed)>label:nth-of-type(2){padding-top:14px}.workout-manual-exercise:not(.is-collapsed)>label:nth-of-type(2){padding-top:0}.workout-manual-exercise:not(.is-collapsed)>label:nth-of-type(2)>textarea{margin-top:14px}.workout-manual-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:22px}.workout-manual-actions .workout-manual-add-exercise,.workout-manual-actions .workout-manual-save{width:100%;height:42px;margin:0;padding:8px 10px;box-sizing:border-box;font-size:12px;line-height:18px}.workout-day-note>.workout-manual-backdrop .workout-manual-add-exercise{grid-column:2}.workout-day-note>.workout-manual-backdrop .workout-manual-save{grid-column:3}.muscle-recovery-list{gap:7px}.muscle-recovery-item{position:relative;gap:8px;padding:8px 10px;border-radius:6px}.muscle-recovery-item b{font-size:12px}.muscle-recovery-item small{font-size:10px}.muscle-recovery-item.is-light-loaded{color:#c98b87}.muscle-recovery-item.is-light-recovering{color:#c5a06c}.muscle-recovery-tooltip{position:fixed;z-index:1000;width:250px;max-width:calc(100vw - 16px);box-sizing:border-box;padding:9px 11px;border:1px solid #3b3b3b;border-radius:6px;background:#242424;color:#ddd;box-shadow:0 6px 18px #0008;font-size:10px;line-height:1.5;white-space:pre-line;pointer-events:none;transform:translateY(-100%)}.muscle-recovery-info{max-height:270px;min-height:0;overflow:auto;padding-right:3px;scrollbar-width:thin;scrollbar-color:#3d3d3d transparent}.muscle-recovery-info::-webkit-scrollbar{width:7px}.muscle-recovery-info::-webkit-scrollbar-track{background:transparent}.muscle-recovery-info::-webkit-scrollbar-thumb{border-radius:8px;background:#3d3d3d}.muscle-recovery-info-heading{position:sticky;top:0;z-index:1;padding-bottom:4px;background:#111}.muscle-recovery-info{overflow:hidden}.muscle-recovery-info-heading{position:static}.muscle-recovery-list{max-height:220px;overflow:auto;padding-right:3px;scrollbar-width:thin;scrollbar-color:#3d3d3d transparent}.muscle-recovery-list::-webkit-scrollbar{width:7px}.muscle-recovery-list::-webkit-scrollbar-track{background:transparent}.muscle-recovery-list::-webkit-scrollbar-thumb{border-radius:8px;background:#3d3d3d}.muscle-calibration-controls{position:absolute;top:6px;right:6px;z-index:3;display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:0}.muscle-calibration-controls button,.muscle-calibration-controls select{min-height:28px;padding:4px 8px;border:1px solid #383838;border-radius:6px;background:#242424;color:#bbb;font:inherit;font-size:11px;cursor:pointer}.muscle-calibration-controls button:hover,.muscle-calibration-controls select:focus{border-color:#777;color:#fff}.muscle-calibration-controls small{width:100%;color:#777;font-size:10px}.muscle-recovery.is-calibrating .muscle-recovery-canvas{cursor:crosshair}.muscle-calibration-brush{display:inline-flex;align-items:center;gap:6px;color:#aaa;font-size:11px}.muscle-calibration-brush input{width:110px;accent-color:#6fa7e6}.muscle-brush-toggle{display:grid!important;place-items:center;width:32px!important;padding:4px!important}.muscle-recovery.is-calibrating{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:flex;box-sizing:border-box;padding:18px 24px;background:#111}.muscle-recovery.is-calibrating .muscle-calibration-controls{position:static;order:1;flex:none;padding:0 0 10px}.muscle-recovery.is-calibrating .muscle-recovery-canvas{order:2;min-height:0;height:auto;flex:1 1 auto}.muscle-recovery.is-calibrating .muscle-recovery-info{display:none}.muscle-calibration-controls button.is-active{border-color:#777;background:#3a3030;color:#fff}.muscle-calibration-toggle{display:grid;place-items:center;width:30px;padding:4px!important}.muscle-calibration-controls .muscle-calibration-toggle{border:0;background:transparent;color:#999}.muscle-calibration-controls .muscle-calibration-toggle:hover{border:0;background:transparent;color:#fff}.muscle-calibration-groups{display:flex;flex-wrap:wrap;gap:4px;max-width:520px}.muscle-calibration-groups button{font-size:10px}.muscle-calibration-add{display:grid;place-items:center;width:30px}.muscle-recovery.is-calibrating .muscle-calibration-controls{left:18px;right:18px;align-items:flex-start;justify-content:flex-start}.muscle-recovery.is-calibrating .muscle-calibration-groups{max-width:420px;max-height:96px;overflow:auto}@media(max-width:700px){.muscle-recovery.is-calibrating{padding:12px}.muscle-recovery.is-calibrating .muscle-calibration-controls{padding-bottom:6px}}@media(max-width:700px){.muscle-recovery.is-calibrating .muscle-calibration-controls{left:12px;right:12px}.muscle-recovery.is-calibrating .muscle-calibration-groups{max-height:120px}}@media(max-width:700px){.muscle-recovery.is-calibrating .muscle-calibration-controls{grid-template-columns:200px minmax(0,1fr);gap:10px}.muscle-recovery.is-calibrating .muscle-calibration-groups{max-height:calc(100vh - 24px)}}.workout-day-note>.workout-manual-backdrop .workout-manual-save:after{font-size:14px}.workout-day-note>.workout-manual-backdrop>.workout-manual-form>h2,.workout-day-note>.workout-manual-backdrop>.workout-manual-form>p:first-of-type{display:none}.workout-day-note>.workout-manual-backdrop .workout-manual-exercise{border-top:0}.workout-day-note>.workout-manual-backdrop .workout-manual-exercise:first-of-type{margin-top:0}.muscle-recovery.is-calibrating .muscle-calibration-controls{position:absolute;top:18px;bottom:18px;left:18px;right:18px;width:auto;display:grid;grid-template-columns:220px minmax(0,1fr);align-content:start;align-items:start;gap:14px;overflow:visible;padding:0;pointer-events:none}.muscle-recovery.is-calibrating .muscle-calibration-controls>*{pointer-events:auto}.muscle-recovery.is-calibrating .muscle-calibration-groups{grid-column:1;display:flex;flex-direction:column;flex-wrap:nowrap;width:100%;max-width:none;max-height:calc(100vh - 36px);overflow:auto;padding:5px;border:1px solid #383838;border-radius:8px;background:#242424;box-sizing:border-box;scrollbar-width:thin;scrollbar-color:#5a5a5a transparent}.muscle-recovery.is-calibrating .muscle-calibration-groups::-webkit-scrollbar{width:6px}.muscle-recovery.is-calibrating .muscle-calibration-groups::-webkit-scrollbar-track{background:transparent}.muscle-recovery.is-calibrating .muscle-calibration-groups::-webkit-scrollbar-thumb{border-radius:8px;background:#5a5a5a}.muscle-recovery.is-calibrating .muscle-calibration-groups button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:30px;padding:4px 8px;text-align:left;border:0;border-radius:4px;background:transparent;font-size:14px;line-height:1.2}.muscle-recovery.is-calibrating .muscle-calibration-groups button:hover{background:#303030}.muscle-recovery.is-calibrating .muscle-calibration-groups button.is-active{background:transparent;color:#fff}.muscle-recovery.is-calibrating .muscle-calibration-add{justify-content:center;width:30px}.muscle-recovery.is-calibrating .muscle-calibration-entry,.muscle-recovery.is-calibrating .muscle-calibration-tools{grid-column:2}.muscle-recovery.is-calibrating .muscle-calibration-entry{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;background:transparent;color:#999}.muscle-recovery.is-calibrating .muscle-calibration-entry:hover{background:transparent;color:#fff}.muscle-recovery.is-calibrating .muscle-calibration-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.muscle-recovery.is-calibrating .muscle-calibration-tools small{flex-basis:100%;font-size:12px}.muscle-recovery.is-calibrating .muscle-calibration-tools button,.muscle-recovery.is-calibrating .muscle-calibration-tools select{font-size:14px}.muscle-calibration-entry{border:0!important;background:transparent!important;color:#999!important;box-shadow:none!important}.muscle-calibration-entry:hover{background:transparent!important;color:#fff!important}.muscle-brush-cursor{position:absolute;z-index:5;box-sizing:border-box;transform:translate(-50%,-50%);border:1px solid #f0a14b;border-radius:50%;background:#e2a24f26;pointer-events:none}.muscle-eraser-toggle{display:grid;place-items:center;width:30px;padding:4px!important}.logs-page{width:min(980px,calc(100% - 48px));height:calc(100dvh - 115px);display:flex;flex-direction:column;gap:18px}.logs-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:18px;border-bottom:1px solid #2b2b2b}.logs-header h1{margin:0;font-size:28px}.logs-header p{margin:7px 0 0;color:#777;font-size:13px}.logs-header button{display:grid;place-items:center;width:38px;height:38px;border:1px solid #3a3a3a;border-radius:8px;background:#242424;color:#ccc;cursor:pointer}.logs-header button:hover{background:#303030;color:#fff}.logs-viewer{flex:1;min-height:0;margin:0;padding:16px;overflow:auto;border:1px solid #303030;border-radius:10px;background:#181818;color:#b7c5b9;font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;word-break:break-word;scrollbar-width:thin;scrollbar-color:#3d3d3d transparent}.logs-error{margin:0;color:#e88b8b;font-size:13px}@media(max-width:700px){.logs-page{width:calc(100% - 30px);height:calc(100dvh - 145px)}.logs-header h1{font-size:24px}.logs-viewer{font-size:11px;padding:12px}}.exercise-database-content{width:min(1100px,100%);max-width:100%;margin:0 auto;padding:28px 0 80px;color:#eee;box-sizing:border-box;overflow-x:hidden}.exercise-database-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;border-bottom:1px solid #292929;padding-bottom:22px;min-width:0}.exercise-database-heading h1{margin:0 0 7px;font-size:30px}.exercise-database-heading p{margin:0;color:#888}.exercise-primary-button,.exercise-save-button{display:flex;align-items:center;gap:8px;border:0;border-radius:9px;padding:12px 16px;background:#eee;color:#111;font-weight:700;cursor:pointer}.exercise-search{display:flex;align-items:center;gap:10px;margin:22px 0;padding:13px 15px;border-radius:9px;background:#1b1b1b;color:#888}.exercise-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#eee;font-size:16px}.exercise-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0}.exercise-card{min-width:0;overflow:hidden;padding:18px;border:1px solid #303030;border-radius:12px;background:#181818}.exercise-card-heading{display:flex;justify-content:space-between;gap:12px;min-width:0}.exercise-card h2{margin:0 0 6px;font-size:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.exercise-card-heading span,.exercise-grips{color:#888;font-size:13px}.exercise-card-actions{display:flex;gap:8px;flex-shrink:0}.exercise-card-actions button{border:0;background:none;color:#aaa;cursor:pointer}.exercise-targets{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0 12px}.exercise-targets span{padding:6px 8px;border-radius:6px;background:#252525;color:#ddd;font-size:12px}.exercise-targets b{color:#f2a34f}.exercise-sets{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px;color:#aaa;font-size:12px}.exercise-sets span{padding:5px 7px;background:#222;border-radius:5px}.exercise-error{margin-bottom:14px;color:#f08b8b}.exercise-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:grid;place-items:center;padding:24px;background:#0009}.exercise-form{position:relative;width:min(620px,100%);max-height:90vh;overflow:auto;padding:26px;border-radius:14px;background:#191919;border:1px solid #383838;box-sizing:border-box}.exercise-form h2{margin:0 0 22px}.exercise-form label{display:grid;gap:7px;margin:13px 0;color:#aaa;font-size:13px}.exercise-form input,.exercise-form select,.exercise-form textarea{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #3a3a3a;border-radius:7px;background:#232323;color:#eee;font:inherit}.exercise-form textarea{min-height:70px;resize:vertical}.exercise-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.exercise-form-section{margin-top:20px;padding-top:14px;border-top:1px solid #303030}.exercise-form-section h3{margin:0 0 12px;font-size:15px;color:#eee}.exercise-inline-row{display:flex;align-items:center;gap:8px;margin:8px 0}.exercise-inline-row>*:first-child{flex:1;min-width:0}.exercise-inline-row input{max-width:120px}.exercise-inline-row button,.exercise-form-close{border:0;background:transparent;color:#aaa;cursor:pointer}.exercise-add-line{display:flex;align-items:center;gap:5px;margin-top:10px;border:0;background:none;color:#7fb4e8;cursor:pointer}.exercise-save-button{margin-top:24px}.exercise-form-close{position:absolute;right:15px;top:15px}.exercise-form-close svg{width:20px}.page:has(.exercise-database-content){overflow-x:hidden!important}.page:has(.exercise-database-content){scrollbar-width:thin;scrollbar-color:#3d3d3d transparent}.page:has(.exercise-database-content)::-webkit-scrollbar{width:8px}.page:has(.exercise-database-content)::-webkit-scrollbar-track{background:transparent}.page:has(.exercise-database-content)::-webkit-scrollbar-thumb{border-radius:8px;background:#3d3d3d}.page:has(.exercise-database-content)::-webkit-scrollbar-thumb:hover{background:#555}@media(max-width:700px){.exercise-database-content{padding:18px 16px 100px}.exercise-database-heading{align-items:flex-start;flex-direction:column}.exercise-grid,.exercise-form-row{grid-template-columns:1fr}.exercise-card h2{font-size:17px}}.exercise-card-title{min-width:0}.exercise-card h2{position:relative;cursor:default}.exercise-card h2[data-tooltip]:after{content:attr(data-tooltip);position:absolute;z-index:20;left:0;top:calc(100% + 8px);width:max-content;max-width:min(360px,calc(100vw - 32px));padding:8px 10px;border:1px solid #454545;border-radius:7px;background:#292929;color:#eee;font-size:13px;font-weight:400;line-height:1.3;white-space:normal;opacity:0;pointer-events:none;transform:translateY(-3px);transition:opacity .12s ease,transform .12s ease;box-shadow:0 8px 22px #0008}.exercise-card h2[data-tooltip]:hover:after{opacity:1;transform:translateY(0)}.exercise-card{overflow:visible}.exercise-database-content,.exercise-form{scrollbar-width:thin;scrollbar-color:#3d3d3d transparent}.exercise-database-content::-webkit-scrollbar,.exercise-form::-webkit-scrollbar{width:7px}.exercise-database-content::-webkit-scrollbar-track,.exercise-form::-webkit-scrollbar-track{background:transparent}.exercise-database-content::-webkit-scrollbar-thumb,.exercise-form::-webkit-scrollbar-thumb{border-radius:8px;background:#3d3d3d}.exercise-database-content::-webkit-scrollbar-thumb:hover,.exercise-form::-webkit-scrollbar-thumb:hover{background:#555}.exercise-card{padding:14px}.exercise-card h2{font-size:18px}.exercise-targets{gap:4px;margin:12px 0 9px}.exercise-targets span{padding:5px 7px;font-size:11px}.exercise-grips{font-size:12px}.exercise-sets{gap:4px;margin-top:9px;font-size:11px}.exercise-sets span{padding:4px 6px}.exercise-insights{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:11px 0;padding:8px 0;border-top:1px solid #292929;border-bottom:1px solid #292929}.exercise-insights.is-loading{display:block;color:#777;font-size:11px}.exercise-insight{display:flex;flex-direction:column;gap:3px;min-width:0}.exercise-insight+.exercise-insight{padding-left:8px;border-left:1px solid #2d2d2d}.exercise-insight span{color:#828282;font-size:10px}.exercise-insight b{color:#eee;font-size:13px;font-weight:600;white-space:nowrap}.exercise-insight small{color:#999;font-size:10px;line-height:1.25;overflow-wrap:anywhere}.exercise-insight-recovery b{color:#dda46b}.exercise-recovery-track{height:3px;margin-top:2px;border-radius:4px;background:#383838;overflow:hidden}.exercise-recovery-track i{display:block;height:100%;border-radius:4px;background:#dda46b}.exercise-analytics{margin-top:10px;border-top:1px solid #292929}.exercise-analytics summary{padding:9px 0 5px;color:#aaa;font-size:11px;cursor:pointer;list-style:none}.exercise-analytics summary::-webkit-details-marker{display:none}.exercise-analytics summary:after{content:"⌄";float:right;color:#777;font-size:14px;line-height:10px}.exercise-analytics[open] summary:after{content:"⌃"}.exercise-analytics-chart{padding:2px 0 0}.exercise-chart-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#888;font-size:10px}.exercise-chart-meta b{color:#aaa;font-size:11px}.exercise-chart-meta b.is-positive{color:#8ec7a1}.exercise-chart-meta b.is-negative{color:#d99090}.exercise-analytics svg{display:block;width:100%;height:auto;margin-top:3px;overflow:visible}.exercise-chart-axis{stroke:#363636;stroke-width:1}.exercise-chart-line{fill:none;stroke:#7fb4e8;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.exercise-chart-point{fill:#7fb4e8;stroke:#181818;stroke-width:1.5}.exercise-analytics-empty{padding:10px 0 4px;color:#777;font-size:10px}.exercise-analytics-note{margin:3px 0 0;color:#777;font-size:10px}.exercise-form-analytics{margin:18px 0 4px;padding:12px 0;border-top:1px solid #303030;border-bottom:1px solid #303030}.exercise-form-analytics-title{margin-bottom:8px;color:#fff;font-size:14px;font-weight:600}.exercise-form-analytics .exercise-analytics-chart{max-width:480px}.exercise-form-analytics .exercise-analytics-empty{padding:4px 0;color:#fff}.exercise-form-analytics .exercise-chart-meta,.exercise-form-analytics .exercise-chart-meta b{color:#fff}.exercise-form-analytics .exercise-chart-label{fill:#fff}.exercise-form-analytics .exercise-analytics-note{color:#fff}@media(max-width:700px){.exercise-insights{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:8px}.exercise-insight:nth-child(3){padding-left:0;border-left:0}.exercise-insight:nth-child(3),.exercise-insight:nth-child(4){padding-top:6px;border-top:1px solid #2d2d2d}}@media(max-width:420px){.exercise-insight b{font-size:12px}.exercise-insight+.exercise-insight{padding-left:5px}}.exercise-chart-point-hit{cursor:pointer}.exercise-chart-hit-area{fill:transparent;pointer-events:all}.exercise-chart-point{pointer-events:none}.database-content-shell{width:100%;min-width:0}.database-content-shell-workouts{width:min(1100px,100%);margin:0 auto}.database-view-button{flex:0 0 auto;padding:9px 15px;border:1px solid #3a3a3a;border-radius:8px;background:#1b1b1b;color:#ccc;font:inherit;font-size:13px;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease}.database-view-button:hover{background:#292929;border-color:#666;color:#fff}.database-content-shell>.database-builder-layout{margin-top:0}.database-content-shell-workouts .exercise-database-content{padding-top:24px}.database-food-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;width:min(620px,calc(100% - 48px));margin:24px auto 0;padding-bottom:18px;border-bottom:1px solid #292929}.database-food-heading h1{margin:0 0 6px;font-size:30px;font-weight:600;color:#eee}.database-food-heading p{margin:0;color:#888;font-size:13px}.exercise-heading-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}@media(max-width:700px){.database-content-shell-workouts .exercise-database-content{padding-top:18px}.database-food-heading{width:calc(100% - 32px);margin-top:18px;padding-bottom:14px;align-items:flex-start}.database-food-heading h1{font-size:24px}.database-food-heading .database-view-button{padding:8px 11px}.exercise-heading-actions{width:100%;flex-wrap:wrap}.exercise-heading-actions .database-view-button{order:1}.exercise-heading-actions .exercise-primary-button{order:2}}.exercise-search-add{display:grid;place-items:center;flex:0 0 auto;width:28px;height:28px;padding:0;border:0;background:transparent;color:#aaa;cursor:pointer}.exercise-search-add:hover{color:#fff}.exercise-filter-divider{height:1px;margin:3px 4px 5px;background:#444}.exercise-filter-all{font-weight:600}.exercise-filter-menu,.exercise-sort-menu{scrollbar-width:thin;scrollbar-color:#555 transparent}.exercise-filter-menu::-webkit-scrollbar,.exercise-sort-menu::-webkit-scrollbar{width:5px}.exercise-filter-menu::-webkit-scrollbar-track,.exercise-sort-menu::-webkit-scrollbar-track{background:transparent}.exercise-filter-menu::-webkit-scrollbar-thumb,.exercise-sort-menu::-webkit-scrollbar-thumb{border-radius:5px;background:#555}.exercise-form-section.is-collapsed>:not(h3){display:none}.exercise-section-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;-webkit-user-select:none;user-select:none}.exercise-section-toggle:after{content:"";width:8px;height:8px;margin-right:3px;border-right:2px solid #888;border-bottom:2px solid #888;transform:translateY(-2px) rotate(45deg);transition:transform .15s ease,border-color .15s ease}.exercise-section-toggle:hover:after{border-color:#fff}.exercise-form-section.is-collapsed .exercise-section-toggle:after{transform:translateY(1px) rotate(-45deg)}.exercise-section-toggle:focus-visible{outline:1px solid #7fb4e8;outline-offset:4px;border-radius:3px}.exercise-search{position:relative}.exercise-search-actions{display:flex;align-items:center;gap:2px;flex:0 0 auto}.exercise-search-icon{position:relative;display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;background:transparent;color:#aaa;cursor:pointer}.exercise-search-icon:hover,.exercise-search-icon.is-active{color:#fff}.exercise-search-icon i{position:absolute;top:3px;right:3px;width:5px;height:5px;border-radius:50%;background:#7fb4e8}.exercise-filter-menu,.exercise-sort-menu{position:absolute;top:48px;right:32px;z-index:100021;display:grid;gap:4px;min-width:230px;max-height:360px;overflow:auto;padding:10px;border:1px solid #444;border-radius:9px;background:#242424;box-shadow:0 12px 30px #0008}.exercise-filter-menu label{display:flex;align-items:center;gap:8px;padding:5px 4px;color:#ddd;font-size:12px;cursor:pointer}.exercise-filter-menu label:hover{background:#303030}.exercise-filter-menu input{width:14px;height:14px;margin:0;accent-color:#7fb4e8}.exercise-menu-title{padding:2px 4px 6px;color:#888;font-size:11px}.exercise-menu-clear{padding:7px 4px;border:0;border-top:1px solid #3a3a3a;background:transparent;color:#7fb4e8;text-align:left;font:inherit;font-size:12px;cursor:pointer}.exercise-menu-clear:hover{color:#fff}.exercise-sort-menu{right:30px;min-width:245px}.exercise-sort-menu button{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 7px;border:0;border-radius:5px;background:transparent;color:#ddd;text-align:left;font:inherit;font-size:12px;cursor:pointer}.exercise-sort-menu button:hover,.exercise-sort-menu button.is-active{background:#343434;color:#fff}.exercise-sort-menu small{color:#888;font-size:10px;white-space:nowrap}.auth-page{min-height:100dvh;display:grid;place-items:center;padding:24px;background:#35363a;color:#172033}.auth-card{width:min(360px,100%);display:grid;gap:21px;padding:32px;border:1px solid #e3e4e7;border-radius:18px;background:#fff;box-shadow:0 24px 80px #1118}.auth-card h1{margin:0;font-size:25px;font-weight:600;letter-spacing:-.6px;color:#172033}.auth-card p{margin:0;color:#687184;font-size:13px;line-height:1.5}.auth-card label{display:grid;gap:8px;color:#394357;font-size:13px}.auth-card input:not([type=checkbox]){width:100%;padding:12px;border:1px solid #cfd4dc;border-radius:8px;background:#fff;color:#172033;font:inherit;outline:none;transition:border-color .15s,box-shadow .15s}.auth-card input:focus{border-color:#163150;box-shadow:0 0 0 3px #16315020}.auth-card .auth-remember{display:flex;align-items:center;gap:9px;font-size:12px;cursor:pointer}.auth-remember input{accent-color:#163150;width:16px;height:16px;margin:0}.auth-card button{padding:12px;border:1px solid #163150;border-radius:8px;background:#163150;color:#fff;font:inherit;font-weight:600;cursor:pointer;box-shadow:0 6px 20px #16315030}.auth-card button:hover:not(:disabled){background:#234667}.auth-card button:disabled{opacity:.6;cursor:wait}.auth-card .auth-error{color:#b43d4a}.auth-account{position:fixed;bottom:12px;left:16px;z-index:80;display:flex;gap:8px;align-items:center}.auth-account button{border:1px solid #333;border-radius:6px;background:#181818;color:#aaa;padding:6px 10px;font:inherit;font-size:11px;cursor:pointer}.auth-account button:hover{color:#eee;border-color:#666}.auth-account span{max-width:230px;color:#f19494;font-size:11px}@media(max-width:700px){.auth-card{padding:25px}.auth-account{left:auto;right:12px;bottom:calc(90px + env(safe-area-inset-bottom))}}*{box-sizing:border-box}body{margin:0;background:#111;color:#e8e8e8;font-family:Inter,system-ui,-apple-system,sans-serif;font-size:14px}.page{max-width:760px;margin:0 auto;padding:34px 24px 70px}.page-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:22px;border-bottom:1px solid #292929}.page-header h1{font-size:20px;font-weight:600;margin:0}.page-header input,.entry-form input,.entry-form select{font:inherit;color:#ddd;background:#191919;border:1px solid #363636;border-radius:7px;padding:9px 10px}.page-header input{font-size:12px}.nutrition-page{width:min(760px,calc(100% - 48px))}.daily-card{margin:26px 0 36px;padding:23px 24px 18px;background:#181818;border:1px solid #2b2b2b;border-radius:12px}.daily-title{display:flex;justify-content:space-between;align-items:center}.eyebrow{font-size:9px;font-weight:600;letter-spacing:1.5px;color:#858585}.daily-title h2{font-size:15px;font-weight:500;text-transform:capitalize;margin:6px 0 0}.add-button,.save-button{border:0;border-radius:7px;background:#dedede;color:#171717;font-weight:600;font-size:12px;padding:9px 13px;display:flex;align-items:center;gap:6px;cursor:pointer}.add-button:hover,.save-button:hover{background:#fff}.calories{margin-top:25px}.calories strong{font-size:32px;letter-spacing:-1px;font-weight:600}.calories span{font-size:12px;color:#888}.calorie-track{height:4px;background:#303030;border-radius:10px;margin-top:12px;overflow:hidden}.calorie-track span{display:block;height:100%;background:#bdbdbd;border-radius:10px;transition:width .25s}.macros{display:grid;grid-template-columns:repeat(3,1fr);margin-top:21px;border-top:1px solid #2c2c2c;padding-top:16px}.macro{display:grid;gap:7px}.macro+.macro{border-left:1px solid #2b2b2b;padding-left:20px}.macro>span{font-size:11px;color:#858585}.macro b{font-size:15px;font-weight:500}.macro small{font-size:10px;color:#888;font-weight:400}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.section-heading h2{font-size:14px;font-weight:600;margin:0}.section-heading>span{font-size:11px;color:#777}.meal{padding:17px 0;border-bottom:1px solid #282828}.meal-heading{display:flex;justify-content:space-between;align-items:center}.meal-heading h3{font-size:13px;font-weight:500;margin:0}.meal-heading>span{font-size:11px;color:#888}.empty-meal{font-size:11px;color:#686868;margin:11px 0 0}.food-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0 0}.food-row>div{display:grid;gap:5px}.food-row b{font-size:12px;font-weight:500}.food-row span{font-size:10px;color:#858585}.delete-button,.close-button{display:grid;place-items:center;border:0;background:transparent;color:#777;cursor:pointer}.delete-button:hover,.close-button:hover{color:#eee}.error-message{position:fixed;bottom:22px;left:50%;transform:translate(-50%);display:flex;gap:12px;align-items:center;background:#292929;border:1px solid #555;border-radius:8px;padding:10px 13px;font-size:12px}.error-message button{border:0;background:transparent;color:#aaa;cursor:pointer;display:grid;place-items:center}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#000a;display:grid;place-items:center;padding:16px}.entry-form{width:min(420px,100%);background:#181818;border:1px solid #343434;border-radius:12px;padding:20px;display:grid;gap:14px;box-shadow:0 20px 80px #0008}.form-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:2px}.form-title h2{font-size:16px;font-weight:600;margin:0}.entry-form label{display:grid;gap:6px;color:#aaa;font-size:11px}.entry-form input,.entry-form select{width:100%;font-size:12px;outline:none}.entry-form input:focus,.entry-form select:focus{border-color:#777}.form-macros{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.form-macros label{font-size:10px}.save-button{justify-content:center;margin-top:3px;padding:11px}.save-button:disabled{opacity:.6;cursor:wait}@media(max-width:520px){.page{padding:22px 15px 50px}.daily-card{padding:19px 16px}.macro+.macro{padding-left:12px}.page-header input{max-width:145px}.nutrition-page{width:100%}}.meal>.food-row{margin-left:10px;padding-left:10px;border-left:1px solid #292929}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:270px;background:#161616;border-right:1px solid #292929;padding:25px 18px;z-index:2}.side-brand{display:flex;align-items:center;gap:11px;color:#eee;font-size:13px;font-weight:700;letter-spacing:2px;padding:0 10px 36px}.side-brand-icon{width:32px;height:32px;border:1px solid #555;border-radius:10px;background:#292929;color:#f4f4f4;display:grid;place-items:center}.side-label{font-size:9px;letter-spacing:1.4px;color:#707070;padding:0 12px 9px}.side-item{height:38px;display:flex;align-items:center;gap:10px;padding:0 12px;border-radius:7px;color:#909090;font-size:12px;margin-bottom:3px}.side-item.active{background:#292929;color:#eee}.page{width:calc(100% - 270px);min-height:100vh;margin-left:270px;overflow:auto}.page-header,.daily-card,.meal-list{width:min(760px,calc(100% - 48px));margin-left:auto;margin-right:auto}.daily-card{margin-top:26px;margin-bottom:36px}@media(max-width:520px){.sidebar{width:210px}.page{width:calc(100% - 210px);margin-left:210px}.page-header,.daily-card,.meal-list{width:calc(100% - 30px)}}.page{display:flex;flex-direction:column;align-items:center;width:min(760px,calc(100vw - 300px));margin-left:max(270px,calc(270px + (100vw - 1030px)/2));margin-right:0}.page-header h1{font-size:24px}.daily-title h2{font-size:17px}.calories strong{font-size:37px}.section-heading h2{font-size:16px}.meal-heading h3{font-size:15px}.food-row b{font-size:14px}.food-row span{font-size:11px}.empty-meal{font-size:12px}.side-item{font-size:14px}.side-label{font-size:10px}.side-brand{font-size:14px;border-bottom:1px solid #292929;margin-bottom:24px}.sidebar-navigation{display:flex;flex:1;min-height:0;flex-direction:column}.sidebar-mark{position:relative;flex:none;width:100%;margin-top:auto;margin-bottom:10px}.sidebar .sidebar-mark{display:none!important}.sidebar-mark-image{display:block;width:100%;height:auto;border-radius:7px;object-fit:contain}.sidebar-mark-close{position:absolute;top:4px;right:4px;z-index:1;display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;background:transparent;color:#000;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .12s ease}.sidebar-mark:hover .sidebar-mark-close,.sidebar-mark-close:hover{opacity:1;pointer-events:auto;background:transparent;color:#000}.sidebar-tab-visibility{display:grid;place-items:center;flex:none;margin-left:auto;padding:4px;border:0;border-radius:6px;color:#aaa;cursor:pointer}.sidebar-tab-visibility:hover{color:#fff;background:#ffffff14}.side-item.is-tab-hidden{color:#777;opacity:.65}.side-item.is-tab-hidden .sidebar-tab-visibility{color:#777}.profile-loading{display:grid;place-items:center;min-height:100vh;background:#101010}.profile-loading .loading-dots{margin:0}.mobile-bottom-nav,.mobile-sidebar-scrim,.mobile-only-mark{display:none}@media(max-width:700px){.mobile-only-mark{display:block}.sidebar{width:270px;box-sizing:border-box;transform:translate(-100%);transition:transform .22s ease;z-index:20;padding-bottom:92px}.sidebar.is-mobile-open{transform:translate(0)}.mobile-sidebar-scrim{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:19;padding:0;border:0;background:#00000080;cursor:pointer}.mobile-bottom-nav{position:fixed;left:16px;right:16px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:50;display:flex;align-items:center;justify-content:space-around;height:64px;padding:0 8px;border:1px solid #2b2b2b;border-radius:27px;background:#1c1b17;box-shadow:0 12px 30px #00000057}.mobile-bottom-nav button{display:grid;place-items:center;width:48px;height:48px;margin:auto;padding:0;border:0;border-radius:16px;background:transparent;color:#aaa;cursor:pointer}.mobile-bottom-nav button:hover,.mobile-bottom-nav button.active{color:#eee;background:#292824}.side-item{position:relative}.agent-unread-badge{position:absolute;top:1px;right:3px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#e5484d;color:#fff;font-size:10px;font-weight:700;line-height:1;box-sizing:border-box}.mobile-bottom-nav button{position:relative}.mobile-bottom-nav .mobile-menu-toggle{color:#d1d0cb}.page{width:100%;min-height:100vh;margin-left:0;padding:22px 16px 102px;box-sizing:border-box;overflow-x:hidden}.page-header,.daily-card,.meal-list,.products-content{width:100%;max-width:none}.page-header{padding-top:0}.sidebar-profile-wrap{display:none}.side-brand{margin-left:0;margin-right:0}.chat-workspace,.chat-sessions-sidebar{min-width:0}}.sidebar{width:265px}.page{width:min(760px,calc(100vw - 295px));margin-left:max(265px,calc(265px + (100vw - 1025px)/2));padding-top:34px;padding-bottom:70px}.side-brand{padding-bottom:0;margin-bottom:4px;margin-left:-18px;margin-right:-18px;padding-left:28px;padding-right:28px;border-bottom:0;position:relative}.side-brand>*{position:relative;top:-6px}.side-brand:after{content:"";position:absolute;left:0;right:0;bottom:8px;border-bottom:1px solid #292929}.side-brand-icon{width:44px;height:44px;border:0;background:transparent}.side-brand-icon img{width:42px;height:42px;display:block;object-fit:contain}.page-header{padding-top:0;padding-bottom:22px}.daily-card{margin-top:26px}.page{display:flex;flex-direction:column;align-items:center}.page-header,.daily-card,.meal-list{flex:none}.side-item{border:0;background:transparent;width:100%;text-align:left;cursor:pointer;font-family:inherit}.products-content{width:min(760px,calc(100% - 48px));margin:28px auto}.products-toolbar{display:flex;gap:12px;justify-content:space-between;margin-bottom:24px}.search-field{display:flex;align-items:center;gap:9px;flex:1;max-width:420px;background:#181818;border:1px solid #363636;border-radius:7px;padding:0 11px;color:#888}.search-field input{width:100%;border:0;outline:0;background:transparent;color:#eee;padding:11px 0;font:inherit}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-card{display:flex;align-items:center;gap:12px;padding:15px;background:#181818;border:1px solid #2b2b2b;border-radius:9px}.product-icon{width:30px;height:30px;border-radius:8px;background:#292929;color:#aaa;display:grid;place-items:center;font-size:12px}.product-card div:last-child{display:grid;gap:4px}.product-card b{font-size:14px;font-weight:500}.product-card span{font-size:11px;color:#777}.page-footer{width:min(760px,calc(100% - 48px));margin:28px auto 0;padding:16px 0;border-top:1px solid #292929;color:#707070;font-size:11px;text-align:center}@media(max-width:520px){.sidebar{width:210px}.page{width:calc(100vw - 210px);margin-left:210px;padding:22px 15px 50px}.page-header,.daily-card,.meal-list,.products-content{width:calc(100% - 30px)}.product-grid{grid-template-columns:1fr}.products-toolbar{display:grid}}.side-brand{align-items:center;justify-content:center;min-height:36px}.side-brand>span{font-family:Trebuchet MS,Arial,sans-serif;font-size:23px;font-weight:600;letter-spacing:9px}.side-brand-icon{width:36px;height:36px}.side-brand-icon img{width:32px;height:32px}.side-brand>*{top:-5px}.sidebar-header{position:relative;isolation:isolate;overflow:hidden;margin:-25px -18px 12px;padding:20px 18px 0;background:#c89dcf;border:0;border-bottom:1px solid #292929;width:calc(100% + 36px);color:inherit;cursor:pointer}.sidebar-header .side-brand:after{display:none}.sidebar-header:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:url(/walden-denis.png) center/86% auto no-repeat #c89dcf;filter:grayscale(1);z-index:0}.sidebar-header .side-brand{position:relative;z-index:1;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.18)}.sidebar-header:disabled{cursor:default}.menu-image-icon{width:22px;height:22px;object-fit:contain;mix-blend-mode:screen}.side-item>svg{width:22px;height:22px;flex:none}.side-item:hover{background:#ffffff17;color:#fff}.side-item.active{background:#ffffff21;color:#fff}.side-item{font-size:15px}.empty-content{flex:1;width:100%;min-height:320px}.sidebar-profile-wrap{position:relative;margin-top:auto;margin-left:-18px;margin-right:-18px;padding:14px 18px 0;border-top:1px solid rgba(255,255,255,.1)}.sidebar-profile{display:flex;align-items:center;gap:10px;width:100%;padding:0;border:0;background:transparent;color:#fff;cursor:pointer;text-align:left}.profile-avatar{display:grid;width:32px;height:32px;place-items:center;border-radius:50%;background:#505050;font-size:14px;font-weight:600}.profile-copy{display:grid;min-width:0;gap:2px}.profile-copy b,.profile-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-copy b{font-size:16px;font-weight:500}.profile-copy small{color:#ffffff85;font-size:11px}.profile-more{margin-left:auto;color:#999;letter-spacing:2px}.profile-menu{position:absolute;right:18px;bottom:52px;z-index:5;display:grid;min-width:190px;overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:#181818;box-shadow:0 16px 40px #0006}.profile-menu button{padding:11px 13px;border:0;background:transparent;color:#eee;text-align:left;font:inherit;cursor:pointer}.profile-menu button:hover{background:#ffffff17}.light-theme .sidebar{background:#f3f3f3;color:#222;border-color:#ddd}.light-theme .side-item{color:#555}.light-theme .side-item:hover,.light-theme .side-item.active{background:#e3e3e3;color:#111}.light-theme .sidebar-header{background:#eee;color:#222}.light-theme .profile-menu{background:#fff;border-color:#ddd}.light-theme .profile-menu button{color:#222}.sidebar{display:flex;flex-direction:column}.sidebar-header{padding-top:16px}.sidebar>.side-item:nth-of-type(4){transform:translateY(-4px)}.settings-content{padding-top:0}.settings-heading{transform:translateY(-10px);margin-bottom:-10px}.settings-heading{padding-bottom:16px}.page{max-width:900px;width:min(900px,calc(100vw - 295px))}.settings-content{width:min(900px,calc(100% - 48px))}.settings-heading{padding-bottom:8px}.page{margin-left:max(265px,calc(265px + (100vw - 1165px)/2));margin-right:auto}.settings-heading{padding-bottom:0}.settings-heading{transform:translateY(-18px);margin-bottom:-18px}.settings-heading{position:relative;border-bottom:0}.settings-heading:after{content:"";position:absolute;left:0;right:0;bottom:16px;border-bottom:1px solid #292929}.settings-heading{border-bottom:0}.settings-heading{border-bottom:1px solid #292929}.settings-heading:after{display:none}.settings-heading{border-bottom:0;position:relative}.settings-heading:after{content:"";display:block;position:absolute;left:0;right:0;bottom:8px;border-bottom:1px solid #292929}.light-theme .settings-heading:after{border-color:#ddd}.settings-heading{border-bottom:0!important;background:linear-gradient(#292929,#292929) left bottom 8px/100% 1px no-repeat}.settings-heading:after{display:none!important}.light-theme .settings-heading{background-image:linear-gradient(#ddd,#ddd)}.profile-settings-group h2{font-size:18px!important;color:#aaa}.profile-photo-picker{position:relative;flex:none}.profile-settings-photo{display:grid;place-items:center;width:64px;height:64px;padding:0;overflow:hidden;border:0;border-radius:50%;background:#505050;color:#fff;font:inherit;font-size:23px;font-weight:600;cursor:pointer}.profile-settings-photo:hover{filter:brightness(1.15)}.profile-photo-picker>input{display:none}.photo-menu{position:absolute;top:72px;left:0;z-index:4;display:grid;width:210px;overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:9px;background:#181818;box-shadow:0 16px 40px #0006}.photo-menu button{padding:11px 13px;border:0;background:transparent;color:#eee;text-align:left;font:inherit;font-size:12px;cursor:pointer}.photo-menu button:hover{background:#ffffff17}.light-theme .photo-menu{border-color:#ddd;background:#fff}.light-theme .photo-menu button{color:#222}.light-theme .photo-menu button:hover{background:#f0f0f0}.profile-settings-card{position:relative;overflow:visible;z-index:6}.photo-menu{z-index:1000}.profile-settings-card,.settings-content{width:100%}@media(max-width:520px){.page{width:calc(100vw - 210px);margin-left:210px}}.profile-copy b{font-size:16px}.settings-content{width:min(760px,calc(100% - 48px));padding:12px 0 60px}.settings-heading{padding:0 0 26px;border-bottom:1px solid #292929}.settings-heading h1{margin:7px 0 5px;font-size:25px;font-weight:600;letter-spacing:-.4px}.settings-heading p{margin:0;color:#858585;font-size:13px}.settings-group{margin-top:28px}.settings-group h2{margin:0 0 10px;font-size:12px;font-weight:600;color:#929292}.settings-card{overflow:hidden;border:1px solid #2b2b2b;border-radius:10px;background:#181818}.settings-row{display:flex;align-items:center;gap:12px;min-height:68px;padding:12px 15px;border:0;border-bottom:1px solid #292929;color:#eee;background:transparent;font:inherit;text-align:left}.settings-row:last-child{border-bottom:0}.settings-icon{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:8px;background:#292929;color:#bdbdbd}.settings-row-copy{display:grid;gap:4px;min-width:0;flex:1}.settings-row-copy b{font-size:13px;font-weight:500}.settings-row-copy small{font-size:11px;color:#7f7f7f}.goal-input,.settings-row select{width:78px;padding:7px 8px;border:1px solid #3a3a3a;border-radius:6px;background:#202020;color:#eee;font:inherit;font-size:12px;outline:0}.settings-row select{width:120px}.settings-unit{margin-left:-7px;color:#858585;font-size:11px}.settings-toggle-row{position:relative;cursor:pointer}.toggle-input{position:absolute;opacity:0;pointer-events:none}.toggle{width:36px;height:20px;flex:none;border-radius:20px;background:#3b3b3b;transition:background .2s;position:relative}.toggle:after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#aaa;transition:transform .2s,background .2s}.toggle-input:checked+.toggle{background:#aaa}.toggle-input:checked+.toggle:after{transform:translate(16px);background:#222}.settings-button{width:100%;cursor:pointer}.settings-button:hover{background:#ffffff0a}.light-theme .settings-heading{border-color:#ddd}.light-theme .settings-group h2{color:#777}.light-theme .settings-card{background:#fff;border-color:#ddd}.light-theme .settings-row{border-color:#e3e3e3;color:#222}.light-theme .settings-icon{background:#eee;color:#555}.light-theme .goal-input,.light-theme .settings-row select{background:#f5f5f5;border-color:#ccc;color:#222}.light-theme .settings-button:hover{background:#f5f5f5}@media(max-width:520px){.settings-content{width:calc(100% - 30px)}.settings-row{gap:9px;padding-left:11px;padding-right:11px}.settings-row-copy small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}.profile-settings-card{display:flex;align-items:center;gap:18px;padding:18px}.profile-settings-photo{display:grid;place-items:center;width:64px;height:64px;flex:none;overflow:hidden;border-radius:50%;background:#505050;color:#fff;font-size:23px;font-weight:600}.profile-settings-photo img{width:100%;height:100%;object-fit:cover}.profile-settings-fields{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:12px;flex:1}.profile-settings-fields label{display:grid;gap:6px;color:#999;font-size:11px}.profile-settings-fields input:not([type=file]){width:100%;padding:9px 10px;border:1px solid #3a3a3a;border-radius:6px;background:#202020;color:#eee;font:inherit;font-size:12px;outline:0}.photo-upload input{display:none}.photo-upload span{display:block;padding:9px 10px;border:1px solid #3a3a3a;border-radius:6px;background:#202020;color:#eee;font-size:12px;cursor:pointer}.photo-upload span:hover{background:#292929}.profile-avatar{overflow:hidden}.profile-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.light-theme .profile-settings-fields input:not([type=file]),.light-theme .photo-upload span{background:#f5f5f5;border-color:#ccc;color:#222}@media(max-width:520px){.profile-settings-card{align-items:flex-start}.profile-settings-fields{grid-template-columns:1fr}}.settings-content{width:100%!important}.saved-notice{position:fixed;top:20px;right:22px;z-index:3000;background:#fff;color:#171717;border:1px solid #dedede;border-radius:8px;padding:10px 14px;font-size:12px;font-weight:600;box-shadow:0 8px 24px #0000002e;animation:saved-notice-in .24s cubic-bezier(.22,1,.36,1) both}@keyframes saved-notice-in{0%{opacity:0;transform:translate(28px)}to{opacity:1;transform:translate(0)}}.profile-settings-card{width:100%!important}.profile-settings-card{min-height:0;align-items:flex-start}.profile-settings-card{overflow:visible!important;position:relative;z-index:6}.photo-editor-actions button{display:grid;place-items:center}.photo-editor-actions .crop-active{background:#ddd;color:#171717;border-color:#ddd}.photo-editor-actions button:nth-child(2){background:#242424;color:#eee;border-color:#3b3b3b}.photo-editor-actions button:nth-child(2).crop-active{background:#ddd;color:#171717;border-color:#ddd}.photo-editor-actions button:last-child{font-size:22px;line-height:1}.photo-zoom-control{display:grid;gap:6px;margin-top:14px;color:#999;font-size:11px}.photo-zoom-control input{width:100%;accent-color:#ddd;cursor:pointer}.photo-editor-preview.is-cropping{cursor:grab}.photo-editor-preview.is-cropping:active{cursor:grabbing}.photo-editor-preview{position:relative}.photo-editor-preview:before{content:"";position:absolute;z-index:2;left:1%;top:1%;width:98%;aspect-ratio:1;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 999px #00000094;pointer-events:none}.photo-editor-preview:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;background:#0000001f;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);-webkit-mask:radial-gradient(circle at center,transparent 0 50%,#000 50.1%);mask:radial-gradient(circle at center,transparent 0 50%,#000 50.1%);pointer-events:none}.photo-editor-preview:after{display:block;content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;background:#00000014;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);-webkit-mask-image:radial-gradient(circle at center,transparent 0 49%,#000 49.5%);mask-image:radial-gradient(circle at center,transparent 0 49%,#000 49.5%);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;pointer-events:none}.photo-editor-preview:after{display:none}.photo-editor-preview>img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}.photo-editor-preview>.photo-editor-blur{z-index:1;filter:blur(10px);-webkit-mask-image:radial-gradient(circle at center,transparent 0 49%,#000 49.5%);mask-image:radial-gradient(circle at center,transparent 0 49%,#000 49.5%);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.photo-editor-preview>.photo-editor-sharp{z-index:2;-webkit-mask-image:radial-gradient(circle at center,#000 0 48%,transparent 48.5%);mask-image:radial-gradient(circle at center,#000 0 48%,transparent 48.5%);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.photo-editor-preview>.photo-editor-blur{z-index:2;filter:blur(5px);-webkit-mask-image:radial-gradient(circle at center,transparent 0 49%,#000 49.5%);mask-image:radial-gradient(circle at center,transparent 0 49%,#000 49.5%);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.photo-editor-preview>.photo-editor-sharp{z-index:1;-webkit-mask-image:none;mask-image:none;clip-path:none}.photo-editor-preview:before{z-index:3;box-shadow:none}.photo-editor-preview>.photo-editor-blur{filter:blur(5px)}.photo-menu button:disabled{opacity:.45;cursor:not-allowed}.profile-settings-fields{flex:0 1 300px}.profile-settings-fields select{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;background-image:none!important;padding-right:8px!important}.settings-select-wrap{position:relative;display:block;width:100%}.settings-select-wrap select{-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important;width:100%!important;height:32px;padding:5px 28px 5px 8px!important;border:1px solid #363636!important;border-radius:7px!important;background:#202020!important;color:#eee!important;font:inherit;font-size:12px;cursor:pointer}.settings-select-wrap svg{position:absolute;top:50%;right:8px;transform:translateY(-50%);color:#999;pointer-events:none}.settings-select-wrap select:focus{border-color:#777!important;outline:0}.light-theme .settings-select-wrap select{border-color:#ccc!important;background:#f5f5f5!important;color:#222!important}.light-theme .settings-select-wrap svg{color:#666}.macro-mode-field{min-width:0}.macro-mode-field .settings-select-wrap select{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.macro-settings-card{display:grid;gap:14px;padding:14px;max-width:500px}.macro-settings-row{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:end;gap:8px;min-width:0}.macro-settings-row>*{min-width:0}.macro-mode-field,.macro-percent-grid label{display:grid;gap:6px;color:#999;font-size:11px;min-width:0}.macro-mode-field select,.macro-percent-grid input{width:100%;box-sizing:border-box;padding:8px;border:1px solid #3a3a3a;border-radius:6px;background:#202020;color:#eee;font:inherit;font-size:12px;outline:0}.macro-percent-grid input{height:32px}.macro-mode-field .settings-select-wrap,.macro-mode-field .settings-select-wrap select{min-width:0;width:100%!important;box-sizing:border-box}.macro-percent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;min-width:0}.macro-percent-grid input:disabled{opacity:.55;cursor:not-allowed}.light-theme .macro-mode-field select,.light-theme .macro-percent-grid input{background:#f5f5f5;border-color:#ccc;color:#222}@media(max-width:620px){.macro-settings-row{grid-template-columns:1fr}.macro-percent-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.macro-settings-inline-title{grid-column:1/-1;grid-row:5;color:#aaa;font-size:13px;font-weight:600}.macro-settings-inline{grid-column:1/-1;grid-row:6;max-width:none;width:100%;box-sizing:border-box}.profile-save-button{grid-row:7!important}.macro-settings-card.is-over-limit{background:#4a221d;border-color:#6b3028}.profile-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.profile-metrics label{display:grid;gap:6px;color:#999;font-size:11px}.profile-metrics input,.profile-settings-fields select{width:100%;padding:9px 8px;border:1px solid #3a3a3a;border-radius:6px;background:#202020;color:#eee;font:inherit;font-size:12px;outline:0}.light-theme .profile-metrics input,.light-theme .profile-settings-fields select{background:#f5f5f5;border-color:#ccc;color:#222}@media(max-width:520px){.profile-metrics{grid-template-columns:1fr 1fr}}.profile-goal-row{display:grid;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.profile-goal-row label{display:grid;gap:6px;color:#999;font-size:11px}.profile-goal-row input,.profile-goal-row select{box-sizing:border-box;width:100%;height:33px}.google-health-settings-button{grid-column:1/-1;min-height:48px;padding:9px 0;border-bottom:0}.google-health-settings-button:disabled{opacity:.65;cursor:wait}.google-health-settings-button.is-connected .settings-icon{color:#9fdf9f}.google-health-settings-button .settings-row-copy small{color:#8fc98f}.is-spinning{animation:settings-spin .8s linear infinite}@keyframes settings-spin{to{transform:rotate(360deg)}}.profile-goal-row,.tabs-settings-button,.google-health-settings-button{position:relative;top:-300px;left:calc(100% + 8px);width:100%}.profile-save-button{position:relative;top:-300px;left:calc(100% + 8px)}@media(max-width:900px){.profile-goal-row,.tabs-settings-button,.google-health-settings-button{top:0;left:0;width:100%}.profile-save-button{top:0;left:0}}.profile-right-settings{position:relative;display:grid;gap:12px;grid-column:1/-1;top:-300px;left:calc(100% + 8px);width:100%}.profile-right-settings .profile-goal-row,.profile-right-settings .tabs-settings-button,.profile-right-settings .google-health-settings-button{position:static;left:auto;top:auto;width:100%}.profile-right-settings .profile-save-button{position:static;left:auto;top:auto;grid-column:1!important;grid-row:auto!important;justify-self:start}@media(max-width:900px){.profile-right-settings{top:0;left:0;width:100%}}.profile-settings-fields{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;width:calc(200% + 18px)!important;flex:0 0 auto!important;align-content:start}.profile-inline-title{grid-column:1/-1!important;grid-row:1!important}.profile-left-settings{display:grid;grid-column:1;grid-row:2;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-content:start}.profile-left-settings>label:nth-child(1){grid-column:1;grid-row:1}.profile-left-settings>label:nth-child(2){grid-column:2;grid-row:1}.profile-left-settings .profile-metrics{display:grid!important;grid-column:1/-1;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.profile-left-settings .profile-metrics>label:nth-child(3){grid-column:1}.profile-left-settings>label:nth-child(4){grid-column:2;grid-row:2}.profile-left-settings .macro-settings-inline-title{grid-column:1/-1;grid-row:3}.profile-left-settings .macro-settings-inline{grid-column:1/-1;grid-row:4}.profile-right-settings{grid-column:2;grid-row:2;top:0;left:0;width:100%;align-content:start}.profile-right-settings .profile-goal-row{grid-column:1/-1}.profile-right-settings .profile-save-button{margin-top:0}@media(max-width:900px){.profile-settings-fields{width:100%!important;grid-template-columns:1fr!important}.profile-left-settings,.profile-right-settings{grid-column:1;grid-row:auto}.profile-left-settings{grid-template-columns:1fr}.profile-left-settings>label,.profile-left-settings .profile-metrics,.profile-left-settings .macro-settings-inline-title,.profile-left-settings .macro-settings-inline{grid-column:1;grid-row:auto}.profile-left-settings .profile-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}.photo-editor-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;display:grid;place-items:center;padding:20px;background:#000000b8}.photo-editor{width:min(390px,100%);padding:20px;border:1px solid #383838;border-radius:12px;background:#181818;box-shadow:0 20px 80px #000a}.photo-editor h2{margin:0 0 16px;font-size:16px;font-weight:600}.photo-editor-preview{display:grid;place-items:center;width:100%;aspect-ratio:1;border-radius:10px;overflow:hidden;background:#101010}.photo-editor-preview img{width:100%;height:100%;object-fit:cover;transition:transform .2s}.photo-editor-actions{display:flex;gap:8px;margin-top:16px}.photo-editor-actions button{flex:1;padding:10px 9px;border:1px solid #3b3b3b;border-radius:7px;background:#242424;color:#eee;font:inherit;font-size:11px;cursor:pointer}.photo-editor-actions button:hover{background:#303030}.photo-editor-actions button:nth-child(2){background:#ddd;color:#171717;border-color:#ddd}.light-theme .photo-editor{background:#fff;border-color:#ddd}.light-theme .photo-editor-preview{background:#eee}.light-theme .photo-editor-actions button{background:#f1f1f1;color:#222;border-color:#ccc}.light-theme .photo-editor-actions button:nth-child(2){background:#222;color:#fff;border-color:#222}.profile-left-settings>label:nth-child(4){grid-column:1/-1!important;grid-row:3!important}.profile-left-settings .profile-metrics{display:contents!important}.profile-left-settings .profile-metrics>label:nth-child(1){grid-column:1;grid-row:2}.profile-left-settings .profile-metrics>label:nth-child(2){grid-column:2;grid-row:2}.profile-left-settings .profile-metrics>label:nth-child(3){grid-column:1;grid-row:3}.profile-left-settings>label:nth-child(4){grid-column:2!important;grid-row:3!important}.profile-left-settings .macro-settings-inline-title{grid-row:4!important}.profile-left-settings .macro-settings-inline{grid-row:5!important}.profile-right-settings .tabs-settings-button{border-bottom:0!important}.profile-right-settings .profile-save-button{position:absolute;top:330px;left:calc(-100% - 12px);margin:0}@media(max-width:900px){.profile-right-settings .profile-save-button{position:static;margin-top:0}}.macro-settings-inline{background:transparent!important;border:0!important;padding:0!important}.profile-right-settings .settings-row{padding-left:0;padding-right:0}.profile-right-settings{gap:0}.photo-editor-actions button:nth-child(2){background:#242424!important;color:#eee!important;border-color:#3b3b3b!important}.photo-editor-actions button:nth-child(2).crop-active{background:#ddd!important;color:#171717!important;border-color:#ddd!important}.photo-editor-actions button:nth-child(3){background:#ddd;color:#171717;border-color:#ddd}.photo-editor-actions .save-photo-button{flex:1.8;display:flex;align-items:center;justify-content:center;gap:6px}.photo-editor-actions .save-photo-button{min-width:130px;white-space:nowrap;font-size:12px!important}.photo-editor{padding-bottom:20px}.settings-heading h1{display:flex;align-items:center;gap:9px}.settings-heading .settings-logo{width:28px;height:28px;object-fit:contain}.profile-metrics{grid-template-columns:1fr}.profile-settings-fields{grid-template-columns:1fr!important}.sidebar-profile-wrap{padding-top:4px}.sidebar-profile{transform:translateY(10px)}.profile-settings-card{background:transparent!important;border:0!important}.profile-settings-card{display:grid!important;grid-template-columns:200px minmax(0,300px);column-gap:18px;row-gap:0}.profile-photo-picker{grid-column:1;grid-row:1}.profile-settings-fields{grid-column:2;grid-row:1}.profile-settings-photo{width:200px;height:200px;font-size:44px}.profile-save-button{grid-column:2;grid-row:2;justify-self:start;margin-top:18px;padding:10px 18px;border:0;border-radius:7px;background:#ddd;color:#171717;font:inherit;font-size:13px;font-weight:600;cursor:pointer}.profile-save-button:hover{background:#fff}.light-theme .profile-save-button{background:#222;color:#fff}.light-theme .profile-save-button:hover{background:#000}.profile-photo-picker{grid-column:2!important;grid-row:1}.profile-settings-fields{grid-column:1!important;grid-row:1}.profile-save-button{grid-column:1!important;grid-row:2}.profile-photo-picker{grid-column:1!important}.profile-settings-fields,.profile-save-button{grid-column:2!important}.profile-section-title{display:none}.profile-inline-title{color:#aaa;font-size:18px;font-weight:600}.profile-settings-fields select{width:140px!important;justify-self:start;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:24px!important}.profile-settings-fields{grid-template-columns:minmax(0,1fr) 140px!important}.profile-inline-title{grid-column:1/-1}.profile-settings-fields>label:nth-of-type(1){grid-column:1}.profile-settings-fields>label:nth-of-type(2){grid-column:2}.profile-metrics,.profile-settings-fields>label:nth-of-type(3){grid-column:1/-1}.profile-metrics{grid-template-columns:1fr 1fr!important}.profile-metrics label:nth-child(3){grid-column:1/-1}.profile-metrics{display:contents!important}.profile-inline-title{grid-column:1/-1;grid-row:1}.profile-settings-fields>label:nth-of-type(1){grid-column:1;grid-row:2}.profile-settings-fields>label:nth-of-type(2){grid-column:2;grid-row:2}.profile-metrics>label:nth-child(1){grid-column:1;grid-row:3}.profile-metrics>label:nth-child(2){grid-column:2;grid-row:3}.profile-metrics>label:nth-child(3){grid-column:1;grid-row:4}.profile-settings-fields>label:nth-of-type(3){grid-column:2;grid-row:4}.profile-settings-fields{grid-template-columns:1fr 1fr!important}.profile-settings-fields>label:nth-of-type(3) input{width:100%}.profile-metrics>label:nth-child(3){transform:translateY(-6px)}.profile-metrics>label:nth-child(3){transform:none}.profile-metrics>label:nth-child(3) input{transform:translateY(0);height:33px!important;padding:8px 10px!important;width:100%!important;justify-self:stretch}.profile-metrics>label:nth-child(3) input,.profile-settings-fields>label:nth-of-type(3) input{box-sizing:border-box;height:33px!important;padding:8px 10px!important;width:100%!important}.products-toolbar{justify-content:flex-start!important}.profile-more{display:none}.sidebar-profile:hover{background:#ffffff12;border-radius:8px;outline:6px solid rgba(255,255,255,.07)}.sidebar-profile:hover .profile-copy b{color:#fff;text-shadow:0 0 8px rgba(255,255,255,.28)}.bmr-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:4px;color:#999;font-size:11px}.bmr-row b{color:#eee;font-size:13px;font-weight:500}.light-theme .bmr-row b{color:#222}.unit-input{position:relative}.unit-input input{padding-right:34px!important}.unit-input span{position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#777;font-size:11px;pointer-events:none}.bmr-hint{color:#777;font-size:10px}.photo-editor-preview>.photo-editor-blur{z-index:1!important;-webkit-mask-image:none!important;mask-image:none!important}.photo-editor-preview>.photo-editor-sharp{z-index:2!important;clip-path:circle(49% at 50% 50%)!important;-webkit-mask-image:none!important;mask-image:none!important}.photo-editor{position:relative}.photo-editor-close-button{position:absolute;top:16px;right:16px;width:26px!important;height:26px;padding:0!important;display:grid!important;place-items:center;border:0!important;background:transparent!important;color:#aaa!important;font-size:22px!important;font-weight:300!important;line-height:1;cursor:pointer}.photo-editor-close-button:hover{background:transparent!important;color:#fff!important}.photo-editor-actions .photo-editor-save-button{display:grid!important;place-items:center;min-width:40px;width:40px;height:40px;padding:0!important;border:1px solid #ddd!important;border-radius:7px!important;background:#fff!important;color:#171717!important;cursor:pointer}.photo-editor-actions .photo-editor-save-button:hover{background:#eee!important;color:#000!important}.photo-editor-preview>.photo-editor-blur{display:none!important}.photo-editor-preview>.photo-editor-sharp{display:block!important;clip-path:none!important}.photo-editor-preview.is-cropping{touch-action:none;-webkit-user-select:none;user-select:none}.photo-editor-preview.is-cropping>img{transition:none!important;pointer-events:none;-webkit-user-select:none;user-select:none}.product-add-form{display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;width:min(100%,524px);margin-top:28px;padding:20px;background:#181818;border:1px solid #2b2b2b;border-radius:10px}.product-add-form h2{grid-column:1/-1;margin:0;font-size:16px;font-weight:600}.product-add-form label{display:grid;gap:6px;color:#999;font-size:11px}.product-add-form>label:first-of-type,.product-add-form>.product-macros,.product-add-form>.product-macros+label,.product-add-form>.product-calories,.product-add-form>.save-button{grid-column:2}.product-add-form input{width:100%;padding:7px 10px;border:1px solid #363636;border-radius:7px;background:#202020;color:#eee;font:inherit;font-size:12px;outline:0}.product-add-form input:focus{border-color:#777}.product-macros{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.product-calories{font-size:12px;color:#ddd}.product-icon,.product-icon img{border-radius:50%}.product-icon img{width:100%;height:100%;object-fit:cover}@media(max-width:520px){.product-add-form{width:100%;grid-template-columns:1fr}.product-add-form>label:first-of-type,.product-add-form>.product-macros,.product-add-form>.product-macros+label,.product-add-form>.product-calories,.product-add-form>.save-button{grid-column:1}.product-macros{grid-template-columns:1fr}}.product-add-form>label:first-of-type{position:static;gap:0;line-height:10px}.product-add-form>label:first-of-type input{width:100%;position:relative;top:-6px;margin-bottom:-6px;padding:5px 8px}@media(max-width:520px){.product-add-form>label:first-of-type input{width:100%}}.product-name-input{height:32px!important;padding:5px 8px!important;line-height:20px!important}.product-name-field{display:flex!important;flex-direction:column;align-items:flex-start;gap:4px!important;line-height:normal!important}.product-name-field .product-name-input{position:static!important;margin:0!important}.product-macros{gap:10px!important;margin-top:-39px}.macro-warning{position:fixed;top:20px;right:22px;z-index:3000;width:min(320px,calc(100vw - 44px));padding:10px 12px;border:1px solid #b66b12;border-radius:8px;background:#8a4d08;color:#fff0d2;font-size:11px;line-height:1.35;box-shadow:0 8px 24px #00000040}.macro-warning{display:flex;align-items:flex-start;gap:8px}.macro-warning svg{flex:none;margin-top:1px}.macro-warning{font-size:13px}.macro-warning{background:#f97316;border-color:#fb923c;color:#fff7ed}.force-save-button{background:#d97916!important;color:#fff!important}.force-save-button:hover{background:#ed8b22!important}.macro-warning.is-leaving{animation:macro-warning-leave .3s ease-in forwards}@keyframes macro-warning-leave{to{opacity:0;transform:translateY(-24px)}}.macro-warning{animation:macro-warning-in .24s cubic-bezier(.22,1,.36,1) both}@keyframes macro-warning-in{0%{opacity:0;transform:translate(28px)}to{opacity:1;transform:translate(0)}}.product-grid{width:min(100%,524px)}.product-grid{grid-template-columns:1fr}.product-card .product-icon{width:44px;height:44px;flex:none;border-radius:50%;overflow:hidden}.product-card .product-icon img{width:100%;height:100%;object-fit:cover}.product-card-info b{font-size:16px}.product-card{position:relative;transition:background .16s ease,border-color .16s ease}.product-card:hover{background:#202020;border-color:#3b3b3b}.product-card-macros{grid-column:3;grid-row:1}.product-card .product-card-actions{grid-column:3;grid-row:1;justify-self:end;display:none!important;align-items:center;gap:4px}.product-card:hover .product-card-macros{visibility:hidden}.product-card:hover .product-card-actions{display:flex!important}.product-card-actions button{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:5px;background:transparent;color:#aaa;cursor:pointer}.product-card-actions button:hover{background:#333;color:#fff}.product-card-actions button svg{width:19px;height:19px}.product-card .product-delete-confirm{grid-column:1/-1;display:flex!important;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:12px;min-width:0;white-space:nowrap}.product-delete-confirm>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#eee;font-size:12px}.product-delete-confirm-actions{display:flex!important;flex-direction:row!important;align-items:center;gap:4px;flex:none;white-space:nowrap}.product-delete-confirm-actions button{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:5px;background:transparent;color:#fff;cursor:pointer}.product-delete-confirm-actions button:hover{background:#333}.product-search-add{display:grid;place-items:center;flex:none;width:24px;height:24px;padding:0;border:0;background:transparent;color:#888;cursor:pointer}.product-search-add:hover{color:#eee}.product-add-form:not(.is-open){display:none}.products-content.is-adding-product .product-grid{display:none}.product-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto}.product-card-info{min-width:0}.product-card-macros{display:grid!important;grid-template-columns:repeat(4,40px);grid-template-rows:auto auto;column-gap:10px;row-gap:4px;text-align:center;white-space:nowrap}.product-card .product-card-macro-header,.product-card .product-card-macro-values{display:contents!important}.product-card-macro-header span{font-size:14px;color:#777}.product-card-macro-values b{font-size:15px;font-weight:500;color:#aaa}.product-add-form h2{margin-bottom:-8px}.product-add-form h2{margin-bottom:8px}.product-add-form{grid-template-columns:140px minmax(0,1fr);width:min(100%,420px)}@media(max-width:520px){.product-add-form{width:100%;grid-template-columns:1fr}}.products-toolbar{margin-bottom:0!important}.product-add-form{margin-top:20px}.products-content{display:flex!important;flex-direction:column}.products-toolbar{order:0}.product-add-form{order:1}.product-grid{order:2;padding-top:20px}.product-portion-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;grid-column:2}.product-portion-row input[readonly]{color:#ddd;background:#292929}.product-portion-row label{display:grid;gap:6px;color:#999;font-size:11px}.weight-input-wrap{position:relative;display:block}.weight-input-wrap input{padding-right:48px!important}.weight-unit{position:absolute;top:50%;right:8px;padding:0;transform:translateY(-50%);border:0;background:transparent;color:#777;font:inherit;font-size:11px;cursor:pointer}.weight-unit:hover{color:#eee}@media(max-width:520px){.product-portion-row{grid-column:1}}.product-portion-row,.product-add-form>.save-button{grid-column:1/-1}.product-bottom-row{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end}.product-bottom-row .product-portion-row{display:contents}.product-bottom-row>.save-button{grid-column:auto;height:32px;margin-top:0;padding:7px 10px}@media(max-width:520px){.product-bottom-row{grid-template-columns:1fr}}.product-bottom-row{column-gap:24px}.weight-input-wrap .portion-dropdown{right:auto;width:200%}@media(max-width:520px){.weight-input-wrap .portion-dropdown{width:100%}}.product-photo-picker{position:relative;display:flex;justify-content:center}.product-photo-button{width:96px;height:96px;padding:0;border:1px solid #444;border-radius:50%;background:#292929;color:#aaa;font-size:28px;cursor:pointer;overflow:hidden}.product-photo-button:hover{border-color:#777;color:#eee}.product-photo-button img{width:100%;height:100%;object-fit:cover}.product-photo-menu{position:absolute;top:104px;z-index:5;display:grid;gap:3px;min-width:190px;padding:6px;background:#242424;border:1px solid #444;border-radius:8px;box-shadow:0 12px 30px #0008}.product-photo-menu button{padding:8px 10px;border:0;border-radius:5px;background:transparent;color:#eee;text-align:left;font:inherit;font-size:11px;cursor:pointer}.product-photo-menu button:hover{background:#333}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.product-add-form:not(.dish-form) .product-photo-button{position:relative;top:-53px;width:140px;height:140px;transform:none;border-radius:10px}.product-macros{grid-template-columns:repeat(4,minmax(0,1fr))!important}.total-label{display:flex;align-items:center;gap:4px}.total-label small{color:#777;font-size:9px;font-weight:400;text-transform:uppercase}.total-input-wrap{position:relative;display:block}.total-input-wrap input{padding-right:34px!important}.calories-edit-button{position:absolute;top:50%;right:6px;display:grid;place-items:center;width:20px;height:20px;padding:0;transform:translateY(-50%);border:0;border-radius:4px;background:transparent;color:#777;cursor:pointer}.calories-edit-button:hover{background:transparent;color:#171717}.calories-edit-button.is-active{background:#ddd;color:#171717}.total-calories-control{display:flex;align-items:center;gap:5px}.calories-add-button{display:grid;place-items:center;width:28px;height:32px;padding:0;border:1px solid #363636;border-radius:7px;background:#202020;color:#aaa;cursor:pointer}.calories-add-button:hover{border-color:#777;color:#eee}.product-portion-row select{height:32px;padding:5px 30px 5px 8px!important;border:1px solid #363636;border-radius:7px;background-color:#202020;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;color:#eee;font:inherit;font-size:12px;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0}.product-portion-row select:focus{border-color:#777}.portion-picker{position:relative}.portion-picker-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;height:32px;padding:5px 8px;border:1px solid #363636;border-radius:7px;background:#202020;color:#eee;font:inherit;font-size:12px;text-align:left;cursor:pointer}.portion-picker-trigger span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#999;font-size:15px;line-height:10px}.portion-picker-trigger svg{flex:none;width:16px;height:16px}.portion-dropdown{position:absolute;top:36px;left:0;right:0;z-index:100001!important;display:grid;gap:6px;padding:6px;background:#242424;border:1px solid #444;border-radius:8px;box-shadow:0 12px 30px #0008}.portion-dropdown>input{height:30px!important;padding:5px 8px!important}.portion-options{display:grid;max-height:132px;overflow:auto}.portion-options button{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 8px;border:0;border-radius:5px;background:transparent;color:#eee;font:inherit;font-size:11px;text-align:left;cursor:pointer}.portion-options button:hover{background:#333}.portion-option-grams{margin-left:auto;color:#888;white-space:nowrap}.portion-create{display:none;grid-template-columns:minmax(0,1fr) 72px 36px;gap:4px;padding-top:6px;border-top:1px solid #3b3b3b}.portion-create.is-open{display:grid}.portion-create input{min-width:0;height:28px!important;padding:4px 6px!important;font-size:11px!important}.portion-create button{height:28px;padding:0 8px;border:1px solid #d5d5d5;border-radius:6px;background:#ddd;color:#171717;font-size:18px;font-weight:500;line-height:1;cursor:pointer}.portion-create button:hover{background:#fff;border-color:#fff}.portion-dropdown.is-creating{background:#242424!important;border-color:#444!important;box-shadow:0 12px 30px #0008!important}.dish-ingredients-panel .weight-input-wrap{position:relative;z-index:2}.dish-ingredients-panel .weight-input-wrap .portion-dropdown{z-index:100010!important}.dish-ingredients-panel>.dish-controls-row:has(.weight-input-wrap .portion-dropdown){position:relative;z-index:100009!important}.dish-ingredients-panel>.dish-controls-row:not(:has(.weight-input-wrap .portion-dropdown)){z-index:0}.dish-form>.dish-ingredients-panel:has(.dish-products-dropdown){overflow:visible!important;z-index:100000!important}.dish-ingredients-panel .dish-product-picker:has(.dish-products-dropdown){position:relative;z-index:100001!important}.dish-ingredients-panel .dish-products-dropdown{z-index:100002!important}.dish-ingredients-panel>.dish-controls-row:has(.dish-products-dropdown){position:relative;z-index:100001!important}.dish-ingredients-panel:has(.dish-products-dropdown)>.dish-add-product-link{position:relative;z-index:0!important}.portion-search-field{display:flex;align-items:center;gap:6px;height:30px;padding:0 4px;color:#888}.portion-search-field input{height:30px!important;padding:5px 0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#eee}.portion-search-field input:focus{border:0!important;outline:0}.portion-search-add-button{display:grid;place-items:center;margin-left:auto;padding:0;border:0!important;background:transparent!important;color:#999;cursor:pointer;box-shadow:none!important}.portion-search-add-button:hover,.portion-search-add-button:active,.portion-search-add-button:focus{background:transparent!important;color:#fff;box-shadow:none!important;outline:0}.portion-inline-create{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:4px}.portion-inline-create input{min-width:0;height:30px!important;padding:5px 4px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#eee;font-size:11px!important}.portion-inline-create input:focus{border:0!important;outline:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.portion-options{scrollbar-width:none}.portion-options::-webkit-scrollbar{display:none}.portion-option-row{display:flex;align-items:center;min-width:0}.portion-option-select{display:flex!important;flex:1;min-width:0}.portion-option-actions{display:none;align-items:center;gap:2px;margin-left:auto}.portion-option-row:hover .portion-option-grams{display:none}.portion-option-row:hover .portion-option-actions{display:flex}.portion-option-actions button{display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;border-radius:4px;background:transparent;color:#888;cursor:pointer}.portion-option-actions button:hover{background:#333;color:#eee}.portion-inline-edit{display:grid;grid-template-columns:minmax(0,1fr) 42px 22px;gap:4px;align-items:center}.portion-inline-edit input{min-width:0;height:30px!important;padding:5px 4px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#eee;font-size:11px!important}.portion-inline-edit button{display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;background:transparent;color:#999;cursor:pointer}.portion-inline-edit button:hover{color:#fff}.portion-option-select>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.weight-unit{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portion-option-actions button,.portion-option-actions button svg{color:#fff!important;stroke:#fff!important}.portion-option-actions button:hover,.portion-option-actions button.is-active{background:#444!important;color:#fff!important}.portion-option-actions.is-visible{display:flex}.portion-delete-confirm{min-height:28px;padding:0;color:#eee;font-size:11px}.portion-delete-confirm>span:first-child{margin-left:auto;margin-right:0;white-space:nowrap;transform:translate(4px)}.portion-action-spacer{display:block;width:20px;height:20px}.portion-inline-delete{display:flex;align-items:center;gap:2px;min-height:32px;padding:0 8px;color:#eee;font-size:11px}.portion-inline-delete span{margin-right:auto}.portion-inline-delete button{display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;border-radius:4px;background:transparent;color:#fff;cursor:pointer}.portion-inline-delete button:hover{background:#444}.portion-option-row{border-radius:5px}.portion-option-row:hover{background:#333}.portion-option-row:hover .portion-option-select{background:transparent}.portion-option-actions button:hover{background:transparent!important}.dish-form{display:grid!important;grid-template-columns:140px minmax(0,1fr)!important;width:min(100%,520px)!important}.dish-product-search{position:relative;display:flex;align-items:center;gap:7px;height:32px;padding:0 9px;border:1px solid #363636;border-radius:7px;background:#202020;color:#888}.dish-product-search input{min-width:0;padding:0!important;border:0!important;background:transparent!important}.dish-product-results{position:absolute;top:37px;left:0;right:0;z-index:30;display:grid;max-height:180px;overflow:auto;padding:5px;background:#242424;border:1px solid #444;border-radius:7px;box-shadow:0 12px 30px #0008}.dish-product-results button{display:flex;justify-content:space-between;gap:12px;padding:8px;border:0;border-radius:5px;background:transparent;color:#eee;font:inherit;font-size:11px;text-align:left;cursor:pointer}.dish-product-results button:hover{background:#333}.dish-product-results small{color:#888}.dish-ingredients{display:grid;gap:5px}.dish-ingredient{display:grid;grid-template-columns:minmax(0,1fr) 70px 14px 24px;align-items:center;gap:6px;min-height:32px;color:#ddd;font-size:12px}.dish-ingredient input{height:30px!important;padding:5px 7px!important}.dish-ingredient>span:nth-child(3){color:#777}.dish-ingredient button{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:4px;background:transparent;color:#888;cursor:pointer}.dish-ingredient button:hover{background:#333;color:#fff}.dish-weight-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dish-calculation{display:grid;gap:8px;color:#999;font-size:11px}.dish-macro-table{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;text-align:center}.dish-macro-table b{color:#777;font-size:11px}.dish-macro-table strong{grid-column:1/-1;color:#eee;font-size:14px;font-weight:500}.dish-calculation small{color:#aaa}@media(max-width:520px){.dish-form{grid-template-columns:1fr!important}}.dish-product-picker{position:relative;grid-column:2;grid-row:3}.dish-product-picker .portion-picker-trigger{height:32px}.dish-products-dropdown{top:36px;left:0;right:0;width:100%}.dish-selected-products{display:grid;grid-column:2;gap:4px}.dish-selected-products>div{display:flex;align-items:center;justify-content:space-between;min-height:30px;padding:4px 8px;border-radius:5px;background:#202020;color:#ddd;font-size:11px}.dish-selected-products button{display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;background:transparent;color:#888;cursor:pointer}.dish-selected-products button:hover{color:#fff}@media(max-width:520px){.dish-product-picker,.dish-selected-products{grid-column:1;grid-row:auto}}.dish-ingredients-label{grid-column:2;grid-row:3;color:#eee;font-size:15px;line-height:1}.dish-controls-row{position:relative;display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);column-gap:10px;grid-column:2;grid-row:4;width:100%}.dish-product-picker{grid-column:1;grid-row:1;width:100%}.dish-selected-products{grid-column:1}.dish-weight-row{grid-column:2!important;grid-row:1!important;width:100%!important;transform:translateY(-1px)}.dish-controls-row+.dish-controls-row{grid-row:auto}.dish-controls-row .dish-product-picker,.dish-controls-row .dish-weight-row{width:100%!important;min-width:0}.dish-product-picker .portion-picker-trigger span{font-size:12px}.dish-controls-row{position:relative}.dish-controls-row.is-removed{display:none!important}.dish-row-remove{position:absolute;top:5px;right:-20px;display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;background:transparent;color:#888;cursor:pointer}.dish-row-remove:hover{color:#fff}.dish-row-remove.is-hidden{display:none}.dish-controls-row .dish-weight-row{width:calc(100% - 10px)!important;justify-self:start}.dish-controls-row:has(.dish-row-reset) .dish-row-remove{right:-40px}.dish-row-reset{position:absolute;top:5px;right:-20px;display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;background:transparent;color:#888;cursor:pointer}.dish-row-reset svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.dish-row-reset:hover{color:#fff}@media(max-width:520px){.dish-controls-row .dish-weight-row{width:100%!important}}.dish-add-product-link{justify-self:start;margin-left:10px;padding:0;border:0;background:transparent;color:#4d9cff;text-decoration:none!important;font:inherit;font-size:12px;cursor:pointer}.dish-add-product-link:hover{color:#8bbcff}.dish-add-product-link{border-bottom:1px solid #4d9cff!important;padding-bottom:1px}.dish-form>.dish-add-product-link{grid-column:2}.dish-ingredients-label,.dish-controls-row,.dish-form>.dish-add-product-link{position:relative;top:-40px}@media(max-width:520px){.dish-form>.dish-add-product-link{grid-column:1}}@media(max-width:520px){.dish-ingredients-label{grid-column:1;grid-row:auto}.dish-controls-row{grid-column:1;grid-template-columns:1fr;grid-row:auto}.dish-product-picker,.dish-selected-products,.dish-weight-row{grid-column:1!important;grid-row:auto!important;width:100%!important;transform:none}}@media(max-width:520px){.dish-ingredients-label,.dish-controls-row,.dish-form>.dish-add-product-link{top:0}}.dish-weight-row{grid-template-columns:1fr;align-items:center}.dish-weight-row{grid-column:1;grid-row:3}.dish-product-picker,.dish-weight-row{align-self:start;min-height:32px}.dish-product-picker{width:calc(60% - 5px)}.dish-weight-row{grid-column:2;grid-row:3;justify-self:end;width:calc(40% - 5px)}@media(min-width:521px){.dish-weight-row{transform:translateY(-1px)}}@media(max-width:520px){.dish-product-picker,.dish-weight-row{grid-column:1;grid-row:auto;width:100%;justify-self:stretch}}.dish-form>.product-photo-picker{grid-column:1;grid-row:2}.dish-photo-macro-table{display:grid;grid-column:1;grid-row:3;align-self:start;grid-template-columns:minmax(58px,1.5fr) repeat(4,minmax(28px,1fr));gap:6px;margin-top:6px;color:#bbb;font-size:10px;text-align:center}.dish-macro-header,.dish-macro-row{display:contents}.dish-macro-header b{color:#eee;font-size:11px;font-weight:600}.dish-macro-row span{color:#999;text-align:left;white-space:nowrap}.dish-macro-row b{color:#ddd;font-size:11px;font-weight:500}.dish-photo-macro-table{grid-template-columns:minmax(58px,1.2fr) repeat(2,minmax(48px,1fr));gap:5px 8px}.dish-macro-header b{text-align:center}.dish-macro-row span{font-weight:600}.dish-macro-row b{text-align:center}.dish-card .product-card-macros{display:grid!important;grid-template-columns:1fr 42px;grid-auto-rows:auto;gap:3px 8px;align-content:center;text-align:left}.dish-card .product-card-macro-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px}.dish-card .product-card-macro-row span{color:#777;font-size:12px}.dish-card .product-card-macro-row b{color:#aaa;font-size:13px;font-weight:500;text-align:right}.dish-photo-macro-table{grid-template-columns:minmax(58px,1.5fr) repeat(4,minmax(28px,1fr));gap:6px}.dish-card .product-card-macros{grid-template-columns:repeat(4,40px);grid-template-rows:auto auto;column-gap:10px;row-gap:4px;text-align:center}.dish-card .product-card-macro-header,.dish-card .product-card-macro-values{display:contents!important}.dish-card .product-card-macro-header span{font-size:14px;color:#777}.dish-card .product-card-macro-values b{font-size:15px;font-weight:500;color:#aaa}.dish-photo-macro-table{column-gap:2px}.dish-photo-macro-table{grid-template-columns:35px repeat(4,minmax(28px,1fr))}.dish-photo-macro-table{position:static;grid-column:1;grid-row:6;margin-top:0}@media(max-width:520px){.dish-photo-macro-table{grid-column:1;grid-row:auto}}.dish-form>.dish-add-product-link{grid-row:6}.dish-photo-macro-table{grid-row:7}@media(max-width:520px){.dish-form>.dish-add-product-link{grid-row:auto}.dish-photo-macro-table{grid-row:auto}}.dish-summary-fields{grid-column:2;grid-row:5;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-self:start}.dish-summary-fields label{display:grid;gap:4px;color:#999;font-size:11px}.dish-summary-input-wrap{position:relative;display:block}.dish-summary-input-wrap input{padding-right:22px!important}.dish-summary-input-wrap>span{position:absolute;top:50%;right:8px;transform:translateY(-50%);color:#777;font-size:11px;pointer-events:none}.dish-summary-fields{grid-row:7}.dish-summary-fields{grid-template-columns:1fr;gap:6px}.dish-summary-fields{width:50%;justify-self:start}.dish-summary-fields{position:absolute;top:100px;left:calc(518px + (100% - 738px)/2);width:110px;grid-column:auto;grid-row:auto}.dish-summary-save{position:absolute;top:220px;left:calc(518px + (100% - 738px)/2);width:110px;height:32px;padding:7px 10px;border:0;border-radius:7px;background:#ddd;color:#171717;font:inherit;font-size:12px;font-weight:600;cursor:pointer}.dish-summary-save:hover{background:#fff}.dish-summary-save{top:auto;bottom:20px;left:auto;right:20px}.dish-summary-save{right:10px;width:104px}.dish-summary-cancel{position:absolute;right:122px;bottom:20px;width:104px;height:32px;padding:7px 10px;border:0;border-radius:7px;background:#393939;color:#fff;font:inherit;font-size:12px;font-weight:600;cursor:pointer}.dish-summary-cancel:hover{background:#454545}.dish-photo-macro-table{width:100%;gap:8px 4px;font-size:11px}.dish-macro-header b,.dish-macro-row b{font-size:12px}.dish-macro-header b:nth-of-type(1),.dish-macro-row:nth-of-type(2) b,.dish-card .product-card-macro-row:nth-child(1) span,.dish-card .product-card-macro-row:nth-child(1) b{color:#7bd88f}.dish-macro-header b:nth-of-type(2),.dish-macro-row:nth-of-type(3) b,.dish-card .product-card-macro-row:nth-child(2) span,.dish-card .product-card-macro-row:nth-child(2) b{color:#ff7b7b}.dish-macro-header b:nth-of-type(3),.dish-macro-row:nth-of-type(4) b,.dish-card .product-card-macro-row:nth-child(3) span,.dish-card .product-card-macro-row:nth-child(3) b{color:#75aaff}.dish-macro-header b:nth-of-type(4),.dish-macro-row:nth-of-type(5) b,.dish-card .product-card-macro-row:nth-child(4) span,.dish-card .product-card-macro-row:nth-child(4) b{color:#f5d76e}.dish-macro-row b,.dish-card .product-card-macro-row b{color:#eee!important}@media(max-width:520px){.dish-summary-fields{position:static;grid-column:1;grid-row:auto;width:50%}.dish-summary-cancel,.dish-summary-save{position:static;grid-column:1;grid-row:auto;width:50%;margin-top:0}}.dish-summary-fields{grid-template-columns:repeat(2,minmax(0,1fr));width:220px}@media(max-width:520px){.dish-summary-fields{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}}.dish-form{position:relative;width:min(100%,780px)!important;grid-template-columns:140px 324px!important}.database-builder-layout:has(.products-content.is-adding-product)>.products-content:not(.is-adding-product) .product-grid{display:none!important}.database-builder-layout:has(.products-content.is-adding-product)>.products-content:not(.is-adding-product) .database-pagination{display:none!important}.dish-form{grid-template-columns:0 324px!important;column-gap:0}.dish-form>.product-name-field{grid-column:2;grid-row:2;align-self:start;margin-top:-30px}.dish-form>.dish-ingredients-label{margin-top:10px}.dish-form{min-height:370px}.dish-form:after{content:"";position:absolute;left:518px;top:20px;bottom:20px;width:1px;background:#363636;pointer-events:none}.dish-photo-macro-table{position:absolute;top:20px;left:calc(518px + (100% - 738px)/2);right:auto;width:220px;grid-column:auto;grid-row:auto;margin:0}.dish-form>.product-photo-picker{position:absolute;top:20px;left:calc(518px + (100% - 738px)/2);width:220px;grid-column:auto;grid-row:auto}.dish-photo-macro-table{top:170px}.dish-summary-fields{top:245px}@media(max-width:520px){.dish-form{width:100%!important;grid-template-columns:1fr!important;column-gap:14px}.dish-form:after{display:none}}@media(max-width:520px){.dish-form{min-height:0}}@media(max-width:520px){.dish-form>.product-photo-picker{position:relative;top:auto;left:auto;width:auto;grid-column:1;grid-row:auto}.dish-photo-macro-table{position:static;width:100%;grid-column:1;grid-row:auto;margin-top:0}.dish-summary-fields{position:static;top:auto}}.dish-form>h2{grid-column:1/-1;grid-row:1;margin:0}.dish-form>.product-name-field{grid-column:1!important;grid-row:2!important;margin-top:0}.dish-form>.product-photo-picker{position:static;grid-column:2;grid-row:2;width:220px}.dish-form>.product-photo-picker{align-self:start;margin-top:-10px}.dish-form .product-photo-button{transform:scale(1.4)}.dish-form>.dish-photo-macro-table{position:static;grid-column:2;grid-row:3;width:220px;margin:0}.dish-form>.dish-ingredients-label{grid-column:1;grid-row:3;margin-top:0}.dish-form>.dish-controls-row{grid-column:1!important;grid-row:auto!important;top:0}.dish-form>.dish-controls-row{transform:none!important}.dish-summary-fields{position:static;grid-column:2;grid-row:4;width:220px}.dish-action-buttons{grid-column:2;grid-row:5;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:220px}.dish-action-buttons .dish-summary-cancel,.dish-action-buttons .dish-summary-save{position:static;width:100%;margin:0}.replace-combined-toggle{grid-column:1 / -1;display:flex!important;align-items:center;gap:7px;color:#aaa;font-size:11px;cursor:pointer}.replace-combined-toggle input{width:14px!important;height:14px;margin:0;accent-color:#a6e3a1}.dish-right-panel .replace-combined-toggle{position:absolute;left:-352px;bottom:-44px;width:324px;min-height:20px}@media(max-width:520px){.dish-right-panel .replace-combined-toggle{left:0;bottom:-44px;width:100%}}@media(max-width:520px){.dish-form{grid-template-columns:1fr!important;grid-template-rows:auto;column-gap:14px;min-height:0!important}.dish-form:after{display:none}.dish-form>.product-name-field,.dish-form>.product-photo-picker,.dish-form>.dish-photo-macro-table,.dish-form>.dish-ingredients-label,.dish-form>.dish-controls-row,.dish-form>.dish-add-product-link,.dish-summary-fields,.dish-action-buttons{grid-column:1;grid-row:auto;width:100%}.dish-form>.product-photo-picker,.dish-form>.dish-photo-macro-table{position:static}.dish-summary-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.dish-action-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}.dish-form{grid-template-columns:324px 220px!important;grid-template-rows:auto auto auto auto auto;column-gap:28px;row-gap:14px;min-height:0!important}.dish-form>h2{grid-column:1/-1;grid-row:1}.dish-form>.product-name-field{grid-column:1!important;grid-row:2!important;margin:0}.dish-right-panel{grid-column:2;grid-row:2 / 6;display:grid;grid-template-rows:140px auto auto 32px;gap:12px;align-content:start;width:220px}.dish-right-panel>.product-photo-picker{position:static;grid-row:1;width:220px;align-self:start;margin:0}.dish-right-panel .product-photo-button{position:relative;top:-5px;width:220px;height:150px;transform:none;border-radius:10px}.dish-right-panel>.dish-photo-macro-table{position:static;grid-row:2;width:220px;margin:0}.dish-right-panel>.dish-summary-fields{position:static;grid-row:3;width:220px;margin:0}.dish-right-panel>.dish-action-buttons{grid-row:4;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:220px}.dish-right-panel .dish-summary-cancel,.dish-right-panel .dish-summary-save{position:static;width:100%;margin:0}.product-add-form:not(.dish-form){grid-template-columns:minmax(0,1fr) 140px!important}.product-add-form:not(.dish-form)>h2{grid-column:1;grid-row:1}.product-add-form:not(.dish-form)>h2{grid-column:1/-1}.product-add-form:not(.dish-form)>.product-photo-picker{grid-column:2;grid-row:2;justify-self:center}.product-add-form:not(.dish-form)>.product-name-field{grid-column:1/-1!important;grid-row:2;width:50%!important}.product-add-form:not(.dish-form)>.product-name-field{align-self:start;transform:translateY(-18px)}.product-add-form:not(.dish-form)>.product-macros{grid-column:1/-1;grid-row:3;margin-top:0}.product-add-form:not(.dish-form)>.product-macros{grid-column:1/-1;grid-row:3;position:relative;top:-90px;width:50%;justify-self:start;grid-template-columns:repeat(3,minmax(0,1fr))!important}.product-add-form:not(.dish-form)>.product-macros input{height:32px!important;padding:7px 10px!important}.product-add-form:not(.dish-form)>.product-portion-row{grid-column:1/-1;grid-row:3;width:45%;justify-self:start;margin-left:50%}.product-add-form:not(.dish-form)>.product-portion-row label{width:100%;gap:6px}.product-add-form:not(.dish-form)>.product-portion-row .weight-input-wrap input{height:32px!important;padding:7px 48px 7px 10px!important}.product-calories-save-row{grid-column:1/-1;grid-row:4;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end}.product-add-form:not(.dish-form)>.product-calories-save-row{position:relative;top:0;grid-row:4;width:50%;justify-self:start}.product-add-form:not(.dish-form){position:relative;align-content:start}.product-add-form:not(.dish-form)>h2{align-self:start;height:19px;margin-bottom:0}.product-add-form:not(.dish-form)>.product-photo-picker{position:absolute;top:20px;left:auto;right:20px;width:220px;height:220px;grid-column:auto;grid-row:auto}.product-add-form:not(.dish-form)>.product-photo-picker .product-photo-button{width:220px;height:220px}.product-add-form:not(.dish-form) .product-photo-button{position:static;top:auto}.product-add-form:not(.dish-form)>.product-name-field{transform:none}.product-add-form:not(.dish-form)>.product-name-field{width:50%;box-sizing:border-box}.product-add-form:not(.dish-form)>.product-macros{top:0}.product-add-form:not(.dish-form)>.product-calories-save-row{top:0}.product-calories-save-row>label{min-width:0}.product-calories-save-row>.product-cancel-button{width:100%;height:32px;padding:7px 10px;border:0;border-radius:7px;background:#393939;color:#fff;font:inherit;font-size:12px;font-weight:600;cursor:pointer}.product-calories-save-row>.product-cancel-button:hover{background:#444}.product-calories-save-row>.save-button{width:100%;height:32px;margin:0;padding:7px 10px}@media(max-width:520px){.product-add-form:not(.dish-form){grid-template-columns:1fr!important}.product-add-form:not(.dish-form)>h2,.product-add-form:not(.dish-form)>.product-photo-picker,.product-add-form:not(.dish-form)>.product-name-field,.product-add-form:not(.dish-form)>.product-macros,.product-add-form:not(.dish-form)>.product-portion-row{grid-column:1!important}.product-add-form:not(.dish-form)>.product-photo-picker{grid-row:2}.product-add-form:not(.dish-form)>.product-name-field{grid-row:3;width:100%}.product-add-form:not(.dish-form)>.product-macros{grid-row:4}.product-add-form:not(.dish-form)>.product-portion-row{grid-row:5;width:100%}.product-add-form:not(.dish-form)>.product-calories-save-row{grid-row:6;width:100%}}.product-add-form:not(.dish-form)>.product-macros-weight-row{grid-column:1/-1}@media(max-width:520px){.product-add-form:not(.dish-form)>.product-macros-weight-row{grid-row:4;width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.product-add-form:not(.dish-form)>.product-macros-weight-row>.product-portion-row{grid-column:1/-1;width:100%;margin-top:4px}.product-add-form:not(.dish-form)>.product-calories-save-row{grid-row:5}}@media(max-width:520px){.product-add-form:not(.dish-form)>.product-photo-picker{position:relative;top:auto;left:auto;right:auto;width:100%;height:auto}.product-add-form:not(.dish-form)>.product-photo-picker .product-photo-button{width:140px;height:140px}}.database-builder-layout{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,620px);align-items:stretch;justify-content:center;gap:24px;width:100%;max-width:100%;box-sizing:border-box;overflow-x:visible}.page:has(.database-builder-layout){width:calc(100vw - 265px)!important;max-width:none!important;margin-left:265px!important;align-items:flex-start}.page:has(.database-builder-layout){overflow-x:clip}.page:has(.database-builder-layout)>.database-builder-layout{margin-left:auto;margin-right:auto}.database-builder-layout>.products-content,.database-builder-layout>.dishes-content{width:100%;min-width:0;margin:28px 0}.database-builder-layout>.products-content{padding-top:60px;box-sizing:border-box}.database-builder-layout>.products-content .product-add-form{width:100%;height:auto;margin-top:0;box-sizing:border-box}.database-builder-layout>.dishes-content{position:relative;padding-top:60px;box-sizing:border-box}.database-builder-layout>.dishes-content>.products-toolbar{position:absolute;top:0;left:0;right:0}.database-builder-layout>.dishes-content .dish-form{height:calc(100% - 60px)}.database-builder-layout>.dishes-content .dish-form{width:100%!important;box-sizing:border-box}.database-builder-layout.is-creating-product,.database-builder-layout.is-creating-dish{display:block;width:min(620px,100%);max-width:620px;margin:28px auto}.database-create-mode-toggle{display:flex;align-items:center;gap:5px;width:100%;min-height:32px;color:#777;font-size:12px}.database-create-mode-toggle button{padding:0;border:0;background:transparent;color:#777;font:inherit;cursor:pointer}.database-create-mode-toggle button.is-active{color:#eee}.product-add-form>.database-create-mode-toggle{grid-column:1/-1;grid-row:1;align-self:start;min-height:19px}.dish-form>.database-create-mode-toggle{grid-column:1/-1;grid-row:1;align-self:start;min-height:19px}.database-builder-layout.is-creating-product>.products-content,.database-builder-layout.is-creating-dish>.dishes-content{width:100%;margin:0;padding-top:12px}.database-builder-layout.is-creating-product>.products-content .product-add-form,.database-builder-layout.is-creating-dish>.dishes-content .dish-form{width:100%!important;height:auto;margin-top:0}.database-builder-layout.is-creating-dish>.dishes-content>.products-toolbar{display:none}.database-builder-layout:has(.dishes-content.is-editing-dish){display:block}.database-builder-layout:has(.dishes-content.is-editing-dish)>.products-content:not(.dishes-content){display:none}.database-builder-layout:has(.dishes-content.is-editing-dish)>.dishes-content{width:min(620px,calc(100% - 48px));margin:28px auto;padding-top:60px}.database-builder-layout:has(.dishes-content.is-editing-dish)>.dishes-content .dish-form{width:100%!important}.database-builder-layout:has(.dishes-content.is-editing-dish)>.dishes-content>.products-toolbar{display:none}.database-builder-layout:has(.dishes-content.is-adding-product)>.dishes-content>.products-toolbar{display:none}.database-builder-layout:has(.products-content.is-editing-product){display:block}.database-builder-layout:has(.products-content.is-editing-product)>.dishes-content{display:none}.database-builder-layout:has(.products-content.is-editing-product)>.products-content{width:min(620px,calc(100% - 48px));margin:28px auto;padding-top:60px}.database-builder-layout:has(.products-content.is-editing-product)>.products-content .product-add-form{width:100%!important}.database-builder-layout:has(.products-content.is-editing-product)>.products-content>.products-toolbar{display:none}.product-add-form:not(.dish-form):has(.product-portion-row .portion-dropdown),.database-builder-layout.is-creating-product:has(.product-portion-row .portion-dropdown),.database-builder-layout.is-creating-product:has(.product-portion-row .portion-dropdown)>.products-content,.product-add-form:not(.dish-form)>.product-portion-row:has(.portion-dropdown),.product-add-form:not(.dish-form) .weight-input-wrap:has(.portion-dropdown){overflow:visible!important;position:relative;z-index:100000}.product-add-form:not(.dish-form)>.product-macros-weight-row{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:65%;align-items:end}.product-add-form:not(.dish-form)>.product-macros-weight-row>.product-macros{display:contents;width:auto;margin:0;position:static}.product-add-form:not(.dish-form)>.product-macros-weight-row>.product-portion-row{display:block;grid-column:auto;grid-row:auto;width:auto;margin:0}.product-add-form:not(.dish-form)>.product-macros-weight-row>.product-portion-row{width:calc(100% + 8px)}.product-add-form:not(.dish-form)>.product-macros-weight-row>.product-portion-row label{width:100%;gap:6px}.product-add-form:not(.dish-form)>.product-macros-weight-row .weight-input-wrap input{height:32px!important;padding:7px 48px 7px 10px!important}.product-add-form:not(.dish-form)>.product-macros-weight-row{grid-template-columns:repeat(3,minmax(0,1fr));width:calc(100% - 240px)}.product-add-form:not(.dish-form)>.product-kcal-field{grid-column:1/-1;grid-row:2;width:calc((100% - 260px) / 3);margin-left:calc((200% - 460px) / 3);box-sizing:border-box;align-self:start;transform:translateY(-2px)}.product-add-form:not(.dish-form)>.product-kcal-field input{height:32px!important;padding:7px 10px!important;color:#999;cursor:default}.product-add-form:not(.dish-form){grid-template-columns:minmax(0,1fr) 240px!important}.product-add-form:not(.dish-form)>.product-name-field{grid-column:1/-1!important;grid-row:2;width:calc((200% - 490px) / 3)!important}.product-add-form:not(.dish-form)>.product-macros-weight-row{grid-row:3}.product-add-form:not(.dish-form)>.product-calories-save-row{grid-row:4;width:calc(100% - 240px)}@media(max-width:520px){.product-add-form:not(.dish-form)>.product-name-field{grid-column:1!important;grid-row:3;width:100%!important}.product-add-form:not(.dish-form)>.product-kcal-field{grid-column:1!important;grid-row:4;width:100%;margin-left:0}.product-add-form:not(.dish-form)>.product-macros-weight-row{grid-row:5}.product-add-form:not(.dish-form)>.product-calories-save-row{grid-row:6}}.product-add-form:not(.dish-form)>.product-calories-save-row>.product-portion-row{display:block;grid-column:auto;grid-row:auto;width:auto;margin:0}.product-add-form:not(.dish-form)>.product-calories-save-row>.product-portion-row label{width:100%;gap:6px}.product-add-form:not(.dish-form)>.product-calories-save-row .weight-input-wrap input{height:32px!important;padding:7px 48px 7px 10px!important}@media(max-width:1250px){.database-builder-layout{grid-template-columns:minmax(280px,38%) minmax(0,1fr);width:100%}}@media(max-width:900px){.database-builder-layout{grid-template-columns:1fr;max-width:760px}.database-builder-layout>.products-content,.database-builder-layout>.dishes-content{width:100%}}.dish-weight-mode-toggle{display:flex;align-items:center;gap:4px;color:#777}.dish-weight-mode-toggle button{padding:0;border:0;background:transparent;color:#777;font:inherit;cursor:pointer}.dish-weight-mode-toggle button.is-active{color:#eee}.dish-weight-mode-separator{color:#555}.dish-weight-mode-caption{color:#777}.dish-summary-input-wrap>.dish-weight-coefficient{right:26px;color:#63a8f8;font-size:10px}.dish-form>.dish-ingredients-label{grid-column:1;grid-row:3;margin:0;align-self:start}.dish-form>.dish-controls-row{grid-column:1!important;grid-row:auto!important;top:0;transform:none!important}.dish-form>.dish-first-controls-row{grid-row:4!important}.dish-form>.dish-add-product-link{grid-column:1;grid-row:auto;top:0}.dish-form:after{left:352px;top:20px;bottom:20px}.dish-form:after{z-index:0}.dish-form>.dish-ingredients-panel,.dish-form>.dish-right-panel{position:relative;z-index:1}@media(max-width:520px){.dish-form{grid-template-columns:1fr!important;grid-template-rows:auto;column-gap:14px}.dish-form:after{display:none}.dish-form>.product-name-field,.dish-form>.dish-ingredients-label,.dish-form>.dish-controls-row,.dish-form>.dish-add-product-link{grid-column:1;grid-row:auto;width:100%}.dish-right-panel{grid-column:1;grid-row:auto;width:100%;display:grid}.dish-right-panel>.product-photo-picker,.dish-right-panel>.dish-photo-macro-table,.dish-right-panel>.dish-summary-fields,.dish-right-panel>.dish-action-buttons{grid-column:1;width:100%}}.sidebar-fire-icon{display:grid;place-items:center;width:26px;height:26px;flex:none}.sidebar-fire-icon img{display:block;width:26px;height:26px;object-fit:contain}.sidebar-sport-icon{display:grid;place-items:center;width:22px;height:22px;flex:none}.sidebar-sport-icon img{display:block;width:22px;height:22px;object-fit:contain;filter:invert(1)}.sidebar>.side-item{padding-left:0}.dish-form>.dish-ingredients-panel{grid-column:1;grid-row:3 / 6;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;row-gap:12px;align-content:start;align-self:start;width:324px;min-width:0}.dish-ingredients-panel>.dish-ingredients-label{grid-column:1;grid-row:1;margin:0;position:static;align-self:start}.dish-ingredients-panel>.dish-ingredients-heading{grid-column:1;grid-row:1}.dish-ingredients-panel>.dish-first-controls-row{grid-column:1!important;grid-row:2!important;position:relative;top:0;transform:none!important}.dish-ingredients-panel>.dish-controls-row{grid-column:1!important;grid-row:auto!important;position:relative;top:0;transform:none!important}.dish-ingredients-panel>.dish-add-product-link{grid-column:1;grid-row:auto;position:relative;top:0;margin-top:0}.dish-ingredients-panel{height:100%;min-height:250px;max-height:300px;box-sizing:border-box;overflow-y:auto;overflow-x:hidden;padding-right:4px;scrollbar-width:thin;scrollbar-color:#555 transparent}.dish-ingredients-panel::-webkit-scrollbar{width:5px}.dish-ingredients-panel::-webkit-scrollbar-track{background:transparent}.dish-ingredients-panel::-webkit-scrollbar-thumb{border-radius:5px;background:#555}.dish-ingredients-panel:has(.portion-dropdown){overflow:auto}.dish-ingredients-panel:has(.portion-dropdown):not(:has(.dish-products-dropdown)){overflow:visible}html:has(.portion-dropdown),body:has(.portion-dropdown),.page:has(.portion-dropdown){overflow:hidden}@media(max-width:520px){.dish-form>.dish-ingredients-panel{grid-column:1;grid-row:auto;width:100%}.dish-ingredients-panel>.dish-first-controls-row,.dish-ingredients-panel>.dish-controls-row,.dish-ingredients-panel>.dish-add-product-link{grid-column:1!important;grid-row:auto!important;width:100%}}@media(min-width:521px){.dish-form{grid-template-rows:19px 49px auto!important;min-height:388px!important}.dish-form>.dish-ingredients-panel{grid-row:3!important}.dish-form>.dish-right-panel{position:absolute!important;top:-30px!important;left:0!important;grid-column:2!important;grid-row:2!important}}@media(min-width:521px){.dish-ingredients-panel>.dish-controls-row{width:calc(100% - 18px)!important}}@media(min-width:521px){.dish-right-panel>.dish-summary-fields,.dish-right-panel>.dish-action-buttons{grid-column:1!important}}@media(min-width:521px){.dish-form{width:min(100%,614px)!important;height:388px!important;max-height:388px!important}.dish-form>.dish-ingredients-panel{height:250px!important;min-height:0!important;max-height:250px!important}.dish-products-dropdown{right:auto;width:calc(166.6667% + 30px);z-index:100001!important}.dish-product-picker:has(.dish-products-dropdown){z-index:100000}.weight-input-wrap:has(.portion-dropdown){z-index:100000}.dish-products-dropdown .portion-options{max-height:300px}}.dish-card{position:relative}.dish-card-edit{position:absolute;right:16px;top:50%;display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:#888;opacity:0;pointer-events:none;transform:translateY(-50%);cursor:pointer}.dish-card:hover .dish-card-edit,.dish-card:focus-within .dish-card-edit{opacity:1;pointer-events:auto}.dish-card-edit:hover,.dish-products-dropdown .portion-options button.is-highlighted{background:#333;color:#fff}.products-toolbar .search-button{display:none!important}.products-toolbar .search-field{max-width:none;width:100%;border:0}.products-content.is-filtered-out,.dishes-content.is-filtered-out .dish-form,.dishes-content.is-filtered-out .dishes-grid{display:none!important}.database-filter-button{color:#aaa!important}.database-filter-button:hover{color:#fff!important}.search-field{position:relative}.database-filter-menu{position:absolute;top:42px;right:0;z-index:100020;display:grid;gap:8px;min-width:150px;padding:10px;background:#242424;border:1px solid #444;border-radius:8px;box-shadow:0 12px 30px #0008}.database-filter-menu label{display:flex;align-items:center;justify-content:flex-start;direction:ltr;gap:8px;color:#eee;font-size:12px;text-align:left;white-space:nowrap;cursor:pointer}.database-filter-menu input{flex:0 0 14px;width:14px;height:14px;margin:0;accent-color:#fff}.database-builder-layout>.dishes-content>.products-toolbar{justify-content:flex-start!important}.database-builder-layout>.dishes-content>.products-toolbar .search-field{width:min(100%,520px);margin-inline:0}.database-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:220px;color:#fff;text-align:center;font-size:18px;font-weight:600}.database-empty-state>span{color:#888;font-size:18px;font-weight:400}.database-empty-state button{min-width:0;padding:0;border:0;border-radius:0;background:transparent;color:#fff;font:inherit;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.database-empty-state button:after{content:"?"}.database-empty-state button:hover{background:transparent;color:#fff}.dish-card .product-card-info{display:grid;gap:4px;min-width:0;align-content:center}.dish-card .product-card-info span{white-space:nowrap}.database-builder-layout:has(>.products-content.is-filtered-out){grid-template-columns:minmax(0,620px);justify-content:start;transform:translate(200px)}.database-builder-layout:has(>.products-content.is-filtered-out)>.dishes-content{grid-column:1}.database-builder-layout:has(>.products-content.is-filtered-out) .dishes-grid .dish-card{width:100%!important;box-sizing:border-box}.database-builder-layout:has(>.products-content.is-filtered-out) .dishes-grid{width:100%!important}.database-builder-layout>.dishes-content>.products-toolbar{transform:none!important;transition:none!important}.database-builder-layout:not(:has(.product-add-form.is-open)){grid-template-columns:minmax(0,620px);justify-content:center;transform:none}.database-builder-layout:not(:has(.product-add-form.is-open))>.dishes-content{grid-column:1;grid-row:1;order:1}.database-builder-layout:not(:has(.product-add-form.is-open))>.products-content:not(.dishes-content){grid-column:1;grid-row:2;order:2;padding-top:0}.database-builder-layout:not(:has(.product-add-form.is-open))>.dishes-content>.products-toolbar{width:100%}.database-builder-layout:not(:has(.product-add-form.is-open)){overflow-x:hidden}.database-builder-layout:not(:has(.product-add-form.is-open)) .dishes-grid,.database-builder-layout:not(:has(.product-add-form.is-open)) .product-grid{width:100%!important}.database-builder-layout:not(:has(.product-add-form.is-open))>.dishes-content .dishes-grid{padding-top:0!important;margin-top:0!important}.page:has(.database-builder-layout),.database-builder-layout{overflow-x:clip!important}.database-sort-button{display:grid;place-items:center;width:28px;height:28px;margin-left:2px;padding:0;border:0;background:transparent;color:#aaa;cursor:pointer}.database-sort-button img{width:18px;height:18px;display:block;object-fit:contain;filter:invert(1);opacity:.667}.database-sort-button:hover img{filter:invert(1) brightness(1.45);opacity:1}.database-sort-menu{position:absolute;top:42px;right:0;z-index:100021;display:none;gap:5px;min-width:210px;padding:8px;background:#242424;border:1px solid #444;border-radius:8px;box-shadow:0 12px 30px #0008}.database-sort-menu.is-open{display:grid}.database-sort-option{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px;padding:3px 4px;color:#eee;font-size:12px}.database-sort-option>span{padding:4px 5px}.database-sort-direction,.database-sort-group{border:0;border-radius:0;background:transparent;color:#aaa;font:inherit;line-height:1;cursor:pointer}.database-sort-direction{display:flex;align-items:center;gap:2px;padding:4px 2px;font-size:15px}.database-sort-direction-arrow{display:inline-grid;place-items:center;min-width:12px;color:#aaa;transition:color .15s ease}.database-sort-direction-arrow:hover,.database-sort-direction-arrow.is-active{color:#fff}.database-sort-group{padding:7px 9px;text-align:left;font-size:12px}.database-sort-group:hover,.database-sort-group.is-active{background:#3a3a3a;color:#fff}.database-builder-layout.sort-products-first:not(:has(.product-add-form.is-open))>.products-content:not(.dishes-content){grid-row:1;order:1}.database-builder-layout.sort-products-first:not(:has(.product-add-form.is-open))>.dishes-content{grid-row:2;order:2}.database-builder-layout>.dishes-content>.products-toolbar .search-field:has(.database-filter-button):not(:has(.database-sort-button)):after{content:"";display:block;flex:0 0 28px;height:28px}.page:has(.database-builder-layout){width:calc(100% - 265px)!important;margin-left:265px!important;box-sizing:border-box;min-width:0}.database-builder-layout:not(:has(.product-add-form.is-open))>.dishes-content .dishes-grid{margin-top:0!important;padding-top:0!important;gap:12px}.database-builder-layout:not(:has(.product-add-form.is-open))>.products-content .product-grid{padding-top:0!important;gap:12px}.database-builder-layout.is-loading-dishes>.products-content:not(.dishes-content) .product-grid{display:none}.database-builder-layout.is-loading-dishes>.products-content,.database-builder-layout.is-loading-dishes>.dishes-content{visibility:hidden}.database-loading-overlay{display:none}.database-builder-layout.is-loading-dishes{position:relative;min-height:420px}.database-builder-layout.is-loading-dishes .database-loading-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:grid;place-items:center;visibility:visible}.loading-test-page{display:grid;place-items:center;width:100%;height:calc(100vh - 140px);min-height:0;box-sizing:border-box}.loading-dots{position:relative;width:72px;height:72px;margin:auto;align-self:center;justify-self:center;animation:loading-dots-rotate 1.2s linear infinite}.loading-dots span{position:absolute;width:5px;height:5px;border-radius:50%;background:#aaa;transform:translate(-50%,-50%)}.loading-dots span:nth-child(2){left:calc(50% + 17px);top:26px}.loading-dots span:nth-child(3){left:calc(50% + 17px);top:46px}.loading-dots span:nth-child(4){left:50%;top:56px}.loading-dots span:nth-child(5){left:calc(50% - 17px);top:46px}.loading-dots span:nth-child(6){left:calc(50% - 17px);top:26px}.loading-dots span:nth-child(2n){opacity:.42}.loading-dots span:nth-child(4n){background:#fff;opacity:.9}.loading-dots .loading-dots-center{left:50%;top:50%;background:#fff;opacity:1;transform:translate(-50%,-50%)}@keyframes loading-dots-rotate{to{transform:rotate(360deg)}}.database-pagination{order:3;display:flex;align-items:center;justify-content:center;gap:18px;margin:22px auto 0;color:#cfd5df}.database-pagination button{display:grid;place-items:center;min-width:42px;height:42px;padding:0;border:0;border-radius:50%;background:transparent;color:#cfd5df;font:inherit;font-size:18px;cursor:pointer}.database-pagination button:hover{color:#fff}.database-pagination button.is-active{background:#303033;color:#f2f2f2}.database-pagination .next-page-button{width:auto;min-width:0;border-radius:0;font-size:18px}.database-pagination .next-page-button:hover{text-decoration:underline}.database-builder-layout:not(:has(.product-add-form.is-open)) .product-card{min-width:0;box-sizing:border-box}.loading-dots{animation-duration:.7s}.loading-dots span:after{content:"";position:absolute;left:-12px;top:1px;width:12px;height:3px;border-radius:999px;background:linear-gradient(90deg,transparent,rgba(170,170,170,.7));filter:blur(1px);opacity:.55;transform-origin:right center}.loading-dots span:nth-child(4n):after{background:linear-gradient(90deg,transparent,rgba(255,255,255,.85))}.loading-dots span:nth-child(2n):after{opacity:.3}.loading-dots span:nth-child(2):after{transform:rotate(60deg)}.loading-dots span:nth-child(3):after{transform:rotate(120deg)}.loading-dots span:nth-child(4):after{transform:rotate(180deg)}.loading-dots span:nth-child(5):after{transform:rotate(240deg)}.loading-dots span:nth-child(6):after{transform:rotate(300deg)}.loading-dots span:after{opacity:.8;background:linear-gradient(90deg,transparent,rgba(190,190,190,.95))}.loading-dots span:nth-child(4n):after{background:linear-gradient(90deg,transparent,#fff)}.loading-dots span:nth-child(2n):after{opacity:.5}.loading-dots span:after{left:-16px;top:0;width:16px;height:4px;border-radius:999px;filter:blur(1.4px);background:linear-gradient(90deg,transparent 0%,rgba(180,180,180,.15) 35%,rgba(220,220,220,.9) 100%)}.loading-dots span:nth-child(4n):after{background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.2) 35%,#fff 100%)}.loading-dots span:nth-child(2){left:calc(50% + 10px);top:18.7px}.loading-dots span:nth-child(3){left:calc(50% + 17px);top:26px}.loading-dots span:nth-child(4){left:calc(50% + 20px);top:36px}.loading-dots span:nth-child(5){left:calc(50% + 17px);top:46px}.loading-dots span:nth-child(6){left:calc(50% + 10px);top:53.3px}.loading-dots span:nth-child(7){left:50%;top:56px}.loading-dots span:nth-child(8){left:calc(50% - 10px);top:53.3px}.loading-dots span:nth-child(9){left:calc(50% - 17px);top:46px}.loading-dots span:nth-child(10){left:calc(50% - 20px);top:36px}.loading-dots span:nth-child(11){left:calc(50% - 17px);top:26px}.loading-dots span:nth-child(12){left:calc(50% - 10px);top:18.7px}.loading-dots span:nth-child(2):after{transform:rotate(30deg)}.loading-dots span:nth-child(3):after{transform:rotate(60deg)}.loading-dots span:nth-child(4):after{transform:rotate(90deg)}.loading-dots span:nth-child(5):after{transform:rotate(120deg)}.loading-dots span:nth-child(6):after{transform:rotate(150deg)}.loading-dots span:nth-child(7):after{transform:rotate(180deg)}.loading-dots span:nth-child(8):after{transform:rotate(210deg)}.loading-dots span:nth-child(9):after{transform:rotate(240deg)}.loading-dots span:nth-child(10):after{transform:rotate(270deg)}.loading-dots span:nth-child(11):after{transform:rotate(300deg)}.loading-dots span:nth-child(12):after{transform:rotate(330deg)}.loading-dots span:nth-child(1){left:50%;top:16px}.loading-dots span:nth-child(2){left:calc(50% + 17px);top:46px}.loading-dots span:nth-child(3){left:calc(50% - 17px);top:46px}.loading-dots span:nth-child(1):after{transform:rotate(0)}.loading-dots span:nth-child(2):after{transform:rotate(120deg)}.loading-dots span:nth-child(3):after{transform:rotate(240deg)}.loading-dots{animation:loading-dots-rotate .75s linear infinite}.loading-dots span:after{left:-24px;width:24px}.loading-dots span:after{left:-19px;top:-5px;width:20px;height:12px;background:transparent;border:2px solid rgba(205,205,205,.8);border-right-color:transparent;border-bottom-color:transparent;border-radius:50%;filter:blur(1px);opacity:.75}.loading-dots span:nth-child(4n):after{background:transparent;border-top-color:#fff;border-left-color:#fff}.loading-dots span:nth-child(2n):after{opacity:.45}.loading-dots{animation:none}.loading-dots svg{display:block;width:100%;height:100%;overflow:visible}.loading-dots-rotor{transform-origin:36px 36px;animation:loading-dots-rotate .75s linear infinite}.loading-dot{fill:#cfcfcf}.loading-dot-trail{fill:none;stroke:#aaa;stroke-linecap:round;filter:blur(1px)}.loading-dot-trail-long{stroke-width:1;opacity:.2}.loading-dot-trail-mid{stroke-width:1.7;opacity:.4}.loading-dot-trail-short{stroke-width:2.4;opacity:.7}.loading-dot-trail-short{stroke-width:4.5;opacity:.9}.loading-dot-trail{filter:blur(.55px)}.loading-dot-trail-long{stroke-width:.9;opacity:.18}.loading-dot-trail-mid{stroke-width:1.5;opacity:.38}.loading-dot-trail-short{stroke-width:2.8;opacity:.72}.loading-dots-outer-rotor{transform-origin:36px 36px;animation:loading-dots-rotate-reverse 1s linear infinite}.loading-dot-outer{fill:#888;opacity:.4}.loading-dot-outer-trail{fill:none;stroke:#777;stroke-width:1.4;stroke-linecap:round;opacity:.3;filter:blur(.6px)}@keyframes loading-dots-rotate-reverse{to{transform:rotate(-360deg)}}.nutrition-loading-page{position:relative;display:block}.nutrition-loading-page .loading-dots{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.nutrition-loading-caption{position:absolute;left:50%;top:calc(50% + 50px);transform:translate(-50%);color:#aaa;font-size:20px;line-height:1;white-space:nowrap}.nutrition-loading-page .loading-dots-rotor{animation-duration:.85s}.database-builder-layout.is-loading-dishes .database-loading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;height:calc(100vh - 140px);min-height:0;box-sizing:border-box;transform:none}html:has(.database-builder-layout.is-loading-dishes),body:has(.database-builder-layout.is-loading-dishes){overflow:hidden}.page:has(.database-builder-layout.is-loading-dishes){overflow:hidden!important}.database-builder-layout.is-loading-dishes,.database-builder-layout.is-loading-dishes *{scrollbar-width:none}.database-builder-layout.is-loading-dishes *::-webkit-scrollbar{display:none}.database-builder-layout.is-loading-dishes .dish-ingredients-panel{overflow:hidden!important}.loading-dots-outer-rotor{display:none}.database-builder-layout:not(:has(.product-add-form.is-open)) .product-card .product-card-info{display:grid;gap:4px;align-content:center;min-width:0}.database-builder-layout:not(:has(.product-add-form.is-open)) .product-card .product-card-info b{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.35}.database-builder-layout:not(:has(.product-add-form.is-open)) .product-card .product-card-info span{line-height:1.3}.database-builder-layout:not(:has(.product-add-form.is-open)){row-gap:0}.database-builder-layout:not(:has(.product-add-form.is-open))>.dishes-content{margin-bottom:0}.database-builder-layout:not(:has(.product-add-form.is-open))>.products-content:not(.dishes-content){margin-top:12px}.database-builder-layout.sort-products-first:not(:has(.product-add-form.is-open)){position:relative}.database-builder-layout.sort-products-first:not(:has(.product-add-form.is-open))>.dishes-content{position:static;padding-top:0}.database-builder-layout.sort-products-first:not(:has(.product-add-form.is-open))>.dishes-content>.products-toolbar{position:absolute;top:28px;left:50%;right:auto;width:620px;transform:translate(-50%)!important}.database-builder-layout.sort-products-first:not(:has(.product-add-form.is-open))>.products-content:not(.dishes-content){padding-top:60px}.scroll-top-button{position:fixed;right:24px;bottom:24px;z-index:3000;display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid #444;border-radius:8px;background:#242424;color:#ddd;box-shadow:0 8px 24px #0008;cursor:pointer;opacity:0;transform:translateY(calc(100% + 24px));pointer-events:none;transition:opacity .28s ease,transform .28s ease,background .18s ease,color .18s ease}.scroll-top-button.is-visible{opacity:1;transform:translateY(0);pointer-events:auto}.scroll-top-button:hover{background:#333;color:#fff}.tabs-settings-button{grid-column:1/-1!important;width:100%;box-sizing:border-box}.product-add-form.is-open:before{content:"Добавить";grid-column:1/-1;grid-row:1;align-self:start;color:#eee;font-size:17px;font-weight:600;line-height:1.3}.products-content.is-adding-product>.product-add-form:not(.dish-form)>h2,.dishes-content.is-adding-product>.dish-form>h2{display:none}.database-create-mode-toggle{display:inline-flex;align-items:center;justify-self:start;gap:7px;width:max-content;min-height:24px;padding:0;border:0;background:transparent;color:#888;font-size:15px}.database-create-mode-toggle button{padding:0;border:0;background:transparent;color:#888;font:inherit;cursor:pointer;transition:color .15s ease}.database-create-mode-toggle button.is-active{color:#f2f2f2}.database-create-mode-toggle button:hover:not(.is-active){color:#c8c8c8}.database-create-mode-separator{color:#666;-webkit-user-select:none;user-select:none;pointer-events:none}.dish-ingredients-panel>.dish-ingredients-heading{grid-column:1;grid-row:1;display:flex;align-items:center;gap:12px;min-height:24px}.dish-ingredients-heading .dish-ingredients-label{position:static;margin:0;color:#eee;font-size:0;line-height:1}.dish-ingredients-heading .dish-ingredients-label:after{content:"Состав";font-size:15px}.dish-ingredients-heading .database-create-mode-toggle{display:inline-flex}.dish-ingredients-heading .database-create-mode-toggle{transform:none}.dish-form.is-product-mode .dish-controls-row,.dish-form.is-product-mode .dish-add-product-link{display:none}.database-builder-layout>.dishes-content .dish-form.is-product-mode{display:grid!important;grid-template-columns:324px 220px!important;grid-template-rows:19px 49px auto!important;height:auto!important;max-height:none!important;min-height:0!important;align-self:start!important;align-content:start!important;padding-bottom:20px!important}.dish-form.is-product-mode:after{display:block;top:20px;bottom:20px}.dish-form.is-product-mode>.product-name-field{grid-column:1!important;grid-row:2!important}.dish-form.is-product-mode>.dish-ingredients-panel{grid-column:1!important;grid-row:3!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;align-self:start!important;align-content:start!important}.dish-form.is-product-mode>.dish-ingredients-panel>.dish-ingredients-heading{grid-column:1!important;grid-row:1!important}.dish-form.is-product-mode>.dish-ingredients-panel>.product-inline-macros{grid-column:1!important;grid-row:2!important}.dish-form.is-product-mode>.dish-ingredients-panel>.product-meal-field{grid-column:1!important;grid-row:2!important}.dish-form.is-product-mode>.dish-right-panel{position:static!important;top:auto!important;left:auto!important;grid-column:2!important;grid-row:1 / 4!important;grid-template-rows:140px auto auto;align-self:start!important;height:auto!important;min-height:0!important}.dish-form.is-product-mode>.dish-right-panel>.dish-summary-fields{display:grid!important;grid-row:2}.dish-form.is-product-mode .dish-summary-fields>label:first-child{display:none}.dish-form.is-product-mode .dish-summary-fields>label:nth-child(2){grid-column:2;grid-row:1}.dish-form.is-product-mode .dish-summary-fields>.product-portion-calories{grid-column:1;grid-row:1}.product-portion-calories input{height:32px!important;box-sizing:border-box;padding:7px 10px!important}.dish-form.is-product-mode>.dish-right-panel>.dish-action-buttons{grid-row:3;margin-top:0!important}@media(max-width:699px){.database-builder-layout>.dishes-content .dish-form.is-product-mode{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important}.dish-form.is-product-mode>.dish-right-panel{grid-column:1!important;grid-row:auto!important}}.product-inline-macros{grid-column:1;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end;margin-top:6px}.product-inline-macros label{position:relative;display:flex;flex-direction:column;gap:6px;color:#aaa;font-size:13px;min-width:0}.product-inline-macros input{width:100%;box-sizing:border-box;padding:7px 10px;border:1px solid #3d3d3d;border-radius:7px;background:#222;color:#eee;font:inherit;font-size:12px}.dish-form .product-inline-macros input{padding-right:42px!important}.product-inline-macros .macro-field-caption{position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#888;font-size:11px;line-height:1;pointer-events:none;-webkit-user-select:none;user-select:none}@media(min-width:700px){.database-builder-layout>.dishes-content .dish-form.is-product-mode{--product-left-column:227px;grid-template-columns:var(--product-left-column) 220px!important;grid-template-rows:19px 49px minmax(54px,auto) auto auto!important;width:calc(100% - 97px)!important}.dish-form.is-product-mode:after{left:calc(var(--product-left-column) + 28px)}.dish-form.is-product-mode>.product-name-field{width:100%;min-width:0}.dish-form.is-product-mode>.dish-ingredients-panel,.dish-form.is-product-mode>.dish-right-panel{display:contents!important}.dish-form.is-product-mode>.dish-ingredients-panel>.dish-ingredients-heading{grid-column:1!important;grid-row:3!important;align-self:start}.dish-form.is-product-mode>.dish-ingredients-panel>.product-meal-field{grid-column:1!important;grid-row:4!important;align-self:start}.dish-form.is-product-mode>.dish-ingredients-panel>.product-inline-macros{grid-column:1!important;grid-row:5 / 7!important;grid-template-rows:subgrid;row-gap:inherit;margin-top:0;align-self:stretch}.dish-form.is-product-mode>.dish-right-panel>.product-photo-picker{grid-column:2!important;grid-row:1 / 4!important}.dish-form.is-product-mode>.dish-right-panel>.dish-summary-fields{grid-column:2!important;grid-row:4!important;align-self:end}.dish-form.is-product-mode>.dish-right-panel>.dish-action-buttons{grid-column:2!important;grid-row:5!important;align-self:end}.dish-form.is-product-mode .product-inline-macros label,.dish-form.is-product-mode .dish-summary-fields label{font-size:11px;line-height:16px;gap:6px}.dish-form.is-product-mode .product-inline-macros input,.dish-form.is-product-mode .dish-summary-fields input{height:32px!important;box-sizing:border-box}}.product-meal-field{display:grid;gap:6px;min-width:0;color:#aaa;font-size:11px;line-height:16px}.product-meal-field select{width:100%;height:32px;box-sizing:border-box;padding:6px 32px 6px 10px;border:1px solid #3d3d3d;border-radius:7px;background:#222;color:#eee;font:inherit;cursor:pointer}.product-inline-calories{grid-column:1/-1;color:#aaa;font-size:13px}.product-inline-calories b{color:#eee;font-size:16px}.product-name-picker-menu{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:100001;display:none;max-height:220px;overflow:auto;padding:4px;background:#242424;border:1px solid #444;border-radius:7px;box-shadow:0 12px 30px #0008}.product-name-picker-menu.is-open{display:grid;gap:2px}.product-name-picker-menu button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:8px 10px;border:0;border-radius:5px;background:transparent;color:#eee;font:inherit;font-size:12px;text-align:left;cursor:pointer}.product-name-picker-menu button:hover,.product-name-picker-menu button.is-highlighted{background:#333}.product-name-picker-menu small{color:#888;font-size:11px}.product-name-picker-menu{scrollbar-width:thin;scrollbar-color:#3d3d3d transparent}.product-name-picker-menu::-webkit-scrollbar{width:6px}.product-name-picker-menu::-webkit-scrollbar-track{background:transparent}.product-name-picker-menu::-webkit-scrollbar-thumb{background:#3d3d3d;border-radius:999px}.dish-form.is-product-mode:before{display:none!important}.dish-form.is-product-mode>.product-card-heading{display:flex!important;align-items:center;justify-content:space-between;grid-column:1!important;grid-row:1!important;width:220px;max-width:100%;min-height:22px;color:#eee;font-size:17px;font-weight:600;line-height:1.3}.product-card-heading .product-actions-trigger{height:22px}.product-actions-menu-wrap{position:relative;display:flex;align-items:center;justify-content:center;z-index:100300}.product-actions-trigger{display:grid;place-items:center;width:26px;height:32px;padding:0;border:0;border-radius:6px;background:transparent;color:#888;cursor:pointer}.product-actions-trigger:hover{color:#eee;background:#ffffff08}.product-actions-menu{position:absolute;right:0;top:calc(100% + 6px);width:200px;padding:4px;border:1px solid #414141;border-radius:8px;background:#252525;box-shadow:0 8px 28px #0006}.product-actions-menu>button{display:flex;align-items:center;gap:8px;width:100%;min-height:34px;padding:7px 8px;border:0;border-radius:5px;background:transparent;color:#ddd;font:inherit;font-size:11px;cursor:pointer;text-align:left}.product-actions-menu>button:hover{background:#ffffff08}.product-actions-menu>button:disabled{opacity:.6;cursor:wait}.product-actions-menu kbd{margin-left:auto;color:#888;font:inherit;font-size:9px}.product-actions-menu p{margin:4px 8px 7px;color:#df9696;font-size:10px;line-height:1.4}.product-actions-trigger.is-updating svg,.product-actions-menu .is-updating svg{animation:health-sync-spin .8s linear infinite}.fire-database-constructor-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:flex;justify-content:center;align-items:center;overflow:auto;padding:20px;background:#000a}.fire-database-constructor-overlay .database-content-shell{width:min(760px,100%);margin:0;padding:0}.fire-database-constructor-overlay .database-food-heading{display:none}.fire-database-constructor-overlay:not(:has(.dish-form.is-open)){display:none!important}.fire-database-constructor-overlay .products-toolbar,.fire-database-constructor-overlay .product-grid,.fire-database-constructor-overlay .database-pagination,.fire-database-constructor-overlay .database-empty-state{display:none!important}.fire-database-constructor-overlay .database-builder-layout{display:block;width:100%;max-width:none;margin:0}.fire-database-constructor-overlay .database-builder-layout>.dishes-content{width:100%;margin:0;padding-top:0}.fire-database-constructor-overlay .database-builder-layout>.dishes-content>.dish-form{margin:0 auto}.fire-database-constructor-overlay .database-builder-layout.is-creating-dish{width:min(614px,100%);max-width:100%;margin:0 auto}.fire-database-constructor-overlay .database-builder-layout.is-creating-dish .dish-form{width:min(614px,100%)!important;max-width:100%;margin:0 auto}.fire-database-constructor-overlay .database-builder-layout.is-creating-dish .dish-form.is-product-mode{width:min(514px,100%)!important;max-width:100%;margin-inline:auto;justify-self:center}.fire-database-constructor-overlay .database-builder-layout.is-creating-dish .dish-form.is-product-mode{width:min(500px,100%)!important}.fire-database-constructor-overlay .dish-form.is-product-mode>.dish-right-panel>.product-photo-picker{position:absolute!important;top:20px!important;right:20px!important;left:auto!important;grid-column:auto!important;grid-row:auto!important;width:220px!important;height:150px!important;margin:0!important}.fire-database-constructor-overlay .dish-form.is-product-mode>.dish-right-panel>.product-photo-picker .product-photo-button{width:220px!important;height:150px!important}.fire-database-constructor-overlay .dish-form.is-product-mode{grid-template-columns:minmax(0,220px) 220px!important;grid-template-rows:19px 49px 24px 54px 36px 36px!important;grid-auto-rows:min-content!important;column-gap:20px!important;row-gap:4px!important;min-height:0!important;height:auto!important;align-content:start!important;padding-top:12px!important;padding-bottom:12px!important}.fire-database-constructor-overlay .dish-form.is-product-mode>.dish-ingredients-panel>.product-meal-field{grid-column:1!important;grid-row:4!important;align-self:start!important}.fire-database-constructor-overlay .dish-form.is-product-mode>.dish-ingredients-panel>.product-inline-macros{grid-column:1!important;grid-row:5 / 7!important;align-self:start!important;margin-top:0!important}.fire-database-constructor-overlay .dish-form.is-product-mode>.dish-right-panel>.dish-summary-fields{width:220px!important;grid-column:2!important;grid-row:5!important;align-self:start!important}.fire-database-constructor-overlay .dish-form.is-product-mode>.dish-right-panel>.dish-action-buttons{width:220px!important;grid-column:2!important;grid-row:6!important;align-self:start!important}@media(max-width:700px){.fire-database-constructor-overlay{align-items:flex-start;padding:12px}.fire-database-constructor-overlay .database-content-shell{width:100%}}@media(min-width:701px){.database-builder-layout:has(>.products-content.is-filtered-out){transform:none!important}.fire-database-constructor-overlay .dish-form.is-product-mode{display:grid!important;grid-template-columns:220px 220px!important;grid-template-rows:24px 49px max-content!important;grid-auto-rows:max-content!important;column-gap:20px!important;row-gap:10px!important;width:500px!important;height:auto!important;min-height:0!important;padding:20px 20px 0!important;align-content:start!important;align-items:start!important}.fire-database-constructor-overlay .dish-form.is-product-mode:before{grid-column:1!important;grid-row:1!important;align-self:start!important}.fire-database-constructor-overlay .dish-form.is-product-mode:after{left:250px!important;top:20px!important;bottom:20px!important}.fire-database-constructor-overlay .dish-form.is-product-mode>.product-name-field{grid-column:1!important;grid-row:2!important;position:static!important;width:220px!important;margin:0!important}.fire-database-constructor-overlay .dish-form.is-product-mode>.dish-ingredients-panel{display:grid!important;grid-column:1!important;grid-row:3!important;grid-template-columns:1fr!important;grid-template-rows:auto auto auto!important;gap:8px!important;width:220px!important;height:auto!important;min-height:0!important;overflow:visible!important;align-content:start!important}.fire-database-constructor-overlay .dish-form.is-product-mode>.dish-ingredients-panel>.dish-ingredients-heading{position:static!important;grid-column:1!important;grid-row:1!important;width:220px!important;height:auto!important}.fire-database-constructor-overlay .dish-form.is-product-mode>.dish-ingredients-panel>.product-meal-field{position:static!important;grid-column:1!important;grid-row:2!important;width:220px!important}.fire-database-constructor-overlay .dish-form.is-product-mode>.dish-ingredients-panel>.product-inline-macros{position:static!important;grid-column:1!important;grid-row:3!important;width:220px!important;height:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,32px)!important;gap:8px 12px!important;margin:0!important}.fire-database-constructor-overlay .dish-form.is-product-mode>.dish-right-panel{display:grid!important;grid-column:2!important;grid-row:1 / 4!important;grid-template-columns:1fr!important;grid-template-rows:150px max-content max-content!important;gap:10px!important;width:220px!important;height:max-content!important;min-height:0!important;position:static!important;align-content:start!important}.fire-database-constructor-overlay .dish-form.is-product-mode>.dish-right-panel>.product-photo-picker{position:static!important;grid-column:1!important;grid-row:1!important;width:220px!important;height:150px!important}.fire-database-constructor-overlay .dish-form.is-product-mode>.dish-right-panel>.product-photo-picker .product-photo-button{width:220px!important;height:150px!important}.fire-database-constructor-overlay .dish-form.is-product-mode>.dish-right-panel>.dish-summary-fields{position:static!important;grid-column:1!important;grid-row:2!important;width:220px!important;margin:0!important}.fire-database-constructor-overlay .dish-form.is-product-mode>.dish-right-panel>.dish-action-buttons{position:static!important;grid-column:1!important;grid-row:3!important;width:220px!important;margin:0!important}.fire-database-constructor-overlay .dish-form.is-product-mode>.product-name-field{position:relative!important;z-index:100100!important}.fire-database-constructor-overlay .dish-form.is-product-mode .product-name-picker-menu{top:calc(100% + 4px)!important;left:0!important;right:0!important;z-index:100200!important}.fire-database-constructor-overlay .dish-form.is-product-mode,.fire-database-constructor-overlay .database-builder-layout,.fire-database-constructor-overlay .database-builder-layout>.dishes-content{overflow:visible!important}}.dish-form .product-name-field{position:relative}.dish-form .product-name-field:after{content:"";position:absolute;right:13px;bottom:13px;width:7px;height:7px;border-right:1.5px solid #8a8a8a;border-bottom:1.5px solid #8a8a8a;transform:rotate(45deg);pointer-events:none}.dish-form .product-name-input{padding-right:34px!important}.dish-meal-field{display:grid;gap:6px;color:#999;font-size:11px;line-height:16px}.dish-meal-field select{width:100%;height:32px;box-sizing:border-box;padding:6px 32px 6px 10px;border:1px solid #3d3d3d;border-radius:7px;background:#222;color:#eee;font:inherit;cursor:pointer}@media(min-width:701px){.fire-database-constructor-overlay .dish-form:not(.is-product-mode)>.product-name-field{width:217px!important}.fire-database-constructor-overlay .dish-form:not(.is-product-mode)>.dish-meal-field{position:absolute;top:49px;left:247px;width:97px;z-index:2}}@media(max-width:700px){.dish-meal-field{width:100%}}.dish-form .product-name-field:after{right:10px;bottom:10px;width:16px;height:10px;border:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M2 2l6 6 6-6' fill='none' stroke='%23999' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;transform:none}.dish-form .product-name-clear{position:absolute;right:6px;bottom:3px;width:28px;height:28px;display:grid;place-items:center;padding:0;border:0;border-radius:5px;background:transparent;color:#aaa;opacity:0;pointer-events:none;cursor:pointer;transition:opacity .12s ease,color .12s ease}.dish-form .product-name-clear svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.dish-form .product-name-field.has-selected-name:after{opacity:0}.dish-form .product-name-field.has-selected-name .product-name-clear{opacity:1;pointer-events:auto}.dish-form .product-name-clear:hover{color:#f1f1f1;background:#333}@media(min-width:701px){.fire-database-constructor-overlay .dish-form.is-product-mode{height:fit-content!important;min-height:0!important;max-height:none!important;margin-bottom:0!important;padding-bottom:0!important}.fire-database-constructor-overlay .dish-form.is-product-mode>.dish-ingredients-panel,.fire-database-constructor-overlay .dish-form.is-product-mode>.dish-right-panel{height:fit-content!important;min-height:0!important;max-height:none!important}}.calendar-year{color:#777;font-size:13px}.calendar-card{margin-top:26px;padding:24px;background:#181818;border:1px solid #2b2b2b;border-radius:12px}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.calendar-toolbar h2{margin:0;font-size:18px;font-weight:500}.calendar-toolbar button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:8px;background:transparent;color:#aaa;cursor:pointer}.calendar-toolbar button:hover{background:#292929;color:#fff}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;text-align:center}.calendar-weekdays{margin-bottom:8px;color:#777;font-size:11px}.calendar-days span{display:grid;place-items:center;min-height:42px;border-radius:9px;color:#ddd;font-size:13px}.calendar-days span.is-today{background:#c89dcf;color:#171717;font-weight:700}.nutrition-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 28px;align-items:start}.nutrition-page>.page-header{grid-column:1/-1;width:100%}.nutrition-page>.daily-card,.nutrition-page>.meal-list{width:100%;margin-left:0;margin-right:0}.nutrition-page>.daily-card{grid-column:2}.nutrition-page>.meal-list{grid-column:1;grid-row:2;margin-top:26px}@media(max-width:700px){.nutrition-page{display:block}.nutrition-page>.daily-card,.nutrition-page>.meal-list{width:100%}}@media(max-width:520px){.calendar-page{width:calc(100% - 30px)}.calendar-card{padding:16px}.calendar-grid{gap:4px}.calendar-days span{min-height:36px}}.calendar-page{width:min(760px,calc(100% - 48px))}.calendar-card{margin-top:0;padding:24px 28px 30px;background:#181818;border:0;border-radius:0}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.calendar-toolbar h2{margin:0;color:#aaa;font-size:28px;font-weight:400}.calendar-navigation{display:flex;align-items:center;gap:20px}.calendar-navigation button{display:grid;place-items:center;width:auto;height:34px;padding:0;border:0;border-radius:8px;background:transparent;color:#aaa;cursor:pointer}.calendar-navigation button:hover{color:#fff}.calendar-navigation .calendar-today-button{font-size:25px}.calendar-grid{gap:0}.calendar-weekdays{margin-bottom:8px;color:#aaa;font-size:21px}.calendar-days span{min-height:66px;border-radius:0;color:#ddd;font-size:27px;align-content:center}.calendar-days span.is-outside{color:#454545}.calendar-days span.is-today{background:transparent;color:#1597ed;font-weight:600}@media(max-width:700px){.calendar-page{width:100%}.calendar-card{padding:18px 12px 24px}.calendar-toolbar h2{font-size:23px}.calendar-navigation{gap:10px}.calendar-navigation .calendar-today-button{font-size:20px}.calendar-weekdays{font-size:17px}.calendar-days span{min-height:54px;font-size:23px}}.date-picker{position:relative}.date-picker-trigger{font:inherit;font-size:16px;padding:9px 12px;border:1px solid #363636;border-radius:7px;background:#191919;color:#ddd;cursor:pointer}.date-picker-trigger:hover{border-color:#777}.date-picker-popover{position:absolute;top:calc(100% + 10px);right:0;z-index:20;width:520px;padding:24px 28px 30px;background:#181818;border:1px solid #343434;border-radius:12px;box-shadow:0 20px 70px #000b}.date-picker-popover .calendar-toolbar{margin-bottom:22px}.date-picker-popover .calendar-days button{display:grid;place-items:center;width:100%;min-height:54px;border:0;border-radius:0;background:transparent;color:#ddd;font:inherit;font-size:22px;cursor:pointer}.date-picker-popover .calendar-days button:hover{background:#292929}.date-picker-popover .calendar-days button.is-outside{color:#454545}.date-picker-popover .calendar-days button.is-today{background:transparent;color:#1597ed;font-weight:600}@media(max-width:700px){.date-picker-popover{right:auto;left:50%;transform:translate(-50%);width:min(520px,calc(100vw - 36px))}}.nutrition-page>.calendar-page{grid-column:2;grid-row:1;width:100%;margin-bottom:8px}.nutrition-page>.daily-card{grid-column:2;grid-row:2}.nutrition-page>.meal-list{grid-column:1;grid-row:1 / span 2}@media(max-width:700px){.nutrition-page>.calendar-page,.nutrition-page>.daily-card,.nutrition-page>.meal-list{grid-column:auto;grid-row:auto}}.nutrition-page{grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr)}@media(max-width:700px){.nutrition-page{grid-template-columns:1fr}}.nutrition-page>.calendar-page .calendar-card{padding:14px 18px 18px}.nutrition-page>.calendar-page .calendar-toolbar{margin-bottom:12px}.nutrition-page>.calendar-page .calendar-toolbar h2{font-size:21px}.nutrition-page>.calendar-page .calendar-navigation{gap:10px}.nutrition-page>.calendar-page .calendar-navigation .calendar-today-button{font-size:18px}.nutrition-page>.calendar-page .calendar-weekdays{margin-bottom:4px;font-size:15px}.nutrition-page>.calendar-page .calendar-days span{min-height:44px;font-size:20px}.nutrition-page>.calendar-page{width:88%;justify-self:end}@media(max-width:700px){.nutrition-page>.calendar-page{width:100%;justify-self:stretch}}.nutrition-page>.calendar-page{width:75%}.nutrition-page .calories{display:flex;justify-content:center;margin-top:25px}.nutrition-page .calorie-circle{display:grid;place-items:center;width:132px;height:132px;border-radius:50%;background:conic-gradient(#a6e3a1 var(--progress),#303030 0);position:relative}.nutrition-page .calorie-circle:before{content:"";position:absolute;top:8px;right:8px;bottom:8px;left:8px;border-radius:50%;background:#181818}.nutrition-page .calorie-circle>div{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:0}.nutrition-page .calorie-circle strong{font-size:28px;letter-spacing:-1px;font-weight:600}.nutrition-page .calorie-circle span{font-size:11px;color:#888}.nutrition-page>.daily-card{padding:16px 18px 14px}.nutrition-page .calories{margin-top:14px}.nutrition-page .calorie-circle{width:140px;height:140px}.nutrition-page .calorie-circle strong{font-size:32px}.nutrition-page .macros{margin-top:14px;padding-top:11px}.calendar-period-selectors{display:flex;align-items:center;gap:5px}.calendar-period-selectors select{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:transparent;color:#aaa;font:inherit;font-size:21px;cursor:pointer;outline:0}.calendar-period-selectors select:hover{color:#fff}.calendar-period-selectors select option{background:#181818;color:#ddd}.calendar-period-selectors{margin-left:18px}.nutrition-page>.calendar-page .calendar-period-selectors select{font-size:18px}.nutrition-page>.calendar-page{width:62%}.nutrition-page>.calendar-page .calendar-card{padding:10px 12px 12px}.nutrition-page>.calendar-page .calendar-toolbar{margin-bottom:8px}.nutrition-page>.calendar-page .calendar-toolbar h2{font-size:18px}.nutrition-page>.calendar-page .calendar-navigation{gap:6px}.nutrition-page>.calendar-page .calendar-navigation button{height:28px}.nutrition-page>.calendar-page .calendar-navigation .calendar-today-button{font-size:15px}.nutrition-page>.calendar-page .calendar-weekdays{font-size:12px}.nutrition-page>.calendar-page .calendar-days span{min-height:34px;font-size:16px}@media(max-width:700px){.nutrition-page>.calendar-page{width:100%}}.calendar-page .calendar-days button{display:grid;place-items:center;width:100%;min-height:34px;padding:0;border:0;border-radius:0;background:transparent;color:#ddd;font:inherit;font-size:16px;cursor:pointer}.calendar-page .calendar-days button:hover{background:#292929}.calendar-page .calendar-days button.is-outside{color:#454545}.calendar-page .calendar-days button.is-today{background:transparent;color:#1597ed;font-weight:600}.nutrition-page .macro-track{display:block;width:100%;height:5px;margin-top:6px;overflow:hidden;border-radius:5px;background:#303030}.nutrition-page .macro-track i{display:block;height:100%;border-radius:5px}.nutrition-page .macro-protein .macro-track i{background:#ef6262}.nutrition-page .macro-fat .macro-track i{background:#5b9bea}.nutrition-page .macro-carbs .macro-track i{background:#f0b84b}.nutrition-page .macro-track{width:72%}.nutrition-page .macro-track{height:8px}.nutrition-page .macro b{display:block;width:72%;text-align:center}.nutrition-page .macro>span{order:3;width:72%;text-align:center}.nutrition-page .macro b{order:1}.nutrition-page .macro-track{order:2}.nutrition-page .macro>span,.nutrition-page .macro b,.nutrition-page .macro-track{justify-self:center}.nutrition-page .macro{gap:2px}.nutrition-page .macro-track{margin-top:2px}.nutrition-page .macro{gap:5px}.nutrition-page .macro-track{margin-top:4px}.nutrition-page .calorie-circle>div{white-space:nowrap}.nutrition-page .macro{grid-template-columns:auto auto;justify-content:start;align-items:baseline}.nutrition-page .macro>span{order:1;width:auto;text-align:left}.nutrition-page .macro b{order:2;width:auto;margin-left:6px;text-align:left}.nutrition-page .macro-track{order:3;grid-column:1/-1;justify-self:start}.nutrition-page .macro-track{width:88%}.nutrition-page .macro-track{width:160%}.nutrition-page .macro{min-width:0}.nutrition-page .macro-track{width:100%;max-width:none}.nutrition-page .macro{width:100%;grid-template-columns:minmax(0,1fr) auto}.nutrition-page .macros{column-gap:12px}.nutrition-page .macro{width:auto;min-width:0}.nutrition-page .macro>span{justify-self:start;text-align:left;white-space:nowrap}.nutrition-page .macro b{margin-left:4px;white-space:nowrap}.nutrition-page .macros{grid-template-columns:repeat(3,minmax(0,1fr))}.nutrition-page .macro,.nutrition-page .macro-track{width:100%}.nutrition-page .macro+.macro{padding-left:0;border-left:0}.nutrition-page .macro{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:baseline}.nutrition-page .macro b{position:static;grid-column:auto;justify-self:center;margin-left:0;transform:none}.nutrition-page>.daily-card{width:70%;justify-self:end}@media(max-width:700px){.nutrition-page>.daily-card{width:100%;justify-self:stretch}}.nutrition-page>.daily-card{grid-column:1;grid-row:1;justify-self:start}.nutrition-page>.calendar-page{grid-column:2;grid-row:1}.nutrition-page>.meal-list{grid-column:1/-1;grid-row:2}@media(max-width:700px){.nutrition-page>.daily-card,.nutrition-page>.calendar-page,.nutrition-page>.meal-list{grid-column:auto;grid-row:auto}}.nutrition-page{display:grid;width:100%;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto;column-gap:28px;row-gap:18px;align-items:start}.nutrition-page>.daily-card{grid-column:2;grid-row:1;width:70%;margin:0;justify-self:start;align-self:start}.nutrition-page>.calendar-page{grid-column:2;grid-row:1;width:100%;margin:0;justify-self:stretch}.nutrition-page>.meal-list{grid-column:1;grid-row:1;width:100%;margin:0;justify-self:stretch;align-self:start}@media(max-width:700px){.nutrition-page{display:block;width:100%}.nutrition-page>.daily-card,.nutrition-page>.calendar-page,.nutrition-page>.meal-list{width:100%;margin:0 0 18px}}.nutrition-page .daily-date-button{padding:0;border:0;background:transparent;color:inherit;font:inherit;font-size:17px;font-weight:500;text-transform:none;cursor:pointer}.nutrition-page .daily-date-button:hover{color:#fff}.nutrition-page .daily-title{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:0 4px}.nutrition-page .daily-debt{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 4px 0;padding:8px 10px;border:1px solid #5c3c42;border-radius:8px;background:#261a1d;color:#d88a92;font-size:11px}.nutrition-page .daily-debt strong{font-size:12px;color:#ef9ba3;font-weight:600}.nutrition-page .daily-nav-buttons{position:absolute;right:0;z-index:5;display:flex;align-items:center;gap:2px;pointer-events:auto}.nutrition-page .daily-nav-button{position:relative;z-index:6;display:grid;place-items:center;width:26px;height:26px;padding:0;border:0;border-radius:50%;background:transparent;color:#888;cursor:pointer;pointer-events:auto;touch-action:manipulation;text-decoration:none}.nutrition-page .daily-nav-button:hover{background:#292929;color:#fff}.nutrition-page .daily-nav-button svg{pointer-events:none}.calendar-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:grid;place-items:center;padding:20px;background:#000a}.calendar-modal{position:relative;width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 40px);overflow:auto;background:#181818;border:1px solid #343434;border-radius:12px;box-shadow:0 20px 70px #000b}.calendar-modal .calendar-page{width:100%;margin:0}.calendar-modal .calendar-card{padding:24px 28px 30px}.nutrition-add-button{position:fixed;right:28px;bottom:28px;z-index:10;display:grid;place-items:center;width:49px;height:49px;padding:0;border:2px solid #fff;border-radius:50%;background:#fff;color:#171717;cursor:pointer;box-shadow:0 8px 24px #0008}.nutrition-add-button:hover{background:#eee}@media(max-width:700px){.nutrition-add-button{right:18px;bottom:18px}}.nutrition-page>.nutrition-header{grid-column:1/-1;grid-row:1;display:flex;align-items:end;justify-content:space-between;width:min(100%,calc(85% + 44.2px));justify-self:start;margin:0 0 4px;padding-bottom:14px;border-bottom:1px solid #292929}.nutrition-header h1{margin:0;font-size:24px;font-weight:600}.nutrition-header-actions{display:flex;align-items:center;gap:14px}.daily-total-calories{display:inline-flex;align-items:baseline;gap:5px;color:#aaa;white-space:nowrap}.daily-total-calories small{font-size:12px;color:#888}.daily-total-calories strong{font-size:16px;color:#eee;font-weight:500}.daily-total-calories em{font-size:11px;color:#888;font-style:normal}.health-sync-button{padding:0;border:0;background:transparent;color:#888;font:inherit;font-size:11px;line-height:1;cursor:pointer}.health-sync-button:hover{background:transparent;color:#fff}.health-sync-button.icon-only{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px}.health-sync-button.is-syncing svg{animation:health-sync-spin .8s linear infinite}@keyframes health-sync-spin{to{transform:rotate(360deg)}}.nutrition-header label{display:flex;align-items:center;gap:5px;color:#888;font-size:14px}.nutrition-header input{width:40px;padding:0;border:0;background:transparent;color:#eee;font:inherit;outline:0}.nutrition-header input{margin-left:8px}.nutrition-page>.daily-card,.nutrition-page>.meal-list{grid-row:2}@media(max-width:700px){.nutrition-page>.nutrition-header{display:grid;gap:12px;align-items:start}.nutrition-header label{justify-content:space-between}.nutrition-page>.daily-card,.nutrition-page>.meal-list{grid-row:auto}}.nutrition-header-actions .test-day-toggle{flex:none;padding:7px 11px;border:1px solid #434343;border-radius:8px;background:#252525;color:#ccc;font:inherit;font-size:12px;cursor:pointer}.nutrition-header-actions .test-day-toggle:hover,.nutrition-header-actions .test-day-toggle.is-active{border-color:#8d73a1;background:#3a2b43;color:#f0d6fa}.nutrition-page>.test-day-banner{grid-column:1/-1;grid-row:2;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding:10px 14px;border:1px solid #604970;border-radius:9px;background:#251c2c;color:#c9b6d2;font-size:12px}.test-day-banner strong{margin-right:8px;color:#f0d6fa}.test-day-banner button{flex:none;border:0;background:transparent;color:#d6b5e2;font:inherit;cursor:pointer}.test-day-banner button:hover{text-decoration:underline}.nutrition-page.is-test-mode>.daily-card,.nutrition-page.is-test-mode>.meal-list{grid-row:3}@media(max-width:700px){.nutrition-page>.test-day-banner{flex-wrap:wrap;margin-bottom:12px}.nutrition-page.is-test-mode>.daily-card,.nutrition-page.is-test-mode>.meal-list{grid-row:auto}.nutrition-header-actions .test-day-toggle{order:-1}}.nutrition-page .macro{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center}.nutrition-page .macro>span,.nutrition-page .macro b{grid-column:1;justify-self:center;width:auto;margin-left:0;text-align:center}.nutrition-page .macro>span{order:1}.nutrition-page .macro b{order:2}.nutrition-page .macro-track{grid-column:1;justify-self:stretch;width:100%;order:3}.nutrition-page .section-heading{justify-content:flex-start;gap:10px}.nutrition-page .section-heading-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.nutrition-page .section-heading-actions>span{margin-left:0}.nutrition-page .meal-select-button{order:1}.nutrition-page .meal-collapse-all-button{order:2}.nutrition-page .section-heading-actions>span{order:3}.nutrition-page .meal-add-button{order:4}.nutrition-page .meal-add-button{display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;background:transparent;color:#888;cursor:pointer}.nutrition-page .meal-add-button:hover{color:#fff}.nutrition-page .meal-heading h3:has(.meal-group-select){display:flex;align-items:center;gap:6px}.nutrition-page .food-row.is-selected{background:transparent}.nutrition-page>.daily-summary-column{grid-column:2;grid-row:2;display:flex;flex-direction:column;align-items:flex-start;gap:10px;width:100%;min-width:0}.nutrition-page>.daily-summary-column>.daily-card{width:min(100%,calc(70% + 40px));margin:0;align-self:flex-start;padding-top:13px;padding-bottom:13px}@media(max-width:520px){.nutrition-page>.daily-summary-column>.daily-card{padding-top:9px;padding-bottom:9px}}.nutrition-page>.daily-summary-column>.daily-debt{width:70%;margin:0}.nutrition-page.is-test-mode>.daily-summary-column{grid-row:3}.bulk-transfer-toggle{display:flex!important;grid-template-columns:none!important;align-items:center;gap:7px;color:#aaa;font-size:12px;cursor:pointer}.bulk-transfer-toggle input{width:14px!important;height:14px;margin:0;accent-color:#a6e3a1}.food-autocomplete{position:relative}.food-autocomplete input{position:relative;z-index:1}.food-suggestions{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:20;display:grid;max-height:190px;overflow:auto;scrollbar-width:none;padding:4px;background:#242424;border:1px solid #444;border-radius:7px;box-shadow:0 12px 30px #0008}.food-suggestions::-webkit-scrollbar{display:none}.food-suggestions button{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px;border:0;border-radius:5px;background:transparent;color:#eee;font:inherit;font-size:12px;text-align:left;cursor:pointer}.food-suggestions button:hover,.food-suggestions button.is-highlighted{background:#333}.food-suggestions-empty{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px;color:#888;font-size:12px}.food-create-link{padding:0;border:0;background:transparent;color:#fff;font:inherit;font-size:12px;font-weight:600;text-decoration:underline;cursor:pointer}.food-create-link:hover{color:#d3d3d3}.food-suggestions>.food-create-link{justify-self:end;width:100%;padding:8px;text-align:right}.nutrition-page .food-row>div.food-row-actions{display:flex;align-items:center;gap:4px}.edit-button{display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;background:transparent;color:#777;cursor:pointer}.edit-button:hover{color:#eee}.food-suggestions small{color:#888;font-size:10px}.food-portions-dropdown{top:calc(100% + 4px);left:auto;right:0;width:220px}.entry-form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.meal-select-wrap{position:relative;display:block}.meal-select-wrap select{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:30px!important}.meal-select-wrap svg{position:absolute;top:50%;right:8px;transform:translateY(-50%);color:#999;pointer-events:none}.entry-form{width:min(378px,100%)}.entry-form-macros{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.entry-form-macros label{display:grid;gap:6px;color:#aaa;font-size:10px}.entry-form-macros input{min-width:0;text-align:left}.entry-form-macros input[readonly]{color:#ddd}.nutrition-page .modal-backdrop{z-index:20}html.entry-modal-open,html.entry-modal-open body,html.entry-modal-open .page{overflow:hidden!important;scrollbar-width:none}html.entry-modal-open::-webkit-scrollbar,html.entry-modal-open body::-webkit-scrollbar,html.entry-modal-open .page::-webkit-scrollbar{display:none}.nutrition-chat-button{position:fixed;right:87px;bottom:28px;z-index:10;display:grid;place-items:center;width:49px;height:49px;padding:0;border:2px solid #fff;border-radius:50%;background:#fff;color:#171717;cursor:pointer;box-shadow:0 8px 24px #0008}.nutrition-chat-button:hover{background:#eee}@media(max-width:700px){.nutrition-chat-button{right:77px;bottom:18px}}.food-chat-backdrop{z-index:21}.food-chat-modal{width:min(378px,100%);background:#181818;border:1px solid #343434;border-radius:12px;padding:20px;display:grid;gap:14px;box-shadow:0 20px 80px #0008}.food-chat-modal p{margin:0;color:#888;font-size:12px;line-height:1.45}.food-chat-modal>input{width:100%;padding:10px 12px;background:#191919;border:1px solid #363636;border-radius:7px;color:#ddd;font:inherit;font-size:12px;outline:none}.food-chat-modal>input:focus{border-color:#777}.delete-confirm-backdrop{z-index:25}.delete-confirm-modal{width:min(360px,calc(100vw - 36px));overflow:hidden;background:#181818;border:1px solid #343434;border-radius:12px;box-shadow:0 20px 80px #0008}.delete-confirm-header{display:flex;align-items:center;justify-content:space-between;padding:13px 16px 13px 20px;background:#d3d3d3;color:#171717}.delete-confirm-header h2{margin:0;font-size:15px;font-weight:600}.delete-confirm-close{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;background:transparent;color:#555;cursor:pointer}.delete-confirm-close:hover{color:#111}.delete-confirm-body{padding:18px 20px 20px}.delete-confirm-modal p{margin:0 0 18px;color:#eee;font-size:13px;line-height:1.4}.delete-confirm-actions{display:flex;justify-content:flex-end;gap:8px}.delete-confirm-actions button{padding:8px 12px;border:0;border-radius:7px;font:inherit;font-size:12px;cursor:pointer}.delete-confirm-actions button:first-child{background:#2a2a2a;color:#ddd}.delete-confirm-actions button:last-child{background:#dedede;color:#171717}@media(max-width:420px){.entry-form-row{grid-template-columns:1fr}}.delete-confirm-header{background:#181818;color:#eee;border-bottom:1px solid #2b2b2b}.delete-confirm-close{color:#888}.delete-confirm-close:hover{color:#fff}.meal-heading{cursor:pointer}.meal-heading:hover h3{color:#fff}.food-suggestions button.food-create-link,.food-suggestions button.food-create-link:hover{background:transparent}.food-suggestions button.food-create-link.is-highlighted,.food-suggestions button.food-create-link.is-highlighted:hover{background:#333}.nutrition-page .calorie-circle.is-over-limit{background:#d94a4a}.nutrition-page .daily-card .calories{display:flex;flex-direction:column;align-items:center;gap:4px}.nutrition-page .daily-card .macros{margin-top:8px;padding-top:7px}.nutrition-page .calorie-summary-row{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:8px;width:100%}.nutrition-page .calorie-remaining,.nutrition-page .calorie-debt{display:grid;grid-template-columns:auto auto;align-items:baseline;gap:2px 5px;white-space:nowrap}.nutrition-page .calorie-remaining{margin-left:auto;text-align:right}.nutrition-page .calorie-summary-row span{font-size:10px;color:#888}.nutrition-page .calorie-summary-row span:first-child{grid-column:1 / -1}.nutrition-page .calorie-summary-row b{font-size:16px;font-weight:500;color:#ddd}.nutrition-page .calorie-debt b{color:#ef9ba3}.nutrition-page .calorie-circle>.calorie-consumed-percentage{position:absolute;bottom:17px;left:0;right:0;z-index:1;text-align:center;font-size:10px;color:#888;line-height:1.2}.nutrition-page .food-row{padding-top:6px;padding-bottom:6px;border-radius:7px;transition:background-color .15s ease}.nutrition-page .food-row>.food-row-actions{align-self:center}.nutrition-page .food-row:has(.dish-expand-button):has(.food-row-select){grid-template-columns:auto minmax(0,1fr) auto auto}.nutrition-page .food-row:has(.dish-expand-button)>.food-row-select{grid-column:1;grid-row:1;align-self:center}.nutrition-page .food-row:has(.dish-expand-button):has(.food-row-select)>.food-row-content{grid-column:2;grid-row:1}.nutrition-page .food-row:has(.dish-expand-button):has(.food-row-select)>.dish-expand-button{grid-column:3;grid-row:1}.nutrition-page .food-row:has(.dish-expand-button):has(.food-row-select)>.food-row-actions{grid-column:4;grid-row:1}.nutrition-title{display:flex;align-items:center;gap:10px}.entry-history-buttons{display:flex;align-items:center;gap:2px}.entry-history-buttons button{display:grid;place-items:center;width:25px;height:25px;padding:0;border:0;border-radius:5px;background:transparent;color:#999;cursor:pointer}.entry-history-buttons button:hover:not(:disabled){background:#ffffff0a;color:#eee}.entry-history-buttons button:disabled{opacity:.25;cursor:default}.nutrition-page .food-row:hover,.nutrition-page .food-row:focus-within{background:#ffffff06}.nutrition-page .food-row[draggable=true]{cursor:grab;position:relative}.nutrition-page .food-row.is-dragging{opacity:.35;cursor:grabbing}.nutrition-page .meal.is-drag-target{background:#ffffff03;border-radius:7px}.nutrition-page .food-row.is-drop-before:before,.nutrition-page .food-row.is-drop-after:after{content:"";position:absolute;left:0;right:0;height:2px;background:#a6e3a1;pointer-events:none}.nutrition-page .food-row.is-drop-before:before{top:0}.nutrition-page .food-row.is-drop-after:after{bottom:-2px}@media(hover:hover)and (pointer:fine){.nutrition-page .food-row>.food-row-actions{opacity:0;pointer-events:none;transition:opacity .15s ease}.nutrition-page .food-row:hover>.food-row-actions,.nutrition-page .food-row:focus-within>.food-row-actions{opacity:1;pointer-events:auto}}.nutrition-page .calorie-total,.nutrition-page .calorie-activity{display:grid;grid-template-columns:auto auto;align-items:baseline;gap:2px 5px;white-space:nowrap}.nutrition-page .calorie-activity{margin-left:auto;text-align:right}.nutrition-page .calorie-top-row{margin-top:8px}.nutrition-page .daily-card .calorie-top-row+.calories{margin-top:4px}.nutrition-page .calorie-remaining.is-over-limit b{color:#d94a4a}.nutrition-header-actions .test-day-toggle{display:none}.meal-list>.section-heading>.meal-group-add-button{display:grid;place-items:center;flex:none;width:24px;height:24px;padding:0;margin:0;border:0;border-radius:5px;background:transparent;color:#888;cursor:pointer}.meal-group-add-button:hover{color:#eee;background:#ffffff08}.meal-group-add-button:disabled{opacity:.4;cursor:wait}.meal-group-actions{display:flex;align-items:center;gap:3px;flex-shrink:0}.meal-group-actions button{display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;background:transparent;color:#888;cursor:pointer}.meal-group-actions button:hover{color:#eee}.meal-heading h3{min-width:0;overflow-wrap:anywhere}@media(hover:hover)and (pointer:fine){.meal-group-actions{opacity:0;pointer-events:none;transition:opacity .15s ease}.meal:hover>.meal-heading>.meal-group-actions,.meal-group-actions:focus-within{opacity:1;pointer-events:auto}}.meal-dialog-backdrop{z-index:1100}.meal-dialog{display:grid;gap:14px;width:min(380px,100%);padding:20px;border:1px solid #343434;border-radius:12px;background:#181818;box-shadow:0 20px 80px #0008;color:#ddd}.meal-dialog label{display:grid;gap:7px;font-size:12px;color:#aaa}.meal-dialog input:not([type=checkbox]){width:100%;padding:9px 10px;border:1px solid #363636;border-radius:7px;background:#191919;color:#eee;font:inherit;outline:none}.meal-dialog input:focus{border-color:#777}.meal-dialog p{margin:0;color:#aaa;font-size:12px;line-height:1.5}.meal-dialog .meal-delete-content{display:flex;align-items:center;gap:8px}.meal-delete-content input{margin:0;accent-color:#a6e3a1}.meal-dialog-buttons{display:flex;justify-content:flex-end;gap:8px}.meal-dialog-buttons button{padding:9px 12px;border:1px solid #3b3b3b;border-radius:7px;background:#242424;color:#ddd;font:inherit;font-size:12px;cursor:pointer}.meal-dialog-buttons button[type=submit]{border-color:#ddd;background:#ddd;color:#171717}.meal-dialog-buttons button:disabled{opacity:.5;cursor:wait}.meal-dialog .meal-dialog-error,.meal-dialog-error{color:#df9696;font-size:11px}.nutrition-page .daily-card .daily-title{width:100%;padding-inline:0;justify-content:space-between;flex-wrap:wrap;gap:4px 8px}.nutrition-page .daily-card .daily-nav-buttons{position:static;flex-shrink:0;justify-content:flex-end;margin-left:auto;margin-right:-4px}.nutrition-page .daily-nav-button.daily-today-button{width:auto;padding:0 5px;border-radius:5px;font-size:14px}.meal-collapse-all-button{display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;background:transparent;color:#888;cursor:pointer}.meal-collapse-all-button:hover{color:#fff}.meal-collapse-all-button svg{transform:rotate(90deg)}.bulk-selection-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-2px 0 8px;padding:8px 10px;background:#181818;border:1px solid #2b2b2b;border-radius:8px;color:#aaa;font-size:11px}.meal-select-button{padding:0;border:0;background:transparent;color:#888;font:inherit;font-size:11px;cursor:pointer}.meal-select-button:hover,.meal-select-button.is-active{color:#fff}.bulk-selection-toolbar{position:fixed;left:calc(265px + (100vw - 265px)/2);bottom:28px;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;transform:translate(-50%);padding:8px 10px;background:#181818;border:1px solid #2b2b2b;border-radius:8px;color:#aaa;font-size:11px;box-shadow:0 8px 24px #0008}.bulk-selection-toolbar>div{display:flex;gap:5px}.bulk-selection-toolbar button{padding:5px 8px;border:1px solid #3a3a3a;border-radius:5px;background:#242424;color:#ddd;font:inherit;font-size:10px;cursor:pointer}.bulk-selection-toolbar button:hover{background:#333;color:#fff}.bulk-selection-toolbar button:disabled{opacity:.4;cursor:not-allowed}.bulk-selection-toolbar button.danger{color:#e99b9b}.food-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.food-row:has(.food-row-select){grid-template-columns:auto minmax(0,1fr) auto}.food-row-select{display:flex!important;align-items:center!important;justify-content:center!important}.food-row-select input{accent-color:#a6e3a1;width:14px;height:14px;margin:0;cursor:pointer}.food-row-content{display:grid;gap:5px}.food-row.is-selected{background:#1d2a1d;border-radius:7px;padding-left:8px;padding-right:8px}.bulk-move-modal{width:min(360px,100%);background:#181818;border:1px solid #343434;border-radius:12px;padding:20px;display:grid;gap:14px;box-shadow:0 20px 80px #0008}.bulk-move-modal label{display:grid;gap:6px;color:#aaa;font-size:11px}.bulk-move-modal input,.bulk-move-modal select{width:100%;font:inherit;font-size:12px;color:#ddd;background:#191919;border:1px solid #363636;border-radius:7px;padding:9px 10px}.bulk-move-modal input:focus,.bulk-move-modal select:focus{outline:none;border-color:#777}.dish-expand-button{display:grid;place-items:center;align-self:center;width:20px;height:20px;padding:0;border:0;background:transparent;color:#888;cursor:pointer;transition:transform .15s ease,color .15s ease}.dish-expand-button:hover{color:#fff}.dish-expand-button.is-expanded{transform:rotate(180deg)}.dish-ingredients-expanded{display:grid;gap:6px;margin:8px 0 0 30px;padding:8px 0 3px 14px;border-left:1px solid #303030}.dish-ingredient-row{display:grid;grid-template-columns:minmax(100px,1fr) auto 52px auto 22px;align-items:center;gap:7px;color:#999;font-size:10px}.dish-ingredient-row>span:first-child{color:#ddd}.dish-ingredient-row>span:nth-child(2){white-space:nowrap}.dish-ingredient-weight{width:52px;height:24px;padding:3px 5px;border:1px solid #363636;border-radius:5px;background:#191919;color:#ddd;font:inherit;text-align:right}.dish-ingredient-row .edit-button{width:22px;height:22px}.dish-ingredients-total{display:block;margin-bottom:2px;color:#aaa;font-size:10px;font-weight:500}.dish-ingredient-weight-value{color:#bbb;text-align:right;white-space:nowrap}.meal-list>.section-heading .meal-add-button{display:none!important}.meal-collapse-button{display:grid;place-items:center;width:20px;height:20px;margin-left:auto;margin-right:8px;padding:0;border:0;background:transparent;color:#888;cursor:pointer}.meal-collapse-button:hover{color:#fff}.meal-heading{justify-content:flex-start}.meal-heading>span{width:72px;margin-left:0;text-align:right}.dish-ingredients-header,.dish-ingredient-row{display:grid;grid-template-columns:minmax(180px,1fr) repeat(5,minmax(38px,auto)) 22px;align-items:center;gap:8px}.dish-ingredients-header{margin-bottom:2px;color:#777;font-size:10px}.dish-ingredients-header span{text-align:right}.dish-ingredients-header strong{color:#aaa;font-size:10px;font-weight:600}.dish-ingredient-row{grid-template-columns:minmax(180px,1fr) repeat(5,minmax(38px,auto)) 22px}.dish-ingredient-row>span{text-align:right;white-space:nowrap}.dish-ingredient-row>span:first-child{text-align:left}.dish-ingredient-row .edit-button{grid-column:7}.dish-ingredients-expanded{min-width:0;overflow:hidden}.dish-ingredients-header,.dish-ingredient-row{grid-template-columns:minmax(0,1fr) repeat(5,minmax(26px,1fr)) 20px;gap:4px}.dish-ingredient-row>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dish-ingredient-row>span:not(:first-child){font-size:9px}.dish-ingredients-expanded{margin-left:10px;padding-left:10px}.food-row:has(.dish-expand-button){display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:9px}.food-row:has(.dish-expand-button)>.dish-expand-button{grid-column:2;grid-row:1}.food-row:has(.dish-expand-button)>.food-row-content{grid-column:1;grid-row:1}.food-row:has(.dish-expand-button)>.food-row-actions{grid-column:3;grid-row:1}@media(max-width:700px){.bulk-selection-toolbar{left:50%;bottom:18px;max-width:calc(100vw - 180px);white-space:nowrap}}.meal-select-button:not(.is-active){display:grid;width:22px;height:22px;padding:0;place-items:center;font-size:0}.meal-select-button:not(.is-active):before{content:"⧉";font-size:18px;line-height:1;font-weight:400}.bulk-selection-toolbar{width:min(760px,calc(100vw - 300px));padding:11px 14px;font-size:12px;background:#202020;border-color:#383838}.bulk-selection-toolbar{left:calc(-115px + (100vw - 265px)/2);width:380px;max-width:calc(100vw - 300px);transform:none}@media(max-width:700px){.bulk-selection-toolbar{left:50%;width:auto;transform:translate(-50%)}}body:has(.calendar-page:not(.nutrition-page .calendar-page)) .page{align-items:stretch}.page>.calendar-page{width:min(820px,100%);align-self:center}.nutrition-page .section-heading>.meal-select-button{order:0;flex:none;margin-left:4px}.nutrition-page .meal{cursor:pointer}.nutrition-page .meal-entry-add-button{display:grid;flex:none;place-items:center;width:22px;height:22px;margin-left:6px;padding:0;border:0;background:transparent;color:#888;cursor:pointer}.nutrition-page .meal-entry-add-button:hover{color:#fff}.page>.calendar-page .calendar-card{margin-top:0;padding:28px 32px 34px;background:#181818;border:1px solid #303030;border-radius:16px;box-shadow:0 18px 50px #0005}.page>.calendar-page .calendar-toolbar{margin-bottom:28px;align-items:center}.page>.calendar-page .calendar-period-selectors{gap:8px;margin-left:0}.page>.calendar-page .calendar-period-selectors select{padding:7px 30px 7px 10px;border:1px solid #353535;border-radius:8px;background:#202020;color:#eee;font-size:18px;font-weight:500}.page>.calendar-page .calendar-period-selectors select:hover{border-color:#666}.page>.calendar-page .calendar-navigation{gap:6px}.page>.calendar-page .calendar-navigation button{width:38px;height:38px;border-radius:9px;color:#aaa}.page>.calendar-page .calendar-navigation button:hover{background:#292929;color:#fff}.page>.calendar-page .calendar-navigation .calendar-today-button{width:auto;padding:0 13px;border:1px solid #353535;background:#202020;color:#ddd;font-size:13px}.page>.calendar-page .calendar-navigation .calendar-today-button:hover{background:#2b2b2b}.page>.calendar-page .calendar-weekdays{margin-bottom:10px;color:#777;font-size:11px;font-weight:600;letter-spacing:.5px;text-transform:uppercase}.page>.calendar-page .calendar-days{grid-template-rows:repeat(6,1fr);gap:5px}.page>.calendar-page .calendar-days button{min-height:68px;border:1px solid transparent;border-radius:10px;color:#ddd;font-size:16px;transition:background .12s ease,border-color .12s ease,color .12s ease}.page>.calendar-page .calendar-days button:hover{background:#252525;border-color:#3b3b3b}.page>.calendar-page .calendar-days button.is-outside{color:#4c4c4c}.page>.calendar-page .calendar-days button.is-today{background:#c89dcf;border-color:#c89dcf;color:#171717;font-weight:700}.page>.calendar-page .calendar-days button.is-today:hover{background:#d6addc;border-color:#d6addc}@media(max-width:700px){.page>.calendar-page{width:100%}.page>.calendar-page .calendar-card{padding:20px 14px 24px;border-radius:12px}.page>.calendar-page .calendar-period-selectors select{font-size:16px;padding-right:24px}.page>.calendar-page .calendar-toolbar{gap:10px}.page>.calendar-page .calendar-navigation{gap:2px}.page>.calendar-page .calendar-navigation button{width:32px}.page>.calendar-page .calendar-navigation .calendar-today-button{padding:0 8px}.page>.calendar-page .calendar-days button{min-height:48px;font-size:14px}}.fire-chat-panel{position:fixed;right:24px;bottom:88px;z-index:30;width:min(390px,calc(100vw - 28px));height:min(620px,calc(100vh - 120px));display:flex;flex-direction:column;overflow:hidden;background:#1b1b1b;border:1px solid #3a3a3a;border-radius:14px;box-shadow:0 18px 60px #000b,0 0 24px #fff0008,inset 0 1px 0 #fff000d}.fire-chat-panel-header{position:relative;display:flex;align-items:center;justify-content:space-between;flex:none;height:52px;padding:0 14px 0 17px;border-bottom:1px solid #2d2d2d;background:#1d1d1d;color:#eee}.fire-chat-panel-header{cursor:grab;-webkit-user-select:none;user-select:none}.fire-chat-panel-header:active{cursor:grabbing}.fire-chat-panel-header strong{font-size:14px;font-weight:600}.fire-chat-panel-header strong{display:flex;align-items:center;gap:8px}.fire-chat-bot-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#294454;color:#9edcff;box-shadow:0 3px 12px #0008}.fire-chat-panel-header>div{display:flex;align-items:center;gap:4px}.fire-chat-header-actions{position:relative}.fire-chat-menu{position:absolute;top:38px;right:0;z-index:3;display:grid;min-width:170px;padding:5px;border:1px solid #3a3a3a;border-radius:8px;background:#242424;box-shadow:0 12px 30px #0009}.fire-chat-menu button{display:flex;width:100%;height:32px;align-items:center;justify-content:flex-start;gap:8px;padding:0 9px 0 12px;border:0;border-radius:5px;background:transparent;color:#ddd;font:inherit;font-size:12px;text-align:left;white-space:nowrap;cursor:pointer}.fire-chat-menu button svg{flex:none;color:#fff}.fire-chat-menu button:hover:not(:disabled){background:#333;color:#fff}.fire-chat-menu button:disabled{color:#888;cursor:default}.fire-chat-model-option small{margin-left:10px;color:#9edcff;font-size:10px}.fire-chat-panel-header .fire-chat-menu button{width:100%;height:34px;min-height:34px;box-sizing:border-box}.fire-chat-panel-header button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:7px;background:transparent;color:#888;cursor:pointer}.fire-chat-panel-header button:hover{background:#2b2b2b;color:#eee}.fire-chat-panel-header .fire-chat-menu button{display:flex;align-items:center;justify-content:flex-start;width:100%;height:34px;min-height:34px;box-sizing:border-box;padding:0 9px 0 12px;border:0;border-radius:5px;background:transparent;color:#ddd;gap:8px;text-align:left}.fire-chat-panel-header .fire-chat-menu button:hover:not(:disabled){background:#333;color:#fff}.fire-chat-panel-header .fire-chat-menu button svg{display:block;flex:0 0 18px;width:18px;height:18px;color:#fff}.fire-chat-panel .local-chat-page{width:100%;height:calc(100% - 52px);min-height:0;align-self:stretch;padding:0 12px 12px}.fire-chat-panel .local-chat-header{display:none}.fire-chat-panel .local-chat-messages{padding:16px 2px 14px}.fire-chat-panel .local-chat-message{max-width:94%}@media(max-width:700px){.fire-chat-panel{right:12px;bottom:78px;width:calc(100vw - 24px);height:calc(100vh - 100px)}}.fire-chat-panel{bottom:100px}@media(max-width:700px){.fire-chat-panel{bottom:90px}}.fire-chat-panel{bottom:92px;height:min(540px,calc(100vh - 130px))}@media(max-width:700px){.fire-chat-panel{bottom:88px;height:calc(100vh - 118px)}}.fire-chat-panel{bottom:82px;height:min(620px,calc(100vh - 120px))}@media(max-width:700px){.fire-chat-panel{bottom:72px;height:calc(100vh - 100px)}}.fire-chat-panel{bottom:32px;z-index:32}@media(max-width:700px){.fire-chat-panel{bottom:20px}}.fire-chat-panel{bottom:17px}@media(max-width:700px){.fire-chat-panel{bottom:5px}}.fire-chat-panel{border:0}.fire-chat-panel{background:#141414}.fire-chat-panel-header{background:#222}.fire-chat-panel .local-chat-page{padding:0}.fire-chat-panel{right:0;bottom:0;border-radius:14px 0 0}@media(max-width:700px){.fire-chat-panel{right:0;bottom:0;border-radius:14px 0 0;width:100vw;height:calc(100vh - 70px)}}.fire-chat-panel{height:min(465px,calc(100vh - 120px))}@media(max-width:700px){.fire-chat-panel{height:75vh}}.fire-chat-panel{bottom:70px;z-index:30}@media(max-width:700px){.fire-chat-panel{bottom:62px}}.fire-chat-panel{right:20px}@media(max-width:700px){.fire-chat-panel{right:12px;width:calc(100vw - 24px)}}.fire-chat-panel{width:min(360px,calc(100vw - 40px));bottom:0}@media(max-width:700px){.fire-chat-panel{width:calc(100vw - 24px);bottom:0}}.fire-chat-panel{z-index:32;border-radius:14px 14px 0 0}@media(max-width:700px){.fire-chat-panel{border-radius:14px 14px 0 0}}.fire-chat-panel{height:min(430px,calc(100vh - 120px))}@media(max-width:700px){.fire-chat-panel{height:70vh}}.fire-chat-panel-header{height:44px}.fire-chat-panel .local-chat-page{height:calc(100% - 44px)}.fire-chat-panel{height:min(445px,calc(100vh - 120px))}@media(max-width:700px){.fire-chat-panel{height:calc(70vh + 15px)}}.fire-chat-panel{bottom:64px;z-index:30}.nutrition-chat-button,.nutrition-add-button{z-index:31}.fire-chat-panel{bottom:74px}@media(max-width:700px){.fire-chat-panel{bottom:68px}}.fire-chat-panel{bottom:64px}@media(max-width:700px){.fire-chat-panel{bottom:58px}}.fire-chat-panel{border-radius:8px 8px 0 0}@media(max-width:700px){.fire-chat-panel{border-radius:8px 8px 0 0}}.fire-chat-panel{bottom:0}@media(max-width:700px){.fire-chat-panel{bottom:0}}.fire-chat-panel{z-index:40}.fire-chat-panel{height:min(460px,calc(100vh - 120px))}@media(max-width:700px){.fire-chat-panel{height:calc(70vh + 30px)}}@keyframes fire-chat-panel-in{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes fire-chat-panel-out{0%{transform:translateY(0);opacity:1}to{transform:translateY(100%);opacity:0}}.fire-chat-panel{animation:fire-chat-panel-in .22s ease-out both}.fire-chat-panel.is-restored{animation:none}.fire-chat-panel.is-closing{animation:fire-chat-panel-out .18s ease-in both}.nutrition-chat-button{right:28px}@media(max-width:700px){.nutrition-chat-button{right:18px}}.fire-chat-panel{border-radius:14px}.fire-chat-panel{right:20px;bottom:20px}@media(max-width:700px){.fire-chat-panel{right:20px;bottom:20px}}@media(max-width:700px){.app-shell:has(input:focus,select:focus,textarea:focus,[contenteditable=true]:focus) .mobile-bottom-nav{display:none}.app-shell{width:100%;min-width:0;overflow-x:clip}.app-shell:has(.chat-workspace){height:var(--mobile-chat-height,100dvh);min-height:0;overflow:hidden}.app-shell:has(.is-mobile-chat)>.scroll-top-button{display:none!important}body{font-size:16px}.sidebar-profile-wrap{display:none!important}.sidebar{top:0!important;right:0!important;bottom:0!important;left:0!important;width:100vw!important;max-width:none!important;height:100dvh;padding:20px 20px calc(90px + env(safe-area-inset-bottom))!important;border-right:0!important;overflow:hidden}.sidebar-header{display:none!important}.sidebar-navigation{overflow-y:auto;overscroll-behavior:contain}.sidebar .side-item{min-height:50px;height:50px;margin-bottom:5px;padding:0 15px;gap:14px;font-size:16px;border-radius:12px}.sidebar .side-item svg,.sidebar .sidebar-fire-icon img{width:22px;height:22px}.sidebar .profile-avatar{width:38px;height:38px}.sidebar .profile-copy b{font-size:18px}.sidebar .sidebar-mark-close{opacity:1;pointer-events:auto}.mobile-bottom-nav{left:50%!important;right:auto!important;width:min(280px,calc(100% - 44px))!important;height:60px!important;bottom:calc(14px + env(safe-area-inset-bottom))!important;padding:0 10px!important;transform:translate(-50%);justify-content:space-evenly!important;border-color:#393939!important;border-radius:29px!important;background:#1e1e1e!important}.mobile-bottom-nav button{width:49px!important;height:49px!important;margin:0!important;border-radius:16px!important}.mobile-bottom-nav button svg{width:27px;height:27px}.mobile-bottom-nav button.active{width:70px!important}.mobile-bottom-nav button:hover,.mobile-bottom-nav button.active{background:#393939!important;color:#f2f2f2!important}.fire-chat-panel{display:none!important}.page{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:22px 16px calc(102px + env(safe-area-inset-bottom))!important;overflow-x:hidden!important;box-sizing:border-box}.page:has(.nutrition-page){position:relative;left:0!important;right:auto!important;width:100vw!important;max-width:100vw!important;margin-left:0!important;transform:none!important;align-items:stretch!important}.page-header,.daily-card,.meal-list,.products-content,.settings-content,.statistics-page,.measurements-page,.calendar-page{width:100%!important;max-width:none!important;min-width:0!important}.page:has(.database-builder-layout){width:100%!important;max-width:none!important;margin-left:0!important;padding:22px 16px calc(100px + env(safe-area-inset-bottom))!important;overflow-x:hidden!important}.database-builder-layout,.database-builder-layout.is-creating-product,.database-builder-layout.is-creating-dish{display:flex!important;flex-direction:column!important;width:100%!important;max-width:none!important;margin:0!important;grid-template-columns:1fr!important;transform:none!important}.database-builder-layout>.products-content,.database-builder-layout>.dishes-content{width:100%!important;min-width:0!important;margin:0!important}.database-builder-layout>.dishes-content{order:0!important;padding-top:0!important}.database-builder-layout>.products-content:not(.dishes-content){order:1!important;margin-top:12px!important;padding-top:0!important}.database-builder-layout>.dishes-content>.products-toolbar{position:relative!important;top:auto!important;left:auto!important;right:auto!important}.database-builder-layout.sort-products-first:not(:has(.product-add-form.is-open))>.dishes-content>.products-toolbar{transform:none!important}.database-builder-layout:not(:has(.product-add-form.is-open))>.dishes-content>.products-toolbar{display:flex!important;margin:0 0 18px!important}.database-builder-layout:has(.dishes-content.is-editing-dish)>.dishes-content,.database-builder-layout:has(.products-content.is-editing-product)>.products-content{width:100%!important;margin:0!important;padding-top:0!important}.database-builder-layout:has(>.products-content.is-editing-product)>.dishes-content{display:none!important}.database-builder-layout:has(>.dishes-content.is-editing-dish)>.products-content:not(.dishes-content){display:none!important}.database-builder-layout:has(>.dishes-content.is-editing-dish)>.dishes-content>.products-toolbar{display:none!important}.products-toolbar{display:flex!important;flex-wrap:wrap;width:100%!important;gap:8px}.products-toolbar .search-field{flex:1 1 100%;max-width:none;min-width:0}.product-grid,.dishes-grid{grid-template-columns:1fr!important;max-width:100%}.product-card,.dish-card{min-width:0;max-width:100%}.nutrition-page{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;gap:0}.nutrition-page>.nutrition-header{order:0;width:100%;margin:0 0 16px;padding:0 0 14px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}.nutrition-page>.daily-summary-column{order:1;display:flex;align-items:stretch;gap:10px;width:100%;margin:0 0 18px}.nutrition-page>.daily-summary-column>.daily-card,.nutrition-page>.daily-summary-column>.daily-debt{width:100%;margin:0}.nutrition-page>.meal-list{order:2;width:100%;margin:0}.nutrition-header h1{font-size:25px}.nutrition-header-actions{min-width:0;max-width:100%;gap:8px;margin-left:auto;justify-content:flex-end}.nutrition-header label{font-size:13px}.nutrition-header input{width:34px}.nutrition-page .section-heading h2{font-size:20px}.nutrition-page .meal-heading h3{font-size:17px}.nutrition-page .food-row b{font-size:16px}.nutrition-page .food-row span,.nutrition-page .empty-meal{font-size:12px}.nutrition-chat-button,.nutrition-add-button{display:none!important}.nutrition-page .entry-form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.nutrition-page .entry-form-row>label{min-width:0}.page:has(.chat-workspace){position:fixed!important;top:var(--mobile-chat-top,0px);left:0!important;width:100vw!important;max-width:none!important;height:var(--mobile-chat-height,100dvh)!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}.chat-workspace{display:block!important;width:100%!important;height:100%!important;min-height:0!important}.chat-sessions{display:none!important}.chat-workspace-main{position:relative;width:100%!important;height:100%!important;min-width:0!important}.chat-workspace-main .local-chat-page{width:100%!important;height:100%!important;min-height:0!important;padding:0!important;border:0;border-radius:0;background:#141414;overflow:hidden}.is-mobile-chat .chat-workspace-main{touch-action:pan-y}.mobile-chat-overlay{position:fixed;top:var(--mobile-chat-top,0px);left:0;right:0;bottom:auto;height:var(--mobile-chat-height,100dvh);z-index:100;background:#141414;overflow:hidden;pointer-events:auto}.mobile-chat-overlay .chat-workspace{height:100%!important;min-height:0!important}.mobile-chat-overlay .chat-workspace-main,.mobile-chat-overlay .local-chat-page,.mobile-chat-overlay .local-chat-input,.mobile-chat-overlay textarea,.mobile-chat-overlay button{pointer-events:auto}.mobile-chat-overlay .local-chat-input{position:relative;z-index:4}.is-mobile-chat .local-chat-scroll-bottom{display:none!important}.chat-workspace-main .local-chat-header{position:absolute;top:0;left:0;right:0;z-index:20;height:calc(64px + env(safe-area-inset-top));min-height:calc(64px + env(safe-area-inset-top));box-sizing:border-box;padding:env(safe-area-inset-top) 16px 0 56px;border-bottom:1px solid #2d2d2d;background:#222}.chat-workspace-main .local-chat-header h1{font-size:19px}.chat-workspace-main .local-chat-messages{min-height:0;padding:calc(82px + env(safe-area-inset-top)) 16px 18px}.chat-workspace-main .local-chat-bubble{font-size:15px}.chat-workspace-main .local-chat-input{padding:8px 12px calc(8px + env(safe-area-inset-bottom))}.chat-workspace-main .local-chat-textarea{font-size:16px}.mobile-chat-back{position:absolute;top:calc(8px + env(safe-area-inset-top));left:7px;z-index:30;display:grid;place-items:center;width:44px;height:48px;padding:0;border:0;border-radius:12px;background:transparent;color:#d0d0d0;cursor:pointer}.mobile-chat-back:active{background:#343434;color:#fff}.product-add-form:not(.dish-form),.dish-form{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;min-height:0!important;column-gap:0!important;row-gap:14px!important}.product-add-form:not(.dish-form)>*,.dish-form>*{grid-column:1!important;grid-row:auto!important;min-width:0}.product-add-form:not(.dish-form)>.database-create-mode-toggle,.product-add-form:not(.dish-form)>h2{order:0}.product-add-form:not(.dish-form)>.product-photo-picker{position:static!important;order:1;width:100%!important;height:auto!important;margin:0!important;justify-self:center}.product-add-form:not(.dish-form)>.product-photo-picker .product-photo-button{width:min(220px,100%)!important;height:180px!important}.product-add-form:not(.dish-form)>.product-name-field{order:2;width:100%!important;margin:0!important;transform:none!important}.product-add-form:not(.dish-form)>.product-kcal-field{order:3;width:100%!important;margin:0!important;transform:none!important}.product-add-form:not(.dish-form)>.product-macros-weight-row{order:4;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;margin:0!important;position:static!important;top:auto!important}.product-add-form:not(.dish-form)>.product-macros-weight-row>.product-portion-row{grid-column:1/-1!important}.product-add-form:not(.dish-form)>.product-calories-save-row{order:5;width:100%!important;margin:0!important;top:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.product-calories-save-row>.save-button{grid-column:1/-1!important}.dish-form:after{display:none!important}.dish-form>.database-create-mode-toggle,.dish-form>h2{order:0}.dish-form>.dish-right-panel{position:static!important;top:auto!important;left:auto!important;z-index:auto!important;display:contents!important;width:100%!important}.dish-form>.dish-right-panel>*{grid-column:1!important;grid-row:auto!important;width:100%!important;margin:0!important;position:static!important}.dish-form>.dish-right-panel>.product-photo-picker{order:1;grid-row:2!important;justify-self:center}.dish-form>.dish-right-panel .product-photo-button{position:static!important;width:100%!important;height:190px!important;transform:none!important}.dish-form>.product-name-field{order:2;grid-row:3!important;width:100%!important;margin:0!important}.dish-form>.database-create-mode-toggle{order:3!important;grid-row:auto!important}.dish-form>.dish-ingredients-panel{order:3;grid-row:4!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:0!important}.dish-form>.dish-right-panel>.dish-photo-macro-table{order:4;grid-row:5!important}.dish-form>.dish-right-panel>.dish-summary-fields{order:5;grid-row:6!important}.dish-form>.dish-right-panel>.dish-action-buttons{order:6;grid-row:7!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}.dish-right-panel .replace-combined-toggle{position:static!important;grid-column:1/-1!important;width:100%!important}.dish-ingredients-panel>.dish-controls-row{width:100%!important;min-width:0}.dish-products-dropdown{width:min(100%,calc(100vw - 60px))!important}.profile-settings-card{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:20px!important;padding:0!important}.profile-photo-picker{grid-column:1!important;grid-row:1!important;justify-self:center}.profile-settings-photo{width:136px!important;height:136px!important}.profile-settings-fields{grid-column:1!important;grid-row:2!important;width:100%!important;min-width:0!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}.profile-inline-title{grid-column:1!important;grid-row:1!important}.profile-left-settings,.profile-right-settings{grid-column:1!important;grid-row:auto!important;width:100%!important;min-width:0!important}.profile-left-settings{grid-template-columns:repeat(2,minmax(0,1fr))!important}.profile-left-settings>label,.profile-left-settings .profile-metrics,.profile-left-settings .macro-settings-inline-title,.profile-left-settings .macro-settings-inline{min-width:0}.profile-left-settings>label:nth-child(1){grid-column:1!important;grid-row:1!important}.profile-left-settings>label:nth-child(2){grid-column:2!important;grid-row:1!important}.profile-left-settings .profile-metrics>label:nth-child(1){grid-column:1!important;grid-row:2!important}.profile-left-settings .profile-metrics>label:nth-child(2){grid-column:2!important;grid-row:2!important}.profile-left-settings .profile-metrics>label:nth-child(3){grid-column:1!important;grid-row:3!important}.profile-left-settings>label:nth-child(4){grid-column:2!important;grid-row:3!important}.profile-left-settings .macro-settings-inline-title{grid-column:1/-1!important;grid-row:4!important}.profile-left-settings .macro-settings-inline{grid-column:1/-1!important;grid-row:5!important}.macro-settings-row{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)!important}.profile-right-settings{display:grid!important;gap:10px!important;align-content:start}.profile-right-settings .profile-goal-row{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}.profile-right-settings .settings-row{min-width:0}.profile-right-settings .profile-save-button{position:static!important;grid-column:1!important;justify-self:start;margin:8px 0 0!important}}
