:root {
  --ink:#21362d;
  --green:#184d3e;
  --bright:#e85a37;
  --sand:#faf5e9;
  --line:#dedfd2;
  --surface:#fffefa;
  --muted:#53645b;
  color:var(--ink);
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  font-size:16px;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:#faf9f4;
}
button,input,select,textarea {
  font:inherit;
}
button,a,input,select,textarea,summary {
  outline-offset:4px;
}
button:focus-visible,a:focus-visible,summary:focus-visible {
  outline:3px solid #1e87bf;
}
button {
  cursor:pointer;
}
button:disabled {
  cursor:default;
  opacity:.52;
}
a {
  color:inherit;
}
h1,h2,h3,p {
  margin:0;
}
h1 {
  font-size:clamp(2.2rem,5vw,4.3rem);
  letter-spacing:-.064em;
  line-height:1.02;
  font-weight:750;
}
h2 {
  font-size:1.45rem;
  letter-spacing:-.035em;
}
h3 {
  font-size:1.13rem;
  line-height:1.2;
  letter-spacing:-.025em;
}
small,p {
  line-height:1.48;
}
small,.site {
  color:var(--muted);
}
.brand,.right,.actions,.displayhead,.inline,.modalfoot,.monitorbrand {
  display:flex;
  align-items:center;
  gap:12px;
}
.brand {
  font-size:1.18rem;
  font-weight:500;
  letter-spacing:-.04em;
  white-space:nowrap;
}
.brandmark {
  display:grid;
  place-items:center;
  width:35px;
  height:35px;
  border-radius:11px 11px 11px 3px;
  background:var(--bright);
  color:#fffadd;
  font:bold italic 29px Georgia;
}
.brand b {
  font-weight:750;
}
.btn,.chip,.choice,.backstep,.icon,.link,.start {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--ink);
  border-radius:12px;
  padding:12px 17px;
  min-height:44px;
  font-weight:650;
  text-decoration:none;
}
.btn:hover,.chip:hover,.choice:hover {
  border-color:var(--green);
}
.primary,.start {
  background:var(--green);
  color:white;
  border-color:var(--green);
}
.ghost {
  background:transparent;
}
.small {
  padding:7px 12px;
  min-height:36px;
  font-size:.88rem;
}
.icon {
  border:0;
  background:transparent;
  padding:0;
  width:42px;
  font-size:1.6rem;
}
.quiet {
  font-size:.84rem;
  padding:12px;
}
.actions {
  flex-wrap:wrap;
}
.badge,.tag {
  display:inline-block;
  border-radius:999px;
  padding:6px 11px;
  font-size:.78rem;
  font-weight:700;
  background:#fff0c7;
  color:#684d0c;
}
.tag {
  background:#e8eee8;
  color:#365344;
}
.tag.paid,.tag.ready,.tag.issued {
  background:#cbebd8;
  color:#175532;
}
.tag.uncertain,.tag.failed,.tag.declined {
  background:#ffddd4;
  color:#713327;
}
.khead,.displayhead {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px clamp(16px,4vw,56px);
  min-height:70px;
  border-bottom:1px solid var(--line);
  background:var(--surface);
}
.khead select {
  width:auto;
  background:transparent;
  border-radius:999px;
}
.welcome {
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:calc(100dvh - 76px);
  background:#ffeccf;
}
.welcome-copy {
  align-self:center;
  padding:clamp(28px,7vw,100px);
  display:flex;
  align-items:flex-start;
  flex-direction:column;
  gap:clamp(22px,4vw,50px);
}
.welcome h1 {
  font-family:Georgia,serif;
  font-weight:500;
  font-size:clamp(4.4rem,8.7vw,9rem);
  line-height:.91;
  letter-spacing:-.077em;
  max-width:8ch;
}
.restaurant {
  font-weight:700;
  display:flex;
  align-items:center;
  gap:9px;
  font-size:1.16rem;
}
.restaurant i {
  background:var(--bright);
  border-radius:50%;
  width:11px;
  height:11px;
}
.hero {
  width:100%;
  height:100%;
  object-fit:cover;
  min-height:0;
  max-height:calc(100dvh - 72px);
}
.start {
  border-radius:40px;
  padding:18px 30px;
  font-size:1.28rem;
}
.kmain,.displaymain,.hub {
  max-width:1180px;
  margin:auto;
  padding:clamp(20px,4vw,54px);
  padding-bottom:115px;
}
.page-title {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  margin:10px 0 24px;
}
.chips {
  display:flex;
  gap:8px;
  overflow:auto;
  padding:4px 2px 16px;
}
.chip {
  border-radius:40px;
  white-space:nowrap;
}
.active {
  color:white;
  background:var(--green);
}
.productgrid,.hubgrid,.tickets {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));
  gap:18px;
  margin-bottom:28px;
}
.product {
  position:relative;
  display:block;
  border:1px solid var(--line);
  border-radius:19px;
  overflow:hidden;
  background:var(--surface);
  text-align:left;
  padding:0;
  align-self:stretch;
  color:var(--ink);
}
.product>div {
  height:100%;
}
.product img,.no-photo {
  width:100%;
  aspect-ratio:1.56;
  object-fit:cover;
  display:block;
  background:#eddfcd;
}
.no-photo {
  display:grid;
  place-items:center;
  font:italic 3rem Georgia;
  color:#6a4f3f;
}
.productbody {
  padding:16px 17px 43px;
}
.foodtitle,.totalbox,.listline,.worktop,.ticket header,.monitor header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.foodtitle h3 {
  font-size:1.22rem;
}
.productbody p {
  font-size:.9rem;
  color:var(--muted);
  margin-top:8px;
}
.adddot {
  position:absolute;
  right:13px;
  bottom:13px;
  background:#f4ead5;
  border-radius:50%;
  height:29px;
  width:29px;
  display:grid;
  place-items:center;
  font-size:1.35rem;
}
.cartbar {
  position:fixed;
  z-index:2;
  bottom:0;
  left:0;
  right:0;
  background:var(--surface);
  border-top:1px solid var(--line);
  padding:14px max(18px,calc((100vw - 1050px)/2));
  display:flex;
  justify-content:space-between;
  gap:15px;
}
.cartbar .primary {
  font-size:1.1rem;
  min-width:200px;
}
.stepcard,.login-card {
  max-width:560px;
  margin:clamp(30px,8vh,100px) auto;
  padding:clamp(22px,4vw,40px);
  display:flex;
  flex-direction:column;
  gap:22px;
}
.stepcard h1 {
  font:500 clamp(2.9rem,6vw,4.9rem)/.98 Georgia;
  letter-spacing:-.062em;
}
.choices,.stack,.formbody,.subfields {
  display:flex;
  flex-direction:column;
  gap:16px;
}
.choice {
  justify-content:space-between;
  padding:22px 24px;
  font-size:1.18rem;
}
.choice::after {
  content:"→";
  color:var(--bright);
}
.backstep {
  margin:0 8vw;
}
.cartrow,.cellname,.coupon,.filterbar {
  display:flex;
  align-items:center;
  gap:12px;
}
.cartrow {
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.cartrow img,.cellname img,.thumb {
  width:58px;
  height:58px;
  object-fit:cover;
  border-radius:9px;
}
.cartrow .icon {
  margin-left:auto;
}
.totalbox {
  font-size:1.5rem;
  margin:22px 0;
}
.amount {
  font-size:2rem;
}
.panel,.ticket,.metric,.login-card {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
}
.warning,.invalid {
  color:#953e24;
}
.status {
  text-align:center;
  align-items:center;
}
.number {
  font-size:5.2rem;
  font-weight:800;
  letter-spacing:-.07em;
}
.number small {
  display:block;
  font-size:1rem;
  letter-spacing:normal;
}
.statusmark {
  border-radius:50%;
  font-size:2rem;
  background:#d7e9d8;
  width:62px;
  height:62px;
  display:grid;
  place-items:center;
}
.sim {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.dialog {
  width:min(540px,94vw);
  max-height:90dvh;
  border:1px solid var(--line);
  border-radius:18px;
  color:var(--ink);
  padding:24px;
  background:var(--surface);
}
.dialog::backdrop {
  background:#1a302a85;
}
.dialog header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:17px;
}
.productphoto {
  max-height:200px;
  width:100%;
  object-fit:cover;
  border-radius:12px;
}
.field {
  display:flex;
  flex-direction:column;
  gap:5px;
  font-size:.92rem;
  font-weight:620;
}
.field span {
  color:#3b5145;
}
input,select,textarea {
  border:1px solid #b9c4b9;
  border-radius:9px;
  background:#fff;
  color:var(--ink);
  min-height:43px;
  padding:8px 12px;
  max-width:100%;
  min-width:0;
}
input[type=checkbox] {
  height:19px;
  width:19px;
  min-height:0;
  accent-color:var(--green);
}
textarea {
  resize:vertical;
}
.option {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:38px;
}
.option b {
  margin-left:auto;
}
fieldset {
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 16px;
}
legend {
  font-weight:650;
}
summary {
  cursor:pointer;
  padding:9px 0;
  font-weight:650;
}
.subfields {
  border-left:2px solid #cedbce;
  padding:7px 0 12px 13px;
}
.modalfoot {
  justify-content:flex-end;
  position:sticky;
  bottom:-24px;
  background:var(--surface);
  padding:12px 0;
}
.photochoices {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
}
.photocard {
  background:#fff;
  border:1px solid var(--line);
  padding:4px;
}
.photocard img {
  width:100%;
  max-height:110px;
  object-fit:cover;
}
.tooltip,#feedback {
  position:fixed;
  z-index:100;
  bottom:22px;
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:88vw;
  background:#342e29;
  color:white;
  border-radius:10px;
  padding:12px 20px;
  box-shadow:0 4px 25px #0003;
}
.admin-layout {
  display:grid;
  min-height:100vh;
  grid-template-columns:220px 1fr;
}
.sidenav {
  padding:27px 15px;
  background:#183d33;
  color:#ecf1df;
}
.sidenav .brand {
  margin:0 10px 18px;
}
.sidenav .brandmark {
  background:#e7b96e;
  color:#20392d;
}
.sitename {
  font-size:.88rem;
  color:#c2d4c1;
  margin:0 10px 24px;
}
.sidenav nav {
  display:flex;
  flex-direction:column;
  gap:4px;
}
.navitem {
  display:block;
  width:100%;
  text-decoration:none;
  padding:10px 13px;
  color:inherit;
  background:none;
  border:0;
  text-align:left;
  min-height:38px;
  border-radius:8px;
  font-size:.93rem;
}
.selected,.navitem:hover {
  background:#345b4a;
}
.logout {
  margin-top:18px;
}
.workspace {
  padding:26px clamp(18px,4vw,58px);
  min-width:0;
}
.workspace h1,.displaymain h1 {
  font-size:clamp(2rem,4vw,3.4rem);
}
.worktop {
  border-bottom:1px solid var(--line);
  padding-bottom:14px;
  margin-bottom:30px;
  color:var(--muted);
  font-size:.85rem;
}
.stats {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:12px;
}
.metric small,.metric strong,.cellname small,.kline small,.listline small {
  display:block;
}
.metric strong {
  font-size:clamp(1.35rem,3vw,2.2rem);
  margin-top:8px;
  letter-spacing:-.05em;
}
.filterbar {
  flex-wrap:wrap;
}
.filterbar .field {
  flex:1;
  min-width:100px;
}
.tablewrap {
  overflow:auto;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:.92rem;
}
td,th {
  padding:12px 13px;
  text-align:left;
  border-bottom:1px solid var(--line);
}
th {
  background:#f1f3e9;
  color:#4b5d50;
  font-weight:650;
}
.cellname small {
  font-size:.76rem;
}
.hub {
  padding-top:8vh;
}
.hub h1 {
  margin:30px 0;
}
.hubcard {
  min-height:168px;
  border-radius:18px;
  padding:22px;
  position:relative;
  background:#e3ebdf;
  text-decoration:none;
}
.hubcard.Corallo {
  background:#f8ceb5;
}
.hubcard.Verde {
  background:#214b3e;
  color:white;
}
.hubcard strong {
  font:500 2.35rem Georgia;
}
.hubcard span {
  position:absolute;
  right:18px;
  bottom:18px;
}
.hubcard p {
  margin-top:7px;
}
.ticket header strong {
  font-size:1.8rem;
}
.ticket {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.ticket.ready {
  border-top:4px solid #2b8554;
}
.kline {
  padding:9px 0;
  border-top:1px dashed var(--line);
}
.empty {
  text-align:center;
  padding:60px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:15px;
}
.monitor {
  min-height:100vh;
  color:white;
  padding:4vw;
}
.monitor header {
  font-size:1.7rem;
  margin-bottom:5vh;
}
.monitorbrand img {
  max-height:65px;
}
.boards {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4vw;
}
.horizontal .boards {
  grid-template-columns:1fr;
}
.boards section {
  padding:22px;
  background:#ffffff10;
  border-radius:18px;
}
.boards h2 {
  font-size:clamp(1.4rem,3.5vw,3.4rem);
  margin-bottom:20px;
}
.boards .ready {
  color:var(--accent);
}
.numbers {
  display:flex;
  flex-wrap:wrap;
  gap:18px;
}
.numbers strong,.dash {
  font-size:clamp(3rem,7vw,7rem);
  letter-spacing:-.065em;
}
.ad {
  margin-top:25px;
}
.ad img,.ad video {
  max-width:100%;
  max-height:22vh;
}
.login-wrap {
  padding:4vh 14px;
}
.login-card {
  max-width:440px;
  padding:30px;
}
.login-card h1 {
  font-size:2.5rem;
}
@media(max-aspect-ratio:4/5) {
  .welcome {
    grid-template-columns:1fr;
    grid-template-rows:auto minmax(0,1fr);
  }
  .welcome-copy {
    gap:20px;
    padding:clamp(22px,6vh,70px) 7vw;
  }
  .welcome h1 {
    max-width:14ch;
    font-size:clamp(3.2rem,8vw,7rem);
  }
  .hero {
    height:100%;
    max-height:58vh;
  }
  .productgrid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:760px) {
  .admin-layout {
    grid-template-columns:1fr;
  }
  .sidenav {
    padding:12px 16px;
  }
  .sidenav .brand {
    display:inline-flex;
    margin:0 10px 6px 0;
  }
  .sitename {
    display:inline;
  }
  .sidenav nav {
    flex-flow:row nowrap;
    overflow-x:auto;
  }
  .navitem {
    width:auto;
    white-space:nowrap;
    display:inline-block;
  }
  .logout {
    margin:0;
  }
  .workspace {
    padding:17px;
  }
  .productbody {
    padding:12px 12px 45px;
  }
  .foodtitle {
    flex-wrap:wrap;
  }
  .khead {
    padding:10px;
  }
  .right {
    gap:4px;
  }
  .badge {
    font-size:.65rem;
  }
  .cartbar {
    padding:10px;
  }
  .coupon {
    flex-wrap:wrap;
  }
  .boards {
    gap:10px;
  }
  .boards section {
    padding:12px;
  }
  .monitor header {
    font-size:1.1rem;
  }
  .displayhead {
    flex-wrap:wrap;
  }
  .btn {
    min-height:44px;
  }
  .filterbar input {
    width:100%;
  }
}
@media print {
  .sidenav,.worktop,.filterbar,.actions,.btn,#feedback,.tablewrap button,.displayhead {
    display:none!important;
  }
  .admin-layout {
    display:block;
  }
  .workspace {
    padding:0;
  }
  .tablewrap {
    overflow:visible;
    border:none;
  }
  .metric {
    break-inside:avoid;
  }
  tr {
    break-inside:avoid;
  }
  body {
    background:white;
  }
}

:root.themed {
  --green: var(--theme);
  --bright: color-mix(in srgb, var(--theme) 80%, #1b3026);
  --sand: color-mix(in srgb, var(--theme) 9%, #fff6e4);
  --line: color-mix(in srgb, var(--theme) 18%, #ebebe3);
  --surface: color-mix(in srgb, var(--theme) 4%, white);
}
.themed body { background: color-mix(in srgb,var(--theme) 5%,#fffdf9); }
.themed .sidenav,.themed thead { background:#f0f2e9; background:color-mix(in srgb,var(--theme) 13%,#fafaf4); color:var(--ink); }
.themed .sidenav .sitename,.themed .navitem { color:var(--ink); }
.themed .navitem.selected,.themed .navitem:hover,.themed .navitem:focus-visible {
  background:#e1e6dd; background:color-mix(in srgb,var(--theme) 20%,white); color:var(--ink);
}
.themed .navitem.selected { box-shadow:inset 3px 0 currentColor; font-weight:700; }
.themed .primary,.themed .start,.themed .active { color:var(--theme-text); }
.themed .adddot,.themed .choice::after { color:var(--ink); }
.welcome-copy .quiet { color:inherit; }
.themed .chip.active { border-color:var(--theme); }
.brandmark:has(img) { background:transparent; padding:0; overflow:hidden; }
.brandmark img { width:100%;height:100%;display:block; }
.welcome-copy { background:var(--welcome-background,var(--sand));color:var(--welcome-text,var(--ink)); }
.welcome .start { background:var(--welcome-button,var(--green));color:var(--welcome-buttonText,var(--theme-text,white));border-color:var(--welcome-button,var(--green)); }
.welcome-plain { grid-template-columns:1fr; }
.number-pad { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem; }
.number-pad .digit { min-height:64px;font-size:1.6rem; }
.number-pad .digit:nth-child(10) { grid-column:2; }
.number-entry input { text-align:center;font-size:1.55rem;font-weight:700;letter-spacing:.16em; }
.quantity-control { display:flex;align-items:center;justify-content:center;gap:1.2rem; }
.qty-button { min-width:68px;min-height:62px;font-size:1.9rem;line-height:1; }
.quantity-control output { min-width:2ch;text-align:center;font-size:1.6rem;font-weight:700; }
.pay-label { display:flex;align-items:center;gap:1rem; }
.pay-label img { width:36px;height:36px; }
.upsell h1 { font-size:clamp(32px,5vw,62px); }
.ad-screen { position:fixed;inset:0;background:#121513;display:grid;place-items:center;z-index:20;touch-action:manipulation; }
.ad-screen img,.ad-screen video { width:100%;height:100%;max-height:100vh;object-fit:contain; }

.venue-home { max-width:1120px;margin:auto;padding:clamp(1rem,4vw,3rem); }
.venue-top { display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem; }
.venue-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.2rem; }
.venue-card { display:block;border:1px solid var(--line);padding:1.35rem;border-radius:14px;background:var(--surface);color:var(--ink);text-decoration:none; }
.venue-card:hover { border-color:var(--green); }
.venue-card strong,.venue-card small { display:block; }
.venue-card strong { font-size:1.35rem; }
.venue-card small { margin-top:1.35rem;color:var(--muted); }
.scope-editor:not(:empty) { display:grid;gap:.55rem;padding:.85rem;border:1px solid var(--line);border-radius:12px; }
.scope-editor .btn { justify-self:start; }
.media-row { display:grid;grid-template-columns:90px 1fr minmax(90px,160px) auto;gap:.75rem;align-items:center;border-bottom:1px solid var(--line);padding:.55rem 0; }
.ad-thumb { width:90px;height:60px;object-fit:cover;border-radius:6px;background:#202620; }
@media(max-width:620px) {
  .media-row { grid-template-columns:70px 1fr; }
  .ad-thumb { width:70px; }
}

[hidden] { display:none !important; }
