*{box-sizing:border-box}:root{--gold:#e6b938;--ink:#211d13;--muted:#756f63;--line:#e9e5dc;--bg:#f4f1e8;--red:#b93b34;--green:#22734b}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial;background:var(--bg);color:var(--ink)}
button{font:inherit;border:0;border-radius:13px;cursor:pointer}.app{max-width:540px;margin:auto;min-height:100vh;background:#fff;box-shadow:0 0 50px #00000012}
header{padding:14px 18px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fffefcf2;backdrop-filter:blur(12px);z-index:10}.brand{display:flex;align-items:center;gap:9px}.brandcoin{font-size:30px}.brand b{font-size:22px}.brand small{display:block;color:var(--muted)}.queue-summary{display:flex;gap:7px}.queue-summary span{background:#f3f0e8;border-radius:99px;padding:7px 9px;font-size:12px;font-weight:800}
.mode-switch{display:flex;gap:7px;padding:15px 18px 7px}.tab{flex:1;background:#f0eee8;padding:11px}.tab.active{background:#191816;color:#fff}.panel{display:none;padding:5px 18px}.panel.active{display:block}.section-title{display:flex;align-items:end;justify-content:space-between}.section-title span{font-size:12px;color:var(--muted);padding-bottom:3px}h2{font-size:18px;margin:12px 0}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.product{background:#fff8dc;border:1px solid #ecd472;text-align:left;padding:14px;min-height:120px;position:relative}.product .emoji{font-size:25px}.product-sub{display:block;font-size:11px;color:var(--muted);margin-top:3px}.product b,.product>span:last-child{display:block}.product b{font-size:20px;margin-top:4px}.product>span:last-child{font-size:22px;font-weight:900;margin-top:6px}.product em{float:right;background:#191816;color:#fff;border-radius:99px;padding:3px 8px;font-style:normal;font-size:13px}.linkbtn,.text-button{background:transparent;color:#736824;padding:10px 0}.manual{text-align:center;font-size:46px;font-weight:950;padding:20px}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.keypad button{font-size:24px;background:#f1f0ec;min-height:58px}.cart{position:sticky;bottom:0;background:#fffefcf5;backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:14px 18px;display:flex;align-items:center;gap:12px;z-index:9}.cart-copy{flex:1;min-width:0}.cart span,.cart small{display:block;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:210px}.cart strong{font-size:28px}.primary{background:var(--gold);color:var(--ink);font-weight:850}.cart .primary{min-width:185px;padding:14px}.primary:disabled{opacity:.35}.secondary{background:#efece3}.ghost{background:#f4f3ef}.danger{background:#fae4e2;color:#8f2721}.full{width:100%;margin-top:10px;font-size:16px;min-height:50px;padding:13px}.payments-card{margin:22px 18px 110px;border:1px solid var(--line);border-radius:18px;overflow:hidden}.history-head{display:flex;justify-content:space-between;align-items:center;padding:14px 15px;background:#faf9f5}.history-head small{display:block;color:var(--muted);margin-top:2px}.filters{display:flex;gap:6px;padding:10px;overflow-x:auto;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.filter{white-space:nowrap;background:#f1efe9;padding:8px 10px;font-size:12px}.filter.active{background:#1f1d18;color:#fff}.filter span{display:inline-grid;place-items:center;min-width:19px;height:19px;border-radius:99px;background:#fff3c3;color:#2b281f;margin-left:3px}.issue-filter span{background:#ffe3dc;color:#9a302b}.history-list{padding:0 14px}.history-row{width:100%;display:flex;justify-content:space-between;align-items:center;padding:13px 0;border-radius:0;border-top:1px solid var(--line);background:#fff;text-align:left}.history-row:first-child{border-top:0}.history-row small{display:block;color:var(--muted);margin-top:3px}.row-main{min-width:0}.badge{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:900}.badge.ok{background:#e0f3e7;color:var(--green)}.badge.warn,.badge.wait{background:#fff2cb}.badge.refund{background:#efe2ff}.badge.muted{background:#eee;color:#777}.empty{padding:24px;color:var(--muted);text-align:center}
.state{text-align:center;padding:24px 22px 50px}.hidden{display:none!important}.status-orb{width:112px;height:112px;border-radius:50%;display:grid;place-items:center;margin:18px auto 13px;font-size:58px;font-weight:950}.waiting-orb{background:#fff4c7}.warning-orb{background:#ffe6d5;color:#c44d1b}.neutral-orb{background:#eeeae0}.success-orb{background:#e0f3e7;color:var(--green)}.eyebrow{font-size:12px;letter-spacing:.12em;font-weight:900;color:#776e54}.state h1{font-size:29px;line-height:1.05;margin:8px 0}.big{font-size:48px;font-weight:950;margin:12px}.state>p{color:var(--muted);line-height:1.45;max-width:410px;margin:12px auto}.payment-code-icon{width:112px;height:112px;margin:18px auto;display:grid;place-items:center;border-radius:30px;background:#fff4c7;color:#d6a51d;box-shadow:0 12px 30px rgba(190,144,20,.16)}.payment-code-icon svg{width:82px;height:82px}.payment-code-icon .code-frame{fill:none;stroke:currentColor;stroke-width:7}.payment-code-icon .code-dot,.payment-code-icon .code-pixels{fill:currentColor}.statusline{display:inline-flex;align-items:center;gap:8px;background:#f5f3ec;border-radius:99px;padding:9px 13px;margin-bottom:14px;color:#655f52;font-size:13px}.pulse{width:9px;height:9px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 0 #e6b93880;animation:pulse 1.4s infinite}@keyframes pulse{70%{box-shadow:0 0 0 9px #e6b93800}}.backbtn{display:block;background:transparent;padding:8px 0;color:#6d6759}.detail-state{text-align:left}.detail-state .status-orb,.detail-state .eyebrow,.detail-state h1,.detail-state .big{text-align:center}.detail-card{border:1px solid var(--line);border-radius:18px;overflow:hidden;margin:22px 0}.detail-card>div{display:grid;grid-template-columns:105px 1fr;gap:10px;padding:12px 14px;border-top:1px solid var(--line)}.detail-card>div:first-child{border-top:0}.detail-card span{color:var(--muted);font-size:13px}.detail-card b{text-align:right;font-size:14px}
@media(max-width:390px){.cart .primary{min-width:145px;padding:12px 9px;font-size:12px}.cart strong{font-size:24px}.grid{gap:8px}.product{padding:12px}.state h1{font-size:25px}.filters{padding:8px 7px}.filter{padding:8px}}

.settings-card{margin:22px 18px 0;border:1px solid var(--line);border-radius:18px;overflow:hidden}.sale-mode-options{padding:6px 14px}.sale-mode-options label{display:flex;gap:10px;align-items:flex-start;padding:12px 2px;border-top:1px solid var(--line);cursor:pointer}.sale-mode-options label:first-child{border-top:0}.sale-mode-options input{margin-top:4px;accent-color:var(--gold)}.sale-mode-options span{display:block}.sale-mode-options b{display:block}.sale-mode-options small{display:block;color:var(--muted);margin-top:2px}.default-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#faf9f5;border-top:1px solid var(--line)}.default-choice span{font-size:13px;color:var(--muted)}.default-choice select{border:1px solid var(--line);border-radius:10px;background:white;padding:9px 12px;font:inherit;font-weight:700}.settings-card+.payments-card{margin-top:14px}

/* v5 navigation */
body{padding-bottom:0}.app{padding-bottom:76px}.app-screen{min-height:calc(100vh - 140px)}.screen-pad{padding:14px 18px}.bottom-nav{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:min(540px,100%);height:70px;padding-bottom:env(safe-area-inset-bottom);background:#fffefcf7;backdrop-filter:blur(14px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);z-index:30}.nav-item{background:transparent;border-radius:0;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;position:relative}.nav-item span{font-size:21px;position:relative}.nav-item b{font-size:11px}.nav-item.active{color:var(--ink)}.nav-item.active:before{content:'';position:absolute;top:0;width:34px;height:3px;border-radius:0 0 4px 4px;background:var(--gold)}.nav-badge{position:absolute;right:-10px;top:-5px;background:var(--red);color:white;border-radius:99px;min-width:17px;height:17px;font-size:10px;font-style:normal;display:grid;place-items:center;padding:0 4px}.cart{bottom:70px}.settings-card,.payments-card{margin-bottom:18px}.payments-card{margin-top:18px}.queue-summary span{cursor:pointer}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stat{border:1px solid var(--line);border-radius:17px;padding:16px;background:#faf9f5;min-height:110px}.stat small{display:block;color:var(--muted);margin-bottom:9px}.stat strong{font-size:25px;line-height:1.1}.state{padding-bottom:30px}
.category-tabs{display:flex;gap:7px;overflow-x:auto;padding:2px 0 10px}.category-tab{white-space:nowrap;background:#f1efe9;padding:8px 11px;font-size:12px;font-weight:750}.category-tab.active{background:#1f1d18;color:#fff}.product.soldout{opacity:.45}.sold-label{position:absolute;right:8px;top:8px;background:#fff0ed;color:#9d312a;border-radius:99px;padding:4px 7px;font-size:10px;font-weight:900}.mini-primary{background:var(--gold);padding:8px 10px;font-weight:850;font-size:12px}.product-admin{padding:0 14px}.admin-product{padding:13px 0;border-top:1px solid var(--line)}.admin-product:first-child{border-top:0}.admin-product-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.admin-product-head small{display:block;color:var(--muted);margin-top:2px}.admin-actions{display:flex;gap:6px}.iconbtn{background:#f1efe9;padding:7px 9px;font-size:12px}.variant-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.variant-chip{background:#fff8dc;border:1px solid #ecd472;padding:7px 9px;border-radius:10px;font-size:12px}.variant-chip.off{opacity:.45;text-decoration:line-through}.admin-footer{display:flex;gap:8px;padding:12px 14px;border-top:1px solid var(--line);background:#faf9f5}.compact{padding:9px 11px;font-size:12px;font-weight:750}.product-admin-card{margin-bottom:95px}

/* v7: přehlednější Nastavení */
.settings-switch{display:flex;gap:7px;padding:15px 18px 0;position:sticky;top:67px;background:#fff;z-index:8}
.settings-tab{flex:1;background:#f0eee8;padding:11px;font-weight:800}
.settings-tab.active{background:#191816;color:#fff}
.settings-pane{display:none}
.settings-pane.active{display:block}
.settings-jump{width:100%;border-radius:0;border-top:1px solid var(--line);background:#fff8dc;padding:14px;text-align:left;font-weight:850;display:flex;justify-content:space-between;align-items:center}
.settings-jump span{font-size:20px}

.delete-product{background:#fae4e2;color:#8f2721}

/* v9: intuitivní inline správa katalogu */
.category-admin{padding:0 14px 8px}.category-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-top:1px solid var(--line)}.category-row:first-child{border-top:0}.category-row-main{min-width:0}.category-row-main b{display:block}.category-row-main small{color:var(--muted)}.category-actions{display:flex;gap:6px;flex-shrink:0}.category-admin-card{margin-bottom:12px}
.inline-editor{margin:10px 14px 14px;padding:13px;border:1px solid var(--line);border-radius:15px;background:#fffdf7}.inline-editor h3{font-size:15px;margin:0 0 10px}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.editor-grid .wide{grid-column:1/-1}.field{display:flex;flex-direction:column;gap:5px}.field span{font-size:11px;color:var(--muted);font-weight:750}.field input,.field select{width:100%;box-sizing:border-box;border:1px solid #d9d4c7;border-radius:10px;background:#fff;padding:10px 11px;font:inherit;font-size:14px;outline:none}.field input:focus,.field select:focus{border-color:#b99820;box-shadow:0 0 0 2px rgba(185,152,32,.12)}.editor-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:11px}.editor-actions button{padding:9px 12px;font-weight:800}.savebtn{background:var(--gold)}.cancelbtn{background:#f1efe9}.dangerbtn{background:#fff0ed;color:#9d312a}.product-edit-card{margin:10px 0 4px;padding:12px;border-radius:14px;background:#f8f6ef;border:1px solid var(--line)}.variant-editor-list{display:flex;flex-direction:column;gap:8px;margin-top:10px}.variant-editor-row{display:grid;grid-template-columns:minmax(0,1fr) 90px auto auto;gap:7px;align-items:center}.variant-editor-row input{min-width:0;border:1px solid #d9d4c7;border-radius:9px;padding:9px;font:inherit;font-size:13px}.variant-toggle{white-space:nowrap;background:#eef7ee;padding:8px 9px;font-size:11px;font-weight:800}.variant-toggle.off{background:#fff0ed;color:#9d312a}.variant-remove{background:#fff0ed;color:#9d312a;padding:8px 9px;font-size:11px;font-weight:800}.add-variant-inline{margin-top:9px;background:#f1efe9;padding:8px 10px;font-size:12px;font-weight:800}.product-summary{display:flex;align-items:center;gap:9px;min-width:0}.product-emoji{font-size:23px}.admin-actions .delete-product,.category-actions .delete-category{color:#9d312a;background:#fff0ed}.empty-note{padding:12px 14px;color:var(--muted);font-size:13px}.toast{position:fixed;left:50%;bottom:88px;transform:translateX(-50%) translateY(15px);background:#1f1d18;color:#fff;padding:10px 14px;border-radius:99px;font-size:12px;font-weight:800;opacity:0;pointer-events:none;transition:.2s;z-index:99}.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media(max-width:520px){.editor-grid{grid-template-columns:1fr}.editor-grid .wide{grid-column:auto}.variant-editor-row{grid-template-columns:minmax(0,1fr) 78px auto}.variant-remove{grid-column:3}.variant-toggle{grid-column:1/3;justify-self:start}.admin-product-head{align-items:flex-start;flex-direction:column}.admin-actions{width:100%}.admin-actions button{flex:1}}

/* v10: přehled produktů přímo pod kategoriemi + intuitivní mazání */
.category-block{border-top:1px solid var(--line);padding:0 0 10px}.category-block:first-child{border-top:0}.category-block .category-row{border-top:0;padding-bottom:7px}.category-products{display:flex;flex-wrap:wrap;gap:7px;padding:0 0 3px}.category-product-link{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#f8f6ef;padding:7px 9px;border-radius:11px;font:inherit;text-align:left}.category-product-link b{font-size:12px}.category-product-link small{font-size:10px;color:var(--muted)}.category-empty{font-size:12px;color:var(--muted);padding:1px 0 4px}.category-delete-panel{margin:9px 0 2px;padding:12px;border-radius:13px;background:#faf7ef;border:1px solid var(--line);display:flex;flex-direction:column;gap:9px}.category-delete-panel.warning-panel{background:#fff8f0;border-color:#ead5b8}.category-delete-panel>b{font-size:13px}.category-delete-panel>small{color:var(--muted);font-size:12px;line-height:1.35}.delete-product-preview{display:flex;flex-wrap:wrap;gap:6px}.delete-product-preview span{background:#fff;border:1px solid var(--line);border-radius:99px;padding:6px 9px;font-size:11px;font-weight:750}.full-width-action{width:100%;padding:10px 12px;font-weight:800}.category-admin{padding-bottom:10px}


/* v14 — velká mobilní správa katalogu + vyjížděcí editor */
.category-admin-card .history-head,
.product-admin-card .history-head{
  padding:18px;
}
.category-admin-card .history-head b,
.product-admin-card .history-head b{
  font-size:19px;
}
.category-admin-card .history-head small,
.product-admin-card .history-head small{
  font-size:13px;
  line-height:1.35;
}
.mini-primary{
  min-height:44px;
  padding:11px 14px;
  font-size:14px;
  border-radius:13px;
}
.category-admin,.product-admin{padding-left:18px;padding-right:18px}
.category-row{padding:16px 0}
.category-row-main b{font-size:17px}
.category-row-main small{font-size:13px;display:block;margin-top:3px}
.category-actions .iconbtn,.admin-actions .iconbtn{
  min-height:42px;
  padding:10px 13px;
  font-size:13px;
  font-weight:800;
}
.category-products{gap:8px;padding-bottom:7px}
.category-product-link{
  min-height:42px;
  padding:9px 11px;
}
.category-product-link b{font-size:13px}
.category-product-link small{font-size:11px}
.admin-product{padding:17px 0}
.product-summary{gap:12px}
.product-emoji{font-size:30px}
.admin-product-head small{font-size:13px}
.variant-chip{padding:9px 11px;font-size:13px}

/* Bottom-sheet editor. Existing JS can keep rendering forms in place;
   CSS lifts the active form into a real mobile editing surface. */
.inline-editor,
.product-edit-card{
  position:fixed;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:min(540px,100%);
  max-height:88dvh;
  overflow:auto;
  margin:0;
  padding:22px 20px calc(22px + env(safe-area-inset-bottom));
  border:0;
  border-radius:24px 24px 0 0;
  background:#fff;
  z-index:120;
  box-shadow:0 -10px 35px rgba(0,0,0,.18),0 0 0 100vmax rgba(25,24,22,.42);
  animation:zlatonkaSheetIn .22s ease-out;
}
@keyframes zlatonkaSheetIn{
  from{transform:translateX(-50%) translateY(35px);opacity:.4}
  to{transform:translateX(-50%) translateY(0);opacity:1}
}
.inline-editor:before,
.product-edit-card:before{
  content:"";
  display:block;
  width:46px;
  height:5px;
  border-radius:99px;
  background:#d7d2c6;
  margin:-10px auto 16px;
}
.inline-editor h3,.product-edit-card h3{
  font-size:22px;
  margin:0 0 18px;
}
.editor-grid{gap:14px}
.field{gap:7px}
.field span{font-size:13px}
.field input,.field select{
  min-height:52px;
  padding:13px 14px;
  border-radius:13px;
  font-size:16px;
}
.variant-editor-list{
  gap:11px;
  margin-top:16px;
}
.variant-editor-row{
  grid-template-columns:minmax(0,1fr) 100px;
  gap:9px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#faf9f5;
}
.variant-editor-row input{
  min-height:48px;
  padding:11px 12px;
  border-radius:12px;
  font-size:15px;
}
.variant-toggle,.variant-remove{
  min-height:44px;
  padding:10px 12px;
  font-size:12px;
}
.variant-toggle{grid-column:1}
.variant-remove{grid-column:2}
.add-variant-inline{
  width:100%;
  min-height:48px;
  margin-top:12px;
  padding:11px 14px;
  font-size:14px;
}
.editor-actions{
  position:sticky;
  bottom:calc(-22px - env(safe-area-inset-bottom));
  margin:20px -20px calc(-22px - env(safe-area-inset-bottom));
  padding:13px 20px calc(13px + env(safe-area-inset-bottom));
  background:#fff;
  border-top:1px solid var(--line);
  z-index:2;
}
.editor-actions button{
  flex:1;
  min-height:50px;
  padding:12px 14px;
  font-size:15px;
  border-radius:13px;
}
.savebtn{font-weight:900}
.cancelbtn{font-weight:800}

/* On small phones keep the editor comfortably thumb-sized. */
@media(max-width:520px){
  .settings-card{margin-left:10px;margin-right:10px}
  .category-admin,.product-admin{padding-left:14px;padding-right:14px}
  .category-admin-card .history-head,
  .product-admin-card .history-head{padding:16px 14px}
  .inline-editor,.product-edit-card{padding-left:16px;padding-right:16px}
  .editor-actions{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}
}

/* v22 — prodej jako jednoduchý platební terminál */
.cart{
  display:grid;
  grid-template-columns:minmax(105px,.8fr) minmax(225px,1.35fr);
  align-items:center;
  gap:10px;
}
.checkout-methods{min-width:0}
.checkout-label{
  display:block;
  margin:0 0 5px;
  color:var(--muted);
  font-size:10px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.payment-methods{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
}
.payment-method{
  min-width:0 !important;
  min-height:52px;
  padding:8px 6px !important;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid #dfd6bd;
  border-radius:15px;
  background:#f5f1e7;
  color:var(--ink);
  font-size:11px;
  font-weight:900;
}
.payment-method.transfer-method{
  background:var(--gold);
  border-color:#d2a921;
}
.payment-method .method-mark{
  width:25px;
  height:25px;
  max-width:none;
  display:grid;
  place-items:center;
  flex:0 0 25px;
  border-radius:9px;
  background:#fff;
  font-size:10px;
  font-weight:950;
  line-height:1;
}
.payment-method.transfer-method .method-mark{background:#fff7d7}
.payment-method:disabled{opacity:.35}
@media(max-width:355px){
  .cart{grid-template-columns:1fr}
}

/* v23 — kalkulačka pro ruční zadání částek */
.manual-expression{
  min-height:22px;
  margin:5px 0 0;
  text-align:center;
  color:var(--muted);
  font-size:13px;
  font-weight:750;
}
.manual{padding:10px 12px 16px}
.keypad{grid-template-columns:repeat(4,1fr)}
.keypad button{
  min-height:56px;
  font-size:22px;
  font-weight:800;
}
.keypad .calc-operator{background:#fff1b7;color:#755700}
.keypad .calc-equals{background:#211d13;color:#fff}
.keypad .calc-control{color:#756f63}

/* v24 — kontrola součtu a vracení hotovosti */
.cart-review-trigger{
  padding:0;
  border-radius:10px;
  background:transparent;
  text-align:left;
}
.cart-review-trigger:not(:disabled){cursor:pointer}
.cart-review-trigger:not(:disabled) span:first-child{color:#7a6418;text-decoration:underline;text-underline-offset:3px}
.cart-review-trigger:disabled{cursor:default}
.modal-backdrop{
  position:fixed;
  inset:0;
  z-index:100;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:14px;
  background:#17140db8;
  backdrop-filter:blur(4px);
}
.modal-panel{
  width:min(100%,510px);
  max-height:88vh;
  overflow:auto;
  padding:18px;
  border-radius:24px;
  background:#fff;
  box-shadow:0 24px 70px #0004;
}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:14px}
.modal-head small{color:#8a7540;font-size:11px;font-weight:900;letter-spacing:.1em}
.modal-head h2{margin:3px 0 0;font-size:22px}
.modal-close{width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#f1efe9;font-size:25px;line-height:1}
.review-lines{border-top:1px solid var(--line)}
.review-line{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 2px;border-bottom:1px solid var(--line)}
.review-line div{min-width:0}
.review-line b{display:block;font-size:15px}
.review-line small{display:block;margin-top:2px;color:var(--muted)}
.review-line strong{flex:0 0 auto;font-size:16px}
.review-line.minus strong{color:var(--red)}
.review-line-side{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.review-remove{
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:50%;
  background:#fae4e2;
  color:#8f2721;
  font-size:21px;
  font-weight:700;
  line-height:1;
}
.modal-total,.cash-due{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 2px}
.modal-total span,.cash-due span{color:var(--muted);font-weight:750}
.modal-total strong,.cash-due strong{font-size:27px}
.cash-input-label{display:block;margin:4px 0 10px}
.cash-input-label>span{display:block;margin-bottom:6px;color:var(--muted);font-size:13px;font-weight:750}
.cash-input-label>div{display:flex;align-items:center;border:2px solid #d9bd61;border-radius:16px;background:#fffdf5;overflow:hidden}
.cash-input-label input{min-width:0;width:100%;padding:15px;border:0;outline:0;background:transparent;font:inherit;font-size:28px;font-weight:900}
.cash-input-label b{padding:0 15px;color:var(--muted);font-size:18px}
.cash-exact{width:100%;padding:11px;background:#f1efe9;font-weight:800}
.cash-change{margin:13px 0 4px;padding:15px;border-radius:17px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.cash-change span{font-size:13px;font-weight:800}
.cash-change strong{font-size:25px}
.cash-change.neutral{background:#f3f1eb;color:var(--muted)}
.cash-change.ok{background:#e0f3e7;color:var(--green)}
.cash-change.short{background:#fae4e2;color:#8f2721}
body.modal-open{overflow:hidden}

/* v25 — hledání produktů a přímé ovládání počtu kusů */
.product-search{
  display:flex;
  align-items:center;
  gap:8px;
  margin:2px 0 10px;
  padding:0 10px;
  border:1px solid #ded9cc;
  border-radius:14px;
  background:#faf9f5;
}
.product-search>span{color:var(--muted);font-size:24px;line-height:1}
.product-search input{min-width:0;width:100%;padding:11px 0;border:0;outline:0;background:transparent;font:inherit;font-size:15px}
.product-search input::-webkit-search-cancel-button{display:none}
.product-search button{width:31px;height:31px;flex:0 0 31px;border-radius:50%;background:#ece9e1;font-size:20px}
.category-tabs.searching{opacity:.48}
.product{
  display:flex;
  flex-direction:column;
  min-height:224px;
  text-align:left;
}
.product .product-name{display:block;font-size:20px;margin-top:4px}
.product .product-price{display:block;margin-top:6px;font-size:22px;font-weight:900}
.qty-count{margin-top:auto;padding-top:10px;text-align:center}
.qty-count small{display:block;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.qty-count b{display:block;margin-top:1px;font-size:24px;line-height:1.15}
.qty-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}
.qty-buttons button{min-height:43px;border-radius:12px;font-size:25px;font-weight:900}
.qty-minus{background:#f0eee8;color:#5f5a4e}
.qty-plus{background:var(--gold);color:var(--ink)}
.qty-buttons button:disabled{opacity:.32;cursor:default}
.product-search-empty{grid-column:1/-1;padding:28px 12px;border:1px dashed #d8d2c3;border-radius:16px;color:var(--muted);text-align:center}

/* v18 mobile cleanup */
.brand-mascot{
  width:48px !important;
  height:48px !important;
  flex:0 0 48px !important;
  border-radius:0 !important;
  object-fit:contain !important;
  box-shadow:none !important;
  background:#fff !important;
  border:0 !important;
}
.app-header,.topbar,.brandbar{
  min-height:0 !important;
}
@media(max-width:520px){
  .app-header,.topbar,.brandbar{
    padding-top:14px !important;
    padding-bottom:14px !important;
  }
  .bottom-nav{
    min-height:64px !important;
  }
  .bottom-nav button,.bottom-nav .nav-item{
    padding-top:7px !important;
    padding-bottom:6px !important;
  }
}

/* v19 — hierarchy of brand vs. point-of-sale name */
.brand-mascot{
  width:72px !important;
  height:72px !important;
  flex:0 0 72px !important;
  object-fit:contain !important;
  background:#fff !important;
}
.brand-copy,
.brand-text{
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  min-width:0;
}
.brand-copy .brand-name,
.brand-text .brand-name,
.brand-copy > b:first-child,
.brand-text > b:first-child{
  font-size:17px !important;
  line-height:1.05 !important;
  font-weight:600 !important;
  margin:0 0 4px !important;
}
.brand-copy .stall-name,
.brand-text .stall-name,
.brand-copy > small,
.brand-text > small{
  font-size:24px !important;
  line-height:1.05 !important;
  font-weight:850 !important;
  color:#1b1a18 !important;
  margin:0 !important;
}
@media(max-width:520px){
  .brand-mascot{
    width:66px !important;
    height:66px !important;
    flex-basis:66px !important;
  }
  .brand-copy .brand-name,
  .brand-text .brand-name,
  .brand-copy > b:first-child,
  .brand-text > b:first-child{
    font-size:16px !important;
  }
  .brand-copy .stall-name,
  .brand-text .stall-name,
  .brand-copy > small,
  .brand-text > small{
    font-size:22px !important;
  }
}

/* v20 — compact header and visible PWA installation */
header{
  min-height:63px;
  padding:7px 14px;
}
header .brand{
  gap:8px;
  min-width:0;
}
header .brandcoin{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0;
  line-height:0;
}
header .brand-mascot{
  width:46px !important;
  height:46px !important;
  flex:0 0 46px !important;
}
header .brand-name{
  display:block;
  margin:0 0 2px !important;
  font-size:12px !important;
  line-height:1 !important;
  font-weight:750 !important;
  color:var(--muted) !important;
}
header .stall-name{
  display:block;
  margin:0 !important;
  font-size:17px !important;
  line-height:1.05 !important;
  font-weight:850 !important;
  color:var(--ink) !important;
}
header .queue-summary{
  gap:4px;
  flex-shrink:0;
}
header .queue-summary span{
  padding:5px 7px;
  font-size:11px;
}
.settings-switch{top:63px}
.install-card{margin-bottom:14px}
.install-actions{
  display:flex;
  flex-direction:column;
  gap:9px;
  padding:14px;
}
.install-button{
  width:100%;
  min-height:50px;
  padding:12px 14px;
  font-weight:900;
}
.install-actions small{
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}
@media(max-width:520px){
  header{padding:7px 12px}
  header .brand-mascot{
    width:44px !important;
    height:44px !important;
    flex-basis:44px !important;
  }
  header .stall-name{font-size:16px !important}
}

/* v27 — chytré kompaktní produktové karty */
.smart-product{
  min-height:186px;
  padding:10px;
  overflow:hidden;
  border:1px solid #e5d79d;
  border-radius:17px;
  transition:border-color .15s,box-shadow .15s,transform .1s;
}
.smart-product.category-ice{background:#fff8dc}
.smart-product.category-drink{background:#eaf8ff;border-color:#c8e2ec}
.smart-product.category-dessert{background:#fff0f3;border-color:#edd0d8}
.smart-product.category-savory{background:#fff3e6;border-color:#ead2b7}
.smart-product.category-extra{background:#f1f6e9;border-color:#d3dfc3}
.smart-product.selected{
  border:2px solid #d5a819;
  box-shadow:0 6px 18px #c9981830;
}
.favorite-star{
  position:absolute;
  top:7px;
  right:7px;
  z-index:3;
  width:34px;
  height:34px;
  padding:0;
  border-radius:50%;
  background:#ffffffc9;
  color:#877d68;
  font-size:22px;
}
.favorite-star.active{background:#252118;color:#f4c64e}
.smart-product .sold-label{top:45px}
.product-pick{
  width:100%;
  min-height:108px;
  padding:0 34px 4px 0;
  border-radius:10px;
  background:transparent;
  color:inherit;
  text-align:left;
}
.product-pick .emoji{display:block;font-size:25px}
.product-pick .product-sub{display:block;margin-top:2px;font-size:10px;color:var(--muted)}
.product-pick .product-name{display:block;margin-top:2px;font-size:18px;line-height:1.08}
.product-pick .product-price{display:block;margin-top:5px;font-size:20px;font-weight:900}
.tap-hint{display:block;margin-top:3px;color:#887735;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.qty-stepper{
  display:grid;
  grid-template-columns:44px 1fr 44px;
  align-items:center;
  gap:6px;
  margin-top:auto;
}
.qty-stepper button{height:42px;padding:0;border-radius:12px;font-size:24px;font-weight:900}
.qty-stepper .qty-minus{background:#ffffffa8}
.qty-stepper .qty-plus{background:var(--gold)}
.qty-stepper button:disabled{opacity:.3;cursor:default}
.qty-stepper .qty-count{margin:0;padding:0;text-align:center}
.qty-stepper .qty-count small{font-size:9px}
.qty-stepper .qty-count b{margin:0;font-size:22px}
.smart-product.selected .qty-count b{color:#9a7000}
@media(max-width:360px){
  .smart-product{min-height:180px;padding:9px}
  .product-pick .product-name{font-size:16px}
  .qty-stepper{grid-template-columns:40px 1fr 40px}
}

/* v28 — jednoznačná kontrola položek i v produktovém režimu */
.product-list-actions{display:flex;align-items:center;gap:10px;margin:12px 0 4px}
.review-products{
  flex:1;
  min-height:48px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:1px solid #d9b94e;
  background:#fff5c9;
  color:var(--ink);
  font-size:13px;
  font-weight:900;
}
.review-products b{padding:5px 8px;border-radius:99px;background:#fff;font-size:12px}
.review-products:disabled{opacity:.38;cursor:default}
.product-list-actions .linkbtn{flex:0 0 auto;font-size:12px}
.cart-review-trigger{
  min-height:62px;
  padding:6px 7px;
  border:1px solid #e1c96d;
  background:#fff8dc;
}
.cart-review-trigger:disabled{border-color:transparent;background:transparent}
.cart-review-label{display:flex!important;align-items:center;justify-content:space-between;gap:5px;text-decoration:none!important}
.cart-review-label em{padding:3px 5px;border-radius:6px;background:#f0d56d;color:#5f4a00;font-size:8px;font-style:normal;font-weight:950;letter-spacing:.04em}

/* v31 — pokladní den, vklady, výběry a uzávěrka */
.cash-register-screen{padding-bottom:105px}
.cash-register-card{
  margin-top:12px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 8px 24px #2a24120a;
}
.cash-register-card h3{margin:13px 0 4px;font-size:20px}
.cash-register-card>p{margin:0 0 15px;color:var(--muted);font-size:13px;line-height:1.4}
.cash-register-state{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:950;letter-spacing:.06em}
.cash-register-state span{width:9px;height:9px;border-radius:50%}
.cash-register-state.closed{color:#756f63}.cash-register-state.closed span{background:#aaa59b}
.cash-register-state.open{color:#21643b}.cash-register-state.open span{background:#36ad68;box-shadow:0 0 0 5px #36ad6818}
.cash-register-input{display:block;margin-top:12px}
.cash-register-input>span,.cash-note-label>span{display:block;margin-bottom:6px;color:var(--muted);font-size:12px;font-weight:800}
.cash-register-input>div{display:flex;align-items:center;border:2px solid #d9bd61;border-radius:15px;background:#fffdf5;overflow:hidden}
.cash-register-input input{min-width:0;width:100%;padding:13px;border:0;outline:0;background:transparent;font:inherit;font-size:25px;font-weight:900}
.cash-register-input b{padding:0 14px;color:var(--muted)}
.cash-quick-values{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:9px}
.cash-quick-values button{padding:9px 4px;background:#f1efe9;font-size:12px;font-weight:850}
.cash-register-hero{margin-top:10px;padding:19px;border-radius:22px;background:linear-gradient(145deg,#fff6c9,#ffe17a);text-align:center}
.cash-register-hero>small{display:block;margin-top:13px;color:#75632d;font-weight:800}
.cash-register-hero>strong{display:block;margin-top:2px;font-size:38px;line-height:1.1}
.cash-register-hero>p{margin:8px 0 0;color:#79682f;font-size:11px;line-height:1.35}
.cash-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.cash-stats-grid>div{min-height:78px;padding:12px;border:1px solid var(--line);border-radius:15px;background:#faf9f5}
.cash-stats-grid small{display:block;color:var(--muted);font-size:11px}
.cash-stats-grid strong{display:block;margin-top:7px;font-size:18px}
.cash-movement-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}
.cash-movement-actions button{min-height:48px;font-size:15px;font-weight:900}
.cash-deposit{background:#e0f3e7;color:#21643b}.cash-withdrawal{background:#fae4e2;color:#8f2721}
.cash-movement-form{margin-top:10px;padding:15px;border:2px solid #e2c45c;border-radius:20px;background:#fffaf0}
.cash-movement-form .modal-head{margin-bottom:6px}.cash-movement-form h3{margin:3px 0 0}
.cash-note-label{display:block;margin-top:11px}
.cash-note-label input{width:100%;box-sizing:border-box;border:1px solid #d9d4c7;border-radius:12px;padding:12px;font:inherit;outline:0}
.cash-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.cash-card-head small{display:block;margin-top:2px;color:var(--muted);font-size:11px}
.cash-card-head>span{padding:5px 8px;border-radius:99px;background:#f1efe9;font-size:10px;font-weight:950}
.cash-movements-card{padding-bottom:4px}
.cash-movement-list{margin-top:10px}
.cash-movement-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid var(--line)}
.cash-movement-row div{min-width:0}.cash-movement-row b{display:block;font-size:13px}.cash-movement-row small{display:block;margin-top:2px;color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cash-movement-row strong{flex:0 0 auto;font-size:14px}.cash-movement-row.plus strong{color:#21643b}.cash-movement-row.minus strong{color:#8f2721}
.cash-close-card{margin-bottom:0}
.cash-difference{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding:13px;border-radius:14px}
.cash-difference span{font-size:12px;font-weight:850}.cash-difference strong{font-size:20px}
.cash-difference.neutral{background:#f1efe9;color:var(--muted)}
.cash-difference.ok{background:#e0f3e7;color:#21643b}.cash-difference.short{background:#fae4e2;color:#8f2721}.cash-difference.over{background:#fff0c9;color:#7d5b00}
.last-closure-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:12px}
.last-closure-grid>div{padding:10px 7px;border-radius:12px;background:#faf9f5;text-align:center}
.last-closure-grid small{display:block;color:var(--muted);font-size:9px}.last-closure-grid strong{display:block;margin-top:5px;font-size:13px}
.last-closure-grid strong.ok,.cash-card-head>span.ok{color:#21643b}.last-closure-grid strong.short,.cash-card-head>span.short{color:#8f2721}.last-closure-grid strong.over,.cash-card-head>span.over{color:#7d5b00}
.cash-overview-card{margin-bottom:10px}.cash-overview-card .stats-grid{margin-top:12px}.cash-overview-card .stat{min-height:88px;padding:13px}
@media(max-width:360px){
  .cash-register-screen{padding-left:12px;padding-right:12px}
  .cash-quick-values{grid-template-columns:1fr 1fr}
  .cash-register-hero>strong{font-size:34px}
}

/* v32 — čisté symboly stavu platby místo loga */
.status-symbol-orb{overflow:visible}
.state-symbol{
  width:68px;
  height:68px;
  fill:none;
  stroke:currentColor;
  stroke-width:8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.waiting-orb{color:#b88400}
.failed-orb{background:#fae4e2;color:#a32323}
.refund-orb{background:#efe2ff;color:#6b3c91}
.neutral-orb{color:#777}
.badge.failed{background:#fae4e2;color:#a32323}
.badge.refund{color:#6b3c91}

/* v34 — větší maskot přes oba řádky bez zbytečně vysoké hlavičky */
header .brandcoin{
  width:54px;
  height:52px;
  flex:0 0 54px;
  overflow:hidden;
}
header .brand-mascot{
  width:88px !important;
  height:88px !important;
  max-width:none !important;
  flex:0 0 88px !important;
}
@media(max-width:520px){
  header .brandcoin{width:52px;height:50px;flex-basis:52px}
  header .brand-mascot{width:84px !important;height:84px !important;flex-basis:84px !important}
}

/* v36 — hotovostní modal respektuje vysunutou mobilní klávesnici */
.modal-backdrop{
  inset:auto 0 auto 0;
  top:var(--app-visual-top,0px);
  height:var(--app-visual-height,100dvh);
  box-sizing:border-box;
  padding:8px 10px;
}
.modal-panel{
  max-height:calc(var(--app-visual-height,100dvh) - 16px);
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
#cashModal #confirmCash{
  position:sticky;
  bottom:0;
  z-index:2;
  box-shadow:0 -10px 18px #fff;
}
@media(max-height:540px){
  .modal-panel{padding:13px 15px;border-radius:18px}
  .modal-head{margin-bottom:5px}
  .modal-head h2{font-size:20px}
  .cash-due{padding:7px 2px}
  .cash-input-label{margin:2px 0 7px}
  .cash-input-label input{padding:10px 12px;font-size:25px}
  .cash-exact{padding:9px}
  .cash-change{margin:7px 0 2px;padding:10px 12px}
  .cash-change strong{font-size:21px}
  #cashModal .full{min-height:44px;padding:10px}
}
