:root{--green:#173f35;--green2:#246b53;--cream:#f5f7f2;--ink:#1c2925;--line:#dce5de;--muted:#62726a;--orange:#f4b544}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.5}a{color:var(--green2)}button,input,textarea,select{font:inherit}button{border:1px solid #b8c9bf;border-radius:10px;background:white;color:var(--green);padding:10px 14px;cursor:pointer;font-weight:650}button:hover{filter:brightness(.97)}button:disabled{opacity:.5;cursor:not-allowed}input,textarea,select{width:100%;padding:11px;border:1px solid #bdcbc2;border-radius:9px;background:white;color:var(--ink);margin-top:5px}label{display:block;font-weight:650;margin:10px 0}.hero,.topbar{display:flex;gap:16px;align-items:center;background:var(--green);color:white;padding:22px max(18px,calc((100vw - 1000px)/2));}.hero{justify-content:space-between}.hero h1,.topbar h1{margin:0;font-size:clamp(1.5rem,4vw,2.2rem)}.hero p,.topbar p{margin:5px 0}.topbar{padding:16px max(16px,calc((100vw - 900px)/2))}.topbar img{width:65px;height:75px;object-fit:contain}.topbar .home{color:white;align-self:flex-start;white-space:nowrap}.eyebrow{font-size:.75rem;letter-spacing:.12em;font-weight:800;opacity:.8;margin:0 0 4px}.pill{background:var(--orange);color:#30270f;padding:5px 12px;border-radius:20px;font-weight:800;white-space:nowrap}main{max-width:960px;margin:20px auto;padding:0 14px}.notice,.panel{background:white;border:1px solid var(--line);border-radius:16px;padding:18px;margin:14px 0;box-shadow:0 2px 9px #173f3508}.notice{border-left:5px solid var(--orange)}.notice p{margin:4px 0 0}.role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.role-card{display:block;position:relative;text-decoration:none;color:var(--ink);background:white;border:1px solid var(--line);border-radius:18px;padding:16px;min-width:0;transition:transform .15s}.role-card:hover{transform:translateY(-2px)}.role-card img{display:block;width:100%;height:110px;object-fit:contain}.role-letter{position:absolute;right:14px;top:12px;background:var(--green);color:white;border-radius:12px;padding:3px 10px;font-weight:900;font-size:1.3rem}.role-card h2{margin:8px 0 2px}.role-card p{color:var(--muted);font-size:.92rem}.open-link{font-weight:800;color:var(--green2)}.panel h2{font-size:1.2rem;margin:0 0 12px}.panel h3{margin:0}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:10px}.sectionhead h2{margin:0}.voice-row{display:flex;align-items:stretch;gap:8px}.voice-row textarea{flex:1;min-width:0}.mic{min-width:88px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check{display:flex;align-items:center;gap:9px}.check input{width:auto;margin:0}.gps-row{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.primary{background:var(--green2);color:white;border-color:var(--green2);width:100%;margin-top:12px;padding:13px}.danger{background:#fff0ee;color:#9e2f22;border-color:#e6b7b1}.hint,.status{color:var(--muted);font-size:.9rem}.status{display:block;margin-top:8px}.stack{display:grid;gap:10px;margin-top:12px}.item{border:1px solid var(--line);border-radius:12px;padding:13px;background:#fbfdfb}.item h3{margin:0 0 5px;font-size:1.05rem}.item p{margin:5px 0}.item-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.empty{padding:14px;color:var(--muted);background:#f7faf7;border-radius:10px}.store-image{width:100%;max-height:220px;object-fit:cover;border-radius:12px;margin:8px 0}.distance{font-weight:800;color:var(--green2)}footer{text-align:center;color:var(--muted);padding:20px}.hidden,[hidden]{display:none!important}@media(max-width:680px){.role-grid{grid-template-columns:1fr}.role-card{display:grid;grid-template-columns:80px 1fr;column-gap:12px}.role-card img{grid-row:span 3;width:80px;height:100px}.role-card .role-letter{right:10px;top:10px}.role-card h2,.role-card p,.role-card .open-link{grid-column:2}.role-card p{margin:0 0 8px}.grid2{grid-template-columns:1fr}.topbar{align-items:flex-start}.topbar img{width:52px;height:65px}.hero{align-items:flex-start}.panel{padding:14px}}

.error{color:#9e2f22!important}
.badge{display:inline-block;background:var(--orange);color:#30270f;border-radius:8px;padding:1px 8px;font-size:.72rem;font-weight:800;vertical-align:middle}
.item.chosen{border-color:var(--green2);background:#eef8f2}
.track{margin-top:10px;padding:10px 12px;border-left:4px solid var(--green2);background:#f2f8f4;border-radius:8px}
.timeline{margin:6px 0 0;padding-left:20px}
.toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);max-width:min(92vw,560px);background:var(--green);color:#fff;padding:12px 18px;border-radius:12px;box-shadow:0 6px 24px #0004;z-index:50;font-weight:650}
.toast.error{background:#9e2f22;color:#fff!important}
select{width:100%;padding:11px;border:1px solid #bdcbc2;border-radius:9px;background:#fff;margin-top:5px}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--orange);outline-offset:2px}

.alert-overlay{position:fixed;inset:0 0 auto 0;z-index:100;background:#9e2f22;color:#fff;font-weight:800;font-size:1.15rem;text-align:center;padding:18px 14px;box-shadow:0 6px 24px #0006}
.evidence{margin-top:8px;padding:10px 12px;border-left:4px solid var(--orange);background:#fffaf0;border-radius:8px}
.evidence img{display:block;max-width:100%;max-height:260px;border-radius:10px;margin:6px 0}
.evidence-form{margin-top:10px;padding:10px 12px;border:1px dashed #b8c9bf;border-radius:10px}

.chat{margin-top:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#f7faf7}
.msg{margin:4px 0}.msg.mine{text-align:right;color:var(--green2)}
.chat-send{display:flex;gap:8px;margin-top:8px}.chat-send input{margin:0;flex:1;min-width:0}
.review{margin-top:8px;padding:10px 12px;border-left:4px solid var(--green2);background:#eef8f2;border-radius:8px}.stars{color:#c98a00;letter-spacing:2px}

.ok{color:#1f6b45;font-weight:700}

/* ===== 0.10.2 บล็อกไล่สีตามลำดับการทำงาน (อ่อน -> เข้ม) B เขียว / U น้ำตาลทอง / Y ฟ้า-น้ำเงิน ===== */
.blk{position:relative;border-left-width:8px;padding-top:26px}
.blk::before{content:"บล็อก " attr(data-blk);position:absolute;top:-12px;left:14px;color:#fff;font-weight:800;font-size:.8rem;padding:2px 12px;border-radius:12px}
.blk h2,.blk h3{color:#1c2925}
.blk .item{background:#ffffffcc}
body[data-role="B"] .topbar{background:#173f35}
body[data-role="B"] .blk1{background:#edf9f0;border-color:#5fb87d}body[data-role="B"] .blk1::before{background:#5fb87d}
body[data-role="B"] .blk2{background:#cdeed8;border-color:#3a9a5c}body[data-role="B"] .blk2::before{background:#3a9a5c}
body[data-role="B"] .blk3{background:#9fd9b4;border-color:#1d7a40}body[data-role="B"] .blk3::before{background:#1d7a40}
body[data-role="B"] .primary{background:#1d7a40;border-color:#1d7a40}
body[data-role="U"] .topbar{background:#5c4010}
body[data-role="U"] .blk1{background:#fbf3dc;border-color:#c9962f}body[data-role="U"] .blk1::before{background:#c9962f}
body[data-role="U"] .blk2{background:#f1dfa6;border-color:#a87a1e}body[data-role="U"] .blk2::before{background:#a87a1e}
body[data-role="U"] .blk3{background:#e0c070;border-color:#7a5412}body[data-role="U"] .blk3::before{background:#7a5412}
body[data-role="U"] .primary{background:#7a5412;border-color:#7a5412}
body[data-role="Y"] .topbar{background:#0f2f73}
body[data-role="Y"] .blk1{background:#e6f4fe;border-color:#4aa3e8}body[data-role="Y"] .blk1::before{background:#4aa3e8}
body[data-role="Y"] .blk2{background:#bfe0fb;border-color:#2a74c9}body[data-role="Y"] .blk2::before{background:#2a74c9}
body[data-role="Y"] .blk3{background:#86bdf0;border-color:#143f8f}body[data-role="Y"] .blk3::before{background:#143f8f}
body[data-role="Y"] .primary{background:#143f8f;border-color:#143f8f}
@media(prefers-contrast:more){.blk::before{outline:2px solid #000}}


/* Compact, accessible expandable settings shared by B / U / Y. */
.settings-fold { border: 1px solid #d8e4dc; border-radius: 12px; overflow: hidden; background: #fff; }
.settings-fold > summary { cursor: pointer; list-style-position: inside; padding: 13px 14px; font-weight: 700; color: #244b3c; background: #f5f8f5; }
.settings-fold > summary:focus-visible { outline: 3px solid #3b82f6; outline-offset: -3px; }
.settings-fold[open] > summary { border-bottom: 1px solid #d8e4dc; }
.settings-fold-body { display: grid; gap: 12px; padding: 12px; }
.settings-fold-body > label { margin: 0; }
.settings-fold-body .hint { margin: 0; }


/* BUY 1.5.8 — local-only QR/payment prototype */
.payment-panel{margin-top:1rem;padding:1rem;border:1px solid #e0b45d;border-radius:14px;background:#fffaf0}.payment-panel h3{margin-top:0}.payment-qr{margin-top:1rem;padding:.8rem;border:1px dashed #b88b37;border-radius:12px;background:#fff}.qr-image{max-width:min(100%,360px);max-height:420px;object-fit:contain;background:#fff}.settings-collapse{margin:.8rem 0;padding:.8rem;border:1px solid #d6e2d9;border-radius:12px;background:#f8fbf8}.settings-collapse>summary{cursor:pointer;font-weight:700}.settings-collapse[open]>summary{margin-bottom:.8rem}.item img.store-image{max-height:240px;object-fit:contain}

.done-item{margin:.6rem 0;border:1px solid #cfd8cf;border-radius:12px;background:#f4f8f4}.done-item>summary{display:flex;justify-content:space-between;align-items:center;gap:.6rem;padding:.6rem .8rem;cursor:pointer;font-weight:600}.done-item[open]>summary{border-bottom:1px solid #cfd8cf}.done-item>.item{margin:.6rem}.del-x{flex:none;width:2.2rem;height:2.2rem;padding:0;border-radius:50%;border:1px solid #c0392b;background:#fff;color:#c0392b;font-weight:700;cursor:pointer}

.contacts{margin-top:10px;padding:10px 12px;border-left:4px solid #1d7a40;background:#f1f8f3;border-radius:8px}.contacts ul{margin:6px 0 0;padding-left:18px}.contacts a{font-weight:700}

.contacts .addr{font-size:.92rem;color:#35503f}

.profile{margin:8px 0;border:1px solid #c9d9cf;border-radius:10px;padding:8px 12px;background:#fbfdfb}
.profile>summary{cursor:pointer;font-weight:800;padding:4px 0}.profile[open]>summary{margin-bottom:8px}
/* v1.10.50: แถบสรุปเป็นปุ่มชัดเจน — ยุบ: “✏️ แก้ไข ▾” / เปิด: “ย่อ ▴” */
.profile>summary{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;list-style:none;min-height:36px}
.profile>summary::-webkit-details-marker{display:none}
.profile>summary::after{content:"✏️ แก้ไข ▾";margin-left:auto;flex:none;font-size:.85em;font-weight:700;padding:4px 12px;border-radius:999px;border:1px solid #9bbba7;background:#eaf4ee;color:#1d5a3a}
.profile[open]>summary::after{content:"ย่อ ▴";background:#fff}
.profile>summary:hover::after,.profile>summary:focus-visible::after{background:#d9ecdf}
.greet{margin:6px 0;padding:10px 12px;border-radius:10px;background:#eef8f2;font-weight:800;color:#1d5f34}

/* 1.8.3: ปุ่มย่อ/ขยายรายการที่เสร็จแล้ว เป็นสามเหลี่ยม (ไม่ให้ ✅ ดูเหมือนเช็กบ็อกซ์) */
.done-item>summary{list-style:none}
.done-item>summary::-webkit-details-marker{display:none}
.done-item>summary::before{content:'▶';flex:none;font-size:.85em;color:#244b3c;transition:transform .15s ease}
.done-item[open]>summary::before{transform:rotate(90deg)}
.done-item>summary>span{flex:1;min-width:0}

/* 1.8.4: ดาวร้านค้า/ไรเดอร์ในหน้าเลือกข้อเสนอและหน้าชำระเงิน */
.rating-line{margin:.3rem 0}.rating-badge{display:inline-block;padding:.1rem .5rem;border-radius:999px;background:#fff6dc;border:1px solid #e0b45d;font-size:.92em}.rating-badge.none{background:#f3f3f3;border-color:#ccc;color:#666}.pay-parties{margin:.6rem 0;padding:.6rem .8rem;border-radius:10px;background:#fff;border:1px solid #ecd9a8}.pay-parties p{margin:.25rem 0}

/* 1.8.6: ตัวการ์ตูน B/U/Y ในแถบหัว (ตัดจากภาพชุด 3 ตัว พื้นโปร่งใส) */
.topbar img.logo-char{height:104px;width:auto;max-width:none;flex:none;object-fit:contain;filter:drop-shadow(0 2px 3px rgba(0,0,0,.35))}@media (max-width:560px){.topbar img.logo-char{height:84px}}

/* 1.9.0 ไมค์ในแชต */
.chat-send .mic{margin:0;min-width:84px;white-space:nowrap}.chat-mic-status{margin:4px 0 0}.chat-mic-status.error{color:#9e2f22}
@media(max-width:420px){.chat-send{flex-wrap:wrap}.chat-send input{flex-basis:100%}.chat-send .mic{flex:1}.chat-send button[data-chat]{flex:1}}

/* 1.9.5: รีวิวแบบกดดาว/ไลก์/หัวใจ/โกรธ */
.rpick{margin:.4rem 0}.rstars{display:flex;gap:4px}
.rstar{background:none;border:0;padding:0 2px;font-size:2.4rem;line-height:1;color:#d9d2c3;cursor:pointer;transition:transform .12s;min-width:0}
.rstar.on{color:#ffb800;text-shadow:0 2px 0 #e08a00,0 0 8px rgba(255,184,0,.55)}.rstar:active{transform:scale(1.25)}
.rreacts{display:flex;gap:10px;margin:.5rem 0}
.rx-ball{width:54px;height:54px;padding:0;border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;box-shadow:inset -6px -8px 14px rgba(0,0,0,.28),inset 6px 6px 12px rgba(255,255,255,.45),0 6px 10px rgba(0,0,0,.22);transition:transform .12s,outline-color .12s;outline:3px solid transparent;min-width:0}
.rx-ball.red{background:radial-gradient(circle at 32% 28%,#ff7a6e,#e3141b 60%,#a10009)}.rx-ball.blue{background:radial-gradient(circle at 32% 28%,#6a7bff,#1a1adf 60%,#0c0c8a)}
.rx-ball svg{width:55%;height:55%;fill:#fff}.rx-ball.flip svg{transform:rotate(180deg)}.rx-ball .emo{font-size:1.8rem;line-height:1}
.rx-ball.sel{outline-color:#ffb800;transform:scale(1.12)}.rx-ball:active{transform:scale(1.2)}
.rx-done{display:inline-flex;align-items:center;gap:6px}.rx-done .rx-ball{width:30px;height:30px;cursor:default;box-shadow:inset -3px -4px 7px rgba(0,0,0,.28),inset 3px 3px 6px rgba(255,255,255,.45)}.rx-done .emo{font-size:1rem}

/* 1.10.6 ห้องแชต 3 ฝ่าย */
.chat-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.chat-state{font-size:.82rem;padding:2px 8px;border-radius:999px;background:#e8f5e9}.chat-state.closed{background:#eceff1}
.chat-members{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}.chat-chip{font-size:.8rem;padding:2px 8px;border-radius:999px;background:#eee;color:#666}.chat-chip.on{background:#e3f2fd;color:#0d47a1}
.chat-auto{display:inline-flex;gap:6px;align-items:center}.chat-cancel{margin-left:8px;padding:2px 10px;font-size:.8rem}

/* 1.10.8 แชตสด */
.chat-live{max-height:14rem;overflow-y:auto}
.chat-relay-status{margin:.25rem 0}
.chat-relay-status.error{color:#b42318}

/* 1.10.12 */
.clear-local{margin:1rem 0;padding:.5rem .75rem;border:1px dashed #999;border-radius:10px}


/* BUY Personal AI — optional settings panel */
.ai-connect-panel{border:1px solid #b8d8c5;background:linear-gradient(135deg,#f7fff9,#fff);margin-top:1rem}
.ai-connect-details>summary{font-weight:800;cursor:pointer;color:#176b42;padding:.35rem}
.ai-connect-content{padding:.8rem .25rem .2rem;display:grid;gap:.65rem}
.ai-connect-content label{display:grid;gap:.3rem;font-weight:650}
.ai-connect-content input,.ai-connect-content select{width:100%;min-width:0;padding:.7rem;border:1px solid #b9c8c0;border-radius:10px;font:inherit;background:#fff}
.ai-provider-link{margin:0}
.ai-remember{display:flex!important;align-items:center;gap:.5rem;font-weight:500!important}
.ai-remember input{width:auto!important}
.ai-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.ai-actions button{flex:1 1 145px}
.ai-security{border-left:3px solid #d59a28;padding-left:.65rem}
.ai-connect-panel .status.error{color:#a21b1b}
.ai-connect-panel .status.success{color:#176b42}
@media(max-width:520px){.ai-actions button{flex-basis:100%}}



/* 1.10.14 — role-aware Personal AI assistant */
.ai-assistant-panel{margin-top:1rem;border:1px solid #c8d9d0}
.ai-assistant-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap}
.ai-assistant-head h2{margin:.1rem 0}
.ai-quick-prompts{display:flex;flex-wrap:wrap;gap:.45rem;margin:.35rem 0}
.ai-prompt-chip{font:inherit;font-size:.9rem;text-align:left;padding:.5rem .7rem;border:1px solid #b9c8c0;border-radius:999px;background:#f7fbf8;color:#174f35}
.ai-prompt-label{display:block;font-weight:700;margin:.45rem 0 .25rem}
.ai-assistant-panel textarea{box-sizing:border-box;width:100%;min-width:0;padding:.7rem;border:1px solid #b9c8c0;border-radius:10px;font:inherit;resize:vertical}
.ai-assistant-panel .ai-actions{margin:.55rem 0}
.ai-answer{white-space:pre-wrap;overflow-wrap:anywhere;padding:.85rem;border:1px solid #cbd8d0;border-radius:10px;background:#fbfdfb;line-height:1.55}
.ai-assistant-note{border-left:3px solid #d59a28;padding-left:.65rem}
.ai-assistant-panel .status.error{color:#a21b1b}
.ai-assistant-panel .status.success{color:#176b42}


/* BUY 1.10.15 — conversational order clarification for B */
.ai-order-panel{border:1px solid #9ac9a8;background:#f8fff9;margin-top:10px}
.ai-order-panel h2{margin:0}.ai-order-conversation{display:grid;gap:8px;margin:12px 0;max-height:340px;overflow:auto}
.ai-order-bubble{max-width:94%;padding:10px 12px;border-radius:12px;border:1px solid #d3e1d7;background:#fff;overflow-wrap:anywhere}
.ai-order-bubble p{margin:3px 0 0;white-space:pre-wrap}.ai-order-ai{justify-self:start;border-top-left-radius:4px}
.ai-order-user{justify-self:end;background:#eaf7ee;border-color:#a9d1b4;border-top-right-radius:4px}
.ai-order-reply{display:grid;gap:6px}.ai-order-reply label{margin:0;font-weight:700}.ai-order-reply textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid #b9c8c0;border-radius:10px;font:inherit}
.ai-order-reply button{width:100%}.ai-order-ready{padding:12px;border:1px solid #79b98a;border-radius:12px;background:#effaf1}.ai-order-ready p{overflow-wrap:anywhere;white-space:pre-wrap}.ai-order-ready .ai-actions button{margin-top:0}.ai-order-cancel{margin-top:8px;font-size:.88rem}
@media(max-width:520px){.ai-order-bubble{max-width:100%}.ai-order-ready .ai-actions button{flex-basis:100%}}

.ai-order-footer{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.ai-order-footer button{flex:1 1 190px}.ai-order-cancel{margin-top:0}

/* 1.10.16: opt-in local preference greeting */
.ai-greeting-panel{margin:10px 0 0;padding:12px;border:1px solid #c9dfcf;border-radius:12px;background:#f7fcf8;display:grid;gap:8px}
.ai-greeting-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.ai-greeting-text{margin:0;padding:10px;border-radius:9px;background:#fff;border:1px solid #e0ebe2;line-height:1.55}
.ai-greeting-panel label{margin:0;font-size:.94rem}
.ai-greeting-actions{display:flex;gap:8px;flex-wrap:wrap}
.ai-greeting-actions button{flex:1 1 150px}


/* 1.10.17 — local U/Y work-pattern greeting */
.ai-role-learning{border-color:#c7d9e8;background:#f7fbff}
.ai-role-learning .ai-greeting-text{background:#fff}

/* v1.10.24 — Smart Route (Y) + Community Slang Dictionary (B) */
.ai-route-panel{margin:0 0 10px}.ai-route-list{margin:6px 0;padding-left:0;list-style:none;display:grid;gap:4px}.ai-route-list li{padding:6px 8px;border:1px solid #d3e1d7;border-radius:8px;background:#fff;overflow-wrap:anywhere}
.ai-slang-panel summary{cursor:pointer;font-weight:700}.ai-slang-list{display:grid;gap:6px;margin:10px 0}.ai-slang-row{display:flex;gap:8px;justify-content:space-between;align-items:center;padding:6px 8px;border:1px solid #d3e1d7;border-radius:8px;background:#fff;overflow-wrap:anywhere}
.ai-slang-teach{padding:10px;border:1px solid #79b98a;border-radius:10px;background:#effaf1;margin:8px 0}.ai-slang-panel textarea{width:100%;box-sizing:border-box;padding:8px;border:1px solid #b9c8c0;border-radius:10px;font:inherit}

/* v1.10.51: ป้องกันบัญชีด้วยรหัสผ่าน (ไม่บังคับ) ในกล่องข้อมูล */
.key-protect{margin-top:10px;border-top:1px dashed #c9d9cf;padding-top:8px}
.key-protect>summary{cursor:pointer;font-weight:700;font-size:.92em;color:#1d5a3a;padding:4px 0}
.key-protect input{display:block;width:100%;box-sizing:border-box;margin:6px 0}
.key-protect button{margin:4px 0}

.key-form{margin:10px 0;padding:8px 10px;border:1px solid #e6c9a8;border-radius:10px;background:#fffaf2}.key-form input{display:block;width:100%;box-sizing:border-box;margin:6px 0}.key-form label{font-weight:700}

/* v1.10.86: read-only Directory conflict review */
.buy-conflict-review{margin:18px 0;border:1px solid #c58a35}.buy-conflict-list{display:grid;gap:10px}.buy-conflict-item{padding:12px;border:1px solid var(--line,#d8ddd8);border-radius:12px;background:var(--card,#fff)}.buy-conflict-item p{overflow-wrap:anywhere}.buy-conflict-item summary{cursor:pointer;font-weight:600}
/* v1.10.89: owner-operated Directory conflict editor */
.buy-conflict-sides{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:10px 0}.buy-conflict-json{white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;overflow:auto;padding:10px;border-radius:8px;background:var(--soft,#f3f5f3);font-size:12px}.buy-conflict-editor-label{display:grid;gap:6px;font-weight:600;margin:10px 0}.buy-conflict-editor{width:100%;min-height:150px;resize:vertical;font:12px/1.5 ui-monospace,monospace;padding:10px;border:1px solid var(--line,#d8ddd8);border-radius:8px}.buy-conflict-actions{display:flex;flex-wrap:wrap;gap:8px}.buy-conflict-actions button{min-height:40px}

/* BUY v1.10.122: compact, collapsible local crypto self-test */
.secure-selftest-panel{margin-top:14px}.secure-selftest-panel .primary{margin-top:0}.secure-selftest-status.success,.secure-selftest-results .success{color:#176b42}.secure-selftest-status.error,.secure-selftest-results .error{color:#9e2f22}.secure-selftest-results{margin:0;padding-left:1.3rem;display:grid;gap:5px}.secure-selftest-results:empty{display:none}

.keyword-grid{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 12px}.keyword-chip{display:inline-flex;align-items:center;gap:6px;margin:0;padding:7px 10px;border:1px solid #cbdacf;border-radius:999px;background:#fff;font-size:.88rem;font-weight:650;cursor:pointer}.keyword-chip input{width:auto;margin:0}.keyword-add-row{display:grid;grid-template-columns:1fr auto auto;gap:7px;align-items:end}.keyword-add-row input{margin:0}.keyword-add-row button{white-space:nowrap}.keyword-list{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0;min-height:30px}.keyword-pill{padding:6px 9px;border-radius:999px;border:1px solid #b8d1c0;background:#edf7f0;color:#205b3b;font-size:.86rem}.store-keywords-panel{margin-top:10px}.store-keywords-panel>summary{font-weight:800}.store-keywords-panel .item-actions{margin-top:8px}.store-keywords-panel .status{margin-bottom:0}@media(max-width:680px){.keyword-add-row{grid-template-columns:1fr auto}.keyword-add-row .mic{grid-column:2}.keyword-add-row #storeKeywordAdd{grid-column:1}.keyword-add-row input{grid-column:1 / -1}}

/* BUY Nearby Discovery Round 4 — compact, responsive controls */
.nearby-panel { border: 1px solid #cbd8d2; }
.nearby-category-row,.nearby-filter-row { display:flex; flex-wrap:wrap; gap:.5rem; align-items:end; margin:.75rem 0; }
.nearby-category-row button[aria-pressed="true"] { outline:2px solid #26735c; background:#e7f2ec; }
.nearby-filter-row label { max-width:8rem; }
.nearby-result { position:relative; padding:.8rem; border:1px solid #dce5df; border-radius:.7rem; background:#fff; }
.nearby-result > strong { padding-right:2.6rem; }
.nearby-hide { position:absolute; top:.35rem; right:.35rem; min-width:2.4rem; min-height:2.4rem; padding:0; border:0; border-radius:50%; background:transparent; color:#6b7a72; font-size:1.05rem; line-height:1; cursor:pointer; }
.nearby-hide:hover, .nearby-hide:focus-visible { background:#f0e4e4; color:#9b2c2c; }
.nearby-unhide { margin-top:.6rem; background:transparent; border:1px dashed #9aa9a1; color:#4a5a52; }
.nearby-result p { margin:.3rem 0; }
.nearby-preview { white-space:pre-wrap; overflow-wrap:anywhere; padding:.8rem; background:#f3f6f4; border-radius:.6rem; }

/* BUY v1.234 — จัดหน้าจอ B (b-layout.js): พับกลุ่มตั้งค่า ไม่เปลี่ยนสีหลัก/โครงเดิม */
.b-more,.b-fold{margin:12px 0;border:1px solid #cbd8d2;border-radius:.8rem;background:#fff}
.b-more>summary,.b-fold>summary{padding:12px 14px;font-weight:800;cursor:pointer;list-style-position:inside}
.b-more>summary .hint,.b-fold>summary .hint{font-weight:400}
.b-more-body{padding:0 10px 10px}
.b-group>summary{margin:8px 4px;font-size:1rem;font-weight:600;color:#173f35;cursor:pointer}.b-group[open]>summary{margin-bottom:6px}
.b-more-body .panel,.b-more-body .notice,.b-more-body details{margin-left:0;margin-right:0}
.b-fold>.nearby-panel{margin:0;border:0}
.b-fold>.nearby-panel>h2{display:none}
.b-help{margin-top:6px;padding:6px 12px;border-radius:999px;border:1px solid #b8d1c0;background:#edf7f0;color:#205b3b;font-weight:700;cursor:pointer}

/* v1.234.3 ตัวสลับบทบาท */
.b-switch{display:flex;gap:6px;flex-wrap:wrap;margin-left:auto;align-self:flex-start}.b-switch a{color:#fff;text-decoration:none;border:1px solid rgba(255,255,255,.45);border-radius:999px;padding:4px 10px;font-size:.85rem;font-weight:700;white-space:nowrap;min-height:32px;display:inline-flex;align-items:center}.b-switch a[aria-current="page"]{background:#fff;color:#173f35;border-color:#fff}@media(max-width:560px){.b-switch{flex-basis:100%;margin-left:0}}

.b-switch a{position:relative}.b-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:6px;border-radius:999px;background:#d93025;color:#fff;font-size:.72rem;font-weight:800;line-height:1}
.b-switch-toggle{color:#fff;background:transparent;border:1px solid rgba(255,255,255,.45);border-radius:999px;padding:4px 10px;font-size:.85rem;font-weight:700;min-height:32px;cursor:pointer}.b-switch.folded a[data-switch-role]{display:none}.b-switch:not(.folded) .b-switch-toggle .b-badge{display:none}

@keyframes needBlink { 0%,100% { box-shadow: 0 0 0 0 rgba(255,170,0,0); border-color: inherit; } 50% { box-shadow: 0 0 0 3px rgba(255,170,0,.55); border-color: #ffaa00; } }
.need-blink { animation: needBlink 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .need-blink { animation: none; box-shadow: 0 0 0 2px rgba(255,170,0,.7); } }

.b-item{margin:6px 0 6px 8px}.b-item>summary{font-size:.95rem;cursor:pointer;color:#173f35}
/* BUY Voice Call — ปุ่มโทรข้างปุ่มไมค์ + แถบสาย */
.chat-send .call-btn{margin:0;min-width:84px;white-space:nowrap}.chat-send .call-btn:disabled{opacity:.5}
.callbar{position:fixed;left:50%;transform:translateX(-50%);bottom:44px;z-index:100000;display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:center;max-width:min(94vw,560px);padding:10px 14px;border-radius:14px;background:#173f35;color:#fff;box-shadow:0 6px 24px rgba(0,0,0,.35);font:15px/1.4 sans-serif}
.callbar[hidden],.calltoast[hidden]{display:none}
.callbar[data-state="ringing"]{background:#8a4b00;animation:callpulse 1.2s ease-in-out infinite}
.callbar button{margin:0;min-height:40px;padding:6px 14px;border-radius:10px;border:0;font:inherit;font-weight:700;cursor:pointer;background:#fff;color:#173f35}
.callbar button.danger{background:#c0392b;color:#fff}.callbar button.callbar-ok{background:#1f9d55;color:#fff}.callbar button.callbar-muted{background:#f5b041;color:#222}
.calltoast{position:fixed;left:50%;transform:translateX(-50%);bottom:104px;z-index:100000;max-width:min(94vw,520px);padding:8px 14px;border-radius:10px;background:#333;color:#fff;font:14px/1.4 sans-serif;box-shadow:0 4px 16px rgba(0,0,0,.3)}
.calltoast[data-state="error"]{background:#9e2f22}
@keyframes callpulse{0%,100%{box-shadow:0 0 0 0 rgba(245,176,65,.7)}50%{box-shadow:0 0 0 12px rgba(245,176,65,0)}}
@media(max-width:420px){.chat-send .call-btn{flex:1}}
@media(prefers-reduced-motion:reduce){.callbar[data-state="ringing"]{animation:none}}

.callhint{margin:8px 0;padding:8px 10px;border:1px dashed #9db8ae;border-radius:10px;background:rgba(31,157,85,.06)}.callhint[hidden]{display:none}.callhint-row{display:flex;gap:8px;flex-wrap:wrap}.callhint .call-btn{margin:0;min-width:84px;white-space:nowrap;opacity:.5}.callhint-note{display:block;margin-top:6px;font-size:12px;line-height:1.4;opacity:.8}

/* ========================================================================
   BUY FUTURE UI — Design System foundation (Round 2)
   Visual-only layer: keeps existing HTML IDs, classes, handlers and data flow.
   Role identity: B = blue, U = red, Y = yellow.
   ======================================================================== */
:root {
  --buy-radius-card: 18px;
  --buy-radius-control: 12px;
  --buy-shadow-card: 0 10px 28px rgba(19, 39, 72, .075), 0 2px 7px rgba(19, 39, 72, .045);
  --buy-shadow-raised: 0 8px 18px var(--buy-glow), 0 2px 5px rgba(15, 23, 42, .08);
  --buy-glow: rgba(37, 99, 235, .16);
  --buy-accent: #2563eb;
  --buy-accent-strong: #1d4ed8;
  --buy-accent-soft: #eff6ff;
  --buy-accent-line: #bfdbfe;
  --buy-page: #f4f7fc;
  --buy-surface: rgba(255, 255, 255, .94);
  --buy-text: #17243a;
  --buy-muted: #61718a;
}
body[data-role="B"] {
  --buy-accent: #2878f0;
  --buy-accent-strong: #1558c8;
  --buy-accent-soft: #edf5ff;
  --buy-accent-line: #c7ddff;
  --buy-glow: rgba(40, 120, 240, .20);
  --buy-page: #f2f7ff;
  --buy-text: #142b4b;
}
body[data-role="U"] {
  --buy-accent: #e34b55;
  --buy-accent-strong: #b92d3b;
  --buy-accent-soft: #fff1f2;
  --buy-accent-line: #ffd0d4;
  --buy-glow: rgba(227, 75, 85, .18);
  --buy-page: #fff6f6;
  --buy-text: #3a1d25;
}
body[data-role="Y"] {
  --buy-accent: #f2bd28;
  --buy-accent-strong: #d69b08;
  --buy-accent-soft: #fff8df;
  --buy-accent-line: #f4df9d;
  --buy-glow: rgba(242, 189, 40, .22);
  --buy-page: #fffaf0;
  --buy-text: #332b16;
}
body[data-role="B"], body[data-role="U"], body[data-role="Y"] {
  color: var(--buy-text);
  background:
    radial-gradient(ellipse at 8% 0%, var(--buy-glow), transparent 34rem),
    linear-gradient(180deg, var(--buy-page), #f8fafc 58%, #f3f6fb);
}
body[data-role="B"] a, body[data-role="U"] a, body[data-role="Y"] a,
body[data-role="B"] .distance, body[data-role="U"] .distance, body[data-role="Y"] .distance {
  color: var(--buy-accent-strong);
}
body[data-role="B"] .topbar, body[data-role="U"] .topbar, body[data-role="Y"] .topbar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(118deg, var(--buy-accent-strong), var(--buy-accent) 58%, color-mix(in srgb, var(--buy-accent) 70%, #172b50));
  box-shadow: 0 8px 28px var(--buy-glow);
}
body[data-role="B"] .topbar::after, body[data-role="U"] .topbar::after, body[data-role="Y"] .topbar::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 17rem;
  height: 17rem;
  right: -6rem;
  top: -11rem;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255,255,255,.045), 0 0 0 52px rgba(255,255,255,.035);
  pointer-events: none;
}
body[data-role="Y"] .topbar { color: #241d0b; }
body[data-role="Y"] .topbar .home { color: #241d0b; }
body[data-role="Y"] .topbar .eyebrow { opacity: .78; }
body[data-role="B"] .topbar img.logo-char,
body[data-role="U"] .topbar img.logo-char,
body[data-role="Y"] .topbar img.logo-char {
  filter: drop-shadow(0 5px 8px rgba(0,0,0,.22));
}
body[data-role="B"] .notice, body[data-role="U"] .notice, body[data-role="Y"] .notice,
body[data-role="B"] .panel, body[data-role="U"] .panel, body[data-role="Y"] .panel {
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: var(--buy-radius-card);
  background: var(--buy-surface);
  box-shadow: var(--buy-shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body[data-role="B"] .notice, body[data-role="U"] .notice, body[data-role="Y"] .notice {
  border-left: 4px solid var(--buy-accent);
}
body[data-role="B"] .blk, body[data-role="U"] .blk, body[data-role="Y"] .blk {
  border-left: 4px solid var(--buy-accent);
  background: linear-gradient(135deg, var(--buy-accent-soft), rgba(255,255,255,.96) 72%);
}
body[data-role="B"] .blk::before, body[data-role="U"] .blk::before, body[data-role="Y"] .blk::before {
  background: linear-gradient(110deg, var(--buy-accent-strong), var(--buy-accent));
  box-shadow: 0 4px 12px var(--buy-glow);
}
body[data-role="B"] .blk h2, body[data-role="U"] .blk h2, body[data-role="Y"] .blk h2,
body[data-role="B"] .blk h3, body[data-role="U"] .blk h3, body[data-role="Y"] .blk h3 {
  color: var(--buy-text);
}
body[data-role="B"] button, body[data-role="U"] button, body[data-role="Y"] button {
  border-radius: var(--buy-radius-control);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
body[data-role="B"] button:not(:disabled):active,
body[data-role="U"] button:not(:disabled):active,
body[data-role="Y"] button:not(:disabled):active { transform: translateY(1px) scale(.99); }
body[data-role="B"] .primary, body[data-role="U"] .primary, body[data-role="Y"] .primary {
  color: #fff;
  border: 1px solid var(--buy-accent-strong);
  background: linear-gradient(115deg, var(--buy-accent-strong), var(--buy-accent));
  box-shadow: var(--buy-shadow-raised);
}
body[data-role="Y"] .primary { color: #241d0b; }
body[data-role="B"] input, body[data-role="U"] input, body[data-role="Y"] input,
body[data-role="B"] textarea, body[data-role="U"] textarea, body[data-role="Y"] textarea,
body[data-role="B"] select, body[data-role="U"] select, body[data-role="Y"] select {
  border-color: #cbd5e1;
  border-radius: var(--buy-radius-control);
  background: rgba(255,255,255,.97);
  transition: border-color .16s ease, box-shadow .16s ease;
}
body[data-role="B"] input:focus, body[data-role="U"] input:focus, body[data-role="Y"] input:focus,
body[data-role="B"] textarea:focus, body[data-role="U"] textarea:focus, body[data-role="Y"] textarea:focus,
body[data-role="B"] select:focus, body[data-role="U"] select:focus, body[data-role="Y"] select:focus {
  border-color: var(--buy-accent);
  box-shadow: 0 0 0 3px var(--buy-glow);
  outline: 0;
}
body[data-role="B"] .item, body[data-role="U"] .item, body[data-role="Y"] .item,
body[data-role="B"] .chat, body[data-role="U"] .chat, body[data-role="Y"] .chat {
  border-color: rgba(148,163,184,.28);
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 3px 12px rgba(15,23,42,.035);
}
body[data-role="B"] .item.chosen, body[data-role="U"] .item.chosen, body[data-role="Y"] .item.chosen {
  border-color: var(--buy-accent);
  box-shadow: 0 0 0 2px var(--buy-glow);
  background: var(--buy-accent-soft);
}
body[data-role="B"] .b-switch a[aria-current="page"],
body[data-role="U"] .b-switch a[aria-current="page"],
body[data-role="Y"] .b-switch a[aria-current="page"] {
  color: var(--buy-accent-strong);
  border-color: rgba(255,255,255,.9);
}
body[data-role="B"] .b-switch-toggle, body[data-role="U"] .b-switch-toggle, body[data-role="Y"] .b-switch-toggle {
  box-shadow: 0 3px 10px rgba(0,0,0,.10);
}
@media (hover:hover) {
  body[data-role="B"] button:not(:disabled):hover,
  body[data-role="U"] button:not(:disabled):hover,
  body[data-role="Y"] button:not(:disabled):hover { transform: translateY(-1px); box-shadow: var(--buy-shadow-raised); }
  body[data-role="B"] .item:hover, body[data-role="U"] .item:hover, body[data-role="Y"] .item:hover { border-color: var(--buy-accent-line); }
}
@media (max-width:560px) {
  body[data-role="B"] .topbar, body[data-role="U"] .topbar, body[data-role="Y"] .topbar { gap: 10px; }
  body[data-role="B"] .panel, body[data-role="U"] .panel, body[data-role="Y"] .panel { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-role="B"] *, body[data-role="U"] *, body[data-role="Y"] * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
@media (prefers-contrast: more) {
  body[data-role="B"], body[data-role="U"], body[data-role="Y"] { --buy-surface: #fff; }
  body[data-role="B"] .panel, body[data-role="U"] .panel, body[data-role="Y"] .panel,
  body[data-role="B"] .notice, body[data-role="U"] .notice, body[data-role="Y"] .notice { border: 2px solid currentColor; }
}


/* ========================================================================
   BUY FUTURE UI — ROUND 3 / B BUYER
   Visual-only refinements. Existing IDs, form controls, event hooks and
   order logic are intentionally untouched.
   ======================================================================== */
body[data-role="B"] {
  --buy-accent: #2878f0;
  --buy-accent-strong: #1558c8;
  --buy-accent-soft: #edf5ff;
  --buy-accent-line: #c7ddff;
  --buy-glow: rgba(40, 120, 240, .20);
  --buy-page: #f2f7ff;
  --buy-text: #142b4b;
  --buy-muted: #5d7190;
}
body[data-role="B"] main { max-width: 980px; }
body[data-role="B"] .topbar {
  min-height: 142px;
  padding-top: 18px;
  padding-bottom: 18px;
  background:
    radial-gradient(circle at 78% 12%, rgba(160,210,255,.25), transparent 12rem),
    linear-gradient(118deg, #123b83 0%, #1765ce 52%, #3996f4 100%);
}
body[data-role="B"] .topbar h1 { letter-spacing: -.025em; }
body[data-role="B"] .topbar .eyebrow {
  color: #dcecff;
  letter-spacing: .14em;
}
body[data-role="B"] .topbar p:last-child { color: #e8f2ff; }
body[data-role="B"] .topbar img.logo-char {
  width: auto;
  height: 112px;
  max-width: 88px;
  object-position: center bottom;
  filter: drop-shadow(0 8px 12px rgba(5, 24, 66, .34));
}
body[data-role="B"] .notice {
  border-left-color: #e3a72d;
  background: linear-gradient(110deg, #fffdf6, rgba(255,255,255,.96) 70%);
}
body[data-role="B"] .nearby-panel {
  position: relative;
  overflow: hidden;
  border-color: #c8ddfa;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(78,151,244,.13), transparent 19rem),
    rgba(255,255,255,.96);
}
body[data-role="B"] .nearby-panel > h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #174d9c;
  letter-spacing: -.015em;
}
body[data-role="B"] .nearby-panel > .hint { margin-top: -5px; }
body[data-role="B"] .nearby-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
body[data-role="B"] .nearby-category-row button {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 8px 12px;
  border-color: #d5e3f7;
  background: #f7faff;
  color: #28517f;
}
body[data-role="B"] .nearby-category-row button[aria-pressed="true"] {
  border-color: #1d63c7;
  background: linear-gradient(120deg, #1558c8, #398af0);
  color: #fff;
  box-shadow: 0 5px 14px rgba(37,99,235,.2);
}
body[data-role="B"] .nearby-filter-row {
  display: grid;
  grid-template-columns: minmax(110px,.55fr) minmax(180px,1fr);
  align-items: end;
  gap: 10px;
}
body[data-role="B"] .nearby-filter-row label { margin: 0; }
body[data-role="B"] .nearby-filter-row > button,
body[data-role="B"] #refreshStores,
body[data-role="B"] #refreshBuyer,
body[data-role="B"] #nearbyBuyerGps,
body[data-role="B"] #getGps {
  border-color: #c8dcf7;
  background: #f5f9ff;
  color: #1c58a4;
}
body[data-role="B"] .blk {
  border-color: var(--buy-accent-line);
  background: linear-gradient(145deg, #edf5ff 0%, #fff 72%);
}
body[data-role="B"] .blk1 {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(63,139,235,.11), transparent 20rem),
    linear-gradient(145deg, #edf5ff, #fff 72%);
}
body[data-role="B"] .blk2 { background: linear-gradient(145deg, #e6f1ff, #fff 78%); }
body[data-role="B"] .blk3 { background: linear-gradient(145deg, #dceaff, #fff 82%); }
body[data-role="B"] .blk::before { letter-spacing: .02em; }
body[data-role="B"] .profile {
  border-color: #d2e2f8;
  background: rgba(255,255,255,.82);
}
body[data-role="B"] .profile > summary::after {
  border-color: #c6dcfa;
  background: #edf5ff;
  color: #1558c8;
}
body[data-role="B"] .greet {
  border: 1px solid #c8ddfa;
  background: linear-gradient(110deg, #edf5ff, #fff);
  color: #174d9c;
}
body[data-role="B"] #requestForm {
  display: grid;
  gap: 8px;
}
body[data-role="B"] #requestForm > label:first-child {
  margin-bottom: 0;
  color: #174d9c;
  font-size: 1.04rem;
}
body[data-role="B"] #description {
  min-height: 104px;
  border-color: #bcd2f1;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(20,43,75,.035);
}
body[data-role="B"] #description::placeholder,
body[data-role="B"] input::placeholder,
body[data-role="B"] textarea::placeholder { color: #8292a9; opacity: 1; }
/* Buyer composer: full-width writing area; microphone is a compact in-field control. */
body[data-role="B"] #requestForm .voice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}
body[data-role="B"] #requestForm .description-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}
body[data-role="B"] #requestForm #description {
  display: block;
  width: 100%;
  min-height: 140px; /* v2.2.33: สูงขึ้นให้ถังขยะ (บน) กับไมค์ (ล่าง) ห่างกัน */
  padding: 12px 58px 42px 12px;
  resize: vertical;
}
body[data-role="B"] #requestForm #micButton.mic-inline {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #b8d2f6;
  border-radius: 50%;
  background: linear-gradient(160deg, #fafdff, #e8f2ff);
  color: #1558c8;
  box-shadow: 0 3px 9px rgba(37,99,235,.12);
  font-size: 1.15rem;
  line-height: 1;
}
body[data-role="B"] #requestForm #micButton.mic-inline[aria-pressed="true"] {
  background: #1558c8;
  color: #fff;
  border-color: #1558c8;
}
body[data-role="B"] .ref-photo {
  padding: 12px;
  border: 1px dashed #b7d0f2;
  border-radius: 14px;
  background: rgba(245,249,255,.8);
}
body[data-role="B"] .ref-photo-title { margin: 0 0 7px; color: #174d9c; }
body[data-role="B"] .gps-row { margin: 4px 0; }
body[data-role="B"] #requestForm .voice-submit {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 13px 16px;
  font-size: 1rem;
  letter-spacing: .005em;
  line-height: 1.35;
  white-space: normal;
  background: linear-gradient(115deg, #124cae, #2878f0 62%, #55a1fa);
  box-shadow: 0 5px 13px rgba(29,88,190,.17), inset 0 1px 0 rgba(255,255,255,.22);
}
body[data-role="B"] #requestForm .voice-submit.voice-ready { animation: buy-voice-ready 1.8s ease-in-out 3; }
@keyframes buy-voice-ready {
  0%, 100% { filter: brightness(1); box-shadow: 0 5px 13px rgba(29,88,190,.17), inset 0 1px 0 rgba(255,255,255,.22); }
  50% { filter: brightness(1.12); box-shadow: 0 0 0 4px rgba(55,133,245,.12), 0 7px 17px rgba(29,88,190,.24); }
}
@media (prefers-reduced-motion: reduce) {
  body[data-role="B"] #requestForm .voice-submit.voice-ready { animation: none; outline: 3px solid rgba(55,133,245,.24); }
}
body[data-role="B"] .item.chosen {
  background: linear-gradient(120deg, #eaf3ff, #fff);
}
body[data-role="B"] .empty {
  border: 1px dashed #d3e2f5;
  background: #f7faff;
}
@media (max-width: 560px) {
  body[data-role="B"] .topbar { min-height: 116px; padding-top: 12px; padding-bottom: 12px; }
  body[data-role="B"] .topbar img.logo-char { height: 88px; max-width: 68px; }
  body[data-role="B"] .nearby-filter-row { grid-template-columns: 1fr; }
  body[data-role="B"] .nearby-category-row button { flex: 1 1 calc(50% - 8px); }
  body[data-role="B"] #requestForm .voice-row { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  body[data-role="B"] #requestForm #description { min-height: 136px; }
  body[data-role="B"] #requestForm .voice-submit { min-width: 0; width: 100%; padding: 12px 14px; font-size: .96rem; }
}


/* ========================================================================
   BUY FUTURE UI — ROUND 4 / U PROVIDER
   Visual-only refinements (red theme). Existing IDs, form controls, event
   hooks, Nearby consent flow and order logic are intentionally untouched.
   ======================================================================== */
body[data-role="U"] {
  --buy-accent: #e34b55;
  --buy-accent-strong: #b92d3b;
  --buy-accent-soft: #fff1f2;
  --buy-accent-line: #ffd0d4;
  --buy-glow: rgba(227, 75, 85, .20);
  --buy-page: #fff6f6;
  --buy-text: #3a1d25;
  --buy-muted: #7a5560;
}
body[data-role="U"] main { max-width: 980px; }
body[data-role="U"] .topbar {
  min-height: 142px;
  padding-top: 18px;
  padding-bottom: 18px;
  background:
    radial-gradient(circle at 78% 12%, rgba(255,190,190,.26), transparent 12rem),
    linear-gradient(118deg, #7d1527 0%, #c52d3f 52%, #f0646c 100%);
}
body[data-role="U"] .topbar h1 { letter-spacing: -.025em; }
body[data-role="U"] .topbar .eyebrow { color: #ffe3e5; letter-spacing: .14em; }
body[data-role="U"] .topbar p:last-child { color: #fff0f1; }
body[data-role="U"] .topbar img.logo-char {
  width: auto;
  height: 112px;
  max-width: 88px;
  object-position: center bottom;
  filter: drop-shadow(0 8px 12px rgba(70, 8, 22, .36));
}
body[data-role="U"] .notice {
  border-left-color: #e3a72d;
  background: linear-gradient(110deg, #fffdf6, rgba(255,255,255,.96) 70%);
}
body[data-role="U"] .nearby-panel {
  position: relative;
  overflow: hidden;
  border-color: #f6cdd1;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(240,100,108,.13), transparent 19rem),
    rgba(255,255,255,.96);
}
body[data-role="U"] .nearby-panel > h2 { color: #a22636; letter-spacing: -.015em; }
body[data-role="U"] .blk1 {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(240,100,108,.11), transparent 20rem),
    linear-gradient(145deg, #fff1f2, #fff 72%);
}
body[data-role="U"] .blk2 { background: linear-gradient(145deg, #ffe9eb, #fff 78%); }
body[data-role="U"] .blk3 { background: linear-gradient(145deg, #ffdfe2, #fff 82%); }
body[data-role="U"] .profile {
  border-color: #f4d2d5;
  background: rgba(255,255,255,.82);
}
body[data-role="U"] .profile > summary::after {
  border-color: #f4c9cd;
  background: #fff1f2;
  color: #b92d3b;
}
body[data-role="U"] .greet {
  border: 1px solid #f6cdd1;
  background: linear-gradient(110deg, #fff1f2, #fff);
  color: #a22636;
}
body[data-role="U"] .settings-collapse,
body[data-role="U"] .store-keywords-panel {
  border-color: #f2d0d3;
  border-radius: 14px;
  background: rgba(255,248,248,.9);
}
body[data-role="U"] .settings-collapse > summary,
body[data-role="U"] .store-keywords-panel > summary { color: #a22636; }
body[data-role="U"] .keyword-chip {
  border-color: #f0cbcf;
  background: #fff;
  color: #5b2a33;
}
body[data-role="U"] .keyword-chip:has(input:checked) {
  border-color: #c9323f;
  background: linear-gradient(120deg, #b92d3b, #e34b55);
  color: #fff;
  box-shadow: 0 4px 12px rgba(185,45,59,.2);
}
body[data-role="U"] .keyword-pill {
  border-color: #efbcc2;
  background: #ffeef0;
  color: #8f2331;
}
body[data-role="U"] #storeForm { display: grid; gap: 4px; }
body[data-role="U"] #storeForm .primary {
  min-height: 50px;
  margin-top: 6px;
  font-size: 1.02rem;
  background: linear-gradient(115deg, #a82333, #e34b55 62%, #f27a80);
  box-shadow: 0 9px 20px rgba(185,45,59,.24), inset 0 1px 0 rgba(255,255,255,.22);
}
body[data-role="U"] #storeKeywordMic {
  border-color: #efb9bf;
  background: linear-gradient(160deg, #fffafa, #ffeaec);
  color: #b92d3b;
}
body[data-role="U"] .store-image { border: 1px solid #f2d0d3; box-shadow: 0 6px 16px rgba(120,25,40,.10); }
body[data-role="U"] .item.chosen { background: linear-gradient(120deg, #ffeef0, #fff); }
body[data-role="U"] .empty { border: 1px dashed #f1d2d5; background: #fff8f8; }
@media (max-width: 560px) {
  body[data-role="U"] .topbar { min-height: 116px; padding-top: 12px; padding-bottom: 12px; }
  body[data-role="U"] .topbar img.logo-char { height: 88px; max-width: 68px; }
  body[data-role="U"] .nearby-panel .item-actions button { flex: 1 1 calc(50% - 8px); }
}


/* ========================================================================
   BUY FUTURE UI — ROUND 5 / Y DELIVERY
   Visual-only (yellow theme). IDs, handlers, job/order logic untouched.
   Yellow = dark text on yellow for contrast.
   ======================================================================== */
body[data-role="Y"] {
  --buy-accent: #f2bd28;
  --buy-accent-strong: #d69b08;
  --buy-accent-soft: #fff8df;
  --buy-accent-line: #f4df9d;
  --buy-glow: rgba(242, 189, 40, .24);
  --buy-page: #fffaf0;
  --buy-text: #332b16;
  --buy-muted: #7a6a3a;
}
body[data-role="Y"] main { max-width: 980px; }
body[data-role="Y"] a, body[data-role="Y"] .distance { color: #8a5f00; }
body[data-role="Y"] .topbar {
  min-height: 142px;
  padding-top: 18px;
  padding-bottom: 18px;
  background:
    radial-gradient(circle at 78% 12%, rgba(255,255,255,.35), transparent 12rem),
    linear-gradient(118deg, #e8a800 0%, #f5c32c 52%, #ffe074 100%);
}
body[data-role="Y"] .topbar h1 { letter-spacing: -.025em; color: #241d0b; }
body[data-role="Y"] .topbar .eyebrow { color: #4a3a08; letter-spacing: .14em; opacity: 1; }
body[data-role="Y"] .topbar p:last-child { color: #3a2e08; }
body[data-role="Y"] .topbar img.logo-char {
  width: auto;
  height: 112px;
  max-width: 88px;
  object-position: center bottom;
  filter: drop-shadow(0 8px 12px rgba(90, 60, 0, .34));
}
body[data-role="Y"] .notice {
  border-left-color: #d69b08;
  background: linear-gradient(110deg, #fffdf2, rgba(255,255,255,.96) 70%);
}
body[data-role="Y"] .blk {
  border-color: var(--buy-accent-line);
  background: linear-gradient(145deg, #fff8df 0%, #fff 72%);
}
body[data-role="Y"] .blk1 {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(245,195,44,.16), transparent 20rem),
    linear-gradient(145deg, #fff8df, #fff 72%);
}
body[data-role="Y"] .blk2 { background: linear-gradient(145deg, #fff3c9, #fff 78%); }
body[data-role="Y"] .blk3 { background: linear-gradient(145deg, #ffedb0, #fff 82%); }
body[data-role="Y"] .blk::before { color: #241d0b; }
body[data-role="Y"] .profile {
  border-color: #f1e1a6;
  background: rgba(255,255,255,.84);
}
body[data-role="Y"] .profile > summary::after {
  border-color: #efd98f;
  background: #fff8df;
  color: #8a5f00;
}
body[data-role="Y"] .greet {
  border: 1px solid #f1dc95;
  background: linear-gradient(110deg, #fff8df, #fff);
  color: #6b4a00;
}
body[data-role="Y"] .settings-collapse {
  border-color: #f1e1a6;
  border-radius: 14px;
  background: rgba(255,251,236,.92);
}
body[data-role="Y"] .settings-collapse > summary { color: #6b4a00; }
body[data-role="Y"] .check {
  padding: 9px 11px;
  border: 1px solid #f1e1a6;
  border-radius: 12px;
  background: #fffbec;
}
body[data-role="Y"] #riderGps,
body[data-role="Y"] #riderQrCam,
body[data-role="Y"] #saveRiderQr,
body[data-role="Y"] #refreshJobs {
  border-color: #ecd47e;
  background: #fff9e3;
  color: #6b4a00;
}
body[data-role="Y"] .primary {
  min-height: 48px;
  color: #241d0b;
  border-color: #d69b08;
  background: linear-gradient(115deg, #e7a900, #f5c32c 60%, #ffdc66);
  box-shadow: 0 9px 20px rgba(214,155,8,.28), inset 0 1px 0 rgba(255,255,255,.4);
}
body[data-role="Y"] .store-image { border: 1px solid #f1e1a6; box-shadow: 0 6px 16px rgba(120,85,0,.10); }
body[data-role="Y"] .item.chosen { background: linear-gradient(120deg, #fff4cc, #fff); }
body[data-role="Y"] .empty { border: 1px dashed #f1e1a6; background: #fffbec; }
body[data-role="Y"] input:focus,
body[data-role="Y"] textarea:focus,
body[data-role="Y"] select:focus { border-color: #d69b08; box-shadow: 0 0 0 3px rgba(242,189,40,.35); }
@media (max-width: 560px) {
  body[data-role="Y"] .topbar { min-height: 116px; padding-top: 12px; padding-bottom: 12px; }
  body[data-role="Y"] .topbar img.logo-char { height: 88px; max-width: 68px; }
}


/* ========================================================================
   BUY FUTURE UI — ROUND 6 / SHARED UI
   Role switcher, toast, alert banner, call bar. Visual-only; no logic.
   Fixes: Y yellow header needs dark switcher text (white-on-yellow was unreadable).
   ======================================================================== */
body[data-role="B"] .b-switch a, body[data-role="U"] .b-switch a, body[data-role="Y"] .b-switch a,
body[data-role="B"] .b-switch-toggle, body[data-role="U"] .b-switch-toggle, body[data-role="Y"] .b-switch-toggle {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .16s ease, transform .16s ease;
}
body[data-role="B"] .b-switch a[aria-current="page"],
body[data-role="U"] .b-switch a[aria-current="page"],
body[data-role="Y"] .b-switch a[aria-current="page"] {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
body[data-role="Y"] .b-switch a, body[data-role="Y"] .b-switch-toggle {
  color: #241d0b;
  background: rgba(255,255,255,.38);
  border-color: rgba(36,29,11,.40);
}
body[data-role="Y"] .b-switch a[aria-current="page"] { color: #241d0b; background: #fff; border-color: #fff; }
body[data-role="B"] .b-switch a:focus-visible, body[data-role="U"] .b-switch a:focus-visible, body[data-role="Y"] .b-switch a:focus-visible,
body[data-role="B"] .b-switch-toggle:focus-visible, body[data-role="U"] .b-switch-toggle:focus-visible, body[data-role="Y"] .b-switch-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--buy-accent-strong);
}
body[data-role="B"] .toast { background: linear-gradient(115deg, #1558c8, #2878f0); }
body[data-role="U"] .toast { background: linear-gradient(115deg, #b92d3b, #e34b55); }
body[data-role="Y"] .toast { background: linear-gradient(115deg, #e7a900, #f5c32c); color: #241d0b; }
body[data-role="B"] .toast, body[data-role="U"] .toast, body[data-role="Y"] .toast {
  border-radius: 14px;
  box-shadow: 0 10px 28px var(--buy-glow), 0 4px 12px rgba(0,0,0,.2);
}
body[data-role="B"] .toast.error, body[data-role="U"] .toast.error, body[data-role="Y"] .toast.error {
  background: #9e2f22;
  color: #fff !important;
}
body[data-role="B"] .alert-overlay, body[data-role="U"] .alert-overlay, body[data-role="Y"] .alert-overlay {
  border-radius: 0 0 18px 18px;
  background: linear-gradient(115deg, #8f241a, #c0392b);
}
body[data-role="B"] .callbar, body[data-role="U"] .callbar, body[data-role="Y"] .callbar {
  border-radius: 18px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--buy-accent-strong) 78%, #0b1222), var(--buy-accent-strong));
  box-shadow: 0 12px 32px rgba(0,0,0,.36), 0 0 0 1px rgba(255,255,255,.14) inset;
}
body[data-role="Y"] .callbar { background: linear-gradient(120deg, #3a2e08, #6b4a00); }
body[data-role="B"] .callbar[data-state="ringing"], body[data-role="U"] .callbar[data-state="ringing"], body[data-role="Y"] .callbar[data-state="ringing"] { background: #8a4b00; }
body[data-role="B"] .call-btn:not(:disabled), body[data-role="U"] .call-btn:not(:disabled), body[data-role="Y"] .call-btn:not(:disabled) {
  border-color: var(--buy-accent-line);
  background: var(--buy-accent-soft);
  color: var(--buy-accent-strong);
}
body[data-role="Y"] .call-btn:not(:disabled) { color: #6b4a00; }
@media (max-width: 560px) {
  body[data-role="B"] .b-switch, body[data-role="U"] .b-switch, body[data-role="Y"] .b-switch { gap: 8px; }
  body[data-role="B"] .callbar, body[data-role="U"] .callbar, body[data-role="Y"] .callbar { bottom: 16px; }
}

/* ROUND 7 — fixes from real-browser screenshots (360px / 1024px) */
body[data-role="B"] .b-help, body[data-role="U"] .b-help, body[data-role="Y"] .b-help {
  border: 1px solid rgba(255,255,255,.7);
  background: #fff;
  color: var(--buy-accent-strong);
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
body[data-role="Y"] .b-help { color: #6b4a00; border-color: #fff; }
@media (max-width: 560px) {
  /* switcher + help moved below the title row so the title is no longer squeezed one word per line */
  body[data-role="B"] .topbar, body[data-role="U"] .topbar, body[data-role="Y"] .topbar { flex-wrap: wrap; }
  body[data-role="B"] .topbar > div, body[data-role="U"] .topbar > div, body[data-role="Y"] .topbar > div { flex: 1 1 0; min-width: 0; }
  body[data-role="B"] .b-switch, body[data-role="U"] .b-switch, body[data-role="Y"] .b-switch { flex: 1 1 100%; order: 5; margin-left: 0; }
  body[data-role="B"] .topbar h1, body[data-role="U"] .topbar h1, body[data-role="Y"] .topbar h1 { font-size: 1.45rem; }
}
/* ROUND 7 — inactive switcher pills were accent-colored text on accent header (Round 2 link rule won over white) */
body[data-role="B"] .b-switch a:not([aria-current="page"]),
body[data-role="U"] .b-switch a:not([aria-current="page"]) { color: #fff; }
body[data-role="Y"] .b-switch a:not([aria-current="page"]) { color: #241d0b; }

/* ROUND 8 — leftover green settings/summary colors from the old single theme -> role text color (dark tint keeps contrast, incl. yellow) */
body[data-role="B"] .key-protect > summary, body[data-role="U"] .key-protect > summary, body[data-role="Y"] .key-protect > summary,
body[data-role="B"] .ai-connect-details > summary, body[data-role="U"] .ai-connect-details > summary, body[data-role="Y"] .ai-connect-details > summary,
body[data-role="B"] .b-group > summary, body[data-role="U"] .b-group > summary, body[data-role="Y"] .b-group > summary,
body[data-role="B"] .b-item > summary, body[data-role="U"] .b-item > summary, body[data-role="Y"] .b-item > summary,
body[data-role="B"] .settings-fold > summary, body[data-role="U"] .settings-fold > summary, body[data-role="Y"] .settings-fold > summary {
  color: var(--buy-text);
}
body[data-role="B"] .settings-fold > summary, body[data-role="U"] .settings-fold > summary, body[data-role="Y"] .settings-fold > summary {
  background: var(--buy-accent-soft);
}
body[data-role="B"] .settings-fold, body[data-role="U"] .settings-fold, body[data-role="Y"] .settings-fold,
body[data-role="B"] .b-more, body[data-role="U"] .b-more, body[data-role="Y"] .b-more,
body[data-role="B"] .b-fold, body[data-role="U"] .b-fold, body[data-role="Y"] .b-fold {
  border-color: var(--buy-accent-line);
  border-radius: 14px;
}
body[data-role="B"] .settings-fold[open] > summary, body[data-role="U"] .settings-fold[open] > summary, body[data-role="Y"] .settings-fold[open] > summary {
  border-bottom-color: var(--buy-accent-line);
}
body[data-role="B"] .done-item > summary::before, body[data-role="U"] .done-item > summary::before, body[data-role="Y"] .done-item > summary::before {
  color: var(--buy-accent-strong);
}

/* ========================================================================
   BUY FUTURE UI — ROUND 9 / HOME + LEFTOVERS (visual-only)
   Home (no data-role): tri-color BUY identity, role cards B blue / U red / Y yellow.
   Leftovers: voice test button, "account ready" inline toast (styled from CSS, JS untouched).
   ======================================================================== */
body:not([data-role]) .hero {
  background:
    radial-gradient(circle at 85% 0%, rgba(255,255,255,.22), transparent 14rem),
    linear-gradient(115deg, #123b83 0%, #1765ce 34%, #c52d3f 68%, #f0b81f 100%);
  box-shadow: 0 8px 28px rgba(23, 101, 206, .22);
}
body:not([data-role]) .hero h1 { letter-spacing: -.025em; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
body:not([data-role]) .notice {
  border: 1px solid rgba(148,163,184,.24);
  border-left: 4px solid #e3a72d;
  border-radius: 18px;
  background: linear-gradient(110deg, #fffdf6, rgba(255,255,255,.96) 70%);
  box-shadow: 0 10px 28px rgba(19,39,72,.075);
}
body:not([data-role]) .role-card {
  border-radius: 20px;
  border-width: 1px;
  box-shadow: 0 10px 28px rgba(19,39,72,.09);
  transition: transform .16s ease, box-shadow .16s ease;
}
body:not([data-role]) .role-card.buyer { border-color: #c7ddff; background: linear-gradient(150deg, #edf5ff, #fff 70%); }
body:not([data-role]) .role-card.utter { border-color: #ffd0d4; background: linear-gradient(150deg, #fff1f2, #fff 70%); }
body:not([data-role]) .role-card.yonder { border-color: #f4df9d; background: linear-gradient(150deg, #fff8df, #fff 70%); }
body:not([data-role]) .role-card.buyer .role-letter { background: linear-gradient(120deg, #1558c8, #398af0); }
body:not([data-role]) .role-card.utter .role-letter { background: linear-gradient(120deg, #b92d3b, #e34b55); }
body:not([data-role]) .role-card.yonder .role-letter { background: linear-gradient(120deg, #e7a900, #f5c32c); color: #241d0b; }
body:not([data-role]) .role-card.buyer .open-link { color: #1558c8; }
body:not([data-role]) .role-card.utter .open-link { color: #b92d3b; }
body:not([data-role]) .role-card.yonder .open-link { color: #7a5200; }
body:not([data-role]) .role-card:focus-visible { outline: 3px solid #1558c8; outline-offset: 3px; }
body:not([data-role]) .panel {
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(19,39,72,.075);
}
@media (hover:hover) {
  body:not([data-role]) .role-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(19,39,72,.14); }
}
@media (max-width: 560px) {
  body:not([data-role]) .hero { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  body:not([data-role]) .role-card { transition: none; }
  body:not([data-role]) .role-card:hover { transform: none; }
}
/* voice test button was old green */
body[data-role="B"] #voiceTest, body[data-role="U"] #voiceTest, body[data-role="Y"] #voiceTest {
  border-color: var(--buy-accent-line);
  background: var(--buy-accent-soft);
  color: var(--buy-text);
}
/* "บัญชี BUY พร้อมใช้งาน" inline toast (created by nostr-sync.js with inline dark green) -> role color, rounded rect instead of pill */
body[data-role="B"] > div[role="status"][style*="fixed"]:not(.toast) { background: linear-gradient(115deg, #1558c8, #2878f0) !important; }
body[data-role="U"] > div[role="status"][style*="fixed"]:not(.toast) { background: linear-gradient(115deg, #b92d3b, #e34b55) !important; }
body[data-role="Y"] > div[role="status"][style*="fixed"]:not(.toast) { background: linear-gradient(115deg, #e7a900, #f5c32c) !important; color: #241d0b !important; }
body[data-role="B"] > div[role="status"][style*="fixed"]:not(.toast),
body[data-role="U"] > div[role="status"][style*="fixed"]:not(.toast),
body[data-role="Y"] > div[role="status"][style*="fixed"]:not(.toast) {
  border-radius: 16px !important;
  max-width: min(92vw, 520px);
  text-align: center;
  box-shadow: 0 10px 28px var(--buy-glow), 0 4px 12px rgba(0,0,0,.2);
}

/* ===== พื้นหลังภาพฟ้า + ปุ่ม/ช่องกรอกโปร่งใส (เห็นภาพข้างหลัง ตัวอักษรเข้มเท่าเดิม) =====
   ปรับความทึบได้ที่เดียว: --buy-ctl-alpha (0.75 = ทึบ 75% เห็นพื้นหลัง 25%) — ไม่ใช้ opacity จึงไม่กระทบตัวอักษร */
:root { --buy-ctl-alpha: .75; }
html { background: #cfe3fb; }
body, body[data-role="B"], body[data-role="U"], body[data-role="Y"] { background: transparent; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: #cfe3fb url("assets/bg-blue.jpg") center top / cover no-repeat; }
/* แยกภาพพื้นหลังตามบทบาท: B คงภาพฟ้าเดิม, U ใช้ภาพเมือง BUY สีแดง, Y ใช้ภาพเครือข่ายจัดส่งสีทอง */
body[data-role="U"]::before {
  background-color: #f8c5ca;
  background-image: url("assets/bg-u-red.jpg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}
body[data-role="Y"]::before {
  background-color: #ffe7a6;
  background-image: url("assets/bg-y-yellow.jpg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}
body button, body input, body textarea, body select,
body[data-role] input, body[data-role] textarea, body[data-role] select {
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
body button { background-color: rgba(255,255,255,var(--buy-ctl-alpha)); }
body input, body textarea, body select,
body[data-role] input, body[data-role] textarea, body[data-role] select {
  background: rgba(255,255,255,var(--buy-ctl-alpha)); }
body .danger { background: rgba(255,240,238,var(--buy-ctl-alpha)); }
body .primary { background: color-mix(in srgb, var(--green2) calc(var(--buy-ctl-alpha) * 100%), transparent); }
body[data-role] .primary {
  background: linear-gradient(115deg,
    color-mix(in srgb, var(--buy-accent-strong) calc(var(--buy-ctl-alpha) * 100%), transparent),
    color-mix(in srgb, var(--buy-accent) calc(var(--buy-ctl-alpha) * 100%), transparent)); }
body input[type="checkbox"], body input[type="radio"] { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ===== กล่อง/การ์ด (panel) โปร่งด้วย — ใช้ค่าเดียวกับปุ่ม (--buy-ctl-alpha) ตัวอักษรไม่จาง ===== */
:root, body, body[data-role] { --buy-surface: rgba(255,255,255,var(--buy-ctl-alpha)); --card: rgba(255,255,255,var(--buy-ctl-alpha)); }
body .panel, body .notice, body .role-card, body .item, body .empty, body .evidence, body .evidence-form,
body .track, body .review, body .chat, body .settings-fold, body .settings-collapse, body .done-item,
body .payment-panel, body .payment-qr, body .pay-parties, body .key-form, body .b-more, body .b-fold,
body .nearby-result, body .nearby-preview, body .ai-connect-panel, body .ai-assistant-panel, body .ai-order-panel,
body .ai-greeting-panel, body .ai-greeting-text, body .ai-order-bubble, body .ai-route-list li, body .ai-slang-row,
body .ai-slang-teach, body .buy-conflict-item, body .keyword-chip, body .rating-badge, body .profile > summary,
body[data-role] .panel, body[data-role] .notice, body[data-role] .item, body[data-role] .empty,
body[data-role] .nearby-panel, body[data-role] .nearby-preview, body[data-role] .store-keywords-panel,
body[data-role] .nearby-panel .check {
  background: rgba(255,255,255,var(--buy-ctl-alpha));
}
body .panel, body .notice, body .role-card, body[data-role] .panel { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Form B mascot: transparent PNG frame crossfade */
.b-mascot-crossfade{position:relative;width:63px;height:130px;flex:none;overflow:visible}
.b-mascot-crossfade .b-mascot-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity 320ms ease-in-out;pointer-events:none}
.b-mascot-crossfade .b-mascot-frame.is-active{opacity:1}
@media(max-width:680px){.b-mascot-crossfade{width:52px;height:65px}}
@media(prefers-reduced-motion:reduce){.b-mascot-crossfade .b-mascot-frame{transition:none}}

/* BUY 2.2.1 — U/Y translucent surfaces: 75% surface opacity = 25% background visible.
   Do not apply opacity to containers; text remains fully opaque and readable. */
body[data-role="U"] .blk::before {
  background-color: color-mix(in srgb, #b92d3b 75%, transparent);
}
body[data-role="Y"] .blk::before {
  background-color: color-mix(in srgb, #e7a900 75%, transparent);
}


/* BUY 2.2.2 — U/Y mascot crossfade, matching the gentle Form B animation */
.role-mascot-crossfade{position:relative;width:63px;height:130px;flex:none;overflow:visible}
.role-mascot-crossfade .role-mascot-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity 520ms ease-in-out;pointer-events:none}
.role-mascot-crossfade .role-mascot-frame.is-active{opacity:1}
@media(max-width:680px){.role-mascot-crossfade{width:52px;height:65px}}
@media(prefers-reduced-motion:reduce){.role-mascot-crossfade .role-mascot-frame{transition:none}}

/* B: ตลาดชุมชนอยู่ใต้ 2 ช้อยส์ — ซ่อนจริงเมื่อยังไม่เลือกช้อยส์ 2 */
#buyerNearbyPanel[hidden]{display:none !important}

/* BUY Catalog Lite — compact, optional store image library */
.catalog-lite-panel{margin-top:12px}
.catalog-lite-preview{display:block;width:100%;max-height:280px;object-fit:contain;background:var(--panel-soft,#f5f5f5);border-radius:12px;margin:10px 0}
.catalog-lite-thumbs{display:flex;gap:9px;overflow-x:auto;padding:8px 2px}
.catalog-lite-thumb{flex:0 0 92px;max-width:92px;padding:5px;border:1px solid var(--line,#ddd);border-radius:10px;background:var(--panel,#fff);text-align:left}
.catalog-lite-thumb.selected{border:2px solid var(--accent,#2673d9);padding:4px}
.catalog-lite-thumb img{display:block;width:100%;height:68px;object-fit:cover;border-radius:6px}
.catalog-lite-thumb span{display:block;font-size:12px;line-height:1.35;margin-top:4px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.catalog-offer-picker{margin:8px 0;padding:8px;border:1px solid var(--line,#ddd);border-radius:10px}
.catalog-offer-picker summary{cursor:pointer;font-weight:600}
.catalog-offer-row{display:flex;gap:8px;margin-top:8px;align-items:center}
.catalog-offer-row select{min-width:0;flex:1}
@media(max-width:480px){.catalog-offer-row{align-items:stretch;flex-direction:column}}

/* Catalog Lite — compact horizontal recommendations on Buyer store cards. */
.catalog-lite-cover { display:block; width:144px; height:144px; max-width:100%; object-fit:cover; border-radius:.55rem; margin:.45rem 0; }
.catalog-lite-recommendations { display:flex; gap:.5rem; overflow-x:auto; overscroll-behavior-inline:contain; padding:.35rem 0 .55rem; margin:.25rem 0; scroll-snap-type:x proximity; }
.catalog-lite-recommendation { flex:0 0 auto; min-width:8.5rem; max-width:12rem; display:flex; flex-direction:column; align-items:flex-start; gap:.2rem; padding:.55rem .7rem; border:1px solid #dce5df; border-radius:.6rem; background:#f8fbf8; color:inherit; text-align:left; scroll-snap-align:start; }
.catalog-lite-recommendation small { color:#52645a; font-size:.85em; }

/* แชตเลือกผู้รับ: แถวช่องพิมพ์+ส่ง แล้วตามด้วยกลุ่ม 🎙️+📞 ต่อคน */
.chat-send{flex-wrap:wrap}.chat-send input{flex:1 1 60%}.chat-send button[data-chat]{flex:0 0 auto}
.chat-send .chat-to{display:flex;gap:8px;flex:1 1 100%}.chat-send .chat-to .mic{flex:1 1 0;min-width:0}
.chat-send .chat-mic:disabled{opacity:.5}

/* ปุ่ม ❓ วิธีใช้ อยู่ในแถวตัวสลับบทบาท (ไม่ทับมาสคอต) */
.b-switch .b-help{margin-top:0;padding:4px 12px;font-size:.85rem;min-height:32px;white-space:nowrap;align-self:center}

/* ปุ่มวิธีใช้: วงกลม "?" ลอยมุมขวาล่าง อยู่นอกหัวหน้า ไม่บังมาสคอต */
#roleHelpBtn.b-help-float{position:fixed!important;right:14px!important;bottom:90px!important;left:auto!important;top:auto!important;width:42px!important;height:42px!important;min-width:0!important;margin:0!important;padding:0!important;border-radius:50%!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:1.3rem!important;font-weight:800!important;line-height:1!important;white-space:nowrap!important;z-index:9999!important;opacity:.85;box-shadow:0 4px 14px rgba(0,0,0,.28)!important}
#roleHelpBtn.b-help-float:hover,#roleHelpBtn.b-help-float:focus-visible{opacity:1}

/* แถบโชว์ไว้ก่อน (ยังไม่มีออเดอร์): คู่ 🎙️ พูดถึง… + 📞 โทร… ต่อคน */
.callhint .chat-to{display:flex;gap:8px;flex:1 1 230px}.callhint .chat-to .mic{flex:1 1 0;min-width:0}
.callhint .chat-mic{margin:0;white-space:nowrap;opacity:.5}

/* Nearby: ตัวเลือกวิธีส่งคำขอใช้ radio ปกติ ไม่แสดงเป็นปุ่ม */
.nearby-choice-list { display:flex; flex-wrap:wrap; gap:.5rem 1.25rem; align-items:center; margin:.75rem 0; }
.nearby-choice-list label { display:inline-flex; align-items:center; gap:.4rem; cursor:pointer; font-weight:400; }
.nearby-choice-list input[type="radio"] { width:auto; min-height:0; margin:0; accent-color:#26735c; }

/* v2.2.19: X ลบคำขอออกจากเครื่อง U โดยไม่ปะปนกับปุ่มยกเลิกออเดอร์ */
.request-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.request-item-head h3{flex:1;min-width:0}
/* U: กล่อง "Nearby ร้าน" เป็นข้อความระบบ ไม่ใช่ของผู้ใช้ — ซ่อนจากจอ (ยังอยู่ใน DOM เพื่อให้ระบบ Nearby ทำงานอัตโนมัติตามเดิม) */
body[data-role="U"] #roleNearbyFold{display:none!important}

/* v2.2.30/33: ปุ่มถังขยะเล็ก ๆ มุมบนขวาของช่องข้อความ ห่างจากไมค์ (หน้า B) — ล้างข้อความที่พิมพ์/พูดไว้ทั้งหมด */
body[data-role="B"] #requestForm #descClear.desc-clear {
  position: absolute;
  right: 15px;
  top: 8px; /* v2.2.33: ย้ายไปมุมบนขวา ห่างจากไมค์ (มุมล่างขวา) กันนิ้วเผลอโดนลบข้อความ */
  bottom: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #f0c4c0;
  border-radius: 50%;
  background: #fff6f5;
  color: #b3261e;
  box-shadow: 0 2px 6px rgba(179,38,30,.10);
  font-size: .85rem;
  line-height: 1;
  cursor: pointer;
}
body[data-role="B"] #requestForm #descClear.desc-clear:active { background: #ffe3e0; }

/* v2.2.55: โหมดเบาอัตโนมัติ (buy.js ใส่คลาส lite-fx เมื่อแรม <= 4 GB หรือ CPU <= 4 แกน) — ปิดเบลอพื้นหลังและแอนิเมชันวนที่กิน GPU/แรม ; หน้าตา/ฟังก์ชันอื่นเหมือนเดิม */
.lite-fx *, .lite-fx *::before, .lite-fx *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.lite-fx .mascot-step-motion, .lite-fx .mascot-idle-motion, .lite-fx .mascot-blink-overlay, .lite-fx .guide-pulse { animation: none !important; }
.lite-fx .need-blink { animation: none; box-shadow: 0 0 0 2px rgba(255,170,0,.7); }

/* v2.2.186: ปุ่มนูนนุ่ม (เงาชั้นเดียว กดแล้วจมลง) ; โหมดเบา lite-fx ปิดเงา */
button:not(:disabled):not(.rstar){box-shadow:3px 3px 8px rgba(0,0,0,.16),-2px -2px 6px rgba(255,255,255,.7)}
button:not(:disabled):not(.rstar):active{box-shadow:inset 2px 2px 5px rgba(0,0,0,.22);filter:none}
.lite-fx button{box-shadow:none !important}

/* v2.2.186: ปุ่มไมค์ในแถบแชต = แคปซูล วงกลมไมค์ซ้าย ข้อความขวา (แบบ 9) */
.chat-mic{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;padding:4px 14px 4px 4px;border-radius:999px;border:1px solid var(--line);background:var(--cream);color:var(--ink);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-mic::before{content:"";flex:none;width:30px;height:30px;border-radius:50%;background:var(--green2) center/18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='11' rx='3'/%3E%3Cpath d='M5 10a7 7 0 0 0 14 0'/%3E%3Cpath d='M12 17v4'/%3E%3C/svg%3E")}
.chat-mic[aria-pressed="true"]{color:#b3261e;border-color:#e3b3ae}
.chat-mic[aria-pressed="true"]::before{background:#b3261e center/14px 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Crect x='5' y='5' width='14' height='14' rx='2'/%3E%3C/svg%3E")}

/* v2.2.186: สวิตช์รับงานของไรเดอร์ (แบบ 3) — ยังเป็นช่องติ๊กเดิม #riderAvailable */
label.check.sw-row{display:flex;align-items:center;gap:10px;cursor:pointer;position:relative}
label.check.sw-row input{position:absolute;opacity:0;width:46px;height:26px;margin:0;left:0;top:50%;transform:translateY(-50%)}
.sw-ui{flex:none;width:46px;height:26px;border-radius:13px;background:#b9c4bd;position:relative}
.sw-ui::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3)}
.sw-row input:checked + .sw-ui{background:#1f9d55}
.sw-row input:checked + .sw-ui::after{left:23px}
.sw-row input:focus-visible + .sw-ui{outline:2px solid var(--green2);outline-offset:2px}
#riderAvailableText{font-weight:500}#riderAvailableText.warn{color:#8a5a00}

/* v2.2.186: รีวิวแบบตัวเลขสรุป 👍/👎 */
.rating-badge .rc.up{color:#1f7a45;font-weight:500}.rating-badge .rc.dn{color:#b3261e;font-weight:500}

@font-face{font-family:'BuyBtn';font-weight:700;font-style:normal;font-display:swap;src:url('/assets/fonts/Poppins-Bold-BUY.woff') format('woff')}
/* v2.2.192 ฟอนต์ Poppins ตัวหนา (ฝังเฉพาะอักษร B U Y) · v2.2.191: ปุ่ม "B U Y" กลางบนหัวหน้า B/U/Y — เอฟเฟกต์เรืองแสงหายใจ + ตัวอักษรเด้งเป็นคลื่น (ต่างจากปุ่มบทบาทที่เป็นแสงวิ่งผ่าน) */
body[data-role] .topbar{position:relative;padding-top:58px}
body[data-role] .topbar a.home{position:absolute;top:10px;left:0;right:0;margin:0 auto;width:max-content;align-self:auto;display:inline-flex;gap:.28em;align-items:center;justify-content:center;min-height:38px;padding:6px 22px;border-radius:999px;background:#fff;text-decoration:none;font:700 1.3rem/1 'BuyBtn','Poppins',system-ui,sans-serif;text-transform:uppercase;letter-spacing:.16em;box-shadow:0 2px 0 rgba(0,0,0,.2),0 0 0 2px rgba(255,255,255,.55);animation:homeGlow 2.8s ease-in-out infinite;transition:transform .18s ease}
body[data-role] .topbar a.home span{display:inline-block;-webkit-text-stroke:1px currentColor;paint-order:stroke fill;animation:homeWave 2.4s ease-in-out infinite}
body[data-role] .topbar a.home span:nth-child(1){color:#0b57d0}
body[data-role] .topbar a.home span:nth-child(2){color:#d93025;animation-delay:.2s}
body[data-role] .topbar a.home span:nth-child(3){color:#d99100;animation-delay:.4s}
body[data-role] .topbar a.home:hover,body[data-role] .topbar a.home:focus-visible{transform:scale(1.07)}
body[data-role] .topbar a.home:active{transform:scale(.96)}
@keyframes homeGlow{0%,100%{box-shadow:0 2px 0 rgba(0,0,0,.2),0 0 0 2px rgba(255,255,255,.55),0 0 6px 0 rgba(255,255,255,.35)}50%{box-shadow:0 2px 0 rgba(0,0,0,.2),0 0 0 2px rgba(255,255,255,.9),0 0 18px 4px rgba(255,255,255,.7)}}
@keyframes homeWave{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-4px)}}
@media (prefers-reduced-motion:reduce){body[data-role] .topbar a.home,body[data-role] .topbar a.home span{animation:none}}

/* v2.2.196: ปุ่ม "ส่งคำขอ สั่งสินค้า" ของ B — ขยับเบา ๆ ตอนมีข้อความ/กำลังพูด + กดแล้วบุ๋มลงและเด้งขึ้นเบา ๆ */
body[data-role="B"] #requestForm .voice-submit{transition:transform .22s cubic-bezier(.34,1.56,.64,1),box-shadow .22s ease,filter .22s ease;will-change:transform}
body[data-role="B"] #requestForm .voice-submit.is-nudging{animation:buyNudge 2.2s ease-in-out infinite}
body[data-role="B"] #requestForm .voice-submit:active{animation:none;transform:translateY(3px) scale(.975);filter:brightness(.95);box-shadow:0 1px 4px rgba(29,88,190,.22),inset 0 3px 7px rgba(0,0,0,.22)}
@keyframes buyNudge{0%,100%{transform:translateY(0) scale(1)}35%{transform:translateY(-2px) scale(1.012)}65%{transform:translateY(0) scale(1)}}
@media (prefers-reduced-motion:reduce){body[data-role="B"] #requestForm .voice-submit.is-nudging{animation:none;outline:3px solid rgba(55,133,245,.28)}body[data-role="B"] #requestForm .voice-submit{transition:none}}

/* v2.2.197: ปุ่มไมค์ B แบบ 8 — แคปซูลเข้ม "แตะเพื่อพูด" ; ตอนฟังเป็นสีแดง "กำลังฟัง" + แถบคลื่นเสียงขยับ */
body[data-role="B"] #requestForm #description{padding-bottom:56px}
body[data-role="B"] #requestForm #micButton.mic-inline{width:auto;min-width:0;height:40px;padding:0 16px;gap:8px;border:0;border-radius:999px;background:#8fe3b0;color:#0b3b24;font-size:.95rem;font-weight:700;white-space:nowrap;box-shadow:0 3px 9px rgba(20,90,55,.22);transition:transform .2s cubic-bezier(.34,1.56,.64,1),background .2s ease,color .2s ease}
body[data-role="B"] #requestForm #micButton.mic-inline:active{transform:scale(.95)}
body[data-role="B"] #requestForm #micButton.mic-inline[aria-pressed="true"]{background:#ff9a93;color:#5a0d08;border:0;box-shadow:0 3px 9px rgba(179,38,30,.25)}
#micButton .mic-ico{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#micButton .mic-ico-on{width:13px;height:13px;fill:currentColor;stroke:none;display:none}
#micButton .mic-eq{display:inline-flex;gap:2px;align-items:center;height:16px}
#micButton .mic-eq b{width:3px;height:5px;background:currentColor;border-radius:2px}
#micButton .mic-lbl-on{display:none}
#micButton[aria-pressed="true"] .mic-ico-idle,#micButton[aria-pressed="true"] .mic-lbl-idle{display:none}
#micButton[aria-pressed="true"] .mic-ico-on,#micButton[aria-pressed="true"] .mic-lbl-on{display:inline-block}
#micButton[aria-pressed="true"] .mic-eq b{animation:micEq .8s ease-in-out infinite}
#micButton[aria-pressed="true"] .mic-eq b:nth-child(2){animation-delay:.15s}
#micButton[aria-pressed="true"] .mic-eq b:nth-child(3){animation-delay:.3s}
#micButton[aria-pressed="true"] .mic-eq b:nth-child(4){animation-delay:.45s}
@keyframes micEq{50%{height:16px}}
@media (prefers-reduced-motion:reduce){#micButton[aria-pressed="true"] .mic-eq b{animation:none;height:12px}body[data-role="B"] #requestForm #micButton.mic-inline{transition:none}}

/* v2.2.198: ปุ่มไมค์ B สีอ่อน (เขียวอ่อน / ตอนพูดแดงอ่อน) "แตะไมค์พูด สั่งสินค้า" ; ปุ่มส่งคำขอมีแสงวิ่งผ่านเวลาขยับ (ใช้ ::after ล้วน ๆ ไม่เพิ่ม JS) */
body[data-role="B"] #requestForm .voice-submit{position:relative;overflow:hidden;isolation:isolate}
body[data-role="B"] #requestForm .voice-submit::after{content:"";position:absolute;top:0;bottom:0;left:0;width:45%;background:linear-gradient(105deg,transparent 0%,rgba(255,255,255,.55) 50%,transparent 100%);transform:translateX(-130%) skewX(-18deg);opacity:0;pointer-events:none;z-index:-1}
body[data-role="B"] #requestForm .voice-submit.is-nudging::after{opacity:1;animation:buyShine 2.2s ease-in-out infinite}
@keyframes buyShine{0%,15%{transform:translateX(-130%) skewX(-18deg)}70%,100%{transform:translateX(330%) skewX(-18deg)}}
@media (prefers-reduced-motion:reduce){body[data-role="B"] #requestForm .voice-submit.is-nudging::after{animation:none;opacity:0}}

/* v2.2.199: ไมค์ B ตอนยังไม่มีข้อความ/ไม่ได้ฟัง (.is-calling) = แวววาว + ขยับเบา ๆ ; มีข้อความหรือกำลังฟัง = หยุด */
body[data-role="B"] #requestForm #micButton.mic-inline.is-calling{animation:micCall 2.4s ease-in-out infinite}
body[data-role="B"] #requestForm #micButton.mic-inline.is-calling:active{animation:none}
body[data-role="B"] #requestForm #micButton.mic-inline.is-calling::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.75) 50%,transparent 65%);background-size:260% 100%;background-position:130% 0;animation:micShine 2.4s ease-in-out infinite}
body[data-role="B"] #requestForm #micButton.mic-inline.is-calling::before{content:"✦";position:absolute;top:-7px;right:12px;font-size:13px;line-height:1;color:#fff;text-shadow:0 0 6px #fff,0 0 10px #4cc98a;pointer-events:none;animation:micTwinkle 1.6s ease-in-out infinite}
@keyframes micCall{0%,100%{transform:translateY(0) scale(1);box-shadow:0 3px 9px rgba(20,90,55,.22)}50%{transform:translateY(-2px) scale(1.035);box-shadow:0 0 0 4px rgba(143,227,176,.35),0 6px 14px rgba(20,90,55,.28)}}
@keyframes micShine{0%,20%{background-position:130% 0}70%,100%{background-position:-30% 0}}
@keyframes micTwinkle{0%,100%{opacity:0;transform:scale(.4) rotate(0)}50%{opacity:1;transform:scale(1.15) rotate(30deg)}}
@media (prefers-reduced-motion:reduce){body[data-role="B"] #requestForm #micButton.mic-inline.is-calling,body[data-role="B"] #requestForm #micButton.mic-inline.is-calling::after,body[data-role="B"] #requestForm #micButton.mic-inline.is-calling::before{animation:none}body[data-role="B"] #requestForm #micButton.mic-inline.is-calling::after{display:none}body[data-role="B"] #requestForm #micButton.mic-inline.is-calling::before{opacity:1}}

/* v2.2.206: แยกส่วน รัศมี/จัดส่ง/งานพิเศษ/GPS ออกจากกรอบบล็อก 1 (บล็อก 1 จบที่คำอธิบายรูปสินค้า) — ช่องเหล่านี้ยังเป็นของฟอร์มเดิมผ่านแอตทริบิวต์ form="requestForm" */
body[data-role="B"] .send-opts{display:grid;gap:8px;margin-top:10px}
.store-online-bar label.sw-row{font-weight:800;font-size:16px}

/* [BLOCK-SHADE] v2.2.220 — สีบล็อก 1/2/3 ไล่ระดับ อ่อน → กลาง → เริ่มเข้ม ตามบทบาท (เจ้าของสั่ง)
   B = ฟ้า · U = แดง · Y = เหลือง ; ไฟล์นี้ต่อท้ายสุดของ buy.css เพื่อทับกติกา .blk1/.blk2/.blk3 เก่าด้านบน (บรรทัด ~31-43, ~527, ~709, ~816)
   ถ้าสีบล็อกไม่ตรง: เช็กว่ามีกติกาใหม่ที่ specificity เท่ากันและอยู่ท้ายกว่าบล็อกนี้หรือไม่ · ตัวหนังสือในบล็อกต้องยังเป็นสีเข้ม (--buy-text) อ่านชัด */
body[data-role="B"] .blk1 { background: #e8f3ff; border-left-color: #8dbcf5; }
body[data-role="B"] .blk2 { background: #bcdbff; border-left-color: #4f95e8; }
body[data-role="B"] .blk3 { background: #8dbcf5; border-left-color: #2272d6; }
body[data-role="U"] .blk1 { background: #ffe9ea; border-left-color: #f59aa1; }
body[data-role="U"] .blk2 { background: #ffc2c6; border-left-color: #ec6670; }
body[data-role="U"] .blk3 { background: #f59aa1; border-left-color: #cf3441; }
body[data-role="Y"] .blk1 { background: #fff6cf; border-left-color: #f4d35e; }
body[data-role="Y"] .blk2 { background: #ffe58a; border-left-color: #f2bd28; }
body[data-role="Y"] .blk3 { background: #fbd04d; border-left-color: #d69b08; }
