/* 贩卖机真实页面：展厅环境、等比适配、真实罐子、样板之外新增的屏幕界面与零件、手机版式、关 JS 退化、打印。
   加载在 vending-machine.css 之后；同名规则以这里为准。 */

/* ── 展厅：墙、踢脚线、透视地砖。地面铺到视口最底，宽屏两侧自然延展 ── */
.vending-home { display: block; margin: 0; padding: 0; max-width: none; width: 100%; }
.vm-hall { position: relative; z-index: 0; overflow: hidden; overflow: clip; min-height: calc(100vh - 71px); background: #f8f1dc; color: var(--ink); --hz: 70vh; --f: 1;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
.env { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #f8f1dc; }
.env > * { position: absolute; left: 0; right: 0; }
.wall { top: 0; height: var(--hz); background: radial-gradient(46% 60% at 50% 70%, #fffdf0, #fffdf000 72%), repeating-linear-gradient(90deg, #0000 0 239px, #e3d8b866 239px 240px), linear-gradient(#efe5c8, #f8f1dc 60%, #f3e9cd); }
.skirt { top: calc(var(--hz) - 13px); height: 13px; background: linear-gradient(#d9cda6, #c5b98f); border-top: 1px solid #b3a77c; }
.floor { top: var(--hz); bottom: 0; overflow: hidden; background: linear-gradient(#d8ccab, #e9dfc2 14%, #efe7cf); }
.floor > i { position: absolute; left: -60%; right: -60%; top: 0; height: 420%; transform-origin: 50% 0; transform: perspective(520px) rotateX(64deg);
  background: linear-gradient(90deg, #b9ad8799 0 2px, #0000 2px) 50% 0/120px 120px, linear-gradient(#b9ad8799 0 2px, #0000 2px) 0 0/120px 120px; }
.floor::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#bfb38c55, #0000 30%), radial-gradient(60% 90% at 50% 0, #0000 40%, #e9dfc2aa); }

/* ── 等比适配（内联脚本 vmFit 写 transform 与展厅高度） ── */
.scene { position: relative; z-index: 1; }      /* 关 JS 时不缩放，但要压在环境层之上 */
.scene.is-fit { position: absolute; z-index: 1; left: 0; top: 0; width: 1296px; height: 828px; transform-origin: 0 0; }
.vm { left: 18px; top: 8px; --cw: 66px; --vm-cam-top: 0px; }
.shadow { left: -4%; right: -6%; bottom: -20px; height: 56px; background: radial-gradient(closest-side, #4a4a2f66, #4a4a2f2e 60%, #4a4a2f00); }

/* ── 真实罐子（vending_can.php 出的 .can）：在货架和取货口里同宽 ── */
.vm .can { display: block; width: var(--cw); height: calc(var(--cw) * 1.34); filter: none; transition: none; }
.vm .can::before { content: ""; position: absolute; left: 6%; right: -4%; bottom: -3%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, #2c3d2c66, #2c3d2c00); }
.vm .can b { font-size: calc(var(--cw) / 5.6); line-height: 1.3; }
.vm .can-logo > span { font-size: calc(var(--cw) / 3.6); }
.vm .ti { display: block; position: relative; }
.vm .ti.is-stored .can { opacity: .72; }

/* ── 顶部：招牌、音效开关（点击区放大，外观不变） ── */
.vm-brand b { font-weight: 900; }
.leds { flex: none; }
.snd { width: 48px; height: 32px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.snd::before { content: ""; position: absolute; left: 4px; top: 5px; width: 40px; height: 22px; border-radius: 12px; border: 2px solid #6c6346; background: #cfc296; box-shadow: inset 0 2px 3px #7d7350aa; }
.snd i { left: 7px; top: 8px; z-index: 1; }
.snd::after { right: 10px; top: 8px; }
.snd[aria-pressed="true"] { background: none; } .snd[aria-pressed="true"]::before { background: #58a777; }
.snd[aria-pressed="true"]::after { left: 11px; }

/* ── 分类键 + 货架翻面 ── */
.cat { min-width: 0; padding: 0 6px; } .cat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager { flex: none; display: flex; align-items: center; gap: 5px; } .pager .cat { flex: none; width: 34px; font-size: 18px; } .pager b { font: 800 12px var(--mono); min-width: 26px; text-align: center; }

/* ── 货道：是链接（关 JS 时进商品页），开 JS 后是按键 ── */
.lane { color: var(--ink); cursor: pointer; } .lane[data-vm-status="empty"] { cursor: default; }
.lane .kind { display: none; }
.nm { font-weight: 800; }
.lane[data-in] .tag { background: linear-gradient(#d4d4bc 0 2px, #fff6d2 2px, #f6e9bd 88%, #b7b89e); }

/* ── 屏幕：正文 15.5px，内屏宽 ≥ 440。三栏：货架 486 / 屏幕与键盘 464 / 支付与出票 248 ── */


.screen { position: relative; font-size: 15.5px; outline: 0; }
.sb b { font-weight: 700; }
.tip { font-size: 15.5px; } .list li, .list li > b, .list li > em, .list li > i, .empty, .sum, .sk, .field, .probe { font-size: 15.5px; }
.t small { font-weight: 600; font-size: 15px; } .t .code { margin-right: 4px; background: #315546; color: #fffbe9; border-color: #1f372c; font-size: 14px; }
.sk { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.sk[aria-disabled="true"], .mini[aria-disabled="true"] { opacity: .42; cursor: not-allowed; } .sk[aria-busy="true"] { opacity: .6; }
.sk.demo { border-style: dashed; color: var(--phos); }
.sk.sw i { width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: #54665a; border: 1px solid #0b1611; font-style: normal; } .sk.sw[aria-pressed="true"] { border-color: var(--phos); color: var(--phos); } .sk.sw[aria-pressed="true"] i { background: #6fe39a; box-shadow: 0 0 7px #6fe39a; }
.bufline .chip { margin-left: auto; padding: 2px 9px; border-radius: 11px; border: 1px solid var(--phos); color: var(--phos); font-size: 13px; font-weight: 700; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list { flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #5b7a66 #16291f; align-content: start; }
#cart li { grid-template-columns: 32px 1fr auto auto 31px 31px; height: 35px; } .mini { width: 31px; height: 31px; line-height: 25px; }
.list li > i.ok { color: #9fd6a4; }
.list li.more > span, .list li.none > span { grid-column: 2 / -1; color: #a9b79f; white-space: normal; } .list li.none { height: auto; border: 0; padding: 12px 0; } .list li.none > span { grid-column: 1 / -1; }
.empty .row { display: flex; gap: 8px; justify-content: center; }
.opts { display: flex; gap: 8px; } .opts .sk { flex: 1; } .opts b { margin-left: 4px; color: var(--phos); }
.list.rows { flex: 1; } .list.rows li { display: block; height: auto; }
.list.rows .row { display: grid; grid-template-columns: 34px 1fr auto 78px; align-items: center; gap: 8px; width: 100%; height: 32px; text-align: left; font-size: 15.5px; color: #f6edca; }
.list.rows .row:hover, .list.rows .row:focus-visible { background: #24392f; outline-offset: -2px; }
.list.rows .row b { font: 800 15px var(--mono); color: var(--phos); } .list.rows .row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .list.rows .row i { font: 700 15px var(--mono); font-style: normal; } .list.rows .row small { font-size: 13px; text-align: right; color: #9fd6a4; } .list.rows .row small.off { color: #e8a08a; }
.field { height: 31px; } .field input { font-size: 16px; } .field > span { width: 96px; }
.field[data-vm-field] > span { width: 108px; }
.field .sk { align-self: stretch; min-width: 52px; margin: -1.5px -10px -1.5px 0; padding: 0 12px; border-radius: 0 4px 4px 0; box-shadow: none; }
.quote { display: block; min-height: 20px; font-size: 15px; line-height: 20px; color: #a9b79f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .quote[data-tone="ok"] { color: #9fd6a4; }
.fine { font-size: 13px; line-height: 1.4; color: #8ea08c; } .fine a { color: #c9cfb4; text-decoration: underline; text-underline-offset: 2px; } .fine b { color: var(--phos); }
.vm-hall .field input:focus-visible { outline: 0; }
.probe > span:first-child { white-space: nowrap; }
.probe .no { margin-left: auto; font: 600 12px var(--mono); color: #8ea08c; }
.cd { position: relative; }
#paid-keys, #pay-keys { flex-wrap: wrap; } #pay-keys { justify-content: flex-end; } #pay-keys .sk:first-child { margin-right: auto; }
.cells { position: relative; } #vm-code { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; font-size: 16px; cursor: text; }
.cells:focus-within b { border-color: var(--phos); }
.stack { display: flex; flex-direction: column; gap: 7px; height: 100%; margin: 0; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #5b7a66 #16291f; font-size: 15.5px; line-height: 1.6; color: #d9dfc6; outline: 0; } .scroll p { margin: 0 0 6px; } .scroll img { max-width: 100%; height: auto; border-radius: 4px; } .scroll .kind { color: var(--phos); font-weight: 700; } .scroll a { text-decoration: underline; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 8px 0; border-block: 1px dashed #3f5d4b; font-size: 15.5px; } .kv dt { color: #a9b79f; } .kv dd { font-weight: 700; color: var(--phos); word-break: break-all; }
.toast[data-tone="ok"] { background: #2f7d4f; } .toast[data-tone="info"] { background: #6b5a1e; color: #fff6d6; }
.screen .vm-hint { pointer-events: none; }

/* ── 键盘、感应区、小票夹 ── */

 .wallet { left: 751px; width: 227px; }
.reader { text-decoration: none; color: #f6edca; cursor: pointer; } .reader .rd-t small { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.reader.off { cursor: default; filter: saturate(.6); } .reader.off .nfc { opacity: .45; } .reader.off .rd-t { opacity: .7; }
.reader.off .rd-t b { font-size: 13px; }
.off-tag { position: absolute; right: 7px; bottom: 7px; padding: 2px 8px; transform: rotate(4deg); border-radius: 3px; background: #fffaf0; color: var(--red); border: 1.5px solid var(--red); font-size: 11px; font-weight: 900; letter-spacing: .1em; box-shadow: 1px 2px 3px #0005; }

/* ── 支付区 ── */
 .scanwin { width: 244px; height: 244px; margin: 2px -10px 6px; } .printer { top: 452px; height: 314px; }
.qr { display: grid; place-items: center; padding: 1px; } .qr img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.scan-note { align-self: center; text-align: center; font-size: 16px; font-weight: 800; line-height: 1.5; color: #315546; padding: 0 10px; }
.scan-idle span { display: block; }
.paybtns.n1 { grid-template-columns: 1fr; } .paybtns.n2 { grid-template-columns: repeat(2, 1fr); } .paybtns.n4 { grid-template-columns: repeat(4, 1fr); } .paybtns.n4 .payb { font-size: 11px; }
.paybtns.n5 { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 2px; }
.paybtns.n5 .payb { font-size: 10px; }
.payb[data-method="binance"] { white-space: normal; line-height: 1.15; }
.payb[aria-disabled="true"][aria-pressed="true"] { color: var(--ink); }
.demo-tag { position: absolute; right: -8px; top: -9px; z-index: 9; padding: 3px 10px; transform: rotate(5deg); background: #ffe27a; color: #5a4a1c; border: 1.5px dashed #8c7a37; border-radius: 3px; font-size: 12px; font-weight: 900; letter-spacing: .1em; box-shadow: 1px 2px 4px #0004; }

/* ── 小票：真小票的行 ── */
.receipt { cursor: grab; touch-action: none; width: 212px; margin-left: -106px; }
.receipt .no { display: block; white-space: normal; word-break: break-all; font-size: 10px; } .receipt .no span:first-child { margin-right: 6px; color: #6a7868; } .receipt .sub { color: #55655a; padding-left: 12px; } .receipt .it b { color: var(--red); }
.receipt .note { display: block; white-space: normal; font-size: 10px; line-height: 1.45; color: #55655a; font-family: "PingFang SC", sans-serif; }
.receipt .keep { margin-top: 2px; font-weight: 800; color: #273f35; white-space: normal; text-align: center; }
.vm-print { display: none; }

/* ── 内容卡片 / 取货单 ── */
.card { left: 71px; width: 380px; max-height: 452px; display: flex; flex-direction: column; outline: 0; }
.card h3 small { margin-left: auto; font-size: 12px; font-weight: 700; color: #6a7868; }
.card-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.card .set + .set { margin-top: 8px; } .card .set > b { display: block; margin-top: 6px; font-size: 12px; color: #6a7868; }
.card .acts { display: flex; gap: 8px; margin-top: 8px; } .card .notes b { color: #273f35; }
.card.slip { background: #fffaf0 repeating-linear-gradient(#0000 0 27px, #e9dfc266 27px 28px); }
.card.slip dd:first-of-type { color: var(--red); }

/* ── 手机：竖向长机身 390×1754，页面可滚；可点的东西都不小于 44px ── */
@media (max-width: 699.98px) {
  .vm-hall { min-height: 0; }
  .scene.is-fit { width: 390px; height: 1754px; }
  .vm { left: 6px; top: 6px; height: 1744px; --cw: 44px; }
  .body { height: 1730px; }
  .top { height: 44px; } .snd { width: 46px; height: 44px; } .snd::before { left: 3px; top: 11px; } .snd i { left: 6px; top: 14px; width: 16px; height: 16px; } .snd[aria-pressed="true"] i { transform: translateX(18px); } .snd::after { right: 9px; top: 14px; line-height: 16px; } .snd[aria-pressed="true"]::after { left: 10px; }
  .awning { top: 52px; }
 .cat { height: 44px; font-size: 13px; } .pager .cat { width: 44px; }



  .card { left: 8px; top: 124px; width: 358px; max-height: 296px; } .cbtn { min-height: 44px; min-width: 64px; padding: 4px 14px; }

  .sk { min-height: 44px; padding: 6px 12px; } .mini { width: 44px; height: 44px; font-size: 20px; }
  #cart li { grid-template-columns: 28px 1fr auto auto 44px 44px; height: 46px; gap: 5px; }
  .list.rows .row { height: 46px; grid-template-columns: 30px 1fr auto 64px; gap: 6px; }
  .field { height: 46px; } .field > span, .field[data-vm-field] > span { width: 92px; } .bufline { height: 44px; } .bufline .chip { min-height: 30px; }
  .empty .row .sk { padding-inline: 10px; }
  .probe { flex-wrap: wrap; row-gap: 2px; } .probe .no { flex-basis: 100%; margin-left: 0; }
 .scanwin { width: 220px; height: 220px; margin: 0; }
  .paybtns.n1, .paybtns.n2, .paybtns.n4 { grid-template-columns: 1fr; } .paybtns.n4 { gap: 6px; top: 24px; } .paybtns.n4 .payb { height: 48px; font-size: 13px; }
  .paybtns.n5 { grid-template-columns: 1fr; top: 20px; gap: 1px; } .paybtns.n5 .payb { height: 44px; margin: 0; font-size: 13px; }
 .key { min-height: 44px; }
 .receipt { width: 176px; margin-left: -88px; }
 .wallet { left: 216px; width: 156px; top: 1574px; }
  .foot-l, .foot-r { bottom: 0; }
  .demo-tag { right: 6px; top: -8px; }
}

/* 首页页脚 */
.theme-vending .vending-home~.site-footer{padding-top:6px}
.theme-vending .vending-home~.site-footer .footer-bottom{padding-block:8px;font-size:13px}
@media(max-width:899.98px){
  .theme-vending .vending-home~.site-footer .footer-bottom{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px;text-align:center;font-size:13px}
  .theme-vending .vending-home~.site-footer nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;align-items:center;gap:0 6px;line-height:1.4}
  .theme-vending .vending-home~.site-footer .footer-bottom>span:last-child{max-width:100%;text-align:center}
  .theme-vending .vending-home~.site-footer nav a{display:grid;place-items:center;min-height:44px;white-space:normal}
}

/* ── 关掉 JavaScript：退化成能点进商品页的货架（机身零件不出现） ── */
.vm:not(.vm-live) { position: static; width: auto; height: auto; max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.vm:not(.vm-live) .vm-js, .vm:not(.vm-live) .shadow, .vm:not(.vm-live) .foot-l, .vm:not(.vm-live) .foot-r, .vm:not(.vm-live) .neon, .vm:not(.vm-live) .led-panel, .vm:not(.vm-live) .lane[data-vm-status="empty"] { display: none !important; }
.vm:not(.vm-live) .body { position: static; height: auto; padding: 16px; }
.vm:not(.vm-live) .p { position: static; width: auto; height: auto; }
.vm:not(.vm-live) .awning { height: 14px; margin: 10px 0 14px; }
.vm:not(.vm-live) .glass { padding: 6px; }
.vm:not(.vm-live) .lanes { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: auto; }
.vm:not(.vm-live) .lane[hidden] { display: flex !important; }
.vm:not(.vm-live) .bay { min-height: 110px; } .vm:not(.vm-live) .tag { height: auto; } .vm:not(.vm-live) .lane .kind { display: block; grid-column: 1 / -1; font-size: 12px; color: #425344; }
.vm-noscript { margin: 14px 4px 2px; font-size: 14px; color: #425344; }
.vm-shelf-empty { position: relative; z-index: 2; margin: 0; padding: 18px; text-align: center; font-weight: 700; color: var(--ink); }

/* ── 打印：只打小票 ── */
@media print {
  body.theme-vending:has(> .vm-print) > *:not(.vm-print) { display: none !important; }      /* 有小票时只打小票；没有小票时照常打印页面 */
  .vm-print { display: block !important; width: 72mm; margin: 0 auto; padding: 4mm; background: #fff; color: #000; font: 600 11pt/1.5 "SFMono-Regular", Menlo, Consolas, "PingFang SC", monospace; }
  .vm-print p { display: flex; justify-content: space-between; gap: 8px; margin: 0; } .vm-print .h { justify-content: center; font-size: 14pt; font-weight: 900; } .vm-print .ctr { justify-content: center; text-align: center; }
  .vm-print .hr { border-top: 1px dashed #000; margin: 2mm 0; } .vm-print .note { display: block; font-size: 9pt; } .vm-print .bar { height: 10mm; margin: 2mm 6mm; background: repeating-linear-gradient(90deg, #000 0 2px, #fff 2px 3px, #000 3px 4px, #fff 4px 7px, #000 7px 10px, #fff 10px 12px); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ══ 第三轮验收修正 ══ */
/* 提示条：占状态栏那一行，不盖任何标题；单行，放不下由脚本缩字 */
.toast { top: 0; left: 0; right: 0; height: 26px; padding: 0 12px; border-radius: 0; font-size: 14px; line-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 6px #0005; }
/* 取货口里有罐子时，挡板上的 PUSH 字让开 */
.flap span { transition: opacity .18s linear; }
.tray:has(.vm-pile > .vm-fly, [data-vm-tray-item]) .flap span { opacity: 0; }
/* 小票订单号：等宽小字一行 */
.receipt .no { display: flex; white-space: nowrap; word-break: normal; font-size: 9px; letter-spacing: -.01em; } .receipt .no span:first-child { margin-right: 4px; }
/* 键盘小窗：桌面键盘紧挨屏幕，不需要 */
.keylcd { display: none; }
@media (max-width: 699.98px) {
  .toast { font-size: 13.5px; padding: 0 8px; }
  .receipt .no { display: block; } .receipt .no span { display: block; }
  /* 键盘改成 6 列 3 排，省出一行给键盘小窗：字母一排（带清除），数字两排，确认竖在右边 */
  .keys { grid-template-columns: repeat(6, 1fr); grid-template-rows: 34px repeat(3, 1fr); gap: 7px 6px; }
  .keylcd { display: flex; align-items: center; gap: 6px; grid-area: 1 / 1 / 2 / -1; min-width: 0; padding: 0 10px; border-radius: 6px; border: 1.5px solid #26382f; background: var(--lcd); box-shadow: inset 0 2px 4px #0b1611, 0 1px 0 #fff2be; color: #c9cfb4; font: 700 13.5px/1 var(--mono), "PingFang SC", sans-serif; }
  .keylcd i { font-style: normal; color: var(--phos); opacity: .6; } .keylcd b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
  .keylcd[data-tone="type"] b { color: var(--phos); font-size: 17px; letter-spacing: .12em; } .keylcd[data-tone="error"] b { color: #ff9f85; } .keylcd[data-tone="ok"] b { color: #9fd6a4; } .keylcd[data-tone="info"] b { color: #fff6d6; }
  .key[data-k="A"] { grid-area: 2 / 1; } .key[data-k="B"] { grid-area: 2 / 2; } .key[data-k="C"] { grid-area: 2 / 3; } .key[data-k="D"] { grid-area: 2 / 4; } .key[data-k="清除"] { grid-area: 2 / 5 / 3 / 7; }
  .key[data-k="1"] { grid-area: 3 / 1; } .key[data-k="2"] { grid-area: 3 / 2; } .key[data-k="3"] { grid-area: 3 / 3; } .key[data-k="4"] { grid-area: 3 / 4; } .key[data-k="5"] { grid-area: 3 / 5; }
  .key[data-k="6"] { grid-area: 4 / 1; } .key[data-k="7"] { grid-area: 4 / 2; } .key[data-k="8"] { grid-area: 4 / 3; } .key[data-k="9"] { grid-area: 4 / 4; } .key[data-k="0"] { grid-area: 4 / 5; }
  .key[data-k="确认"] { grid-area: 3 / 6 / 5 / 7; writing-mode: vertical-rl; letter-spacing: .3em; }
  /* 内容卡片上移并限高：拿起的罐子停在卡片下方、货架前，明显离开取货口 */
  .card { top: 54px; max-height: 250px; }

}
/* 商品说明是从商品页搬来的内容，自带浅底配色：在屏幕里一律用屏幕的字色，保证看得清 */
.vm-hall .scroll :not(.kind):not(a) { color: inherit; background: none; }
/* 提示条出现时状态栏那行字让位，淡入淡出期间也不叠字 */
.screen:has(> .toast:not([hidden])) > .sb > * { visibility: hidden; }

/* 场景与机身共用展厅地面。场景资源不可用时，空容器不拦截操作。 */
#vm-people { position:absolute; z-index:2; left:var(--people-x); width:var(--people-width); bottom:calc(100% - var(--people-foot)); overflow:visible }
#vm-people:empty { pointer-events:none }
.wall::before,.wall::after { display:none }
.point-glow { position:absolute; inset:0; z-index:2; pointer-events:none; opacity:0;
  background:linear-gradient(115deg, transparent 8%, #fff9dc55 42%, transparent 76%); animation:vm-point-glow 1.2s ease-in-out }
@keyframes vm-point-glow { 0%,100% { opacity:0 } 50% { opacity:1 } }

.printer .pbay { inset:12px 8px 28px }
.paper-slot { position:absolute; left:5px; right:5px; top:10px; height:15px; border:2px solid #9e9674; border-radius:7px; background:#2c3a2c; box-shadow:inset 0 3px 4px #17251b }
.printer .slit { bottom:24px; height:6px; background:#a49363 }
.printer .plate { position:absolute; bottom:3px; left:12px; right:12px }
#bay > .receipt { top:50%; bottom:auto; cursor:pointer; touch-action:pan-y }
.vm:not([data-vm-on]) #bay > .receipt { max-height:var(--receipt-static-room,245px); overflow:hidden }
.receipt .receipt-qr { display:grid; justify-items:center; justify-content:center; gap:2px; margin:6px 0; white-space:normal; font-size:11px }
.receipt-qr img { display:block; width:108px; height:108px; background:#fff; image-rendering:pixelated }
.list.rows .archive-row { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; height:auto; min-height:48px; padding:5px 4px; gap:2px }
.archive-row small { white-space:normal }
@media(min-width:700px) {
  .screen :is(.t small,.tip,.empty,.sk,.sum,.field,.quote,.list li,.list li > em,.list li > i,.probe), .screen { font-size:max(16px,calc(14px / var(--f))) }
  .screen .t { font-size:max(24px,calc(16px / var(--f))) }
  .view { overflow:auto }
  .view > * { flex-shrink:0 }
  .view > .list,.view > .scroll { flex-shrink:1 }
  .paybtns .payb,.paybtns.n4 .payb,.paybtns.n5 .payb { font-size:max(13px,calc(11px / var(--f))); min-height:calc(24px / var(--f)); line-height:1.05; padding:1px }
  .key { font-size:22px }
  .reader .rd-t b { font-size:16px }
  .wallet span { height:78%; flex-direction:column; gap:0 }
  .screen .sk,.cat,.snd { min-height:calc(24px / var(--f)) }
  .cats { height:52px; top:98px }
  .vm-live .cat { padding-inline:4px }
  .screen .mini { width:calc(24px / var(--f)); height:calc(24px / var(--f)) }
  #cart li { grid-template-columns:32px 1fr auto auto repeat(2,calc(24px / var(--f))); min-height:calc(24px / var(--f)) }
  .field { min-height:calc(24px / var(--f)) }
  .toast { font-size:max(16px,calc(11px / var(--f))) }
}
@media(max-width:699.98px) {
  #vm-people { top:0; bottom:auto; left:4px; width:calc(100% - 8px); height:164px }
  html:has(.vm-hall),body:has(.vm-hall) { background:#efe7cf; overscroll-behavior-y:none }
}
.vm-live .lanes { grid-auto-rows:minmax(0,1fr) }
.vm-live .lane { min-height:0 }
#vm-people .vs-b { min-height:44px; min-width:44px }
@media(min-width:700px) {
  .paybtns .payb { white-space:normal; gap:1px; overflow:hidden }
  .payb i { flex:none; height:5px; width:5px }
  .tag small { line-height:1 }
  .tag small b { font-family:Arial,sans-serif; letter-spacing:-.03em }
  .screen :is(.t,.t small,.tip,.empty,.sk,.sum,.list li,.field,.quote) { font-size:max(16px,min(21px,calc(14.2px / var(--f)))) }
  .screen .view { gap:4px; padding:6px 12px }
  .screen .field,.screen .sk { flex-shrink:0 }
  .screen .field > span { width:124px }
  .screen .sk { padding:2px 8px }
  .screen .sb { font-size:14px }
  .screen .mini,.screen .field,.screen .sk,.cat,.snd { min-height:calc(24.1px / var(--f)) }
  .snd,.cat,.mini { min-width:calc(24.1px / var(--f)) }
  .vm-live .receipt .no { display:block }
  .vm-live .receipt .no span { display:block }
}
@media(min-width:700px) {
  .vm-live .key { height:auto; min-height:calc(24.05px / var(--f)); margin:0 }
  .list.rows .row,.card .cbtn,.bufline .chip { min-height:calc(24.1px / var(--f)) }
}
.vm-rview :is(.vm-rkeep,.vm-rv,.vm-rvbg) { pointer-events:auto }
.vm-rview .vm-rv { touch-action:pan-y; overscroll-behavior:contain }
.vm-rview .vm-rcv { touch-action:pan-y }

.vm-rview .vm-rvbg { inset:0; border-radius:24px }
.vm-rview .vm-rkeep { min-height:calc(24px / var(--f)) }
@media(max-width:699.98px) { .vm-rview .vm-rkeep { min-height:44px } }
.vm-rview[popover]:popover-open { position:fixed; inset:0; width:100vw; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; overflow:hidden; background:transparent }
.vm-rview[popover] .vm-rvbg { border-radius:0 }

/* 开罐后内容卡会增高，让文字和操作键显示在装饰罐的前面。 */
.vm-live .card:has(.card-body) { z-index:31 }

/* 状态栏占顶行，购物篮在中间滚动，提示字幕独占屏幕底行。 */
#screen { --hint-height:27px }
#screen [data-vm-view="shop"]:not([hidden]) {
  bottom:var(--hint-height); display:grid; grid-template-rows:auto auto minmax(0,1fr) auto;
  overflow:hidden
}
#screen [data-vm-view="shop"] :is(#cart,#cart-empty) { grid-row:3; min-height:0; overflow-y:auto }
#screen [data-vm-view="shop"] .foot { grid-row:4; margin:0 }
#screen .vm-hint { height:var(--hint-height); padding:4px 8px; line-height:19px }
