.app{min-height:100vh;display:flex;flex-direction:column;background:linear-gradient(135deg,#667eea,#764ba2)}.header{background-color:#00000080;color:#fff;padding:2rem 1rem;text-align:center;box-shadow:0 2px 8px #0000001a}.header h1{font-size:2.5rem;margin-bottom:.5rem}.header p{font-size:1rem;opacity:.9}.main{flex:1;padding:2rem 1rem;max-width:800px;width:100%;margin:0 auto}.tabs{display:flex;gap:1rem;margin-bottom:2rem;justify-content:center}.tab-btn{padding:.8rem 1.5rem;font-size:1rem;border:2px solid white;background-color:#fff3;color:#fff;border-radius:8px;cursor:pointer;transition:all .3s ease}.tab-btn:hover{background-color:#ffffff4d}.tab-btn.active{background-color:#fff;color:#667eea;font-weight:700}.tab-content{background-color:#fff;border-radius:12px;padding:2rem;box-shadow:0 8px 16px #0000001a;margin-bottom:2rem}.analysis-loading{background-color:#fff;border-radius:12px;padding:1rem;box-shadow:0 8px 16px #0000001a;margin-bottom:2rem;display:flex;align-items:center;justify-content:center;gap:.75rem}.analysis-loading p{margin:0;color:#333;font-weight:600}.analysis-spinner{width:20px;height:20px;border:3px solid #e0e0e0;border-top-color:#667eea;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.footer{background-color:#00000080;color:#fff;padding:1rem;text-align:center;font-size:.9rem}@media (max-width: 600px){.header h1{font-size:1.5rem}.header p{font-size:.9rem}.tabs{flex-direction:column}.tab-btn{width:100%}.main,.tab-content{padding:1rem}}.photo-upload{width:100%}.upload-area{margin-bottom:1.5rem}.file-input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}.file-label{display:block;cursor:pointer;border:2px dashed #667eea;border-radius:8px;padding:2rem;text-align:center;transition:all .3s ease}.file-label:hover{background-color:#f5f5f5;border-color:#764ba2}.upload-placeholder{-webkit-user-select:none;user-select:none}.upload-placeholder p{margin:.5rem 0;color:#333}.upload-placeholder p:first-child{font-size:2rem}.text-small{color:#999;font-size:.9rem}.preview-container{width:100%;height:300px;display:flex;align-items:center;justify-content:center}.preview-image{max-width:100%;max-height:100%;border-radius:4px}.submit-btn{width:100%;padding:1rem;font-size:1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;cursor:pointer;transition:opacity .3s ease}.submit-btn:hover:not(:disabled){opacity:.9}.submit-btn:disabled{opacity:.6;cursor:not-allowed}@media (max-width: 600px){.file-label{padding:1rem}}.livestream-camera{width:100%;display:flex;flex-direction:column}.video-feed{width:100%;border-radius:8px;background-color:#000;margin-bottom:1.5rem;max-height:500px;object-fit:cover}.button-group{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}.capture-btn,.stop-btn{flex:1;min-width:150px;padding:1rem;font-size:1rem;border:none;border-radius:8px;cursor:pointer;transition:opacity .3s ease}.capture-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.capture-btn:hover:not(:disabled){opacity:.9}.capture-btn:disabled{opacity:.6;cursor:not-allowed}.stop-btn{background-color:#f0f0f0;color:#333;border:1px solid #ddd}.stop-btn:hover{background-color:#e0e0e0}.retry-btn{padding:.8rem 1.5rem;font-size:1rem;background-color:#667eea;color:#fff;border:none;border-radius:8px;cursor:pointer;transition:opacity .3s ease,background-color .3s ease}.retry-btn:hover{background-color:#5568d3;opacity:.95}.retry-btn:active{opacity:.85}.camera-inactive{padding:2rem;text-align:center;background-color:#f5f5f5;border-radius:8px;color:#666}.error-message{background-color:#fee;color:#c33;padding:1rem;border-radius:4px;margin-bottom:1rem;border-left:4px solid #c33}.error-text{color:#c33;font-size:.9rem}@media (max-width: 600px){.button-group{flex-direction:column}.capture-btn,.stop-btn{min-width:auto;flex:unset;width:100%}}.analysis-result{background:linear-gradient(135deg,#f5f7fa,#c3cfe2);border-radius:12px;padding:2rem;margin-top:2rem}.analysis-result.caution{background:linear-gradient(135deg,#fff5e6,#ffe6cc)}.result-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.result-header h2{margin:0;color:#333}.grade-badge{padding:.5rem 1rem;border-radius:20px;font-weight:700;font-size:.9rem;color:#fff}.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-bottom:2rem}.result-card{background-color:#fff;padding:1.5rem;border-radius:8px;box-shadow:0 2px 8px #0000001a}.result-card h3{margin:0 0 1rem;color:#667eea;font-size:1rem}.big-number{font-size:2.5rem;font-weight:700;color:#333;margin:.5rem 0}.small-text{color:#999;font-size:.9rem;margin:.25rem 0}.score-bar{width:100%;height:8px;background-color:#ddd;border-radius:4px;overflow:hidden;margin-top:1rem}.score-fill{height:100%;background:linear-gradient(90deg,#667eea,#764ba2);transition:width .5s ease}.ingredients-section,.recommendations-section{margin-bottom:2rem;background-color:#fff;padding:1.5rem;border-radius:8px;box-shadow:0 2px 8px #0000001a}.ingredients-section h3,.recommendations-section h3{margin:0 0 1rem;color:#667eea}.ingredients-list{display:flex;flex-direction:column;gap:.75rem}.ingredient-item{display:flex;align-items:center;gap:1rem;padding:.75rem;background-color:#f9f9f9;border-radius:4px;border-left:4px solid #ddd}.ingredient-item.high-sugar{background-color:#fff5f5;border-left-color:#ff6b6b}.ingredient-name{flex:1;font-weight:500;color:#333}.ingredient-qty{color:#999;font-size:.9rem;min-width:60px;text-align:right}.sugar-badge{background-color:#ff6b6b;color:#fff;padding:.25rem .75rem;border-radius:12px;font-size:.8rem;font-weight:700}.recommendations-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.75rem}.recommendations-list li{padding:.75rem;background-color:#f9f9f9;border-radius:4px;color:#333;border-left:4px solid #667eea}.result-footer{text-align:center;margin-top:1.5rem}.timestamp{color:#999;font-size:.85rem;margin:0}@media (max-width: 600px){.result-grid{grid-template-columns:1fr}.result-header{flex-direction:column;align-items:flex-start;gap:1rem}.analysis-result{padding:1rem}}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){a:hover{color:#747bff}button{background-color:#f9f9f9}}*{margin:0;padding:0;box-sizing:border-box}body{margin:0}html,body,#root{width:100%;height:100%}
