/* 手機／平板畫面裡的介面（LINE、LIFF 會員頁、店家後台、櫃台）
   版面與狀態規則沿用大南方智慧餐飲圈網站的 video-stage.css（chat／admin／journey）與 app-pages.css，
   畫面依 bigrain liff-app、admin-app 仿造、資料一律為示意。外框、陰影、互動提示改由 engine.css 負責。
   注意：.scene／.on、.t-app[data-step|state|screen]、.t-journey[data-phase] 等選擇器由 engine.js 設在每段的 section 上 */
.gs-device {
    --ease: cubic-bezier(.22, 1, .36, 1);
    --green-deep: #3f6655; --orange: #dc6c45; --orange-dark: #c4593a; --orange-ink: #a64b31; --orange-btn: #b45939;
    --muted-ink: #6e655b; --ink: #3f4a42; --ink-strong: #33413a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "Heiti TC", "Microsoft JhengHei", "微軟正黑體", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC", "WenQuanYi Zen Hei", sans-serif;   /* 沿用正式站的系統字型 */
    font-weight: 500; color: #333; line-height: 1.4; text-align: left; letter-spacing: 0;
}
.gs-device *, .gs-device *::before, .gs-device *::after { box-sizing: border-box; }
.gs-device :is(p, h1, h2, h3) { margin: 0; }
.gs-device img { display: block; max-width: 100%; height: auto; }
.gs-device .mark { display: block; }
.gs-device .ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mp-screen { position: relative; overflow: hidden; background: #fff8f2; padding: 56px 24px 24px; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
.gs-device .ani-s { opacity: 0; }
.scene.on .gs-device .ani-s.show { animation: rise .7s var(--ease) var(--d, 0s) both; }

/* ════════ 以下取自 video-stage.css（chat／admin／journey） ════════ */
/* ── chat：官方帳號聊天室示意（LINE 聊天畫面） ── */
.mp-screen.ch-screen { display: flex; flex-direction: column; padding: 0; background: #8cabd9; }
.ch-head { display: flex; align-items: center; gap: 14px; padding: 58px 22px 16px; background: #fff; color: #111; }
.ch-head span { font-size: 40px; line-height: 1; color: #555; }
.ch-head b { font-size: 27px; font-weight: 900; }
.ch-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 20px; padding: 24px 18px; overflow: hidden; }
.ch-msg { display: flex; align-items: flex-start; gap: 10px; max-width: 90%; }
.ch-msg.me { align-self: flex-end; }
.ch-msg .mark { flex: none; width: 54px; height: 54px; }
.ch-msg p { padding: 14px 20px; border-radius: 26px; background: #fff; color: #111; font-size: 24px; line-height: 1.5; }
.ch-msg.me p { background: #8de055; }
.ch-quick { display: flex; justify-content: center; padding: 0 16px 14px; }
.ch-quick span { padding: 10px 24px; border-radius: 999px; background: #fff; border: 3px solid #06c755; color: #06a046; font-size: 23px; font-weight: 900; }
.scene.on .ch-quick span.show { animation: rise .7s var(--ease) both, ring 1.6s .8s 2; }
@keyframes ring { 50% { box-shadow: 0 0 0 10px rgba(6, 199, 85, .3); } }
.ch-input { padding: 14px 20px 26px; background: #fff; }
.ch-input span { display: block; padding: 10px 20px; border-radius: 999px; background: #f2f2f2; color: #aaa; font-size: 22px; }

/* ── admin：店家後台示意（版面依 bigrain admin-app/src/App.tsx） ── */
.mp-screen.ad-screen { display: flex; flex-direction: column; padding: 0; background: #fff8f5; color: #333; }
.ad-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 46px 18px 12px; background: linear-gradient(135deg, #ff6b35, #ff8c5a); color: #fff; }
.ad-head b { display: block; font-size: 25px; font-weight: 900; }
.ad-head small { font-size: 16px; opacity: .85; }
.ad-head > span { padding: 7px 10px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 12px; background: rgba(255, 255, 255, .15); font-size: 15px; font-weight: 700; white-space: nowrap; }
.ad-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px; overflow: hidden; }
.ad-nav { display: flex; height: 74px; background: #fff; border-top: 1px solid #eee; }
.ad-nav span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 15px; color: #aaa; white-space: nowrap; }
.ad-nav i { font-style: normal; font-size: 26px; }
.ad-nav b { font-weight: inherit; }
.ad-nav em { font-style: normal; }
.ad-nav .on { color: #ff6b35; font-weight: 900; }
.ad-card { padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.ad-title { margin-bottom: 6px; font-size: 21px; font-weight: 900; color: #222; }
.ad-desc { margin-bottom: 10px; font-size: 15px; line-height: 1.55; color: #8c6a5a; }
.ad-btn { display: block; margin-top: 10px; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, #ff6b35, #ff8c5a); color: #fff; text-align: center; font-size: 20px; font-weight: 900; }
.ad-toast { position: absolute; left: 14px; right: 14px; top: 136px; padding: 12px 16px; border-radius: 14px; background: #e8f5e9; color: #2e7d32; font-size: 17px; font-weight: 700; line-height: 1.5; box-shadow: 0 8px 20px rgba(46, 125, 50, .2); }
/* 設定 → 店家資訊：各行依旁白逐字打出，儲存時按鈕按下、「尚未填寫」換成更新時間 */
.kn-area { display: flex; flex-direction: column; min-height: 168px; padding: 10px 12px; border: 1px solid #eee; border-radius: 10px; font-size: 17px; line-height: 24px; color: #333; }
.kn-line { white-space: nowrap; overflow: hidden; }
.scene.on .kn-line.show { animation: typeLine calc(var(--n) * .07s) steps(var(--n)) var(--d) both; }
@keyframes typeLine { from { opacity: 1; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
.kn-meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 15px; color: #aaa; }
.kn-meta b { font-weight: 400; }
.kn-after, .kn-meta.show .kn-before { display: none; }
.kn-meta.show .kn-after { display: inline; }
.kn-count .c1, .kn-count.show .c0 { display: none; }   /* 字數：開始打字後由 0 換成全文字數 */
.kn-count.show .c1 { display: inline; }
.scene.on .kn-save.show { animation: press .6s var(--ease); }
@keyframes press { 40% { transform: scale(.93); filter: brightness(.88); } }
/* 回饋 → 顧客詢問（依 InquiryList.tsx） */
.ad-seg { display: flex; gap: 8px; }
.ad-seg span { flex: 1; padding: 9px 0; border-radius: 12px; background: #fff; color: #555; text-align: center; font-size: 18px; font-weight: 700; }
.ad-seg .on { background: #ff6b35; color: #fff; }
.ad-seg em { font-style: normal; }
.iq-bar { padding: 9px 12px; border-radius: 12px; background: #ffebee; color: #c62828; font-size: 17px; }
.iq-bar.iq-clear { background: #e8f5e9; color: #2e7d32; }
.if-clear { display: none; }
.iq-filter { display: flex; gap: 8px; }
.iq-filter span { padding: 5px 14px; border-radius: 999px; background: #fff; color: #555; font-size: 16px; }
.iq-filter .on { background: #ff6b35; color: #fff; }
.iq-card { --c: #c62828; padding: 12px 14px; border-radius: 14px; background: #fff; border-left: 5px solid var(--c); box-shadow: 0 2px 8px rgba(0, 0, 0, .05); transition: box-shadow .4s, transform .4s var(--ease); }
.iq-st-ai { --c: #1565c0; }
.iq-st-replied { --c: #2e7d32; }
.iq-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.iq-top b { font-size: 16px; color: var(--c); }
.iq-top i { font-style: normal; font-weight: 400; color: #888; }
.iq-top small { font-size: 15px; color: #999; }
.iq-q { margin: 6px 0 8px; font-size: 20px; font-weight: 700; color: #222; }
.iq-ai, .iq-done { padding: 8px 10px; border-radius: 10px; font-size: 17px; line-height: 1.5; }
.iq-ai { background: #f3f6fb; color: #555; }
.iq-done { background: #f1f8e9; color: #2e7d32; }
.iq-done span { display: block; color: #555; }
.iq-reply { min-height: 64px; padding: 8px 10px; border: 1px solid #e5cfc3; border-radius: 10px; font-size: 17px; line-height: 1.5; }
.iq-ph { color: #aaa; }
.iq-typed { display: none; color: #222; }
.iq-typed i { font-style: normal; }
.iq-note { margin-top: 8px; padding: 8px 10px; border: 1px solid #e5cfc3; border-radius: 10px; color: #aaa; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: box-shadow .4s; }
.iq-btns { display: flex; gap: 8px; margin-top: 8px; }
.iq-btns span { padding: 8px 14px; border-radius: 10px; font-size: 17px; font-weight: 900; opacity: .5; transition: opacity .3s, box-shadow .4s; }
.b-send { background: #ff6b35; color: #fff; }
.b-close { border: 1px solid #ddd; background: #fff; color: #555; }
.iq-empty { display: none; margin-top: 30px; text-align: center; color: #aaa; font-size: 18px; }
.iq-dialog { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(40, 40, 40, .45); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.iq-dialog > div { width: 86%; padding: 22px; border-radius: 20px; background: #fff; text-align: right; transform: scale(.85); transition: transform .4s var(--ease); }
.iq-dialog p { margin-bottom: 16px; text-align: left; font-size: 19px; line-height: 1.55; color: #222; }
.iq-dialog span { display: inline-block; margin-left: 10px; padding: 8px 18px; border-radius: 10px; color: #555; font-size: 18px; font-weight: 700; }
.iq-dialog .ok { background: #ff6b35; color: #fff; }
/* 階段：typing 逐字寫回覆 → note 強調備註與結案 → confirm 確認視窗 → done 待回覆清單清空 */
:is(.t-admin, .t-journey):is([data-phase="typing"], [data-phase="note"], [data-phase="confirm"]) .iq-ph { display: none; }
:is(.t-admin, .t-journey):is([data-phase="typing"], [data-phase="note"], [data-phase="confirm"]) .iq-typed { display: block; }
.scene.on[data-phase="typing"] .iq-typed i { animation: typeChar .01s linear calc(.4s + var(--i) * .08s) both; }
@keyframes typeChar { from { opacity: 0; } to { opacity: 1; } }
:is(.t-admin, .t-journey):is([data-phase="typing"], [data-phase="confirm"]) .b-send { opacity: 1; box-shadow: 0 0 0 4px rgba(255, 107, 53, .35); }
:is(.t-admin, .t-journey)[data-phase="note"] .b-send { opacity: 1; }
:is(.t-admin, .t-journey)[data-phase="note"] .b-close { opacity: 1; box-shadow: 0 0 0 4px rgba(255, 107, 53, .45); }
:is(.t-admin, .t-journey)[data-phase="note"] .iq-note { box-shadow: 0 0 0 4px rgba(255, 107, 53, .45); }
:is(.t-admin, .t-journey)[data-phase="confirm"] .iq-dialog { opacity: 1; visibility: visible; }
:is(.t-admin, .t-journey)[data-phase="confirm"] .iq-dialog > div { transform: none; }
:is(.t-admin, .t-journey)[data-phase="done"] :is(.iq-live, .if-pending) { display: none; }
:is(.t-admin, .t-journey)[data-phase="done"] :is(.iq-empty, .if-clear) { display: block; }
:is(.t-admin, .t-journey)[data-phase="done"] .iq-bar { background: #e8f5e9; color: #2e7d32; }
/* 全部：focus 時強調 AI 已回答的那一則 */
.t-admin[data-phase="focus"] .iq-st-ai { transform: scale(1.03); box-shadow: 0 0 0 4px rgba(21, 101, 192, .4), 0 10px 24px rgba(0, 0, 0, .1); }

/* ── journey：從 LINE 進入店家後台設定頁（主頁 → 聊天 → 官方帳號 → 服務選單「活動入口」→ LIFF → 後台 → 設定）
   各頁疊在一起，依 data-phase 顯示；-tap 階段出現點擊示意圓點 ── */
.mp-screen.jy-screen { padding: 0; background: #fff; }
.jy-pg { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
/* data-step（stage.js 依 phase 分組）：home、chats、chat、liff、admin */
.t-journey[data-step="home"] .jy-home,
.t-journey[data-step="chats"] .jy-chats,
.t-journey:is([data-step="chat"], [data-step="liff"], [data-step="admin"]) .jy-chat { opacity: 1; visibility: visible; }
/* LINE 主頁、聊天列表 */
.ln-top { display: flex; align-items: center; gap: 12px; padding: 58px 20px 12px; }
.ln-top b { font-size: 24px; font-weight: 900; color: #111; }
.ln-top .ln-h { font-size: 30px; }
.ln-av { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #cfd8dc; }
.ln-av.g { background: #d7e3d4; }
.ln-search { margin: 0 18px 12px; padding: 10px 16px; border-radius: 12px; background: #f2f3f5; color: #999; font-size: 19px; }
.ln-sec { margin: 8px 20px 6px; font-size: 18px; font-weight: 700; color: #666; }
.ln-row { display: flex; align-items: center; gap: 14px; padding: 10px 20px; transition: background .3s; }
.ln-row > span:not(.ln-av) { flex: 1; min-width: 0; }
.ln-row .mark { flex: none; width: 52px; height: 52px; }
.ln-row b { display: block; font-size: 21px; color: #111; }
.ln-row small { display: block; font-size: 16px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln-row em { align-self: flex-start; margin-top: 6px; font-style: normal; font-size: 14px; color: #aaa; white-space: nowrap; }
.ln-tabs { display: flex; height: 74px; margin-top: auto; border-top: 1px solid #eee; }
.ln-tabs span { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 14px; color: #999; }
.ln-tabs i { font-style: normal; font-size: 24px; line-height: 1; }
.ln-tabs .on { color: #111; font-weight: 900; }
.t-journey[data-phase="chats-tap"] .ln-row.oa { background: #eef2f7; }
/* 官方帳號聊天室＋服務選單（活動入口佔左側 62.5%） */
.jy-chat .ch-body { background: #8cabd9; }
.jy-date { align-self: center; padding: 4px 14px; border-radius: 999px; background: rgba(0, 0, 0, .18); color: #fff; font-size: 15px; }
.jy-rich { position: relative; }
.jy-rich img { width: 100%; }
.jy-rich i { position: absolute; left: 0; top: 0; bottom: 0; width: 62.5%; background: rgba(0, 0, 0, .28); opacity: 0; transition: opacity .2s; }
.t-journey[data-phase="chat-tap"] .jy-rich i { opacity: 1; }
.jy-richbar { display: flex; align-items: center; gap: 12px; padding: 12px 18px 18px; background: #fff; border-top: 1px solid #eee; }
.jy-richbar b { flex: 1; text-align: center; font-size: 19px; font-weight: 700; color: #333; }
.jy-kb { width: 28px; height: 20px; border: 2px solid #777; border-radius: 4px; }
.jy-chat::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .5s; }
/* LIFF 視窗：由下滑出，先「登入中…」再換成後台（標題 liff-app → admin-app） */
.jy-sheet { position: absolute; left: 0; right: 0; top: 72px; bottom: 0; z-index: 3; display: flex; flex-direction: column; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -10px 30px rgba(0, 0, 0, .2); transform: translateY(102%); transition: transform .6s var(--ease); }
.t-journey:is([data-step="liff"], [data-step="admin"]) .jy-sheet { transform: none; }
.t-journey:is([data-step="liff"], [data-step="admin"]) .jy-chat::after { opacity: 1; }
.jy-sh-head { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid #eee; }
.jy-sh-head b { flex: 1; font-size: 19px; font-weight: 900; color: #222; }
.jy-sh-head span { font-size: 20px; color: #555; }
.jy-t2, .jy-admin { display: none; }
.jy-loading { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.jy-loading i { position: absolute; left: 0; top: 0; width: 30%; height: 3px; background: #06c755; }
.jy-loading p { font-size: 18px; color: #888; }
.jy-spin { width: 44px; height: 44px; border: 4px solid #ff6b35; border-top-color: transparent; border-radius: 50%; animation: jySpin .8s linear infinite; }
@keyframes jySpin { to { transform: rotate(360deg); } }
.t-journey[data-step="admin"] :is(.jy-t1, .jy-loading) { display: none; }
.t-journey[data-step="admin"] .jy-t2 { display: block; }
.t-journey[data-step="admin"] .jy-admin { display: flex; }
/* 後台：menu 儀表板 → 設定 → 往下捲到店家資訊；notice 直接開在顧客詢問，寫回覆時往下捲（捲動距離由 stage.js 依版面量出 --scroll） */
.jy-admin { flex: 1; min-height: 0; flex-direction: column; background: #fff8f5; }
.jy-view { flex: 1; min-height: 0; overflow: hidden; }
.jy-scroll { transform: translateY(calc(var(--scroll, 0px) * -1)); transition: transform 1.2s var(--ease); }
.jy-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
/* 提問通知 Flex 卡片（依 bigrain src/services/noticeFlex.ts：橘色 header 標題、body 各段文字、footer 橘色按鈕） */
.fx-card { width: 300px; overflow: hidden; border-radius: 22px; background: #fff; }
.fx-head { display: block; padding: 16px 18px; background: #ff6b35; color: #fff; font-size: 20px; font-weight: 900; line-height: 1.4; }
.fx-body { display: grid; gap: 10px; padding: 16px 18px 6px; }
.fx-body p { padding: 0; border-radius: 0; background: none; font-size: 17px; line-height: 1.5; color: #555; }   /* 不套用聊天泡泡 .ch-msg p 的樣式 */
.fx-foot { padding: 10px 14px 14px; }
.fx-btn { display: block; padding: 11px; border-radius: 10px; background: #ff6b35; color: #fff; text-align: center; font-size: 19px; font-weight: 700; transition: filter .2s, transform .2s; }
.t-journey[data-phase="btn-tap"] .fx-btn { filter: brightness(.88); transform: scale(.97); }
.jy-sheet .ad-head { padding-top: 14px; }
.jy-dash, .jy-set { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.jy-set, .t-journey:is([data-phase="settings"], [data-phase="scroll"]) .jy-dash { display: none; }
.t-journey:is([data-phase="settings"], [data-phase="scroll"]) .jy-set { display: flex; }
.ad-h { font-size: 22px; font-weight: 900; color: #333; }
.jy-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jy-stats div { display: grid; justify-items: center; gap: 2px; padding: 14px 8px; border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.jy-stats i { font-style: normal; font-size: 26px; }
.jy-stats b { font-size: 30px; font-weight: 900; color: #ff6b35; }
.jy-stats small { font-size: 15px; color: #888; }
.jy-logo { display: flex; align-items: center; gap: 14px; }
.jy-logo > span { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 14px; background: #f5f5f5; font-size: 34px; }
.jy-logo em { display: inline-block; padding: 6px 14px; border-radius: 10px; background: #ff6b35; color: #fff; font-style: normal; font-size: 16px; font-weight: 700; }
.jy-logo small { display: block; margin-top: 6px; font-size: 14px; color: #aaa; }
.jy-lb { display: block; margin: 6px 0 4px; font-size: 15px; color: #888; }
.jy-in { padding: 9px 12px; border: 1px solid #eee; border-radius: 10px; font-size: 17px; color: #333; }
.t-journey:is([data-phase="admin"], [data-phase="admin-tap"]) .nv-dashboard,
.t-journey:is([data-phase="settings"], [data-phase="scroll"]) .nv-settings { color: #ff6b35; font-weight: 900; }
.jy-sheet .ad-toast { top: 56px; }
/* 點擊示意：圓點縮放出現；位置依階段 */
.jy-tap { position: absolute; z-index: 5; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: rgba(255, 255, 255, .35); border: 4px solid #fff; box-shadow: 0 0 0 4px rgba(255, 107, 53, .9), 0 4px 12px rgba(0, 0, 0, .25); opacity: 0; }   /* 白圈加橘框：在橘色按鈕上也看得清楚 */
.t-journey[data-phase$="-tap"] .jy-tap { animation: jyTap .7s var(--ease) both; }
@keyframes jyTap { 0% { opacity: 0; transform: scale(1.7); } 45% { opacity: 1; transform: scale(.8); } 100% { opacity: 1; transform: none; } }


/* ════════ 以下取自 app-pages.css ════════ */
/* ── 顯示：data-step（home、chats、chat、camera、liff、app）由 app-pages.js 依階段設定 ── */
.t-app[data-step="home"] .jy-home,
.t-app[data-step="chats"] .jy-chats,
.t-app[data-step="camera"] .ap-camera,
.t-app:is([data-step="chat"], [data-step="liff"], [data-step="app"]) .jy-chat { opacity: 1; visibility: visible; }
.t-app:is([data-step="liff"], [data-step="app"]) .jy-sheet { transform: none; }
.t-app:is([data-step="liff"], [data-step="app"]) .jy-chat::after { opacity: 1; }
.ap-app { display: none; flex: 1; min-height: 0; flex-direction: column; background: #fff8f5; }
.t-app[data-step="app"] .jy-loading { display: none; }
.t-app[data-step="app"] .ap-app { display: flex; }
.ap-t-admin, .t-app[data-step="app"][data-kind="admin"] .ap-t-liff { display: none; }
.t-app[data-step="app"][data-kind="admin"] .ap-t-admin { display: block; }
.ap-t-liff, .ap-t-admin { flex: 1; font-size: 19px; font-weight: 900; color: #222; }
.t-app:not([data-kind="admin"]) .ap-app > .ad-nav { display: none; }
.ap-view { flex: 1; min-height: 0; overflow: hidden; }
.ap-scroll { margin-top: calc(var(--scroll, 0px) * -1); transition: margin-top 1.2s var(--ease); }   /* 用 margin 捲動，對話框（absolute）以 .jy-sheet 為準 */
.ap-scr { display: none; }
.ap-scr.cur { display: block; }
.t-app .menu-tap, .t-app .jy-rich i.tapping { opacity: 1; }
.t-app .jy-rich i.tapping { background: rgba(0, 0, 0, .28); }
.t-app .ln-row.oa.tapping { background: #eef2f7; }
/* 點擊示意：-tap／tap: 階段出現，被點的元素按下 */
.t-app.tap-on .jy-tap { animation: jyTap .7s var(--ease) both; }
.t-app .tapping:not(.ln-row):not(i) { filter: brightness(.9); transform: scale(.97); transition: transform .2s, filter .2s; }
/* 瀏覽器（櫃台平板）：沒有 LINE，只有網址列 */
.ap-sheet.ap-web { top: 0; border-radius: 0; transform: none; box-shadow: none; }
.ap-url { padding: 50px 18px 12px; background: #f1f3f4; color: #444; font-size: 17px; border-bottom: 1px solid #ddd; }
.ap-web .jy-loading { display: none; }
.t-app .ap-web .ap-app { display: flex; }

/* ── LINE：搜尋列的掃描、聊天室打字、相機 ── */
.ln-search { display: flex; justify-content: space-between; align-items: center; }
.ln-scan { font-size: 26px; line-height: 1; color: #555; padding: 0 4px; border-radius: 6px; }
.ap-kw { padding: 10px 18px; background: #fff; border-top: 1px solid #eee; }
.ap-kw span { display: block; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: #f2f2f2; color: #222; font-size: 20px; }
.ap-link { color: #1a5fd0; text-decoration: underline; word-break: break-all; }
.ap-camera { background: #111; align-items: center; justify-content: center; gap: 26px; color: #fff; }
.ap-cam-frame { position: relative; width: 260px; height: 260px; padding: 20px; border-radius: 14px; background: #2a2a2a; }
.ap-cam-frame .ap-qr { width: 100%; height: 100%; }
.ap-cam-frame i { position: absolute; width: 40px; height: 40px; border: 5px solid #06c755; }
.ap-cam-frame i:nth-of-type(1) { left: -8px; top: -8px; border-right: 0; border-bottom: 0; }
.ap-cam-frame i:nth-of-type(2) { right: -8px; top: -8px; border-left: 0; border-bottom: 0; }
.ap-cam-frame i:nth-of-type(3) { left: -8px; bottom: -8px; border-right: 0; border-top: 0; }
.ap-cam-frame i:nth-of-type(4) { right: -8px; bottom: -8px; border-left: 0; border-top: 0; }
.ap-cam-frame b { position: absolute; left: 10px; right: 10px; top: 20px; height: 3px; background: #06c755; box-shadow: 0 0 12px #06c755; }
.scene.on .ap-cam-frame b { animation: apScan 1.4s ease-in-out infinite alternate; }
@keyframes apScan { to { top: 236px; } }
.ap-camera p { font-size: 22px; }
/* 通知卡片的副標、星星、次要按鈕 */
.fx-head small { display: block; margin-top: 2px; font-size: 16px; font-weight: 400; opacity: .85; }
.fx-stars { text-align: center; font-size: 24px !important; }
.fx-btn.fx-alt { background: #ff6b35; margin-top: 2px; padding: 7px; font-size: 16px; }

/* ── 共用元件 ── */
.ap-scr { font-size: 17px; color: #333; }
.ap-hd { padding: 26px 20px 18px; background: linear-gradient(135deg, #ff6b35, #ff8c5a); color: #fff; position: relative; }
.ap-hd h2 { font-size: 27px; font-weight: 900; }
.ap-hd p { margin-top: 4px; font-size: 16px; opacity: .88; }
.ap-hd small { font-size: 15px; opacity: .85; }
.ap-hd.center { text-align: center; }
.ap-hd-btn { position: absolute; right: 18px; top: 26px; padding: 6px 12px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 999px; background: rgba(255, 255, 255, .15); font-size: 15px; font-weight: 700; }
.ap-rot { font-size: 14px !important; }
.ap-bd { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ap-card { padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.ap-card p + p { margin-top: 6px; }
.center { text-align: center; }
.b { font-weight: 900; color: #2d1a12; }
.gray { color: #999; }
.orange { color: #ff6b35; }
.red { color: #c62828; }
.green { color: #2e7d32; }
.blue { color: #1565c0; }
.brown { color: #9a6b57; }
.ap-ico { display: block; font-size: 46px; font-style: normal; line-height: 1.2; }
.ap-ico.big { font-size: 64px; }
.ap-big { display: block; margin: 6px 0; font-size: 42px; font-weight: 900; color: #ff6b35; }
.ap-big.xl { font-size: 54px; }
.ap-btn { display: inline-block; padding: 14px 34px; border-radius: 16px; background: linear-gradient(135deg, #ff6b35, #ff8c5a); color: #fff; font-size: 20px; font-weight: 900; text-align: center; box-shadow: 0 6px 16px rgba(255, 107, 53, .3); }
.ap-btn.wide { display: block; }
.ap-btn.ghost { background: #fff; color: #777; border: 1px solid #ddd; box-shadow: none; font-weight: 700; }
.ap-btn.red, .ad-btn.red { background: #c62828; color: #fff; }   /* 紅底白字（.red 本身是紅色文字，按鈕要蓋掉） */
.ap-mini { flex: none; padding: 8px 14px; border-radius: 10px; background: #ff6b35; color: #fff; font-size: 16px; font-weight: 700; white-space: nowrap; }
.ap-mini.ghost { background: #fff; color: #ff6b35; border: 1.5px solid #ff6b35; }
.ap-mini.gray { background: #fff; color: #999; border: 1px solid #ddd; }
.ap-fine { margin-top: 8px; font-size: 14px; color: #8c6a5a; text-align: center; line-height: 1.5; }
.ap-fine.left { text-align: left; }
.ap-input { position: relative; min-height: 46px; padding: 10px 14px; border: 1.5px solid #e5cfc3; border-radius: 12px; background: #fff; font-size: 17px; }
.ap-input .ph { color: #aaa; }
.ap-input .val { display: none; color: #222; }
.ap-area { min-height: 90px; }
.ap-area.tall { min-height: 120px; }
.ap-box { flex: none; width: 24px; height: 24px; margin-top: 2px; border: 2px solid #bbb; border-radius: 6px; background: #fff; }
.ap-agree { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 15px; color: #5a3728; line-height: 1.5; }
.ap-agree em { font-style: normal; font-weight: 700; color: #ff6b35; text-decoration: underline; }
.on-static .ap-box, .ap-box.on { background: #ff6b35 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%23fff' stroke-width='3' fill='none'/%3E%3C/svg%3E") center / 18px no-repeat; border-color: #ff6b35; }
.ap-dialog, .ap-modal { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.ap-dialog > div { width: 84%; padding: 22px; border-radius: 18px; background: #fff; text-align: right; }
.ap-dialog p { margin-bottom: 16px; text-align: left; font-size: 18px; line-height: 1.55; color: #222; }
.ap-dialog span { display: inline-block; margin-left: 10px; padding: 8px 18px; border-radius: 10px; color: #555; font-size: 17px; font-weight: 700; }
.ap-dialog .ok { background: #ff6b35; color: #fff; }
.ap-modal > div { width: 82%; display: grid; gap: 12px; padding: 26px 22px 20px; border-radius: 20px; background: #fff; text-align: center; }
.ap-modal i { font-size: 54px; font-style: normal; }
.ap-modal p { font-size: 17px; line-height: 1.6; color: #2d1a12; }
.ap-center { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 120px 0; color: #888; }
.ap-msg { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 26px; text-align: center; }
.ap-msg h3 { font-size: 24px; font-weight: 900; color: #2d1a12; }
.ap-msg p { font-size: 17px; line-height: 1.6; color: #666; }
.ap-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); text-align: left; transition: opacity .3s; }
.ap-row > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: #fff0e8; font-size: 22px; }
.ap-row > div { flex: 1; }
.ap-row b { display: block; font-size: 17px; color: #2d1a12; }
.ap-row small { font-size: 14px; color: #9a6b57; }
.ap-row em { font-style: normal; color: #ff6b35; font-size: 22px; }
.ap-tag { padding: 3px 10px; border-radius: 20px; font-size: 14px; font-weight: 700; }
.ap-tag.orange { color: #ff6b35; background: #ff6b3520; }
.ap-tag.gray { color: #999; background: #eee; }
.ap-tag.light { color: #bbb; background: #f2f2f2; }
.ap-banner { padding: 12px 18px; border-radius: 12px; font-size: 16px; text-align: center; }
.ap-banner.green { background: #e8f5e9; color: #2e7d32; }
.ap-banner.blue { background: #e3f2fd; color: #1565c0; }
.ap-banner.yellow { background: #fff9c4; color: #f57f17; }
.ap-toast-in { display: none; padding: 10px 14px; border-radius: 12px; background: #e8f5e9; color: #2e7d32; font-size: 16px; font-weight: 700; }
.ap-toast-fixed { position: absolute; left: 14px; right: 14px; top: 56px; z-index: 3; padding: 12px 16px; border-radius: 14px; background: #e8f5e9; color: #2e7d32; font-size: 17px; font-weight: 700; opacity: 0; transition: opacity .3s; }
.s-on { display: none; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.ap-chips span { padding: 6px 14px; border-radius: 20px; background: #f5f5f5; color: #555; font-size: 15px; }
.ap-chips span.on { background: #ff6b35; color: #fff; font-weight: 700; }
.ap-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.ap-qr { display: block; width: 100%; height: auto; }

/* ── 加入會員 ── */
.ap-guest-hd { padding-bottom: 60px; }
.ap-guest-hd p { line-height: 1.55; }
.ap-guest { margin: -40px 14px 0; position: relative; padding: 18px; border-radius: 22px; background: #fff; box-shadow: 0 16px 32px rgba(108, 54, 21, .12); }
.ap-eyebrow { font-size: 14px; font-weight: 700; color: #a15a34; letter-spacing: 1px; }
.ap-guest h3 { margin: 6px 0 12px; font-size: 23px; color: #2d1a12; }
.ap-reason { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; padding: 10px; border-radius: 14px; background: #fff8f4; }
.ap-reason.alt { background: #fff1e9; }
.ap-reason b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ff6b35; color: #fff; font-size: 14px; }
.ap-reason p { font-size: 15px; line-height: 1.5; color: #5a3728; }
.ap-join { display: block; opacity: .5; }
.ap-join b { font-weight: 900; }
.ap-join .s-busy { display: none; }
.t-app:is([data-state="agreed"], [data-state="joining"]) .ap-guest .ap-box { background-color: #ff6b35; border-color: #ff6b35; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%23fff' stroke-width='3' fill='none'/%3E%3C/svg%3E"); background-position: center; background-size: 18px; background-repeat: no-repeat; }
.t-app:is([data-state="agreed"], [data-state="joining"]) .ap-join { opacity: 1; }
.t-app:is([data-state="agreed"], [data-state="joining"]) .ap-join .s-off { display: none; }
.t-app[data-state="agreed"] .ap-join .s-on { display: inline; }
.t-app[data-state="joining"] .ap-join .s-busy { display: inline; }

/* ── 會員首頁 ── */
.ap-home-hd { padding: 30px 20px 22px; }
.ap-home-hd h2 { margin-top: 4px; font-size: 25px; }
.ap-pts { display: grid; margin-top: 16px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .2); }
.ap-pts b { font-size: 42px; line-height: 1.15; }
.ap-pts em { justify-self: start; margin: 4px 0; padding: 3px 8px; border-radius: 8px; background: rgba(0, 0, 0, .15); font-style: normal; font-size: 14px; }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 14px 12px; }
.ap-grid span { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); font-size: 17px; font-weight: 700; color: #333; }
.ap-grid i { font-style: normal; font-size: 30px; }
.ap-invite { display: flex; align-items: center; gap: 12px; margin: 0 14px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.ap-invite i { font-style: normal; font-size: 30px; }
.ap-invite span { flex: 1; }
.ap-invite b { display: block; font-size: 18px; color: #2d1a12; }
.ap-invite small { font-size: 14px; color: #888; }
.ap-invite em { font-style: normal; color: #ff6b35; font-size: 22px; }
.ap-terms { margin: 16px 0; text-align: center; font-size: 14px; color: #9a6b57; text-decoration: underline; }

/* ── 獎品牆、所有店家、兌換券 ── */
.ap-store { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.ap-store span { font-size: 22px; }
.ap-store b { flex: 1; font-size: 18px; color: #2d1a12; }
.ap-store em { font-style: normal; color: #ff6b35; font-size: 15px; font-weight: 700; }
.ap-item { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.ap-item > div { flex: 1; min-width: 0; }
.ap-item b { display: block; font-size: 17px; }
.ap-item em { display: block; margin-top: 4px; font-style: normal; font-size: 18px; font-weight: 900; color: #ff6b35; }
.ap-item small { display: block; margin-top: 2px; font-size: 13px; color: #888; }
.ap-thumb { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: #fff0e8; font-size: 30px; }
.t-app[data-state="confirm"] .rw-confirm, .t-app[data-state="done"] .rw-done { opacity: 1; visibility: visible; }
.ap-search .val { display: none; }
.t-app[data-state="search"] .ap-search .ph { display: none; }
.t-app[data-state="search"] .ap-search .val { display: inline; }
.t-app[data-state="search"] .ap-row.miss { display: none; }
.ap-coupon { padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.ap-coupon.used { background: #f5f5f5; box-shadow: none; opacity: .6; }
.ap-cp-top { display: flex; justify-content: space-between; align-items: center; }
.ap-cp-top b { font-size: 18px; }
.ap-coupon em { display: block; margin: 6px 0 4px; font-style: normal; font-size: 16px; font-weight: 700; color: #ff6b35; }
.ap-coupon small { display: block; font-size: 14px; }
.ap-cp-no { margin-top: 10px; padding: 10px; border-radius: 10px; background: #fff0e8; text-align: center; color: #ff6b35; }
.ap-cp-no small { font-size: 13px; }
.ap-cp-no b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; letter-spacing: 2px; }

/* ── 確認打卡 ── */
.ap-ck-bd { align-items: stretch; }
.ap-ck-bd .ap-btn { margin-top: 4px; }
.ap-pick label { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 17px; }
.ap-pick label i { width: 20px; height: 20px; border: 2px solid #bbb; border-radius: 50%; }
.ap-pick .r-none i, .t-app[data-state="pick"] .ap-pick .r-coupon i { border: 6px solid #ff6b35; }
.t-app[data-state="pick"] .ap-pick .r-none i { border: 2px solid #bbb; }
.ap-ck-wait, .ap-ck-ok { display: none; }
.ap-ck-ok { flex-direction: column; align-items: center; gap: 12px; padding: 24px 20px; text-align: center; }
.ap-ck-ok .ap-row, .ap-ck-ok .ap-btn, .ap-ck-ok .ap-card { align-self: stretch; }
.t-app[data-state="waiting"] .ap-ck, .t-app[data-state="success"] .ap-ck { display: none; }
.t-app[data-state="waiting"] .ap-ck-wait { display: block; }
.t-app[data-state="success"] .ap-ck-ok { display: flex; }

/* ── 點數明細 ── */
.ap-sub2 { margin-top: 10px !important; }
.ap-hd-num { display: block; font-size: 42px; line-height: 1.1; }
.ap-exp { display: inline-block; margin: 4px 0; padding: 3px 8px; border-radius: 8px; background: rgba(0, 0, 0, .15); font-style: normal; font-size: 14px; }
.ap-hd-fine { display: block; font-size: 13px !important; }
.ap-list { border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); overflow: hidden; }
.ap-tx { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid #f3e2d8; }
.ap-tx:first-child { border-top: 0; }
.ap-tx div { flex: 1; min-width: 0; }
.ap-tx b { display: block; font-size: 16px; font-weight: 500; color: #2d1a12; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-tx small { font-size: 13px; color: #aaa; }
.ap-tx em { font-style: normal; font-size: 19px; font-weight: 900; color: #888; }
.ap-tx em.plus { color: #ff6b35; }

/* ── 每日簽到 ── */
.ap-dl { display: none; flex-direction: column; align-items: center; gap: 18px; padding: 40px 26px; text-align: center; }
.ap-dl p { font-size: 17px; line-height: 1.6; color: #555; }
.ap-dl h3 { font-size: 26px; }
.t-app:not([data-state="loading"]):not([data-state="success"]):not([data-state="already"]) .ap-dl-idle,
.t-app[data-state="loading"] .ap-dl-loading, .t-app[data-state="success"] .ap-dl-success, .t-app[data-state="already"] .ap-dl-already { display: flex; }
.ap-dl-loading .ap-center { padding: 60px 0; }
.ap-dots { display: flex; gap: 10px; }
.ap-dots span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #ffe0d0; color: #c9a08e; font-size: 16px; font-weight: 700; }
.ap-dots span.on { background: #ff6b35; color: #fff; }

/* ── 抽籤詩 ── */
.ap-ft { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 30px 20px; }
.ap-ft h2 { font-size: 27px; }
.ap-slip, .ap-again { display: none; }
.ap-draw { margin-top: 50px; padding: 16px 52px; border-radius: 24px; }
.t-app[data-state="drawn"] .ap-draw { display: none; }
.t-app[data-state="drawn"] .ap-slip { display: block; }
.t-app[data-state="drawn"] .ap-again { display: inline-block; border-radius: 24px; }
.scene.on[data-state="drawn"] .ap-slip { animation: pop .6s var(--ease); }
.ap-slip { width: 330px; padding: 4px; border: 2px solid #a8322a; background: #fbf4e4; color: #2d1a12; font-family: inherit; box-shadow: 0 4px 20px rgba(0, 0, 0, .12); }
.ap-slip-hd { padding: 6px 0; border: 1px solid #a8322a; color: #a8322a; text-align: center; font-size: 19px; font-weight: 700; letter-spacing: 8px; }
.ap-slip-body { display: flex; flex-direction: row-reverse; height: 250px; border: 1px solid #a8322a; border-top: 0; border-bottom: 0; }
.ap-slip-body .v { writing-mode: vertical-rl; text-orientation: upright; padding: 10px 6px; border-left: 1px solid #a8322a; font-weight: 700; }
.ap-slip-body .no { color: #a8322a; font-size: 16px; letter-spacing: 2px; }
.ap-slip-body .gz { font-size: 28px; }
.ap-slip-body .poem { flex: 1; font-size: 24px; letter-spacing: 3px; line-height: 1.5; }

/* ── 邀請好友 ── */
.ap-iv { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 20px; text-align: center; }
.ap-iv > p { font-size: 16px; color: #666; }
.ap-qrbox { position: relative; width: 250px; padding: 14px; border-radius: 20px; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
.ap-qr-over { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 20px; background: rgba(255, 255, 255, .9); }
.ap-qr-over i { font-style: normal; font-size: 40px; }
.ap-qr-over b { color: #2e7d32; }
.t-app[data-state="scanned"] .ap-qr-over { display: flex; }
.ap-cd { font-size: 15px; color: #888; }
.ap-rules { text-align: left; font-size: 15px; line-height: 1.6; color: #555; }

/* ── 用餐評價 ── */
.ap-stars { display: flex; justify-content: center; gap: 8px; font-size: 40px; }
.ap-stars span { filter: grayscale(1) opacity(.3); transition: filter .2s, transform .2s; }
.t-app:is([data-state="rated"], [data-state="typed"]) .ap-stars :is(.st1, .st2, .st3, .st4) { filter: none; transform: scale(1.1); }
.ap-star-lb { visibility: hidden; text-align: center; color: #ff6b35; font-weight: 700; }
.t-app:is([data-state="rated"], [data-state="typed"]) .ap-star-lb { visibility: visible; }
.t-app[data-state="typed"] .ap-sv .ap-area .ph { display: none; }
.t-app[data-state="typed"] .ap-sv .ap-area .val { display: inline; }
.ap-sv-btn { background: #ccc; box-shadow: none; }
.t-app:is([data-state="rated"], [data-state="typed"]) .ap-sv-btn { background: #ff6b35; }
.ap-sv-thanks { display: none; }
.t-app[data-state="thanks"] .ap-sv-thanks { display: flex; }
.t-app[data-state="thanks"] [data-scr="survey"] > :not(.ap-sv-thanks) { display: none; }

/* ── 條款、刪除帳號、綁定、櫃台登入 ── */
.ap-terms-body { font-size: 16px; line-height: 1.7; }
.ap-er { display: flex; flex-direction: column; gap: 14px; padding: 26px 18px; }
.ap-er h2 { font-size: 24px; color: #2d1a12; }
.ap-warn { background: #fff5f5; font-size: 15px; line-height: 1.6; }
.t-app[data-state="confirm"] .er-confirm { opacity: 1; visibility: visible; }
.ap-er-done { display: none; }
.t-app[data-state="done"] .ap-er-done { display: flex; }
.t-app[data-state="done"] [data-scr="erase"] > :not(.ap-er-done) { display: none; }
.ap-claim .ap-agree { text-align: left; }
.ap-claim .ap-btn { align-self: stretch; }
.t-app[data-state="agreed"] .ap-claim .ap-box { background: #ff6b35 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%23fff' stroke-width='3' fill='none'/%3E%3C/svg%3E") center / 18px no-repeat; border-color: #ff6b35; }
.ap-sl { gap: 12px; }
.ap-sl .ap-input, .ap-sl .ap-btn, .ap-sl .ap-captcha { align-self: stretch; text-align: left; }
.ap-captcha { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #d3d3d3; border-radius: 6px; background: #f9f9f9; font-size: 17px; }
.ap-captcha small { margin-left: auto; font-size: 12px; color: #999; }
.ap-or { display: flex; align-items: center; gap: 10px; align-self: stretch; color: #aaa; font-size: 15px; }
.ap-or i { flex: 1; height: 1px; background: #ddd; }
.t-app:is([data-state="typed"], [data-state="captcha"], [data-state="login"]) .ap-sl .ap-input .ph { display: none; }
.t-app:is([data-state="typed"], [data-state="captcha"], [data-state="login"]) .ap-sl .ap-input .val { display: inline; }
.t-app:is([data-state="captcha"], [data-state="login"]) .ap-captcha .ap-box { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%2300a651' stroke-width='3.5' fill='none'/%3E%3C/svg%3E") center / 20px no-repeat; border-color: #00a651; }
.t-app[data-state="login"] .ap-sl .ap-btn .s-off { display: none; }
.t-app[data-state="login"] .ap-sl .ap-btn .s-on { display: inline; }

/* ── 櫃台結帳碼 ── */
.ap-ct { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 20px; text-align: center; }
.ap-ct h3 { font-size: 24px; color: #2d1a12; }
.ap-ct-today { padding: 6px 14px; border-radius: 999px; background: #fff0e8; color: #a64b31; font-size: 16px; }
.ap-ct-show, .ap-ct-scanned, .ap-ct-notice { display: none; }
.ap-ct-idle { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 30px 0; }
.ap-ct-show { flex-direction: column; align-items: center; gap: 10px; }
.ap-ct-show .ap-qr { width: 220px; }
.ap-ct-sec b { font-size: 26px; color: #2e7d32; }
.ap-ct-scanned { flex-direction: column; align-items: center; gap: 8px; padding: 40px 0; }
.t-app:is([data-state="showing"], [data-state="scanned"], [data-state="notice"]) .ap-ct-idle { display: none; }
.t-app:is([data-state="showing"], [data-state="notice"]) .ap-ct-show { display: flex; }
.t-app[data-state="scanned"] .ap-ct-scanned { display: flex; }
.t-app:is([data-state="scanned"], [data-state="notice"]) .ap-ct-today .s-off { display: none; }
.t-app:is([data-state="scanned"], [data-state="notice"]) .ap-ct-today .s-on { display: inline; }
.ap-ct-notice { position: absolute; left: 10px; right: 10px; top: 120px; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; background: #fff3e0; border: 2px solid #ff9800; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); text-align: left; }
.t-app[data-state="notice"] .ap-ct-notice { display: flex; }
.ap-ct-notice > i { font-style: normal; font-size: 34px; }
.ap-ct-notice div { flex: 1; }
.ap-ct-notice p { font-size: 15px; color: #5a3728; }
.ap-ct-notice b { font-size: 22px; color: #e65100; }
.ap-ct-notice span { display: grid; justify-items: center; gap: 4px; }
.ap-ct-notice em { padding: 6px 12px; border-radius: 10px; background: #ff6b35; color: #fff; font-style: normal; font-weight: 700; }
.ap-ct-notice small { font-size: 13px; color: #888; }

/* ── 店家後台頁面 ── */
.ap-ad { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.ap-ad .ad-card { padding: 14px; }
.ap-ad .ad-card > .b { margin: 8px 0 4px; }
.ap-ad .ad-card > .b:first-child { margin-top: 0; }
.ap-stats6 { grid-template-columns: 1fr 1fr 1fr; }
.ap-stats6 b { font-size: 26px; }
.ap-stats6 i { font-size: 22px; }
.ap-rp-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ap-rp-top .ad-h { flex: 1; }
.ap-in-sm { padding: 5px 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; }
.ap-rp-h { margin: 8px 0 2px; font-size: 15px; font-weight: 900; color: #a64b31; }
.ap-rp-row { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed #f0e2d8; font-size: 15px; }
.ap-tabs3 { display: flex; gap: 6px; margin-bottom: 10px; }
.ap-tabs3 span { flex: 1; padding: 8px 0; border-radius: 10px; background: #f5f5f5; text-align: center; font-size: 15px; font-weight: 700; color: #777; }
.ap-tabs3 .t-ck, .t-app:is([data-state="pending"], [data-state="remind"], [data-state="reminded"]) .ap-tabs3 .t-pd { background: #ff6b35; color: #fff; }
.t-app:is([data-state="pending"], [data-state="remind"], [data-state="reminded"]) .ap-tabs3 .t-ck { background: #f5f5f5; color: #777; }
.ap-l-pd, .t-app:is([data-state="pending"], [data-state="remind"], [data-state="reminded"]) .ap-l-ck { display: none; }
.t-app:is([data-state="pending"], [data-state="remind"], [data-state="reminded"]) .ap-l-pd { display: block; }
.ap-rec { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #f3eee9; }
.ap-rec > span:first-child { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #f1f1f1; }
.ap-rec > div { flex: 1; min-width: 0; }
.ap-rec b { display: block; font-size: 16px; }
.ap-rec small { font-size: 13px; color: #888; }
.ap-rec em { font-style: normal; font-size: 13px; color: #aaa; }
.t-app[data-state="remind"] .db-remind { opacity: 1; visibility: visible; }
.t-app[data-state="reminded"] .ap-remind { background: #fff; color: #2e7d32; border: 1px solid #c8e6c9; }
.t-app[data-state="reminded"] .ap-remind .s-off { display: none; }
.t-app[data-state="reminded"] .ap-remind .s-on { display: inline; }
/* 獎品牆管理 */
.ap-tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 12px; }
.ap-tpls span { padding: 10px; border-radius: 12px; border: 1.5px dashed #ffb48f; background: #fff8f4; }
.ap-tpls b { display: block; font-size: 15px; color: #a64b31; }
.ap-tpls small { font-size: 13px; color: #9a6b57; }
.ap-f-img { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.ap-f-img > span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: #f5f5f5; font-size: 28px; }
.ap-f-img em { display: inline-block; padding: 6px 12px; border-radius: 10px; background: #ff6b35; color: #fff; font-style: normal; font-size: 15px; font-weight: 700; }
.ap-f-img small { display: block; margin-top: 4px; font-size: 13px; color: #aaa; }
.ap-times { display: flex; align-items: center; gap: 8px; }
.ap-times span { padding: 8px 12px; border: 1px solid #ddd; border-radius: 10px; color: #aaa; }
.t-app:is([data-state="filled"], [data-state="added"]) [data-scr="rewards-admin"] .ap-input .ph { display: none; }
.t-app:is([data-state="filled"], [data-state="added"]) [data-scr="rewards-admin"] .ap-input .val { display: inline; }
.ap-new { display: none; }
.t-app[data-state="added"] .ap-new { display: flex; animation: pop .6s var(--ease); }
.t-app[data-state="added"] [data-scr="rewards-admin"] .s-off { display: none; }
.t-app[data-state="added"] [data-scr="rewards-admin"] .s-on { display: inline; }
.t-app[data-state="added"] [data-scr="rewards-admin"] .ap-toast-in { display: block; }
.ap-rw-list { display: flex; flex-direction: column; gap: 10px; }
/* 評價回饋 */
.ap-fb-done { display: none; }
.ap-draft { display: none; color: #222; }
.ap-ai-btn { padding: 8px 12px; border-radius: 10px; border: 1px solid #ff6b35; background: #fff; color: #ff6b35; font-size: 15px; font-weight: 700; }
.ap-due { margin-bottom: 6px; padding: 6px 10px; border-radius: 8px; background: #fff3e0; color: #e65100; font-size: 14px; }
.ap-fb-card .iq-btns { flex-wrap: wrap; }
.ap-fb-card .iq-btns span { opacity: 1; font-size: 15px; }
.ap-fb-card .b-send { opacity: .5 !important; }
.t-app:is([data-state="draft"], [data-state="confirm"]) .ap-fb-card .iq-ph { display: none; }
.t-app:is([data-state="draft"], [data-state="confirm"]) .ap-draft { display: inline; }
.t-app:is([data-state="draft"], [data-state="confirm"]) .ap-fb-card .b-send { opacity: 1 !important; }
.t-app[data-state="confirm"] .fb-confirm { opacity: 1; visibility: visible; }
.t-app[data-state="done"] .ap-fb-form { display: none; }
.t-app[data-state="done"] .ap-fb-done { display: block; }
.t-app[data-state="done"] .ap-fb-bar { background: #e8f5e9; color: #2e7d32; }
.t-app[data-state="done"] .ap-fb-bar .s-off { display: none; }
.t-app[data-state="done"] .ap-fb-bar .s-on { display: inline; }
/* AI 助手 */
.ap-aitabs span { font-size: 14px; padding: 6px 11px; }
.ap-gen .s-on, .ap-copies { display: none; }
.t-app[data-state="generating"] .ap-gen .s-off { display: none; }
.t-app[data-state="generating"] .ap-gen .s-on { display: inline; }
.t-app:is([data-state="result"], [data-state="copied"]) .ap-copies { display: flex; flex-direction: column; gap: 10px; }
.t-app:is([data-state="filled"], [data-state="generating"], [data-state="result"], [data-state="copied"]) [data-scr="ai-copy"] .ap-input .ph { display: none; }
.t-app:is([data-state="filled"], [data-state="generating"], [data-state="result"], [data-state="copied"]) [data-scr="ai-copy"] .ap-input .val { display: inline; }
.ap-copy-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ap-copy p { font-size: 16px; line-height: 1.6; }
.t-app[data-state="copied"] [data-tap="copy-a"] .s-off { display: none; }
.t-app[data-state="copied"] [data-tap="copy-a"] .s-on { display: inline; }
.t-app[data-state="copied"] [data-tap="copy-a"] { background: #2e7d32; }
.ap-wk-top { display: flex; justify-content: space-between; align-items: baseline; }
.ap-vers { display: none; flex-direction: column; gap: 6px; margin: 8px 0; }
.ap-vers span { padding: 8px 12px; border-radius: 10px; border: 1px solid #ffd2bd; background: #fff8f4; font-size: 15px; }
.t-app[data-state="ai"] .ap-vers { display: flex; }
.ap-area .v1, .ap-area .v2 { display: none; }
.t-app:is([data-state="typed"], [data-state="ai"]) [data-scr="ai-weekly"] .ap-area .ph { display: none; }
.t-app:is([data-state="typed"], [data-state="ai"]) [data-scr="ai-weekly"] .ap-area .v1 { display: inline; }
.t-app:is([data-state="picked"], [data-state="saved"], [data-state="sent"]) [data-scr="ai-weekly"] .ap-area .ph { display: none; }
.t-app:is([data-state="picked"], [data-state="saved"], [data-state="sent"]) [data-scr="ai-weekly"] .ap-area .v2 { display: inline; }
.t-app:is([data-state="saved"], [data-state="sent"]) [data-scr="ai-weekly"] .s-off { display: none; }
.t-app:is([data-state="saved"], [data-state="sent"]) [data-scr="ai-weekly"] .s-on { display: block; }
.t-app:is([data-state="saved"], [data-state="sent"]) [data-scr="ai-weekly"] .ad-btn .s-on { display: inline; }
.t-app[data-state="sent"] .ap-toast-fixed { opacity: 1; }
.ap-wk-btns { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ap-wk-btns .ad-btn { flex: 1; margin: 0; }
.ap-carousel { display: flex; gap: 8px; margin: 8px 0; overflow: hidden; }
.ap-cr-card { flex: none; width: 82%; display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid #eee; }
.ap-cr-row { display: flex; gap: 10px; align-items: center; }
.ap-cr-row i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 10px; background: #ffe7da; font-style: normal; font-size: 24px; }
.ap-cr-row b { display: block; font-size: 16px; }
.ap-cr-row small { font-size: 14px; color: #666; }
.ap-cr-row.dim { opacity: .45; }
.ap-cr-next { flex: none; width: 30%; border-radius: 14px; background: #f5f5f5; }
.ap-radio { display: flex; align-items: center; gap: 10px; margin: 6px 0; padding: 10px 12px; border: 1px solid #eee; border-radius: 12px; font-size: 15px; }
.ap-radio i { flex: none; width: 20px; height: 20px; border: 2px solid #bbb; border-radius: 50%; }
.ap-radio.on i { border: 6px solid #ff6b35; }
.ap-radio span { flex: 1; }
.ap-radio em { font-style: normal; color: #888; font-size: 14px; }
.ap-push-ck { display: none; }
.ap-send { opacity: .5; }
.ap-sent-msg { display: none; margin-top: 8px; font-weight: 700; }
.t-app:is([data-state="typed"], [data-state="checked"], [data-state="confirm"], [data-state="sent"]) [data-scr="ai-push"] .ap-area .ph { display: none; }
.t-app:is([data-state="typed"], [data-state="checked"], [data-state="confirm"], [data-state="sent"]) [data-scr="ai-push"] .ap-area .val { display: inline; }
.t-app:is([data-state="typed"], [data-state="checked"], [data-state="confirm"], [data-state="sent"]) .ap-push-ck { display: flex; }
.t-app:is([data-state="checked"], [data-state="confirm"], [data-state="sent"]) .ap-push-ck .ap-box { background: #ff6b35 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%23fff' stroke-width='3' fill='none'/%3E%3C/svg%3E") center / 18px no-repeat; border-color: #ff6b35; }
.t-app:is([data-state="checked"], [data-state="confirm"], [data-state="sent"]) .ap-send { opacity: 1; }
.t-app[data-state="confirm"] .ps-confirm { opacity: 1; visibility: visible; }
.t-app[data-state="sent"] .ap-sent-msg { display: block; }
.ap-sg-list { display: none; flex-direction: column; gap: 10px; }
.t-app[data-state="result"] .ap-sg-list { display: flex; }
.t-app[data-state="result"] .ap-sg-start { display: none; }
.ap-sg { border-left: 6px solid var(--c); }
.ap-sg > div { display: flex; justify-content: space-between; margin-bottom: 4px; }
.ap-sg b { font-size: 16px; color: var(--c); }
.ap-sg em { font-style: normal; font-weight: 900; }
.ap-sg p, .ap-issue p { font-size: 15px; line-height: 1.6; color: #555; }
.ap-3stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ap-3stat div { display: grid; justify-items: center; padding: 12px 6px; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.ap-3stat b { font-size: 26px; color: #ff6b35; }
.ap-3stat small { font-size: 14px; color: #888; }
.ap-issue > div { display: flex; justify-content: space-between; }
/* 設定 */
.ap-logo { transition: background .3s; }
.t-app:is([data-state="logo-done"]) .ap-logo { background: #ffe7da; }
.t-app[data-state="basic-saved"] .m-basic, .t-app[data-state="staff-saved"] .m-staff, .t-app[data-state="logo-done"] .m-logo { display: inline; }
.t-app:is([data-state="staff-typed"], [data-state="staff-saved"]) [data-anchor="staff"] .ap-input .ph { display: none; }
.t-app:is([data-state="staff-typed"], [data-state="staff-saved"]) [data-anchor="staff"] .ap-input .val { display: inline; }
.t-app[data-state="staff-saved"] [data-anchor="staff"] .s-off { display: none; }
.t-app[data-state="staff-saved"] [data-anchor="staff"] .s-on { display: inline; }
.ap-url-box { padding: 10px 12px; border-radius: 10px; background: #f5f5f5; color: #888; font-size: 15px; }
.ap-2btn { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.ap-2btn .ad-btn { flex: 1; margin: 0; }
.ap-url-qr { display: none; flex-direction: column; align-items: center; gap: 6px; margin-top: 12px; }
.ap-url-qr .ap-qr { width: 200px; }
.ap-url-qr small { font-size: 14px; color: #888; }
.t-app[data-state="qr"] .ap-url-qr { display: flex; }
.t-app[data-state="copied"] [data-scr="settings"] [data-tap="copy-url"] .s-off { display: none; }
.t-app[data-state="copied"] [data-scr="settings"] [data-tap="copy-url"] .s-on { display: inline; }
.t-app[data-state="revoke-1"] .st-revoke1, .t-app[data-state="revoke-2"] .st-revoke2 { opacity: 1; visibility: visible; }
.ap-st-out { display: none; }
.t-app[data-state="revoked"] .ap-st-out { display: flex; }
.t-app[data-state="revoked"] [data-scr="settings"] > :not(.ap-st-out) { display: none; }
.t-app[data-state="revoked"] .ap-app > .ad-nav { display: none; }

/* ── 聊天室：依 chat.N 出現的訊息、快速回覆、打字中的輸入列 ── */
.jy-chat [data-at] { display: none; }
.jy-chat [data-at].on { display: flex; animation: rise .5s var(--ease) both; }
.ap-quick { justify-content: center; padding: 0; }
.ap-kw span { visibility: hidden; }
.t-app[data-chat="0"] .ap-kw span { visibility: visible; }
.fx-btn.fx-sec { background: #eee; color: #333; }
.t-app .ap-quick span.tapping { background: #e8f8ee; }
/* 強調（階段狀態與 data-hl 相同時）：外框加脈動 */
.hl { position: relative; z-index: 1; box-shadow: 0 0 0 4px rgba(255, 107, 53, .75) !important; border-radius: 14px; }
.scene.on .hl { animation: apHl 1.6s ease-in-out infinite alternate; }
@keyframes apHl { to { box-shadow: 0 0 0 8px rgba(255, 107, 53, .35) !important; } }
/* 後台頁首、底部分頁的強調（狀態 hd、nav） */
.t-app[data-state="hd"] .ap-scr.cur .ad-head { box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .85); }
.t-app[data-state="nav"] .ap-app > .ad-nav { box-shadow: 0 0 0 4px rgba(255, 107, 53, .75); position: relative; z-index: 2; }
/* 設定頁的固定提示 */
.ap-st-toast span { display: none; }
.t-app:is([data-state="basic-saved"], [data-state="staff-saved"], [data-state="logo-done"]) .ap-st-toast { opacity: 1; }

/* 聊天室：最新訊息貼齊底部（同 LINE），太長的舊訊息往上捲出 */
.t-app .jy-chat .ch-body { justify-content: flex-end; }
.t-app .jy-chat .ch-body .jy-date { margin-bottom: auto; }
/* 橘色底上的強調改用白框 */
.ap-pts.hl, .ad-head.hl { box-shadow: 0 0 0 4px #fff !important; animation: none !important; }

/* ── 跨店任務（liff-app Mission.tsx）：數值放大約 1.15 倍，與其他畫面一致 ── */
.ap-mi { padding-bottom: 28px; }
.ap-mi-card { margin: 16px; padding: 22px; border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); transition: transform .12s ease; }
.t-app .ap-mi-card.tapping { transform: scale(.98); filter: none; }
.scene.on .ap-mi-card { animation: apMiGlow 2s ease-in-out 3; }   /* 提示可點：外框呼吸光、進度條閃光、箭頭輕推各播 3 輪 */
@keyframes apMiGlow { 0%, 100% { box-shadow: 0 2px 8px rgba(0, 0, 0, .06); } 50% { box-shadow: 0 0 0 3px rgba(255, 107, 53, .22), 0 4px 18px rgba(255, 107, 53, .35); } }
.ap-mi-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.ap-mi-row b { font-size: 17px; font-weight: 600; color: #2d1a12; }
.ap-mi-row em { font-style: normal; font-size: 27px; font-weight: 700; color: #ff6b35; }
.ap-mi-row small { font-size: 16px; font-weight: 400; color: #aaa; }
.ap-mi-bar { position: relative; height: 11px; border-radius: 999px; background: #f5f5f5; overflow: hidden; }
.ap-mi-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff6b35, #ff8c5a); }
.ap-mi-bar s { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); }
.scene.on .ap-mi-bar s { animation: apMiShimmer 2s ease-in-out 3; }
@keyframes apMiShimmer { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.ap-mi-link { margin-top: 11px; text-align: right; font-size: 14px; color: #9a6b57; }
.ap-mi-link span { display: inline-block; }
.scene.on .ap-mi-link span { animation: apMiNudge 2s ease-in-out 3; }
@keyframes apMiNudge { 50% { transform: translateX(5px); } }
.ap-mi-sec { margin-bottom: 18px; padding: 0 16px; }
.ap-mi-h { margin-bottom: 7px; font-size: 17px; font-weight: 600; color: #333; }
.ap-mi-lot { margin-bottom: 5px; font-size: 14px; color: #9a6b57; }
.ap-mi-note { margin-bottom: 5px; font-size: 13px; line-height: 1.5; color: #8c6a5a; }
.ap-mi-ms { padding-top: 5px; }
.ap-ms { display: flex; align-items: center; gap: 14px; margin-bottom: 11px; padding: 18px 22px; border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.ap-ms.lock { opacity: .5; }
.ap-ms i { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 13px; background: #f5f5f5; font-style: normal; font-size: 27px; }
.ap-ms i.ok { background: #e8f5e9; }
.ap-ms div { flex: 1; }
.ap-ms b { display: block; font-size: 16px; font-weight: 600; }
.ap-ms small { display: block; margin-top: 2px; font-size: 14px; color: #ff6b35; }
.ap-ms em { font-style: normal; padding: 3px 11px; border-radius: 20px; background: #e8f5e9; color: #2e7d32; font-size: 14px; font-weight: 600; }
.ap-mi-box { border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.ap-mi-tix { display: flex; flex-wrap: wrap; gap: 9px; padding: 18px 18px 0; }
.ap-mi-tix span { padding: 4px 11px; border: 1px dashed #ff8c5a; border-radius: 8px; background: #fff0e8; color: #c2410c; font: 700 16px ui-monospace, Menlo, monospace; }
.ap-mi-fine { padding: 13px 18px 18px; font-size: 14px; color: #888; }
.ap-mi-list { overflow: hidden; }
.ap-mi-st { display: flex; align-items: center; gap: 13px; padding: 13px 18px; }
.ap-mi-st + .ap-mi-st { border-top: 1px solid #f5ede8; }
.ap-mi-st small { flex: none; width: 26px; text-align: right; font-size: 14px; color: #bbb; }
.ap-mi-st i { display: grid; place-items: center; flex: none; width: 41px; height: 41px; border-radius: 9px; background: #fff0e8; font-style: normal; font-size: 20px; }
.ap-mi-st div { flex: 1; min-width: 0; }
.ap-mi-st b { display: block; font-size: 16px; font-weight: 600; color: #2d1a12; }
.ap-mi-st span { display: block; margin-top: 2px; font-size: 14px; color: #9a6b57; }
.ap-mi-st em { font-style: normal; font-size: 20px; color: #ff6b35; }

/* ── 台南探索拼圖（liff-app StoreMapSheet.tsx；bigrain_site 色票：paper #fdf6ea、land #faf1e1、border #b89a72、piece #cfc3b2、visited #dc6c45…） ── */
.ap-mapov { position: absolute; left: 0; right: 0; top: 52px; bottom: 0; z-index: 4; display: none; }
.ap-mapov.open { display: block; }
.pz-bg { position: absolute; inset: 0; background: rgba(51, 65, 58, .45); transition: opacity .26s ease; }
.pz-sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 88%; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px 20px 0 0; background: #fdf6ea; box-shadow: 0 -10px 30px rgba(60, 50, 30, .18); transition: transform .26s cubic-bezier(.22, 1, .36, 1); }
.ap-mapov.slide .pz-bg { animation: pzFade .25s ease; }
.ap-mapov.slide .pz-sheet { animation: pzUp .32s cubic-bezier(.22, 1, .36, 1); }
@keyframes pzUp { from { transform: translateY(100%); } }
@keyframes pzFade { from { opacity: 0; } }
.ap-mapov.closing .pz-bg { opacity: 0; }
.ap-mapov.closing .pz-sheet { transform: translateY(100%); }
.pz-sheet.dragging { transition: none; }
.pz-hd { padding: 11px 18px 9px; border-bottom: 1px solid #b89a7255; touch-action: none; }
.gs-exploring .pz-hd { cursor: grab; }
.pz-grab { display: block; width: 44px; height: 4px; margin: 0 auto 9px; border-radius: 2px; background: #b89a72; }
.pz-row { display: flex; align-items: center; gap: 9px; }
.pz-ttl { flex: 1; min-width: 0; }
.pz-ttl p { display: flex; align-items: baseline; gap: 11px; }
.pz-ttl p b { font-size: 18px; font-weight: 700; color: #3f6655; }
.pz-srcbtn { font-size: 14px; color: #3f6655; text-decoration: underline; }
.pz-ttl small { display: block; margin-top: 2px; font-size: 14px; color: #6e655b; }
.pz-ttl small b { color: #c4593a; }
.pz-close { display: grid; place-items: center; flex: none; width: 41px; height: 41px; border-radius: 50%; background: #fff; color: #6e655b; font-size: 20px; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.pz-box { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.pz-svg { display: block; width: 100%; height: 100%; background: #fdf6ea; touch-action: none; }
.gs-exploring .pz-svg { cursor: grab; }
.pz-fill { fill: #faf1e1; stroke: none; }
.pz-fill.empty { fill: #e6eee6; }
.pz-draw { display: none; fill: none; stroke: #b89a72; stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1; pointer-events: none; }
.pz-line { fill: none; stroke: #b89a72; stroke-width: 2px; stroke-linejoin: round; pointer-events: none; }
.pz-hex { stroke: #9c8060; stroke-width: 1.5px; stroke-linejoin: round; cursor: pointer; }
.pz-hex.on { stroke: #fdf6ea; }
.pz-hex.sel, .t-app .pz-hex.tapping { stroke: #33413a; stroke-width: 3px; }
.t-app .pz-svg .tapping { transform: none; filter: none; }
.pz-ck { font-size: 13px; font-weight: 700; fill: #fff; text-anchor: middle; pointer-events: none; }
.pz-labels { fill: #3f6655; stroke: #fdf6ea; font-weight: 700; paint-order: stroke; text-anchor: middle; pointer-events: none; }
.pz-labels text { dominant-baseline: central; }
/* 開場（打開時播一次）：畫出界線 → 區名淡入 → 六角格由中心往外落下 → 點亮擴散（去過的維持點亮）→ 拉近到預設畫面（JS 依 .pz-clock 的進度） */
.pz-clock { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pz-intro .pz-clock { animation: pzClock 5s linear both; }
@keyframes pzClock { from { opacity: 0; } to { opacity: .01; } }
.pz-intro .pz-draw { display: inline; animation: pzDraw 1.1s ease-in-out forwards; }
@keyframes pzDraw { 0% { stroke-dashoffset: 1; opacity: 1; } 70% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.pz-intro .pz-line { animation: pzFade .3s ease .8s backwards; }
.pz-intro .pz-fill { animation: pzFade .5s ease .5s backwards; }
.pz-intro .pz-labels text { animation: pzFade .5s ease .8s backwards; }
.pz-intro .pz-pc { animation: pzDrop .5s cubic-bezier(.2, .9, .3, 1.15) var(--dr) backwards; }
@keyframes pzDrop { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.pz-intro .pz-hex { animation: pzBlink .6s ease-out var(--dl) backwards; }
.pz-intro .pz-hex.on { animation-name: pzLight; }
@keyframes pzBlink { 0% { fill: #cfc3b2; } 35% { fill: #dc6c45; } 100% { fill: #cfc3b2; } }
@keyframes pzLight { 0% { fill: #cfc3b2; } 40% { fill: #f08a5d; } 100% { fill: #dc6c45; } }
.pz-intro .pz-ck { animation: pzCheck .6s ease-out var(--dl) backwards; }
@keyframes pzCheck { 0%, 40% { opacity: 0; } 100% { opacity: 1; } }
/* ＋／－／⟲（右上角） */
.pz-btns { position: absolute; right: 13px; top: 13px; display: grid; gap: 9px; }
.pz-btns span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; border: 1px solid #e6cfae; background: #fffaf2; color: #3f6655; font-size: 23px; box-shadow: 0 2px 6px rgba(60, 50, 30, .12); }
.pz-btns span.sm { font-size: 18px; }
/* 示範拖曳的手指 */
.pz-finger { position: absolute; left: 0; top: 0; z-index: 2; width: 54px; height: 54px; margin: -27px 0 0 -27px; border: 3px solid #fff; border-radius: 50%; background: rgba(255, 255, 255, .3); box-shadow: 0 0 0 4px rgba(255, 107, 53, .9), 0 0 24px 4px rgba(255, 107, 53, .5); opacity: 0; transition: opacity .25s; pointer-events: none; }
.pz-finger.on { opacity: 1; }
/* 店家泡泡：店名、打卡紀錄、在 Google 地圖／Facebook 開啟 */
.pz-pop { position: absolute; z-index: 2; display: none; width: 264px; padding: 11px 14px; border: 1px solid #e6cfae; border-radius: 15px; background: #fffaf2; box-shadow: 0 6px 18px rgba(60, 50, 30, .22); }
.pz-pop.on { display: block; }
.pz-arr { position: absolute; bottom: -7px; width: 12px; height: 12px; border: solid #e6cfae; border-width: 0 1px 1px 0; background: #fffaf2; transform: rotate(45deg); }
.pz-pop.below .pz-arr { top: -7px; bottom: auto; border-width: 1px 0 0 1px; }
.pz-pop p { display: flex; align-items: flex-start; gap: 7px; }
.pz-pop p b { flex: 1; font-size: 16px; font-weight: 700; line-height: 1.35; color: #33413a; }
.pz-pop p span { padding: 2px; font-size: 16px; line-height: 1; color: #6e655b; }
.pz-pop small { display: block; margin: 4px 0 9px; font-size: 14px; color: #6e655b; }
.pz-pop small.lit { color: #c4593a; }
.pz-go { display: block; padding: 9px 11px; border-radius: 11px; background: #b45939; color: #fff; text-align: center; font-size: 15px; font-weight: 700; }
/* 資料來源（標題列的 ⓘ）：透明遮罩蓋住地圖，點空白處關閉 */
.pz-srcbg { position: absolute; inset: 0; z-index: 3; display: none; }
.pz-src { position: absolute; left: 13px; right: 13px; top: 13px; z-index: 4; display: none; padding: 13px 16px; border: 1px solid #e6cfae; border-radius: 15px; background: #fffaf2; box-shadow: 0 6px 18px rgba(60, 50, 30, .22); font-size: 14px; line-height: 1.6; color: #33413a; }
.ap-mapov.src :is(.pz-srcbg, .pz-src) { display: block; }
.pz-src p:first-child { display: flex; align-items: center; margin-bottom: 4px; }
.pz-src p:first-child b { flex: 1; color: #3f6655; }
.pz-src p:first-child span { padding: 0 2px; color: #6e655b; }
.pz-src .m { margin-top: 6px; color: #6e655b; }
.pz-lic { color: #3f6655; text-decoration: underline; word-break: break-all; }
@media (prefers-reduced-motion: reduce) {
    .ap-mapov.slide :is(.pz-bg, .pz-sheet), .scene.on :is(.ap-mi-card, .ap-mi-bar s, .ap-mi-link span) { animation: none; }
}
/* 店主從後台「開啟櫃台結帳碼」：同一個 LINE 視窗換成櫃台頁，標題為頁面標題「櫃台結帳碼」（admin-app/counter.html） */
.ap-t-counter, .t-app[data-step="app"][data-screen="counter"] :is(.ap-t-liff, .ap-t-admin) { display: none; }
.t-app[data-step="app"][data-screen="counter"] .ap-t-counter { display: block; flex: 1; font-size: 19px; font-weight: 900; color: #222; }
