:root{--bg:#f5f7fb;--surface:#fff;--ink:#18172a;--muted:#747184;--line:#e4e1ee;--violet:#6652f1;--violet-dark:#4736c8;--orange:#f59d23;--teal:#1c9aaa;--green:#35a56d;--shadow:0 22px 70px #1f223624;color:var(--ink);background:var(--bg);font-synthesis:none;letter-spacing:0;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,Pretendard,-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}*{box-sizing:border-box}html{background:var(--bg)}body{min-width:320px;min-height:100svh;margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}#root{min-height:100svh}.app-shell{grid-template-columns:minmax(260px,360px) minmax(360px,480px);justify-content:center;align-items:start;gap:24px;min-height:100svh;padding:24px;display:grid}.brand-panel{min-height:calc(100svh - 48px);color:var(--ink);flex-direction:column;gap:22px;padding:28px;display:flex;position:sticky;top:24px}.brand-lockup{grid-template-columns:52px 1fr;align-items:start;gap:14px;display:grid}.logo-mark{background:var(--violet);color:#fff;border-radius:8px;place-items:center;width:52px;height:52px;font-weight:800;display:grid;position:relative}.logo-mark:after{content:"";background:var(--orange);border-radius:50%;width:9px;height:9px;position:absolute;bottom:9px;right:9px}.eyebrow{color:var(--violet-dark);margin:0 0 7px;font-size:12px;font-weight:800}.brand-panel h1{color:var(--ink);letter-spacing:0;margin:0;font-size:32px;line-height:1.18}.brand-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.brand-summary div{border:1px solid var(--line);background:#ffffffb8;border-radius:8px;flex-direction:column;gap:4px;padding:16px;display:flex}.brand-summary strong{color:var(--ink);font-size:28px;line-height:1}.brand-summary span,.launch-list{color:var(--muted);font-size:14px}.launch-list{gap:11px;margin:0;padding:0;list-style:none;display:grid}.launch-list li{align-items:center;gap:10px;display:flex}.launch-list svg{color:var(--violet);flex:none}.app-surface{border:1px solid var(--line);background:var(--surface);width:100%;min-height:calc(100svh - 48px);max-height:calc(100svh - 48px);box-shadow:var(--shadow);border-radius:8px;flex-direction:column;display:flex;overflow:hidden}.app-header{border-bottom:1px solid var(--line);background:#ffffffeb;justify-content:space-between;align-items:center;gap:14px;padding:20px 18px 14px;display:flex}.app-header h2{color:var(--ink);letter-spacing:0;margin:0;font-size:22px;line-height:1.15}.header-actions{gap:8px;display:flex}.icon-button,.camera-button{border:1px solid var(--line);color:var(--ink);background:#fff;border-radius:8px;place-items:center;display:inline-grid}.icon-button{width:42px;height:42px}.icon-button[aria-pressed=true]{color:var(--violet-dark);background:#f0edff;border-color:#6652f157}.app-content{background:linear-gradient(#fbfbfe,#f5f7fb);flex:auto;padding:18px 18px 92px;overflow-y:auto}.view-stack{gap:14px;display:grid}.hero-panel,.capture-panel,.panel,.insight-band,.notice-panel{border:1px solid var(--line);background:var(--surface);border-radius:8px}.hero-panel{background:linear-gradient(135deg,#6652f117,#1c9aaa14),#fff;grid-template-columns:1fr 96px;align-items:center;gap:16px;padding:18px;display:grid}.hero-copy{min-width:0}.status-pill{width:fit-content;color:var(--violet-dark);background:#edeafd;border-radius:8px;align-items:center;gap:6px;padding:7px 9px;font-size:12px;font-weight:800;display:inline-flex}.hero-panel h3,.capture-panel h3,.coach-head h3{color:var(--ink);letter-spacing:0;margin:14px 0 8px;font-size:24px;line-height:1.18}.hero-panel p,.coach-copy,.notice-panel p,.insight-band p,.insight-list p,.meal-card p{color:var(--muted);margin:0;font-size:14px;line-height:1.55}.score-ring{background:radial-gradient(circle at center, #fff 55%, transparent 56%), conic-gradient(var(--violet) 0 86%, #dedaf9 86% 100%);width:96px;height:96px;color:var(--ink);border-radius:50%;align-content:center;place-items:center;display:grid}.score-ring strong{font-size:30px;line-height:1}.score-ring span{color:var(--muted);font-size:12px;font-weight:800}.panel{padding:16px}.panel-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.panel-header>div{align-items:center;gap:8px;min-width:0;display:flex}.panel-header svg{color:var(--violet);flex:none}.panel-header h3{color:var(--ink);letter-spacing:0;margin:0;font-size:17px;line-height:1.25}.panel-header button{min-height:34px;color:var(--violet-dark);background:#f0edff;border:0;border-radius:8px;align-items:center;gap:2px;font-size:13px;font-weight:800;display:inline-flex}.glucose-chart{gap:8px;display:grid}.glucose-chart svg{background:linear-gradient(#6652f114,#35a56d0f),#fbfbff;border-radius:8px;width:100%;height:168px;overflow:visible}.chart-grid{stroke:#7370813d;stroke-dasharray:2 3}.chart-line{fill:none;stroke:var(--violet);stroke-linecap:round;stroke-linejoin:round;stroke-width:4px;vector-effect:non-scaling-stroke}.chart-fill{fill:#6652f11a;stroke:none}.chart-labels{color:var(--muted);text-align:center;grid-template-columns:repeat(8,1fr);font-size:11px;display:grid}.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px;display:grid}.metric{border:1px solid var(--line);background:#fff;border-radius:8px;align-content:center;gap:2px;min-height:76px;padding:12px;display:grid}.metric span,.metric small,.meal-time{color:var(--muted);font-size:12px}.metric strong{color:var(--ink);font-size:23px;line-height:1}.mission-progress{color:var(--muted);gap:7px;margin-bottom:12px;font-size:13px;font-weight:800;display:grid}.mission-progress div{background:#eceaf4;border-radius:8px;height:8px;overflow:hidden}.mission-progress i{background:var(--green);border-radius:8px;height:100%;display:block}.mission-list,.meal-list,.journey-list,.insight-list{gap:10px;display:grid}.mission-row,.meal-card,.journey-row,.insight-list article,.profile-row,.toggle-row{border:1px solid var(--line);background:#fff;border-radius:8px}.mission-row{width:100%;min-height:70px;color:var(--ink);text-align:left;grid-template-columns:38px minmax(0,1fr) 28px;align-items:center;gap:10px;padding:10px;display:grid}.mission-row.done{background:#f4fbf7;border-color:#35a56d61}.mission-icon,.check-dot{border-radius:8px;place-items:center;display:grid}.mission-icon{width:38px;height:38px;color:var(--violet);background:#f0edff}.mission-row strong,.meal-card h4,.insight-list strong,.profile-row strong,.toggle-row strong,.journey-row strong,.insight-band strong{color:var(--ink);font-size:14px;line-height:1.35}.mission-row small,.toggle-row small,.journey-row small{color:var(--muted);font-size:12px;line-height:1.4;display:block}.check-dot{width:28px;height:28px;color:var(--green);background:#e9f7ef}.meal-card{grid-template-columns:42px minmax(0,1fr);align-items:start;gap:12px;padding:12px;display:grid}.grade-badge{color:#fff;border-radius:8px;place-items:center;width:42px;height:42px;font-size:20px;font-weight:900;display:grid}.grade-badge.green{background:var(--green)}.grade-badge.violet{background:var(--violet)}.grade-badge.orange{background:var(--orange)}.meal-card h4{margin:2px 0 4px;font-size:15px}.tag-row{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.tag-row span{color:var(--muted);background:#f4f3fa;border-radius:8px;padding:5px 7px;font-size:11px;font-weight:800}.insight-band{background:#101525;grid-template-columns:1fr 86px;align-items:center;gap:12px;padding:14px;display:grid}.insight-band div{grid-template-columns:20px 1fr;gap:4px 8px;display:grid}.insight-band svg{color:var(--orange);grid-row:span 2}.insight-band strong,.insight-band p{color:#fff}.insight-band p{opacity:.78}.insight-band button,.primary-action{background:var(--orange);color:#1b1300;border:0;border-radius:8px;justify-content:center;align-items:center;gap:7px;min-height:44px;font-weight:900;display:inline-flex}.secondary-action{border:1px solid var(--line);width:100%;min-height:42px;color:var(--muted);background:#fff;border-radius:8px;justify-content:center;align-items:center;margin-top:8px;font-weight:900;display:inline-flex}.capture-panel{background:linear-gradient(135deg,#f59d2329,#1c9aaa17),#fff;justify-content:space-between;align-items:center;gap:14px;padding:18px;display:flex}.capture-panel h3{margin:0}.camera-button{background:var(--violet);color:#fff;width:60px;height:60px}.quick-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.quick-grid button{border:1px solid var(--line);min-height:72px;color:var(--ink);background:#fff;border-radius:8px;place-items:center;gap:6px;font-size:13px;font-weight:800;display:grid}.quick-grid svg{color:var(--teal)}.chip-grid{flex-wrap:wrap;gap:8px;display:flex}.chip-grid button{border:1px solid var(--line);min-height:38px;color:var(--muted);background:#fff;border-radius:8px;font-weight:800}.chip-grid button.selected{border-color:var(--violet);color:var(--violet-dark);background:#f0edff}textarea{resize:vertical;border:1px solid var(--line);width:100%;color:var(--ink);background:#fff;border-radius:8px;padding:12px}.saved-status{color:var(--green);margin:8px 0 0;font-size:12px;font-weight:800}textarea:focus,button:focus-visible,input:focus-visible{outline-offset:2px;outline:3px solid #6652f138}.primary-action{background:var(--violet);color:#fff;width:100%;margin-top:10px}.coach-head{grid-template-columns:46px minmax(0,1fr);align-items:center;gap:12px;margin-bottom:10px;display:grid}.coach-avatar{width:46px;height:46px;color:var(--green);background:#e9f7ef;border-radius:8px;place-items:center;display:grid}.coach-head h3{margin:0;font-size:20px}.coach-copy{margin-bottom:14px}.segmented{background:#f1f0f7;border-radius:8px;grid-template-columns:repeat(2,1fr);gap:4px;padding:4px;display:grid}.segmented button{min-height:36px;color:var(--muted);background:0 0;border:0;border-radius:6px;font-weight:900}.segmented button.active{color:var(--violet-dark);background:#fff;box-shadow:0 2px 8px #1f223614}.journey-row{grid-template-columns:34px minmax(0,1fr) 62px;align-items:center;gap:8px;min-height:52px;padding:10px;display:grid}.journey-row span{width:28px;height:28px;color:var(--violet-dark);background:#f0edff;border-radius:8px;place-items:center;font-size:12px;font-weight:900;display:grid}.journey-row small{text-align:right}.insight-list article{grid-template-columns:32px minmax(0,1fr);gap:10px;padding:12px;display:grid}.insight-list svg{color:var(--teal)}.profile-row{justify-content:space-between;align-items:center;gap:12px;min-height:48px;padding:10px 12px;display:flex}.profile-row+.profile-row{margin-top:8px}.profile-row span{color:var(--muted);font-size:13px;font-weight:800}.profile-row strong{text-align:right}.toggle-row{grid-template-columns:minmax(0,1fr) 48px;align-items:center;gap:12px;min-height:66px;padding:12px;display:grid}.toggle-row+.toggle-row{margin-top:8px}.toggle-row input{width:46px;height:26px;accent-color:var(--violet);margin:0}.policy-link{border:1px solid var(--line);width:100%;min-height:68px;color:var(--ink);text-align:left;background:#fff;border-radius:8px;grid-template-columns:minmax(0,1fr) 24px;align-items:center;gap:12px;padding:12px;text-decoration:none;display:grid}.policy-link+.policy-link{margin-top:8px}.policy-link strong,.policy-link small{display:block}.policy-link small{color:var(--muted);margin-top:3px;font-size:12px;line-height:1.4}.policy-link svg{color:var(--violet)}.notice-panel{background:#fff7e8;grid-template-columns:24px minmax(0,1fr);gap:8px;padding:14px;display:grid}.notice-panel svg{color:var(--orange)}.policy-page{background:var(--bg);min-height:100svh;padding:28px}.policy-card{border:1px solid var(--line);width:min(760px,100%);box-shadow:var(--shadow);background:#fff;border-radius:8px;margin:0 auto;padding:28px}.policy-back{border:1px solid var(--line);min-height:40px;color:var(--violet-dark);background:#fff;border-radius:8px;margin-bottom:22px;font-weight:900}.policy-card h1{color:var(--ink);letter-spacing:0;margin:0;font-size:30px;line-height:1.2}.policy-updated{color:var(--muted);margin:10px 0 24px;font-size:13px;font-weight:800}.policy-card section+section{margin-top:22px}.policy-card h2{color:var(--ink);letter-spacing:0;margin:0 0 8px;font-size:18px;line-height:1.3}.policy-card p{color:var(--muted);margin:0;font-size:15px;line-height:1.7}.policy-card p+p{margin-top:10px}.bottom-nav{padding:8px 10px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fffffff5;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;display:grid}.nav-button{min-width:0;min-height:56px;color:var(--muted);background:0 0;border:0;border-radius:8px;place-items:center;gap:3px;font-size:11px;font-weight:900;display:grid}.nav-button.active{color:var(--violet-dark);background:#f0edff}@media (width<=900px){.app-shell{padding:0;display:block}.brand-panel{display:none}.app-surface{min-height:100svh;max-height:none;box-shadow:none;border:0;border-radius:0}.app-header{padding-top:calc(16px + env(safe-area-inset-top))}}@media (width<=390px){.app-content{padding-left:14px;padding-right:14px}.hero-panel{grid-template-columns:1fr}.score-ring{justify-self:start}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-grid{grid-template-columns:1fr}.policy-page{padding:0}.policy-card{min-height:100svh;box-shadow:none;border:0;border-radius:0}}
