.chatbot-assistant{background:#fff;border:1px solid rgba(226,232,240,.8);border-radius:8px;overflow:hidden;margin-bottom:12px;box-shadow:0 1px 3px #00000014;transition:all .3s ease;flex-shrink:0;width:100%}.chatbot-assistant.minimized{margin-bottom:8px}.chatbot-assistant-header{background:#f8f9fa;color:#1a1a1a;padding:10px 14px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;transition:all .2s;border-bottom:1px solid rgba(226,232,240,.8)}.chatbot-assistant-header:hover{background:#f1f3f5}.chatbot-assistant-title{display:flex;align-items:center;gap:8px;font-weight:600;font-size:14px}.chatbot-icon{font-size:18px}.minimize-btn{background:transparent;border:1px solid #dee2e6;color:#495057;width:24px;height:24px;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;transition:all .2s}.chatbot-assistant.minimized.highlight{animation:box-glow 2s ease-in-out infinite}@keyframes box-glow{0%,to{box-shadow:0 0 8px #0dd3d366,0 0 15px #0dd3d333,0 1px 3px #00000014;border-color:#0dd3d34d}50%{box-shadow:0 0 15px #0dd3d3b3,0 0 30px #0dd3d366,0 1px 3px #00000014;border-color:#0dd3d380}}.minimize-btn:hover{background:#e9ecef;border-color:#adb5bd}.chatbot-assistant-body{overflow:hidden}.chatbot-info-bar{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;background:#f8f9fa;border-bottom:1px solid rgba(226,232,240,.8);gap:12px;flex-wrap:wrap}.weather-info,.sun-info{display:flex;align-items:center;gap:6px;font-size:13px;color:#495057}.weather-icon{font-size:18px}.weather-temp{font-weight:600;color:#212529}.weather-city{color:#6c757d;font-size:12px}.sun-info{gap:12px}.sun-info span{display:flex;align-items:center;gap:4px;font-size:12px;color:#495057}.chatbot-assistant-message{padding:12px 14px;min-height:45px;background:#fff;font-size:13px;line-height:1.5;color:#495057}.message-content{display:flex;flex-direction:column;gap:3px}.message-content strong{color:#212529;font-weight:600}.message-content em{color:#6c757d;font-style:italic;font-size:12px}.typing-indicator{display:flex;gap:4px;align-items:center;padding:8px 0}.typing-indicator span{width:8px;height:8px;border-radius:50%;background:#6c757d;animation:typing-pulse 1.4s ease-in-out infinite}.typing-indicator span:nth-child(2){animation-delay:.2s}.typing-indicator span:nth-child(3){animation-delay:.4s}@keyframes typing-pulse{0%,60%,to{opacity:.3;transform:scale(.8)}30%{opacity:1;transform:scale(1)}}.chatbot-quick-actions{display:flex;gap:6px;padding:8px 12px;background:#fafbfc;border-top:1px solid rgba(226,232,240,.8);flex-wrap:nowrap}.quick-action-btn{background:#fff;border:1px solid rgba(203,213,225,.6);color:#475569;padding:5px 12px;border-radius:4px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s;white-space:nowrap;flex:1}.quick-action-btn:hover{background:#f1f5f9;border-color:#94a3b8;color:#334155;transform:translateY(-1px);box-shadow:0 1px 3px #0000001a}.quick-action-btn:active{transform:translateY(0)}.quick-action-btn.mood-emoji{font-size:24px;padding:8px;min-width:42px;transition:all .2s}.quick-action-btn.mood-emoji:hover{transform:scale(1.15) translateY(-2px);box-shadow:0 2px 8px #00000026}@media (max-width: 768px){.chatbot-info-bar{flex-direction:column;align-items:flex-start;gap:8px}.chatbot-quick-actions{justify-content:stretch}.quick-action-btn{flex:1;text-align:center}}[data-theme=dark] .chatbot-assistant{background:#ffffff0d;border-color:#ffffff1a}[data-theme=dark] .chatbot-assistant-header{background:#ffffff0d;color:#e0e0e0;border-bottom-color:#ffffff1a}[data-theme=dark] .chatbot-assistant-header:hover{background:#ffffff14}[data-theme=dark] .minimize-btn{border-color:#fff3;color:#adb5bd}[data-theme=dark] .chatbot-assistant.minimized.highlight{animation:box-glow-dark 2s ease-in-out infinite}@keyframes box-glow-dark{0%,to{box-shadow:0 0 10px #0dd3d380,0 0 20px #0dd3d34d;border-color:#0dd3d366}50%{box-shadow:0 0 20px #0dd3d3cc,0 0 40px #0dd3d380;border-color:#0dd3d399}}[data-theme=dark] .minimize-btn:hover{background:#ffffff1a;border-color:#ffffff4d}[data-theme=dark] .chatbot-info-bar{background:#ffffff08;border-bottom-color:#ffffff1a}[data-theme=dark] .chatbot-assistant-message{background:#ffffff05;color:#ced4da}[data-theme=dark] .weather-temp,[data-theme=dark] .message-content strong{color:#e0e0e0}[data-theme=dark] .weather-city,[data-theme=dark] .sun-info,[data-theme=dark] .weather-info,[data-theme=dark] .message-content em{color:#adb5bd}[data-theme=dark] .chatbot-quick-actions{background:#ffffff08;border-top-color:#ffffff1a}[data-theme=dark] .quick-action-btn{background:#ffffff0d;border-color:#ffffff26;color:#ced4da}[data-theme=dark] .quick-action-btn:hover{background:#ffffff1a;border-color:#ffffff40;color:#e0e0e0}[data-theme=dark] .typing-indicator span{background:#adb5bd}.sync-indicator{position:relative;display:inline-block}.sync-button{display:flex;align-items:center;gap:6px;padding:8px 14px;background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-md);cursor:pointer;transition:all .2s;font-size:14px;font-weight:500;color:var(--text-primary)}.sync-button:hover{background:var(--bg-tertiary);border-color:var(--primary)}.sync-button:disabled{cursor:not-allowed;opacity:.5}.sync-icon{font-size:16px;line-height:1}.sync-button.syncing .sync-icon{animation:rotate 1.5s linear infinite}.sync-text{font-weight:500}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (max-width: 768px){.sync-button{padding:8px 10px;font-size:13px}.sync-text{display:none}.sync-icon{font-size:18px}}.sync-menu{position:absolute;top:calc(100% + 8px);right:0;background:var(--bg-primary);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);overflow:hidden;min-width:240px;z-index:1000}.sync-menu-item{width:100%;padding:14px 16px;background:none;border:none;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:4px;transition:all .2s;font-size:14px;font-weight:500;color:var(--text-primary)}.sync-menu-item:hover{background:var(--bg-secondary)}.sync-menu-item:not(:last-child){border-bottom:1px solid var(--border)}.sync-menu-desc{font-size:12px;font-weight:400;color:var(--text-secondary)}.sync-menu-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;z-index:999}.sync-error{position:absolute;top:calc(100% + 8px);right:0;padding:12px 16px;background:#f44336;color:#fff;border-radius:var(--radius-md);box-shadow:var(--shadow-lg);display:flex;align-items:center;gap:12px;max-width:300px;font-size:13px;z-index:1000}.sync-error-close{background:none;border:none;color:#fff;font-size:20px;line-height:1;cursor:pointer;padding:0;opacity:.8;transition:opacity .2s;flex-shrink:0}.sync-error-close:hover{opacity:1}.food-search-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.food-search-modal-container{background:var(--bg-primary);border-radius:var(--radius-lg);box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;max-width:600px;width:90%;max-height:80vh;display:flex;flex-direction:column}.food-search-modal-header{display:flex;justify-content:space-between;align-items:center;padding:var(--space-lg);border-bottom:1px solid var(--border)}.food-search-modal-header h3{margin:0;font-size:18px;font-weight:600;color:var(--text-primary)}.food-search-modal-close{background:none;border:none;font-size:24px;color:var(--text-secondary);cursor:pointer;padding:4px 8px;line-height:1;transition:color .2s}.food-search-modal-close:hover{color:var(--text-primary)}.food-search-modal-body{flex:1;overflow:hidden;display:flex;flex-direction:column;padding:var(--space-lg)}.food-search-input-container{position:relative;margin-bottom:var(--space-md)}.food-search-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:var(--text-secondary);pointer-events:none}.food-search-input{width:100%;padding:12px 40px 12px 16px;border:2px solid var(--border);border-radius:var(--radius-md);font-size:15px;color:var(--text-primary);background:var(--bg-secondary);transition:border-color .2s}.food-search-input:focus{outline:none;border-color:var(--primary);background:var(--bg-primary)}.food-search-input::placeholder{color:var(--text-secondary)}.clear-search{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:var(--bg-secondary);border:none;width:28px;height:28px;border-radius:50%;color:var(--text-secondary);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}.clear-search:hover{background:var(--border)}.search-tabs{display:flex;gap:var(--space-xs);margin-bottom:var(--space-md);border-bottom:2px solid var(--border);overflow-x:auto}.search-tab{background:none;border:none;padding:var(--space-sm) var(--space-md);font-size:13px;font-weight:600;color:var(--text-secondary);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-2px;white-space:nowrap;transition:all .2s}.search-tab:hover{color:var(--text-primary)}.search-tab.active{color:var(--primary);border-bottom-color:var(--primary)}.search-results{flex:1;overflow-y:auto}.results-section{margin-bottom:var(--space-lg)}.section-title{font-size:12px;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;margin:0 0 var(--space-sm) 0;padding:0 var(--space-xs)}.result-item{display:flex;justify-content:space-between;align-items:center;padding:var(--space-md);margin-bottom:var(--space-xs);border-radius:var(--radius-md);cursor:pointer;transition:all .2s;background:var(--bg-secondary)}.result-item:hover{background:var(--bg-primary);box-shadow:0 2px 8px #0000001a;transform:translate(4px)}.result-content{flex:1;min-width:0}.result-name{font-size:14px;font-weight:500;color:var(--text-primary);margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-brand{font-size:13px;color:var(--text-secondary)}.result-meta{font-size:12px;color:var(--text-secondary)}.result-item svg{flex-shrink:0;color:var(--text-secondary);transition:color .2s}.result-item:hover svg{color:var(--primary)}.loading-state,.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--space-xl);text-align:center;color:var(--text-secondary)}.empty-state svg{margin-bottom:var(--space-md);color:var(--text-secondary);opacity:.5}.empty-state p{margin:0;font-size:14px}.loading-state{font-size:14px}.search-results::-webkit-scrollbar{width:6px}.search-results::-webkit-scrollbar-track{background:transparent}.search-results::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}.search-results::-webkit-scrollbar-thumb:hover{background:var(--text-secondary)}.trends-chart-container{display:flex;flex-direction:column;height:100%;gap:var(--space-xs)}.trends-filters{display:flex;gap:var(--space-sm);justify-content:center;flex-shrink:0}.filter-btn{padding:var(--space-xs) var(--space-md);background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-primary);font-size:13px;font-weight:500;cursor:pointer;transition:all .2s}.filter-btn:hover{background:var(--bg-tertiary);transform:translateY(-1px)}.filter-btn.active{background:var(--primary);color:#fff;border-color:var(--primary)}.chart-wrapper{flex:1;position:relative;min-height:0;padding:var(--space-xs) var(--space-sm) 30px var(--space-sm);display:flex}.chart-wrapper canvas{width:100%!important;height:100%!important}.chart-loading,.chart-error{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:var(--text-secondary);font-size:14px}.chart-error{color:var(--error)}@media (max-width: 768px){.chart-wrapper{min-height:300px;padding:var(--space-sm)}.filter-btn{padding:var(--space-xs) var(--space-md);font-size:13px}.trends-filters{flex-wrap:wrap}}.tutorial-spotlight-overlay{position:fixed;top:0;left:0;right:0;bottom:0;z-index:9998;pointer-events:none}.spotlight-svg{width:100%;height:100%}.spotlight-highlight{position:fixed;border:3px solid #0dd3d3;border-radius:12px;box-shadow:0 0 0 4px #0dd3d34d,0 0 20px #0dd3d380;pointer-events:none;z-index:9999;transition:all .4s ease-in-out;animation:pulse-border 2s ease-in-out infinite}@keyframes pulse-border{0%,to{box-shadow:0 0 0 4px #0dd3d34d,0 0 20px #0dd3d380}50%{box-shadow:0 0 0 8px #0dd3d333,0 0 30px #0dd3d3b3}}.tutorial-container{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10000;pointer-events:none}.tutorial-container.centered{display:flex;align-items:center;justify-content:center;background:#000000d9;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);pointer-events:all}.tutorial-tooltip{background:#fff;border-radius:16px;box-shadow:0 20px 60px #0006,0 0 0 1px #0dd3d34d;max-width:500px;width:90%;pointer-events:all;transition:all .4s ease-in-out;animation:fadeInScale .3s ease-out}.tutorial-tooltip.center{position:relative;margin:20px}.tutorial-tooltip.top,.tutorial-tooltip.bottom{position:fixed;z-index:10001}@keyframes fadeInScale{0%{opacity:0;transform:translate(-50%) scale(.9)}to{opacity:1;transform:translate(-50%) scale(1)}}.tutorial-tooltip.center{animation:fadeInScaleCenter .3s ease-out}@keyframes fadeInScaleCenter{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}.tutorial-header{background:linear-gradient(135deg,#0dd3d3,#0ab8b8);color:#fff;padding:20px 24px;border-radius:16px 16px 0 0;display:flex;justify-content:space-between;align-items:center;position:relative}.tutorial-header h2{margin:0;font-size:20px;font-weight:700;flex:1}.close-btn{background:#fff3;border:none;color:#fff;width:32px;height:32px;border-radius:50%;font-size:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s;padding:0;line-height:1}.close-btn:hover{background:#ffffff4d}.tutorial-progress{padding:16px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f0f0f0}.progress-dots{display:flex;gap:8px}.progress-dot{width:8px;height:8px;border-radius:50%;background:#e0e0e0;transition:all .3s}.progress-dot.active{background:#0dd3d3;width:24px;border-radius:4px}.progress-dot.completed{background:#4caf50}.progress-text{font-size:12px;color:#666;font-weight:500}.tutorial-content{padding:24px;color:#333;line-height:1.6}.tutorial-content p{margin:0 0 12px}.tutorial-content ul{margin:12px 0;padding-left:24px}.tutorial-content li{margin:8px 0}.tutorial-content strong{color:#0dd3d3;font-weight:600}.tutorial-content .tip{background:#e8f9f9;border-left:4px solid #0dd3d3;padding:12px 16px;margin:16px 0 0;border-radius:4px;font-size:14px}.tutorial-content .final-message{background:linear-gradient(135deg,#0dd3d3,#0ab8b8);color:#fff;padding:16px;border-radius:8px;text-align:center;font-weight:600;margin:16px 0 0}.tutorial-footer{padding:20px 24px;border-top:1px solid #f0f0f0;display:flex;justify-content:space-between;align-items:center;gap:16px}.nav-buttons{display:flex;gap:12px}.btn-primary{background:#0dd3d3;color:#fff;padding:12px 24px;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;transition:all .2s;box-shadow:0 4px 12px #0dd3d34d}.btn-primary:hover{background:#0ab8b8;transform:translateY(-2px);box-shadow:0 6px 16px #0dd3d366}.btn-secondary{background:transparent;color:#666;padding:12px 24px;border:2px solid #e0e0e0;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;transition:all .2s}.btn-secondary:hover{border-color:#0dd3d3;color:#0dd3d3}.tutorial-tooltip.top:after{content:"";position:absolute;bottom:-12px;left:50%;transform:translate(-50%);width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-top:12px solid white;filter:drop-shadow(0 4px 4px rgba(0,0,0,.1))}.tutorial-tooltip.bottom:after{content:"";position:absolute;top:-12px;left:50%;transform:translate(-50%);width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:12px solid white;filter:drop-shadow(0 -4px 4px rgba(0,0,0,.1))}@media (max-width: 640px){.tutorial-tooltip{max-width:90%}.tutorial-header h2{font-size:18px}.tutorial-content{padding:20px;font-size:14px}.tutorial-footer{flex-direction:column;gap:12px}.nav-buttons{width:100%;justify-content:space-between}.btn-primary,.btn-secondary{padding:10px 20px;font-size:14px}}.macro-pie-card{background:var(--bg-secondary);border-radius:var(--radius-md);padding:var(--space-md);border:2px solid var(--border);box-shadow:var(--shadow-md);transition:all .3s;display:flex;flex-direction:column;gap:var(--space-sm);width:280px;height:200px;overflow:hidden;cursor:pointer}.macro-pie-card:hover{box-shadow:var(--shadow-lg)}.macro-pie-card.active{border-color:var(--primary);box-shadow:0 4px 16px #0dd3d34d}.pie-header{display:flex;align-items:center;gap:var(--space-sm)}.pie-icon{font-size:24px;line-height:1}.pie-title{font-size:16px;font-weight:600;color:var(--text-primary)}.pie-content{display:flex;align-items:center;gap:var(--space-lg)}.macro-stats{flex:1;display:flex;flex-direction:column;gap:var(--space-sm)}.macro-stat{display:flex;align-items:center;gap:var(--space-xs);font-size:13px}.macro-color{width:12px;height:12px;border-radius:2px}.macro-label{flex:1;color:var(--text-secondary)}.macro-value{font-weight:600;color:var(--text-primary)}.pie-footer{text-align:center;padding-top:var(--space-sm);border-top:1px solid var(--border)}.total-calories{font-size:20px;font-weight:700;color:var(--text-primary)}@media (max-width: 768px){.macro-pie-card{width:100%;max-width:100%;padding:var(--space-md)}.pie-content{flex-direction:row;justify-content:space-between}}.progress-ring-container{position:relative;display:inline-flex;align-items:center;justify-content:center}.progress-ring{transform:rotate(0)}.progress-ring-content{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none}.progress-percentage{font-size:24px;font-weight:700;color:var(--text-primary);line-height:1;margin-bottom:4px}.progress-label{font-size:12px;color:var(--text-secondary);font-weight:500;text-transform:uppercase;letter-spacing:.5px}@media (max-width: 768px){.progress-percentage{font-size:20px}.progress-label{font-size:11px}}.fiber-card{background:var(--bg-secondary);border-radius:var(--radius-md);padding:var(--space-md);border:2px solid var(--border);box-shadow:var(--shadow-md);transition:all .3s;display:flex;flex-direction:column;gap:var(--space-sm);width:280px;height:200px;overflow:hidden;cursor:pointer}.fiber-card:hover{box-shadow:var(--shadow-lg)}.fiber-card.active{border-color:var(--primary);box-shadow:0 4px 16px #0dd3d34d}.fiber-header{display:flex;align-items:center;gap:var(--space-sm)}.fiber-icon{font-size:24px;line-height:1}.fiber-title{font-size:16px;font-weight:600;color:var(--text-primary)}.fiber-content{display:flex;flex-direction:column;align-items:center;gap:var(--space-md);position:relative}.fiber-value{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center}.current-fiber{font-size:24px;font-weight:700;color:var(--text-primary);line-height:1}.target-fiber{font-size:12px;color:var(--text-secondary);margin-top:4px}.fiber-footer{text-align:center;padding-top:var(--space-sm);border-top:1px solid var(--border)}.fiber-status{font-size:13px;font-weight:500}.status-complete{color:var(--success)}.status-good{color:var(--warning)}.status-low{color:var(--text-secondary)}@media (max-width: 768px){.fiber-card{width:100%;max-width:100%;padding:var(--space-md)}}.upf-card{background:var(--bg-secondary);border-radius:var(--radius-md);padding:var(--space-md);border:2px solid var(--border);box-shadow:var(--shadow-md);transition:all .3s;display:flex;flex-direction:column;gap:var(--space-sm);width:280px;height:200px;overflow:hidden;cursor:pointer}.upf-card:hover{box-shadow:var(--shadow-lg)}.upf-card.active{border-color:var(--primary);box-shadow:0 4px 16px #0dd3d34d}.upf-header{display:flex;align-items:center;gap:var(--space-sm)}.upf-icon{font-size:24px;line-height:1}.upf-title{font-size:16px;font-weight:600;color:var(--text-primary)}.upf-content{display:flex;flex-direction:column;align-items:center;gap:var(--space-md)}.upf-circle{width:80px;height:80px;border-radius:50%;border:6px solid;display:flex;align-items:center;justify-content:center;transition:border-color .3s}.upf-percentage{font-size:24px;font-weight:700;line-height:1}.upf-bar-container{width:100%}.upf-bar-bg{width:100%;height:12px;background:var(--bg-tertiary);border-radius:6px;overflow:hidden;position:relative}.upf-bar-fill{height:100%;border-radius:6px;transition:background-color .3s}.upf-labels{display:flex;justify-content:space-between;margin-top:4px;font-size:11px;color:var(--text-tertiary)}.upf-footer{text-align:center;padding-top:var(--space-sm);border-top:1px solid var(--border)}.upf-status{font-size:14px;font-weight:600}@media (max-width: 768px){.upf-card{width:100%;max-width:100%;padding:var(--space-md)}.upf-circle{width:80px;height:80px}.upf-percentage{font-size:24px}}.upf-breakdown-modal{max-width:600px;max-height:80vh;overflow-y:auto}.upf-breakdown-modal .modal-body{padding:0}.upf-summary{background:linear-gradient(135deg,#f443361a,#ff98001a);padding:var(--space-lg);border-bottom:1px solid var(--border);text-align:center}.upf-summary-stat{display:flex;flex-direction:column;align-items:center;gap:var(--space-xs)}.upf-summary-value{font-size:48px;font-weight:700;color:#f44336;line-height:1}.upf-summary-label{font-size:14px;color:var(--text-secondary);font-weight:500}.loading-state{padding:var(--space-xl);text-align:center;color:var(--text-secondary)}.loading-spinner{width:40px;height:40px;margin:0 auto var(--space-md);border:4px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin 1s linear infinite}.empty-state{padding:var(--space-xl);text-align:center;color:var(--text-secondary)}.empty-state svg{margin-bottom:var(--space-md);color:#4caf50}.empty-state p{margin:var(--space-sm) 0;font-size:16px;font-weight:600;color:var(--text-primary)}.empty-subtitle{font-size:14px!important;font-weight:400!important;color:var(--text-secondary)!important}.error-state{padding:var(--space-lg);text-align:center;color:#f44336;background:#f443360d;border-radius:var(--radius-md);margin:var(--space-md)}.upf-meals-list{padding:var(--space-md);display:flex;flex-direction:column;gap:var(--space-md)}.upf-meal-card{background:var(--bg-secondary);border:2px solid var(--border);border-radius:var(--radius-md);padding:var(--space-md);transition:all .2s}.upf-meal-card:hover{border-color:var(--primary);box-shadow:var(--shadow-md)}.upf-meal-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:var(--space-md);padding-bottom:var(--space-md);border-bottom:2px dashed var(--border)}.upf-meal-info{flex:1}.upf-meal-name{font-size:18px;font-weight:700;color:var(--text-primary);margin:0 0 var(--space-xs) 0}.upf-meal-meta{display:flex;align-items:center;gap:var(--space-xs);font-size:12px;color:var(--text-secondary)}.upf-meal-type{text-transform:capitalize;font-weight:600;color:var(--primary)}.upf-meal-separator{color:var(--border)}.upf-meal-calories{display:flex;flex-direction:column;align-items:flex-end;background:linear-gradient(135deg,#ff57221a,#f443361a);padding:8px 12px;border-radius:var(--radius-sm)}.upf-calories-value{font-size:24px;font-weight:700;color:#ff5722;line-height:1}.upf-calories-label{font-size:10px;color:var(--text-secondary);text-transform:uppercase;font-weight:600;letter-spacing:.5px}.upf-ingredients-list{display:flex;flex-direction:column;gap:var(--space-sm)}.upf-ingredient-item{display:flex;justify-content:space-between;align-items:center;gap:var(--space-md);padding:var(--space-sm);background:var(--bg-tertiary);border-radius:var(--radius-sm);transition:background .2s}.upf-ingredient-item:hover{background:var(--bg-secondary)}.upf-ingredient-content{flex:1;min-width:0}.upf-ingredient-name{font-size:14px;font-weight:600;color:var(--text-primary);margin-bottom:4px}.upf-ingredient-details{display:flex;align-items:center;gap:var(--space-xs);font-size:12px;color:var(--text-secondary)}.upf-ingredient-quantity{font-weight:500}.upf-ingredient-calories{font-weight:600;color:#ff5722}.upf-nova-badge{display:flex;flex-direction:column;align-items:center;padding:6px 10px;border-radius:var(--radius-sm);min-width:80px;text-align:center;box-shadow:0 2px 4px #0000001a}.nova-score{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;line-height:1;margin-bottom:2px}.nova-label{font-size:9px;font-weight:600;text-transform:uppercase;letter-spacing:.3px;opacity:.9;white-space:nowrap}.upf-info-footer{background:linear-gradient(135deg,#2196f30d,#2196f305);border-top:2px solid var(--border);padding:var(--space-md);margin-top:var(--space-md)}.upf-info-footer p{margin:var(--space-sm) 0;font-size:13px;color:var(--text-secondary);line-height:1.5}.upf-info-footer strong{color:var(--text-primary);font-weight:600}.upf-info-footer ul{margin:var(--space-sm) 0;padding-left:var(--space-lg);font-size:12px;color:var(--text-secondary)}.upf-info-footer li{margin:4px 0;line-height:1.6}.upf-tip{background:#2196f31a;padding:var(--space-sm) var(--space-md);border-radius:var(--radius-sm);border-left:3px solid #2196F3;font-size:13px!important;color:var(--text-primary)!important;font-weight:500!important}@media (max-width: 768px){.upf-breakdown-modal{max-width:100%;width:95vw;max-height:85vh;margin:auto}.upf-summary{padding:var(--space-md)}.upf-summary-value{font-size:36px}.upf-meals-list,.upf-meal-card{padding:var(--space-sm)}.upf-meal-header{flex-direction:row;align-items:center;margin-bottom:var(--space-sm);padding-bottom:var(--space-sm)}.upf-meal-name{font-size:16px;margin-bottom:2px}.upf-meal-meta{font-size:11px}.upf-meal-calories{padding:6px 10px;min-width:60px}.upf-calories-value{font-size:20px}.upf-calories-label{font-size:9px}.upf-ingredient-item{padding:8px;gap:var(--space-sm)}.upf-ingredient-name{font-size:13px;margin-bottom:2px}.upf-ingredient-details{flex-wrap:wrap;font-size:11px;gap:4px}.upf-nova-badge{min-width:70px;padding:4px 8px;flex-shrink:0}.nova-score{font-size:11px}.nova-label{font-size:8px}.upf-info-footer{padding:var(--space-sm);margin-top:var(--space-sm)}.upf-info-footer p{font-size:12px}.upf-info-footer ul{font-size:11px;padding-left:var(--space-md)}.upf-tip{font-size:12px!important;padding:var(--space-xs) var(--space-sm)}}.nutrition-cards{display:flex;gap:var(--space-xl);justify-content:flex-start;align-items:center;flex-wrap:nowrap;position:relative;padding:0 80px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none}.nutrition-cards::-webkit-scrollbar{display:none}.nutrition-cards>div{flex:0 0 auto;scroll-snap-align:center;transition:all .4s cubic-bezier(.4,0,.2,1);transform-origin:center}.nutrition-cards>div:first-child,.nutrition-cards>div:last-child{opacity:.7;transform:scale(.9)}.nutrition-cards>div:nth-child(2),.nutrition-cards>div:nth-child(3),.nutrition-cards>div:nth-child(4){opacity:1;transform:scale(1)}.nutrition-cards>div:hover{transform:scale(1.02);cursor:pointer}.nutrition-cards>div.active-metric-card{box-shadow:0 0 0 3px var(--primary)}@media (max-width: 768px){.mobile-only{display:block}.desktop-only{display:none}.nutrition-cards{display:flex;flex-direction:column;padding:0;gap:0;width:100%}.unified-nutrition-card{background:var(--bg-secondary);border-radius:var(--radius-lg);padding:12px;box-shadow:var(--shadow-md);min-height:280px;max-height:280px;display:flex;flex-direction:column;width:100%;margin:0 16px}.card-internal-tabs{display:flex;gap:6px;margin-bottom:16px;background:var(--bg-tertiary);padding:4px;border-radius:10px}.card-tab{flex:1;padding:8px 6px;background:transparent;border:none;border-radius:8px;font-size:12px;font-weight:600;color:var(--text-secondary);cursor:pointer;transition:all .2s;white-space:nowrap}.card-tab.active{background:var(--primary);color:#fff;box-shadow:0 2px 8px #00000026}.card-content-area{width:100%;flex:1;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.card-content-area>div{background:transparent!important;box-shadow:none!important;padding:0!important;width:100%}.category-switcher{display:flex;align-items:center;justify-content:space-between;padding:12px 0 0;margin-top:16px;border-top:1px solid var(--border)}.category-arrow{background:var(--bg-tertiary);border:1px solid var(--border);border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;color:var(--text-primary);cursor:pointer;transition:all .2s}.category-arrow:hover{background:var(--primary);color:#fff;border-color:var(--primary);transform:scale(1.1)}.category-arrow:active{transform:scale(.95)}.category-indicator{display:flex;align-items:center;gap:8px;flex:1;justify-content:center}.category-icon{font-size:20px}.category-name{font-size:14px;font-weight:600;color:var(--text-primary);text-transform:uppercase;letter-spacing:.5px}}.weight-celebration-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000bf;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:10000;padding:20px}.celebration-confetti{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none;overflow:hidden}.confetti-piece{position:absolute;width:12px;height:12px;border-radius:2px;top:-100px}.celebration-modal{background:linear-gradient(135deg,#667eea,#764ba2);border-radius:24px;padding:40px;max-width:700px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #00000080,0 0 0 1px #ffffff1a;position:relative}.celebration-modal-close{position:absolute;top:16px;right:16px;background:#fff3;border:none;width:40px;height:40px;border-radius:50%;font-size:28px;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;line-height:1;padding:0;z-index:10}.celebration-modal-close:hover{background:#ffffff4d;transform:rotate(90deg) scale(1.1)}.celebration-header{text-align:center;margin-bottom:32px}.trophy-large{font-size:80px;display:inline-block;filter:drop-shadow(0 8px 16px rgba(255,215,0,.6));margin-bottom:16px}.celebration-heading{font-size:42px;font-weight:900;color:#fff;margin:0 0 8px;background:linear-gradient(45deg,gold,orange,gold);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-shadow:0 4px 8px rgba(0,0,0,.2)}.celebration-subheading{font-size:16px;color:#ffffffe6;margin:0;font-weight:500}.journey-stats{display:flex;align-items:center;justify-content:center;gap:20px;margin-bottom:32px}.stat-box{background:#ffffff26;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:24px 20px;flex:1;text-align:center;border:2px solid rgba(255,255,255,.2);transition:all .3s}.stat-box.highlight{background:#ffd70040;border-color:#ffd70080;box-shadow:0 8px 24px #ffd7004d}.stat-icon{font-size:32px;margin-bottom:8px}.stat-label{font-size:12px;color:#fffc;text-transform:uppercase;letter-spacing:1px;font-weight:600;margin-bottom:8px}.stat-value{font-size:32px;font-weight:900;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.3)}.stat-value.gold{color:gold;text-shadow:0 2px 8px rgba(255,215,0,.5)}.stat-arrow{font-size:36px;color:#fff9;flex-shrink:0}.achievement-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-bottom:24px}.achievement-card{background:#ffffff26;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:20px 16px;text-align:center;border:2px solid rgba(255,255,255,.2);transition:all .3s;cursor:default}.achievement-card.success{background:#4caf5040;border-color:#4caf5080}.achievement-card.info{background:#2196f340;border-color:#2196f380}.achievement-card.primary{background:#ffd70040;border-color:#ffd70080}.achievement-icon{font-size:36px;margin-bottom:8px}.achievement-label{font-size:12px;color:#fffc;text-transform:uppercase;letter-spacing:.5px;font-weight:600;margin-bottom:8px}.achievement-value{font-size:24px;font-weight:800;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,.2)}.achievement-detail{font-size:11px;color:#ffffffb3;margin-top:4px}.celebration-message-box{background:#ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px;padding:20px;margin-bottom:24px;border:1px solid rgba(255,255,255,.2)}.celebration-quote{font-size:15px;color:#fffffff2;margin:0;line-height:1.6;font-style:italic;text-align:center}.celebration-continue-btn{background:linear-gradient(135deg,gold,orange);color:#1a1a1a;border:none;padding:16px 48px;border-radius:50px;font-size:18px;font-weight:700;cursor:pointer;box-shadow:0 8px 24px #ffd70066;transition:all .3s ease;text-transform:uppercase;letter-spacing:1px;width:100%;max-width:300px;margin:0 auto;display:block}.celebration-continue-btn:hover{transform:translateY(-2px);box-shadow:0 12px 32px #ffd70099}.celebration-continue-btn:active{transform:translateY(0)}@media (max-width: 768px){.celebration-modal{padding:32px 24px;max-width:95vw}.trophy-large{font-size:64px}.celebration-heading{font-size:32px}.celebration-subheading{font-size:14px}.journey-stats{flex-direction:column;gap:12px}.stat-box{width:100%;padding:20px 16px}.stat-arrow{transform:rotate(90deg);font-size:28px}.stat-value{font-size:28px}.achievement-row{grid-template-columns:1fr;gap:12px}.achievement-icon{font-size:32px}.achievement-value{font-size:20px}.celebration-quote{font-size:14px}.celebration-continue-btn{padding:14px 36px;font-size:16px}.confetti-piece{width:10px;height:10px}}@media (max-width: 480px){.celebration-modal{padding:24px 16px}.trophy-large{font-size:56px}.celebration-heading,.stat-icon{font-size:28px}.stat-value{font-size:24px}.achievement-icon{font-size:28px}}[data-theme=dark] .celebration-modal{background:linear-gradient(135deg,#4a5568,#2d3748)}[data-theme=dark] .stat-box,[data-theme=dark] .achievement-card{background:#ffffff1a;border-color:#ffffff26}.celebration-modal::-webkit-scrollbar{width:8px}.celebration-modal::-webkit-scrollbar-track{background:#ffffff1a;border-radius:4px}.celebration-modal::-webkit-scrollbar-thumb{background:#ffffff4d;border-radius:4px}.celebration-modal::-webkit-scrollbar-thumb:hover{background:#ffffff80}.weight-card{background:var(--bg-secondary);border-radius:var(--radius-md);padding:var(--space-md);border:2px solid var(--border);box-shadow:var(--shadow-md);transition:all .3s;display:flex;flex-direction:column;width:220px;height:200px;overflow:hidden;cursor:pointer;position:relative}.weight-card:hover{box-shadow:var(--shadow-lg)}.weight-card.active{border-color:var(--primary);box-shadow:0 0 0 3px #0dd3d326}.weight-content{display:flex;flex-direction:column;justify-content:flex-start;padding-top:8px}.weight-display{display:flex;align-items:center;justify-content:center;gap:var(--space-xs);height:50px;margin-bottom:12px}.weight-value{font-size:32px;font-weight:700;color:var(--primary);line-height:1}.weight-unit{font-size:14px;font-weight:600;color:var(--text-secondary)}.weight-target{text-align:center;font-size:11px;color:var(--text-secondary);padding:6px var(--space-sm);background:var(--bg-tertiary);border-radius:var(--radius-sm)}.weight-info-stack{position:absolute;bottom:12px;left:var(--space-md);right:var(--space-md);display:flex;flex-direction:column;gap:4px}.weight-period-change{display:flex;justify-content:space-between;align-items:center;padding:3px 8px;background:linear-gradient(135deg,#0dd3d326,#0dd3d30d);border-radius:var(--radius-sm);border:1px dashed var(--primary);font-size:10px}.period-change-label{color:var(--text-secondary);font-weight:600;text-transform:uppercase;font-size:9px;letter-spacing:.3px}.period-change-value{font-weight:700;font-size:12px}.period-change-value.positive{color:#4caf50}.period-change-value.negative{color:#f44336}.weight-goal-display{display:flex;justify-content:space-between;align-items:center;padding:3px 8px;background:linear-gradient(135deg,#4caf5026,#4caf500d);border-radius:var(--radius-sm);border:1px dashed #4CAF50;gap:8px;font-size:10px}.goal-remaining{display:flex;align-items:baseline;gap:4px}.goal-label{color:var(--text-secondary);font-weight:600;text-transform:uppercase;font-size:9px;letter-spacing:.3px}.goal-value{font-weight:700;color:#4caf50;font-size:11px}.goal-eta{display:flex;align-items:baseline;gap:4px;padding-left:8px;border-left:1px solid rgba(76,175,80,.3)}.eta-label{color:var(--text-secondary);font-weight:600;text-transform:uppercase;font-size:9px;letter-spacing:.3px}.eta-value{font-weight:700;color:#4caf50;font-size:11px}@media (max-width: 768px){.weight-card{width:100%;max-width:100%;padding:var(--space-md)}.card-icon{font-size:24px}.card-title{font-size:14px}.weight-value{font-size:64px!important;font-weight:700}.weight-unit{font-size:28px!important}.weight-display{height:auto;min-height:80px;margin-bottom:16px}.weight-content{padding-top:12px}}.body-composition-card{background:var(--bg-secondary);border-radius:var(--radius-md);padding:var(--space-md);border:2px solid var(--border);box-shadow:var(--shadow-md);transition:all .3s;display:flex;flex-direction:column;gap:var(--space-sm);width:220px;height:200px;overflow:hidden;cursor:pointer}.body-composition-card:hover{box-shadow:var(--shadow-lg)}.body-composition-card.active{border-color:var(--primary);box-shadow:0 0 0 3px #0dd3d326}.composition-content{display:flex;align-items:center;justify-content:center;padding-top:8px;height:120px}.composition-circles{display:flex;gap:var(--space-lg);align-items:center;justify-content:center}.circle-container{display:flex;flex-direction:column;align-items:center;gap:var(--space-xs)}.circle-wrapper{position:relative;display:flex;align-items:center;justify-content:center}.circle-progress{display:block}.circle-value{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:13px;font-weight:700;line-height:1;text-align:center}.circle-label{font-size:10px;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;text-align:center}@media (max-width: 768px){.body-composition-card{width:100%;max-width:100%;padding:var(--space-md)}}.bmi-card{background:var(--bg-secondary);border-radius:var(--radius-md);padding:var(--space-md);border:2px solid var(--border);box-shadow:var(--shadow-md);transition:all .3s;display:flex;flex-direction:column;width:220px;height:200px;overflow:hidden;cursor:pointer;position:relative}.bmi-card:hover{box-shadow:var(--shadow-lg)}.bmi-card.active{border-color:var(--primary);box-shadow:0 0 0 3px #0dd3d326}.card-header{display:flex;align-items:center;gap:var(--space-xs);margin-bottom:8px}.bmi-content{display:flex;flex-direction:column;justify-content:flex-start;padding-top:8px}.bmi-display{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:50px;margin-bottom:12px;position:relative}.bmi-value{font-size:32px;font-weight:700;line-height:1}.bmi-category{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.bmi-scale{position:relative;margin-bottom:8px}.scale-bar{height:10px;border-radius:5px;display:flex;overflow:hidden}.scale-section{flex:1;transition:opacity .3s}.scale-section.underweight{background:#5dade2}.scale-section.normal{background:#4caf50}.scale-section.overweight{background:#ff9800}.scale-section.obese{background:#f44336}.bmi-indicator{position:absolute;bottom:-12px;left:50%;transform:translate(-50%);transition:all .5s ease;z-index:1}.indicator-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:7px solid;border-bottom:none}.scale-labels{display:flex;justify-content:space-between;padding:0 25%;margin-top:4px;margin-bottom:8px;font-size:9px;color:var(--text-tertiary)}.bmi-info-stack{position:absolute;bottom:12px;left:var(--space-md);right:var(--space-md);display:flex;flex-direction:column;gap:4px}.bmi-period-change{display:flex;justify-content:space-between;align-items:center;padding:3px 8px;background:linear-gradient(135deg,#0dd3d326,#0dd3d30d);border-radius:var(--radius-sm);border:1px dashed var(--primary);font-size:10px}.bmi-period-change .period-change-label{color:var(--text-secondary);font-weight:600;text-transform:uppercase;font-size:9px;letter-spacing:.3px}.bmi-period-change .period-change-value{font-weight:700;font-size:12px;color:var(--primary)}.bmi-countdown{display:flex;justify-content:space-between;align-items:center;padding:3px 8px;background:linear-gradient(135deg,#4caf5026,#4caf500d);border-radius:var(--radius-sm);border:1px dashed #4CAF50;font-size:10px}.bmi-countdown-label{color:var(--text-secondary);font-weight:600;text-transform:uppercase;letter-spacing:.3px;font-size:9px}.bmi-countdown-value{font-weight:700;color:#4caf50;font-size:11px}@media (max-width: 768px){.bmi-card{width:100%;max-width:100%;padding:var(--space-md)}.bmi-value{font-size:36px}}.body-cards{display:flex;gap:var(--space-xl);justify-content:flex-start;align-items:center;flex-wrap:nowrap;position:relative;padding:0 20px;justify-content:center;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none}.body-cards::-webkit-scrollbar{display:none}.body-cards>div{flex:0 0 auto;scroll-snap-align:center;transition:all .4s cubic-bezier(.4,0,.2,1);transform-origin:center}.body-cards>div:first-child{opacity:.7;transform:scale(.9) translate(20px)}.body-cards>div:last-child{opacity:.7;transform:scale(.9) translate(-20px)}.body-cards>div:nth-child(2),.body-cards>div:nth-child(3){opacity:1;transform:scale(1)}.body-cards>div:hover{transform:scale(1.02);cursor:pointer}.body-cards>div:first-child:hover,.body-cards>div:last-child:hover{transform:scale(.95)!important;box-shadow:0 0 0 2px var(--primary)}.body-cards>div.active-metric-card{box-shadow:0 0 0 3px var(--primary)}.desktop-only{display:flex;gap:var(--space-xl);justify-content:flex-start;align-items:center;flex-wrap:nowrap;padding:0 20px;justify-content:center}@media (max-width: 768px){.mobile-only{display:block}.desktop-only{display:none}.body-cards{display:flex;flex-direction:column;padding:0;gap:0;width:100%}.unified-body-card{background:var(--bg-secondary);border-radius:var(--radius-lg);padding:12px;box-shadow:var(--shadow-md);min-height:280px;max-height:280px;display:flex;flex-direction:column;width:100%;margin:0 16px}.card-internal-tabs{display:flex;gap:6px;margin-bottom:16px;background:var(--bg-tertiary);padding:4px;border-radius:10px}.card-tab{flex:1;padding:8px 6px;background:transparent;border:none;border-radius:8px;font-size:12px;font-weight:600;color:var(--text-secondary);cursor:pointer;transition:all .2s;white-space:nowrap}.card-tab.active{background:var(--primary);color:#fff;box-shadow:0 2px 8px #00000026}.card-content-area{width:100%;flex:1;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.card-content-area>div{background:transparent!important;box-shadow:none!important;padding:0!important;width:100%}.card-content-wrapper{animation:fadeIn .3s ease-in-out}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.category-switcher{display:flex;align-items:center;justify-content:space-between;padding:12px 0 0;margin-top:16px;border-top:1px solid var(--border)}.category-arrow{background:var(--bg-tertiary);border:1px solid var(--border);border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;color:var(--text-primary);cursor:pointer;transition:all .2s}.category-arrow:hover{background:var(--primary);color:#fff;border-color:var(--primary);transform:scale(1.1)}.category-arrow:active{transform:scale(.95)}.category-indicator{display:flex;align-items:center;gap:8px;flex:1;justify-content:center}.category-icon{font-size:20px}.category-name{font-size:14px;font-weight:600;color:var(--text-primary);text-transform:uppercase;letter-spacing:.5px}.body-cards>div:first-child,.body-cards>div:last-child{opacity:1;transform:scale(1)}.body-cards>div{box-shadow:0 4px 12px #0000001a}}.sleep-card{background:var(--bg-secondary);border-radius:var(--radius-md);padding:var(--space-md);border:2px solid var(--border);box-shadow:var(--shadow-md);transition:all .3s;display:flex;flex-direction:column;gap:var(--space-sm);width:280px;height:200px;overflow:hidden;cursor:pointer}.sleep-card:hover{box-shadow:var(--shadow-lg)}.sleep-card.active{border-color:var(--primary);box-shadow:0 0 0 3px #0dd3d326}.sleep-content{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-md)}.sleep-duration{text-align:center}.duration-value{font-size:42px;font-weight:700;color:#9b59b6;line-height:1}.duration-unit{font-size:20px;font-weight:600;color:var(--text-secondary);margin-left:2px}.sleep-quality{display:flex;flex-direction:column;align-items:center;gap:6px}.quality-stars{display:flex;gap:4px}.star{font-size:20px;transition:color .3s}.quality-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}@media (max-width: 768px){.sleep-card{width:100%;max-width:100%;padding:var(--space-md)}.duration-value{font-size:36px}}.hrv-card{background:var(--bg-secondary);border-radius:var(--radius-md);padding:var(--space-md);border:2px solid var(--border);box-shadow:var(--shadow-md);transition:all .3s;display:flex;flex-direction:column;gap:var(--space-sm);width:280px;height:200px;overflow:hidden;cursor:pointer}.hrv-card:hover{box-shadow:var(--shadow-lg)}.hrv-card.active{border-color:var(--primary);box-shadow:0 0 0 3px #0dd3d326}.hrv-content{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-sm)}.hrv-value{font-size:42px;font-weight:700;line-height:1}.hrv-unit{font-size:16px;font-weight:600;color:var(--text-secondary);margin-left:4px}.hrv-visualization{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%}.hrv-bar-container{width:60px;height:80px;background:var(--bg-tertiary);border-radius:4px;display:flex;align-items:flex-end;overflow:hidden}.hrv-bar{width:100%;transition:height .5s ease,background-color .3s ease;border-radius:4px 4px 0 0}.hrv-labels{display:flex;justify-content:space-between;width:60px}.hrv-label{font-size:9px;color:var(--text-tertiary)}.hrv-status{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}@media (max-width: 768px){.hrv-card{width:100%;max-width:100%;padding:var(--space-md)}.hrv-value{font-size:36px}}.mood-card{background:var(--bg-secondary);border-radius:var(--radius-md);padding:var(--space-md);border:2px solid var(--border);box-shadow:var(--shadow-md);transition:all .3s;display:flex;flex-direction:column;gap:var(--space-sm);width:280px;height:200px;overflow:hidden;cursor:pointer}.mood-card:hover{box-shadow:var(--shadow-lg)}.mood-card.active{border-color:var(--primary);box-shadow:0 0 0 3px #0dd3d326}.mood-content{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-sm)}.mood-emoji{font-size:64px;line-height:1}.mood-score{display:flex;align-items:baseline;gap:4px}.score-value{font-size:32px;font-weight:700;line-height:1}.score-max{font-size:16px;font-weight:600;color:var(--text-secondary)}.mood-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.mood-indicators{display:flex;gap:6px;margin-top:4px}.mood-dot{width:10px;height:10px;border-radius:50%;transition:background-color .3s}@media (max-width: 768px){.mood-card{width:100%;max-width:100%;padding:var(--space-md)}.mood-emoji{font-size:56px}}.wellness-cards{display:flex;gap:var(--space-xl);justify-content:flex-start;align-items:center;flex-wrap:nowrap;position:relative;padding:0 80px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none}.wellness-cards::-webkit-scrollbar{display:none}.wellness-cards>div{flex:0 0 auto;scroll-snap-align:center;transition:all .4s cubic-bezier(.4,0,.2,1);transform-origin:center}.wellness-cards>div:first-child,.wellness-cards>div:last-child{opacity:.7;transform:scale(.9)}.wellness-cards>div:nth-child(2){opacity:1;transform:scale(1)}.wellness-cards>div:hover{transform:scale(1.02);cursor:pointer}.wellness-cards>div.active-metric-card{box-shadow:0 0 0 3px var(--primary)}@media (max-width: 768px){.mobile-only{display:block}.desktop-only{display:none}.wellness-cards{display:flex;flex-direction:column;padding:0;gap:0;width:100%}.unified-wellness-card{background:var(--bg-secondary);border-radius:var(--radius-lg);padding:12px;box-shadow:var(--shadow-md);min-height:280px;max-height:280px;display:flex;flex-direction:column;width:100%;margin:0 16px}.card-internal-tabs{display:flex;gap:6px;margin-bottom:16px;background:var(--bg-tertiary);padding:4px;border-radius:10px}.card-tab{flex:1;padding:8px 6px;background:transparent;border:none;border-radius:8px;font-size:12px;font-weight:600;color:var(--text-secondary);cursor:pointer;transition:all .2s;white-space:nowrap}.card-tab.active{background:var(--primary);color:#fff;box-shadow:0 2px 8px #00000026}.card-content-area{width:100%;flex:1;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.card-content-area>div{background:transparent!important;box-shadow:none!important;padding:0!important;width:100%}.category-switcher{display:flex;align-items:center;justify-content:space-between;padding:12px 0 0;margin-top:16px;border-top:1px solid var(--border)}.category-arrow{background:var(--bg-tertiary);border:1px solid var(--border);border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;color:var(--text-primary);cursor:pointer;transition:all .2s}.category-arrow:hover{background:var(--primary);color:#fff;border-color:var(--primary);transform:scale(1.1)}.category-arrow:active{transform:scale(.95)}.category-indicator{display:flex;align-items:center;gap:8px;flex:1;justify-content:center}.category-icon{font-size:20px}.category-name{font-size:14px;font-weight:600;color:var(--text-primary);text-transform:uppercase;letter-spacing:.5px}}.steps-card{background:var(--bg-secondary);border-radius:var(--radius-md);padding:var(--space-md);border:2px solid var(--border);box-shadow:var(--shadow-md);transition:all .3s;display:flex;flex-direction:column;gap:var(--space-sm);width:280px;height:200px;overflow:hidden;cursor:pointer}.steps-card:hover{box-shadow:var(--shadow-lg)}.steps-card.active{border-color:var(--primary);box-shadow:0 0 0 3px #0dd3d326}.steps-content{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-sm)}.steps-value{font-size:32px;font-weight:700;color:#4caf50;line-height:1}.steps-progress{position:relative;width:100px;height:100px}.progress-ring{width:100%;height:100%;transform:rotate(0)}.progress-ring-fill{transition:stroke-dasharray .5s ease}.progress-percentage{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:24px;font-weight:700;color:#4caf50}.steps-target{font-size:11px;color:var(--text-secondary);font-weight:500}@media (max-width: 768px){.steps-card{width:100%;max-width:100%;padding:var(--space-md)}.steps-value{font-size:28px}}.active-minutes-card{background:var(--bg-secondary);border-radius:var(--radius-md);padding:var(--space-md);border:2px solid var(--border);box-shadow:var(--shadow-md);transition:all .3s;display:flex;flex-direction:column;gap:var(--space-sm);width:280px;height:200px;overflow:hidden;cursor:pointer;position:relative}.active-minutes-card:hover{box-shadow:var(--shadow-lg)}.active-minutes-card.active{border-color:var(--primary);box-shadow:0 0 0 3px #0dd3d326}.active-content{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-top:8px;gap:var(--space-md)}.minutes-display{display:flex;align-items:baseline;gap:6px}.minutes-value{font-size:32px;font-weight:700;color:#ff9800;line-height:1}.minutes-unit{font-size:16px;font-weight:600;color:var(--text-secondary)}.progress-bar-container{width:100%;height:10px;background:var(--bg-tertiary);border-radius:5px;overflow:hidden}.progress-bar-fill{height:100%;background:#ff9800;border-radius:5px;transition:width .5s ease}.active-info-stack{position:absolute;bottom:12px;left:var(--space-md);right:var(--space-md);display:flex;flex-direction:column;gap:4px}.weekly-info{display:flex;justify-content:space-between;align-items:center;padding:3px 8px;background:linear-gradient(135deg,#4caf5026,#4caf500d);border-radius:var(--radius-sm);border:1px dashed #4CAF50;font-size:10px}.weekly-label{color:var(--text-secondary);font-weight:600;text-transform:uppercase;font-size:9px;letter-spacing:.3px}.weekly-value{font-weight:700;color:#4caf50;font-size:11px}.calories-info{display:flex;justify-content:space-between;align-items:center;padding:3px 8px;background:linear-gradient(135deg,#ff980026,#ff98000d);border-radius:var(--radius-sm);border:1px dashed #FF9800;font-size:10px}.calories-label{color:var(--text-secondary);font-weight:600;text-transform:uppercase;font-size:9px;letter-spacing:.3px}.calories-value{font-weight:700;color:#ff9800;font-size:11px}@media (max-width: 768px){.active-minutes-card{width:100%;max-width:100%;padding:var(--space-md)}.minutes-value{font-size:36px}}.heart-rate-card{background:var(--bg-secondary);border-radius:var(--radius-md);padding:var(--space-md);border:2px solid var(--border);box-shadow:var(--shadow-md);transition:all .3s;display:flex;flex-direction:column;gap:var(--space-sm);width:280px;height:200px;overflow:hidden;cursor:pointer}.heart-rate-card:hover{box-shadow:var(--shadow-lg)}.heart-rate-card.active{border-color:var(--primary);box-shadow:0 0 0 3px #0dd3d326}.card-header{display:flex;align-items:center;gap:var(--space-xs)}.card-icon{font-size:16px}.card-title{font-size:11px;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px}.heart-rate-content{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-sm)}.heart-animation{margin-bottom:var(--space-xs)}.heart-icon{font-size:48px;line-height:1}.bpm-display{display:flex;align-items:baseline;gap:6px}.bpm-value{font-size:42px;font-weight:700;line-height:1}.bpm-unit{font-size:16px;font-weight:600;color:var(--text-secondary)}.zone-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.resting-hr{font-size:11px;color:var(--text-secondary);font-weight:500;padding:4px var(--space-sm);background:var(--bg-tertiary);border-radius:var(--radius-sm)}@media (max-width: 768px){.heart-rate-card{width:100%;max-width:100%;padding:var(--space-md)}.bpm-value{font-size:36px}.heart-icon{font-size:42px}}.fitness-cards{display:flex;gap:var(--space-xl);justify-content:flex-start;align-items:center;flex-wrap:nowrap;position:relative;padding:0 80px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none}.fitness-cards::-webkit-scrollbar{display:none}.fitness-cards>div{flex:0 0 auto;scroll-snap-align:center;transition:all .4s cubic-bezier(.4,0,.2,1);transform-origin:center}.fitness-cards>div:first-child,.fitness-cards>div:last-child{opacity:.7;transform:scale(.9)}.fitness-cards>div:nth-child(2),.fitness-cards>div:nth-child(3){opacity:1;transform:scale(1)}.fitness-cards>div:hover{transform:scale(1.02);cursor:pointer}.fitness-cards>div.active-metric-card{box-shadow:0 0 0 3px var(--primary)}.loading{text-align:center;padding:var(--space-lg);color:var(--text-secondary);font-size:14px}.desktop-only{display:flex;gap:var(--space-xl);justify-content:flex-start;align-items:center;flex-wrap:nowrap;padding:0 80px}@media (max-width: 768px){.mobile-only{display:block}.desktop-only{display:none}.fitness-cards{display:flex;flex-direction:column;padding:0;gap:0;width:100%}.unified-fitness-card{background:var(--bg-secondary);border-radius:var(--radius-lg);padding:12px;box-shadow:var(--shadow-md);min-height:280px;max-height:280px;display:flex;flex-direction:column;width:100%;margin:0 16px}.card-internal-tabs{display:flex;gap:6px;margin-bottom:16px;background:var(--bg-tertiary);padding:4px;border-radius:10px}.card-tab{flex:1;padding:8px 6px;background:transparent;border:none;border-radius:8px;font-size:12px;font-weight:600;color:var(--text-secondary);cursor:pointer;transition:all .2s;white-space:nowrap}.card-tab.active{background:var(--primary);color:#fff;box-shadow:0 2px 8px #00000026}.card-content-area{width:100%;flex:1;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.card-content-area>div{background:transparent!important;box-shadow:none!important;padding:0!important;width:100%}.category-switcher{display:flex;align-items:center;justify-content:space-between;padding:12px 0 0;margin-top:16px;border-top:1px solid var(--border)}.category-arrow{background:var(--bg-tertiary);border:1px solid var(--border);border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;color:var(--text-primary);cursor:pointer;transition:all .2s}.category-arrow:hover{background:var(--primary);color:#fff;border-color:var(--primary);transform:scale(1.1)}.category-arrow:active{transform:scale(.95)}.category-indicator{display:flex;align-items:center;gap:8px;flex:1;justify-content:center}.category-icon{font-size:20px}.category-name{font-size:14px;font-weight:600;color:var(--text-primary);text-transform:uppercase;letter-spacing:.5px}}.dashboard{height:100%;width:100%;overflow:hidden;background:var(--bg-primary);display:flex;flex-direction:column;position:fixed;top:0;left:0;right:0;bottom:0}.dashboard-header{background:var(--bg-secondary);border-bottom:1px solid var(--border);padding:var(--space-sm) 0;z-index:100;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff2;flex-shrink:0}[data-theme=dark] .dashboard-header{background:#1a1a1af2}.header-content{max-width:1100px;margin:0 auto;padding:0 var(--space-md);display:flex;justify-content:space-between;align-items:center}.header-left{display:flex;align-items:center;gap:var(--space-lg)}.dashboard-header h1{font-size:18px;font-weight:600;color:var(--text-primary);margin:0}.header-weather-info{display:flex;align-items:center;gap:var(--space-md);font-size:12px;color:var(--text-secondary)}.header-weather,.header-sun{display:flex;align-items:center;gap:4px}.header-actions{display:flex;gap:var(--space-md);align-items:center}.date-picker{padding:var(--space-sm) var(--space-md);border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg-primary);color:var(--text-primary);font-size:14px;cursor:pointer}.theme-toggle-btn,.logout-btn{padding:var(--space-sm);background:var(--bg-primary);border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;transition:all .2s}.theme-toggle-btn{font-size:20px}.logout-btn{font-size:13px;font-weight:500;color:var(--text-primary);padding:var(--space-sm) var(--space-md)}.theme-toggle-btn:hover,.logout-btn:hover{background:var(--bg-tertiary);transform:scale(1.05)}.dashboard-content{width:100%;max-width:1100px;min-width:min(1100px,calc(100vw - 32px));margin:0 auto;padding:var(--space-sm) var(--space-md);flex:1;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:var(--space-sm);box-sizing:border-box}.tabs{display:flex;gap:var(--space-sm);margin-bottom:var(--space-sm);overflow-x:auto;flex-shrink:0;width:100%}.tab{flex:1;min-width:100px;padding:var(--space-xs) var(--space-sm);background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--space-xs);transition:all .2s;color:var(--text-primary)}.tab:hover{background:var(--bg-tertiary)}.tab.active{background:var(--primary);color:#fff;border-color:var(--primary)}.tab-icon{font-size:16px;line-height:1}.tab-label{font-size:12px;font-weight:500}.tab.active .tab-label{font-weight:600}.cards-container{flex-shrink:0;padding:var(--space-lg) 0;margin-bottom:0;position:relative;overflow:hidden}.carousel-nav-button{position:absolute;top:50%;transform:translateY(-50%);width:56px;height:56px;background:var(--primary);border:3px solid white;border-radius:50%;display:none;align-items:center;justify-content:center;cursor:pointer;z-index:20;transition:all .3s ease;box-shadow:0 4px 12px #0dd3d366;color:#fff;font-size:24px;font-weight:700;opacity:.9;animation:attentionPulse 2s ease-out .5s}@keyframes attentionPulse{0%,to{transform:translateY(-50%) scale(1)}25%{transform:translateY(-50%) scale(1.1)}50%{transform:translateY(-50%) scale(1)}75%{transform:translateY(-50%) scale(1.1)}}.carousel-nav-label{position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%);background:#000c;color:#fff;padding:4px 8px;border-radius:4px;font-size:10px;font-weight:600;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .3s}[data-theme=dark] .carousel-nav-label{background:#ffffffe6;color:var(--text-primary)}.carousel-nav-button:hover .carousel-nav-label{opacity:1}[data-theme=dark] .carousel-nav-button{background:var(--primary);border:3px solid rgba(255,255,255,.2);box-shadow:0 4px 16px #0dd3d380}.carousel-nav-button.will-switch-tab{animation:pulse 1.5s infinite;background:#ff6b35;border-color:#fff}@keyframes pulse{0%{box-shadow:0 0 #0dd3d3cc}70%{box-shadow:0 0 0 15px #0dd3d300}to{box-shadow:0 0 #0dd3d300}}.carousel-nav-button:hover{transform:translateY(-50%) scale(1.15);opacity:1;background:#0bc5c5;box-shadow:0 6px 20px #0dd3d380}.carousel-nav-button:active{transform:translateY(-50%) scale(.95)}.carousel-nav-button.prev{left:10px}.carousel-nav-button.next{right:10px}.carousel-nav-button:before{content:"‹";font-size:32px;font-weight:700;line-height:1;position:relative;top:-2px}.carousel-nav-button.next:before{content:"›"}.carousel-nav-button:after{display:none}.carousel-nav-button:disabled{opacity:.3;cursor:not-allowed;pointer-events:none}@media (max-width: 768px){.carousel-nav-button{display:none}.cards-container{padding-bottom:25px}.mobile-scroll-indicator{position:absolute;bottom:8px;left:50%;transform:translate(-50%);width:60px;height:3px;background:var(--border);border-radius:3px;overflow:hidden}.mobile-scroll-progress{height:100%;background:var(--primary);border-radius:3px;transition:width .3s ease;width:33%}.mobile-carousel-dots{display:flex;justify-content:center;gap:6px;position:absolute;bottom:10px;left:50%;transform:translate(-50%);z-index:15}.mobile-carousel-dot{width:6px;height:6px;border-radius:50%;background:#0003;border:none;transition:all .3s}.mobile-carousel-dot.active{background:var(--primary);width:18px;border-radius:3px}[data-theme=dark] .mobile-carousel-dot{background:#fff3}.swipe-hint{position:absolute;bottom:45px;left:50%;transform:translate(-50%);font-size:11px;color:var(--text-secondary);display:flex;align-items:center;gap:4px;animation:swipeHint 2s ease-in-out infinite}@keyframes swipeHint{0%,to{opacity:.5;transform:translate(-50%) translate(0)}50%{opacity:1;transform:translate(-50%) translate(5px)}}.tab-switch-indicator{display:none}.cards-container:before,.cards-container:after{display:none}}.carousel-dots{display:flex;justify-content:center;gap:var(--space-xs);margin-top:var(--space-md);position:absolute;bottom:10px;left:50%;transform:translate(-50%);z-index:15}.carousel-dot{width:8px;height:8px;border-radius:50%;background:var(--border);border:none;cursor:pointer;transition:all .3s}.carousel-dot:hover{background:var(--text-secondary);transform:scale(1.2)}.carousel-dot.active{background:var(--primary);width:24px;border-radius:4px}.tab-switch-indicator{position:absolute;top:50%;transform:translateY(-50%);padding:6px 12px;background:var(--primary);color:#fff;border-radius:var(--radius-sm);font-size:12px;font-weight:600;opacity:0;transition:opacity .3s;pointer-events:none;z-index:25}.tab-switch-indicator.left{left:80px}.tab-switch-indicator.right{right:80px}.tab-switch-indicator.show{opacity:.9}.cards-container:before,.cards-container:after{content:"";position:absolute;top:0;bottom:0;width:120px;pointer-events:none;z-index:10}.cards-container:before{left:0;background:linear-gradient(90deg,var(--bg-primary) 0%,rgba(255,255,255,0) 100%)}.cards-container:after{right:0;background:linear-gradient(-90deg,var(--bg-primary) 0%,rgba(255,255,255,0) 100%)}[data-theme=dark] .cards-container:before{background:linear-gradient(90deg,var(--bg-primary) 0%,rgba(26,26,26,0) 100%)}[data-theme=dark] .cards-container:after{background:linear-gradient(-90deg,var(--bg-primary) 0%,rgba(26,26,26,0) 100%)}.bottom-panels{flex:1;display:flex;gap:var(--space-md);overflow:hidden;min-height:0;width:100%}.panel{flex:1;display:flex;flex-direction:column;background:var(--bg-secondary);border-radius:var(--radius-md);border:1px solid var(--border);overflow:hidden;min-height:0;transition:all .3s ease}.panel.full-width{flex:1}.panel-header{display:flex;justify-content:space-between;align-items:center;padding:var(--space-md) var(--space-lg);background:var(--bg-tertiary);border-bottom:1px solid var(--border);flex-shrink:0}.panel-title{font-size:16px;font-weight:600;color:var(--text-primary);margin:0}.panel-toggle{background:none;border:none;font-size:20px;color:var(--text-secondary);cursor:pointer;padding:var(--space-xs);line-height:1;transition:all .2s;border-radius:var(--radius-sm)}.panel-toggle:hover{background:var(--bg-secondary);color:var(--text-primary)}.panel-content{flex:1;overflow-y:auto;padding:var(--space-lg);min-height:0}.add-food-panel .panel-content{padding:0}.trends-content{height:100%;display:flex;flex-direction:column}.trends-chart{flex:1;display:flex;align-items:center;justify-content:center;min-height:200px}.trends-chart p{color:var(--text-secondary);font-size:14px}.panel-restore-bar{position:absolute;bottom:var(--space-md);left:50%;transform:translate(-50%);display:flex;gap:var(--space-md);z-index:10}.restore-panel-btn{padding:var(--space-sm) var(--space-lg);background:var(--bg-secondary);border:2px solid var(--primary);border-radius:var(--radius-md);color:var(--primary);font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;box-shadow:0 4px 12px #00000026}.restore-panel-btn:hover{background:var(--primary);color:#fff;transform:translateY(-2px);box-shadow:0 6px 16px #0dd3d34d}.trends-container{flex:1;overflow:hidden;background:var(--bg-secondary);border-radius:var(--radius-md);border:1px solid var(--border);padding:var(--space-lg);display:flex;flex-direction:column;min-height:0;width:100%}.trends-title{font-size:18px;font-weight:600;color:var(--text-primary);margin:0 0 var(--space-md) 0;padding-bottom:var(--space-sm);border-bottom:2px solid var(--border);flex-shrink:0}.placeholder-content{text-align:center;padding:var(--space-xl) 0}.placeholder-content h2{font-size:24px;color:var(--text-primary);margin-bottom:var(--space-md)}.placeholder-content p{color:var(--text-secondary);font-size:16px}@media (max-width: 768px){.hero-section{grid-template-columns:1fr}.tabs{display:none!important}.mobile-only{display:block}.bottom-category-switcher{display:flex!important;flex-direction:row;align-items:center;justify-content:space-between;padding:10px 12px;margin:12px 16px;border:1px solid var(--border);background:var(--bg-secondary);border-radius:var(--radius-md)}.category-arrow{background:var(--bg-tertiary);border:1px solid var(--border);border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;color:var(--text-primary);cursor:pointer;transition:all .2s;flex-shrink:0}.category-arrow:hover{background:var(--primary);color:#fff;border-color:var(--primary);transform:scale(1.05)}.category-arrow:active{transform:scale(.95)}.category-indicator{display:flex;align-items:center;gap:8px;flex:1;justify-content:center;min-width:0}.category-icon{font-size:20px;flex-shrink:0}.category-name{font-size:14px;font-weight:600;color:var(--text-primary);text-transform:uppercase;letter-spacing:.5px;white-space:nowrap}.tab{flex:1;min-width:0;padding:8px 4px;font-size:12px}.tab .tab-icon{font-size:16px}.tab .tab-label{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-content h1{font-size:20px}.hero-value{font-size:28px}.trends-container{min-height:400px;padding:var(--space-md)}.bottom-panels{flex-direction:column}.panel{max-width:100%}}.trends-container{width:100%;margin-top:var(--space-sm);background:var(--bg-secondary);border-radius:var(--radius-md);padding:var(--space-sm);box-shadow:var(--shadow-md);border:1px solid var(--border);height:320px;display:flex;flex-direction:column}@media (max-width: 768px){.trends-container{padding:var(--space-xs);margin-top:var(--space-sm);height:280px}}.dashboard-redesign{width:100%;height:100vh;background:#f9fafb;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden}.dashboard-header{background:#fff;border-bottom:1px solid #E5E7EB;padding:20px;position:sticky;top:0;z-index:100;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff2}.header-content{max-width:1200px;margin:0 auto;display:flex;justify-content:space-between;align-items:center}.header-left h1{margin:0;font-size:28px;font-weight:700;color:#111827}.header-date{margin:4px 0 0;font-size:14px;color:#6b7280}.header-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.header-actions-mobile,.header-weather-inline{display:none}.header-stats{display:flex;gap:24px;align-items:center}.header-stat{display:flex;align-items:baseline;gap:6px}.stat-value{font-size:24px;font-weight:700;color:#111827}.stat-label{font-size:13px;color:#6b7280;font-weight:500}.stat-divider{width:1px;height:32px;background:#e5e7eb}.temp-range{display:flex;gap:8px;font-size:18px}.temp-high{color:#ef4444}.temp-low{color:#3b82f6}.sun-times{display:flex;flex-direction:column;gap:2px;font-size:13px}.sunrise{color:#f59e0b}.sunset{color:#6366f1}.header-actions{display:flex;gap:8px;margin-left:8px}.header-btn{padding:8px 16px;background:transparent;border:1px solid #E5E7EB;border-radius:8px;font-size:13px;font-weight:600;color:#374151;cursor:pointer;transition:all .2s}.header-btn:hover{background:#f3f4f6;border-color:#d1d5db}.header-btn.logout-btn{color:#dc2626;border-color:#fca5a5}.header-btn.logout-btn:hover{background:#fef2f2;border-color:#dc2626}.header-btn.theme-btn{font-size:16px;padding:8px 12px}.header-btn.theme-btn:hover{background:#f3f4f6;border-color:#9ca3af}.dashboard-content{flex:1;max-width:1200px;width:100%;margin:0 auto;padding:16px 20px;display:flex;flex-direction:column;gap:16px}.chart-section{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 3px #0000001a;min-height:400px}.chart-controls{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;flex-wrap:wrap;gap:12px}.metric-switcher-mobile{display:none}.metric-tabs{display:flex;gap:4px;background:#f3f4f6;padding:4px;border-radius:8px}.metric-tab{padding:8px 16px;background:transparent;border:none;border-radius:6px;cursor:pointer;transition:all .2s;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:80px}.metric-tab:hover{background:#ffffff80}.metric-tab.active{background:#fff;box-shadow:0 1px 3px #0000001a}.tab-icon{display:none;width:20px;height:20px;color:#6b7280;overflow:hidden}.tab-icon svg{width:100%;height:100%}.metric-tab.active .tab-icon{color:var(--tab-color)}.tab-label{font-size:11px;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.5px}.metric-tab.active .tab-label{color:var(--tab-color)}.period-selector{display:flex;gap:8px}.period-btn{padding:6px 12px;background:transparent;border:1px solid #E5E7EB;border-radius:6px;color:#6b7280;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s}.period-btn:hover{background:#f9fafb;border-color:#d1d5db}.period-btn.active{background:#111827;color:#fff;border-color:#111827}.chart-container{height:320px;position:relative}.metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.metric-card{background:#fff;border-radius:12px;padding:16px;box-shadow:0 1px 3px #0000001a;transition:all .3s;overflow:hidden;max-width:100%;height:220px;display:flex;flex-direction:column}.metric-card .progress-summary,.metric-card>div:last-child:not(h3){flex:1;display:flex;flex-direction:column;justify-content:center;overflow:hidden}.metric-card:hover{box-shadow:0 4px 6px #0000001a;transform:translateY(-2px)}.flip-card-container{perspective:1000px;height:220px}.flip-card{position:relative;width:100%;height:100%;transition:transform .6s;transform-style:preserve-3d}.flip-card.flipped{transform:rotateY(180deg)}.flip-card-front,.flip-card-back{position:absolute;width:100%;height:100%;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#fff;border-radius:12px;padding:16px;box-shadow:0 1px 3px #0000001a;display:flex;flex-direction:column;overflow:hidden}.flip-card-back{transform:rotateY(180deg)}.flip-btn{position:absolute;top:10px;right:10px;background:var(--bg-tertiary, #F3F4F6);border:none;border-radius:50%;width:24px;height:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;color:#6b7280;transition:all .2s;z-index:10}.flip-btn:hover{background:#e5e7eb;color:#374151}.flip-card-back .zone-table{width:100%;font-size:10px;margin-top:4px}.flip-card-back .zone-table th,.flip-card-back .zone-table td{padding:3px 4px;text-align:left}.flip-card-back .zone-table th{color:#6b7280;font-weight:600;border-bottom:1px solid var(--bg-tertiary, #E5E7EB)}.flip-card-back .zone-table td{color:#111827}.flip-card-back h3{margin:0 0 6px;font-size:11px;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.5px}[data-theme=dark] .flip-card-front,[data-theme=dark] .flip-card-back{background:#1e293b;box-shadow:0 1px 3px #0000004d}[data-theme=dark] .flip-btn{background:#334155;color:#94a3b8}[data-theme=dark] .flip-btn:hover{background:#475569;color:#e2e8f0}[data-theme=dark] .flip-card-back .zone-table th{color:#94a3b8;border-bottom-color:#334155}[data-theme=dark] .flip-card-back .zone-table td{color:#f1f5f9}.metric-card h3{margin:0 0 8px;font-size:12px;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.5px}.progress-list{display:flex;flex-direction:column;gap:12px}.progress-item{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid #F3F4F6}.progress-item:last-child{border-bottom:none}.progress-indicator{width:8px;height:8px;border-radius:50%;margin-right:8px}.progress-indicator.water{background:#5dade2}.progress-indicator.steps{background:#10b981}.progress-indicator.active{background:#14b8a6}.progress-indicator.calories{background:#ef4444}.progress-label{flex:1;font-size:13px;color:#6b7280}.progress-value{font-size:14px;font-weight:600;color:#111827}.macro-bars{display:flex;flex-direction:column;gap:16px;margin-bottom:16px}.macro-bar{display:flex;flex-direction:column;gap:8px}.macro-header{display:flex;justify-content:space-between;font-size:13px;color:#6b7280}.macro-header span:last-child{font-weight:600;color:#111827}.macro-progress{height:8px;background:#f3f4f6;border-radius:4px;overflow:hidden}.macro-fill{height:100%;border-radius:4px;transition:width 1s ease}.nutrition-footer{text-align:center;padding-top:12px;border-top:1px solid #F3F4F6;font-size:14px;font-weight:600;color:#111827}.comp-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.comp-stat{display:flex;justify-content:space-between;padding:12px;background:#f9fafb;border-radius:8px}.comp-label{font-size:13px;color:#6b7280}.comp-value{font-size:16px;font-weight:700;color:#111827}.sleep-content{display:flex;flex-direction:column;gap:16px}.sleep-main{display:flex;align-items:center;justify-content:center;gap:16px;padding:20px;background:#f9fafb;border-radius:8px}.sleep-icon-circle{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#10b981,#14b8a6)}.sleep-duration{font-size:24px;font-weight:700;color:#111827}.sleep-details{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.sleep-detail{display:flex;justify-content:space-between;padding:8px 12px;background:#fff;border:1px solid #E5E7EB;border-radius:6px}.sleep-detail span:first-child{font-size:12px;color:#6b7280}.sleep-detail span:last-child{font-size:14px;font-weight:600;color:#111827}[data-theme=dark] .dashboard-redesign{background:#0f172a}[data-theme=dark] .dashboard-header{background:#1e293bf2;border-bottom-color:#334155}[data-theme=dark] .header-left h1{color:#f1f5f9}[data-theme=dark] .header-date{color:#94a3b8}[data-theme=dark] .stat-value{color:#f1f5f9}[data-theme=dark] .stat-label{color:#94a3b8}[data-theme=dark] .stat-divider{background:#334155}[data-theme=dark] .header-btn{background:transparent;border-color:#334155;color:#f1f5f9}[data-theme=dark] .header-btn:hover{background:#334155;border-color:#475569}[data-theme=dark] .header-btn.logout-btn{color:#f87171;border-color:#7f1d1d}[data-theme=dark] .header-btn.logout-btn:hover{background:#7f1d1d;border-color:#dc2626}[data-theme=dark] .header-btn.theme-btn:hover{background:#334155;border-color:#64748b}[data-theme=dark] .chart-section,[data-theme=dark] .metric-card{background:#1e293b;box-shadow:0 1px 3px #0000004d}[data-theme=dark] .metric-tabs{background:#0f172a}[data-theme=dark] .metric-tab:hover{background:#1e293b80}[data-theme=dark] .metric-tab.active{background:#334155;box-shadow:0 1px 3px #0000004d}[data-theme=dark] .tab-icon,[data-theme=dark] .tab-label{color:#94a3b8}[data-theme=dark] .tab-value,[data-theme=dark] .comp-value,[data-theme=dark] .progress-value,[data-theme=dark] .sleep-duration{color:#f1f5f9}[data-theme=dark] .period-btn{border-color:#334155;color:#94a3b8}[data-theme=dark] .period-btn:hover{background:#1e293b;border-color:#475569}[data-theme=dark] .period-btn.active{background:#10b981;border-color:#10b981}[data-theme=dark] .metric-card h3,[data-theme=dark] .progress-label,[data-theme=dark] .comp-label,[data-theme=dark] .macro-header{color:#94a3b8}[data-theme=dark] .progress-item{border-bottom-color:#334155}[data-theme=dark] .macro-progress,[data-theme=dark] .comp-stat,[data-theme=dark] .sleep-main{background:#0f172a}[data-theme=dark] .sleep-detail{background:#1e293b;border-color:#334155}[data-theme=dark] .nutrition-footer{border-top-color:#334155;color:#f1f5f9}.progress-summary{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px 0;width:100%;max-width:100%;overflow:hidden}.zone-breakdown{width:100%;max-width:100%;overflow-x:auto}.progress-main-value{display:flex;align-items:baseline;gap:4px}.progress-main-value .big-value{font-size:36px;font-weight:700;color:#111827;line-height:1}.progress-main-value .value-unit{font-size:16px;font-weight:500;color:#6b7280}.progress-change{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600}.progress-change .change-arrow{font-size:18px;font-weight:700}.progress-change .change-value{font-weight:600}.progress-change .change-period{font-weight:400;color:#9ca3af;font-size:12px}.progress-change .no-data{color:#9ca3af;font-weight:400;font-size:13px}.progress-target{font-weight:500}[data-theme=dark] .progress-main-value .big-value{color:#f1f5f9}[data-theme=dark] .progress-main-value .value-unit{color:#94a3b8}[data-theme=dark] .progress-change .change-period,[data-theme=dark] .progress-change .no-data{color:#64748b}@media (max-width: 768px){.dashboard-header{padding:16px}.header-content{flex-direction:column;align-items:flex-start;gap:16px}.header-left h1{font-size:24px}.header-actions-mobile{display:flex;gap:6px}.header-actions-mobile .header-btn{padding:5px 10px;font-size:11px}.header-weather-inline{display:inline}.header-stats{display:none}.dashboard-content{padding:16px;gap:16px}.chart-section{padding:16px;min-height:auto}.chart-controls{flex-direction:column;align-items:stretch;gap:12px}.metric-tabs{display:none}.metric-switcher-mobile{display:flex;align-items:center;justify-content:space-between;background:#f3f4f6;padding:8px 12px;border-radius:10px;width:100%}.metric-arrow{background:#e5e7eb;border:none;border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;color:#374151;cursor:pointer;transition:all .2s}.metric-arrow:hover{background:#14b8a6;color:#fff}.metric-arrow:active{transform:scale(.95)}.metric-indicator{display:flex;align-items:center;gap:10px;flex:1;justify-content:center}.metric-icon{width:24px;height:24px;color:var(--metric-color, #14B8A6)}.metric-icon svg{width:100%;height:100%}.metric-name{font-size:16px;font-weight:600;color:#111827;text-transform:uppercase;letter-spacing:.5px}[data-theme=dark] .metric-switcher-mobile{background:#0f172a}[data-theme=dark] .metric-arrow{background:#1e293b;color:#e2e8f0}[data-theme=dark] .metric-arrow:hover{background:#14b8a6;color:#fff}[data-theme=dark] .metric-name{color:#e2e8f0}.period-selector{width:100%;display:flex;justify-content:space-between}.period-btn{flex:1;padding:8px;font-size:12px}.chart-container{height:250px}.metrics-grid{grid-template-columns:1fr;gap:16px}.metric-card{padding:16px}.metric-card h3{font-size:12px;margin-bottom:12px}.progress-item{padding:6px 0}.progress-indicator{width:6px;height:6px;margin-right:6px}.progress-label{font-size:12px}.progress-value{font-size:13px}.macro-bars{gap:12px}.macro-header{font-size:12px}.comp-stats{grid-template-columns:repeat(2,1fr);gap:12px}.comp-stat{padding:10px}.comp-label{font-size:12px}.comp-value{font-size:14px}.sleep-main{padding:16px}.sleep-icon-circle{width:32px;height:32px}.sleep-duration{font-size:20px}.sleep-details{grid-template-columns:repeat(2,1fr);gap:10px}.sleep-detail{padding:6px 10px}.nutrition-footer{font-size:13px;padding-top:10px}}@media (max-width: 480px){.dashboard-header{padding:12px}.header-left h1{font-size:20px}.header-date{font-size:12px}.stat-value{font-size:20px}.stat-label{font-size:11px}.dashboard-content{padding:12px;gap:12px}.chart-section{padding:12px}.metric-tabs{padding:3px}.metric-tab{min-width:75px;padding:8px 10px}.period-selector{width:100%;justify-content:space-between;gap:4px}.period-btn{flex:1;text-align:center;font-size:11px;padding:6px 4px}.chart-container{height:200px}.metric-card{padding:14px}.metric-card h3{font-size:11px}}.huginn-sync{background:transparent;border:none;padding:0;cursor:pointer;border-radius:50%;transition:transform .3s ease,opacity .3s ease;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;width:40px;height:40px}.huginn-sync img{width:40px;height:40px;object-fit:contain;transition:transform .3s ease,opacity .3s ease}.huginn-sync:hover:not(.syncing){transform:scale(1.1)}.huginn-sync:hover:not(.syncing) img{filter:brightness(1.1)}.huginn-sync:disabled{cursor:default}.huginn-sync .huginn-video{width:100%;height:100%;object-fit:cover;background:transparent}.huginn-message{background:linear-gradient(135deg,#1e293b,#0f172a);border-bottom:1px solid #334155;padding:12px 20px;text-align:center;font-size:14px;color:#94a3b8;animation:slideDown .3s ease-out}.huginn-message.flying{color:#fbbf24}.huginn-message.returning{color:#14b8a6}.huginn-message.complete{color:#14b8a6;animation:slideDown .3s ease-out,fadeOut .5s ease-out 2.5s forwards}@keyframes slideDown{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@media (max-width: 768px){.huginn-sync img,.huginn-sync .huginn-video{width:32px;height:32px}.huginn-message{font-size:13px;padding:10px 16px}}.settings-page{width:100%;min-height:100vh;background:#f9fafb;display:flex;flex-direction:column}.settings-page .page-header{background:#fffffff2;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid #E5E7EB;padding:20px;position:sticky;top:0;z-index:100}.settings-page .header-content{max-width:1200px;margin:0 auto;display:flex;justify-content:space-between;align-items:center}.settings-page .header-left h1{font-size:24px;font-weight:700;color:#111827;margin:0 0 4px}.settings-page .header-subtitle{font-size:14px;color:#6b7280;margin:0}.settings-page .page-content{flex:1;padding:24px 24px 120px;max-width:1200px;margin:0 auto;width:100%;box-sizing:border-box}.settings-loading{text-align:center;padding:60px 24px;color:#6b7280;font-size:16px}.settings-card{background:#fff;border-radius:16px;border:1px solid #E5E7EB;padding:24px;margin-bottom:20px;box-shadow:0 1px 3px #0000000d;width:100%}.settings-card h2{font-size:18px;font-weight:600;color:#111827;margin:0 0 4px}.card-subtitle{font-size:14px;color:#6b7280;margin:0 0 24px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-md);margin-bottom:var(--space-lg)}.form-grid .full-width{grid-column:span 2}.preferences-grid,.data-source-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-md);margin-bottom:var(--space-lg)}.setting-group{margin-bottom:var(--space-md)}.setting-group:last-child{margin-bottom:0}.setting-group label{display:block;font-size:14px;font-weight:500;color:var(--text-primary);margin-bottom:var(--space-sm)}.setting-input,.setting-select{width:100%;padding:var(--space-sm) var(--space-md);background:var(--bg-primary);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-primary);font-size:14px;transition:all .2s}.setting-input:focus,.setting-select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #0dd3d31a}.setting-input[readonly]{background:var(--bg-tertiary);cursor:not-allowed}.height-input-group{display:flex;flex-direction:column;gap:var(--space-sm)}.height-tabs{display:flex;gap:var(--space-xs)}.height-tabs button{flex:1;padding:var(--space-xs) var(--space-sm);background:var(--bg-tertiary);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text-secondary);font-size:12px;font-weight:500;cursor:pointer;transition:all .2s}.height-tabs button:hover{background:var(--bg-primary);color:var(--text-primary)}.height-tabs button.active{background:var(--primary);color:#fff;border-color:var(--primary)}.save-btn,.sync-all-btn,.connect-btn,.disconnect-btn{padding:var(--space-md);border-radius:var(--radius-sm);font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;border:none}.save-btn{background:var(--primary);color:#fff;width:100%}.save-btn:hover:not(:disabled){background:#0bc5c5;transform:translateY(-1px);box-shadow:0 4px 12px #0dd3d34d}.save-btn:disabled{opacity:.5;cursor:not-allowed}.sync-buttons{display:flex;gap:var(--space-md);margin-bottom:var(--space-lg)}.sync-all-btn{background:var(--primary);color:#fff;flex:1}.sync-all-btn:hover{background:#0bc5c5;transform:translateY(-1px)}.full-sync-btn{background:#64748b;color:#fff;flex:1}.full-sync-btn:hover{background:#475569;transform:translateY(-1px)}.connect-btn{background:var(--primary);color:#fff;padding:var(--space-sm) var(--space-lg)}.connect-btn:hover:not(:disabled){background:#0bc5c5}.connect-btn:disabled{background:var(--bg-tertiary);color:var(--text-secondary);cursor:not-allowed}.disconnect-btn{background:#ff4757;color:#fff;padding:var(--space-xs) var(--space-md);font-size:12px;margin-top:var(--space-sm)}.disconnect-btn:hover{background:#e34}.integration-section{padding:var(--space-lg);background:var(--bg-primary);border:1px solid var(--border);border-radius:var(--radius-md);margin-bottom:var(--space-md)}.integration-section:last-child{margin-bottom:0}.integration-header{display:flex;align-items:flex-start;gap:var(--space-md);margin-bottom:var(--space-md)}.integration-icon{font-size:32px;line-height:1}.integration-header h3{font-size:16px;font-weight:600;color:var(--text-primary);margin:0 0 var(--space-xs) 0}.integration-header p{font-size:13px;color:var(--text-secondary);margin:0}.integration-connected{background:var(--bg-tertiary);padding:var(--space-md);border-radius:var(--radius-sm)}.status-badge{display:inline-block;padding:var(--space-xs) var(--space-md);border-radius:var(--radius-sm);font-size:12px;font-weight:600;margin-bottom:var(--space-sm)}.status-badge.connected{background:#4caf501a;color:#4caf50}.scopes{font-size:13px;color:var(--text-secondary);margin:var(--space-sm) 0}.settings-message{position:fixed;top:var(--space-lg);right:var(--space-lg);padding:var(--space-md) var(--space-lg);border-radius:var(--radius-md);font-size:14px;font-weight:500;box-shadow:0 4px 12px #00000026;z-index:1000}.settings-message.success{background:#4caf50e6;color:#fff}.settings-message.error{background:#f44336e6;color:#fff}.settings-message.info{background:#2196f3e6;color:#fff}@media (max-width: 768px){.settings-page .page-header{padding:16px}.settings-page .header-left h1{font-size:20px}.settings-page .page-content{padding:16px 16px 100px}.settings-card{padding:20px;border-radius:12px}.form-grid,.preferences-grid,.data-source-grid{grid-template-columns:1fr}.form-grid .full-width{grid-column:span 1}.integration-header{flex-direction:column;gap:8px}.settings-message{left:16px;right:16px}}[data-theme=dark] .settings-page{background:#0f172a}[data-theme=dark] .settings-page .page-header{background:#1e293bf2;border-bottom-color:#334155}[data-theme=dark] .settings-page .header-left h1{color:#f1f5f9}[data-theme=dark] .settings-page .header-subtitle{color:#94a3b8}[data-theme=dark] .settings-card{background:#1e293b;border-color:#334155}[data-theme=dark] .settings-card h2{color:#f1f5f9}[data-theme=dark] .card-subtitle{color:#94a3b8}[data-theme=dark] .setting-group label{color:#f1f5f9}[data-theme=dark] .setting-input,[data-theme=dark] .setting-select{background:#0f172a;border-color:#334155;color:#f1f5f9}[data-theme=dark] .setting-input:focus,[data-theme=dark] .setting-select:focus{border-color:#14b8a6;box-shadow:0 0 0 3px #14b8a633}[data-theme=dark] .setting-input[readonly]{background:#334155;color:#94a3b8}[data-theme=dark] .height-tabs button{background:#0f172a;border-color:#334155;color:#94a3b8}[data-theme=dark] .height-tabs button:hover{background:#1e293b;color:#f1f5f9}[data-theme=dark] .height-tabs button.active{background:#14b8a6;color:#fff;border-color:#14b8a6}[data-theme=dark] .save-btn{background:#14b8a6}[data-theme=dark] .save-btn:hover:not(:disabled){background:#0d9488;box-shadow:0 4px 12px #14b8a666}[data-theme=dark] .sync-all-btn{background:#14b8a6}[data-theme=dark] .sync-all-btn:hover{background:#0d9488}[data-theme=dark] .full-sync-btn{background:#475569}[data-theme=dark] .full-sync-btn:hover{background:#334155}[data-theme=dark] .connect-btn{background:#14b8a6}[data-theme=dark] .connect-btn:hover:not(:disabled){background:#0d9488}[data-theme=dark] .connect-btn:disabled{background:#334155;color:#64748b}[data-theme=dark] .integration-section{background:#0f172a;border-color:#334155}[data-theme=dark] .integration-header h3{color:#f1f5f9}[data-theme=dark] .integration-header p{color:#94a3b8}[data-theme=dark] .integration-connected{background:#334155}[data-theme=dark] .scopes{color:#94a3b8}.metric-sources-list{display:flex;flex-direction:column}.metric-source-row{display:flex;justify-content:space-between;align-items:center;padding:16px 0;border-bottom:1px solid var(--border, #E5E7EB)}.metric-source-row:last-child{border-bottom:none}.metric-source-label{font-size:14px;font-weight:500;color:var(--text-primary, #111827)}.source-options{display:flex;gap:8px}button.source-option{display:flex;align-items:center;gap:6px;padding:8px 12px;background:var(--bg-tertiary, #F3F4F6);border:2px solid transparent;border-radius:8px;font-size:13px;color:var(--text-secondary, #6B7280);cursor:pointer;transition:all .15s ease;outline:none}button.source-option:hover:not(:disabled){background:var(--bg-primary, #E5E7EB)}button.source-option:focus{outline:none;box-shadow:none}button.source-option.selected{background:#0dd3d31a;border-color:var(--primary, #0DD3D3);color:var(--text-primary, #111827)}button.source-option:disabled{cursor:not-allowed;opacity:.5}.source-option-logo{width:18px;height:18px;border-radius:4px;object-fit:contain}.source-option-icon{display:flex;align-items:center;justify-content:center;color:var(--text-secondary, #6B7280)}.source-option-name{font-weight:500}.not-connected-badge{font-size:10px;color:var(--text-secondary, #9CA3AF);font-weight:400;margin-left:2px}.device-pill.coming-soon{opacity:.6;cursor:default}.connected-devices-bar{display:flex;align-items:center;gap:12px;margin-top:20px;padding-top:20px;border-top:1px solid var(--border, #E5E7EB)}.devices-bar-label{font-size:13px;color:var(--text-secondary, #6B7280);flex-shrink:0}.devices-bar-list{display:flex;gap:8px;flex:1}.device-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;background:var(--bg-tertiary, #F3F4F6);border:1px solid var(--border, #E5E7EB);border-radius:20px;font-size:13px;color:var(--text-secondary, #6B7280);cursor:pointer;transition:all .15s ease}.device-pill:hover{background:var(--bg-primary, #E5E7EB);border-color:var(--text-secondary, #9CA3AF)}.device-pill.connected{background:#10b9811a;border-color:#10b9814d;color:#059669}.device-pill.connected:hover{background:#ef44441a;border-color:#ef44444d;color:#dc2626}.device-pill-logo{width:18px;height:18px;border-radius:4px;object-fit:contain}.device-pill-check{color:#10b981}.device-pill.connected:hover .device-pill-check{display:none}.device-pill-add{color:var(--text-secondary, #9CA3AF)}.sync-link{background:none;border:none;color:var(--primary, #0DD3D3);font-size:13px;font-weight:500;cursor:pointer;padding:0;transition:opacity .2s;margin-left:auto}.sync-link:hover{opacity:.8}[data-theme=dark] .metric-source-row{border-bottom-color:#334155}[data-theme=dark] .metric-source-label{color:#f1f5f9}[data-theme=dark] button.source-option{background:#1e293b;color:#94a3b8}[data-theme=dark] button.source-option:hover:not(:disabled){background:#334155}[data-theme=dark] button.source-option.selected{background:#14b8a626;border-color:#14b8a6;color:#f1f5f9}[data-theme=dark] .source-option-icon{color:#94a3b8}[data-theme=dark] .not-connected-badge{color:#64748b}[data-theme=dark] .connected-devices-bar{border-top-color:#334155}[data-theme=dark] .devices-bar-label{color:#94a3b8}[data-theme=dark] .device-pill{background:#1e293b;border-color:#334155;color:#94a3b8}[data-theme=dark] .device-pill:hover{background:#334155;border-color:#475569}[data-theme=dark] .device-pill.connected{background:#10b98126;border-color:#10b98166;color:#34d399}[data-theme=dark] .device-pill.connected:hover{background:#ef444426;border-color:#ef444466;color:#f87171}[data-theme=dark] .device-pill-add{color:#64748b}[data-theme=dark] .sync-link{color:#14b8a6}@media (max-width: 768px){.metric-source-row{flex-direction:column;align-items:flex-start;gap:10px;padding:14px 0}.source-options{width:100%;flex-wrap:wrap;overflow:hidden}button.source-option{padding:6px 10px;font-size:12px;flex-shrink:0}.source-option-logo{width:16px;height:16px}.source-option-name{white-space:nowrap}.connected-devices-bar{flex-wrap:wrap;gap:10px}.devices-bar-list{width:100%;order:3;flex-wrap:wrap}.device-pill{flex-shrink:0}.sync-link{order:2;margin-left:0}}.privacy-section{margin-top:24px;padding-top:24px;border-top:1px solid #E5E7EB}.privacy-section:first-child{margin-top:0;padding-top:0;border-top:none}.privacy-section h3{font-size:16px;font-weight:600;color:#111827;margin:0 0 8px}.privacy-section p{font-size:14px;color:#6b7280;margin:0 0 16px}.btn-secondary{padding:10px 20px;background:#f3f4f6;border:1px solid #D1D5DB;border-radius:8px;font-size:14px;font-weight:500;color:#111827;cursor:pointer;transition:all .2s}.btn-secondary:hover{background:#e5e7eb;border-color:#9ca3af}.btn-danger{padding:10px 20px;background:#ef4444;border:1px solid #DC2626;border-radius:8px;font-size:14px;font-weight:500;color:#fff;cursor:pointer;transition:all .2s}.btn-danger:hover{background:#dc2626}.btn-danger:disabled{opacity:.5;cursor:not-allowed}.btn-warning{padding:10px 20px;background:#f59e0b;border:1px solid #D97706;border-radius:8px;font-size:14px;font-weight:500;color:#fff;cursor:pointer;transition:all .2s}.btn-warning:hover{background:#d97706}.danger-zone{background:#fef2f2;border:1px solid #FEE2E2;border-radius:8px;padding:20px;margin-top:24px}.danger-text{color:#dc2626;font-weight:500}.deletion-warning{background:#fef3c7;border:2px solid #F59E0B;border-radius:8px;padding:20px;margin-bottom:24px}.deletion-warning h3{color:#92400e;margin:0 0 12px}.deletion-warning p{color:#78350f;margin:4px 0}.consents-list{margin-top:16px;border:1px solid #E5E7EB;border-radius:8px;overflow:hidden}.consents-table{width:100%;border-collapse:collapse}.consents-table th{background:#f9fafb;padding:12px 16px;text-align:left;font-size:12px;font-weight:600;color:#6b7280;text-transform:uppercase;border-bottom:1px solid #E5E7EB}.consents-table td{padding:12px 16px;font-size:14px;color:#111827;border-bottom:1px solid #F3F4F6}.consents-table tr:last-child td{border-bottom:none}.status-badge{display:inline-block;padding:4px 10px;border-radius:12px;font-size:12px;font-weight:500;text-transform:capitalize}.status-badge.active{background:#d1fae5;color:#065f46}.status-badge.revoked{background:#fee2e2;color:#991b1b}.no-consents{padding:20px;text-align:center;color:#9ca3af;font-style:italic}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.modal-content{background:#fff;border-radius:12px;padding:32px;max-width:500px;width:100%;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a}.modal-content h2{font-size:20px;font-weight:700;color:#111827;margin:0 0 12px}.modal-content>p{font-size:14px;color:#6b7280;margin:0 0 24px}.modal-form{margin-bottom:24px}.setting-textarea{width:100%;padding:10px 12px;border:1px solid #D1D5DB;border-radius:8px;font-size:14px;font-family:inherit;resize:vertical;transition:border-color .2s}.setting-textarea:focus{outline:none;border-color:#0dd3d3;box-shadow:0 0 0 3px #0dd3d31a}.modal-actions{display:flex;gap:12px;justify-content:flex-end}.modal-actions button{flex:1;max-width:150px}[data-theme=dark] .privacy-section{border-top-color:#334155}[data-theme=dark] .privacy-section h3{color:#f1f5f9}[data-theme=dark] .privacy-section p{color:#94a3b8}[data-theme=dark] .btn-secondary{background:#1e293b;border-color:#334155;color:#f1f5f9}[data-theme=dark] .btn-secondary:hover{background:#334155;border-color:#475569}[data-theme=dark] .danger-zone{background:#ef44441a;border-color:#ef44444d}[data-theme=dark] .danger-text{color:#f87171}[data-theme=dark] .deletion-warning{background:#f59e0b26;border-color:#f59e0b}[data-theme=dark] .deletion-warning h3{color:#fcd34d}[data-theme=dark] .deletion-warning p{color:#fde68a}[data-theme=dark] .consents-list{border-color:#334155}[data-theme=dark] .consents-table th{background:#1e293b;color:#94a3b8;border-bottom-color:#334155}[data-theme=dark] .consents-table td{color:#f1f5f9;border-bottom-color:#1e293b}[data-theme=dark] .status-badge.active{background:#10b98133;color:#34d399}[data-theme=dark] .status-badge.revoked{background:#ef444433;color:#f87171}[data-theme=dark] .no-consents{color:#64748b}[data-theme=dark] .modal-overlay{background:#000000b3}[data-theme=dark] .modal-content{background:#0f172a}[data-theme=dark] .modal-content h2{color:#f1f5f9}[data-theme=dark] .modal-content>p{color:#94a3b8}[data-theme=dark] .setting-textarea{background:#1e293b;border-color:#334155;color:#f1f5f9}[data-theme=dark] .setting-textarea:focus{border-color:#14b8a6;box-shadow:0 0 0 3px #14b8a633}@media (max-width: 768px){.modal-content{padding:24px}.modal-actions{flex-direction:column}.modal-actions button{max-width:none}.consents-table{font-size:12px}.consents-table th,.consents-table td{padding:8px 12px}}.meals-page{width:100%;min-height:100vh;background:#f9fafb;display:flex;flex-direction:column}.meals-page .page-header{background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid #E5E7EB;padding:20px;position:sticky;top:0;z-index:100}.meals-page .header-content{max-width:1200px;margin:0 auto;display:flex;justify-content:space-between;align-items:center}.meals-page .header-left h1{margin:0;font-size:28px;font-weight:700;color:#111827}.meals-page .header-subtitle{margin:4px 0 0;font-size:14px;color:#6b7280}.page-content{flex:1;max-width:1200px;width:100%;margin:0 auto;padding:24px 20px 100px;display:flex;flex-direction:column;gap:16px;box-sizing:border-box}.meals-container{height:100%;width:100%;overflow-y:auto;overflow-x:hidden;background:#f9fafb;display:flex;flex-direction:column}.meals-content{width:100%;max-width:1200px;margin:0 auto;padding:24px 20px 100px;flex:1;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:16px;box-sizing:border-box}@keyframes highlightPulse{0%{box-shadow:0 0 #ff6b3566;transform:scale(1)}50%{box-shadow:0 0 0 10px #ff6b3500;transform:scale(1.02)}to{box-shadow:0 0 #ff6b3500;transform:scale(1)}}@keyframes shake{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-5px)}20%,40%,60%,80%{transform:translate(5px)}}.highlight-new{animation:shake .5s ease-in-out,highlightPulse 1.5s ease-out;border-color:#ff6b35!important;background:linear-gradient(135deg,#ff6b351a,#ff8c421a)!important}.meals-header{background:var(--bg-secondary);border-bottom:1px solid var(--border);padding:var(--space-md) 0}.meals-header-content{max-width:1100px;margin:0 auto;padding:0 var(--space-md)}.meals-header h1{font-size:20px;font-weight:600;color:var(--text-primary);margin:0}.tab-navigation{background:var(--bg-secondary);border-bottom:1px solid var(--border);padding:var(--space-md) 0}.tab-navigation-content{max-width:1100px;margin:0 auto;padding:0 var(--space-md);display:flex;gap:var(--space-sm);overflow-x:auto;flex-wrap:wrap}.tab-btn{padding:10px 20px;background:transparent;border:1px solid var(--border);border-radius:var(--radius-md);color:var(--text-secondary);font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;white-space:nowrap;display:flex;align-items:center;gap:8px}.tab-btn:hover{background:var(--bg-secondary);color:var(--text-primary)}.tab-btn.active{background:var(--primary);color:#fff;border-color:var(--primary)}.tab-content{flex:1;width:100%;min-width:0;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column}.tab-content.diary-tab{padding:0;overflow-y:auto;flex:1;min-height:0}.tab-content.planner-tab{overflow-y:auto;overflow-x:auto;flex:1;min-height:0}.tab-content.meals-tab,.tab-content.ingredients-tab{overflow-y:auto;flex:1;min-height:0}.planner-header{margin-bottom:16px;padding:16px;background:#fff;border:1px solid #E5E7EB;border-radius:12px;display:flex;justify-content:space-between;align-items:center;max-width:100%}.planner-title-section h2{font-size:16px;font-weight:700;color:#14b8a6;margin:0 0 4px;text-transform:uppercase;letter-spacing:.5px}.planner-title-section p{color:#6b7280;font-size:12px;margin:0}.planner-controls{display:flex;gap:var(--space-md);align-items:center}.view-toggle{display:flex;background:#f3f4f6;border-radius:8px;padding:3px}.view-toggle-btn{padding:6px 12px;background:transparent;border:none;color:#6b7280;font-size:13px;font-weight:500;cursor:pointer;border-radius:6px;transition:all .2s}.view-toggle-btn:hover{color:#14b8a6}.view-toggle-btn.active{background:#14b8a6;color:#fff;box-shadow:0 2px 4px #14b8a64d}.planner-action-btn{padding:8px 16px;background:#fff;border:1px solid #E5E7EB;border-radius:8px;font-size:14px;font-weight:500;color:#374151;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:6px}.planner-action-btn:hover{background:#14b8a6;color:#fff;border-color:#14b8a6}.planner-action-btn .btn-text-full{display:inline}.planner-action-btn .btn-text-short{display:none}.weekly-planner{background:#fff;border:1px solid #E5E7EB;border-radius:12px;overflow:hidden;max-width:100%}.planner-grid-wrapper{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:0}.planner-clean-grid{display:grid;grid-template-columns:80px repeat(7,minmax(140px,1fr));gap:1px;background:#e5e7eb;border:1px solid #E5E7EB;border-radius:8px;overflow:hidden;table-layout:fixed;width:100%}.planner-clean-grid.daily-view{grid-template-columns:80px minmax(140px,1fr);min-width:auto}.grid-cell{background:#fff;padding:8px;min-height:100px;display:flex;flex-direction:column;min-width:0;max-width:100%;overflow:hidden}.grid-cell.header{background:#f3f4f6;min-height:auto;padding:12px 8px;text-align:center;font-weight:600}.grid-cell.row-header{background:#f0fdfa;align-items:center;justify-content:center;text-align:center;padding:8px}.grid-cell.meal-slot{cursor:pointer;transition:background .15s;gap:4px}.grid-cell.meal-slot:hover{background:#f0fdfa}.day-header-cell{display:flex;flex-direction:column;gap:2px}.day-header-name{font-size:13px;font-weight:700;color:#111827;text-transform:uppercase;letter-spacing:.3px}.day-header-calories{font-size:11px;color:#14b8a6;font-weight:500}.meal-label{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:600;color:#14b8a6}.meal-label-emoji{font-size:16px}.cell-meals{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0;max-width:100%}.cell-meals.empty{align-items:center;justify-content:center;color:var(--text-tertiary);font-size:20px;opacity:.3}.cell-meal{position:relative;background:#f0fdfa;border:1px solid #CCFBF1;border-radius:6px;padding:6px 6px 6px 8px;font-size:11px;transition:all .15s;min-width:0;max-width:100%}.cell-meal:hover{border-color:#14b8a6;box-shadow:0 2px 4px #14b8a633}.cell-meal-name{font-weight:600;color:#374151;margin-bottom:2px;padding-right:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cell-meal-calories{font-size:10px;color:#14b8a6;font-weight:500}.cell-meal-remove{position:absolute;top:2px;right:2px;background:transparent;border:none;color:var(--text-tertiary);cursor:pointer;font-size:14px;width:16px;height:16px;display:flex;align-items:center;justify-content:center;padding:0;opacity:0;transition:opacity .15s;line-height:1}.cell-meal:hover .cell-meal-remove{opacity:1}.cell-meal-remove:hover{color:var(--error)}.planner-corner{background:#f3f4f6;padding:8px 16px;font-weight:600;color:#14b8a6;border-right:1px solid #E5E7EB;border-bottom:2px solid #E5E7EB;font-size:11px;text-transform:uppercase;letter-spacing:.5px}.planner-day-header{background:#f3f4f6;padding:8px 16px;text-align:center;border-bottom:2px solid #E5E7EB;border-right:1px solid #E5E7EB}.day-name{font-weight:700;color:#111827;font-size:12px;text-transform:uppercase;letter-spacing:.5px}.day-calories{font-size:11px;color:#14b8a6;margin-top:2px;font-weight:600}.planner-row{display:contents}.meal-slot-label{background:#f0fdfa;padding:8px 16px;display:flex;align-items:center;gap:8px;border-right:1px solid #E5E7EB;border-bottom:1px solid #E5E7EB}.slot-emoji{display:none}.slot-name{font-size:12px;color:#14b8a6;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.planner-slot{padding:8px;border-right:1px solid #E5E7EB;border-bottom:1px solid #E5E7EB;cursor:pointer;transition:background .15s;min-height:60px;display:flex;align-items:center;justify-content:center;background:#fff}.planner-slot:hover{background:#f0fdfa}.empty-slot{color:#99f6e4;font-size:16px;opacity:.5}.planned-meals-list{display:flex;flex-direction:column;gap:4px;width:100%}.planned-meal{text-align:center;width:100%;position:relative;padding:4px;border-radius:6px;background:#f0fdfa;border:1px solid #CCFBF1}.remove-meal-btn{position:absolute;top:-4px;right:-4px;background:#fff;border:1px solid #E5E7EB;border-radius:50%;color:#9ca3af;cursor:pointer;font-size:14px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;padding:0;opacity:0;transition:all .2s;z-index:10}.planner-slot:hover .remove-meal-btn{opacity:1}.remove-meal-btn:hover{background:#ef4444;color:#fff;border-color:#ef4444}.meal-name{font-size:12px;font-weight:600;color:#374151;margin-bottom:2px}.meal-calories{font-size:11px;color:#14b8a6;font-weight:500}.action-bar{display:flex;gap:var(--space-md);margin-bottom:var(--space-lg)}.search-input{flex:1;min-width:0;padding:12px 16px;border:2px solid var(--border);border-radius:var(--radius-md);background:var(--bg-primary);color:var(--text-primary);font-size:14px}.search-input:focus{outline:none;border-color:var(--primary)}.create-btn{padding:12px 24px;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);font-size:14px;font-weight:600;cursor:pointer;transition:opacity .2s;white-space:nowrap}.create-btn:hover{opacity:.9}.meals-grid,.ingredients-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:var(--space-md)}.meal-card,.ingredient-card{background:var(--bg-primary);border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--space-lg);box-shadow:var(--shadow-sm);transition:all .2s;position:relative;display:flex;flex-direction:column}.meal-card:hover,.ingredient-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}.meal-card-header,.ingredient-header{display:flex;justify-content:space-between;align-items:start;margin-bottom:var(--space-md);min-height:60px}.meal-card-header h3,.ingredient-header h3{font-size:16px;color:var(--text-primary);margin:0 0 8px;padding-bottom:8px;border-bottom:2px solid var(--primary);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;line-height:1.4;max-height:2.8em;word-break:break-word}.ai-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;font-size:10px;font-weight:600;border-radius:12px;text-transform:uppercase;letter-spacing:.5px;width:fit-content}.meal-actions,.ingredient-actions{display:flex;gap:4px}.edit-btn,.delete-btn{background:transparent;border:none;cursor:pointer;font-size:16px;padding:4px;border-radius:var(--radius-sm);transition:background .2s}.edit-btn:hover,.delete-btn:hover{background:var(--bg-secondary)}.nova-score{margin:0 0 var(--space-md) 0;padding:6px 10px;border-radius:var(--radius-sm);display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#fff;font-weight:600;min-height:32px}.nova-label{font-size:11px;opacity:.9}.nova-badge{display:inline-block;font-size:11px;font-weight:700;margin-bottom:8px;min-height:24px}.meal-card-body,.ingredient-body{margin-top:auto}.meal-calories,.ingredient-calories{font-size:13px;color:var(--primary);font-weight:600;margin-bottom:8px}.nutrition-row{display:flex;gap:var(--space-md);font-size:12px;color:var(--text-secondary);margin-top:4px}.ai-generate-btn{padding:12px 24px;background:linear-gradient(135deg,#14b8a6,#2dd4bf);color:#fff!important;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s;white-space:nowrap}.ai-generate-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px #14b8a666}.planner-actions{display:flex;gap:var(--space-md)}.action-btn{padding:10px 20px;background:#fff;border:1px solid #E5E7EB;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;color:#374151}.action-btn:hover{background:#14b8a6;color:#fff;border-color:#14b8a6}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:10000;padding:var(--space-lg)}.modal-content{background:var(--bg-primary);border-radius:var(--radius-lg);max-width:500px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:var(--shadow-lg)}.modal-content.large{max-width:900px}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:var(--space-lg);border-bottom:1px solid var(--border)}.modal-header button{background:transparent;border:none;font-size:24px;color:var(--text-secondary);cursor:pointer;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center}.analysis-controls{display:flex;align-items:center;gap:var(--space-md)}.run-analysis-btn{padding:12px 24px;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);font-size:14px;font-weight:600;cursor:pointer;transition:opacity .2s;display:block;margin:0 auto;width:auto;min-width:200px}.run-analysis-btn:hover{opacity:.9}.modal-footer{padding:var(--space-md) var(--space-lg);padding-bottom:var(--space-lg)}.shopping-list{display:flex;flex-direction:column;gap:var(--space-lg)}.shopping-category{display:flex;flex-direction:column;gap:var(--space-sm)}.category-header{font-size:1rem;font-weight:600;color:var(--primary);padding:var(--space-sm) var(--space-md);background:var(--bg-tertiary);border-radius:var(--radius-sm);border-left:4px solid var(--primary);margin:0}.category-items{display:flex;flex-direction:column;gap:var(--space-xs);padding-left:var(--space-sm)}.shopping-item{display:flex;justify-content:space-between;align-items:center;padding:var(--space-sm) var(--space-md);background:var(--bg-secondary);border-radius:var(--radius-sm);border:1px solid var(--border)}.shopping-item .item-name{font-weight:500;color:var(--text-primary)}.shopping-item .item-quantity{font-size:.9rem;color:var(--text-secondary);font-weight:600}.ai-analysis{display:flex;flex-direction:column;gap:var(--space-lg);align-items:center;justify-content:center;min-height:200px}.analysis-section{padding:var(--space-lg);background:var(--bg-secondary);border-radius:var(--radius-md)}.analysis-section h3{font-size:16px;color:var(--text-primary);margin:0 0 var(--space-md) 0}.empty-state{text-align:center;padding:60px 20px}.empty-state h3{color:var(--text-primary);margin-bottom:8px}.empty-state p{color:var(--text-secondary);margin-bottom:20px}@media (max-width: 768px){.mobile-only{display:block}.tabs{display:none!important}.bottom-category-switcher{display:flex!important;flex-direction:row;align-items:center;justify-content:space-between;padding:10px 12px;margin:12px 16px;border:1px solid var(--border);background:var(--bg-secondary);border-radius:var(--radius-md)}.category-arrow{background:var(--bg-tertiary);border:1px solid var(--border);border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;color:var(--text-primary);cursor:pointer;transition:all .2s;flex-shrink:0}.category-arrow:hover{background:var(--primary);color:#fff;border-color:var(--primary);transform:scale(1.05)}.category-arrow:active{transform:scale(.95)}.category-indicator{display:flex;align-items:center;gap:8px;flex:1;justify-content:center;min-width:0}.category-icon{font-size:20px;flex-shrink:0}.category-name{font-size:14px;font-weight:600;color:var(--text-primary);text-transform:uppercase;letter-spacing:.5px;white-space:nowrap}.meals-container{position:relative;height:100vh}.meals-content{padding:var(--space-xs) var(--space-sm)}.meals-header{position:sticky;top:0;z-index:100;box-shadow:var(--shadow-sm)}.tab-navigation{position:sticky;top:60px;z-index:99;box-shadow:var(--shadow-sm)}.meals-header-content{padding:0 var(--space-md)}.meals-header h1{font-size:18px}.tab-navigation-content{gap:6px;padding:0 var(--space-sm);overflow-x:hidden}.tab-btn{padding:8px 14px;font-size:13px;flex-shrink:0}.tab-content{padding:var(--space-md);flex:1;min-height:0;overflow-y:auto}.tab-content.diary-tab{height:auto;flex:1;overflow-y:auto;padding:0}.tab-content.planner-tab{flex:1;padding:0;overflow-y:auto;overflow-x:auto}.planner-grid-wrapper{padding:var(--space-sm)}.planner-clean-grid{grid-template-columns:80px repeat(7,minmax(120px,1fr));min-width:920px;font-size:11px}.grid-cell{padding:6px;min-height:80px}.grid-cell.header{padding:8px 4px}.day-header-name{font-size:11px}.day-header-calories{font-size:10px}.meal-label{font-size:11px;flex-direction:column;gap:2px}.meal-label-emoji{font-size:14px}.cell-meals.empty{font-size:16px}.cell-meal{padding:4px 4px 4px 6px;font-size:10px}.cell-meal-name{font-size:10px;padding-right:14px}.cell-meal-calories{font-size:9px}.cell-meal-remove{font-size:12px;width:14px;height:14px}.planner-header{flex-direction:column;gap:var(--space-sm);padding:var(--space-md)}.planner-controls{width:100%;flex-direction:column;gap:var(--space-sm)}.view-toggle{width:100%;justify-content:center}.planner-action-btn{width:100%;justify-content:center;padding:12px 16px;font-size:14px}.planner-action-btn .btn-text-full{display:none}.planner-action-btn .btn-text-short{display:inline}.planner-slot{min-height:50px;padding:4px}.planned-meal{padding:2px}.meal-name{font-size:11px}.meal-calories{font-size:10px}.meal-slot-label{padding:var(--space-xs) var(--space-sm)}.slot-name{font-size:11px}.meals-grid,.ingredients-grid{grid-template-columns:1fr;gap:var(--space-sm)}.meal-card,.ingredient-card{padding:var(--space-md)}.meal-card-header h3,.ingredient-header h3{font-size:14px}.action-bar{flex-direction:column;gap:var(--space-sm);margin-bottom:var(--space-md)}.search-input{padding:10px 12px;font-size:14px}.create-btn,.ai-generate-btn{width:100%;padding:12px 20px;font-size:14px}.modal-overlay{padding:60px 16px 16px;align-items:flex-start;justify-content:center}.modal-content{max-width:100%;width:100%;max-height:calc(100vh - 100px);height:auto;border-radius:var(--radius-lg);margin:0;overflow-y:auto;padding-bottom:100px}.modal-content.large{max-width:100%;max-height:calc(100vh - 100px);overflow-y:auto;padding-bottom:100px}.modal-header{padding:12px 16px;background:var(--bg-primary);flex-shrink:0}.modal-header h2{font-size:15px}.modal-body{padding:12px 16px 16px}.modal-footer{padding:16px;border-top:1px solid var(--border);background:var(--bg-primary)}.run-analysis-btn{width:100%;max-width:100%;min-width:unset;padding:14px 24px;font-size:15px}.ai-analysis{width:100%}.ai-analysis p{width:100%;text-align:center}.nutrition-row{flex-wrap:wrap;gap:var(--space-sm);font-size:11px}.shopping-item{padding:var(--space-sm)}.category-header{font-size:14px;padding:var(--space-sm)}.analysis-section{padding:var(--space-md)}.analysis-section h3{font-size:14px}.planner-actions{flex-direction:column;gap:var(--space-sm)}.action-btn{width:100%;justify-content:center}.empty-state{padding:40px var(--space-md)}}@media (max-width: 400px){.tab-btn{padding:6px 10px;font-size:12px}.meal-card-header,.ingredient-header{min-height:50px}.meal-card,.ingredient-card{padding:var(--space-sm)}.planner-clean-grid{grid-template-columns:70px repeat(7,minmax(110px,1fr));min-width:840px}.grid-cell{padding:4px;min-height:70px}.day-header-name{font-size:10px}.day-header-calories{font-size:9px}.meal-label{font-size:10px}.meal-label-emoji{font-size:12px}}@media (max-width: 768px) and (orientation: landscape){.tab-content,.tab-content.diary-tab,.tab-content.planner-tab{min-height:calc(100vh - 180px);overflow-y:auto}}[data-theme=dark] .meals-page{background:#0f172a}[data-theme=dark] .meals-page .page-header{background:#1e293bf2;border-bottom-color:#334155}[data-theme=dark] .meals-page .header-left h1{color:#f1f5f9}[data-theme=dark] .meals-page .header-subtitle{color:#94a3b8}[data-theme=dark] .tab{color:#94a3b8}[data-theme=dark] .tab-navigation{background:#1e293b;border-color:#334155}[data-theme=dark] .tab-btn{background:#0f172a;border-color:#334155;color:#94a3b8}[data-theme=dark] .tab-btn:hover{background:#14b8a633;color:#2dd4bf;border-color:#14b8a6}[data-theme=dark] .tab-btn.active{background:#14b8a6;color:#fff;border-color:#14b8a6}[data-theme=dark] .meal-card,[data-theme=dark] .ingredient-card{background:#1e293b;border-color:#334155}[data-theme=dark] .meal-card-header h3,[data-theme=dark] .ingredient-header h3{color:#f1f5f9}[data-theme=dark] .meal-calories,[data-theme=dark] .ingredient-calories{color:#2dd4bf}[data-theme=dark] .nutrition-row{color:#94a3b8}[data-theme=dark] .action-btn{background:#1e293b;border-color:#334155;color:#f1f5f9}[data-theme=dark] .action-btn:hover{background:#14b8a6;color:#fff;border-color:#14b8a6}[data-theme=dark] .search-input{background:#1e293b;border-color:#334155;color:#f1f5f9}[data-theme=dark] .search-input::placeholder{color:#64748b}[data-theme=dark] .planner-header{background:#1e293b;border-color:#334155}[data-theme=dark] .planner-title-section h2{color:#2dd4bf}[data-theme=dark] .planner-title-section p{color:#94a3b8}[data-theme=dark] .view-toggle{background:#0f172a}[data-theme=dark] .view-toggle-btn{color:#94a3b8}[data-theme=dark] .view-toggle-btn:hover{color:#2dd4bf}[data-theme=dark] .view-toggle-btn.active{background:#14b8a6;color:#fff}[data-theme=dark] .planner-action-btn{background:#1e293b;border-color:#334155;color:#f1f5f9}[data-theme=dark] .planner-action-btn:hover{background:#14b8a6;color:#fff;border-color:#14b8a6}[data-theme=dark] .weekly-planner{background:#1e293b;border-color:#334155}[data-theme=dark] .planner-clean-grid{background:#334155;border-color:#334155}[data-theme=dark] .grid-cell,[data-theme=dark] .grid-cell.header{background:#1e293b}[data-theme=dark] .grid-cell.row-header{background:#0f172a}[data-theme=dark] .grid-cell.meal-slot:hover{background:#14b8a626}[data-theme=dark] .cell-meal{background:#0f172a;border-color:#334155}[data-theme=dark] .cell-meal:hover{border-color:#14b8a6}[data-theme=dark] .cell-meal-name{color:#f1f5f9}[data-theme=dark] .cell-meal-calories{color:#2dd4bf}[data-theme=dark] .planner-corner,[data-theme=dark] .planner-day-header{background:#1e293b;border-color:#334155}[data-theme=dark] .day-name,[data-theme=dark] .day-header-name{color:#f1f5f9}[data-theme=dark] .meal-slot-label{background:#0f172a;border-color:#334155}[data-theme=dark] .slot-name{color:#2dd4bf}[data-theme=dark] .planner-slot{background:#1e293b;border-color:#334155}[data-theme=dark] .planner-slot:hover{background:#14b8a626}[data-theme=dark] .empty-slot{color:#0f766e}[data-theme=dark] .planned-meal{background:#0f172a;border-color:#334155}[data-theme=dark] .remove-meal-btn{background:#1e293b;border-color:#334155;color:#94a3b8}[data-theme=dark] .meal-name{color:#f1f5f9}#barcode-scanner{border-radius:8px;overflow:hidden;position:relative;background:#000;min-height:300px;display:flex;align-items:center;justify-content:center}#barcode-scanner>*{display:none!important}#barcode-scanner video:first-of-type{display:block!important;border-radius:8px;width:100%;height:auto;max-height:500px;object-fit:cover;filter:brightness(1.1) contrast(1.05)}#barcode-scanner__scan_region{display:none!important}#barcode-scanner canvas{display:none!important}.scanner-overlay{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;pointer-events:none}.scanner-frame{width:250px;height:250px;border:3px solid #FF6B35;border-radius:12px;position:relative;box-shadow:0 0 0 99999px #00000080}.scanner-frame:before,.scanner-frame:after{content:"";position:absolute;width:20px;height:20px;border:3px solid #FF6B35}.scanner-frame:before{top:-3px;left:-3px;border-right:none;border-bottom:none}.scanner-frame:after{top:-3px;right:-3px;border-left:none;border-bottom:none}@keyframes scan-line{0%,to{top:0}50%{top:calc(100% - 2px)}}.scan-line{position:absolute;width:100%;height:2px;background:linear-gradient(90deg,transparent,#FF6B35,transparent);animation:scan-line 2s ease-in-out infinite}.scanner-modal{max-width:500px}.scanner-body{padding:var(--space-lg)}.scanner-section{margin-bottom:var(--space-lg)}.scanner-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;color:#fff;font-size:14px;padding:var(--space-md);text-align:center}.divider-section{display:flex;align-items:center;gap:var(--space-md);margin:var(--space-lg) 0}.divider-line{flex:1;height:1px;background:var(--border)}.divider-text{font-size:12px;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:1px}.manual-entry-section{margin-bottom:var(--space-md)}.barcode-label{display:block;font-size:14px;font-weight:600;color:var(--text-primary);margin-bottom:var(--space-sm)}.barcode-form-inline{display:flex;gap:var(--space-sm)}.scanning-status{text-align:center;font-size:13px;color:var(--text-secondary);margin-top:var(--space-md);padding:var(--space-sm);background:var(--bg-secondary);border-radius:var(--radius-md)}.scanner-viewport{position:relative;background:#000;width:100%;height:250px;border-radius:var(--radius-md);overflow:hidden;display:flex;align-items:center;justify-content:center}.scanner-video{width:100%;height:100%;object-fit:cover}.scan-line{position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,var(--primary),transparent);animation:scan 2s linear infinite;box-shadow:0 0 10px var(--primary)}@keyframes scan{0%{top:0}to{top:calc(100% - 2px)}}.scanner-status{position:absolute;bottom:20px;left:50%;transform:translate(-50%);background:#000c;color:#fff;padding:8px 16px;border-radius:var(--radius-md);font-size:13px;text-align:center;max-width:80%}.manual-entry{padding:var(--space-lg);border-top:1px solid var(--border);background:var(--bg-primary)}.manual-entry form{display:flex;gap:var(--space-sm)}.barcode-input{flex:1;padding:10px 14px;border:2px solid var(--border);border-radius:var(--radius-md);font-size:14px;color:var(--text-primary);background:var(--bg-secondary);transition:border-color .2s}.barcode-input:focus{outline:none;border-color:var(--primary)}.submit-barcode{padding:10px 20px;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);font-size:14px;font-weight:600;cursor:pointer;transition:opacity .2s}.submit-barcode:hover{opacity:.9}.submit-barcode:active{transform:scale(.98)}.quantity-body{padding:var(--space-lg)}.product-info{color:var(--text-secondary);font-size:14px;margin-bottom:var(--space-lg);display:flex;gap:var(--space-sm);flex-wrap:wrap}.quantity-section{margin-bottom:var(--space-lg)}.quantity-label{display:block;font-weight:600;color:var(--primary);font-size:14px;margin-bottom:var(--space-sm)}.quantity-row{display:flex;gap:var(--space-sm);margin-bottom:var(--space-md)}.quantity-input{flex:1;padding:12px;font-size:18px;font-weight:600;text-align:center;border:2px solid var(--border);border-radius:var(--radius-md);background:var(--bg-secondary);color:var(--text-primary)}.quantity-input:focus{outline:none;border-color:var(--primary)}.unit-select{padding:12px;border:2px solid var(--border);border-radius:var(--radius-md);background:var(--bg-secondary);color:var(--text-primary);font-size:14px;cursor:pointer}.unit-select:focus{outline:none;border-color:var(--primary)}.quick-quantities{display:flex;gap:var(--space-sm);margin-bottom:var(--space-md)}.quick-qty-btn{flex:1;padding:8px;background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-md);font-size:13px;font-weight:500;color:var(--text-primary);cursor:pointer;transition:all .2s}.quick-qty-btn:hover{background:var(--border)}.nutrition-preview{padding:var(--space-md);background:var(--bg-secondary);border-radius:var(--radius-md);font-size:13px;color:var(--text-secondary);line-height:1.5}.nutrition-preview strong{color:var(--text-primary)}.modal-actions{display:flex;gap:var(--space-md)}.modal-actions button{flex:1;padding:12px;font-size:15px;font-weight:600;border-radius:var(--radius-md);border:none;cursor:pointer;transition:all .2s}.btn-secondary{background:var(--bg-secondary);color:var(--text-primary);border:1px solid var(--border)}.btn-primary{background:var(--primary);color:#fff}.quick-add-food{padding:0;height:100%;overflow-y:auto;display:flex;flex-direction:column}.daily-summary{background:#fff;border:1px solid #E5E7EB;border-radius:12px;padding:16px 20px;margin-bottom:20px;display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:0 1px 3px #0000000d}.summary-grid{display:flex;gap:24px;flex:1}.summary-item{display:flex;align-items:baseline;gap:5px}.summary-value{font-size:22px;font-weight:700;color:var(--text-primary)}.summary-label{font-size:11px;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;font-weight:600}.quick-actions{display:flex;gap:8px}.quick-action-btn{padding:6px 12px;background:#14b8a6;color:#fff;border:none;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s;white-space:nowrap}.quick-action-btn:hover{background:#0d9488;box-shadow:0 2px 8px #14b8a64d}.diary-header-row{display:grid;grid-template-columns:1fr 70px 70px 60px 60px 80px 32px;gap:8px;padding:10px 12px;background:#f3f4f6;border-bottom:2px solid #E5E7EB;font-size:11px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.5px;flex-shrink:0;align-items:center;border-radius:8px 8px 0 0}.diary-header-name{text-align:left}.diary-header-col{text-align:right}.diary-header-action{width:32px}.food-log-compact{display:flex;flex-direction:column;gap:16px;flex:1;overflow-y:auto;min-height:0}.meal-section{margin-bottom:24px}.meal-section-header{display:flex;align-items:center;gap:8px;padding:12px 0;border-bottom:2px solid #14B8A6;margin-bottom:0}.meal-section-indicator{width:8px;height:8px;border-radius:50%;flex-shrink:0}.meal-section.breakfast .meal-section-indicator{background:#14b8a6}.meal-section.lunch .meal-section-indicator{background:#2dd4bf}.meal-section.dinner .meal-section-indicator{background:#99f6e4}.meal-section.snacks .meal-section-indicator{background:#ccfbf1}.meal-section-name{font-size:14px;font-weight:700;color:var(--text-primary);text-transform:uppercase;letter-spacing:.5px}.meal-section-total{font-size:12px;color:var(--text-secondary);font-weight:600;margin-left:auto}.meal-section-add-btn{padding:4px 12px;background:#14b8a6;color:#fff;border:none;border-radius:6px;font-size:12px;font-weight:600;cursor:pointer;transition:all .2s;margin-left:12px}.meal-section-add-btn:hover{background:#0d9488;box-shadow:0 2px 8px #14b8a64d}.meal-table{display:flex;flex-direction:column}.meal-row{display:grid;grid-template-columns:1fr 70px 70px 60px 60px 80px 32px;gap:8px;padding:10px 12px;align-items:center;border-bottom:1px solid var(--border);transition:background .2s}.meal-row:last-child{border-bottom:none}.meal-row:hover{background:#f5f3ff}.meal-col{font-size:13px;color:var(--text-primary)}.meal-name{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meal-protein,.meal-carbs,.meal-fiber,.meal-upf{text-align:right;color:var(--text-secondary)}.meal-calories{text-align:right;font-weight:600;color:#14b8a6}.meal-delete{background:none;border:none;color:var(--text-tertiary);font-size:20px;line-height:1;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;transition:color .2s}.meal-delete:hover{color:#f44336}.nutrition-summary{background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-md);padding:16px;margin-bottom:20px;box-shadow:0 1px 3px #0000000d;flex-shrink:0}.summary-title{font-size:14px;font-weight:700;color:var(--text-primary);text-transform:uppercase;letter-spacing:.5px;margin-bottom:16px;text-align:center}.nutrient-circles-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.nutrient-circle{display:flex;flex-direction:column;align-items:center;gap:8px}.circle-container{position:relative;width:110px;height:110px}.circle-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:100%;padding:0 8px}.circle-main-value{font-size:20px;font-weight:700;color:var(--text-primary);line-height:1}.circle-divider{font-size:10px;color:var(--text-secondary);font-weight:400;line-height:1;margin:1px 0}.circle-target-value{font-size:12px;color:var(--text-secondary);font-weight:600;line-height:1}.circle-unit{font-size:9px;color:var(--text-secondary);text-transform:uppercase;font-weight:600;letter-spacing:.5px;margin-top:2px}.circle-label-wrapper{display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:8px}.circle-label{font-size:11px;font-weight:700;color:var(--text-primary);text-transform:uppercase;letter-spacing:.5px}.circle-sublabel{font-size:10px;font-weight:500;color:var(--text-secondary)}.mobile-bar-wrapper{display:none}@media (max-width: 768px){.quick-add-food{padding:var(--space-sm)}.diary-header-row{display:none}.daily-summary{flex-direction:column;gap:12px;padding:12px}.summary-grid{width:100%;justify-content:space-between;gap:8px}.summary-item{flex-direction:column;align-items:center;gap:2px}.summary-value{font-size:16px}.summary-label{font-size:10px}.quick-actions{width:100%}.quick-action-btn{flex:1;font-size:12px}.food-log-compact{gap:8px}.slot-header-compact{padding:8px 10px}.slot-name-compact{font-size:13px}.slot-cal-compact{font-size:12px}.add-food-btn{font-size:11px;padding:4px 8px}.meal-row{grid-template-columns:1fr;gap:4px;padding:12px 36px 12px 10px;position:relative}.meal-name{font-size:14px;white-space:normal}.meal-protein,.meal-carbs,.meal-fiber,.meal-upf{display:none}.meal-calories{position:absolute;top:12px;right:36px;font-size:14px}.meal-delete{position:absolute;top:50%;right:4px;transform:translateY(-50%);font-size:22px}.nutrition-summary{padding:12px}.nutrient-circles-grid{display:flex;flex-direction:column;gap:10px}.nutrient-circle{flex-direction:column;align-items:stretch;gap:4px}.circle-container,.circle-label-wrapper{display:none}.nutrient-circle .circle-label{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:700;color:var(--text-primary);margin:0}.circle-text{position:static;transform:none;flex-direction:row;align-items:baseline;gap:3px;padding:0;width:auto}.circle-main-value{font-size:14px;font-weight:700}.circle-divider{font-size:10px}.circle-target-value{font-size:12px}.circle-unit{font-size:9px;margin-top:0;margin-left:2px}.mobile-bar-wrapper{display:flex!important;flex-direction:column;gap:6px;width:100%}.mobile-progress-bar{width:100%;height:8px;background:var(--border);border-radius:4px;overflow:hidden;position:relative}.mobile-progress-fill{height:100%;transition:width .3s ease;border-radius:4px}}@media (min-width: 768px){.diary-header-row{display:grid}.meal-row{grid-template-columns:1fr 70px 70px 60px 60px 80px 32px;padding:10px 12px;position:static}.meal-name{white-space:nowrap}.meal-protein,.meal-carbs,.meal-fiber,.meal-upf{display:block}.meal-calories{position:static}.meal-delete{position:static;transform:none}}@media (min-width: 480px) and (max-width: 768px){.nutrient-circles-grid{grid-template-columns:repeat(5,1fr);gap:10px}.circle-container{width:90px;height:90px}}@media (max-width: 480px){.nutrition-summary{padding:10px}.nutrient-circles-grid{gap:6px}.nutrient-circle{padding:6px 10px}.circle-label{font-size:10px;min-width:50px}.circle-main-value{font-size:14px}.circle-divider{font-size:11px}.circle-target-value{font-size:12px}.circle-unit{font-size:9px}}[data-theme=dark] .daily-summary{background:#1e293b;border-color:#334155}[data-theme=dark] .summary-value{color:#f1f5f9}[data-theme=dark] .summary-label{color:#94a3b8}[data-theme=dark] .diary-header-row{background:#1e293b;color:#94a3b8;border-bottom-color:#334155}[data-theme=dark] .meal-section-header{border-bottom-color:#14b8a6}[data-theme=dark] .meal-section-name{color:#f1f5f9}[data-theme=dark] .meal-section-total{color:#94a3b8}[data-theme=dark] .meal-row{border-bottom-color:#334155}[data-theme=dark] .meal-row:hover{background:#14b8a61a}[data-theme=dark] .meal-col{color:#f1f5f9}[data-theme=dark] .meal-protein,[data-theme=dark] .meal-carbs,[data-theme=dark] .meal-fiber,[data-theme=dark] .meal-upf{color:#94a3b8}[data-theme=dark] .meal-calories{color:#2dd4bf}[data-theme=dark] .nutrition-summary{background:#1e293b;border-color:#334155}[data-theme=dark] .summary-title,[data-theme=dark] .circle-main-value{color:#f1f5f9}[data-theme=dark] .circle-divider,[data-theme=dark] .circle-target-value{color:#94a3b8}[data-theme=dark] .circle-label{color:#f1f5f9}[data-theme=dark] .mobile-progress-bar{background:#334155}.targets-page{width:100%;min-height:100vh;background:#f9fafb;display:flex;flex-direction:column}.targets-page .page-header{background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid #E5E7EB;padding:20px;position:sticky;top:0;z-index:100}.targets-page .header-content{max-width:1200px;margin:0 auto;display:flex;justify-content:space-between;align-items:center}.targets-page .header-left h1{margin:0;font-size:28px;font-weight:700;color:#111827}.targets-page .header-subtitle{margin:4px 0 0;font-size:14px;color:#6b7280}.add-target-btn-header{background:#14b8a6;color:#fff;border:none;padding:10px 20px;border-radius:8px;font-weight:600;font-size:14px;cursor:pointer;transition:all .2s}.add-target-btn-header:hover{background:#0d9488;transform:translateY(-1px);box-shadow:0 4px 12px #14b8a64d}.targets-container{height:100%;width:100%;overflow-y:auto;overflow-x:hidden;background:#f9fafb;display:flex;flex-direction:column}.targets-content,.targets-page .page-content{width:100%;max-width:1200px;margin:0 auto;padding:24px 20px 100px;flex:1;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:16px;box-sizing:border-box}.tabs{display:flex;gap:8px;margin-bottom:16px;overflow-x:auto;flex-shrink:0;width:100%;background:#f3f4f6;padding:4px;border-radius:12px}.tab{flex:1;min-width:100px;padding:12px 16px;background:transparent;border:none;border-radius:8px;cursor:pointer;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;transition:all .2s;color:#6b7280}.tab:hover{background:#14b8a61a;color:#14b8a6}.tab.active{background:#14b8a6;color:#fff;box-shadow:0 2px 8px #14b8a64d}.tab .tab-icon{font-size:18px}.tab .tab-label{font-size:13px;font-weight:600}.targets-header{background:var(--bg-secondary);border-bottom:1px solid var(--border);padding:var(--space-md) 0}.targets-header-content{max-width:1100px;margin:0 auto;padding:0 var(--space-md);display:flex;justify-content:space-between;align-items:center}.targets-header h1{font-size:20px;font-weight:600;color:var(--text-primary);margin:0}.targets-header p{font-size:14px;color:var(--text-secondary);margin-top:4px}.add-target-btn{padding:10px 20px;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);font-size:14px;font-weight:600;cursor:pointer;transition:opacity .2s}.add-target-btn:hover{opacity:.9}.category-tabs{background:var(--bg-secondary);border-bottom:1px solid var(--border);padding:var(--space-md) 0}.category-tabs-content{max-width:1100px;margin:0 auto;padding:0 var(--space-md);display:flex;gap:var(--space-sm);overflow-x:auto}.category-tab{padding:8px 16px;background:transparent;border:1px solid var(--border);border-radius:var(--radius-md);color:var(--text-secondary);font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;white-space:nowrap}.category-tab:hover{background:var(--bg-secondary);color:var(--text-primary)}.category-tab.active{background:var(--primary);color:#fff;border-color:var(--primary)}.targets-grid-container{flex:1;min-width:0;overflow-y:auto;width:100%}.targets-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:var(--space-lg)}.target-card{background:var(--bg-primary);border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--space-lg);box-shadow:var(--shadow-sm);transition:all .2s}.target-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}.target-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:var(--space-md)}.target-icon{font-size:32px}.target-icon-badge{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:10px;font-size:11px;font-weight:700;color:#fff;text-transform:uppercase;letter-spacing:.3px}.empty-icon-circle{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:var(--bg-tertiary, #E5E7EB);color:var(--text-secondary, #6B7280);font-size:32px;font-weight:300;margin:0 auto 16px}.target-actions{display:flex;gap:4px}.target-action-btn{background:transparent;border:none;font-size:16px;cursor:pointer;opacity:.6;transition:opacity .2s;padding:4px}.target-action-btn.delete{font-size:20px;font-weight:300}.target-action-btn:hover{opacity:1}.target-body h3{font-size:18px;color:var(--text-primary);margin:0 0 var(--space-md) 0}.target-values{display:flex;align-items:baseline;gap:8px;margin-bottom:var(--space-md)}.current-value{font-size:24px;font-weight:600;color:var(--primary)}.separator{color:var(--text-tertiary);font-size:20px}.target-value{font-size:18px;color:var(--text-secondary)}.progress-bar{height:8px;background:var(--bg-secondary);border-radius:4px;overflow:hidden;margin-bottom:8px}.progress-fill{height:100%;background:var(--primary);transition:width .3s ease}.progress-text{font-size:12px;color:var(--text-secondary);text-align:center}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:var(--space-lg)}.modal-content{background:var(--bg-primary);border-radius:var(--radius-lg);max-width:500px;width:100%;max-height:90vh;overflow-y:auto}.modal-header{padding:var(--space-lg);border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.modal-header h2{font-size:20px;color:var(--text-primary);margin:0}.close-btn{background:transparent;border:none;font-size:24px;color:var(--text-secondary);cursor:pointer;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);transition:background .2s}.close-btn:hover{background:var(--bg-secondary)}.modal-body{padding:var(--space-lg)}.modal-footer{padding:var(--space-md) var(--space-lg);padding-bottom:var(--space-lg);border-top:1px solid var(--border)}.target-form{padding:var(--space-lg)}.form-group{margin-bottom:var(--space-lg)}.form-group label{display:block;font-size:14px;font-weight:500;color:var(--text-primary);margin-bottom:8px}.form-group input,.form-group select{width:100%;padding:12px;border:2px solid var(--border);border-radius:var(--radius-md);background:var(--bg-secondary);color:var(--text-primary);font-size:14px;transition:border-color .2s}.form-group input:focus,.form-group select:focus{outline:none;border-color:var(--primary)}.form-group input:disabled,.form-group select:disabled{opacity:.6;cursor:not-allowed}.form-help{display:block;font-size:12px;color:var(--text-secondary);margin-top:4px}.form-actions{display:flex;gap:var(--space-md);justify-content:flex-end}.btn-secondary{padding:12px 24px;background:var(--bg-secondary);color:var(--text-primary);border:1px solid var(--border);border-radius:var(--radius-md);font-size:14px;font-weight:500;cursor:pointer;transition:background .2s}.btn-secondary:hover{background:var(--border)}.btn-primary{padding:12px 24px;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);font-size:14px;font-weight:600;cursor:pointer;transition:opacity .2s}.btn-primary:hover{opacity:.9}.empty-state{grid-column:1 / -1;text-align:center;padding:60px 20px}.empty-icon{font-size:48px;margin-bottom:16px}.empty-state h3{font-size:20px;color:var(--text-primary);margin:0 0 8px}.empty-state p{color:var(--text-secondary);margin:0 0 24px}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;color:var(--text-secondary)}.loading-spinner{width:40px;height:40px;border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.weight-target-info{display:flex;flex-direction:column;gap:var(--space-md)}.calorie-info{background:var(--bg-secondary);border-radius:var(--radius-md);padding:var(--space-md);margin-top:var(--space-md);font-size:12px}.calorie-row{display:flex;justify-content:space-between;padding:4px 0;color:var(--text-secondary)}.calorie-row.highlight{color:var(--text-primary);font-weight:600;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:8px 0;margin:8px 0}.calorie-row .value{font-weight:500;color:var(--text-primary)}.weight-info-section{background:var(--bg-secondary);border-radius:var(--radius-md);padding:var(--space-lg);margin-bottom:var(--space-lg);text-align:center}.current-weight{font-size:16px;color:var(--text-secondary)}.current-weight strong{color:var(--primary);font-size:20px}.radio-group{display:flex;gap:var(--space-md);flex-wrap:wrap}.radio-label{display:flex;align-items:center;gap:8px;padding:8px 16px;background:var(--bg-secondary);border:2px solid var(--border);border-radius:var(--radius-md);cursor:pointer;transition:all .2s}.radio-label:hover{border-color:var(--primary)}.radio-label input[type=radio]{cursor:pointer}.radio-label input[type=radio]:checked+span{color:var(--primary);font-weight:600}.calorie-preview{background:var(--bg-tertiary);border-radius:var(--radius-md);padding:var(--space-lg);margin:var(--space-lg) 0;text-align:center}.calorie-preview h3{font-size:16px;color:var(--text-primary);margin:0 0 8px}.calorie-preview p{font-size:14px;color:var(--text-secondary);margin:0}.modal-content.large{max-width:700px}.mobile-only{display:none}@media (max-width: 768px){.mobile-only{display:block}.tabs{display:none!important}.bottom-category-switcher{display:flex!important;flex-direction:row;align-items:center;justify-content:space-between;padding:10px 12px;margin:12px 16px;border:1px solid var(--border);background:var(--bg-secondary);border-radius:var(--radius-md)}.category-arrow{background:var(--bg-tertiary);border:1px solid var(--border);border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;color:var(--text-primary);cursor:pointer;transition:all .2s;flex-shrink:0}.category-arrow:hover{background:var(--primary);color:#fff;border-color:var(--primary);transform:scale(1.05)}.category-arrow:active{transform:scale(.95)}.category-indicator{display:flex;align-items:center;gap:8px;flex:1;justify-content:center;min-width:0}.category-icon{font-size:20px;flex-shrink:0}.category-name{font-size:14px;font-weight:600;color:var(--text-primary);text-transform:uppercase;letter-spacing:.5px;white-space:nowrap}.targets-container{position:relative;height:100vh}.targets-content{padding:var(--space-xs) var(--space-sm)}.targets-header{position:sticky;top:0;z-index:100;box-shadow:var(--shadow-sm)}.targets-header-content{flex-direction:column;gap:var(--space-sm);padding:0 var(--space-md)}.targets-header h1{font-size:18px}.targets-header p{font-size:13px}.add-target-btn{width:100%;padding:12px 20px;font-size:14px}.category-tabs{position:sticky;top:80px;z-index:99;box-shadow:var(--shadow-sm)}.category-tabs-content{padding:0 var(--space-sm)}.category-tab{padding:8px 14px;font-size:13px}.targets-grid-container{padding:var(--space-md);min-height:0;flex:1}.targets-grid{grid-template-columns:1fr;gap:var(--space-md)}.target-card{padding:var(--space-md)}.target-icon{font-size:28px}.target-body h3{font-size:16px}.current-value{font-size:20px}.separator{font-size:18px}.target-value{font-size:16px}.modal-overlay{padding:60px 16px 16px;align-items:flex-start}.modal-content{max-width:100%;width:100%;max-height:calc(100vh - 100px);border-radius:var(--radius-lg);margin:0;overflow-y:auto;padding-bottom:100px}.modal-content.large{max-width:100%;max-height:calc(100vh - 100px);overflow-y:auto;padding-bottom:100px}.modal-body{padding:12px 16px}.modal-footer{padding:16px;border-top:1px solid var(--border);background:var(--bg-primary)}.modal-header{padding:var(--space-md);position:sticky;top:0;background:var(--bg-primary);z-index:10;box-shadow:0 2px 4px #0000000d}.modal-header h2{font-size:18px}.target-form{padding:var(--space-md)}.form-group{margin-bottom:var(--space-md)}.form-group label{font-size:13px}.form-group input,.form-group select{padding:10px 12px;font-size:14px}.form-help{font-size:11px}.weight-info-section{padding:var(--space-md);margin-bottom:var(--space-md)}.weight-display .weight-item{flex-direction:column;gap:4px;text-align:center}.weight-label{font-size:13px}.weight-value{font-size:18px}.radio-group{gap:var(--space-sm)}.radio-label{padding:8px 12px;font-size:13px;flex:1;justify-content:center}.calorie-preview{padding:var(--space-md);margin:var(--space-md) 0}.calorie-preview h3{font-size:15px}.calorie-details{font-size:12px}.calorie-row{padding:6px 0;flex-direction:column;gap:2px;text-align:center}.calorie-row.highlight{padding:10px 0}.calorie-preview .note{font-size:11px}.calorie-preview .warning{font-size:12px}.form-actions{flex-direction:column-reverse;gap:var(--space-sm)}.btn-secondary,.btn-primary{width:100%;padding:12px 20px;font-size:14px}.empty-state{padding:40px var(--space-md)}.empty-icon{font-size:40px}.empty-state h3{font-size:18px}.empty-state p{font-size:14px}}@media (max-width: 400px){.targets-header h1{font-size:16px}.targets-header p{font-size:12px}.category-tab{padding:6px 12px;font-size:12px}.target-card{padding:var(--space-sm)}.target-icon{font-size:24px}.target-body h3{font-size:15px}.current-value{font-size:18px}.target-value{font-size:14px}.calorie-details .calorie-row{font-size:11px}}@media (max-width: 768px) and (orientation: landscape){.targets-grid-container{min-height:calc(100vh - 180px)}.modal-content{max-height:90vh;overflow-y:auto}.modal-content.large{max-height:95vh;overflow-y:auto}}[data-theme=dark] .targets-page{background:#0f172a}[data-theme=dark] .targets-page .page-header{background:#1e293bf2;border-bottom-color:#334155}[data-theme=dark] .targets-page .header-left h1{color:#f1f5f9}[data-theme=dark] .targets-page .header-subtitle{color:#94a3b8}[data-theme=dark] .tabs{background:#1e293b}[data-theme=dark] .tab{background:transparent;border-color:transparent;color:#94a3b8}[data-theme=dark] .tab:hover{background:#14b8a633;color:#2dd4bf}[data-theme=dark] .tab.active{background:#14b8a6;color:#fff}[data-theme=dark] .category-tabs{background:#1e293b;border-color:#334155}[data-theme=dark] .category-tab{background:#0f172a;border-color:#334155;color:#94a3b8}[data-theme=dark] .category-tab:hover{background:#14b8a633;color:#2dd4bf;border-color:#14b8a6}[data-theme=dark] .category-tab.active{background:#14b8a6;color:#fff;border-color:#14b8a6}[data-theme=dark] .bottom-category-switcher{background:#1e293b;border-color:#334155}[data-theme=dark] .category-arrow{background:#0f172a;border-color:#334155;color:#e2e8f0}[data-theme=dark] .category-arrow:hover{background:#14b8a6;border-color:#14b8a6}[data-theme=dark] .category-name{color:#e2e8f0}[data-theme=dark] .target-card{background:#1e293b;border-color:#334155}[data-theme=dark] .target-body h3,[data-theme=dark] .target-icon{color:#f1f5f9}[data-theme=dark] .empty-icon-circle{background:#334155;color:#94a3b8}[data-theme=dark] .current-value{color:#2dd4bf}[data-theme=dark] .target-value{color:#94a3b8}[data-theme=dark] .progress-bar{background:#334155}[data-theme=dark] .empty-state{background:#1e293b}[data-theme=dark] .empty-state h3{color:#f1f5f9}[data-theme=dark] .empty-state p{color:#94a3b8}[data-theme=dark] .modal-content{background:#1e293b}[data-theme=dark] .modal-header{background:#1e293b;border-bottom-color:#334155}[data-theme=dark] .modal-header h2{color:#f1f5f9}[data-theme=dark] .modal-footer{background:#1e293b;border-top-color:#334155}[data-theme=dark] .form-group label{color:#f1f5f9}[data-theme=dark] .form-group input,[data-theme=dark] .form-group select{background:#0f172a;border-color:#334155;color:#f1f5f9}[data-theme=dark] .add-target-btn-header{background:#14b8a6}[data-theme=dark] .add-target-btn-header:hover{background:#0d9488}.registration-container{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#0dd3d3,#0ab8b8);padding:20px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;overflow-y:auto}.registration-card{background:#fff;border-radius:16px;box-shadow:0 20px 60px #0000004d;padding:20px;max-width:600px;width:100%;margin:10px 0;max-height:calc(100vh - 20px);overflow-y:auto}.registration-header{text-align:center;margin-bottom:12px}.registration-header .logo{width:150px;height:150px;object-fit:contain;margin-bottom:16px;background:transparent}.registration-header h1{font-size:20px;color:#1a1a1a;margin:0 0 4px;font-weight:700}.registration-header .subtitle{font-size:12px;color:#666;margin:0}.step-info{text-align:center;font-size:13px;color:#0dd3d3;font-weight:600;margin-bottom:16px;padding:8px;background:#e0f7f7;border-radius:8px}.error-message{background:#fee;border:1px solid #fcc;border-radius:8px;padding:10px 12px;margin-bottom:16px;display:flex;align-items:center;gap:8px;color:#c33;font-size:13px}.error-icon{font-size:18px}.invite-step{display:flex;flex-direction:column;gap:16px}.invite-step label{font-weight:600;color:#333;font-size:14px}.invite-step input{padding:14px 16px;border:2px solid #e0e0e0;border-radius:8px;font-size:16px;font-family:monospace;letter-spacing:2px;text-transform:uppercase;transition:border-color .2s}.invite-step input:focus{outline:none;border-color:#0dd3d3}.registration-form{display:flex;flex-direction:column;gap:12px}.form-section{display:flex;flex-direction:column;gap:8px}.form-section h3{font-size:14px;color:#333;margin:0;padding-bottom:4px;border-bottom:2px solid #f0f0f0}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-group{display:flex;flex-direction:column;gap:4px}.form-group label{font-size:12px;font-weight:600;color:#555}.form-group input,.form-group select{padding:8px 10px;border:2px solid #e0e0e0;border-radius:8px;font-size:14px;transition:border-color .2s}.form-group input:focus,.form-group select:focus{outline:none;border-color:#0dd3d3}.input-with-unit{display:flex;gap:8px}.input-with-unit input{flex:1}.input-with-unit select{width:80px}.btn-primary{background:#0dd3d3;color:#fff;padding:14px 24px;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;transition:all .2s;box-shadow:0 4px 12px #0dd3d34d}.btn-primary:hover:not(:disabled){background:#0ab8b8;transform:translateY(-2px);box-shadow:0 6px 16px #0dd3d366}.btn-primary:disabled{background:#ccc;cursor:not-allowed;box-shadow:none}.submit-btn{margin-top:4px;width:100%}.submit-btn:disabled{opacity:.5;cursor:not-allowed}.terms-acceptance{margin:16px 0;padding:12px;background:#f8f9fa;border-radius:8px;border:1px solid #e0e0e0}.terms-checkbox-label{display:flex;align-items:flex-start;gap:10px;cursor:pointer}.terms-checkbox{margin-top:3px;width:18px;height:18px;cursor:pointer;accent-color:#0dd3d3}.terms-text{font-size:12px;color:#555;line-height:1.5}.terms-text a{color:#0ab8b8;text-decoration:none;font-weight:500}.terms-text a:hover{text-decoration:underline}.field-note{font-size:11px;color:#666;margin-top:4px;margin-bottom:0;font-style:italic}.back-to-login{text-align:center;margin-top:12px;padding-top:12px;border-top:1px solid #e0e0e0}.back-to-login a{color:#666;text-decoration:none;font-size:14px;transition:color .2s}.back-to-login a:hover{color:#0dd3d3}@media (max-width: 640px){.registration-card{padding:24px}.form-row{grid-template-columns:1fr}}.bottom-navigation{position:fixed;bottom:0;left:0;right:0;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid #E5E7EB;z-index:1000}.bottom-navigation-content{max-width:1200px;margin:0 auto;display:flex;justify-content:space-around;padding:8px 16px 12px}.nav-item{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 16px;color:#6b7280;text-decoration:none;transition:all .2s ease;cursor:pointer;border-radius:8px;position:relative}.nav-item:hover{color:#111827;background:#f3f4f6}.nav-item.active{color:#14b8a6}.nav-item.active:before{content:"";position:absolute;top:-8px;left:50%;transform:translate(-50%);width:24px;height:3px;background:#14b8a6;border-radius:0 0 3px 3px}.nav-item svg{width:22px;height:22px;transition:transform .2s ease}.nav-item:hover svg{transform:scale(1.05)}.nav-item.active svg{transform:scale(1.1)}.nav-item span{font-size:11px;font-weight:600;letter-spacing:.3px}.dashboard-redesign,.meals-page,.targets-container,.settings-page{padding-bottom:80px}[data-theme=dark] .bottom-navigation{background:#1e293bf2;border-top-color:#334155}[data-theme=dark] .nav-item{color:#94a3b8}[data-theme=dark] .nav-item:hover{color:#f1f5f9;background:#33415580}[data-theme=dark] .nav-item.active{color:#14b8a6}[data-theme=dark] .nav-item.active:before{background:#14b8a6}@media (max-width: 768px){.bottom-navigation-content{padding:6px 8px 10px}.nav-item{padding:6px 12px}.nav-item svg{width:20px;height:20px}.nav-item span{font-size:10px}}:root{--primary: #0dd3d3;--primary-dark: #0ab8b8;--secondary: #ff6b35;--accent: #ffc107;--success: #4caf50;--warning: #ff9800;--error: #f44336;--bg-primary: #ffffff;--bg-secondary: #f5f5f5;--bg-tertiary: #e0e0e0;--text-primary: #212121;--text-secondary: #757575;--text-tertiary: #9e9e9e;--border: #e0e0e0;--shadow-sm: 0 2px 4px rgba(0,0,0,.1);--shadow-md: 0 4px 8px rgba(0,0,0,.15);--shadow-lg: 0 8px 16px rgba(0,0,0,.2);--space-xs: 4px;--space-sm: 8px;--space-md: 16px;--space-lg: 24px;--space-xl: 32px;--radius-sm: 4px;--radius-md: 8px;--radius-lg: 12px}[data-theme=dark]{--primary: #0dd3d3;--primary-dark: #0ab8b8;--secondary: #ff6b35;--accent: #ffc107;--success: #4caf50;--warning: #ff9800;--error: #f44336;--bg-primary: #1a1a1a;--bg-secondary: #2a2a2a;--bg-tertiary: #3a3a3a;--text-primary: #ffffff;--text-secondary: #b0b0b0;--text-tertiary: #808080;--border: #404040;--shadow-sm: 0 2px 4px rgba(0,0,0,.3);--shadow-md: 0 4px 8px rgba(0,0,0,.4);--shadow-lg: 0 8px 16px rgba(0,0,0,.5)}body{font-family:itc-bodoni-seventytwo-pro,serif,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--bg-secondary);color:var(--text-primary);transition:background .3s ease,color .3s ease}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--bg-secondary)}::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--text-tertiary)}button{font-family:inherit}.loading-spinner{border:3px solid var(--border);border-top:3px solid var(--primary);border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}input,select,textarea{font-family:inherit;font-size:inherit}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}*{margin:0;padding:0;box-sizing:border-box}:root{--primary: #0dd3d3;--primary-dark: #0ab8b8;--secondary: #FF6B35;--accent: #4A90E2;--bg-primary: #fafafa;--bg-secondary: #ffffff;--bg-tertiary: #f5f5f5;--text-primary: #1a1a1a;--text-secondary: #666666;--text-tertiary: #999999;--border: #e5e5e5;--shadow-sm: 0 2px 4px rgba(0, 0, 0, .05);--shadow-md: 0 4px 12px rgba(0, 0, 0, .08);--shadow-lg: 0 8px 24px rgba(0, 0, 0, .12);--space-xs: 4px;--space-sm: 8px;--space-md: 16px;--space-lg: 24px;--space-xl: 32px;--radius-sm: 8px;--radius-md: 12px;--radius-lg: 16px;--success: #4CAF50;--warning: #FF9800;--error: #F44336;--info: #2196F3}[data-theme=dark]{--bg-primary: #0a0a0a;--bg-secondary: #1a1a1a;--bg-tertiary: #2a2a2a;--text-primary: #ffffff;--text-secondary: #b0b0b0;--text-tertiary: #666666;--border: #333333}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--bg-primary);color:var(--text-primary);line-height:1.6;overflow-x:hidden;overflow-y:auto;margin:0;padding:0;width:100%;min-height:100%}#root{min-height:100%;width:100%;overflow-x:hidden;overflow-y:auto}.container{max-width:1200px;margin:0 auto;padding:0 var(--space-md)}.card{background:var(--bg-secondary);border-radius:var(--radius-md);padding:var(--space-lg);box-shadow:var(--shadow-md);border:1px solid var(--border)}
