:root{--green:#06c755;--ink:#202824;--muted:#737c76;--line:#e6eae7;--paper:#f5f7f5;--soft:#eaf8ee;--danger:#b63b36;font-family:-apple-system,BlinkMacSystemFont,"PingFang TC","Noto Sans TC",sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:#eef0ed;font-size:14px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #177b42;outline-offset:3px}button{border:0;background:none}a{color:inherit;text-decoration:none}.workspace{min-height:100vh;display:flex}.review{width:280px;background:#fafbf9;border-right:1px solid #dde3dc;padding:32px 22px;flex-shrink:0}.brand{display:flex;gap:12px;align-items:center;margin-bottom:37px}.brand-mark{display:grid;place-items:center;background:var(--ink);color:white;font-size:23px;font-weight:800;width:38px;height:42px;border-radius:10px}.brand strong{font-size:18px;letter-spacing:1px}.brand strong span{display:block;font-size:10px;letter-spacing:1px;color:var(--muted);font-weight:400;margin-top:5px}.review-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.review h1{font-size:15px;margin:0}.pill{font-size:10px;padding:5px 8px;border:1px solid #dce3dc;border-radius:5px;color:#687169}.nav-group{margin:20px 10px 7px;font-size:10px;color:#8b948d;letter-spacing:1.5px}.nav-link{display:flex;align-items:center;gap:12px;border-radius:7px;padding:9px 11px;margin:2px 0;font-size:12px;color:#626b65}.nav-link span{font-size:10px;color:#9ba39d;font-variant-numeric:tabular-nums}.nav-link.active{color:#16663b;background:#e6f4e9;font-weight:600}.nav-link.active span{color:#27824c}.nav-link:hover{background:#edf0eb}.review-settings{border-top:1px solid var(--line);margin-top:24px;padding:18px 9px 0}.review-settings h2{font-size:12px;margin:0 0 12px}.review-settings label{font-size:11px;display:block;margin:10px 0 5px;color:var(--muted)}select{width:100%;background:white;border:1px solid #dce3dc;padding:9px;border-radius:6px;font-size:12px}.review-settings p{font-size:10px;color:#8a928c;line-height:1.9}.review-settings b{font-weight:500;color:#5b675e}.reset{font-size:11px;text-decoration:underline;padding:14px 0 0}.stage{flex:1;display:flex;align-items:center;flex-direction:column;padding:34px 28px 28px;position:sticky;top:0;align-self:flex-start}.stage-top,.stage-caption{width:390px;display:flex;justify-content:space-between;color:#7b847d;font-size:10px;letter-spacing:1.3px}.stage-top{margin-bottom:18px}.stage-caption{margin-top:18px;font-family:monospace}.phone{width:390px;height:844px;background:white;border-radius:42px;box-shadow:0 0 0 7px #202522,0 0 0 9px #9ba19b,0 22px 60px #33423626;position:relative;overflow:hidden;flex-shrink:0}.statusbar{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:relative;background:white;font-size:13px;z-index:2}.island{position:absolute;width:110px;height:28px;left:140px;top:10px;background:#171c19;border-radius:20px}.signals{font-size:12px;letter-spacing:1px}.signals span{font-size:19px;margin-left:5px}.home-indicator{position:absolute;width:126px;height:5px;bottom:8px;left:132px;background:#202824;border-radius:5px;pointer-events:none;z-index:10}#app{height:792px;display:flex;flex-direction:column}.topbar{height:54px;min-height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid var(--line);background:white}.topbar h1{font-size:16px;letter-spacing:.3px;margin:0}.icon-btn{width:38px;height:40px;display:grid;place-items:center}.icon{width:22px;height:22px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.storebar{padding:13px 22px;font-size:12px;display:flex;align-items:center;gap:8px;background:#fff;border-bottom:1px solid var(--line);color:#626e65}.storebar .icon{width:16px;height:16px}.page{padding:24px 22px;overflow-y:auto;flex:1;background:var(--paper);overscroll-behavior:contain;scrollbar-width:thin}.page.white{background:white}.page h2{font-size:25px;line-height:1.35;letter-spacing:-.7px;margin:0 0 22px;font-weight:650}.page h3{font-size:15px;margin:0 0 16px}.eyebrow{font-size:10px;letter-spacing:1.5px;color:var(--muted);margin-bottom:10px}.steps{display:flex;gap:7px;margin-bottom:26px}.steps span{flex:1;height:3px;background:#e5eae6;border-radius:3px}.steps .done{background:var(--green)}.footer{background:white;border-top:1px solid var(--line);padding:14px 22px 30px;flex-shrink:0;display:grid;gap:9px}.btn{border-radius:10px;min-height:48px;padding:13px 16px;font-weight:600;font-size:14px;width:100%;display:flex;justify-content:center;align-items:center;gap:9px}.primary{background:var(--green);color:#093b1e}.secondary{background:white;border:1px solid #d9e0da}.danger{color:var(--danger);background:#fcefed}.text-btn{font-size:12px;color:#58715f;padding:10px;min-height:40px}.field{display:block;font-size:13px;font-weight:600;margin-bottom:10px}.input{width:100%;height:54px;border:1px solid #dce2dc;border-radius:9px;padding:14px;font-size:20px;letter-spacing:3px;background:#fff}.input[aria-invalid=true]{border-color:var(--danger)}.error{font-size:12px;color:var(--danger);line-height:1.6;margin-top:12px}.info-card{background:white;border:1px solid var(--line);border-radius:13px;padding:20px;margin-bottom:14px}.row{display:flex;justify-content:space-between;align-items:center;gap:12px}.row+.row{margin-top:14px}.label{color:var(--muted);font-size:12px}.value{font-size:13px;font-weight:550}.store-name{font-size:18px;line-height:1.5;margin:9px 0 20px}.tag{display:inline-block;border-radius:5px;background:#ecf7ef;color:#377049;padding:5px 8px;font-size:10px;white-space:nowrap}.tag.gray{color:#707a73;background:#eef0ee}.tag.amber{color:#936219;background:#fff3d9}.date-card{display:block;width:100%;background:white;border:1px solid var(--line);padding:18px;border-radius:12px;margin-bottom:12px;text-align:left}.date-card:hover{border-color:#9fcfae}.date-big{font-size:24px;font-weight:650;letter-spacing:-1px}.weekday{font-size:13px;margin-left:10px;font-weight:400;letter-spacing:0}.date-card .deadline{margin-top:15px;font-size:11px;color:var(--muted)}.date-card .arrow{color:#9aa49d}.date-summary{display:flex;justify-content:space-between;align-items:center;background:white;margin:-24px -22px 20px;padding:17px 22px;border-bottom:1px solid var(--line)}.date-summary strong{font-size:16px}.date-summary small{display:block;color:var(--muted);font-size:10px;margin-top:7px}.filters{display:flex;gap:8px;margin-bottom:17px}.filter{padding:8px 14px;border-radius:7px;background:#e9ede9;font-size:12px;min-height:36px}.filter.active{background:var(--ink);color:white}.product{background:white;display:flex;align-items:center;padding:18px 13px;border:1px solid var(--line);border-radius:11px;margin-bottom:9px;gap:12px}.produce-icon{width:42px;height:42px;border-radius:10px;background:#f0f5ef;display:grid;place-items:center;flex-shrink:0;color:#6e896f}.produce-icon .icon{width:28px;height:28px}.product-info{flex:1;min-width:0}.product-name{font-size:14px;font-weight:600}.product-pack{font-size:10px;color:#90988f;margin-top:5px}.price{font-size:12px;margin-top:7px}.price span{color:#879086;font-size:10px}.stepper{display:flex;align-items:center;gap:3px}.stepper button{width:32px;height:36px;background:#f0f4ef;border-radius:6px;font-size:21px;color:#427047}.stepper output{width:24px;text-align:center;font-size:14px;font-variant-numeric:tabular-nums}.basket-total{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 4px;font-size:11px;color:var(--muted)}.basket-total strong{font-size:21px;color:var(--ink);font-variant-numeric:tabular-nums}.summary{background:white;border-radius:12px;border:1px solid var(--line);overflow:hidden;margin-bottom:14px}.summary-head{padding:17px;border-bottom:1px solid var(--line)}.summary-head .label{font-size:10px}.summary-head strong{display:block;font-size:15px;margin-top:7px}.order-line{display:grid;grid-template-columns:1fr auto auto;gap:13px;padding:16px 17px;border-bottom:1px solid #f0f2ef;align-items:center;font-size:12px}.order-line small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.line-qty{color:var(--muted)}.totals{padding:17px}.totals .row{font-size:12px}.totals .grand{padding-top:16px;border-top:1px solid var(--line);font-weight:650;font-size:15px}.grand strong{font-size:24px;letter-spacing:-.7px}.order-no{font-size:12px;letter-spacing:.25px;word-break:break-all}.result{padding-top:46px;text-align:center}.result-icon{margin:0 auto 23px;background:var(--soft);color:#149a47;width:72px;height:72px;display:grid;place-items:center;border-radius:50%}.result-icon .icon{width:33px;height:33px}.result h2{font-size:25px;margin-bottom:30px}.result .info-card{text-align:left}.result .error{margin:0 0 26px;color:#8c671f}.result-icon.amber{background:#fff2d8;color:#b48022}.result-icon.neutral{background:#e8ece8;color:#7b867e}.spinner{width:28px;height:28px;border:3px solid #d6eadd;border-top-color:#06c755;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.order-list-card{display:block;text-align:left;width:100%;border:1px solid var(--line);background:white;border-radius:13px;padding:19px;margin-bottom:13px}.order-list-card .date-big{font-size:22px}.order-list-card .order-no{font-size:10px;color:#8a948c;margin-top:17px}.order-list-card .amount{font-weight:650;font-size:18px}.reason{color:#8a7350;font-size:11px;text-align:center;margin:0 0 3px;line-height:1.5}.account-avatar{width:65px;height:65px;border-radius:22px;background:#e8f4eb;display:grid;place-items:center;margin:10px 0 24px;color:#318752}.account-avatar .icon{width:30px;height:30px}.account-row{width:100%;padding:18px 0;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:13px}.switch-card{display:flex;width:100%;text-align:left;align-items:center;justify-content:space-between;padding:22px 16px;background:#fff;border:1px solid var(--line);border-radius:11px;margin-bottom:12px;line-height:1.7}.switch-card small{font-size:11px;color:var(--muted)}.switch-card.selected{border:1px solid var(--green)}.chat-bg{background:#d9e2e7}.chat-body{flex:1;overflow:auto;padding:20px 17px}.chat-date{display:table;margin:0 auto 24px;background:#c4ced4;color:#fff;border-radius:20px;padding:5px 13px;font-size:10px}.chat-brand{display:flex;align-items:center;gap:9px;margin:20px 0 12px}.oa-avatar{background:#fff;width:33px;height:33px;border-radius:12px;display:grid;place-items:center;font-size:16px;font-weight:750;color:#27864c}.chat-brand span{font-size:11px;color:#61717b}.chat-bubble{background:white;border-radius:0 15px 15px 15px;margin-left:42px;padding:17px;font-size:13px;line-height:1.6}.chat-bubble .btn{margin-top:15px}.chat-time{font-size:9px;color:#7b8d97;margin:8px 0 0 44px}.menu-title{height:36px;background:white;border-bottom:1px solid #e3e8e3;font-size:11px;color:#79877c;display:flex;align-items:center;justify-content:center;gap:9px}.rich-menu{display:grid;grid-template-columns:1fr 1fr;aspect-ratio:2500/1686;background:#fff;flex-shrink:0}.rich-menu button{border-right:1px solid #e3ebe3;border-bottom:1px solid #e3ebe3;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;font-size:15px;font-weight:600}.rich-menu button:first-child{background:#ecf9ef;color:#16753b}.rich-menu .icon{width:30px;height:30px;stroke-width:1.5}.rich-menu.single{display:block;aspect-ratio:2500/843}.rich-menu.single button{width:100%;height:100%;font-size:17px}.chat-inputbar{height:58px;flex-shrink:0;background:white;display:flex;align-items:flex-start;padding:12px 21px 25px;gap:20px;font-size:13px;color:#65706a}.chat-inputbar .icon{width:20px;height:20px}.chat-inputbar span:last-child{margin-left:auto}.push{background:white;border-radius:14px;overflow:hidden;margin-left:42px}.push .push-head{padding:23px 19px 18px;border-top:4px solid var(--green)}.push h2{font-size:21px;margin:8px 0 19px}.push .row{font-size:12px}.push .order-no{font-size:10px}.push .push-footer{padding:0 18px 18px}.ai-page{background:#f1f4f0}.user-bubble{max-width:90%;padding:15px 18px;background:#d8f4dd;border-radius:15px 0 15px 15px;display:table;margin:0 0 25px auto;font-size:13px}.ai-label{font-size:10px;color:#728276;display:flex;align-items:center;gap:7px;margin:0 0 10px}.ai-label .icon{width:17px;height:17px}.ai-page .summary{margin-bottom:12px}.ai-page .summary-head{padding:15px}.ai-page .summary-head strong{font-size:14px}.ai-page .totals{padding:15px}.ai-actions{display:grid;gap:8px}.inline-done{background:white;border:1px solid #d8e8d9;border-radius:12px;padding:18px;font-size:13px;line-height:1.8}.inline-done .order-no{font-size:10px;color:var(--muted)}.empty{padding:60px 0;text-align:center;color:var(--muted)}@media(max-width:760px){.review{width:210px;padding:25px 13px}.stage{padding:28px 23px}.workspace{min-width:650px}}@media(prefers-reduced-motion:reduce){.spinner{animation:none}}
.review{height:100vh;overflow-y:auto;position:sticky;top:0;scrollbar-width:thin}
.push-chat .chat-body{padding-top:12px;padding-bottom:12px}.push-chat .chat-date{margin-bottom:12px}.push-chat .chat-brand{margin:10px 0}.push-chat .push-head{padding:16px 19px 14px}.push-chat .push h2{margin:6px 0 14px}.push-chat .push-footer{padding-bottom:14px}

/* Shared spacing: no inline styles, compatible with a self-only CSP. */
[hidden]{display:none!important}.detail-status{margin-bottom:14px}.detail-number{margin:-10px 0 20px}.chat-role{margin-top:9px}.binding-tax{margin-top:10px}.danger-text{color:var(--danger)}
.page,.chat-body{min-height:0}.storebar{flex-shrink:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* AI: question / answer / numbered sources, adapted from the search reference. */
.ai-surface{background:#eef8f1}.ai-surface .storebar{background:#f7fcf8}
.ai-thread{flex:1;min-height:0;overflow-y:auto;padding:0 20px 24px;overscroll-behavior:contain;scrollbar-width:thin}
.ai-welcome{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 0;color:#1d6b4a;gap:18px}.ai-welcome>.icon{width:38px;height:38px;stroke-width:1.3}.ai-welcome h2{font-size:28px;margin:0;font-weight:700;letter-spacing:1px}
.turn{padding:25px 0;border-bottom:1px solid #cfe5d6}.turn:last-child{border-bottom:0;padding-bottom:8px}.turn-question{font-size:19px;font-weight:650;line-height:1.55;margin:0 0 18px;overflow-wrap:anywhere;letter-spacing:-.4px}.answer-label{display:flex;align-items:center;gap:7px;font-size:11px;color:#467359;margin-bottom:10px}.answer-label .icon{width:17px;height:17px}.answer-label>span{margin-left:auto;color:#74897a;font-size:10px}
.turn-answer{white-space:pre-line;line-height:1.85;font-size:14px;overflow-wrap:anywhere;min-height:26px;color:#344c3e;margin-bottom:15px}.turn-answer.streaming::after{content:"";display:inline-block;width:6px;height:1em;vertical-align:-2px;margin-left:3px;background:#1d6b4a;animation:answer-blink 1s steps(2) infinite}@keyframes answer-blink{50%{opacity:0}}.turn-error{color:var(--danger)}
.ai-order-card .summary{margin-bottom:13px}.ai-order-card>.row{gap:6px}.ai-order-card>.row .value{font-size:11px}.ai-order-card .ai-actions,.ai-order-card .inline-done{margin-top:18px}.ai-order-card>.tag{margin-top:15px}.ai-order-card .summary-head{padding:15px}.ai-order-card .order-line{padding:15px}.ai-order-card .totals{padding:15px}.ai-order-card .inline-done{background:#fff}.ai-order-card .inline-done .icon{width:19px;height:19px;color:#209348}
.turn-sources{background:#fff;border:1px solid #cfe5d6;border-radius:12px;margin-top:18px;font-size:12px}.turn-sources>summary{padding:13px 15px;cursor:pointer;color:#476b54;font-weight:600}.turn-sources>summary span{margin-left:8px;font-weight:400;color:#849789}.turn-sources ol{list-style:none;margin:0;padding:0 14px 13px}.turn-sources li{display:flex;align-items:flex-start;gap:9px;padding:10px 0;border-top:1px solid #edf3ee}.turn-sources strong{font-size:11px;font-weight:600}.turn-sources small{display:block;margin-top:5px;font-size:10px;color:#76877b;line-height:1.7;overflow-wrap:anywhere}.cite{min-width:19px;line-height:19px;border-radius:10px;background:#d7eedf;color:#1d6b4a;font-size:10px;text-align:center;font-weight:700}
.ai-order-result{display:block;width:100%;text-align:left;background:white;border:1px solid #cfe5d6;border-radius:11px;padding:16px;margin:10px 0;font-size:13px}.ai-order-result .order-no{font-size:10px}.ai-order-result .row+.row{margin-top:16px}
.ai-composer{flex-shrink:0;border-top:1px solid #cfe5d6;background:#f7fcf8;padding:12px 16px 28px}.suggestions{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-bottom:10px}.suggestions button{white-space:nowrap;flex:none;border:1px solid #d2e5d8;border-radius:20px;background:#fff;color:#426e52;font-size:11px;padding:9px 12px;min-height:35px}.suggestions button:hover{border-color:#79ac8a}.ask-form{display:flex;align-items:center;width:100%;border:1px solid #b9dcc6;border-radius:28px;background:#fff;box-shadow:0 1px 4px #17201c08}.ask-form:focus-within{outline:2px solid #7cb48f;outline-offset:2px}.ask-form input{height:48px;min-width:0;flex:1;border:0;background:transparent;padding:0 7px 0 16px;font-size:16px;outline:0;color:var(--ink)}.ask-form input:focus-visible{outline:0}.ask-form input::placeholder{color:#87998c;font-size:13px}.ask-form button{flex:none;border-radius:24px;background:var(--green);color:#093b1e;min-width:54px;height:38px;margin:0 5px;padding:0 12px;font-weight:600;font-size:13px}.input-error{font-size:11px;color:var(--danger);line-height:1.5;margin-top:8px}.input-error:empty{display:none}
.screen-picker{display:none}.picker-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:14px 8px;position:sticky;top:0;background:#fafbf9;z-index:1}.picker-header h2{font-size:16px;margin:0}.picker-header button{padding:10px;font-size:13px;min-height:40px}.picker-header+nav{padding:6px 0 16px}#screen-dialog{border:1px solid #d3ded5;border-radius:18px;background:#fafbf9;width:min(360px,calc(100% - 32px));max-height:calc(var(--visible-height,100dvh) - 40px);padding:0 16px;overscroll-behavior:contain}#screen-dialog::backdrop{background:#13251bcc}

@media(max-width:500px){
 html,body{width:100%;height:100%;overflow:hidden;background:#fff;overscroll-behavior:none}
 .workspace{min-width:0;width:100%;height:100vh;height:var(--visible-height,100dvh);position:fixed;top:var(--visible-top,0px);left:0;display:block}
 .review,.stage-top,.stage-caption,.statusbar,.home-indicator{display:none}
 .stage{width:100%;height:100%;padding:0;display:block;position:static}
 .phone{width:100%;height:100%;border-radius:0;box-shadow:none;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
 #app{height:auto;min-height:0;flex:1;width:100%}
 .topbar{flex-shrink:0}.page{padding:22px 18px max(72px,calc(52px + env(safe-area-inset-bottom,0px)))}
 .footer{padding:12px 18px calc(62px + env(safe-area-inset-bottom,0px))}
 .date-summary{margin:-22px -18px 18px;padding:16px 18px}.storebar{padding:12px 18px}
 .chat-inputbar{height:calc(54px + env(safe-area-inset-bottom,0px));padding:12px 80px calc(18px + env(safe-area-inset-bottom,0px)) 18px}
 .chat-inputbar span:last-child{display:none}
 .ai-thread{padding:0 18px 20px}.ai-composer{padding:10px 76px max(12px,env(safe-area-inset-bottom,0px)) 14px}.suggestions{margin-right:-62px;padding-right:4px}
 .screen-picker{display:block;position:fixed;z-index:20;top:calc(var(--visible-top,0px) + var(--visible-height,100dvh) - 48px - max(12px,env(safe-area-inset-bottom,0px)));right:max(12px,env(safe-area-inset-right,0px));min-width:48px;height:44px;border:1px solid #d2ddd4;background:#fafcf9;color:#4b6353;border-radius:22px;font-size:11px;box-shadow:0 2px 8px #15291c0a}
 #screen-dialog{position:fixed;margin:0;left:50%;transform:translateX(-50%);top:calc(var(--visible-top,0px) + 12px);max-height:calc(var(--visible-height,100dvh) - 24px);padding-bottom:env(safe-area-inset-bottom,0px)}
 .product{padding:15px 10px;gap:9px}.stepper button{min-height:40px}.rich-menu{width:100%}
}
@media(max-width:500px) and (max-height:500px){.ai-welcome{padding:10px 0}.ai-welcome h2{font-size:22px}.ai-composer .suggestions{display:none}.storebar{padding-top:8px;padding-bottom:8px}}
@media(prefers-reduced-motion:reduce){.turn-answer.streaming::after{animation:none}}
