/* Restaurant only: preserve existing art, transparent Xiaojiu and voice input. */
.conversation-app[data-shop-page="true"]{width:min(100%,402px)}
@media(min-width:520px){.conversation-app[data-shop-page="true"]{height:calc(var(--conversation-height,100dvh) - 20px);margin:10px auto;border-radius:28px}}
.conversation-app[data-scene="restaurant"],.shop-place[data-place="restaurant"]{--restaurant-ink:#493f35;--restaurant-muted:#918172;--restaurant-green:#62745c;--restaurant-line:#e6dfd3;--restaurant-paper:#fbf8f1;color:var(--restaurant-ink);background:var(--restaurant-paper)}
.conversation-app[data-scene="restaurant"] .conversation-header{background:var(--restaurant-paper);border-bottom:0;padding-inline:16px;min-height:54px}
.conversation-app[data-scene="restaurant"] #world-shop-back{background:transparent;color:#706254;padding-left:0;font-size:12px}
.conversation-app[data-scene="restaurant"] #open-chat-menu{background:#eee9e0;color:#716455;border-radius:50%;width:44px;min-height:44px;height:44px}
.conversation-app[data-scene="restaurant"] #conversation-title{font-size:17px;letter-spacing:2px;color:var(--restaurant-ink)}
.conversation-app[data-scene="restaurant"] .character-stage{position:relative;height:166px;min-height:166px;padding:0 25px 0 0;background-image:linear-gradient(0deg,#604a2925,transparent 70%),url('https://tinymigo.com/japanese/assets/scene-restaurant-v1.png');background-position:center 50%;border:0;border-radius:0 0 22px 22px;overflow:hidden;transition:height .18s ease,min-height .18s ease}
.conversation-app[data-scene="restaurant"] .conversation-character{width:132px;height:145px;align-self:flex-end;filter:drop-shadow(0 5px 5px #46332425)}
.conversation-app[data-scene="restaurant"] .conversation-character .xiaojiu-motion__art{width:128px;max-height:140px;object-fit:contain}
.restaurant-companion{position:absolute;left:20px;bottom:22px;padding:8px 11px;background:#fffaf0e8;border:1px solid #fffcf399;border-radius:10px;font-size:12px;color:#67563f;backdrop-filter:blur(6px)}
.restaurant-views{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 18px;min-height:58px;flex-shrink:0;background:var(--restaurant-paper)}
.restaurant-views>div{display:flex;align-items:center;padding:0;background:#ede9e0;border-radius:13px;gap:2px}
.restaurant-views button{min-height:44px;padding:5px 20px;border-radius:10px;font-size:14px;color:#877969;display:flex;align-items:center;justify-content:center;gap:7px}
.restaurant-views button[aria-pressed="true"]{background:#fffdf9;color:var(--restaurant-ink);box-shadow:0 2px 7px #55493810;font-weight:650}
.restaurant-views button:focus-visible{outline-width:2px;outline-offset:1px}
#restaurant-menu-badge{display:inline-grid;place-items:center;background:var(--restaurant-green);color:white;min-width:19px;height:19px;border-radius:50%;font:11px/1 sans-serif}
.restaurant-view-caption{font-size:11px;color:var(--restaurant-muted);white-space:nowrap}
.conversation-app[data-scene="restaurant"] .conversation-thread{background:var(--restaurant-paper);padding:10px 18px 16px;scrollbar-color:#d9d1c3 transparent}
.conversation-app[data-scene="restaurant"] .conversation-message{max-width:90%;padding:13px 15px;margin-bottom:14px;border-color:#ebe5d9;border-radius:6px 18px 18px 18px;background:#fffefb;box-shadow:0 3px 8px #5e4c3610}
.conversation-app[data-scene="restaurant"] .conversation-message>p{font-size:18px;line-height:1.75;color:var(--restaurant-ink)}
.conversation-app[data-scene="restaurant"] .conversation-message.user{background:#e8eddf;border-color:#e2e9d7;border-radius:18px 6px 18px 18px;box-shadow:none}
.conversation-app[data-scene="restaurant"] .message-speaker{color:#978672;font-size:10px;margin-bottom:4px;letter-spacing:1px}
.conversation-app[data-scene="restaurant"] .message-tools>summary{color:#758165;font-size:12px}
.conversation-app[data-scene="restaurant"] .message-tools[open]>summary{background:#eef0e6}
.conversation-app[data-scene="restaurant"] .message-meaning{color:#796b5a;border-color:#ece6d9}
.conversation-app[data-scene="restaurant"] .message-tool-options button{color:#657257;background:#eef0e6;border-radius:11px;padding-inline:13px}
.conversation-app[data-scene="restaurant"] .conversation-composer{padding:9px 18px max(19px,env(safe-area-inset-bottom));background:var(--restaurant-paper);border-top:1px solid #ece5d8}
.conversation-app[data-scene="restaurant"] .voice-controls{min-height:117px}
.conversation-app[data-scene="restaurant"] .voice-controls .conversation-mic{width:76px;height:76px;min-height:76px;background:var(--restaurant-green);box-shadow:0 5px 16px #58674822}
.conversation-app[data-scene="restaurant"] .voice-controls .conversation-mic::before{border-color:#a5b399;opacity:.45;inset:-7px}
.conversation-app[data-scene="restaurant"] .voice-controls .conversation-mic>span{color:#847462;font-size:12px;top:calc(100% + 10px)}
.conversation-app[data-scene="restaurant"] .voice-controls .conversation-mic:disabled{background:#e3e5d9;color:#848a75;box-shadow:none}
.conversation-app[data-scene="restaurant"] .voice-controls .conversation-mic[data-state="listening"]{background:#4c6546;box-shadow:0 0 0 calc(5px + var(--voice-level)*12px) #bbcaae55}
.conversation-app[data-scene="restaurant"] .voice-controls .gesture-side,.conversation-app[data-scene="restaurant"] .voice-draft{background:#e9eddf!important;border-color:#b9c4a9;color:#62745c}
.conversation-app[data-scene="restaurant"] .voice-controls[data-direction="cancel"] #cancel-voice-draft{background:#9f3631!important;color:#fff}
.conversation-app[data-scene="restaurant"] .voice-controls[data-direction="send"] #send-voice-draft{background:#4c6546!important;color:#fff}
.conversation-app[data-scene="restaurant"] .voice-controls .conversation-mic[data-state][data-direction="cancel"]{background:#9f3631}
.conversation-app[data-scene="restaurant"] .voice-controls .conversation-mic[data-state][data-direction="send"]{background:#4c6546}
.conversation-app[data-scene="restaurant"] .voice-controls #toggle-keyboard{color:#9a8a77}
.conversation-app[data-scene="restaurant"] .conversation-composer textarea{border-color:#e1dbce;background:#fffdf8;color:var(--restaurant-ink);border-radius:14px}
.conversation-app[data-scene="restaurant"] .conversation-composer form>button{background:var(--restaurant-green)}
.conversation-app[data-scene="restaurant"] .scene-order-panel{position:relative;inset:auto;flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:0;border:0;border-radius:0;box-shadow:none;background:var(--restaurant-paper)}
.conversation-app[data-scene="restaurant"][data-restaurant-view="menu"] .character-stage{height:108px;min-height:108px;background-position:center 48%}
.conversation-app[data-scene="restaurant"][data-restaurant-view="menu"] .conversation-character{width:100px;height:100px}
.conversation-app[data-scene="restaurant"][data-restaurant-view="menu"] .conversation-character .xiaojiu-motion__art{width:94px;max-height:100px}
.conversation-app[data-scene="restaurant"][data-restaurant-view="menu"] .restaurant-companion{bottom:16px;font-size:11px;padding:6px 9px}
.conversation-app[data-scene="restaurant"][data-restaurant-view="menu"] .conversation-thread,.conversation-app[data-scene="restaurant"][data-restaurant-view="menu"] .conversation-composer,.conversation-app[data-scene="restaurant"][data-restaurant-view="menu"] #new-messages,.conversation-app[data-scene="restaurant"][data-restaurant-view="menu"] #restaurant-order-strip{display:none!important}
.restaurant-menu-heading{display:flex;align-items:center;justify-content:space-between;padding:0 19px 6px;min-height:37px;flex-shrink:0}
.restaurant-menu-heading h2{font-size:15px;font-weight:650;letter-spacing:.4px}
.restaurant-menu-heading>button{font-size:11px;color:#7c8869;min-height:44px;padding:4px 0}
.restaurant-menu-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 16px 12px;scrollbar-width:thin;scrollbar-color:#d9d1c3 transparent}
.restaurant-dishes{display:grid;gap:7px}
.restaurant-dish{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px;padding:7px 8px 7px 7px;border:1px solid #e9e3d7;background:#fffdf9;border-radius:15px;min-height:80px;box-shadow:0 2px 5px #80633e06;transition:border-color .15s,background .15s}
.restaurant-dish.selected{border-color:#b6c1a3;background:#f2f5e9}
.restaurant-dish>button{display:flex;align-items:center;gap:11px;min-width:0;flex:1;text-align:left;padding:0;min-height:64px}
.restaurant-dish .scene-product-art{height:64px;min-width:64px;width:64px;aspect-ratio:1;border-radius:11px;margin:0;flex-shrink:0}
.restaurant-dish-name{display:flex;flex-direction:column;gap:3px;min-width:0}
.restaurant-dish-name strong{font-size:14px;line-height:1.3;font-weight:650}
.restaurant-dish-name small{font-size:10px;color:#8a7e6c;line-height:1.3}
.restaurant-dish-name b{font-size:13px;line-height:1.3;color:#687457;font-weight:550}
.restaurant-dish .product-word-tools{grid-row:2;grid-column:1 / -1;justify-content:flex-start;padding-left:75px}
.restaurant-dish .scene-quantity{grid-row:1;grid-column:2}
.restaurant-dish .scene-quantity{display:flex;align-items:center;justify-content:center;flex-shrink:0;border:0;gap:0}
.restaurant-dish .scene-quantity button{width:44px;min-width:44px;min-height:44px;padding:0;font-size:20px;color:#697656;border-radius:50%;background:#eef1e6}
.restaurant-dish .scene-quantity button:disabled{background:transparent;color:#a69d8e;opacity:.65}
.restaurant-dish .scene-quantity output{min-width:19px;text-align:center;font-size:13px;color:#655640}
.conversation-app[data-scene="restaurant"] .scene-order-tray{border-color:var(--restaurant-line);margin-top:15px;padding-top:13px}
.conversation-app[data-scene="restaurant"] .scene-order-tray h3{font-size:15px}
.conversation-app[data-scene="restaurant"] .scene-order-tray>button{font-size:11px;color:#9d8072;padding:4px 0}
.conversation-app[data-scene="restaurant"] .scene-total strong{color:var(--restaurant-ink)}
.conversation-app[data-scene="restaurant"] .scene-training-note{margin:9px 0 0;font-size:10px;color:#aa9b88}
.restaurant-menu-footer{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fffdf8;border-top:1px solid var(--restaurant-line);padding:12px 18px max(18px,env(safe-area-inset-bottom));box-shadow:0 -7px 18px #6c583507}
.restaurant-order-info{display:flex;flex-direction:column;gap:4px;min-width:0}
.restaurant-order-info small{font-size:11px;color:#91806d;line-height:1.35}
.restaurant-order-info strong{font-size:23px;font-weight:650;line-height:1.1;color:var(--restaurant-ink)}
.restaurant-order-info span{font-size:10px;color:#a08e78}
.restaurant-next-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
.restaurant-next-actions button{font-size:12px;min-height:44px;padding:10px 14px;border-radius:13px;background:#eceee3;color:#62745c;white-space:nowrap}
.restaurant-next-actions button:first-child{background:var(--restaurant-green);color:white}
.restaurant-next-actions button:disabled{background:#e8e5dc;color:#aaa18e;opacity:1}
.restaurant-order-strip{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 17px 8px;padding:10px 12px;background:#f1f2e7;border:1px solid #e2e5d4;border-radius:16px}
.restaurant-order-strip .restaurant-order-info small{color:#647055;font-size:12px;font-weight:600}
.restaurant-order-strip .restaurant-next-actions button{font-size:11px;min-height:44px;padding:8px 11px;border-radius:11px}
.conversation-app[data-scene="restaurant"] .completion{background:#edf0e4;border-radius:16px;padding:13px 15px;margin-bottom:9px;color:#6a7459}
.conversation-app[data-scene="restaurant"] .completion button{background:#dfe6d2;color:#62745c}
.conversation-app[data-scene="restaurant"] button:focus-visible,.conversation-app[data-scene="restaurant"] summary:focus-visible{outline-color:#879b73}
.shop-place[data-place="restaurant"]{position:relative;display:block}
.shop-place[data-place="restaurant"] .shop-place-header{position:absolute;inset:0 0 auto;z-index:2;background:linear-gradient(#fbf8f1f5,#fbf8f1dd);border:0;padding-inline:18px;min-height:56px;backdrop-filter:blur(10px)}
.shop-place[data-place="restaurant"] .shop-place-header h1{font-size:17px;letter-spacing:2px;color:var(--restaurant-ink)}
.shop-place[data-place="restaurant"] .shop-place-header button{font-size:12px;color:#716252}
.shop-place[data-place="restaurant"] .shop-place-art{position:absolute;inset:0;height:100%}
.shop-place[data-place="restaurant"] .shop-place-art img{object-position:center}
.shop-place[data-place="restaurant"] .table-menu{right:17px;top:50%;display:flex;align-items:center;gap:8px;min-height:53px;padding:10px 15px;background:#fffdf2f5;border:1px solid #e8dcca;border-radius:16px;color:#6b7257;font-size:13px;box-shadow:0 5px 18px #49372030;backdrop-filter:blur(8px)}
.shop-place[data-place="restaurant"] .table-menu svg{width:23px;height:23px;flex-shrink:0}
.shop-place[data-place="restaurant"] .shop-place-actions{position:absolute;bottom:0;left:0;right:0;z-index:2;padding:44px 24px max(28px,env(safe-area-inset-bottom));background:linear-gradient(transparent,#fbf8f1ed 38%,#fbf8f1 75%)}
.restaurant-place-kicker{font-size:11px;color:#988269;letter-spacing:1px}
.shop-place[data-place="restaurant"] .shop-place-actions h2{font-size:25px;font-weight:550;letter-spacing:1px;margin:5px 0 17px;color:#574634}
.shop-place[data-place="restaurant"] .shop-place-actions .primary{display:flex;align-items:center;justify-content:flex-start;gap:12px;background:var(--restaurant-green);color:#fffdf8;border:0;border-radius:17px;min-height:55px;padding:12px 17px;font-size:14px;box-shadow:0 6px 20px #59634925}
.shop-place[data-place="restaurant"] .shop-place-actions .primary svg{width:23px;height:23px}
.shop-place[data-place="restaurant"] .shop-place-actions .primary b{margin-left:auto;font-weight:400;font-size:23px}
@media(max-height:630px){.conversation-app[data-scene="restaurant"] .character-stage{height:90px;min-height:90px}.conversation-app[data-scene="restaurant"] .conversation-character{width:80px;height:87px}.conversation-app[data-scene="restaurant"] .conversation-character .xiaojiu-motion__art{width:78px;max-height:85px}.conversation-app[data-scene="restaurant"][data-restaurant-view="menu"] .character-stage{height:65px;min-height:65px}.conversation-app[data-scene="restaurant"][data-restaurant-view="menu"] .conversation-character{width:65px;height:63px}.conversation-app[data-scene="restaurant"][data-restaurant-view="menu"] .conversation-character .xiaojiu-motion__art{width:60px;max-height:62px}.restaurant-companion{bottom:12px;font-size:10px;padding:5px 8px}.restaurant-views{min-height:52px;padding-top:6px;padding-bottom:6px}.conversation-app[data-scene="restaurant"] .voice-controls{min-height:103px}.conversation-app[data-scene="restaurant"] .voice-controls .conversation-mic{width:66px;height:66px;min-height:66px}.shop-place[data-place="restaurant"] .shop-place-actions{padding:28px 20px 17px}.shop-place[data-place="restaurant"] .shop-place-actions h2{font-size:21px;margin-bottom:12px}.shop-place[data-place="restaurant"] .table-menu{top:45%}}
@media(max-width:360px){.restaurant-views button{padding-inline:15px}.restaurant-view-caption{font-size:10px}.restaurant-dish .scene-product-art{width:56px;min-width:56px;height:56px}.restaurant-dish>button{gap:8px}.restaurant-dish .scene-quantity button{width:36px;min-width:36px}.restaurant-dish-name strong{font-size:13px}.restaurant-next-actions{gap:5px}.restaurant-next-actions button{padding-inline:10px}}
@media(prefers-reduced-motion:reduce){.conversation-app[data-scene="restaurant"] .character-stage,.restaurant-dish{transition:none}}
