* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
  --ink: #11142f;
  --muted: #555c74;
  --paper: #f5f6fb;
  --line: #d9deea;
  --blue: #4943d4;
  --lime: #d9fb42;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 "Instrument Sans",
    Inter,
    system-ui,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
a {
  color: var(--blue);
}
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  padding: 9px 16px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
button:hover,
.btn:hover {
  border-color: var(--blue);
}
button:disabled {
  opacity: 0.55;
  cursor: progress;
}
.primary {
  background: var(--lime);
  border-color: var(--lime);
  color: #11142f;
}
.purple {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.top {
  background: var(--ink);
  color: white;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(5vw, calc((100vw - 1170px) / 2));
  gap: 20px;
}
.brand {
  display: inline-block;
  position: relative;
  font-weight: 850;
  letter-spacing: -0.09em;
  font-size: 32px;
  color: white;
  line-height: 1.1;
  text-decoration: none;
}
.brand span {
  color: #c0c2dc;
}
.brand i {
  position: absolute;
  inline-size: 5px;
  block-size: 5px;
  top: 0;
  inset-inline-start: 10px;
  background: var(--lime);
  box-shadow: 0 0 0 4px #d9fb4233;
  border-radius: 50%;
}
.top-actions,
.row,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-actions select,
.top-actions a {
  color: white;
  background: #242844;
  border: 1px solid #4c516a;
  text-decoration: none;
  border-radius: 8px;
  padding: 6px 10px;
}
.top-actions a[hidden] {
  display: none;
}
main,
footer {
  width: min(1170px, 91%);
  margin: auto;
}
main {
  min-height: 72vh;
  padding: clamp(24px, 5vw, 60px) 0 40px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}
h3 {
  font-size: 1.18rem;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  letter-spacing: normal;
  line-height: 1.4;
}
.stack,
.card,
form {
  display: grid;
  gap: 16px;
  align-content: start;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(18px, 3vw, 32px);
}
.lead {
  background: #171b3d;
  color: white;
  padding: clamp(26px, 5vw, 66px);
  border-radius: 26px;
  display: grid;
  gap: 20px;
}
.lead p {
  color: #d3d6ea;
  max-width: 58ch;
}
.lead .btn {
  justify-self: start;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 16px;
}
.desk {
  display: grid;
  grid-template-columns: minmax(175px, 215px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.rail {
  display: grid;
  gap: 5px;
  position: sticky;
  top: 16px;
}
.rail button,
.rail a {
  justify-content: flex-start;
  background: transparent;
  border: 0;
  color: var(--muted);
  text-align: start;
}
.rail button[aria-current="page"] {
  background: #e3e3fa;
  color: #27217c;
}
.rail select {
  margin-bottom: 9px;
}
.caption,
label {
  font-size: 0.91rem;
  color: var(--muted);
  font-weight: 600;
}
label {
  display: grid;
  gap: 5px;
}
input:not([type="checkbox"]),
select,
textarea {
  max-width: 100%;
  min-width: 0;
  border: 1px solid #b8bfd1;
  border-radius: 9px;
  background: #fff;
  padding: 10px;
  color: var(--ink);
}
input[type="color"] {
  min-width: 65px;
  height: 43px;
}
label.check {
  display: flex;
  gap: 8px;
  align-items: center;
}
.muted {
  color: var(--muted);
}
.price {
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: -0.07em;
}
.metric {
  font-size: 2.15rem;
  line-height: 1.2;
  font-weight: 750;
}
.ticket {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 13px 0;
  border-block-end: 1px solid var(--line);
}
.ticket strong {
  font-size: 1.3rem;
}
.state {
  display: inline-block;
  border-radius: 20px;
  background: #edecff;
  padding: 3px 11px;
  color: #342c8e;
  font-size: 0.89rem;
}
.state.ready {
  background: #e4f49a;
  color: #314200;
}
.price-card {
  border-block-start: 5px solid var(--blue);
}
.price-card:last-child {
  border-block-start-color: var(--lime);
}
.banner {
  border-inline-start: 4px solid var(--blue);
  background: #eeedff;
  padding: 12px 16px;
  border-radius: 6px;
}
.guest {
  max-width: 620px;
  margin: auto;
}
.guest-card {
  gap: 20px;
  padding: clamp(22px, 5vw, 46px);
  border-top: 8px solid var(--guest-accent, var(--lime));
}
.guest-card .number {
  font-size: clamp(3.7rem, 11vw, 7rem);
  line-height: 1;
}
.guest-card img,
.logo-preview {
  max-width: 140px;
  max-height: 72px;
  object-fit: contain;
}
.qr svg {
  width: 180px;
  height: 180px;
  display: block;
}
.qr {
  padding: 12px;
  border-radius: 12px;
  background: white;
  display: inline-block;
  justify-self: start;
}
.receipt {
  border: 1px dashed #757e95;
}
.segments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.segments button[aria-pressed="true"] {
  background: #e3e3fa;
  border-color: #817adb;
}
.boardnum {
  font-size: clamp(2.2rem, 8vw, 5.5rem);
  font-weight: 800;
  padding: 15px 22px;
  background: var(--lime);
  color: var(--ink);
  border-radius: 18px;
}
.loader {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--blue);
  margin: 15vh auto;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#feedback:not(:empty) {
  position: fixed;
  z-index: 8;
  bottom: 18px;
  inset-inline: 5%;
  margin: auto;
  width: fit-content;
  max-width: 90%;
  border: 1px solid #545770;
  border-radius: 12px;
  padding: 12px 20px;
  background: var(--ink);
  color: white;
}
footer {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
#output:empty {
  display: none;
}
output {
  word-break: break-word;
}
details > summary {
  cursor: pointer;
  font-weight: 650;
}
.grid > * {
  min-width: 0;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid #938aff;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .desk {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .rail {
    position: static;
    display: flex;
    overflow: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }
  .rail > * {
    flex: none;
  }
  .rail select {
    max-width: 155px;
    margin: 0;
  }
  .top {
    min-height: 58px;
  }
  .branch-heading h1 {
    font-size: 2.15rem;
  }
  .card {
    border-radius: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
  }
}
@media print {
  header,
  footer,
  .rail,
  .noprint,
  #feedback,
  .desk:has(.receipt) .stack > .card:not(.receipt) {
    display: none !important;
  }
  body,
  main,
  .desk {
    display: block !important;
    background: white;
    width: 100%;
    padding: 0;
  }
  .receipt {
    break-inside: avoid;
  }
}
