/* Jaggery v7 · demo page: tabbed stage with seven live demos on one shared order */
.demo-hero{padding-bottom:clamp(24px,4vw,40px)}
.dtabs-bar{position:sticky;top:84px;z-index:20;padding:8px 0;background:var(--bg)}
.dtabs{display:flex;gap:4px;padding:4px;border-radius:12px;background:var(--surface-3);border:1px solid var(--line);overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;width:fit-content;max-width:100%;margin-inline:auto}
.dtabs::-webkit-scrollbar{display:none}
.dtab{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:0;border-radius:9px;background:transparent;color:var(--tx-2);font:600 14.5px/1 var(--font-b);white-space:nowrap;transition:background-color var(--t) var(--ease),color var(--t) var(--ease)}
.dtab .i{width:18px;height:18px;color:var(--tx-3);fill:none}
.dtab:hover{color:var(--tx)}
.dtab[aria-selected="true"]{background:var(--surface);color:var(--tx);box-shadow:var(--sh-1),0 0 0 1px var(--line-2)}
.dtab[aria-selected="true"] .i{color:var(--ac-tx)}
.dtab .tag{height:22px;font-size:12px}
@media(max-width:899px){.dtabs-bar{top:76px}.dtabs{width:auto}}
.stage{position:relative;max-width:1200px;margin:16px auto 0;border:1px solid var(--line);border-radius:var(--r-2xl);background:var(--surface);padding:clamp(16px,3vw,32px);min-height:min(80vh,760px)}
.stage-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:clamp(16px,2.4vw,24px)}
.stage-top h2{font:700 1.125rem/1.3 var(--font-d);letter-spacing:-.01em}
.stage-top .acts{display:flex;align-items:center;gap:12px}
.stage-top .sample{font-size:13px;color:var(--tx-3)}
.reset{min-height:44px;padding:0 14px;border:1px solid var(--line-2);border-radius:var(--r);background:var(--surface-2);color:var(--tx-2);font:600 14px/1 var(--font-b)}
.reset:hover{background:var(--surface-3);color:var(--tx)}
.dpanel{display:grid;justify-items:center;gap:16px}
.dpanel[hidden]{display:none}
.dpanel .banner{justify-self:stretch;max-width:none}
.dcap{max-width:1200px;margin:14px auto 0;text-align:center;font-size:14px;color:var(--tx-2)}
.dev.tablet{width:100%;max-width:min(1000px,max(640px,calc((100vh - 240px) * 1.6)))}
.dev.tablet .bezel{border-radius:20px;padding:1.4%}
.dev.tablet .screen{border-radius:10px}
.stage .dev.laptop{width:100%;max-width:min(1000px,max(640px,calc((100vh - 260px) * 1.55)))}
.stage .dev.phone{width:min(100%,320px,max(250px,calc((100vh - 250px) * .47)))}
@container (min-width:560px){.tablet .screen,.stage .laptop .screen{aspect-ratio:16/10}.tablet .mk,.stage .laptop .mk{font-size:max(10px,1.45cqw)}}
@container (max-width:559px){.tablet .mk{font-size:13px}}
.stage .phone .mk{font-size:4.2cqw}
.stage .mk{overflow:hidden;position:relative}
.mk button{font:inherit;color:inherit;cursor:pointer}
.mk button:focus-visible,.mk input:focus-visible,.mk select:focus-visible{outline:2px solid var(--ac-tx);outline-offset:2px}

/* toast inside the stage */
.dtoast{position:absolute;left:50%;bottom:20px;z-index:30;display:flex;align-items:center;gap:12px;max-width:calc(100% - 32px);padding:10px 12px 10px 16px;border-radius:var(--r-lg);background:var(--tx);color:var(--bg);font-size:14px;font-weight:500;box-shadow:var(--sh-2);transform:translate(-50%,8px);opacity:0;pointer-events:none;transition:opacity 180ms var(--ease-out),transform 180ms var(--ease-out)}
.dtoast.on{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.dtoast button{min-height:36px;padding:0 12px;border:0;border-radius:var(--r);background:var(--bg);color:var(--tx);font:600 13.5px/1 var(--font-b);white-space:nowrap}

/* ---------- Diner QR (phone) ---------- */
.mk-qr{display:flex;flex-direction:column;height:100%;padding:3.3em 1em .9em;gap:.7em;background:var(--bg);position:relative}
.qr-scan{display:grid;place-items:center;align-content:center;gap:1em;height:100%;text-align:center}
.qr-scan b{font:700 1.3em/1.2 var(--font-d)}
.qr-scan small{display:block}
.qr-code{display:grid;place-items:center;gap:.6em;width:11em;padding:1em;border-radius:1em;border:1px solid var(--line-2);background:var(--surface)}
.qr-code svg{width:8em;height:8em;color:var(--tx)}
.qr-code span{font-weight:600;font-size:.9em}
.qr-list{display:grid;gap:.5em;overflow:auto;flex:1;align-content:start;padding-bottom:.4em}
.qr-dish{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.6em;align-items:center;padding:.6em .7em}
.qr-dish .nm{display:flex;align-items:center;gap:.45em;font-weight:600;font-size:.95em;line-height:1.25}
.qr-dish .pr{margin-top:.2em;font-weight:700;font-size:.92em}
.qr-dish .ds{font-size:.76em;color:var(--tx-3);margin-top:.1em}
.qr-add{min-width:4.6em;min-height:2.3em;padding:0 .8em;border-radius:.6em;border:1px solid var(--ac-line);background:var(--surface);color:var(--ac-tx);font-weight:700;font-size:.85em}
.qr-add.has{background:var(--ac);border-color:transparent;color:var(--on-ac)}
.qr-tog{display:flex;gap:.4em;flex-wrap:wrap}
.qr-tog button{display:inline-flex;align-items:center;gap:.4em;min-height:2.1em;padding:0 .8em;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:.82em;font-weight:500;color:var(--tx-2)}
.qr-tog button[aria-pressed="true"]{background:var(--ac-soft);border-color:var(--ac-line);color:var(--ac-tx);font-weight:600}
.qr-lang{display:inline-flex;border:1px solid var(--line-2);border-radius:99px;overflow:hidden;background:var(--surface)}
.qr-lang button{min-height:2em;padding:0 .7em;border:0;background:transparent;font-size:.78em;font-weight:600;color:var(--tx-3)}
.qr-lang button[aria-pressed="true"]{background:var(--ac-soft);color:var(--ac-tx)}
[lang="hi"],.hi-on .qr-list,.hi-on .qr-sheet{font-family:"Noto Sans Devanagari",var(--font-b)}
.qr-cart{display:flex;justify-content:space-between;align-items:center;gap:.6em;width:100%;padding:.75em .95em;border:0;border-radius:.85em;background:var(--ac);color:var(--on-ac);text-align:left}
.qr-cart b{font-weight:700}
.qr-cart small{display:block;color:inherit;opacity:.85;font-size:.72em}
.qr-owl{display:grid;gap:.5em;padding:.7em;border:1px solid var(--ac-line);border-radius:.9em;background:var(--surface)}
.qr-owl-h{display:flex;align-items:center;gap:.5em}
.qr-owl-h svg{width:1.8em;height:1.8em;border-radius:.45em;flex:none}
.qr-owl-h b{font:700 .92em/1.1 var(--font-d)}
.qr-owl-h .tag{margin-left:auto}
.qr-owl p{font-size:.86em;color:var(--tx-2)}
.qr-owl p b{color:var(--tx)}
.qr-owl .row{display:flex;gap:.4em}
.qr-owl .row button{flex:1;min-height:2.2em;border-radius:.6em;border:1px solid var(--line-2);background:var(--surface);font-size:.82em;font-weight:600}
.qr-owl .row .yes{border-color:var(--ac-line);color:var(--ac-tx)}
.qr-sheet{position:absolute;left:0;right:0;bottom:0;z-index:5;display:grid;gap:.7em;padding:1em 1em 1.1em;border-radius:1.2em 1.2em 0 0;background:var(--surface);border-top:1px solid var(--line-2);box-shadow:0 -1em 2em -1em rgba(0,0,0,.4)}
.qr-sheet h3{display:flex;align-items:center;gap:.45em;font:700 1.1em/1.2 var(--font-d)}
.qr-sheet fieldset{border:0;margin:0;padding:0;display:grid;gap:.4em}
.qr-sheet legend{font-size:.8em;font-weight:600;color:var(--tx-3);margin-bottom:.3em}
.qr-opt{display:flex;justify-content:space-between;align-items:center;gap:.6em;min-height:2.4em;padding:0 .8em;border-radius:.6em;border:1px solid var(--line-2);background:var(--surface-2);font-size:.88em;text-align:left;width:100%}
.qr-opt[aria-pressed="true"],.qr-opt[aria-checked="true"]{border-color:var(--ac-line);background:var(--ac-soft);color:var(--tx)}
.qr-sheet .go{min-height:2.6em;border-radius:.7em;border:0;background:var(--ac);color:var(--on-ac);font-weight:700}
.qr-sheet .x{position:absolute;top:.6em;right:.6em;width:2.2em;height:2.2em;border-radius:50%;border:1px solid var(--line-2);background:var(--surface);display:grid;place-items:center}
.qr-sheet .x .i{width:1em;height:1em}
.qr-scrim{position:absolute;inset:0;z-index:4;background:rgba(0,0,0,.45)}
.qr-h{display:flex;align-items:center;justify-content:space-between;gap:.6em}
.qr-h b{display:block;font:700 1.25em/1.15 var(--font-d);letter-spacing:-.02em}
.qr-back{min-height:2.1em;padding:0 .7em;border-radius:.6em;border:1px solid var(--line-2);background:var(--surface);font-size:.82em;font-weight:600}
.qr-lines{display:grid;gap:.2em}
.qr-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:.5em;align-items:center;padding:.5em 0;border-bottom:1px solid var(--line);font-size:.88em}
.qr-line .n{display:flex;gap:.4em;align-items:center;min-width:0}
.qr-line .n span{overflow:hidden;text-overflow:ellipsis}
.qty{display:inline-flex;align-items:center;border:1px solid var(--line-2);border-radius:.5em;overflow:hidden}
.qty button{display:grid;place-items:center;width:2em;height:2em;border:0;background:transparent;color:var(--tx-2)}
.qty button:hover{background:var(--surface-3)}
.qty .i{width:.9em;height:.9em}
.qty span{min-width:1.6em;text-align:center;font-weight:600;font-size:.9em}
.qr-tot{display:grid;gap:.25em;font-size:.86em;color:var(--tx-2)}
.qr-tot div{display:flex;justify-content:space-between}
.qr-tot .g{font:700 1.15em/1.2 var(--font-d);color:var(--tx);padding-top:.45em;margin-top:.2em;border-top:1px solid var(--line-2)}
.qr-done{display:grid;gap:.3em;padding:.8em;border-radius:.8em;background:var(--ok-soft);color:var(--ok);font-size:.88em;font-weight:600}
.qr-pay{display:grid;gap:.4em;margin-top:auto}
.qr-pay button,.qr-pay span{display:flex;align-items:center;justify-content:center;gap:.5em;min-height:2.5em;border-radius:.7em;font-weight:600;font-size:.88em}
.qr-pay .counter{background:var(--surface);border:1px solid var(--line-2);color:var(--tx)}
.qr-pay .upi{background:var(--surface-3);color:var(--tx-3);border:1px dashed var(--line-2)}

/* ---------- POS extras ---------- */
.dm-pos .item{cursor:pointer;width:100%;text-align:left}
.dm-pos .item:hover{border-color:var(--line-2);background:var(--surface-2)}
.open-bills{display:flex;gap:.4em;flex-wrap:wrap;align-items:center;font-size:.82em;color:var(--tx-3)}
.open-bills button{min-height:2em;padding:0 .8em;border-radius:99px;border:1px solid var(--ac-line);background:var(--ac-soft);color:var(--ac-tx);font-weight:600}
.open-bills button[aria-pressed="true"]{background:var(--ac);color:var(--on-ac);border-color:transparent}
.pos-tools{display:flex;gap:.4em}
.pos-tools button{flex:1;min-height:2.2em;border-radius:.55em;border:1px solid var(--line-2);background:var(--surface);font-size:.82em;font-weight:600;color:var(--tx-2)}
.pos-tools button[aria-pressed="true"]{background:var(--ac-soft);border-color:var(--ac-line);color:var(--ac-tx)}
.cl .pick{width:1.4em;height:1.4em;border-radius:.3em;border:1px solid var(--line-2);background:var(--surface);display:grid;place-items:center;flex:none;padding:0}
.cl .pick[aria-checked="true"]{background:var(--ac);border-color:transparent;color:var(--on-ac)}
.cl .pick .i{width:.9em;height:.9em}
.disc{display:grid;gap:.4em;padding:.6em .7em;border:1px solid var(--line-2);border-radius:.6em;background:var(--surface-2);font-size:.84em}
.disc .row{display:flex;gap:.4em;flex-wrap:wrap;align-items:center}
.disc button{min-height:2em;padding:0 .7em;border-radius:.5em;border:1px solid var(--line-2);background:var(--surface);font-weight:600}
.disc button[aria-pressed="true"]{border-color:var(--ac-line);background:var(--ac-soft);color:var(--ac-tx)}
.disc .pend{color:var(--tx-2)}
.disc .ok{color:var(--ok);font-weight:600}
.pay button{min-height:2.3em;border-radius:.55em;border:1px solid var(--line-2);background:var(--surface);font-weight:600;font-size:.85em;color:var(--tx-2)}
.pay button[aria-pressed="true"]{background:var(--ac-soft);border-color:var(--ac-line);color:var(--ac-tx)}
.charge{min-height:2.8em;border-radius:.6em;border:0;background:var(--ac);color:var(--on-ac);font-weight:700;font-size:.95em}
.charge:disabled{opacity:.5;cursor:default}
.empty{display:grid;place-items:center;text-align:center;color:var(--tx-3);padding:1.5em 0;font-size:.9em}

/* ---------- KDS extras ---------- */
.dm-kds .kt{position:relative}
.kt-go{display:grid;gap:.5em;width:100%;padding:0;border:0;background:none;text-align:left}
.kt .nx{font-size:.76em;font-weight:700;color:var(--ac-tx);letter-spacing:.02em}
.kt-rej{position:absolute;right:.5em;bottom:.5em;min-height:2em;padding:0 .7em;border-radius:.5em;border:1px solid var(--line-2);background:var(--surface);font-size:.76em;font-weight:600;color:var(--tx-2)}
.kt-rej:hover{border-color:var(--bad);color:var(--bad)}
.rej-box{display:grid;gap:.4em;padding:.6em;border:1px solid var(--bad);border-radius:.6em;background:var(--surface);font-size:.82em}
.rej-box button{min-height:2em;border-radius:.5em;border:1px solid var(--line-2);background:var(--surface-2);text-align:left;padding:0 .6em}
.kcol .none{color:var(--tx-3);font-size:.85em;text-align:center;padding:1em 0}

/* ---------- Tables ---------- */
.dm-tables .tb{cursor:pointer;width:100%;text-align:left;font:inherit;color:inherit}
.dm-tables .tb[aria-pressed="true"]{outline:2px solid var(--ac);outline-offset:1px}
.tb-panel{display:grid;gap:.6em;padding:.8em;border:1px solid var(--line);border-radius:.7em;background:var(--surface-2);font-size:.88em}
.tb-panel h6{margin:0;font:700 1.05em/1.2 var(--font-d);color:var(--tx)}
.tb-panel .acts{display:flex;flex-wrap:wrap;gap:.4em}
.tb-panel .acts button,.mini-form button{min-height:2.1em;padding:0 .7em;border-radius:.5em;border:1px solid var(--line-2);background:var(--surface);font-weight:600;font-size:.92em}
.tb-panel .acts button.p,.mini-form button.p{background:var(--ac);border-color:transparent;color:var(--on-ac)}
.mini-form{display:grid;gap:.4em;font-size:.86em}
.mini-form .r{display:flex;flex-wrap:wrap;gap:.4em}
.dm-tables{grid-template-columns:minmax(0,1fr) 16em}
.mini-form input{flex:1 1 7em}
.mini-form input,.mini-form select{min-width:0;flex:1;min-height:2.1em;padding:0 .5em;border-radius:.5em;border:1px solid var(--line-2);background:var(--surface);color:var(--tx);font:inherit}
.mini-form .err{color:var(--bad);font-size:.9em}
.fl-side{overflow:auto}
.wl li button{min-height:1.9em;padding:0 .6em;border-radius:.45em;border:1px solid var(--ac-line);background:var(--ac-soft);color:var(--ac-tx);font-weight:600;font-size:.82em}

/* ---------- Owner dashboard ---------- */
.zcard{display:grid;gap:.35em;font-size:.88em}
.zcard div{display:flex;justify-content:space-between;gap:.6em;color:var(--tx-2)}
.zcard div b{color:var(--tx)}
.zcard button{margin-top:.3em;min-height:2.2em;border-radius:.55em;border:1px solid var(--line-2);background:var(--surface);font-weight:600}
.zcard .st{color:var(--tx-3)}
.zcard .st.done{color:var(--ok);font-weight:600}

/* ---------- Inbox and Ask Mr.Owl (preview screens; more in preview.css) ---------- */
.dm-inbox .chips button{min-height:2em;padding:0 .8em;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:.85em;color:var(--tx-2)}
.dm-inbox .chips button[aria-pressed="true"]{background:var(--ac-soft);border-color:var(--ac-line);color:var(--ac-tx);font-weight:600}
.dm-inbox .chips{display:flex;gap:.4em;flex-wrap:wrap}
.mk-chat{display:flex;flex-direction:column;height:100%;padding:3.4em 1.1em 1em;gap:.8em}
.thread{display:flex;flex-direction:column;gap:.6em;flex:1;overflow:hidden;justify-content:flex-end}
.bub{max-width:88%;padding:.7em .9em;border-radius:1em;font-size:.9em;line-height:1.45}
.bub.u{align-self:flex-end;background:var(--surface-3);color:var(--tx);border-bottom-right-radius:.3em}
.bub.o{align-self:flex-start;background:var(--surface);border:1px solid var(--line);border-bottom-left-radius:.3em;color:var(--tx)}
.bub.o strong{color:var(--tx)}
.mini-bars{display:grid;gap:.35em;margin-top:.45em}
.mini-bars div{display:grid;grid-template-columns:6.5em 1fr auto;gap:.5em;align-items:center;font-size:.85em}
.mini-bars i{display:block;height:.4em;border-radius:99px;background:var(--ac);width:var(--w)}
.sugg{display:flex;flex-wrap:wrap;gap:.4em}
.sugg button{min-height:2.2em;padding:0 .8em;border-radius:99px;border:1px solid var(--line-2);background:var(--surface);color:var(--tx);font-size:.82em;font-weight:600}
.sugg button:disabled{opacity:.45}
.typing{display:inline-flex;gap:.25em}
.typing i{width:.4em;height:.4em;border-radius:50%;background:var(--tx-3)}

/* small screens: the demo fills the width, no device frame */
@media(max-width:699px){
  .stage{padding:12px;border-radius:var(--r-xl)}
  .stage .dev .bezel{background:none;padding:0;box-shadow:none;border-radius:0}
  .stage .dev .bezel::before{display:none}
  .stage .dev .screen{border-radius:var(--r-lg);border:1px solid var(--line);aspect-ratio:auto!important}
  .stage .dev.phone{width:100%}
  .stage .dev.phone .screen{height:640px}
  .stage .phone .mk{font-size:14px}
  .stage .lap-base{display:none}
  .mk-qr,.mk-chat,.dm-inbox{padding-top:1em!important}
  .mk button{min-height:40px}
  .qty button{width:40px;height:40px}
}
.dm-tables .fl-grid{row-gap:1.1em}
@container (max-width:559px){.dm-tables{grid-template-columns:1fr}.dm-tables .fl-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.dm-tables .tb .pax{display:none}}
.mk-lbl .tag{margin-left:.6em;vertical-align:middle}

/* locked sample screens: the short unlock form, and the wrapper that holds the screen once it is open */
.pv-open{display:grid;justify-items:center;gap:16px;justify-self:stretch}
.pv-open[hidden],.pv-lock[hidden]{display:none}
.pv-lock{justify-self:center;width:100%;max-width:560px;min-width:0}
.pv-lock .btn{white-space:normal;text-align:center;max-width:100%;line-height:1.3;padding-block:10px}
.pv-lock-h{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;align-items:start}
.pv-lock-ic{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--ac-soft);border:1px solid var(--ac-line);color:var(--ac-tx)}
.pv-lock-ic .i{width:20px;height:20px}
.pv-lock-h .h3{margin:0;padding-top:2px}
.pv-lock-p{margin:4px 0 0;font-size:15px;color:var(--tx-2)}
.pv-lock-list{margin:0;gap:10px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface-2)}
.pv-lock-list li{grid-template-columns:20px minmax(0,1fr) auto;align-items:center;font-size:14.5px;font-weight:500;color:var(--tx)}
.pv-lock-list li .i{margin-top:0;color:var(--tx-3);fill:none}
.pv-lock-list li[data-cur] .i{color:var(--ac-tx)}
.pv-lock-soon{margin-top:0}
@media(max-width:699px){.pv-lock{padding:8px 4px;border:0;background:none}}
.dtab .lk{width:14px;height:14px;margin-left:-2px}
