/* Hyzmat POS landing demos: the light mock screens inside the HZ2 stages (showcase floor, products and
 * owner dashboard; the offline network diagram; the phone modes; the receipt printer). They stay light in
 * both themes (.hz-light maps their colour names). Loops run only in view; reduced motion = the resting look. */

/* SVG colours of the mock screens (they were presentation attributes; the lowest layer keeps every rule above them). */
@layer hzm-attr {
  .hzm-fill-brand-teal {
    fill: var(--hzm-brand-teal);
  }
  .hzm-fill-brand-cyan {
    fill: var(--hzm-brand-cyan);
  }
  .hzm-fill-brand-coral {
    fill: var(--hzm-brand-coral);
  }
  .hzm-fill-brand-amber {
    fill: var(--hzm-brand-amber);
  }
  .hzm-fill-cream {
    fill: var(--hzm-cream);
  }
  .hzm-fill-green {
    fill: var(--hzm-green);
  }
  .hzm-fill-green-mid {
    fill: var(--hzm-green-mid);
  }
  .hzm-fill-ink {
    fill: var(--hzm-ink);
  }
  .hzm-fill-lime {
    fill: var(--hzm-lime);
  }
  .hzm-fill-mint {
    fill: var(--hzm-mint);
  }
  .hzm-fill-paper {
    fill: var(--hzm-paper);
  }
  .hzm-fill-white {
    fill: var(--hzm-white);
  }
  .hzm-fill-zinc-500 {
    fill: var(--hzm-zinc-500);
  }
  .hzm-fill-zinc-800 {
    fill: var(--hzm-zinc-800);
  }
  .hzm-fill-zinc-900 {
    fill: var(--hzm-zinc-900);
  }
  .hzm-stroke-zinc-200 {
    stroke: var(--hzm-zinc-200);
  }
  .hzm-stroke-zinc-300 {
    stroke: var(--hzm-zinc-300);
  }
  .hzm-stroke-zinc-400 {
    stroke: var(--hzm-zinc-400);
  }
  .hzm-stroke-zinc-500 {
    stroke: var(--hzm-zinc-500);
  }
}

.mk {
  font-family: var(--font-ui, "Inter Tight Variable", system-ui, sans-serif);
  font-size: 13px;
  line-height: 1.375;
  color: var(--hzm-zinc-900);
  -webkit-font-smoothing: antialiased;
}

.mk *,
.mk *::before,
.mk *::after {
  box-sizing: border-box;
}

.mk svg {
  display: block;
}

.num,
.m-kbd {
  font-family: var(--font-mono, var(--font-ui, system-ui, sans-serif));
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.ic {
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.m-logo {
  flex: none;
  width: 20px;
  height: 20px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.m-r {
  display: flex;
  align-items: center;
}

.m-f1 {
  flex: 1 1 0%;
  min-width: 0;
}

.m-ml {
  margin-left: auto;
}

.m-ell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-tr {
  text-align: right;
}

.m-tc {
  text-align: center;
}

.m-tg {
  position: relative;
  display: inline-block;
  flex: none;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: var(--hzm-green);
}

.m-tg::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--hzm-white);
}

.m-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding-inline: 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.m-pill.green {
  background: var(--hzm-green-soft);
  color: var(--hzm-ok);
}

.m-pill.amber {
  background: var(--hzm-amber-soft);
  color: var(--hzm-amber);
}

.m-pill.grey {
  background: var(--hzm-zinc-100);
  color: var(--hzm-zinc-600);
}

.m-pill.info {
  background: var(--hzm-blue-soft);
  color: var(--hzm-blue);
}

.m-pill.red {
  background: var(--hzm-red-soft);
  color: var(--hzm-red);
}

.m-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding-inline: 12px;
  border: 1px solid var(--hzm-zinc-200);
  border-radius: 999px;
  background: var(--hzm-white);
  color: var(--hzm-zinc-900);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.m-chip.on {
  border-color: var(--hzm-zinc-900);
  background: var(--hzm-zinc-900);
  color: var(--hzm-white);
}

.m-chip .num {
  color: var(--hzm-zinc-600);
  font-size: 12px;
}

.m-chip.on .num {
  color: var(--hzm-white-a70);
}

.m-kbd {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--hzm-zinc-200);
  color: var(--hzm-zinc-600);
  font-size: 10px;
  font-weight: 500;
}

.m-kbd.on {
  background: var(--hzm-green-soft);
  color: var(--hzm-green);
}

.win-body {
  position: relative;
}

/* Fixed-size design scaled by JS through --sc. */
.sb {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.sb-in {
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(var(--sc, 1));
  transform-origin: 0 0;
}

.sb-compact {
  aspect-ratio: 360 / 640;
}

.sb-compact .sb-in {
  width: 360px;
  height: 640px;
}

.sb-full {
  display: none;
  max-width: 1280px;
  aspect-ratio: 1280 / 720;
}

.sb-full .sb-in {
  width: 1280px;
  height: 720px;
}

@media (min-width: 768px) {
  .sb-compact {
    display: none;
  }

  .sb-full {
    display: block;
  }
}

/* ==== Mock screens: shared roots and compact bar ==== */

.fl,
.db,
.pr {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--hzm-white);
  user-select: none;
}

.cb-bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--hzm-zinc-200);
}

.cb-t {
  font-size: 14px;
  font-weight: 600;
}

.cb-s {
  color: var(--hzm-zinc-600);
  font-size: 11.5px;
}

.cb-menu {
  width: 20px;
  height: 20px;
  color: var(--hzm-zinc-600);
  stroke-width: 1.8;
}

.cb-bar .m-logo,
.fl-head .m-logo,
.of-brand .m-logo {
  width: 28px;
  height: 28px;
}

/* ==== Office shell (sidebar + main) ==== */

.of-shell {
  display: flex;
  flex: 1;
  min-height: 0;
}

.of-side {
  display: flex;
  flex: none;
  flex-direction: column;
  width: 208px;
  border-right: 1px solid var(--hzm-zinc-200);
  background: var(--hzm-zinc-50);
}

.of-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--hzm-zinc-200);
}

.of-shop {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.of-sub {
  color: var(--hzm-zinc-600);
  font-size: 11px;
}

.of-navs {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
}

.of-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding-inline: 10px;
  border-radius: 6px;
  color: var(--hzm-zinc-700);
  font-size: 13px;
}

.of-ic {
  flex: none;
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
}

.of-nav.on {
  background: var(--hzm-green-soft);
  color: var(--hzm-green);
  font-weight: 600;
}

.of-nav.on .of-ic {
  stroke-width: 2.2;
}

.of-back {
  padding: 8px;
  border-top: 1px solid var(--hzm-zinc-200);
}

.of-nav.back {
  height: 36px;
  color: var(--hzm-green);
  font-weight: 500;
}

.of-nav.back .of-ic {
  stroke-width: 2;
}

.of-main {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

/* ==== Floor ==== */

.fl-head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding-inline: 12px;
  border-bottom: 1px solid var(--hzm-zinc-200);
}

.fl-name {
  font-size: 14px;
  font-weight: 600;
}

.fl-segs {
  display: flex;
  margin-left: 16px;
  padding: 3px;
  border-radius: 8px;
  background: var(--hzm-zinc-100);
}

.fl-seg {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding-inline: 12px;
  border-radius: 6px;
  color: var(--hzm-zinc-600);
  font-size: 13px;
  font-weight: 500;
}

.fl-seg.on {
  border: 1px solid var(--hzm-zinc-200);
  background: var(--hzm-white);
  color: var(--hzm-zinc-900);
}

.fl-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  color: var(--hzm-zinc-600);
  font-size: 12.5px;
}

.fl-conn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--hzm-zinc-600);
  font-size: 12.5px;
}

.fl-conn i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hzm-ok);
}

.fl-vr {
  width: 1px;
  height: 16px;
  background: var(--hzm-zinc-200);
}

.fl-ink {
  color: var(--hzm-zinc-900);
}

.fl-time,
.fl-un {
  font-weight: 500;
}

.fl-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--hzm-zinc-200);
}

.fl-av {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hzm-green-soft);
  color: var(--hzm-green);
  font-size: 11px;
  font-weight: 600;
}

.fl-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.fl-left {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  background: var(--hzm-zinc-100);
}

.fl-chips {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 52px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--hzm-zinc-200);
}

.fl-chips.cp {
  height: 44px;
  padding-inline: 12px;
  overflow: hidden;
  background: var(--hzm-zinc-100);
}

.fl-sep {
  width: 1px;
  height: 20px;
  margin-inline: 6px;
  background: var(--hzm-zinc-300);
}

.fl-grid {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
  padding: 16px;
}

.fl-grid.cp {
  flex: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  height: 206px;
  padding: 12px;
  background: var(--hzm-zinc-100);
}

.fl-tc {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid var(--hzm-zinc-200);
  border-radius: 8px;
  background: var(--hzm-white);
}

.fl-tc.cp {
  padding: 10px 12px;
}

.fl-tc > .m-r {
  gap: 8px;
}

.fl-ring {
  position: absolute;
  inset: -1px;
  border: 2px solid var(--hzm-green);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
}

.fl-ring.is-on {
  opacity: 1;
}

.fl-id {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.fl-tc.cp .fl-id {
  font-size: 15px;
}

.fl-fresh {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--hzm-green);
  color: var(--hzm-white);
  font-size: 10.5px;
  font-weight: 600;
}

.fl-dot {
  display: block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.fl-dot.late {
  background: var(--hzm-amber);
}

.fl-dot.open {
  background: var(--hzm-ok);
}

.fl-dot.billed {
  background: var(--hzm-blue);
}

.fl-sum {
  margin-top: auto;
  font-size: 22px;
  font-weight: 600;
}

.fl-tc.cp .fl-sum {
  font-size: 18px;
}

.fl-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--hzm-zinc-600);
  font-size: 12px;
}

.fl-tc.cp .fl-meta {
  font-size: 11px;
}

.fl-meta .late {
  color: var(--hzm-amber);
  font-weight: 600;
}

.fl-bill {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  width: 372px;
  border-left: 1px solid var(--hzm-zinc-200);
  background: var(--hzm-white);
}

.fl-bill.cp {
  flex: 1;
  width: auto;
  min-height: 0;
  border-top: 1px solid var(--hzm-zinc-200);
  border-left: 0;
}

.fl-none {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-inline: 32px;
  text-align: center;
}

.fl-none-ic {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: var(--hzm-zinc-400);
}

.fl-none-t {
  font-size: 15px;
  font-weight: 600;
}

.fl-none-s {
  margin-top: 4px;
  color: var(--hzm-zinc-600);
  font-size: 12.5px;
}

.fl-none-p {
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--hzm-zinc-100);
  color: var(--hzm-zinc-600);
  font-size: 12px;
}

.fl-sel {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.fl-bh {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--hzm-zinc-200);
}

.fl-bill.cp .fl-bh {
  height: 48px;
}

.fl-bt {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.fl-bill.cp .fl-bt {
  font-size: 14px;
}

.fl-bs {
  color: var(--hzm-zinc-600);
  font-size: 11.5px;
}

.fl-lines {
  flex: 1;
  min-height: 0;
  padding: 6px 16px;
  overflow: hidden;
}

.fl-bill.cp .fl-lines {
  padding-block: 2px;
}

.fl-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 10px;
  border-bottom: 1px dashed var(--hzm-zinc-200);
}

.fl-bill.cp .fl-line {
  padding-block: 6px;
}

.fl-line.new {
  margin-inline: -8px;
  padding-inline: 8px;
  border-color: transparent;
  border-radius: 6px;
  background: var(--hzm-green-soft);
}

.fl-ln {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
}

.fl-tag {
  color: var(--hzm-green);
  font-size: 10.5px;
  font-weight: 600;
}

.fl-lq {
  color: var(--hzm-zinc-600);
  font-size: 12px;
}

.fl-lr {
  gap: 12px;
  align-items: baseline;
}

.fl-lr .fl-lq {
  font-size: 11.5px;
}

.fl-lp {
  font-size: 13.5px;
  font-weight: 500;
}

.fl-bf {
  flex: none;
  padding: 16px;
  border-top: 1px solid var(--hzm-zinc-200);
}

.fl-bill.cp .fl-bf {
  padding-block: 12px;
}

.fl-bc {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--hzm-zinc-600);
  font-size: 12px;
}

.fl-bsum {
  margin-top: 4px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.fl-bill.cp .fl-bsum {
  font-size: 30px;
}

.fl-pay {
  display: grid;
  place-items: center;
  height: 48px;
  margin-top: 14px;
  border-radius: 8px;
  background: var(--hzm-green);
  color: var(--hzm-white);
  font-size: 15px;
  font-weight: 600;
}

.fl-bill.cp .fl-pay {
  height: 40px;
  font-size: 14px;
}

/* ==== Dashboard ==== */

.db-top {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding-inline: 24px;
  border-bottom: 1px solid var(--hzm-zinc-200);
}

.db-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.db-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
}

.db-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding-inline: 12px;
  border: 1px solid var(--hzm-zinc-200);
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
}

.db-btn-ic {
  width: 14px;
  height: 14px;
  color: var(--hzm-zinc-600);
  stroke-width: 1.8;
}

.db-grid {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr 310px;
  grid-template-rows: 104px 1fr 196px;
  gap: 12px;
  min-height: 0;
  padding: 16px;
  background: var(--hzm-zinc-100);
}

.db-strip {
  display: flex;
  grid-column: 1 / -1;
  border: 1px solid var(--hzm-zinc-200);
  border-radius: 8px;
  background: var(--hzm-white);
}

.db-strip-big {
  display: flex;
  flex: none;
  align-items: center;
  width: 330px;
  padding-inline: 20px;
}

.db-k {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-inline: 20px;
  border-left: 1px solid var(--hzm-zinc-200);
}

.db-k-l {
  color: var(--hzm-zinc-600);
  font-size: 12px;
}

.db-k-v {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}

.db-k-s {
  margin-top: 6px;
  color: var(--hzm-zinc-500);
  font-size: 11.5px;
}

.db-big-l {
  color: var(--hzm-zinc-600);
  font-size: 12.5px;
  font-weight: 500;
}

.db-big-v {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.db-big-n {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.db-big-n.cp {
  font-size: 34px;
}

.db-big-c {
  color: var(--hzm-zinc-600);
  font-size: 15px;
  font-weight: 600;
}

.db-big-d {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--hzm-zinc-600);
  font-size: 11.5px;
}

.db-up {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--hzm-green-soft);
  color: var(--hzm-ok);
  font-weight: 600;
}

.db-up-ic {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

.db-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--hzm-zinc-200);
  border-radius: 8px;
  background: var(--hzm-white);
}

.db-card-h {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding-inline: 16px;
}

.db-card-t {
  font-size: 13px;
  font-weight: 600;
}

.db-card-b {
  flex: 1;
  min-height: 0;
  padding: 0 16px 12px;
}

.db-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--hzm-zinc-600);
  font-size: 11.5px;
}

.db-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sq {
  display: block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--hzm-green);
}

.ln {
  display: block;
  flex: none;
  width: 14px;
  height: 1.5px;
  background: var(--hzm-zinc-500);
}

.pc-g1 {
  background: var(--hzm-green);
}

.pc-g2 {
  background: var(--hzm-green-mid);
}

.pc-am {
  background: var(--hzm-amber);
}

.db-badge {
  padding-inline: 8px;
  border-radius: 999px;
  background: var(--hzm-amber-soft);
  color: var(--hzm-amber);
  font-size: 11.5px;
  font-weight: 600;
}

.db-alerts {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.db-al {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px solid var(--hzm-zinc-100);
}

.db-al-i {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.db-al-i.amber {
  background: var(--hzm-amber-soft);
  color: var(--hzm-amber);
}

.db-al-i.red {
  background: var(--hzm-red-soft);
  color: var(--hzm-red);
}

.db-al-ic {
  width: 16px;
  height: 16px;
}

.db-al-n {
  font-size: 13px;
  font-weight: 600;
}

.db-al-t {
  font-size: 12px;
}

.db-al-t.amber {
  color: var(--hzm-amber);
}

.db-al-t.red {
  color: var(--hzm-red);
}

.db-go {
  margin-top: auto;
  color: var(--hzm-green);
  font-size: 12.5px;
  font-weight: 500;
}

.db-row3 {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 0;
}

.db-hint {
  color: var(--hzm-zinc-500);
  font-size: 11.5px;
}

.db-trs {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.db-tr {
  display: grid;
  grid-template-columns: 16px 92px 1fr 64px 70px;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
}

.db-tr-i {
  color: var(--hzm-zinc-500);
}

.db-tr-n {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.db-tr-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--hzm-zinc-100);
}

.db-tr-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--hzm-green);
  transform-origin: left;
}

.db-tr-q {
  color: var(--hzm-zinc-600);
  text-align: right;
}

.db-tr-s {
  font-weight: 500;
  text-align: right;
}

.db-pt {
  font-size: 12.5px;
  font-weight: 600;
}

.db-stack {
  display: flex;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
}

.db-stack i {
  display: block;
  flex: none;
  height: 100%;
  border-right: 2px solid var(--hzm-white);
  transform-origin: left;
}

.db-stack i:last-child {
  border-right: 0;
}

.db-prs {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.db-pr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 7px;
  border-bottom: 1px solid var(--hzm-zinc-100);
  font-size: 12.5px;
}

.db-pr:last-child {
  border-bottom: 0;
}

.db-pr-l {
  font-weight: 500;
}

.db-pr-p {
  width: 56px;
  color: var(--hzm-zinc-600);
  text-align: right;
}

.db-pr-v {
  width: 80px;
  font-weight: 500;
  text-align: right;
}

.hc {
  overflow: visible;
}

.db-lg {
  margin-bottom: 8px;
}

/* Compact dashboard */

.db-cbody {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 12px;
  background: var(--hzm-zinc-100);
}

.db-big-card {
  padding: 14px;
  border: 1px solid var(--hzm-zinc-200);
  border-radius: 8px;
  background: var(--hzm-white);
}

.db-kgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.db-kc {
  padding: 10px 12px;
  border: 1px solid var(--hzm-zinc-200);
  border-radius: 8px;
  background: var(--hzm-white);
}

.db-kc-l,
.db-kc-s {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.db-kc-l {
  color: var(--hzm-zinc-600);
  font-size: 11.5px;
}

.db-kc-v {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 600;
}

.db-kc-s {
  color: var(--hzm-zinc-500);
  font-size: 11px;
}

.db-card.grow {
  flex: 1;
}

/* ==== Products ==== */

.pr-top {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding-inline: 24px;
  border-bottom: 1px solid var(--hzm-zinc-200);
}

.pr-n {
  margin-left: 4px;
  color: var(--hzm-zinc-500);
  font-size: 12.5px;
}

.pr-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding-inline: 10px;
  overflow: hidden;
  border: 1px solid var(--hzm-zinc-200);
  border-radius: 6px;
  background: var(--hzm-white);
  color: var(--hzm-zinc-500);
  font-size: 12.5px;
  white-space: nowrap;
}

.pr-search-ic {
  width: 14px;
  height: 14px;
}

.pr-s-d {
  width: 280px;
  margin-left: auto;
}

.pr-add {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding-inline: 12px;
  border-radius: 6px;
  background: var(--hzm-green);
  color: var(--hzm-white);
  font-size: 12.5px;
  font-weight: 600;
}

.pr-add-ic {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.pr-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 16px;
  background: var(--hzm-zinc-100);
}

.pr-filters {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.pr-sel {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin-left: auto;
  padding-inline: 12px;
  border: 1px solid var(--hzm-zinc-200);
  border-radius: 6px;
  background: var(--hzm-white);
  font-size: 12.5px;
}

.pr-hint {
  color: var(--hzm-zinc-500);
}

.pr-medium {
  font-weight: 500;
}

.pr-sel-ic {
  width: 14px;
  height: 14px;
  color: var(--hzm-zinc-500);
}

.pr-table {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--hzm-zinc-200);
  border-radius: 8px;
  background: var(--hzm-white);
}

.pr-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 104px 104px 128px 104px 84px;
  gap: 16px;
  align-items: center;
  height: 45px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--hzm-zinc-100);
  font-size: 13px;
}

.pr-row:last-child {
  border-bottom: 0;
}

.pr-th {
  height: 36px;
  border-bottom-color: var(--hzm-zinc-200);
  background: var(--hzm-zinc-50);
  color: var(--hzm-zinc-600);
  font-size: 12px;
  font-weight: 500;
}

.pr-r {
  position: relative;
}

.pr-n1 {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-mute {
  color: var(--hzm-zinc-600);
}

.pr-c {
  display: flex;
  justify-content: center;
}

.pr-st-w {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.pr-st {
  display: inline-block;
  color: var(--hzm-zinc-900);
  font-size: 13px;
  font-weight: 600;
}

.pr-st.cp {
  font-size: 12.5px;
}

.pr-st.warn {
  color: var(--hzm-amber);
}

.pr-st.bad {
  color: var(--hzm-red);
}

.pr-foot {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--hzm-zinc-500);
  font-size: 12px;
}

.pr-flash {
  position: absolute;
  inset: 0;
  background: var(--hzm-green-soft);
  opacity: 0;
  pointer-events: none;
}

.pr-flash.is-on {
  opacity: 1;
}

.pr-toast {
  position: absolute;
  right: 24px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--hzm-zinc-900);
  color: var(--hzm-white);
}

.pr-toast.cp {
  right: 12px;
  bottom: 12px;
  left: 12px;
}

.pr-toast-i {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hzm-ok);
}

.pr-toast-ic {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

.pr-toast-t {
  font-size: 13px;
  font-weight: 600;
}

.pr-toast-s {
  color: var(--hzm-zinc-400);
  font-size: 12px;
}

.pr-toast .pr-toast-s .num {
  color: var(--hzm-mint);
}

/* Compact products */

.pr-cwrap {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.pr-ctop {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 0;
}

.pr-plus {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--hzm-green);
  color: var(--hzm-white);
}

.pr-plus-ic {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

.pr-cchips {
  display: flex;
  flex: none;
  gap: 6px;
  padding: 10px 12px;
  overflow: hidden;
}

.pr-clist {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid var(--hzm-zinc-200);
}

.pr-crow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--hzm-zinc-100);
}

.pr-cname {
  position: relative;
  min-width: 0;
}

.pr-cn {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-cg {
  color: var(--hzm-zinc-500);
  font-size: 11.5px;
}

.pr-cright {
  position: relative;
  text-align: right;
}

.pr-cp {
  font-size: 13px;
  font-weight: 500;
}

/* ==== Mock screen motion (static final state above; reduced motion keeps it) ==== */

@media (prefers-reduced-motion: no-preference) {
  @keyframes mk-pop {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
  }

  @keyframes mk-slide-x {
    from {
      opacity: 0;
      transform: translateX(8px);
    }
  }

  @keyframes mk-drop {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
  }

  @keyframes mk-rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }

  @keyframes mk-fade {
    from {
      opacity: 0;
    }
  }

  .fl-ring {
    transition: opacity 200ms;
  }

  .fl-fresh {
    animation: mk-pop 250ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .fl-sel {
    animation: mk-slide-x 250ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .fl-none {
    animation: mk-fade 200ms;
  }

  .fl-line.new {
    animation: mk-drop 300ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .pr-flash {
    transition: opacity 800ms;
  }

  .pr-flash.is-on {
    transition-duration: 200ms;
  }

  .pr-toast {
    animation: mk-rise 250ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .pr-st[data-show] {
    animation: mk-rise 250ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Dashboard entrance, replayed whenever .db gets .is-in. */
  .hb {
    transform-box: fill-box;
    transform-origin: 50% 100%;
  }

  .hl {
    stroke-dasharray: 1;
  }
}

/* ==== Width helpers (percent), used by the dashboard bars ==== */

.w7 {
  width: 7%;
}
.w27 {
  width: 27%;
}
.w38 {
  width: 38%;
}
.w54 {
  width: 54%;
}
.w59 {
  width: 59%;
}
.w64 {
  width: 64%;
}
.w100 {
  width: 100%;
}

/* Receipt: printer, paper feeding out of the slot */
.rc {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
  width: 100%;
  max-width: 300px;
  font-family: var(--font-ui, system-ui, sans-serif);
}

.rc-printer {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: var(--hzm-zinc-900);
  box-shadow: 0 10px 24px -12px var(--hzm-zinc-900-a50);
}

.rc-led {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--hzm-mint);
}

.rc-lbl {
  position: absolute;
  top: 12px;
  left: 28px;
  color: var(--hzm-zinc-400);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 14px;
  text-transform: uppercase;
}

.rc-slot {
  position: absolute;
  right: 20px;
  bottom: 8px;
  left: 20px;
  height: 3px;
  border-radius: 999px;
  background: var(--hzm-black);
}

.rc-clip {
  width: 236px;
  max-width: 100%;
  margin-top: -10px;
  padding-top: 2px;
  overflow: hidden;
}

.rc-paper {
  filter: drop-shadow(0 6px 10px var(--hzm-zinc-900-a12));
}

.rc-sheet {
  padding: 20px 16px 12px;
  background: var(--hzm-paper);
  color: var(--hzm-zinc-900);
  font-family: var(--font-mono, ui-monospace, "SF Mono", Menlo, monospace);
  font-size: 10.5px;
  line-height: 15px;
}

.rc-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rc-logo {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
}

.rc-shop {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.rc-g {
  color: var(--hzm-zinc-600);
}

.rc-m4 {
  margin-top: 4px;
}

.rc-m2 {
  margin-top: 2px;
}

.rc-dash {
  margin: 8px 0;
  border-top: 1px dashed var(--hzm-zinc-900-a40);
}

.rc-lines > div + div {
  margin-top: 4px;
}

.rc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.rc-q {
  color: var(--hzm-zinc-600);
  white-space: pre;
}

.rc-row.rc-total {
  color: var(--hzm-zinc-900);
  font-size: 12px;
  font-weight: 700;
}

.rc-code {
  margin-top: 12px;
}

.rc-bars {
  display: block;
  width: 150px;
  height: 28px;
  margin-inline: auto;
}

.rc-bye {
  margin-top: 8px;
  font-weight: 600;
  text-align: center;
}

.rc-torn {
  display: block;
  width: 100%;
  height: 8px;
}

/* Motion: hover lift, printer feed, LED and caret blink, key presses, row entrance */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rc-blink {
    0%,
    100% {
      opacity: 1;
    }

    50% {
      opacity: 0.25;
    }
  }

  .rc-paper {
    transition:
      transform 2.2s cubic-bezier(0.45, 0, 0.55, 1),
      opacity 0.15s;
  }

  .rc[data-s="0"] .rc-paper {
    opacity: 0;
    transform: translateY(-100%);
    transition: none;
  }

  .rc-led.is-on {
    animation: rc-blink 0.5s 4;
  }
}

/* ---------- Network card (always a light card: the diagram colours are fixed) ---------- */
.nw {
  --nw-pop: 0 0 0 1px var(--hzm-night-a8), 0 12px 32px -12px var(--hzm-night-a22);
  padding: 12px;
  border-radius: 24px;
  background: var(--hzm-white);
  box-shadow: var(--land-shadow-card);
  color: var(--hzm-ink);
  font-family: var(--font-ui);
  line-height: 1.5;
}

@media (min-width: 640px) {
  .nw {
    padding: 20px;
  }
}

@media (min-width: 1024px) {
  .nw {
    padding: 32px;
  }
}

.nw-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.nw-svg.m {
  max-width: 368px;
  margin-inline: auto;
}

.nw-svg foreignObject {
  overflow: visible;
}

@media (min-width: 1024px) {
  .nw-m {
    display: none;
  }
}

/* online / offline pairs: both are always laid out, only opacity changes */
.nw-off {
  opacity: 0;
}

.nw-pill-t .nw-off {
  color: var(--hzm-muted);
}

.nw[data-s="2"] .nw-on {
  opacity: 0;
}

.nw[data-s="2"] .nw-off {
  opacity: 1;
}

/* lines */
.nw-box {
  fill: none;
  stroke: var(--hzm-night-a22);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}

.nw-base path {
  stroke: var(--hzm-night-a20);
  stroke-width: 1.5;
}

.nw-link {
  stroke-width: 1.5;
}

.nw-link.nw-on {
  stroke: var(--hzm-green-a55);
}

.nw-link.nw-off {
  stroke: var(--hzm-zinc-400);
  stroke-dasharray: 4 5;
}

.nw-sync {
  stroke: var(--hzm-green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}

.nw-dot {
  fill: var(--hzm-green);
  stroke: var(--hzm-white);
  stroke-width: 4;
  paint-order: stroke;
}

@media (prefers-reduced-motion: reduce) {
  .nw-dot {
    display: none;
  }
}

/* node: visual on top, label below */
.nw-n {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.nw-l {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--hzm-white);
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.nw-l.wrap {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 6px;
  white-space: normal;
}

.nw-g6 {
  margin-top: 6px;
}

.nw-g8 {
  margin-top: 8px;
}

.nw-g28 {
  margin-top: 28px;
}

.nw-l1 {
  color: var(--hzm-ink);
  font-size: 12px;
  font-weight: 500;
}

.nw-l2 {
  margin-top: 2px;
  color: var(--hzm-muted);
  font-size: 11px;
}

.nw-wifi {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--hzm-muted);
  font-size: 12px;
  font-weight: 500;
}

.ic.nw-wifi-ic {
  width: 14px;
  height: 14px;
}

.nw-every {
  color: var(--hzm-green);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.nw-every.r {
  text-align: right;
}

.nw[data-s="2"] .nw-every {
  opacity: 0.4;
}

/* main monitor with the mini till */
.nw-mon {
  position: relative;
}

.nw-mon.m {
  width: 196px;
  height: 124px;
}

.nw-mon-b {
  width: 100%;
  height: 100%;
  padding: 5px;
  border-radius: 9px;
  background: var(--hzm-ink);
  box-shadow: var(--nw-pop);
}

.nw-mon-s1 {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 32px;
  height: 14px;
  background: var(--hzm-zinc-800);
  transform: translateX(-50%);
}

.nw-mon-s2 {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 96px;
  height: 6px;
  margin-top: 14px;
  border-radius: 9999px;
  background: var(--hzm-zinc-800);
  transform: translateX(-50%);
}

.nw-mt {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 5px;
  background: var(--hzm-white);
  color: var(--hzm-zinc-900);
  font-family: var(--font-ui);
}

.nw-mt-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: 22px;
  padding-inline: 8px;
  border-bottom: 1px solid var(--hzm-zinc-200);
  background: var(--hzm-zinc-100);
  font-size: 10px;
}

.nw-mt-no {
  color: var(--hzm-green);
  font-weight: 600;
}

.nw-mt-ch {
  color: var(--hzm-zinc-600);
}

.nw-mt-ch b {
  color: var(--hzm-zinc-900);
  font-weight: 600;
}

.nw-mt-b {
  display: flex;
  flex: 1;
  min-height: 0;
}

.nw-mt-l {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 6px 8px;
}

.nw-mt-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nw-ln {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  font-size: 10px;
}

.nw-ln span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nw-ln span:last-child {
  flex-shrink: 0;
}

.nw-mt-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid var(--hzm-zinc-200);
}

.nw-mt-sum span {
  color: var(--hzm-zinc-600);
  font-size: 10px;
}

.nw-mt-sum b {
  font-size: 11px;
  font-weight: 600;
}

.nw-mt-r {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 100px;
  padding: 8px;
  background: var(--hzm-green-deep);
}

.nw-mt.cp .nw-mt-r {
  width: 86px;
}

.nw-mt-r1 {
  color: var(--hzm-sage);
  font-size: 10px;
  line-height: 1.25;
}

.nw-mt-tot {
  margin-top: 2px;
  color: var(--hzm-mint);
  font-size: 14px;
  font-weight: 600;
}

.nw-mt.cp .nw-mt-tot {
  font-size: 12px;
}

.nw-mt-plus {
  display: block;
  height: 14px;
  color: var(--hzm-mint);
  font-size: 10px;
  line-height: 14px;
}

.nw-mt-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  margin-top: auto;
  border-radius: 4px;
  background: var(--hzm-mint);
  color: var(--hzm-green-deep);
  font-size: 10px;
  font-weight: 600;
}

/* staff phone, printer */
.nw-sp {
  display: flex;
  width: 42px;
  height: 76px;
  padding: 3px;
  border-radius: 10px;
  background: var(--hzm-ink);
  box-shadow: var(--nw-pop);
}

.nw-sp-s {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--hzm-green-soft);
  color: var(--hzm-green);
}

.ic.nw-sp-ic {
  width: 18px;
  height: 18px;
}

.nw-pr {
  display: block;
  width: 64px;
  height: 56px;
}

/* cloud node: both icons and the ring share one grid cell */
.nw-cl {
  display: grid;
  place-items: center;
  width: 84px;
  height: 60px;
  border-radius: 16px;
  background: var(--hzm-white);
  box-shadow: var(--nw-pop);
}

.nw[data-s="2"] .nw-cl {
  opacity: 0.6;
}

.nw-cl > * {
  grid-area: 1 / 1;
}

.ic.nw-cl-ic {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
}

.nw-cl-ic.nw-on {
  color: var(--hzm-green);
}

.nw-cl-ic.nw-off {
  color: var(--hzm-zinc-400);
}

.nw-ring {
  align-self: stretch;
  justify-self: stretch;
  border-radius: 16px;
  box-shadow: 0 0 0 2px var(--hzm-green);
  opacity: 0;
}

/* owner phone */
.nw-op {
  width: 76px;
  height: 140px;
  padding: 3px;
  border-radius: 13px;
  background: var(--hzm-ink);
  box-shadow: var(--nw-pop);
}

.nw[data-s="2"] .nw-op {
  opacity: 0.55;
}

.nw-op-s {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 4px;
  border-radius: 10px;
  background: var(--hzm-white);
  color: var(--hzm-zinc-900);
}

.nw-op-t {
  position: relative;
  padding: 4px 6px 6px;
  border-radius: 7px;
  background: var(--hzm-green-deep);
}

.nw-op-l {
  display: block;
  color: var(--hzm-sage);
  font-size: 10px;
}

.nw-op-t b {
  display: block;
  color: var(--hzm-mint);
  font-size: 10.5px;
  font-weight: 600;
}

.nw-op-c {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-inline: 2px;
  font-size: 10px;
}

.nw-op-c span {
  color: var(--hzm-zinc-600);
}

.nw-op-c b {
  font-weight: 600;
}

.nw-op-bars {
  display: block;
  width: 100%;
  height: auto;
  margin-top: auto;
}

/* internet pill */
.nw-pillbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.nw-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 6px 0 10px;
  border-radius: 9999px;
  background: var(--hzm-white);
  box-shadow: var(--nw-pop);
  color: var(--hzm-ink);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.nw-pill-w {
  display: grid;
  width: 14px;
  height: 14px;
}

.nw-pill-w > *,
.nw-pill-t > * {
  grid-area: 1 / 1;
}

.ic.nw-pill-ic {
  width: 14px;
  height: 14px;
}

.nw-pill-ic.nw-on {
  color: var(--hzm-green);
}

.nw-pill-ic.nw-off {
  color: var(--hzm-zinc-400);
}

.nw-pill-t {
  display: grid;
  text-align: center;
}

.nw-sw {
  position: relative;
  width: 28px;
  height: 16px;
  overflow: hidden;
  border-radius: 9999px;
  background: var(--hzm-green);
}

.nw-sw i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: var(--hzm-white);
  box-shadow: 0 1px 2px 0 var(--hzm-black-a5);
  transform: translateX(12px);
}

.nw[data-s="2"] .nw-sw {
  background: var(--hzm-zinc-300);
}

.nw[data-s="2"] .nw-sw i {
  transform: none;
}

/* status line */
.nw-state {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hzm-night-a12);
  color: var(--hzm-muted);
  font-size: 14px;
}

@media (min-width: 640px) {
  .nw-state {
    margin-top: 16px;
    padding-top: 16px;
  }
}

.nw-dotl {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--hzm-teal);
}

.nw[data-s="2"] .nw-dotl {
  background: var(--hzm-zinc-400);
}

.nw-st-t {
  min-width: 0;
}

/* ---------- Phone frame ---------- */
.ph {
  position: relative;
  width: 280px;
  max-width: 100%;
  padding: 7px;
  border-radius: 2.4rem;
  background: var(--hzm-ink);
  box-shadow: var(--land-shadow-frame);
  line-height: 1.5;
}

.ph-body {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border-radius: 2rem;
  background: var(--hzm-white);
  color: var(--hzm-ink);
  font-family: var(--font-ui);
}

.ph-sb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: 28px;
  padding-inline: 20px;
  font-size: 10px;
  font-weight: 600;
}

.ph-cam {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--hzm-ink);
  transform: translateX(-50%);
}

.ph-sbr {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ph-sbr svg {
  height: 10px;
}

.ph-sbr svg:first-child {
  width: 14px;
}

.ph-sbr svg:last-child {
  width: 20px;
}

.ph-screens {
  position: relative;
  flex: 1;
  min-height: 0;
}

.ph-s {
  position: absolute;
  inset: 0;
}

/* ---------- Phone screens: shared ---------- */
.ps {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--hzm-white);
  color: var(--hzm-zinc-900);
  font-family: var(--font-ui);
}

.ps-bar {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  height: 44px;
  padding-inline: 10px;
  border-bottom: 1px solid var(--hzm-zinc-200);
}

.ic.ps-bar-ic {
  width: 18px;
  height: 18px;
  color: var(--hzm-zinc-600);
}

.ps-bar-t {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* ---------- Waiter ---------- */
.w-cats {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
  padding: 10px 12px;
}

.w-cat {
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--hzm-zinc-100);
  color: var(--hzm-zinc-600);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.w-cat.on {
  background: var(--hzm-zinc-900);
  color: var(--hzm-white);
}

.w-list {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.w-g {
  padding: 8px 14px 4px;
  color: var(--hzm-zinc-600);
  font-size: 10.5px;
  font-weight: 600;
}

.w-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
}

.w-hi {
  position: absolute;
  inset: 2px 6px;
  border-radius: 8px;
  background: var(--hzm-green-soft);
}

.w-in {
  position: relative;
  flex: 1;
  min-width: 0;
}

.w-n {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

.w-p {
  margin-top: 2px;
  color: var(--hzm-zinc-600);
  font-size: 11.5px;
}

.w-q {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding-inline: 6px;
  border-radius: 9999px;
  background: var(--hzm-green);
  color: var(--hzm-white);
  font-size: 11px;
  font-weight: 600;
}

.w-plus {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--hzm-green-soft);
  color: var(--hzm-green);
}

.w-plus.is-on {
  background: var(--hzm-green);
  color: var(--hzm-white);
  transform: scale(0.9);
}

.ic.w-plus-ic {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

.w-foot {
  flex-shrink: 0;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--hzm-zinc-200);
}

.w-tot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--hzm-zinc-600);
  font-size: 12px;
}

.w-sum {
  color: var(--hzm-zinc-900);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.w-send {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--hzm-green);
  color: var(--hzm-white);
  font-size: 14px;
  font-weight: 600;
}

.w-send-a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ic.w-send-ic {
  width: 16px;
  height: 16px;
}

/* ---------- Stock count ---------- */
.sk-count {
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--hzm-zinc-100);
  color: var(--hzm-zinc-600);
  font-size: 11px;
  font-weight: 600;
}

.sk-th,
.sk-row {
  display: grid;
  grid-template-columns: 1fr 54px 46px 46px;
  column-gap: 4px;
}

.sk-th {
  align-items: end;
  flex-shrink: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--hzm-zinc-200);
  background: var(--hzm-zinc-100);
  color: var(--hzm-zinc-600);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.25;
}

.sk-th .r {
  text-align: right;
}

.sk-rows {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.sk-row {
  position: relative;
  align-items: center;
  height: 44px;
  padding-inline: 12px;
  border-bottom: 1px solid var(--hzm-zinc-200);
  font-size: 12.5px;
}

.sk-hi {
  position: absolute;
  inset: 0;
  background: var(--hzm-green-soft);
  opacity: 0;
}

.sk-hi.is-on {
  opacity: 1;
}

.sk-n {
  position: relative;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sk-e {
  position: relative;
  color: var(--hzm-zinc-600);
  text-align: right;
}

.sk-g,
.sk-d {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.sk-val {
  font-weight: 600;
}

.sk-dash {
  color: var(--hzm-zinc-400);
}

.sk-input {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 36px;
  height: 24px;
  padding-inline: 6px;
  border-radius: 6px;
  background: var(--hzm-white);
  box-shadow: 0 0 0 1.5px var(--hzm-green);
  font-weight: 600;
}

.sk-caret {
  display: block;
  width: 1px;
  height: 14px;
  margin-left: 1px;
  background: var(--hzm-green);
}

.sk-badge {
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--hzm-zinc-400);
  font-weight: 600;
}

.sk-badge.neg {
  background: var(--hzm-red-a10);
  color: var(--hzm-red);
}

.sk-badge.pos {
  background: var(--hzm-amber-a10);
  color: var(--hzm-amber);
}

.sk-badge.zero {
  color: var(--hzm-zinc-600);
}

.sk-foot {
  flex-shrink: 0;
  padding: 8px 12px 12px;
}

.sk-hint {
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--hzm-zinc-100);
  color: var(--hzm-zinc-600);
  font-size: 11.5px;
}

.sk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 12px;
  background: var(--hzm-green);
  color: var(--hzm-white);
  font-size: 14px;
  font-weight: 600;
}

.ic.sk-btn-ic {
  width: 18px;
  height: 18px;
}

/* ---------- Scanner (dark screen) ---------- */
.ps.sn {
  background: var(--hzm-ink);
  color: var(--hzm-white);
}

.sn-bar {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  height: 44px;
  padding-inline: 12px;
}

.ic.sn-x {
  width: 18px;
  height: 18px;
  color: var(--hzm-white-a70);
}

.sn-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin-inline: auto;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--hzm-white-a10);
  color: var(--hzm-white-a85);
  font-size: 11px;
}

.ps.sn .sn-chip i {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--hzm-mint);
}

.sn-cam {
  position: relative;
  flex: 1;
  min-height: 0;
}

.sn-shelf {
  position: absolute;
  top: 50%;
  right: 24px;
  left: 24px;
  height: 150px;
  border-radius: 16px;
  background: var(--hzm-ink-soft);
  transform: translateY(-50%);
}

.sn-label {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 12px 6px;
  border-radius: 8px;
  background: var(--hzm-zinc-100);
  transform: translate(-50%, -50%) rotate(-2deg);
}

.sn-bars {
  display: block;
  width: 124px;
  height: 52px;
}

.sn-label .sn-code {
  margin-top: 4px;
  color: var(--hzm-zinc-900);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.sn-find {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 196px;
  height: 128px;
  transform: translate(-50%, -50%);
}

.sn-c {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 0 solid var(--hzm-mint);
}

.sn-c.tl {
  top: 0;
  left: 0;
  border-top-left-radius: 12px;
  border-top-width: 3px;
  border-left-width: 3px;
}

.sn-c.tr {
  top: 0;
  right: 0;
  border-top-right-radius: 12px;
  border-top-width: 3px;
  border-right-width: 3px;
}

.sn-c.bl {
  bottom: 0;
  left: 0;
  border-bottom-left-radius: 12px;
  border-bottom-width: 3px;
  border-left-width: 3px;
}

.sn-c.br {
  right: 0;
  bottom: 0;
  border-bottom-right-radius: 12px;
  border-bottom-width: 3px;
  border-right-width: 3px;
}

.sn-line {
  position: absolute;
  top: 8px;
  right: 12px;
  left: 12px;
  height: 2px;
  border-radius: 9999px;
  background: var(--hzm-mint);
  box-shadow: 0 0 10px 2px var(--hzm-mint-a55);
}

.sn[data-s="1"] .sn-line {
  opacity: 0;
  transform: translateY(56px);
}

.sn-ok {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: var(--hzm-mint-a15);
  opacity: 0;
}

.sn-toast {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--hzm-white);
  box-shadow:
    0 10px 15px -3px var(--hzm-black-a10),
    0 4px 6px -4px var(--hzm-black-a10);
  color: var(--hzm-zinc-900);
}

.sn-toast-i {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: var(--hzm-green);
  color: var(--hzm-white);
}

.ic.sn-toast-ic {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
}

.sn-toast-t {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}

.sn-toast-q {
  color: var(--hzm-green);
  font-size: 12px;
  font-weight: 600;
}

.sn-foot {
  flex-shrink: 0;
  padding: 8px 16px 16px;
}

.sn-hint {
  margin-bottom: 12px;
  color: var(--hzm-white-a60);
  font-size: 11.5px;
  text-align: center;
}

.sn-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.sn-btns > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--hzm-white-a10);
}

.ic.sn-bi {
  width: 18px;
  height: 18px;
  color: var(--hzm-white-a80);
}

/* ---------- Motion (everything decorative lives here; reduced motion = the resting look above) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes dv-sync {
    0% {
      stroke-dashoffset: 1;
      opacity: 1;
      animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    }

    64% {
      stroke-dashoffset: 0;
      opacity: 1;
      animation-timing-function: linear;
    }

    70% {
      opacity: 1;
    }

    100% {
      stroke-dashoffset: 0;
      opacity: 0;
    }
  }

  @keyframes dv-ring {
    from {
      opacity: 0.9;
      transform: scale(1);
    }

    to {
      opacity: 0;
      transform: scale(1.3);
    }
  }

  @keyframes dv-plus {
    0% {
      opacity: 0;
      transform: translateY(4px);
    }

    15% {
      opacity: 1;
      transform: translateY(0);
    }

    70% {
      opacity: 1;
    }

    100% {
      opacity: 0;
    }
  }

  @keyframes dv-rise {
    from {
      opacity: 0;
      transform: translateY(4px);
    }
  }

  @keyframes dv-rise-lg {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }

  @keyframes dv-pop {
    from {
      opacity: 0;
      transform: scale(0.6);
    }
  }

  @keyframes dv-pop-soft {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
  }

  @keyframes dv-fade {
    from {
      opacity: 0;
    }
  }

  @keyframes dv-scan {
    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(112px);
    }
  }

  @keyframes dv-flash {
    0%,
    100% {
      opacity: 0;
    }

    50% {
      opacity: 1;
    }
  }

  @keyframes dv-caret {
    50% {
      opacity: 0.5;
    }
  }

  /* network: fades between online and offline, sync stroke, ring, re-played "+43.00" */
  .nw-on,
  .nw-off,
  .nw-cl,
  .nw-op,
  .nw-every {
    transition: opacity 0.3s;
  }

  .nw-link,
  .nw-op,
  .nw-every {
    transition-duration: 0.5s;
  }

  .nw-sw {
    transition: background-color 0.3s;
  }

  .nw-sw i {
    transition: transform 0.3s ease-out;
  }

  .nw[data-s="1"] .nw-sync,
  .nw[data-s="3"] .nw-sync {
    animation: dv-sync 1.4s both;
  }

  .nw[data-s="1"] .nw-ring,
  .nw[data-s="3"] .nw-ring {
    animation: dv-ring 1s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .nw-mt-plus.is-pop {
    animation: dv-plus 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  /* phone modes */

  .ph-body {
    transition:
      background-color 0.3s,
      color 0.3s;
  }

  /* waiter */
  .w-hi,
  .sk-hi,
  .sk-input {
    animation: dv-fade 0.25s;
  }

  .w-q {
    animation: dv-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .w-plus {
    transition:
      transform 0.15s,
      background-color 0.15s,
      color 0.15s;
  }

  .w-send-a {
    animation: dv-rise-lg 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* stock */
  .sk-hi {
    transition: opacity 0.3s;
  }

  .sk-caret {
    animation: dv-caret 1s ease-in-out infinite;
  }

  .sk-d .sk-badge {
    animation: dv-pop-soft 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* scanner */
  .sn-line {
    transition:
      opacity 0.2s,
      transform 0.2s;
  }

  .sn[data-s="0"] .sn-line {
    animation: dv-scan 1.8s ease-in-out infinite;
  }

  .sn-ok.is-on {
    animation: dv-flash 0.6s;
  }

  .sn-toast {
    animation: dv-rise-lg 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

.nw-v {
  display: flex;
  justify-content: center;
}
