@font-face{font-family:Jua;src:url('/assets/jua.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Pretendard;src:url('/assets/pretendard.woff2') format('woff2'),url('/assets/pretendard.ttf') format('truetype');font-style:normal;font-weight:45 930;font-display:swap}
:root{
  --ink:#173d32;--muted:#607669;--accent:#23764d;--accent-pressed:#1c6240;
  --surface:#fff;--soft:#f4f8f2;--selected:#e5f3e3;--line:#dfe8df;--error:#a53f35;
  --radius-control:12px;--radius-panel:16px;--gutter:24px;
  --motion-fast:140ms;--motion-base:220ms;--motion-slow:300ms;--ease-out:cubic-bezier(.22,1,.36,1);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--soft);color:var(--ink);font-family:Pretendard,system-ui,sans-serif;font-size:15px;line-height:1.5;-webkit-text-size-adjust:100%}
button,input,textarea{font:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #79ba8a;outline-offset:3px}
button:disabled{cursor:not-allowed}
#app{min-height:100dvh;max-width:520px;margin:auto;background:var(--surface)}
.shell{min-height:100dvh;display:flex;flex-direction:column;background:var(--surface)}
.page{flex:1;min-width:0;padding:20px var(--gutter) calc(28px + env(safe-area-inset-bottom));overflow-wrap:anywhere}
.page h2{font:700 26px/1.3 Pretendard,system-ui,sans-serif;letter-spacing:-.025em;margin:0 0 16px;word-break:keep-all}
.page h3{font-size:17px;font-weight:650;line-height:1.45;margin:24px 0 12px;letter-spacing:-.015em}
.muted{color:var(--muted);line-height:1.55;font-size:13px}
.primary,.secondary,.chip{border:1px solid transparent;border-radius:var(--radius-control);min-height:48px;padding:11px 16px;line-height:1.5;font-weight:600;transition:background-color var(--motion-fast) ease,color var(--motion-fast) ease,border-color var(--motion-fast) ease,transform var(--motion-fast) var(--ease-out)}
.primary:not(:disabled):active,.secondary:not(:disabled):active,.chip:not(:disabled):active{transform:scale(.985)}
.primary{min-height:52px;background:var(--accent);color:#fff;font-weight:650;box-shadow:none}
.primary:not(:disabled):active{background:var(--accent-pressed)}
.primary:disabled{background:#e1e9e1;color:#63756a;box-shadow:none}
.primary.recommendation-loading:disabled{background:#e5f2e1;color:#285d40;cursor:progress}
.secondary{background:#f3f7f1;border-color:transparent;color:var(--ink)}
.secondary:not(:disabled):active{background:#e8f1e5}
.secondary:disabled{color:#7a897e;background:#f3f5f1}
.wide{width:100%}
.chip{background:#f6f9f4;border-color:var(--line);color:#244b3b;font-weight:450}
.chip.selected{background:var(--selected);border-color:#5b9d6b;color:#1c6240;font-weight:650}
.chip:not(:disabled):active{background:#e8f2e4}
.bar{display:flex;align-items:center;gap:12px;padding:calc(12px + env(safe-area-inset-top)) var(--gutter) 12px;min-height:64px}
.bar h1{font-size:19px;font-weight:650;line-height:1.4;letter-spacing:-.02em;margin:0;flex:1;text-align:center}
.bar button{background:none;border:0;font-size:28px;color:var(--ink);padding:0 8px;min-width:40px;min-height:40px}
.bar .end{width:40px}
.brand{font:400 24px/1.2 Jua,sans-serif}
.logo{font:400 36px/1.2 Jua,sans-serif;position:relative;display:inline-flex;align-items:baseline;padding-top:17px}
.logo .stem{position:relative}
.logo .stem:before{content:'';position:absolute;width:6px;height:6px;border-radius:50%;background:#65c37d;top:-1px;left:50%;transform:translateX(-50%)}
.logo .stem:after{content:'';position:absolute;width:25px;height:21px;left:58%;top:-15px;background:url('/assets/leaf.svg') center/contain no-repeat}
.subbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px var(--gutter) 12px;color:var(--muted);font-size:13px}
.subbar>strong{min-width:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.subbar button{background:none;border:0;color:var(--muted);min-height:40px;padding:8px}
.subbar-actions{display:flex;align-items:center;flex-shrink:0;gap:2px}
.subbar-actions button{white-space:nowrap}
.subbar-actions button[aria-expanded=true]{color:#236c43;font-weight:650;background:#edf7e9;border-radius:10px}
.welcome{background:#fff url('/assets/waves.svg') no-repeat center bottom / 100% auto;text-align:center;min-height:100dvh;display:flex;flex-direction:column;align-items:center;padding:calc(42px + env(safe-area-inset-top)) 28px calc(28px + env(safe-area-inset-bottom))}
.welcome h1{font-size:18px;font-weight:600;line-height:1.5;color:var(--accent);margin:16px 0 0;letter-spacing:-.02em}
.welcome .robot{width:min(90%,330px);object-fit:contain;flex:1;min-height:0;margin:32px 0 20px}
.hero{display:flex;align-items:center;gap:12px;margin:20px 0 28px}
.hero img{width:95px}
.hero h2{margin:0;font-size:26px}
.search{display:flex;gap:8px}
.field,input[type=number],input[type=text],textarea{border:1px solid var(--line);border-radius:var(--radius-control);background:#f8faf7;color:var(--ink);min-height:52px;padding:12px 14px;width:100%;font-size:16px}
.field::placeholder,input::placeholder,textarea::placeholder{color:#7c8b81}
.search input{flex:1;min-width:0}
.search button{flex-shrink:0}
.stores{margin:12px -4px}
.store{display:flex;align-items:center;text-align:left;gap:12px;border:0;border-bottom:1px solid var(--line);background:#fff;padding:16px 4px;width:100%;color:var(--ink)}
.store:active{background:#f2f7f1}
.store-badge{flex-shrink:0;border-radius:10px;background:#f0f7ef;padding:12px;font-size:12px;min-width:50px;text-align:center;font-weight:650}
.store strong{display:block;font-size:16px;font-weight:650}
.store span{display:block;color:var(--muted);font-size:13px;margin-top:5px}
.store .distance{margin-left:auto;white-space:nowrap}
.progress{display:flex;justify-content:flex-start;gap:10px;margin:20px 0 28px}
.progress span{display:grid;place-items:center;background:#eef3ef;color:#718477;border-radius:50%;width:32px;height:32px;font-weight:600}
.progress .on{background:#e2f3e3;color:var(--accent)}
.progress .current{background:var(--accent);color:#fff}
.label{display:block;font-weight:600;font-size:14px;margin:18px 0 8px}
.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.notice{padding:12px 14px;border-radius:var(--radius-control);background:#f3f8f2;color:#536c5c;font-size:14px;line-height:1.55}
.error{color:var(--error);margin:12px 0;line-height:1.55}
.footer{padding:12px var(--gutter) calc(20px + env(safe-area-inset-bottom));background:#fff}
.footer button+button{margin-top:8px}
.chat .page{padding-bottom:16px}
.chat .subbar{border-bottom:1px solid #edf2eb}
.bubble-row{display:flex;gap:10px;margin:16px 0;align-items:flex-start}
.avatar{width:36px;height:36px;border-radius:50%;object-fit:contain;background:#edf7e9;flex-shrink:0}
.bubble{padding:12px 15px;border-radius:18px;background:#f3f5f6;font-size:15px;line-height:1.6;white-space:pre-wrap;min-width:0}
.bubble.user{margin-left:auto;background:#e6f3e1;max-width:88%}
.chat-form{position:sticky;bottom:0;z-index:2;display:flex;align-items:flex-end;gap:8px;padding:10px 20px calc(12px + env(safe-area-inset-bottom));background:#f5f9f2;border-top:1px solid #e2ebe0}
.chat-form textarea{resize:none;height:52px;min-height:52px;max-height:100px;min-width:0;flex:1;background:#fff}
.chat-form button{flex:0 0 80px;min-width:80px;min-height:52px;padding:11px 12px;white-space:nowrap}
.chat-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.chat .chat-actions{padding-left:46px}
.chat-actions button{flex:1}
.chat .chat-wait{align-items:center}
.chat-actions.budget-resolution-actions{display:grid;grid-template-columns:1fr}
.budget-resolution-actions>button{text-align:left;white-space:normal;word-break:keep-all;line-height:1.5}
.recommendation-status{padding:16px;background:#f3f8ef;border-radius:var(--radius-panel)}
.recommendation-status .primary{margin-top:12px}
.summary-list{border-top:1px solid var(--line)}
.summary-row{padding:14px 0;border-bottom:1px solid var(--line);line-height:1.55}
.summary-row strong{display:block;font-size:13px;color:var(--muted);margin-bottom:4px}
.current-conditions{margin:4px 20px 8px;padding:16px;border:1px solid var(--line);border-radius:var(--radius-panel);background:#f7faf4}
.current-conditions-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.current-conditions-heading h2{margin:0;font-size:17px;font-weight:650}
.current-conditions-heading button{border:0;background:transparent;color:#54725b;min-height:40px;padding:6px}
.current-conditions dl{margin:8px 0 0}
.current-conditions dl>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;padding:9px 0;border-top:1px solid var(--line);font-size:14px;line-height:1.5}
.current-conditions dt{color:var(--muted)}
.current-conditions dd{margin:0;overflow-wrap:anywhere}
.current-conditions>.muted{margin-bottom:0}
.result-hero{text-align:center}
.result-hero h2{font-size:26px}
.photos{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:24px 0}
.photo{width:110px;height:110px;object-fit:contain;background:#f5f9f4;border-radius:12px}
.total{font:700 28px/1.3 Pretendard,system-ui,sans-serif;color:var(--accent);text-align:center;font-variant-numeric:tabular-nums}
.nutrition{text-align:center;color:var(--muted);margin:12px 0 24px}
.box{padding:16px;background:#f4faf2;border:1px solid var(--line);border-radius:var(--radius-panel);margin:14px 0}
.box h3{margin:0 0 8px}
.product{padding:8px 0;border-bottom:1px solid var(--line)}
.product:last-child{border:0}
.stack>*+*{margin-top:10px}
.hidden{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
