:root{--primary: #2D8F5E;--primary-bg: rgba(45, 143, 94, .08);--warning: #E8A317;--warning-bg: rgba(232, 163, 23, .1);--danger: #D64045;--danger-bg: rgba(214, 64, 69, .1);--info: #2563EB;--info-bg: rgba(37, 99, 235, .08);--bg: #F8FAF9;--surface: #FFFFFF;--text: #1A2B23;--text-muted: #6B7E74;--border: #E2EBE6;--radius-sm: 8px;--radius-md: 12px;--radius-lg: 16px;--shadow-sm: 0 1px 4px rgba(0,0,0,.06);--shadow-md: 0 4px 12px rgba(0,0,0,.08)}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{font-size:16px;-webkit-text-size-adjust:100%}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.5;-webkit-font-smoothing:antialiased}img{max-width:100%}button{cursor:pointer;font:inherit}a{color:var(--primary);text-decoration:none}.page-wrapper{max-width:680px;margin:0 auto;padding:16px}.profile-header{text-align:center;padding:28px 0 20px}.profile-logo{font-size:48px;margin-bottom:8px}.profile-title{font-size:1.6rem;font-weight:700;color:var(--text)}.profile-subtitle{font-size:.875rem;color:var(--text-muted);margin-top:4px}.section-heading{font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);margin-bottom:10px}.allergen-list{display:flex;flex-direction:column;gap:8px;margin-bottom:28px}.allergen-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:14px 16px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;box-shadow:var(--shadow-sm)}.allergen-name{font-weight:600;font-size:1rem;color:var(--text)}.allergen-notes{font-size:.875rem;color:var(--text-muted);margin-top:3px;line-height:1.4}.badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:.75rem;font-weight:600;white-space:nowrap;flex-shrink:0}.badge-allergy{background:var(--danger-bg);color:var(--danger)}.badge-intolerance{background:var(--warning-bg);color:var(--warning)}.badge-preference{background:var(--info-bg);color:var(--info)}.chat-section{border-top:1px solid var(--border);padding-top:20px}.chat-messages{display:flex;flex-direction:column;gap:12px;margin-bottom:16px;max-height:480px;overflow-y:auto;scroll-behavior:smooth}.chat-bubble{max-width:85%;padding:12px 14px;border-radius:var(--radius-md);font-size:.9rem;line-height:1.55;white-space:pre-wrap;word-break:break-word}.chat-bubble-user{align-self:flex-end;background:var(--primary);color:#fff;border-bottom-right-radius:4px}.chat-bubble-assistant{align-self:flex-start;background:var(--surface);border:1px solid var(--border);color:var(--text);border-bottom-left-radius:4px;box-shadow:var(--shadow-sm)}.chat-bubble-image{max-width:220px;border-radius:var(--radius-sm);margin-bottom:6px;display:block}.typing-dots{display:flex;gap:4px;align-items:center;padding:14px 16px}.typing-dots span{width:7px;height:7px;background:var(--text-muted);border-radius:50%;animation:bounce 1.2s infinite}.typing-dots span:nth-child(2){animation-delay:.2s}.typing-dots span:nth-child(3){animation-delay:.4s}@keyframes bounce{0%,60%,to{transform:translateY(0)}30%{transform:translateY(-6px)}}.chat-input-row{display:flex;gap:8px;align-items:flex-end}.chat-input-wrap{flex:1;display:flex;flex-direction:column;gap:6px}.image-preview-strip{display:flex;align-items:center;gap:8px;padding:6px 10px;background:var(--primary-bg);border-radius:var(--radius-sm)}.image-preview-strip img{width:44px;height:44px;object-fit:cover;border-radius:6px;border:1px solid var(--border)}.image-preview-name{font-size:.8rem;color:var(--primary);font-weight:500;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.remove-image-btn{background:none;border:none;color:var(--text-muted);font-size:1.1rem;padding:0 4px;line-height:1}.chat-textarea{width:100%;border:1.5px solid var(--border);border-radius:var(--radius-md);padding:10px 14px;font-size:.9rem;resize:none;outline:none;background:var(--surface);color:var(--text);min-height:44px;max-height:120px;line-height:1.5;transition:border-color .15s}.chat-textarea:focus{border-color:var(--primary)}.icon-btn{width:44px;height:44px;border-radius:var(--radius-md);border:1.5px solid var(--border);background:var(--surface);display:flex;align-items:center;justify-content:center;font-size:1.2rem;color:var(--text-muted);flex-shrink:0;transition:background .15s,border-color .15s}.icon-btn:hover:not(:disabled){background:var(--primary-bg);border-color:var(--primary);color:var(--primary)}.send-btn{width:44px;height:44px;border-radius:var(--radius-md);border:none;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.1rem;flex-shrink:0;transition:opacity .15s}.send-btn:disabled{opacity:.4;cursor:not-allowed}.inactive-page{display:flex;align-items:center;justify-content:center;min-height:100dvh;padding:24px}.inactive-card{text-align:center;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:40px 32px;max-width:360px;box-shadow:var(--shadow-md)}.inactive-icon{font-size:3rem;margin-bottom:16px}.inactive-card h2{font-size:1.25rem;font-weight:700;color:var(--text);margin-bottom:8px}.inactive-card p{color:var(--text-muted);font-size:.9rem}.empty-state-page{display:flex;align-items:center;justify-content:center;min-height:100dvh;padding:24px}.empty-state-card{text-align:center;max-width:320px}.logo-icon{font-size:64px;margin-bottom:16px}.empty-state-card h1{font-size:2rem;font-weight:800;color:var(--primary)}.empty-state-card p{margin-top:8px;color:var(--text-muted)}.empty-state-card .sub{font-size:.85rem;margin-top:4px}.skeleton{background:linear-gradient(90deg,var(--border) 25%,#eef4f0 50%,var(--border) 75%);background-size:200% 100%;animation:shimmer 1.4s infinite;border-radius:var(--radius-sm)}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-card{height:72px;border-radius:var(--radius-md);margin-bottom:8px}.error-banner{background:var(--danger-bg);color:var(--danger);border:1px solid rgba(214,64,69,.2);border-radius:var(--radius-md);padding:12px 16px;font-size:.875rem;margin-bottom:16px}@media (max-width: 480px){.profile-title{font-size:1.4rem}.chat-bubble{max-width:92%}}
