body.vd { height: auto; min-height: 100%; background: var(--bg); }
.vd .login { min-height: 100vh; }
.vd-top { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); background: var(--surface); border-bottom: 1px solid var(--line); }
.vd-top .logo { height: 28px; }
.vd-status { display: flex; align-items: center; gap: 6px; }
.vd-pending { margin: 0; padding: 8px 14px; background: color-mix(in srgb, var(--warn) 18%, var(--surface)); color: var(--ink); font-size: 13px; text-align: center; }
.vd-main { max-width: 640px; margin: 0 auto; padding: 14px 14px calc(96px + env(safe-area-inset-bottom)); }
.vd-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(6, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.vd-nav button { font: inherit; font-size: 12px; font-weight: 600; padding: 14px 4px; min-height: 52px; border: 0; border-top: 3px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.vd-nav button[aria-current="page"] { color: var(--ink); border-top-color: var(--orange); }
.vd h2 { font-size: 20px; margin: 4px 0 10px; }
.vd h3 { font-size: 15px; margin: 18px 0 8px; }
.vd-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.vd-big { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 14px; }
.vd-big .btn { min-height: 64px; font-size: 18px; }
.vd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vd-grid .stat .v { font-size: 16px; }
.vd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vd-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.vd-list button.row { all: unset; display: grid; gap: 2px; width: 100%; cursor: pointer; }
.vd-list .t { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.vd-list .s { font-size: 13px; color: var(--muted); }
.vd-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.vd-pick .btn { flex: 1 1 30%; min-height: 52px; }
.vd-pick .btn[aria-pressed="true"] { background: var(--accent-bg); color: var(--accent-ink); border-color: var(--accent-bg); }
.vd-pick .btn:disabled { opacity: .45; }
.vd-prod { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.vd-prod .n { font-weight: 600; }
.vd-prod .p { font-size: 13px; color: var(--muted); }
.vd-prod .vd-last { color: var(--ink); }
.vd-price { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.vd-price input { width: 120px; text-align: right; font-size: 17px; font-weight: 600; }
.vd-qty { display: flex; align-items: center; gap: 6px; }
.vd-qty button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 22px; cursor: pointer; }
.vd-qty output { min-width: 34px; text-align: center; font-weight: 700; font-size: 18px; }
.vd-foot { position: fixed; left: 0; right: 0; bottom: calc(52px + env(safe-area-inset-bottom)); z-index: 25; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vd-foot b { font-size: 20px; }
.vd-foot .btn { min-height: 48px; padding: 8px 18px; }
.vd-warn { color: var(--warn); font-size: 13px; margin: 4px 0; }
.vd-bad { color: var(--danger); font-size: 13px; margin: 4px 0; }
.vd-ok { color: var(--ok); font-size: 13px; margin: 4px 0; }
.vd-photo img { max-width: 100%; max-height: 180px; border-radius: 10px; display: block; margin-top: 8px; }
.vd-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(120px + env(safe-area-inset-bottom)); z-index: 60; background: #111; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; max-width: 90vw; }
.vd input[type="search"], .vd input[type="text"], .vd input[type="number"], .vd input[type="tel"] { margin: 4px 0 8px; }
.vd .chip.off { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }

.vd-card > .t { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.vd-next { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; border-left: 4px solid var(--orange); }
.vd-next .t { display: flex; justify-content: space-between; gap: 8px; }
.vd-next .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.vd-stops { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.vd-stops li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.vd-stops li.next { border-color: var(--orange); box-shadow: 0 0 0 2px color-mix(in srgb, var(--orange) 30%, transparent); }
.vd-stops li.done { opacity: .6; }
.vd-n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.vd-st { display: grid; gap: 3px; min-width: 0; }
.vd-st .s { font-size: 13px; color: var(--muted); }
.vd-stbtns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vd-stbtns .btn { min-height: 40px; display: inline-grid; place-items: center; text-decoration: none; }
.vd-prod2 { display: grid; gap: 8px; }
.vd-prod2 > .n { font-weight: 700; font-size: 17px; }
.vd-prod2 > .p { font-size: 13px; color: var(--muted); }
.vd-pres { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; }
.vd-pres.off { opacity: .6; }
.vd-pres-top { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; }
.vd-pres .n2 { font-weight: 600; }
.vd-pres .p { font-size: 13px; color: var(--muted); }
.vd-pres .vd-last { color: var(--ink); }
.vd-qty button:disabled { opacity: .35; }
.vd-newc { display: grid; gap: 10px; }
.vd-newc label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }

.vd-prod2 > .vd-pres-top { padding-top: 6px; }
.vd-qty .vd-half { width: 48px; font-size: 20px; font-weight: 700; }
.vd-qty .vd-half[aria-pressed="true"] { background: var(--accent-bg); color: var(--accent-ink); border-color: var(--accent-bg); }

.vd-count { font-size: 13px; margin: 2px 2px 8px; }
.vd-list mark { background: #ffe08a; color: inherit; border-radius: 3px; padding: 0 1px; }
@media (prefers-color-scheme: dark) { .vd-list mark { background: #7a5c00; color: #fff; } }

.vd-thumb { display: inline-grid; place-items: center; flex: none; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); vertical-align: middle; }
.vd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vd-thumb.empty { background: color-mix(in srgb, var(--accent-bg) 18%, var(--surface)); color: var(--accent); font-weight: 700; }
.vd-head { display: flex; align-items: center; gap: 12px; }
.vd-head > div { min-width: 0; }
.vd-prodname { display: inline-flex; align-items: center; gap: 10px; }

.vd-noloose { border-top: 1px solid var(--line); padding-top: 8px; font-size: 13px; color: var(--muted); }

.vd-stk { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; margin: 8px 0; }
.vd-stk-head, .vd-stk-row { display: grid; grid-template-columns: 1fr 84px 84px; gap: 8px; align-items: center; }
.vd-stk-head { font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 0 4px; }
.vd-stk-head span:not(:first-child) { text-align: right; }
.vd-stk-row { padding: 8px 0; border-top: 1px solid var(--line); }
.vd-stk-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vd-stk-name > div { display: grid; line-height: 1.2; min-width: 0; }
.vd-stk-name b { font-size: 14px; font-weight: 600; }
.vd-stk-name small { color: var(--muted); font-size: 12px; }
.vd-stk-row input { width: 100%; min-height: 44px; padding: 6px 8px; text-align: right; }
.vd-stk-row input::placeholder { font-size: 11px; }
.vd-stk-row > .muted { text-align: right; margin: 0; }
