/* 好康團購平台樣式：她 11/09 D848 選風格 3「森林綠・安心健康」（樣稿 docs/style-mocks/style-3.html）。
   客人頁字大（計畫書 2-1「字大、步驟少」）：基本 20px，按鈕至少 56px 高。
   字型：粉圓體（Huninn，標題）＋思源黑體（Noto Sans TC，內文），自己放在 web/fonts（11/10，tools/self_host_fonts.py 產生 /css/fonts.css），
   在各頁 HTML 用 <link> 載入（不用 @import，第一次畫面比較快）；只用到 400、700 兩種粗細。 */
:root {
  --bg: #edf3ec; --surface: #ffffff; --ink: #1d3325; --muted: #466352; --line: #d3e2d5; --soft: #e2eee3;
  --accent: #2b6a43; --accent-strong: #235a38; --accent-ink: #ffffff; --accent-soft: #e3efe6; --price: #1f5a36;
  --ok: #2b6a43; --bad: #a12a22; --warn: #7a5600; --warn-soft: #fbecc6;
  --radius: 24px; --radius-sm: 12px; --pill: 999px;
  --display: 'Huninn', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --body: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
  --shadow: 0 8px 24px -14px rgba(20, 60, 35, .45);
  /* 後台分頁分組色（D960）：分店橘、開團綠（＝主色）、訂單藍、紀錄紫；-line 是同色 35% 調白的邊框 */
  --tab-site: #a34e0b; --tab-site-line: #dfc1aa; --tab-group: var(--accent); --tab-group-line: #b5cbbd;
  --tab-order: #1f5c94; --tab-order-line: #b1c6da; --tab-log: #6a4c9c; --tab-log-line: #cbc0dc;
}
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--bg); caret-color: var(--accent); }
h1, h2, h3 { font-family: var(--display); }
body.elder { font-size: 20px; }
header { position: sticky; top: 0; background: var(--surface); color: var(--ink); padding: 12px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; z-index: 2; border-bottom: 1px solid var(--line); }
header h1 { font-size: 1.1em; margin: 0; flex: 1; }
header a, header button.link { color: var(--accent); }
/* 店員頁、老闆後台「開手機通知」開不了時的說明（好康 D1337；web/js/staff-push.js）：標題列下面整行 */
.staff-push-hint { flex-basis: 100%; margin: 0; font-size: 14px; }
nav.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 52px; z-index: 1; }
nav.tabs a { --tab: var(--accent); --tab-line: var(--line); padding: 8px 14px; border-radius: var(--pill); text-decoration: none; color: var(--ink); border: 1px solid var(--tab-line); }
nav.tabs a.on { background: var(--tab); color: var(--accent-ink); border-color: var(--tab); }
/* 後台分頁：圖示＋分組顏色（她 11/11 D960 選 C）。圖示上色、字照舊深色，選中那顆整顆填滿那組顏色；
   四色跟白色對比都 5.7 以上（白字在色底上、色圖示在白底上都夠）。顏色在 :root（--tab-*） */
nav.tabs a[data-ic] { display: inline-flex; align-items: center; gap: 6px; }
/* 分頁設了 hidden 要真的藏起來（上面 inline-flex 會蓋掉瀏覽器預設的 hidden：店員看到「退貨」、好康看到退貨分頁，11/12 點測發現） */
nav.tabs a[hidden] { display: none; }
/* 其他設了 display 的元素也一樣（例如客人頁 body.elder nav.tabs a、鈴鐺），hidden 一律藏（11/11 整體審查） */
[hidden] { display: none !important; }
nav.tabs a .ic { color: var(--tab); }
nav.tabs a.on .ic { color: var(--accent-ink); }
nav.tabs a:focus-visible { outline-color: var(--tab); }
nav.tabs a.t-site { --tab: var(--tab-site); --tab-line: var(--tab-site-line); }
nav.tabs a.t-group { --tab: var(--tab-group); --tab-line: var(--tab-group-line); }
nav.tabs a.t-order { --tab: var(--tab-order); --tab-line: var(--tab-order-line); }
nav.tabs a.t-log { --tab: var(--tab-log); --tab-line: var(--tab-log-line); }
/* 手機上後台分頁排一行、左右滑（她 11/11：加了圖示變 4 行、佔半個畫面）；客人頁只有 3 顆大按鈕，照舊換行 */
@media (max-width: 600px) {
  body:not(.elder) nav.tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding-inline: 16px; }
  body:not(.elder) nav.tabs::-webkit-scrollbar { display: none; }
  body:not(.elder) nav.tabs a { flex: none; white-space: nowrap; }
}
main { padding: 16px; max-width: 900px; margin: 0 auto; }
main.wide { max-width: 1200px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 14px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 6px; font-size: 1.1em; }
button { font: inherit; padding: 8px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--accent); background: var(--surface); color: var(--accent); cursor: pointer; }

button.primary { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
/* 滑鼠移過去才變色；手機點過不會一直留著淡綠（看起來像選中） */
@media (hover: hover) {
  button:hover:not(:disabled) { background: var(--accent-soft); }
  button.primary:hover:not(:disabled) { background: var(--accent-strong); }
  .bell:hover:not(:disabled) { background: var(--accent-soft); }
}
button.big { min-height: 56px; font-size: 1.1em; padding: 10px 22px; border-radius: var(--pill); border-width: 2px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button.block { display: flex; width: 100%; margin: 8px 0; }
button.link { border: 0; background: none; padding: 0; text-decoration: underline; }
button.link.delete-account { color: var(--muted); }   /* 「申請刪除帳號」灰色小字（button 預設是主色，.muted 只管 p 自己；登出等其他 button.link 照舊） */
button:disabled { opacity: .5; cursor: wait; }
input, select, textarea { font: inherit; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); max-width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
label { display: block; margin: 8px 0; }
table { border-collapse: collapse; width: 100%; background: var(--surface); font-variant-numeric: tabular-nums; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .9em; }
tr.total-row td { font-weight: 700; border-top: 2px solid var(--muted); }   /* 合計列（好康總覽「兩店合計」D1390）：上面一條粗線隔開 */
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: .9em; }
.price { font-weight: 700; color: var(--price); font-family: var(--display); }
.tag { display: inline-block; padding: 0 10px; border-radius: var(--pill); background: var(--soft); font-size: .85em; margin-right: 4px; }
.tag.fresh { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.err { color: var(--bad); }
.fb-name-label { font-size: 1.3em; font-weight: 700; color: var(--bad); }
/* 後台「下單狀況」結果欄（失敗用 .err、還沒回報用 .muted） */
.run-ok { color: var(--ok); font-weight: 700; }
.run-preview { color: var(--warn); }
.nowrap { white-space: nowrap; }
/* 取貨卡每一樣前面的勾選框（D965 #13 部分取貨）：大一點好按 */
.picklist { list-style: none; padding-left: 0; }
.picklist input[type=checkbox] { width: 24px; height: 24px; vertical-align: -5px; accent-color: var(--accent); }
/* POS 寄 7-11（好康）：桌機表格、手機（≤600px）一位一張卡片（跟後台廠商表 D1678 同一個做法） */
.ship-cards { display: none; }
.ship-card { border: 1.5px solid var(--line, #d8d8d8); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0 0 10px; }
.ship-card .row { gap: 8px; align-items: center; }
.ship-card input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--accent); }
@media (max-width: 600px) { .ship-table { display: none; } .ship-cards { display: block; } }
.table-scroll { overflow-x: auto; }
.table-scroll th { white-space: nowrap; }
@media print { .table-scroll { overflow: visible; } .table-scroll th, .nowrap { white-space: normal; } }   /* 紙上不能滑：印的時候攤開、表頭可以換行 */
.run-msg { min-width: 12em; }
/* 叫貨設定的廠商清單（她 11/18 D1678＝A，web/admin/admin.js orderingVendors）：桌機表格、備註在那家下面另起一行（左邊黏住，表格往右滑也看得到）；
   手機改一家一張卡片（dl.vendor-kv：左欄名稱、右欄設定）；名稱欄固定在左邊（往右滑也看得到是哪一家） */
/* 不設 z-index：sticky 本身就會蓋過同一表格裡沒定位的格子；設了 1 會跟 nav.tabs（z-index 1）同層、排在後面，往下捲時店名疊到分頁列上 */
.vendor-table .sticky-col { position: sticky; left: 0; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.vendor-table tr.has-note td { border-bottom: 0; }
.vendor-table tr.vendor-note td { padding-top: 0; }
.vendor-table tr.vendor-note td > div { position: sticky; left: 10px; max-width: min(60em, calc(100vw - 96px)); white-space: normal; }
.vendor-cards { display: none; }
.vendor-kv { display: grid; grid-template-columns: minmax(0, 9em) 1fr; gap: 4px 12px; margin: 8px 0 0; }
.vendor-kv dt { color: var(--muted); font-size: .9em; }
.vendor-kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .vendor-table { display: none; } .vendor-cards { display: block; } }
/* 圖示：跟文字一起排，大小跟字一樣 */
.ic { width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.15em; }
.with-ic { display: flex; gap: 8px; align-items: center; }
.inline-ic { display: inline-flex; gap: 6px; align-items: center; }   /* 跟同一格的其他字排在同一行（表格裡用） */
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button { width: 56px; height: 56px; font-size: 1.4em; }
.qty output { min-width: 2em; text-align: center; font-size: 1.4em; }
.toast { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); padding: 12px 18px; border-radius: 10px; color: #fff; z-index: 9; max-width: 90vw; }
.toast.ok { background: var(--ok); }
.toast.err { background: var(--bad); }
.basket { font-size: 1.6em; font-weight: 700; color: var(--accent); font-family: var(--display); }
/* 客人頁第二批（D827）：分頁鈕跟大按鈕一樣高、款式整列大按鈕、底部固定下一步、訂單卡縮圖 */
body.elder nav.tabs a { min-height: 56px; display: inline-flex; align-items: center; padding: 8px 16px; }
button.style-opt { text-align: left; justify-content: flex-start; }
/* 選中的款式：整顆填滿主色＋打勾圖示，一眼看得出來 */
button.style-opt.on, button.style-opt.on:hover { background: var(--accent); color: var(--accent-ink); }
.sticky-next { position: sticky; bottom: 0; background: var(--bg); padding: 6px 0 4px; border-top: 1px solid var(--line); }
.order-card { display: flex; gap: 12px; align-items: flex-start; }
.order-card.link-card { cursor: pointer; }
.order-card img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); flex: none; }
/* 客人頁右上角鈴鐺（D831）：紅點＝沒看過的則數 */
body.elder header h1 { white-space: nowrap; flex: 0 0 auto; }
body.elder #who { flex: 1; min-width: 0; font-size: .8em; line-height: 1.35; text-align: right; }   /* 太長就換行，不截掉（要看得到是誰登入） */
.bell { position: relative; border: 0; background: none; color: var(--ink); min-width: 48px; min-height: 48px; padding: 4px 8px; display: grid; place-items: center; }
.bell .ic { width: 26px; height: 26px; }
.bell .badge { position: absolute; top: 0; right: -2px; min-width: 1.5em; padding: 0 5px; border-radius: var(--pill); background: var(--bad); color: #fff; font-size: 15px; line-height: 1.5em; text-align: center; font-weight: 700; }
/* 「大家已經訂了 N 份」（她 11/09）：超過 10 份紫色、20 份以上紅色（白底對比都超過 4.5:1） */
.ordered { font-weight: 700; }
.ordered.love { color: #6a2c9e; }
.ordered.hot { color: #c0262d; }
.help-bar { padding: 0 16px; max-width: 900px; margin: 8px auto 32px; }   /* 客人頁每頁最下面「有問題找店員」（D824） */
/* 好康客人頁每一頁最下面「有問題？LINE 客服」＋分店地址、取貨時間（她 11/16 D1400，web/elder/elder.js syncFooter；好康不顯示） */
.cs-footer { padding: 12px 16px 24px; max-width: 900px; margin: 16px auto 0; border-top: 1px solid var(--line); font-size: .85em; line-height: 1.6; }
.cs-footer p { margin: 4px 0; }
.cs-footer .cs-site { margin-top: 8px; }
/* 好康客人頁「拿過的」一張出貨單一列（D1400），點開看品項和錢 */
details.slip-row > summary { cursor: pointer; line-height: 1.5; }
details.slip-row[open] > summary { margin-bottom: 8px; }
details.slip-row table { width: 100%; }
/* 好康 FB 留言卡片（店員頁、老闆後台共用 web/js/fb-card.js；她 11/16 D1421）：一則訂多款每款一格數量；老闆頁依團分組 */
.fb-multi { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.fb-grp .card { margin: 8px 0; }
@media print { header, nav.tabs, .noprint { display: none !important; } body { background: #fff; } .card { break-inside: avoid; border: 1px solid #888; box-shadow: none; } }
header .muted { color: var(--muted); }

/* 商品照片（框線圖 3-1 列表縮圖、3-2 大圖左右滑）；照片是正方形 */
.card.product { padding: 0 0 14px; overflow: hidden; }
.card.product > :not(img) { margin-left: 16px; margin-right: 16px; }
.card.product h3 { margin-top: 10px; cursor: pointer; }
img.thumb { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--soft); cursor: pointer; }
.big-price { font-size: 1.4em; }
.gallery-wrap { position: relative; margin: 0 -16px 8px; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; scroll-snap-align: center; background: var(--soft); }
.gallery-count { position: absolute; right: 12px; bottom: 10px; background: rgba(0,0,0,.55); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: .85em; }
.elder-text { white-space: pre-wrap; font-size: 1.05em; line-height: 1.9; }
a.back { display: inline-block; margin-bottom: 8px; color: var(--accent); }
.card.product > button.block { width: calc(100% - 32px); }

/* 營業額頁的數字卡（她 11/09：毛利率、目前利潤） */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
.card.stat { margin: 0; }
.card.stat .basket { font-size: 1.4em; }

/* 籃子標籤（3-5）：A4 一頁 3×8，籃號大字；貼紙尺寸試辦前再定 */
.labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.label { border: 1px dashed #999; border-radius: 6px; padding: 8px; text-align: center; background: #fff; break-inside: avoid; min-height: 32mm; }
.label-no { font-size: 2.6em; font-weight: bold; line-height: 1.1; color: var(--accent); }
@media print { .labels { gap: 0; } .label { border-color: #ccc; height: 33mm; min-height: 0; overflow: hidden; } }
@page { size: A4; margin: 10mm; }   /* A4 297mm－上下邊界 20mm＝277mm，8 排×33mm＝264mm 放得下 */

/* 第一次使用的「我同意」（她 D866、D867 框線圖）：整塊都能按、至少 56px 高；勾了變淡綠（.on，elder.js 切），沒勾就按送出框變紅（.need） */
.agree { display: flex; gap: 12px; align-items: flex-start; min-height: 56px; padding: 14px 16px; margin: 16px 0 6px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.agree.on { border-color: var(--accent); background: var(--accent-soft); }
.agree.need { border-color: var(--bad); }
.agree input { flex: none; width: 28px; height: 28px; margin: 2px 0 0; accent-color: var(--accent); }
.agree a { color: var(--accent); font-weight: 700; display: inline-block; padding: 6px 0; }   /* 書名上下多留一點，手指比較好按 */
/* 條款全文：單獨打開（/terms/、/privacy/）和客人頁蓋在畫面上看（.legal-dialog）共用 */
.legal-doc h1 { font-size: 1.4em; margin: .4em 0 0; }
.legal-doc h2 { font-size: 1.15em; margin: 1.4em 0 .4em; }
.legal-doc .card h2 { margin-top: 0; }
.legal-doc li { margin: 4px 0; }
/* 斷貨（D936）：款式變灰、寫「已斷貨」、不能按；不用 .5 透明度，字要看得清楚（客人可讀性底線） */
button.out, button.out:disabled { opacity: 1; cursor: not-allowed; background: var(--soft); border-color: var(--line); color: var(--muted); }
.tag.out { background: var(--soft); color: var(--muted); font-weight: 700; }
/* 斷貨視窗（ui.js pickStockout；總後台、分店後台共用） */
.tenant-readonly main button.primary, .tenant-readonly main button.big.err { opacity: .5; }   /* 老闆後台唯讀：寫入的主按鈕變淡（點了跳「目前是只能看模式」） */
.pick-dialog { width: calc(100% - 32px); max-width: 560px; border: 0; border-radius: var(--radius); padding: 18px 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.pick-dialog::backdrop { background: rgba(20, 40, 28, .45); }
.pick-dialog h3 { margin: 0 0 4px; }
.pick-dialog label { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-height: 44px; margin: 0; }
.pick-dialog input[type=checkbox] { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.pick-dialog .notice { white-space: pre-line; background: var(--bg); border-radius: var(--radius-sm); padding: 10px 12px; }
.pick-dialog .err { white-space: pre-line; }
.row.end { justify-content: flex-end; }
/* 會刪資料、改不回來的按鈕（分店後台「刪除帳號」） */
button.danger { border-color: var(--bad); color: var(--bad); }
/* 客人頁最上面「帳號暫停下單中」（D899） */
.suspend-bar, .tenant-bar.readonly { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius-sm); padding: 10px 14px; box-sizing: border-box; width: calc(100% - 32px); max-width: 868px; margin: 12px auto 0; }
.suspend-bar p, .tenant-bar p { margin: 4px 0; }
/* 客人頁公告（D965 #26）：黃框，跟暫停下單那條同一個寬度 */
.announce-bar, .tenant-bar.soon { background: var(--warn-soft); color: var(--warn); border: 2px solid var(--warn); border-radius: var(--radius-sm); padding: 10px 14px; box-sizing: border-box; width: calc(100% - 32px); max-width: 868px; margin: 12px auto 0; }
.announce-bar p, .tenant-bar.soon p { margin: 4px 0; }
/* 現貨標籤（D969）：跟生鮮標籤一樣大小，用訂單藍 */
.tag.stock { background: var(--tab-order-line); color: var(--tab-order); font-weight: 700; }
/* 食品（D979＝B）：結單後不能說不要、拿到後不能退 */
.tag.food { background: var(--tab-site-line); color: var(--tab-site); font-weight: 700; }
/* 客人商品頁的退貨說明（D980：標在商品旁邊就好，不跳視窗） */
.return-rule p { margin: .2em 0; }
.return-rule { margin: .4em 0; }
/* 多件優惠（D1067）：商品卡、商品頁、確認頁的那一句；選數量時的提示 */
.deal { color: var(--accent); font-weight: 700; margin: 6px 0; }
.deal-hint { color: var(--accent); margin: 6px 0; min-height: 1.5em; }
/* 客人頁：儲值金快不夠（D881）／夠扣 */
.credit-warn { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 14px; }
.credit-warn p { margin: 4px 0; }
.credit-ok { color: var(--ok); font-weight: 700; }
.draft-banner { background: var(--warn-soft); color: var(--warn); font-weight: 700; padding: 10px 14px; border-radius: var(--radius-sm); }
.legal-dialog { width: 100%; max-width: 900px; height: 100%; max-height: 100%; margin: 0 auto; padding: 0; border: 0; background: var(--bg); color: var(--ink); }
.legal-dialog[open] { display: flex; flex-direction: column; }
.legal-dialog::backdrop { background: rgba(20, 40, 28, .45); }
.legal-body { flex: 1; overflow-y: auto; padding: 8px 18px 16px; }
.legal-close { padding: 6px 16px 14px; border-top: 1px solid var(--line); background: var(--bg); }
/* 第二層小按鈕（11/11 好康「版面很亂」）：一排一類，標籤固定寬度讓按鈕對齊 */
.chips { margin: 0 0 8px; }
.chips-label { color: var(--muted); font-size: .9em; min-width: 3em; }
.chips button { padding: 4px 14px; border-radius: var(--pill); }
/* 依團收合（全部訂單圖一）：一團一列，點開才列客人 */
details.grp { background: var(--surface); border-radius: var(--radius-sm); margin: 0 0 8px; box-shadow: var(--shadow); }
details.grp > summary { padding: 10px 14px; cursor: pointer; display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
details.grp > summary b { font-size: 1.05em; }
details.grp[open] > summary { border-bottom: 1px solid var(--line); }
details.grp > .grp-body { padding: 4px 8px 10px; overflow-x: auto; }
/* 瑕疵回報照片小圖（11/11 圖三） */
.issue-photos { margin: 6px 0; }
.issue-photos .thumb { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--soft); }
/* 後台分頁上的紅點數字（D1008：瑕疵回報待處理幾筆） */
.tabs .dot { display: inline-block; min-width: 1.4em; padding: 0 5px; margin-left: 4px; border-radius: var(--pill); background: var(--bad); color: #fff; font-size: .8em; line-height: 1.5; text-align: center; }
/* 看起來像按鈕的連結（好康「開通 Messenger 通知」：要開新視窗到 m.me，用連結不用 button） */
a.button-link { display: block; text-align: center; padding: 14px 18px; border-radius: var(--pill); background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
/* 老闆後台「通知訊息」改字畫面的預覽（④ 團主自訂通知 D1700，框線圖計畫 3.7）：App 推播、24 小時內 Messenger 並排，手機上疊起來；字照換行顯示 */
.notice-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.notice-pane h3 { font-size: .95em; color: var(--muted); }
.notice-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0; }
@media (max-width: 600px) { .notice-panes { grid-template-columns: 1fr; } }

/* ── 好康版配色：風格 6「現代極簡・好康藍綠」（她 11/09 D848；樣稿 docs/style-mocks/style-6.html）。建置時接在 base.css 後面 ── */
:root {
  --bg: #f4f6f7; --surface: #ffffff; --ink: #132229; --muted: #4b5d65; --line: #e2e8eb; --soft: #e8f0f2;
  --accent: #164f60; --accent-strong: #0f3c49; --accent-ink: #ffffff; --accent-soft: #e3eef1; --price: #164f60;
  --ok: #1d6b45; --bad: #b42318; --warn: #8a5a00; --warn-soft: #fbefd2;
  --radius: 16px; --radius-sm: 10px;
  --display: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --shadow: 0 6px 18px -12px rgba(19, 34, 41, .35);
  --tab-group-line: #b4c8ce;
}

/* ── POS（D993 框線圖）：左邊客人出貨單＋等候付款、右邊數字鍵收錢 ── */
body.pos main { max-width: 1280px; }
.pos-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
/* POS 改版（她 11/13 D1240＝A，照愛+1）：右邊購物車、收錢視窗 */
.pos-cart-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pos-cart-head h3 { margin: 0; }
.pos-cart-head button.on { background: var(--accent); color: var(--accent-ink); }
.pos-info { background: var(--soft); border-radius: var(--radius-sm); padding: 10px 12px; margin: 10px 0; }
.pos-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 14px; }
.pos-actions button { min-height: 64px; font-size: 1.2em; font-weight: 700; }
.pos-pay { font-size: 1.35em !important; }
.pos-topup { text-align: right; margin: 10px 0 0; }
.slip-items th { text-align: left; font-weight: 500; color: var(--muted); padding: 4px; border-bottom: 1px solid var(--line); }
.slip-items th.num { text-align: right; }
.today-print { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.today-print .reprint { flex: none; min-width: 72px; }
.pay-dialog { max-width: 520px; max-height: calc(100vh - 24px); padding: 14px 18px; }
.pay-dialog .pay-due { margin: 4px 0 8px; font-size: 2em; }
.pay-dialog .quick { margin: 8px 0; gap: 6px; }
.pay-dialog .keypad { gap: 6px; }
.pay-dialog .keypad button, .pay-dialog .quick button { min-height: 50px; font-size: 1.3em; }
.pay-dialog .pay-change { margin: 6px 0; }
.pay-dialog .pos-actions { margin-top: 8px; }
.pay-methods { display: flex; gap: 8px; margin: 0 0 10px; flex-wrap: wrap; }
.pay-methods button { min-height: 52px; min-width: 120px; font-size: 1.1em; font-weight: 700; }
.pay-methods button.on { background: var(--accent); color: var(--accent-ink); }
.pay-excess { display: flex; align-items: center; gap: 10px; font-size: 1.1em; margin: 4px 0; }
.pick-dialog .pay-excess input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--accent); }
@media (max-width: 860px) {
  .pos-grid { grid-template-columns: 1fr; }
  /* 窄螢幕（直立平板）：找客人 → 購物車 → 等候付款、今天印過的（購物車不會被長清單推到最下面） */
  .pos-left { display: contents; }
  .pos-left > .pos-find-card { order: 1; }
  .pos-cart { order: 2; }
  .pos-left > .card:not(.pos-find-card) { order: 3; }
}
.pos-find { display: flex; gap: 8px; align-items: center; }
.pos-find input { font-size: 1.6em; width: 5.2em; letter-spacing: .3em; text-align: center; padding: 6px 8px; border-radius: var(--radius-sm); border: 2px solid var(--line); }
.pos-who { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.slip-items { width: 100%; border-collapse: collapse; margin: 8px 0; }
.slip-items td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.slip-items td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.slip-sum { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-variant-numeric: tabular-nums; }
.slip-sum .due { font-size: 1.4em; font-weight: 700; color: var(--accent); }
.pay-due { font-size: 2.4em; font-weight: 700; color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; line-height: 1.2; }
.pay-got { font-size: 1.8em; text-align: right; font-variant-numeric: tabular-nums; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 4px 12px; min-height: 1.6em; background: var(--soft); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button, .quick button { min-height: 64px; font-size: 1.5em; font-weight: 700; border-radius: var(--radius-sm); }
.pay-change { font-size: 1.4em; text-align: right; margin: 10px 0; font-variant-numeric: tabular-nums; }
.pay-change b { color: var(--bad); font-size: 1.3em; }
.pay-done { width: 100%; min-height: 72px; font-size: 1.4em; margin-top: 10px; }
.waitlist button { display: flex; width: 100%; justify-content: space-between; margin: 6px 0; text-align: left; }
.waitlist button .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
/* 部分拆單（對照報告 11/12 第 8 項）：按了才有的勾選框、這次拿幾樣的那一行 */
.slip-items td.pick { width: 36px; }
.slip-items td.pick input { width: 26px; height: 26px; margin: 0; accent-color: var(--accent); }
.slip-pick { margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.slip-pick .due { font-size: 1.25em; font-weight: 700; color: var(--accent); }

/* ── POS 清爽分色（她 11/13：「版面很生硬」→ D1245 先選暖色、上線後「感覺怪怪的」→ D1248＝A 改成這個）：保留好康藍綠，
   拿掉外框線改柔和陰影；按鈕照用途分顏色（列印藍、結帳綠、儲值橘），等候付款的金額琥珀色。
   只換顏色和樣式，版面位置、窄螢幕排序（上面的 .pos-left／.pos-cart order）、收錢視窗的鍵盤操作都不動 ── */
body.pos { --shadow: 0 12px 30px -18px rgba(19, 34, 41, .35); --pos-print: #2b7a8f; --pos-go: #1d8a52; --pos-due: #c2410c; --pos-key: #f1f5f6; }
body.pos nav.tabs a { border: 0; background: var(--soft); }
body.pos nav.tabs a.on { background: var(--accent); color: var(--accent-ink); }
body.pos .card { border: 0; box-shadow: var(--shadow); border-radius: 20px; }
body.pos button:not(.link):not(.primary) { border: 0; background: var(--soft); }
body.pos .pos-find input { border-color: transparent; background: var(--soft); }
body.pos .pos-find input:focus { border-color: var(--accent); }
body.pos .waitlist button:not(.link):not(.primary) { background: #fff8ec; }
body.pos .waitlist .amt { color: var(--pos-due); }
body.pos .slip-sum { background: #f2f8f9; border-radius: 16px; padding: 12px 16px; }
body.pos .slip-sum .due:last-child { font-size: 1.6em; color: var(--pos-due); }
body.pos .pos-actions button.primary:not(.pos-pay) { background: var(--pos-print); border-color: var(--pos-print); }
body.pos button.pos-pay, body.pos button.pay-done { background: var(--pos-go); border-color: var(--pos-go); }
body.pos .pos-topup button:not(.link):not(.primary) { background: #fff1db; color: #9a5b00; font-weight: 700; }
body.pos dialog.pay-dialog { border: 0; border-radius: 24px; box-shadow: 0 30px 60px -24px rgba(19, 34, 41, .55); }
body.pos .pay-got { border-color: transparent; border-radius: 16px; font-size: 2.2em; }
body.pos .pay-dialog .keypad button:not(.link):not(.primary) { background: var(--pos-key); }
body.pos .pay-dialog .quick button:not(.link):not(.primary) { background: var(--accent-soft); color: var(--accent); }
body.pos .pay-methods button.on { background: var(--accent); color: var(--accent-ink); }
body.pos .pay-change b { color: var(--pos-due); }
/* 金額紅色（她 11/13 D1249「B 加剛剛的 金額紅色」）：等候付款的金額、應付總額、找零都用 --pos-due（暖色版那個紅）。
   字體 D1249＝B：粉圓體只用在標題、金額、按鈕；品名、說明這些小字照用思源黑體（比較好讀） */
body.pos header h1, body.pos .card h3, body.pos .slip-sum .due, body.pos .waitlist .amt, body.pos .pay-due, body.pos .pay-got,
body.pos .pos-actions button, body.pos .pay-change, body.pos .pay-methods button, body.pos .keypad button, body.pos .quick button { font-family: 'Huninn', var(--body); }

/* ── 店內平板（D986）：大字、大按鈕；客人只能輸入末三碼、點名字、印出貨單 ── */
body.kiosk { font-size: 24px; }
body.kiosk main { max-width: 760px; }
.kiosk-digits { display: flex; gap: 12px; justify-content: center; margin: 12px 0 20px; }
.kiosk-digits span { width: 2.4em; height: 2.6em; border-radius: var(--radius-sm); border: 3px solid var(--line); background: var(--surface); display: grid; place-items: center; font-size: 1.6em; font-weight: 700; }
.kiosk-digits span.on { border-color: var(--accent); }
.kiosk .keypad button { min-height: 88px; font-size: 1.6em; }
.kiosk-names { display: grid; gap: 12px; }
.kiosk-names button { min-height: 84px; font-size: 1.3em; }

/* ── 出貨單列印：照愛+1「揀貨單[熱感紙]」的尺寸（她 11/11：「熱感應機用現在愛+1 系統是剛好的」；
   愛+1 樣板 body{width:80mm;font-size:14px;margin:0}、@page{size:auto;margin:0}、左右各留 5px、字粗 500、行高 22px、需付款 24px） ── */
#print-area { display: none; }
/* 只有印熱感紙單據的頁面（出貨單、轉店單：receipt.js printArea 加 slip-print）才只印 #print-area、用 80mm 的具名頁面 slip；
   店員頁「印理貨單」「列印標籤」沒有 slip-print，照 base.css 的 A4、邊界 10mm 印（審查 11/12） */
@page slip { size: auto; margin: 0; }
@media print {
  body.slip-print > *:not(#print-area) { display: none !important; }
  body.slip-print #print-area { page: slip; display: block !important; font-family: var(--body); font-size: 14px; line-height: 22px; font-weight: 500; color: #000; width: 80mm; padding: 0 5px; box-sizing: border-box; }
  body.slip-print #print-area h2 { font-size: 16px; margin: 0 0 4px; text-align: center; }
  body.slip-print #print-area table { width: 100%; border-collapse: collapse; }
  body.slip-print #print-area td { padding: 1px 0; vertical-align: top; }
  body.slip-print #print-area td.num { text-align: right; white-space: nowrap; }
  body.slip-print #print-area hr { border: 0; border-top: 1px dashed #000; margin: 4px 0; }
  body.slip-print #print-area .big { font-size: 24px; font-weight: 700; line-height: 30px; }
}
.receipt { background: #fff; color: #000; border: 1px dashed var(--muted); border-radius: 8px; padding: 12px 14px; max-width: 340px; font-size: 15px; line-height: 1.5; }
.receipt h2 { font-size: 18px; margin: 0 0 4px; text-align: center; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt td.num { text-align: right; white-space: nowrap; }
.receipt hr { border: 0; border-top: 1px dashed #666; margin: 6px 0; }
.receipt .big { font-size: 20px; font-weight: 700; }

/* 好康不用：據點電腦上的自動下單狀況（長照 D836／D837），試用版沒有接 */
a[href="#/orderruns"] { display: none !important; }

/* 首頁：一家店一張卡，功能按鈕排成格子（她 11/11「版面很亂」） */
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.home-btn { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); background: var(--surface); }
.home-btn b { font-size: 1.1em; color: var(--accent); }
.home-btn:hover { border-color: var(--accent); }

/* 沒開通的人看的商品（11/12 D1029：模糊取代鎖頭；模糊的是假字，真的價錢沒送到網頁） */
.shop-lock { background: var(--warn-soft); color: var(--warn); border: 2px solid var(--warn); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.shop-btn { display: inline-block; padding: 10px 16px; border-radius: var(--pill); border: 1.5px solid var(--accent); color: var(--accent); background: var(--surface); text-decoration: none; font-weight: 700; }
.shop-btn.primary { background: var(--accent); color: var(--accent-ink); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.shop-card { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 0 0 10px; border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; font: inherit; color: var(--ink); }
.shop-card > :not(img):not(.shop-noimg) { margin: 0 10px; }
.shop-card img, .shop-noimg { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); }
.shop-noimg { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.shop-blur { filter: blur(5px); user-select: none; color: var(--price); font-size: .9em; line-height: 1.5; }

/* 出貨單版面（照愛+1 揀貨單[熱感紙]的區塊和順序；畫面預覽和列印共用） */
.receipt .rc-sec, #print-area .rc-sec { text-align: center; margin: 6px 0 2px; white-space: nowrap; overflow: hidden; font-weight: 700; }
.receipt .rc-center, #print-area .rc-center { text-align: center; }
.receipt .rc-lr, #print-area .rc-lr { display: flex; justify-content: space-between; gap: 8px; }
.receipt .rc-right, #print-area .rc-right { text-align: right; }
.receipt .rc-dash, #print-area .rc-dash { border-top: 1px dashed #000; margin: 4px 0; }
/* 品名最多 2 行，超過顯示「…」（愛+1 也是） */
.receipt .rc-name, #print-area .rc-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.receipt .rc-pay, #print-area .rc-pay { margin-top: 6px; }
/* 出貨單最下面的 LINE 綁定 QR（D2611＝A）：QR 在左（約 30mm，熱感紙 80mm 寬放得下）、字在右 */
.receipt .rc-bind, #print-area .rc-bind { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.receipt .rc-qr, #print-area .rc-qr { flex: none; }
/* 買家名稱放大加粗（她 12/02）：名字長會自動換行，不截斷 */
.receipt .rc-buyer, #print-area .rc-buyer { font-size: 1.5em; font-weight: 700; line-height: 1.3; word-break: break-all; }
/* QR 下面「只限本人綁定」（D2632）：粗體，熱感紙上一眼看得到 */
.receipt .rc-bind-own, #print-area .rc-bind-own { font-weight: 700; margin-top: 2px; }
/* 印出來不要畫面上的虛線外框（愛+1 熱感單也沒有框） */
@media print { #print-area .receipt { border: 0; border-radius: 0; padding: 0; max-width: none; font-size: inherit; line-height: inherit; } }

/* ── 客人頁「逛團購」（她 11/12 D1168＝A 框線圖）：搜尋＋第二層小按鈕＋兩欄小卡（web/elder/elder.js shopView）。長照沒有這段，照舊一欄大卡 ── */
.gb-search { display: block; width: 100%; min-height: 52px; margin: 0 0 10px; }
.gb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.gb-chips button { min-height: 44px; padding: 4px 14px; border-radius: var(--pill); font-size: .9em; font-weight: 700; font-variant-numeric: tabular-nums; }
.gb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.gb-new { margin: 0 0 14px; padding: 10px 10px 2px; border-radius: var(--radius); background: var(--warn-soft); }
.gb-new h3 { margin: 0 0 8px; }
@media (min-width: 640px) { .gb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 860px) { .gb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gb-card { display: flex; flex-direction: column; gap: 2px; padding: 0 0 10px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; color: var(--ink); text-decoration: none; font-size: .85em; line-height: 1.45; }
.gb-card > :not(img):not(.gb-noimg) { margin: 0 10px; }
.gb-card img, .gb-noimg { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); margin-bottom: 6px; }
.gb-noimg { display: flex; align-items: center; justify-content: center; color: var(--muted); }
/* 品名最多 2 行，超過「…」（小卡高度才會一致） */
.gb-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gb-card .price { font-size: 1.2em; }
.gb-meta { color: var(--muted); }
/* 「大家已經訂了 N 份」（她 11/12 晚追加到小卡）：字小一點，「🔥熱賣」放不下就自己一行，這句不從中間斷 */
.gb-card .ordered, .gb-card .with-ic { font-size: .9em; gap: 4px; }
.gb-card .ordered span, .gb-card .with-ic span { white-space: nowrap; }
.gb-meta.soon { color: var(--bad); font-weight: 700; }
.gb-card.out img { filter: grayscale(1); }
.gb-card.out .price, .gb-card.out .gb-title { color: var(--muted); }

/* ── 客人頁清爽分色（她 11/13 D1247「等 POS 這版定案一起改」→ 11/14 看比較圖選 D1303＝B）：跟 POS（D1248／D1249）同一套，保留好康藍綠；
   拿掉外框線、卡片圓角陰影、按鈕淡底（只動 main 裡的，鈴鐺不動）；粉圓體只用在標題、金額、按鈕（品名、說明照用思源黑體）；
   價錢和要付的錢都用 POS 那個紅（D1303＝B：商品價格也紅；賣完的照舊灰） ── */
body.elder { --shadow: 0 12px 30px -18px rgba(19, 34, 41, .35); --pos-due: #c2410c; }
body.elder nav.tabs a { border: 0; background: var(--soft); }
body.elder nav.tabs a.on { background: var(--accent); color: var(--accent-ink); }
body.elder .card, body.elder .gb-card { border: 0; box-shadow: var(--shadow); border-radius: 20px; }
body.elder main button:not(.link):not(.primary) { border: 0; background: var(--soft); }
body.elder button.style-opt.on, body.elder button.style-opt.on:hover { background: var(--accent); color: var(--accent-ink); }
body.elder .gb-search { border-color: transparent; background: var(--surface); box-shadow: var(--shadow); }
body.elder .gb-search:focus { border-color: var(--accent); }
body.elder .price { color: var(--pos-due); }
body.elder header h1, body.elder main h2, body.elder main h3, body.elder .price, body.elder .basket,
body.elder nav.tabs a, body.elder button.big, body.elder .gb-chips button { font-family: 'Huninn', var(--body); }

/* ── 好康全站改版（她 11/19：「介面有點陽春、字有點大、顏色單調」「登入鈕要像愛+1 一樣符合那個平台的顏色」）
   D1865＝C 客人頁內文 18px、按鈕和標題縮小（原本沿用長照長輩版 20px、按鈕 56px）
   D1867＝B 好康全部頁面都改（客人＋店員＋老闆）；長照不載入這個檔，維持長輩大字
   D1871＝A 範本「LINE 小卡五色」（顏色跟 worker/src/line-cards.mts 的 D1206 色帶同一套）：
   頁首藍綠色帶、分類鈕一顆一色、商品卡上方色帶＋價格輪流五色、客人頁主要按鈕珊瑚橘
   → 這段取代 11/14 D1303＝B「商品價格紅色」：她看過範本 A（價格跟卡片同色）後選的
   不動：POS 的按鈕分色和大小（D1248／D1249）、店內平板的大字大按鈕（D986）、列印單據 ── */
:root { --c1: #d35f3a; --c2: #3d5aa8; --c3: #b13e66; --c4: #2f7d4f; --c5: #164f60; --cta: #d35f3a; }

/* 頁首：藍綠色帶、白字（鈴鐺、登入者、連結都換白） */
header { background: var(--accent); color: #fff; border-bottom: 0; }
header h1, header #who, header .muted, header a, header button.link { color: #fff; }
header #who { opacity: .88; }
header .bell { color: #fff; background: transparent; border-color: transparent; }

/* 分頁：選中藍綠 */
nav.tabs a.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* 字級與按鈕大小（POS、店內平板不套） */
body.elder { font-size: 18px; }
body.elder header h1 { font-size: 1.05em; }
body.elder #who { font-size: .78em; }
body.elder nav.tabs a { min-height: 44px; padding: 6px 16px; font-size: .95em; }
body:not(.pos):not(.kiosk) button.big { min-height: 48px; font-size: 1em; padding: 8px 18px; }
body.elder main h2 { font-size: 1.25em; line-height: 1.4; }
body.elder .gb-title { font-size: .92em; line-height: 1.45; }
body.elder .gb-chips button { font-size: .88em; padding: 6px 14px; }
body.elder .qty button { width: 46px; height: 46px; font-size: 1.25em; }
body.elder .qty output { font-size: 1.25em; }
body.elder .big-price { font-size: 1.5em; }

/* 客人頁底色：暖白 */
body.elder { background: #f7f4ef; --bg: #f7f4ef; }
body.elder .gb-search { border: 2px solid #e4ddd2; box-shadow: none; }

/* 分類鈕一顆一色：沒選淡色底＋色字，選中實心白字 */
.gb-chips button:nth-child(5n+1) { --c: var(--c1); } .gb-chips button:nth-child(5n+2) { --c: var(--c2); }
.gb-chips button:nth-child(5n+3) { --c: var(--c3); } .gb-chips button:nth-child(5n+4) { --c: var(--c4); }
.gb-chips button:nth-child(5n+5) { --c: var(--c5); }
body.elder main .gb-chips button { border: 0; background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); }
body.elder main .gb-chips button[aria-pressed="true"] { background: var(--c); color: #fff; }

/* 商品小卡：上方色帶、價格、剩幾天小標籤輪流五色（賣完的照舊灰） */
.gb-card:nth-child(5n+1) { --c: var(--c1); } .gb-card:nth-child(5n+2) { --c: var(--c2); }
.gb-card:nth-child(5n+3) { --c: var(--c3); } .gb-card:nth-child(5n+4) { --c: var(--c4); }
.gb-card:nth-child(5n+5) { --c: var(--c5); }
body.elder .gb-card { border-top: 8px solid var(--c); }
body.elder .gb-card .price { color: var(--c); }
body.elder .gb-card .gb-meta { display: inline-block; width: fit-content; padding: 0 10px; border-radius: var(--pill); background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); font-size: .8em; font-weight: 700; }
body.elder .gb-card .gb-meta.soon { background: #fde8e6; color: var(--bad); }
body.elder .gb-card.out { border-top-color: var(--line); }
body.elder .gb-card.out .price, body.elder .gb-card.out .gb-meta { color: var(--muted); background: var(--soft); }

/* 客人頁其他價格、主要按鈕（下一步、確認）珊瑚橘；選中的款式藍綠 */
body.elder .price { color: var(--cta); }
/* 只有整排的動作鈕（下一步、確定訂購…）和小的存檔鈕換珊瑚橘；「未到貨／已到貨」這種選項鈕（big、不是 block）選中照舊藍綠 */
body.elder main button.block.primary, body.elder main button.primary:not(.big) { background: var(--cta); border-color: var(--cta); color: #fff; }
/* 選中的款式藍綠白字。修現有問題：11/14 那段「main 裡的按鈕淡底」權重比選中款式高 → 選中變淡底白字看不到（11/19 線上量到底 rgb(232,240,242)、字白） */
body.elder main button.style-opt.on:not(.link), body.elder main button.style-opt.on:not(.link):hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
body.elder main button.big.block:not(.primary):not(.style-opt) { background: #fff; }

/* 店員、老闆首頁的功能格子：一格一色（左邊色條＋標題同色） */
.home-btn:nth-child(5n+1) { --c: var(--c1); } .home-btn:nth-child(5n+2) { --c: var(--c2); }
.home-btn:nth-child(5n+3) { --c: var(--c3); } .home-btn:nth-child(5n+4) { --c: var(--c4); }
.home-btn:nth-child(5n+5) { --c: var(--c5); }
.home-btn { border-left: 6px solid var(--c); }
.home-btn b { color: var(--c); }

/* 登入鈕用平台官方顏色＋圖示（LINE #06C755、Facebook #1877F2；圖示 simple-icons 11.0.0，CC0） */
button.line-login, button.line-login:hover:not(:disabled), body.elder main button.line-login.primary { background: #06C755; border-color: #06C755; color: #fff; }
button.fb-login, button.fb-login:hover:not(:disabled), body.elder main button.fb-login.primary { background: #1877F2; border-color: #1877F2; color: #fff; }
button.line-login::before, button.fb-login::before { content: ''; flex: none; width: 1.4em; height: 1.4em; background: center / contain no-repeat; }
button.line-login::before { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M19.365 9.863c.349 0 .63.285.63.631 0 .345-.281.63-.63.63H17.61v1.125h1.755c.349 0 .63.283.63.63 0 .344-.281.629-.63.629h-2.386c-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63h2.386c.346 0 .627.285.627.63 0 .349-.281.63-.63.63H17.61v1.125h1.755zm-3.855 3.016c0 .27-.174.51-.432.596-.064.021-.133.031-.199.031-.211 0-.391-.09-.51-.25l-2.443-3.317v2.94c0 .344-.279.629-.631.629-.346 0-.626-.285-.626-.629V8.108c0-.27.173-.51.43-.595.06-.023.136-.033.194-.033.195 0 .375.104.495.254l2.462 3.33V8.108c0-.345.282-.63.63-.63.345 0 .63.285.63.63v4.771zm-5.741 0c0 .344-.282.629-.631.629-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63.346 0 .628.285.628.63v4.771zm-2.466.629H4.917c-.345 0-.63-.285-.63-.629V8.108c0-.345.285-.63.63-.63.348 0 .63.285.63.63v4.141h1.756c.348 0 .629.283.629.63 0 .344-.282.629-.629.629M24 10.314C24 4.943 18.615.572 12 .572S0 4.943 0 10.314c0 4.811 4.27 8.842 10.035 9.608.391.082.923.258 1.058.59.12.301.079.766.038 1.08l-.164 1.02c-.045.301-.24 1.186 1.049.645 1.291-.539 6.916-4.078 9.436-6.975C23.176 14.393 24 12.458 24 10.314'/%3E%3C/svg%3E"); }
button.fb-login::before { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z'/%3E%3C/svg%3E"); }

/* D1880＝A：客人頁那排「逛團購／我的到貨／儲值金」不固定（base.css 設 top: 52px，但好康客人頁頁首實際 72px 高，往下捲時被蓋住一半；改版前就有） */
body.elder nav.tabs { position: static; }
