/* 机身外观。响应式坐标在 vending-layout.css。 */
.vm-hall { --ink: #203f36; --ink2: #2f4a3f; --red: #b84020; --cream: #fffcf2; --line: #496052; --phos: #fbd07c; --lcd: #1d3329; --mono: "SFMono-Regular", Menlo, Consolas, monospace; }
:where(.vm-hall) *, :where(.vm-hall) *::before, :where(.vm-hall) *::after { box-sizing: border-box; }
:where(.vm-hall) button { font: inherit; color: inherit; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation; -webkit-appearance: none; appearance: none; min-width: 0; min-height: 0; border-radius: 0; box-shadow: none; }
:where(.vm-hall) a { color: inherit; text-decoration: none; }
.vm-hall button:focus-visible, .vm-hall a:focus-visible, .vm-hall input:focus-visible { outline: 2px solid #e9a13b; outline-offset: 2px; }
:where(.vm-hall) p, :where(.vm-hall) ul, :where(.vm-hall) h1, :where(.vm-hall) h3, :where(.vm-hall) dl, :where(.vm-hall) dd { margin: 0; padding: 0; list-style: none; }
.vm-hall [hidden] { display: none !important; }


/* ── 机身 ── */
.vm { position: absolute; left: 90px; top: 18px; width: 1260px; height: 806px; --vm-tray-floor: 9px; --vm-cam-top: var(--navh); }
.shadow { position: absolute; left: -3%; right: -5%; bottom: -16px; height: 44px; border-radius: 50%; background: radial-gradient(closest-side, #4a4a2f59, #4a4a2f26 60%, #4a4a2f00); }
.body { position: absolute; left: 0; top: 0; right: 0; height: 788px; border: 3px solid var(--line); border-radius: 30px 30px 20px 20px;
  background: linear-gradient(100deg, #fff6cd, #f9e8ab 76%, #efda94); box-shadow: inset 2px 3px 0 #fffbdc, inset -6px -6px 0 #d8bf77, 7px 7px 0 #a5a282, 8px 8px 0 #526351, 16px 22px 26px #38432f2e; }
.foot-l, .foot-r { position: absolute; bottom: 2px; width: 62px; height: 17px; border: 3px solid #465948; border-top: 0; border-radius: 0 0 7px 7px; background: linear-gradient(#8a8166, #a79d7e); box-shadow: 5px 4px 0 #52635199; }
.foot-l { left: 9%; } .foot-r { right: 8%; }
.p { position: absolute; }

/* 顶部一排 */
.top { display: flex; align-items: center; gap: 16px; }
.vm-brand { display: flex; align-items: center; gap: 9px; font-size: 31px; font-weight: 900; letter-spacing: -.05em; white-space: nowrap; }
.vm-brand-ic { width: 26px; height: 34px; border: 3px solid var(--red); border-radius: 7px; transform: rotate(-12deg); background: linear-gradient(var(--red), var(--red)) 50% 22%/46% 3px no-repeat, linear-gradient(115deg, #0000 44%, var(--red) 45% 55%, #0000 56%) 50% 70%/60% 46% no-repeat; }
.neon { display: flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 9px; border: 2px solid #6d765e; background: linear-gradient(#24392f, #2f4a3f); box-shadow: inset 0 3px 5px #14251e, 0 1px 0 #fff4cb;
  font-size: 23px; font-weight: 900; letter-spacing: -.02em; white-space: nowrap; color: #fff6d6; text-shadow: 0 0 9px #ffe9a880; }
.neon em { font-style: normal; color: #ff9a70; text-shadow: 0 0 9px #ff8a5a99; }
.led-panel { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border-radius: 6px; border: 2px solid #798575; background: #1b2c24 radial-gradient(#ffffff0d 1px, #0000 1.3px) 0 0/4px 4px; box-shadow: inset 0 2px 4px #0b1611; display: flex; align-items: center; }
.led-panel span { display: block; width: 100%; height: 100%; line-height: 30px; font: 700 13px/30px var(--mono), "PingFang SC", sans-serif; letter-spacing: .1em; color: var(--phos); }
.leds { display: flex; gap: 10px; font-size: 10px; font-weight: 700; color: #6a705a; }
.leds span { display: grid; justify-items: center; gap: 4px; }
.leds i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #5b6450; box-shadow: inset 0 1px 1px #fff8; }
.l-ok { background: #4fc27a; box-shadow: 0 0 6px #4fc27a !important; } .l-busy { background: #f0b63c; box-shadow: 0 0 6px #f0b63c !important; } .l-fault { background: #e2472b; box-shadow: 0 0 6px #e2472b !important; }
.spk { display: flex; align-items: center; gap: 9px; }
.grille { width: 62px; height: 28px; border-radius: 5px; background: radial-gradient(#5c6450 1.3px, #0000 1.6px) 1px 1px/6px 6px; }
.snd { position: relative; width: 40px; height: 22px; border-radius: 12px; border: 2px solid #6c6346; background: #cfc296; box-shadow: inset 0 2px 3px #7d7350aa; }
.snd i { position: absolute; left: 1px; top: 1px; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(#fffdf0, #d9cc9e); box-shadow: 0 1px 2px #0006; transition: transform .16s ease-out; }
.snd::after { content: "♪"; position: absolute; right: 5px; top: 1px; font: 700 12px/16px Arial; color: #8a7f58; }
.snd[aria-pressed="true"] { background: #58a777; } .snd[aria-pressed="true"] i { transform: translateX(18px); } .snd[aria-pressed="true"]::after { right: auto; left: 6px; color: #fff; }
.awning { overflow: hidden; border: 1.5px solid #6c6346; border-radius: 5px; background: repeating-linear-gradient(108deg, #c85232 0 19px, #ffefc7 20px 41px); box-shadow: inset 0 4px #ffffff52, inset 0 -4px #71503227, 0 3px 0 #b09e6b; }

/* 分类按键 */
.cats { display: flex; gap: 8px; padding: 0 2px; }
.cat { flex: 1; font-size: 14px; font-weight: 800; letter-spacing: .06em; display: flex; align-items: center; justify-content: center; gap: 7px; }
.cat i { width: 7px; height: 7px; border-radius: 50%; background: #b9b08a; box-shadow: inset 0 1px 1px #0003; }
.cat[aria-pressed="true"] { background: linear-gradient(#315546, #284638); color: #fffbe9; border-color: #1f372c; }
.cat[aria-pressed="true"] i { background: #ffd27a; box-shadow: 0 0 6px #ffd27a; }

/* 货架 */
.glass { padding: 5px; border-radius: 13px; background: #66796a; border: 2px solid #3f5549; box-shadow: 0 1px 0 2px #fff4cb, inset 1px 2px 2px #27382f; }
.lanes { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; border: 1px solid #435d50; border-radius: 7px; overflow: hidden; background: #e1e9d9; }
.lane { position: relative; display: flex; flex-direction: column; min-width: 0; text-align: center; background: linear-gradient(90deg, #d9e4d3, #ecf1e4 68%, #dce4d4); border-right: 1px solid #b8c6b4; }
.lane:nth-child(4n) { border-right: 0; }
.lane:focus-visible { z-index: 3; outline-offset: -4px; }
.bay { position: relative; flex: 1; min-height: 0; display: grid; place-items: end center; padding-bottom: 6px; overflow: hidden; background: linear-gradient(#64756235, #0000 15%, #0000 86%, #9da99765); }
.bay::after { content: ""; position: absolute; bottom: 3px; left: 22%; right: 22%; height: 7px; border-radius: 50%; background: radial-gradient(closest-side, #30443055, #30443000); }
.tag { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 6px; height: 56px; padding: 5px 8px 6px; text-align: left;
  background: linear-gradient(#d4d4bc 0 2px, #fffbe9 2px, #f7f0d6 88%, #b7b89e); border-top: 1px solid #7e907c; border-bottom: 2px solid #738571; }
.code { font: 800 12px/1 var(--mono); border: 1px solid #818d77; border-radius: 4px; padding: 3px 5px; background: #fffdf0; }
.lane:hover .code, .lane[data-in] .code { background: #315546; color: #fffbe9; }
.nm { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.02em; }
.lled { width: 9px; height: 9px; border-radius: 50%; background: #4fc27a; box-shadow: 0 0 5px #4fc27a, inset 0 1px 1px #fff8; border: 1px solid #3c6b4d; }
.tag small { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: #425344; white-space: nowrap; }
.tag small b { font: 800 13px var(--mono); color: var(--red); }
.tag em { font-style: normal; display: inline-block; font-family: var(--mono); }
.lane[data-vm-status="soldout"] .lled, .lane[data-vm-flag="nope"] .lled { background: #e2472b; box-shadow: 0 0 6px #e2472b; border-color: #8c2c1b; }
.lane[data-vm-status="soon"] .lled { background: #f0b63c; box-shadow: 0 0 5px #f0b63c; border-color: #8f6c1d; }
.lane[data-vm-status="empty"] .lled { background: #b9b9a4; box-shadow: none; border-color: #8e8f7c; }
.lane[data-vm-status="empty"] .tag, .lane[data-vm-dim] .tag { color: #7f8a7c; }
.lane[data-vm-status="empty"] .bay { background: linear-gradient(#56675a66, #0000 30%, #0000 80%, #9da99788), repeating-linear-gradient(90deg, #0000 0 13px, #a9b6a655 13px 14px); }
.none { align-self: center; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: #8c9a8a; }
/* 取货口 */
.tray { overflow: hidden; box-shadow: 0 2px 0 #fff2be, inset 0 9px 8px #16271f; }
.tray::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; z-index: 4; background: #89957b; border-top: 2px solid #acb497; pointer-events: none; }
.flap { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; border-radius: 8px;
  pointer-events: none; box-shadow: inset 0 0 0 2px #93a08b88, inset 0 3px 0 #c2ccb866; }
.flap span { font: 800 12px var(--mono); letter-spacing: .5em; color: #d6dec877; padding: 3px 12px 3px 18px; border: 1.5px solid #d6dec84d; border-radius: 4px; }
.vm:not([data-vm-on])[data-state="pickup"] .flap { display: none; }
.ti:focus-visible { outline-offset: 4px; }

/* 内容卡片 */
.card { left: 168px; top: 172px; width: 340px; z-index: 20; padding: 14px 16px 12px; border-radius: 10px; background: #fffdf3; color: #273f35; border: 1.5px solid #b9a167; box-shadow: 0 10px 24px #0b1a1366, inset 0 0 0 4px #fff, inset 0 0 0 5px #e6dcb8; }
.card h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 900; }
.card h3 b { font: 800 12px var(--mono); padding: 3px 6px; border-radius: 4px; background: #315546; color: #fffbe9; }
.card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; padding: 9px 0; border-block: 1px dashed #a9ad98; font-size: 13px; }
.card dt { color: #6a7868; } .card dd { margin: 0; font: 700 13px var(--mono), "PingFang SC"; word-break: break-all; user-select: all; }
.card p { margin-top: 8px; font-size: 12px; line-height: 1.5; color: #55655a; }
.card .row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.cbtn { padding: 6px 14px; border-radius: 6px; border: 1.5px solid #315546; font-size: 13px; font-weight: 800; color: #315546; }
.cbtn.pri { background: #315546; color: #fffbe9; }

/* ── 屏幕 ── */

.screen { width: 100%; height: 100%; overflow: hidden; border-radius: 7px; background: var(--lcd); color: #f6edca; box-shadow: inset 0 0 0 1px #0b1611; font-size: 13px; line-height: 1.45; }
.sb { display: flex; justify-content: space-between; align-items: center; height: 24px; padding: 0 10px; font: 700 10px/1 var(--mono), "PingFang SC"; letter-spacing: .06em; color: #c9cfb4; background: #16291f; border-bottom: 1px solid #35503f; }
.sb span:first-child { display: flex; align-items: center; gap: 6px; } .sb b { font-weight: 700; }
#sb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--phos); }
.view { position: absolute; inset: 24px 0 0; padding: 10px 12px 10px; display: flex; flex-direction: column; gap: 7px; }
.t { font-size: 16px; font-weight: 900; letter-spacing: .02em; color: #fff6d6; }
.t small { margin-left: 6px; font-size: 11px; font-weight: 600; color: #a9b79f; letter-spacing: 0; }
.c { text-align: center; justify-content: center; }
.tip { font-size: 12px; color: #b9c4ac; } .tip b { color: var(--phos); font-weight: 800; }
.bufline { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 9px; border: 1.5px solid #3f5d4b; border-radius: 5px; background: #16291f; font-size: 12px; color: #a9b79f; }
.bufline i { font-style: normal; color: var(--phos); opacity: .5; }
.buf { display: inline-block; min-width: 4px; height: 26px; font: 800 20px/26px var(--mono); letter-spacing: .14em; color: var(--phos); }
.caret { width: 9px; height: 18px; background: var(--phos); opacity: 1 !important; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.list { display: grid; gap: 3px; overflow: hidden; }
.list li { display: grid; grid-template-columns: 26px 1fr auto auto 22px; align-items: center; gap: 6px; height: 24px; font-size: 12px; border-bottom: 1px dotted #3f5d4b; }
.list li > b { font: 800 12px var(--mono); color: var(--phos); } .list li > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list li > em { font: 700 12px var(--mono); font-style: normal; display: inline-block; } .list li > i { font: 700 12px var(--mono); font-style: normal; }
.list.sm li { grid-template-columns: 26px 1fr auto auto; height: 21px; }
.mini { width: 20px; height: 20px; border: 1.5px solid #6f8a76; border-radius: 4px; font: 800 14px/15px var(--mono); color: #f6edca; }
.empty { flex: 1; display: grid; place-content: center; gap: 10px; text-align: center; font-size: 13px; color: #8ea08c; }
.foot { margin-top: auto; display: flex; align-items: center; gap: 7px; }
.foot.c { justify-content: center; }
.sum { margin-right: auto; font-size: 12px; color: #a9b79f; } .sum b { display: inline-block; margin-left: 4px; font: 800 22px/1 var(--mono); color: var(--phos); vertical-align: -2px; }
.sk { padding: 5px 10px; border: 1.5px solid #8fa58f; border-radius: 5px; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #f6edca; white-space: nowrap; box-shadow: 0 calc(2px * (1 - var(--vm-press, 0))) 0 #0b1611; }
.sk.pri { background: var(--phos); border-color: var(--phos); color: #1d3329; }
.field { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border: 1.5px solid #3f5d4b; border-radius: 5px; background: #16291f; font-size: 12px; color: #a9b79f; }
.field > span { flex: none; width: 50px; } .field i { font-style: normal; color: var(--phos); opacity: .45; }
.field input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--phos); font: 700 13px var(--mono); letter-spacing: .02em; -webkit-appearance: none; appearance: none; border-radius: 0; }
.field input::placeholder { color: #5e7867; } .field:focus-within { border-color: var(--phos); }
.field .sk { padding: 2px 8px; }
.payrow { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; }
.amt { font: 800 38px/1 var(--mono); color: var(--phos); letter-spacing: -.02em; }
.cd { display: grid; place-items: center; width: 62px; height: 62px; font: 800 14px var(--mono); color: #fff6d6; }
.probe { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #b9c4ac; } .probe span + span { display: flex; gap: 6px; }
.probe i { width: 7px; height: 7px; border-radius: 50%; background: var(--phos); opacity: .22; }
.stamp { align-self: center; margin-top: 16px; padding: 6px 18px; border: 3px solid #8fd6a0; border-radius: 8px; transform: rotate(-7deg); font-size: 26px; font-weight: 900; letter-spacing: .2em; color: #8fd6a0; }
.cells { display: flex; justify-content: center; gap: 7px; margin: 4px 0; padding: 4px; border-radius: 6px; }
.cells b { width: 36px; height: 44px; border: 1.5px solid #5b7a66; border-radius: 5px; background: #16291f; font: 800 24px/42px var(--mono); text-align: center; color: var(--phos); }
.cells[data-vm-flag="ok"] b { border-color: #9fd6a4; color: #c9f1cd; } .cells[data-vm-flag="bad"] b { border-color: #e8795a; color: #ff9f85; }
.big-ic { align-self: center; margin-top: 8px; font: 900 44px/1 Arial; color: #e8795a; }
.toast { position: absolute; left: 8px; right: 8px; top: 30px; z-index: 6; padding: 7px 10px; border-radius: 5px; background: #d9482f; color: #fff8ec; font-size: 13px; font-weight: 800; text-align: center; box-shadow: 0 3px 8px #0006; }

/* ── 键盘 ── */
.keys { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 12px; }
.key { font: 800 18px/1 var(--mono); color: #2a4035; margin-bottom: 5px; }

.key.fn { font: 800 13px/1 "PingFang SC", sans-serif; letter-spacing: .08em; }



/* ── 会员卡感应区 ── */
.reader { display: flex; align-items: center; text-align: left; color: #f6edca; overflow: hidden; }
.nfc { position: relative; flex: none; width: 66px; height: 66px; border-radius: 50%; border: 2px dashed #9fb09b88; background: radial-gradient(circle, #f6edca 0 5px, #0000 6px), radial-gradient(circle, #0000 0 13px, #f6edca99 13px 15px, #0000 16px 22px, #f6edca55 22px 24px, #0000 25px); }
.rd-t { display: grid; gap: 5px; min-width: 0; } .rd-t b { font-size: 15px; font-weight: 900; letter-spacing: .06em; }
.rd-t small { display: inline-block; font-size: 12px; font-weight: 600; color: #b9c4ac; white-space: nowrap; }
.rd-led { position: absolute; right: 14px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: #54665a; border: 1px solid #1a2a22; }
.reader[data-vm-in] .rd-led, .reader[data-vm-flag="tap"] .rd-led { background: #6fe39a; box-shadow: 0 0 7px #6fe39a; }
.reader[data-vm-in] .rd-t small { color: var(--phos); }

/* ── 支付区 ── */
.pay { border-radius: 12px; }
.plate { height: 18px; font-size: 12px; font-weight: 900; letter-spacing: .12em; line-height: 18px; } .plate small { font: 800 9px var(--mono); letter-spacing: .16em; color: #7a7556; margin-left: 4px; }
.scanwin { position: relative; width: 168px; height: 168px; margin: 4px auto 8px; padding: 7px; border-radius: 10px; background: #2b3f35; border: 2px solid #1f3027; box-shadow: 0 2px 0 #fff2be, inset 0 2px 5px #0b1611; }
.qr { width: 100%; height: 100%; border-radius: 4px; background: #fffdf3; padding: 7px; }
.qr svg { display: block; width: 100%; height: 100%; }
.scan-idle { position: absolute; inset: 7px; display: grid; place-content: center; justify-items: center; gap: 8px; border-radius: 4px; background: #1b2c24; font: 700 11px var(--mono), "PingFang SC"; letter-spacing: .2em; color: #6f8a76; }
.scan-idle i { width: 34px; height: 34px; border: 2px solid #5b7a66; border-radius: 4px; background: linear-gradient(#5b7a66, #5b7a66) 50% 50%/130% 2px no-repeat; }
.qr:not([hidden]) + .scan-idle { display: none; }
.paybtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.payb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 42px; font-size: 12px; font-weight: 800; letter-spacing: 0; }
.payb i { width: 9px; height: 9px; border-radius: 50%; background: #b9b08a; border: 1px solid #7d7350; }
.payb[aria-pressed="true"] { background: linear-gradient(#efe4bb, #e3d5a2); } .payb[aria-pressed="true"] i { background: #6fe39a; box-shadow: 0 0 7px #4fc27a; border-color: #2c6e47; }
.payb[aria-disabled="true"] { color: #a39d80; cursor: not-allowed; } .payb[aria-disabled="true"] i { background: #cfc8a6; }
.sign { position: absolute; left: 50%; top: 8px; z-index: 8; width: 178px; margin-left: -89px; padding-top: 46px; text-align: center; }
.sign::before { content: ""; position: absolute; left: 50%; top: 0; width: 92px; height: 48px; margin-left: -46px; border: 2px solid #6f6a52; border-bottom: 0; border-radius: 46px 46px 0 0 / 40px 40px 0 0; clip-path: inset(0 0 0 0); }
.sign b, .sign small { display: block; background: #fffaf0; color: var(--red); }
.sign b { padding: 12px 0 2px; border: 3px solid var(--red); border-bottom: 0; border-radius: 8px 8px 0 0; font-size: 28px; font-weight: 900; letter-spacing: .14em; box-shadow: 0 0 0 3px #fffaf0; }
.sign small { padding: 0 0 9px; border: 3px solid var(--red); border-top: 0; border-radius: 0 0 8px 8px; font: 800 11px var(--mono); letter-spacing: .5em; box-shadow: 0 0 0 3px #fffaf0, 3px 8px 10px #0004; }

/* ── 出票口 + 小票夹 ── */
.printer { border-radius: 12px; }
.pbay { position: absolute; left: 12px; right: 12px; top: 30px; bottom: 12px; border-radius: 6px 6px 0 0; background: linear-gradient(#d9c88d, #e6d69f 30%, #dccb90); box-shadow: inset 0 3px 5px #8f7f4a66, inset 0 0 0 1px #b9a167; }
.slit { position: absolute; left: 8px; right: 8px; bottom: 6px; height: 11px; z-index: 3; border-radius: 6px; background: #2c3a2c; border: 2px solid #9e9674; box-shadow: 0 1px 0 #fff1c3, inset 0 2px 2px #0008; }
.receipt { position: absolute; left: 50%; bottom: 0; width: 186px; margin-left: -93px; padding: 10px 11px 9px; background: #fffdf3; color: #273f35; font: 600 11px/1.5 var(--mono), "PingFang SC", sans-serif; box-shadow: 1px 0 0 #d9d2b4, -1px 0 0 #d9d2b4, 0 -1px 0 #d9d2b4, 2px 2px 5px #6f5f3733; }
.receipt p { display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; }
.receipt .h { justify-content: center; font: 900 14px/1.5 "PingFang SC", sans-serif; letter-spacing: .1em; }
.receipt .ctr { justify-content: center; color: #6a7868; font-size: 10px; }
.receipt .hr { height: 0; margin: 4px 0; border-top: 1px dashed #a9ad98; }
.receipt .it { white-space: normal; } .receipt .it span:first-child { white-space: normal; }
.receipt .tot { font-weight: 900; font-size: 13px; } .receipt .tot b { color: var(--red); }
.receipt .bar { height: 20px; margin: 5px 6px 2px; background: repeating-linear-gradient(90deg, #273f35 0 2px, #0000 2px 3px, #273f35 3px 4px, #0000 4px 7px, #273f35 7px 10px, #0000 10px 12px); }
.wallet { color: #f6edca; }
.wallet span { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border-top: 2px solid #55705f; border-radius: 0 0 8px 8px; background: linear-gradient(#35503f, #284036); font-size: 13px; }
.wallet b { font-weight: 900; letter-spacing: .1em; } .wallet small { font: 800 10px var(--mono), "PingFang SC"; padding: 2px 6px; border-radius: 9px; background: #1a2a22; color: var(--phos); }


.screen { font-size: 15px; } .sb { height: 26px; font-size: 11px; padding: 0 12px; } .view { inset: 26px 0 0; padding: 10px 16px; gap: 6px; }
.t { font-size: 20px; } .t small { font-size: 13px; } .tip { font-size: 15px; line-height: 1.5; }
.bufline { height: 40px; font-size: 15px; padding: 0 12px; } .buf { height: 30px; font-size: 24px; line-height: 30px; } .caret { width: 11px; height: 22px; }
.list { gap: 2px; } .list li { height: 28px; font-size: 15px; grid-template-columns: 32px 1fr auto auto 26px; gap: 8px; } .list li > b, .list li > em, .list li > i { font-size: 15px; } .list.sm li { height: 23px; grid-template-columns: 32px 1fr auto auto; }
.mini { width: 24px; height: 24px; font-size: 16px; line-height: 18px; } .empty { font-size: 15px; }
.sum { font-size: 15px; } .sum b { font-size: 28px; } .sk { padding: 6px 13px; font-size: 15px; }
.field { height: 32px; padding: 0 10px; font-size: 15px; gap: 8px; } .field > span { width: 108px; white-space: nowrap; } .field input { font-size: 16px; }
.field > span em { margin-left: 6px; padding: 1px 5px; border-radius: 3px; background: #d9482f; color: #fff8ec; font-size: 11px; font-style: normal; font-weight: 800; opacity: 1; }
.field[data-vm-flag="bad"] { border-color: #e8795a; background: #3a211c; }
.amt { font-size: 52px; } .cd { width: 78px; height: 78px; font-size: 17px; } .probe { font-size: 15px; } .probe i { width: 9px; height: 9px; }
.stamp { font-size: 32px; } .cells { gap: 10px; } .cells b { width: 48px; height: 58px; font-size: 32px; line-height: 56px; } .big-ic { font-size: 54px; }
.toast { top: 34px; left: 12px; right: 12px; font-size: 15px; padding: 9px 12px; }
 .key { font-size: 19px; } .key.fn { font-size: 15px; }
 .nfc { width: 50px; height: 50px; background: radial-gradient(circle, #f6edca 0 4px, #0000 5px), radial-gradient(circle, #0000 0 10px, #f6edca99 10px 12px, #0000 13px 17px, #f6edca55 17px 19px, #0000 20px); } .rd-t b { font-size: 14px; letter-spacing: 0; }

  .scan-idle { font-size: 13px; }

/* 聚光时亮起来的零件（动画层在根上设 data-vm-focus，并把 data-vm-zone 提到压暗层之上） */
[data-vm-focus="pay"] .scanwin, [data-vm-focus="pay"] .screen-bezel, [data-vm-focus="screen"] .screen-bezel { box-shadow: 0 0 0 3px #fbd07c, 0 0 22px #fbd07caa, inset 0 2px 5px #0b1611; }
[data-vm-focus="pay"] .pay, [data-vm-focus="printer"] .pbay { box-shadow: 0 0 0 2px #fbd07c, 0 0 20px #fbd07c88; }
[data-vm-focus="printer"] .slit { border-color: #fbd07c; box-shadow: 0 0 10px #fbd07c; }
[data-vm-focus="printer"] .wallet, [data-vm-focus="tray"] .tray, [data-vm-focus="screen"] .keys { box-shadow: 0 0 0 3px #fbd07c, 0 0 22px #fbd07caa; }

/* 手机机身 */
@media (max-width: 699px) {
  .vm { left: 6px; top: 6px; width: 378px; height: 1572px; --vm-tray-floor: 6px; --vm-cam-top: 0px; }
  .body { height: 1558px; border-width: 2px; border-radius: 20px 20px 14px 14px; box-shadow: inset 1px 2px 0 #fffbdc, inset -3px -3px 0 #d8bf77, 3px 4px 0 #a5a282, 4px 5px 0 #526351; }
  .foot-l, .foot-r { width: 40px; height: 13px; border-width: 2px; } .shadow { bottom: -8px; height: 24px; }
  .top { gap: 7px; }
  .vm-brand { font-size: 18px; gap: 5px; } .vm-brand-ic { width: 15px; height: 20px; border-width: 2px; border-radius: 4px; }
  .neon { height: 28px; padding: 0 8px; font-size: 14px; border-width: 1.5px; border-radius: 6px; }
  .led-panel { display: none; } .leds { margin-left: auto; gap: 6px; font-size: 0; } .leds i { width: 8px; height: 8px; } .leds span { gap: 0; }
  .grille { display: none; } .snd { width: 36px; height: 20px; } .snd i { width: 14px; height: 14px; } .snd[aria-pressed="true"] i { transform: translateX(16px); } .snd::after { line-height: 14px; }
  .awning { border-width: 1px; }
  .cats { gap: 5px; padding: 0; } .cat { height: 26px; font-size: 12px; gap: 4px; border-radius: 6px; } .cat i { width: 5px; height: 5px; }
  .glass { padding: 3px; border-radius: 9px; }
  .tag { height: 36px; padding: 3px 4px 4px; gap: 0 3px; align-content: center; border-bottom-width: 1px; } .tag small { font-size: 10px; line-height: 1.2; overflow: hidden; } .tag small b { font-size: 11px; } .tag small span { display: none; }
  .code { font-size: 10px; padding: 2px 3px; } .nm { font-size: 10px; } .lled { width: 6px; height: 6px; }
  .bay { padding-bottom: 3px; }
     .sold { font-size: 11px; padding: 2px 6px; } .none { font-size: 10px; }
  .tray::after { height: 6px; border-top-width: 1px; }
  .card { left: 14px; top: 104px; width: 346px; padding: 10px 12px 9px; } .card h3 { font-size: 15px; margin-bottom: 5px; } .card dl { padding: 6px 0; gap: 3px 10px; font-size: 12px; } .card p { margin-top: 5px; font-size: 11px; } .card .row { margin-top: 6px; } .cbtn { padding: 4px 12px; }
  .screen-bezel { padding: 7px; border-radius: 12px; }
  .view { padding: 9px 12px; gap: 6px; } .t { font-size: 18px; } .amt { font-size: 44px; } .cd { width: 66px; height: 66px; } .cells { gap: 7px; } .cells b { width: 44px; height: 52px; font-size: 28px; line-height: 50px; }
  .field > span { width: 100px; } .sum b { font-size: 24px; }
  .pay { padding: 6px 10px; border-radius: 10px; }
  .scanwin { position: absolute; left: 10px; top: 24px; width: 220px; height: 220px; margin: 0; }
  .paybtns { position: absolute; right: 10px; top: 26px; width: 112px; grid-template-columns: 1fr; gap: 14px; } .payb { flex-direction: row; gap: 8px; height: 56px; font-size: 14px; }
  .sign { top: 30px; }
  .keys { padding: 9px 10px; gap: 7px 8px; border-radius: 10px; } .key { font-size: 18px; } .key.fn { font-size: 14px; }
  .printer { padding: 6px 9px 0; border-radius: 10px; } .pbay { left: 9px; right: 9px; top: 26px; }
  .reader { flex-direction: column; justify-content: center; text-align: center; padding: 0 8px; gap: 8px; border-radius: 10px; } .rd-t { justify-items: center; }

}

/* 两排货架。每个状态共用同一片罐位，商品标签另占下方三行。 */
#rack.vm-live .lanes { grid-template-rows: repeat(2,minmax(0,1fr)); }
#rack.vm-live .lane .bay { container-type: size; padding: 3px 0; place-items: end center; }
#rack.vm-live .lane .bay .can {
  width: min(88cqw, calc(100cqh * .73)); height: auto; aspect-ratio: .73;
  margin: 0; justify-self: center; container-type: inline-size;
}
#rack :is(.lane,.tray) .can-body b { max-width: none; font-size: max(calc(9px / var(--f)),min(16cqw,18px)); padding-inline: 2px; line-height: 1.15; }
#rack.vm-live .lane .tag {
  position: relative; flex: none; height: 35%; padding: 2px; gap: 2px; align-content: center;
  grid-template: repeat(3, auto) / minmax(0,1fr); justify-items: center; align-items: center; text-align: center;
}
#rack .lane .code {
  position: static; color: #25493b; background: #fffdf0;
  font: 800 13px/1 var(--mono); padding: 1px 5px; border: 1px solid #81927f;
}
#rack .lane:is(:hover,:focus-visible,[data-in]) .code { color: #fffdf0; background: #315546; }
#rack .lane .lled { position: absolute; top: 5px; right: 5px; left: auto; }
#rack .lane .tag :is(.nm,small) { grid-column: 1; width: max-content; max-width: none; align-self: center; }
#rack .lane .tag small span { display: inline; }
#rack .lane .tag .nm { font: 750 max(14px,calc(11px / var(--f)))/1.14 Arial,"PingFang SC",sans-serif; }
#rack .lane .tag small, #rack .lane .tag small :is(b,em) { font: 650 max(13px,calc(11px / var(--f)))/1.12 Arial,"PingFang SC",sans-serif; }
@media (max-width:699.98px) {
  #rack .lane .code { font-size: 10px; }
  #rack .lane .tag .nm { font-size: 11px; }
  #rack .lane .tag small, #rack .lane .tag small :is(b,em) { font-size: 9px; }
}

#rack[data-state="checkout"][data-checkout-step="payment"] :where(.payb,.pay .plate,#vm-quote-note) {
  animation: vm-pay-guide 1s ease-in-out infinite;
}
#rack[data-state="checkout"][data-checkout-step="payment"] .payb {
  border-color: #aa6224; color: #302909; background: #ffdc76;
}
#rack[data-state="checkout"][data-checkout-step="payment"] #vm-quote-note {
  font-size: 19px; font-weight: 800; line-height: 1.2; color: #ffe599;
}
#rack[data-state="checkout"][data-checkout-step="payment"] .pay .plate { color: #81420b; }
@keyframes vm-pay-guide {
  50% { background-color: #efaa36; color: #222b20; box-shadow: inset 0 0 0 2px #ffe6a3, 0 0 12px #ee982a; }
}
#rack[data-state="checkout"][data-checkout-step="email"] #mail-field {
  border-color: #ffd381; animation: vm-email-guide 1s ease-in-out infinite;
}
@keyframes vm-email-guide { 50% { box-shadow: inset 0 0 0 2px #ffd381; background: #544a30; } }
#rack[data-state="checkout"][data-pay-reminder][data-checkout-step="payment"] .payb {
  animation: vm-pay-reminder .46s ease-in-out 2;
}
@keyframes vm-pay-reminder { 50% { background: #ff9b42; box-shadow: inset 0 0 0 3px #fff2ab, 0 0 16px #ff8e20; } }
#rack[data-pay-reminder][data-state="checkout"] #screen { animation: vm-order-warning .46s ease-in-out 2; }
@keyframes vm-order-warning { 50% { box-shadow: inset 0 0 0 4px #ef7055; } }
#rack[data-pay-reminder] #toast[data-tone="error"] { background: #9f3327; color: #fff; }
#rack[data-state="checkout"] .payb[aria-pressed="true"] {
  background: #e0f0c9; border-color: #437456; box-shadow: inset 0 0 0 2px #8bb98d;
}
#rack #co-submit[aria-disabled="true"] { background: #b6b9ad; color: #30372d; opacity: .85; }

@media (hover:hover) and (pointer:fine) {
  #rack, #rack * { cursor: var(--vm-finger); }
  #rack :is(input,textarea) { cursor: text; }
  #rack :is(a,button,[role="button"],#receipt,.vm-fly,.vm-paper[data-vm-hang],.vm-held,.vm-rvbg):active,
  #rack :is(a,button,[role="button"],#receipt,.vm-fly,.vm-paper[data-vm-hang],.vm-held,.vm-rvbg):active * { cursor: var(--vm-finger-down); }
}

/* 飞罐和取货按钮共用货架的实际尺寸与槽位。四只在前排，其余错位站在后排。 */
#rack .tray { container-type: size; }
#rack #tray :is(.vm-pile > .vm-fly,[data-vm-tray-item]) {
  position: absolute; left: 0; top: 0;
  width: var(--can-w) !important; height: var(--can-h) !important;
  margin: calc(var(--can-h) / -2) 0 0 calc(var(--can-w) / -2) !important;
  --edge: calc(var(--can-w) / 2 + 3px);
  --seat-x: clamp(var(--edge), var(--column), 100cqw - var(--edge));
  z-index: 2; transform: translate(var(--seat-x), var(--seat-y));
  --seat-y: calc(100cqh - var(--vm-tray-floor) - var(--can-h) / 2);
}
#rack #tray :is(.vm-pile > .vm-fly,.ti)[data-back-row] {
  --seat-y: calc(100cqh - var(--vm-tray-floor) - var(--can-h) * .64);
  z-index: 1; filter: brightness(.78);
}
#rack .tray :is(.vm-fly,.ti > .can) { container-type: inline-size; }
#rack #tray .ti > .can { width: 100%; height: 100%; animation: none; }
#rack .tray .vm-tag { left: 30%; top: 15%; }
#rack .tray .vm-tag b { writing-mode: horizontal-tb; font-size: 10px; padding: 2px 4px; }
#rack #tray .ti.is-stored { z-index: 0 !important; }
#rack[data-state="pickup"] .vm-pile .vm-more { display: none; }
