/* The product, drawn in the page: the till on its tablet, the paper it
   prints, and the back office in a browser window. The till's colours are
   the app's own (android: core/ui/V2.kt). Everything is sized in em from the
   width of its box, so a mock-up scales as one piece. */

.mock, .tablet-screen, .browser { container-type: inline-size; }

.till {
  --u: 1.25; /* one em is this many hundredths of the box's width */
  --t-bg: #131519; --t-header: #0d0f13; --t-hline: #22262e;
  --t-panel: #1b1e24; --t-foot: #171a1f; --t-side: #16191e;
  --t-key: #252932; --t-stroke: #2b3039; --t-stroke2: #3a404b; --t-row: #252932;
  --t-text: #f2f4f7; --t-text2: #a6aebb; --t-text3: #79818f;
  --t-green: #3f8443; --t-greentext: #74b884; --t-greenwash: #173321;
  --t-amber: #f5a524; --t-amberink: #2b1a00; --t-ambertext: #ffc15a;
  --t-violet: #8b6cff; --t-violettext: #cbbeff; --t-violetwash: #241f3d;
  --t-red: #d93a40; --t-go: #2bd48a; --t-goink: #052a1b;
  font-size: calc(var(--u) * 1cqw);
  line-height: 1.25; font-weight: 500; letter-spacing: -0.005em;
  color: var(--t-text);
  font-variant-numeric: tabular-nums;
}
.till b { font-weight: 700; }
.till i, .till em, .till u { font-style: normal; text-decoration: none; }
.till h6 { margin: 0; font-size: 0.76em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-text3); }

/* ---- the tablet ---- */

.tablet {
  position: relative; max-width: 1080px; margin: 0 auto;
  padding: clamp(5px, 1.05vw, 14px);
  border-radius: clamp(12px, 2.3vw, 32px);
  background: #0a0b0d;
  box-shadow: inset 0 0 0 1px #30343b, inset 0 0 0 2px #0a0b0d, 0 50px 90px -40px rgba(16, 44, 24, 0.6), 0 24px 40px -24px rgba(16, 44, 24, 0.45);
}
.tablet-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: clamp(8px, 1.5vw, 20px); background: var(--t-bg, #131519); }
.tablet-screen > .till { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--t-bg); }

/* the till's top bar */
.t-bar { flex: none; height: 4.7em; display: flex; align-items: center; gap: 1.1em; padding: 0 1.2em; background: var(--t-header); border-bottom: 1px solid var(--t-hline); }
.t-menu { width: 2.9em; height: 2.9em; border-radius: 0.8em; background: var(--t-key); display: grid; align-content: center; justify-items: center; gap: 0.32em; }
.t-menu i { width: 1.2em; height: 0.16em; border-radius: 1em; background: var(--t-text2); }
.t-tabs { display: flex; gap: 0.25em; }
.t-tab { display: inline-flex; align-items: center; gap: 0.55em; padding: 0.72em 1em; border-radius: 0.8em; font-size: 1.02em; font-weight: 600; color: var(--t-text2); white-space: nowrap; transition: background-color 0.3s, color 0.3s; }
.t-tab[data-go], .tb[data-go] { cursor: pointer; }
.t-tab b { padding: 0.12em 0.5em; border-radius: 1em; font-size: 0.8em; background: var(--t-key); color: var(--t-text2); }
.t-tab.is-on { background: var(--t-text); color: var(--t-header); }
.t-tab.is-on b { background: rgba(13, 15, 19, 0.12); color: var(--t-header); }
.t-meta { margin-left: auto; display: flex; align-items: center; gap: 0.9em; font-weight: 600; }
.t-sync { width: 0.6em; height: 0.6em; border-radius: 50%; background: #12b76a; }
.t-clock { font-size: 1.05em; }
.t-staff { display: inline-flex; align-items: center; gap: 0.55em; padding: 0.35em 0.9em 0.35em 0.35em; border-radius: 2em; background: var(--t-key); font-size: 0.95em; }
.t-staff em { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #74b884, #3f8443); color: #fff; font-weight: 800; font-size: 0.85em; }

.t-body { position: relative; flex: 1; min-height: 0; }
.t-screen { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(0.992); transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.45s; }
.t-screen.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* ---- the floor ---- */

.t-floor { display: grid; grid-template-columns: minmax(0, 1fr) 21em; }
.t-main { display: flex; flex-direction: column; padding: 1.3em 1.5em 1.5em; min-width: 0; }
.t-areas { display: flex; gap: 0.5em; }
.t-areas span { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.65em 1em; border-radius: 0.8em; background: var(--t-key); color: var(--t-text2); font-size: 0.95em; font-weight: 600; }
.t-areas b { font-weight: 600; font-size: 0.86em; opacity: 0.7; }
.t-areas .is-on { background: var(--t-text); color: var(--t-header); }
.t-plan, .v-plot {
  position: relative; flex: 1; margin-top: 1.2em; border-radius: 1.2em;
  background: radial-gradient(circle, #30353f 0.07em, transparent 0.09em) 0 0 / 1.9em 1.9em, var(--t-panel);
  box-shadow: inset 0 0 0 1px var(--t-stroke);
}

/* a table: free, seated, waiting for its bill, or held for a booking */
.tb {
  --chair: #353b46;
  position: absolute; display: grid; place-content: center; justify-items: center; gap: 0.12em;
  border-radius: 0.95em; background: #2a2f38; box-shadow: inset 0 0 0 1px #3d434f; color: var(--t-text2);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.tb b { font-size: 1.25em; line-height: 1.1; color: var(--t-text); }
.tb i { font-size: 0.84em; font-weight: 600; }
.tb u { font-size: 0.74em; opacity: 0.85; }
.tb::before, .tb::after {
  content: ""; position: absolute; left: 10%; right: 10%; height: 0.5em;
  background: linear-gradient(90deg, transparent 0 16%, var(--chair) 16% 84%, transparent 84%) 0 0 / 2.7em 100% round no-repeat;
}
.tb::before { top: -0.95em; }
.tb::after { bottom: -0.95em; }
.tb.round { aspect-ratio: 1; border-radius: 50%; }
.tb.round::before, .tb.round::after { left: 32%; right: 32%; background: var(--chair); border-radius: 1em; }
.tb.seated { --chair: #74b884; background: var(--t-green); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); color: #dcefdd; }
.tb.seated b { color: #fff; }
.tb.bill { --chair: #ffc15a; background: var(--t-amber); box-shadow: none; color: #5a3a00; }
.tb.bill b { color: var(--t-amberink); }
.tb.held { --chair: #4b3f85; background: var(--t-violetwash); box-shadow: none; outline: 0.1em dashed var(--t-violet); outline-offset: -0.1em; color: var(--t-violettext); }
.tb.held b { color: #fff; }
.tb[data-go]:hover { transform: scale(1.04); }

.t-side { display: flex; flex-direction: column; gap: 0.75em; padding: 1.4em 1.2em; background: var(--t-side); border-left: 1px solid var(--t-hline); }
.t-side h6:not(:first-child) { margin-top: 0.7em; }
.t-list { display: grid; gap: 0.5em; margin: 0; padding: 0; list-style: none; }
.t-list li { display: grid; grid-template-columns: 1fr auto; column-gap: 0.6em; row-gap: 0.15em; padding: 0.75em 0.9em; border-radius: 0.8em; background: var(--t-panel); box-shadow: inset 0 0 0 1px var(--t-stroke); }
.t-list b { font-size: 0.96em; }
.t-list span { grid-column: 1; font-size: 0.78em; color: var(--t-text2); }
.t-list em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 0.9em; font-weight: 700; color: var(--t-greentext); }
.t-list .amber em { color: var(--t-ambertext); }
.t-list .violet em { color: var(--t-violettext); font-weight: 600; font-size: 0.8em; }

/* ---- an order ---- */

.t-order { display: grid; grid-template-columns: 27em minmax(0, 1fr); }
.t-ticket { display: flex; flex-direction: column; min-height: 0; background: var(--t-panel); border-right: 1px solid var(--t-hline); }
.t-ticket header { display: flex; justify-content: space-between; align-items: center; padding: 1.1em 1.3em; border-bottom: 1px solid var(--t-row); }
.t-ticket header b { display: block; font-size: 1.3em; }
.t-ticket header span { font-size: 0.8em; color: var(--t-text2); }
.t-covers { display: flex; align-items: center; gap: 0.7em; padding: 0.3em; border-radius: 0.8em; background: var(--t-bg); font-size: 0.88em; font-weight: 600; }
.t-covers i { width: 2.1em; height: 2.1em; border-radius: 0.6em; display: grid; place-items: center; background: var(--t-key); }
.t-lines { flex: 1; min-height: 0; overflow: hidden; padding: 0.2em 1.3em; }
.t-group { margin: 0.95em 0 0.2em; font-size: 0.72em; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--t-text3); }
.t-group.new { color: var(--t-greentext); }
.t-line { display: grid; grid-template-columns: 1.5em 1fr auto; gap: 0.6em; padding: 0.58em 0; border-bottom: 1px solid var(--t-row); font-size: 0.97em; }
.t-line .q { font-weight: 700; color: var(--t-greentext); }
.t-line small { display: block; font-size: 0.8em; color: var(--t-text3); }
.t-line.sent { color: var(--t-text2); }
.t-line.sent .q { color: var(--t-text3); }
.t-ticket footer { padding: 0.9em 1.3em 1.3em; background: var(--t-foot); border-top: 1px solid var(--t-row); }
.t-sum { display: flex; justify-content: space-between; padding: 0.16em 0; font-size: 0.88em; color: var(--t-text2); }
.t-sum.total { margin: 0.35em 0 0.8em; font-size: 1.3em; font-weight: 800; color: var(--t-text); }
.t-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5em; }
.t-keys span { padding: 0.8em 0; border-radius: 0.8em; background: var(--t-key); text-align: center; font-size: 0.9em; font-weight: 600; }
.t-keys.big { grid-template-columns: 1.5fr 1fr; margin-top: 0.5em; }
.t-keys.big span { padding: 1.05em 0; font-size: 1.02em; font-weight: 800; }
.t-keys .send { background: var(--t-green); color: #fff; }
.t-keys .pay { background: var(--t-go); color: var(--t-goink); }

.t-pane { display: flex; flex-direction: column; gap: 0.95em; padding: 1.3em 1.5em 1.5em; min-width: 0; }
.t-search { padding: 0.85em 1.1em; border-radius: 0.9em; background: var(--t-key); color: var(--t-text3); font-size: 0.95em; }
.t-cats { display: flex; gap: 0.45em; }
.t-cats span { flex: 1; padding: 0.75em 0.4em; border-radius: 0.8em; text-align: center; font-size: 0.92em; font-weight: 700; color: #fff; background: color-mix(in srgb, var(--c) 26%, var(--t-panel)); box-shadow: inset 0 -0.2em 0 var(--c); }
.t-cats .is-on { background: var(--c); }
.t-items { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 0.65em; }
.t-item { position: relative; display: flex; flex-direction: column; gap: 0.3em; padding: 0.85em 0.95em; border-radius: 0.95em; background: var(--t-panel); box-shadow: inset 0 0 0 1px var(--t-stroke); }
.t-item b { font-size: 0.97em; font-weight: 600; line-height: 1.2; }
.t-item span { font-size: 0.84em; color: var(--t-text2); }
.t-tag { margin-top: auto; align-self: flex-start; padding: 0.28em 0.6em; border-radius: 0.5em; background: var(--t-key); color: var(--t-text2); font-size: 0.6em; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.t-item.out b, .t-item.out span { opacity: 0.4; }
.t-item.out .t-tag { background: #3a1c1e; color: #ff8a8e; }

/* ---- the kitchen ---- */

.t-kds { display: flex; flex-direction: column; gap: 1.1em; padding: 1.3em 1.5em 1.5em; }
.t-kds-head { display: flex; align-items: center; gap: 1.2em; }
.t-seg { display: flex; gap: 0.25em; padding: 0.3em; border-radius: 0.9em; background: var(--t-header); }
.t-seg span { padding: 0.55em 1.1em; border-radius: 0.65em; font-size: 0.92em; font-weight: 600; color: var(--t-text2); }
.t-seg .is-on { background: var(--t-text); color: var(--t-header); }
.t-allday { flex: 1; margin: 0; font-size: 0.9em; color: var(--t-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-allday b { margin-right: 0.9em; font-size: 0.82em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-text3); }
.t-key { padding: 0.75em 1.1em; border-radius: 0.8em; background: var(--t-key); font-size: 0.9em; font-weight: 600; }
.t-tickets { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9em; align-items: start; align-content: start; }

.t-tk { display: flex; flex-direction: column; overflow: hidden; border-radius: 1em; background: var(--t-panel); box-shadow: inset 0 0 0 1px var(--t-stroke); }
.t-tk header { display: grid; grid-template-columns: 1fr auto; column-gap: 0.6em; padding: 0.8em 1em; background: var(--t-key); }
.t-tk header b { font-size: 1.1em; }
.t-tk header span { grid-column: 1; font-size: 0.76em; color: var(--t-text2); }
.t-tk header em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 1.2em; font-weight: 800; }
.t-tk.warm header { background: var(--t-amber); color: var(--t-amberink); }
.t-tk.warm header span { color: #5a3a00; }
.t-tk.late header { background: var(--t-red); color: #fff; }
.t-tk.late header span { color: #ffd5d6; }
.t-tk ul { margin: 0; padding: 0.3em 1em 0; list-style: none; }
.t-tk li { display: grid; grid-template-columns: 1.4em 1fr; gap: 0.5em; padding: 0.62em 0; border-bottom: 1px solid var(--t-row); font-size: 0.97em; font-weight: 600; }
.t-tk li:last-child { border-bottom: 0; }
.t-tk li i { color: var(--t-greentext); font-weight: 800; }
.t-tk li small { display: block; margin-top: 0.15em; font-size: 0.8em; font-weight: 600; color: var(--t-ambertext); }
.t-tk li.done, .t-tk li.done i, .t-tk li.done small { color: #5e6672; }
.t-tk li.done span { text-decoration: line-through; }
.t-tk footer { margin: 0.5em 0.8em 0.8em; padding: 0.75em; border-radius: 0.75em; background: var(--t-key); text-align: center; font-size: 0.9em; font-weight: 700; }

/* ---- takeaway and delivery ---- */

.t-board { padding: 1.3em 1.5em 1.5em; }
.t-cols { height: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9em; }
.t-col { display: flex; flex-direction: column; gap: 0.75em; padding: 1em; border-radius: 1.1em; background: var(--t-side); box-shadow: inset 0 0 0 1px var(--t-hline); }
.t-col h6 { display: flex; align-items: center; gap: 0.7em; padding: 0.2em 0.2em 0.3em; }
.t-col h6 b { padding: 0.15em 0.6em; border-radius: 1em; background: var(--t-key); color: var(--t-text2); letter-spacing: 0; }
.t-card { display: grid; gap: 0.6em; padding: 0.95em 1em; border-radius: 0.95em; background: var(--t-panel); box-shadow: inset 0 0 0 1px var(--t-stroke); }
.t-card header { display: flex; align-items: center; gap: 0.6em; }
.t-card header b { font-size: 1.25em; font-weight: 800; }
.t-card header i { padding: 0.25em 0.6em; border-radius: 0.5em; font-size: 0.72em; font-weight: 700; }
.t-card .take { background: #0f3440; color: #9be3f7; }
.t-card .deliv { background: var(--t-violetwash); color: var(--t-violettext); }
.t-card header em { margin-left: auto; font-size: 0.82em; font-weight: 600; color: var(--t-text2); }
.t-card header em.soon { color: var(--t-ambertext); }
.t-card p { margin: 0; font-size: 0.86em; line-height: 1.4; color: var(--t-text2); }
.t-card p.who { font-size: 0.94em; font-weight: 600; color: var(--t-text); }
.t-card footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.92em; font-weight: 700; }
.t-card footer u { font-size: 0.86em; }
.t-card .green { color: var(--t-go); }
.t-card .amber { color: var(--t-ambertext); }
.t-collect { padding: 0.75em; border-radius: 0.75em; background: var(--t-go); color: var(--t-goink); text-align: center; font-size: 0.9em; font-weight: 800; }
/* ---- pieces of the till shown on their own ---- */

.till.piece { --u: 2.5; }

.v-floor { padding: 1.3em; border-radius: 1.5em; background: var(--t-bg); box-shadow: 0 2.4em 3.6em -2em rgba(16, 44, 24, 0.6); }
.v-states { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9em; }
.v-states figure { display: grid; gap: 0.8em; }
.v-plot { margin-top: 0; height: 10em; display: grid; place-items: center; }
.v-plot .tb { position: relative; width: 9.2em; height: 5.2em; }
.v-states figcaption { padding: 0 0.3em 0.5em; font-size: 0.86em; line-height: 1.35; color: var(--t-text2); }
.v-states figcaption b { display: block; font-size: 1.1em; color: var(--t-text); }
.v-booking { margin-top: 0.9em; display: flex; align-items: center; gap: 0.9em; padding: 0.7em 0.7em 0.7em 1.1em; border-radius: 1em; background: var(--t-violetwash); color: var(--t-violettext); font-size: 0.92em; }
.v-booking b { font-size: 1.15em; color: #fff; }
.v-booking em { margin-left: auto; padding: 0.7em 1em; border-radius: 0.7em; background: var(--t-violet); color: #fff; font-weight: 700; white-space: nowrap; }

.till.piece.v-kitchen { --u: 3; }
.v-kitchen { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); gap: 1.4em; align-items: center; padding: 0.6em 0; }
.v-kitchen .t-tk { box-shadow: inset 0 0 0 1px var(--t-stroke), 0 2.4em 3.6em -2em rgba(16, 44, 24, 0.6); }

.v-pay { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 1.4em; align-items: center; }
.v-paybox { padding: 1.5em; border-radius: 1.5em; background: var(--t-bg); box-shadow: 0 2.4em 3.6em -2em rgba(16, 44, 24, 0.6); }
.v-kicker { margin: 0; font-size: 0.82em; color: var(--t-text2); }
.v-due { margin: 0.15em 0 0.7em; font-size: 2.3em; font-weight: 800; letter-spacing: -0.03em; }
.v-shares { display: grid; gap: 0.45em; margin: 0; padding: 0; list-style: none; }
.v-shares li { display: grid; grid-template-columns: 1.9em 1fr auto 1.2em; align-items: center; gap: 0.7em; padding: 0.65em 0.8em; border-radius: 0.85em; background: var(--t-panel); box-shadow: inset 0 0 0 1px var(--t-stroke); font-size: 0.95em; }
.v-shares b { width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; background: var(--t-key); font-size: 0.86em; }
.v-shares span { color: var(--t-text2); }
.v-shares em { font-weight: 700; }
.v-shares .ico { width: 1.2em; height: 1.2em; stroke-width: 3; color: var(--t-go); }
.v-shares .paid b { background: var(--t-greenwash); color: var(--t-greentext); }
.v-shares .now { background: #222e26; box-shadow: inset 0 0 0 0.12em var(--t-green); }
.v-shares .now b { background: var(--t-green); color: #fff; }
.v-shares .now span { color: var(--t-text); }
.v-types { margin-top: 0.9em; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45em; }
.v-types span { padding: 0.75em 0; border-radius: 0.8em; background: var(--t-key); text-align: center; font-size: 0.9em; font-weight: 600; color: var(--t-text2); }
.v-types .is-on { background: var(--t-text); color: var(--t-header); }
.v-charge { margin-top: 0.5em; padding: 1em; border-radius: 0.85em; background: var(--t-go); color: var(--t-goink); text-align: center; font-weight: 800; }

/* ---- paper out of the printer ---- */

.paper-wrap { filter: drop-shadow(0 1.6em 1.6em rgba(22, 44, 28, 0.22)) drop-shadow(0 0.15em 0.25em rgba(22, 44, 28, 0.18)); }
.tilt-l { transform: rotate(-2.4deg); }
.tilt-r { transform: rotate(2deg); }
.paper {
  padding: 1.5em 1.3em 2.1em;
  background: #fffefa; color: #23211d;
  font-family: var(--mono); font-size: 0.93em; font-weight: 400; line-height: 1.5; letter-spacing: 0;
  /* the torn edge the cutter leaves */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 0.9em 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 0.9em 100%;
}
.paper p { margin: 0; }
.paper hr { margin: 0.65em 0; border: 0; border-top: 1px dashed #b9b5aa; }
.p-head { text-align: center; font-weight: 500; font-size: 1.18em; letter-spacing: 0.14em; }
.p-sub, .p-foot { text-align: center; color: #77736a; }
.p-foot { margin-top: 1em !important; }
.p-row { display: flex; justify-content: space-between; gap: 1em; }
.p-row span:last-child { white-space: nowrap; }
.p-item { font-size: 1.14em; font-weight: 500; }
.p-item b { display: inline-block; width: 1.7em; font-weight: 500; }
.p-note { padding-left: 1.95em; color: #55524b; }
.p-total { margin: 0.2em 0 !important; font-size: 1.16em; font-weight: 500; }
.receipt { font-size: 0.8em; }

/* ---- the back office in a browser window ---- */

.browser { overflow: hidden; max-width: 1120px; margin: 0 auto; border-radius: clamp(8px, 1.3vw, 16px) clamp(8px, 1.3vw, 16px) 0 0; background: #fff; box-shadow: 0 0 0 1px rgba(20, 40, 26, 0.08), 0 40px 80px -30px rgba(16, 44, 24, 0.45); }
.b-bar { display: flex; align-items: center; gap: 0.55cqw; padding: 1cqw 1.3cqw; background: #f1f3f1; border-bottom: 1px solid #e3e6e3; }
.b-bar i { width: 1cqw; height: 1cqw; min-width: 5px; min-height: 5px; border-radius: 50%; background: #d3d8d3; }
.b-bar span { margin: 0 auto; padding: 0.4cqw 4cqw; border-radius: 1cqw; background: #fff; font-family: var(--mono); font-size: max(1.05cqw, 7px); color: #6b756d; transform: translateX(-2cqw); }
.bo {
  --u: 1.04;
  font-size: calc(var(--u) * 1cqw); line-height: 1.35;
  display: grid; grid-template-columns: 15em minmax(0, 1fr); grid-template-rows: minmax(0, 1fr);
  /* the window runs off the bottom of its stage, menu and page cut together */
  height: 39em; overflow: hidden;
  background: #f6f7f9; color: #111827; font-variant-numeric: tabular-nums;
}
.bo b { font-weight: 700; }
.bo i, .bo em { font-style: normal; }
.bo-side { display: flex; flex-direction: column; padding: 1.3em 0.9em; background: #fff; border-right: 1px solid #e6e8ec; }
.bo-brand { display: flex; align-items: center; gap: 0.6em; margin: 0 0 1.1em 0.5em; font-size: 1.2em; font-weight: 800; letter-spacing: -0.02em; }
.bo-brand img { height: 1.7em; width: auto; }
.bo-side h6 { margin: 1.1em 0 0.3em 0.75em; font-size: 0.7em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8a93a3; }
.bo-side a { padding: 0.42em 0.75em; border-radius: 0.6em; font-size: 0.92em; font-weight: 500; color: #4b5563; }
.bo-side a.is-on { background: #e8f3e8; color: #2f6b33; font-weight: 700; }
.bo-main { display: flex; flex-direction: column; padding: 1.7em 2em 0; min-width: 0; min-height: 0; }
.bo-top { display: flex; justify-content: space-between; align-items: center; }
.bo-top b { display: block; font-size: 1.6em; letter-spacing: -0.025em; }
.bo-top span { color: #8a93a3; font-size: 0.92em; }
.bo-top em { padding: 0.55em 1.1em; border-radius: 0.7em; background: #fff; box-shadow: 0 0 0 1px #e6e8ec; font-size: 0.92em; font-weight: 600; }
.bo-tiles { margin-top: 1.3em; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9em; }
.bo-tiles div, .bo-card { padding: 1.1em 1.2em; border-radius: 0.95em; background: #fff; box-shadow: 0 0 0 1px #e6e8ec, 0 1px 2px rgba(16, 24, 40, 0.05); }
.bo-tiles span { display: block; font-size: 0.85em; color: #4b5563; }
.bo-tiles b { display: block; margin: 0.2em 0; font-size: 1.7em; letter-spacing: -0.03em; }
.bo-tiles i { font-size: 0.8em; color: #8a93a3; }
.bo-tiles i.up { color: #15803d; font-weight: 600; }
.bo-tiles i.up::before { content: "↑ "; }
.bo-row { flex: 1; min-height: 0; margin-top: 0.9em; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 0.9em; }
.bo-card { border-radius: 0.95em 0.95em 0 0; padding-bottom: 1.6em; }
.bo-card p { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 1em; }
.bo-card p span { font-size: 0.82em; color: #8a93a3; }
.bo-chart { display: flex; flex-direction: column; min-height: 0; }
.bo-chart svg { flex: 1; min-height: 0; width: 100%; overflow: visible; }
.bo-axis { display: flex; justify-content: space-between; margin-top: 0.6em; font-size: 0.76em; color: #8a93a3; }
.bo-top5 ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.95em; }
.bo-top5 li { display: grid; grid-template-columns: 1fr auto; gap: 0.35em 0.8em; font-size: 0.92em; font-weight: 500; }
.bo-top5 li i { grid-column: 1 / -1; height: 0.4em; border-radius: 1em; background: linear-gradient(90deg, #3f8443 var(--w), #e8f3e8 var(--w)); }
.bo-top5 li em { grid-row: 1; grid-column: 2; font-weight: 700; }

/* ---- a shop's till: the sale down the left, the products on the right ---- */

/* the sell screen is the order screen's two columns with a shop's words */
.t-cust { padding: 0.6em 0.95em; border-radius: 0.8em; background: var(--t-bg); font-size: 0.86em; font-weight: 600; color: var(--t-text2); }
.t-find { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.55em; }
.t-find .t-search { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color 0.25s, box-shadow 0.25s, color 0.25s; }
.t-scan { width: 3.2em; border-radius: 0.9em; background: var(--t-key); display: grid; place-items: center; color: var(--t-text2); transition: background-color 0.25s, color 0.25s; }
.t-scan .ico { width: 1.55em; height: 1.55em; stroke-width: 2; }
/* a barcode was read: for a moment the box holds what the scanner typed */
.t-find.is-scan .t-search { background: var(--t-greenwash); box-shadow: inset 0 0 0 0.12em var(--t-green); color: var(--t-greentext); font-family: var(--mono); letter-spacing: 0.14em; }
.t-find.is-scan .t-scan { background: var(--t-green); color: #fff; }
/* what is left of a product: amber when few are left, red when it is out */
.t-left { margin-top: auto; align-self: flex-start; padding: 0.28em 0.6em; border-radius: 0.5em; background: var(--t-greenwash); color: var(--t-greentext); font-size: 0.68em; font-weight: 800; letter-spacing: 0.03em; transition: background-color 0.3s, color 0.3s; }
.t-left.few { background: #3a2a08; color: var(--t-ambertext); }
.t-left.none { background: #3a1c1e; color: #ff8a8e; }
.t-sell .t-keys:not(.big) { grid-template-columns: 1fr 1.55fr 0.75fr; }
.t-keys.big.one { grid-template-columns: 1fr; }
.t-keys .disc.is-set { background: var(--t-greenwash); color: var(--t-greentext); }
.t-sum.off { color: var(--t-greentext); }
.t-empty { margin: 2.6em 0 0; text-align: center; font-size: 0.95em; color: var(--t-text3); }

/* a shop's receipts: the list, and the one that is open */
.t-rcpts { display: grid; grid-template-columns: 27em minmax(0, 1fr); }
.t-rlist { display: flex; flex-direction: column; gap: 0.9em; min-height: 0; padding: 1.3em; background: var(--t-panel); border-right: 1px solid var(--t-hline); }
.t-rlist ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5em; }
.t-rlist li { display: grid; grid-template-columns: 1fr auto; column-gap: 0.6em; row-gap: 0.1em; padding: 0.72em 0.9em; border-radius: 0.8em; background: var(--t-bg); box-shadow: inset 0 0 0 1px var(--t-stroke); transition: background-color 0.3s, box-shadow 0.3s; }
.t-rlist li b { font-family: var(--mono); font-weight: 500; font-size: 0.98em; }
.t-rlist li span { grid-column: 1; font-size: 0.78em; color: var(--t-text2); }
.t-rlist li em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 0.92em; font-weight: 700; }
.t-rlist li.is-on { background: #222e26; box-shadow: inset 0 0 0 0.12em var(--t-green); }
.t-ropen { display: flex; flex-direction: column; min-width: 0; padding: 1.3em 1.5em 1.5em; }
.t-ropen header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1em; border-bottom: 1px solid var(--t-row); }
.t-ropen header b { display: block; font-size: 1.3em; }
.t-ropen header span { font-size: 0.8em; color: var(--t-text2); }
.t-chip { padding: 0.42em 0.95em; border-radius: 2em; background: var(--t-greenwash); color: var(--t-greentext); font-size: 0.82em; font-weight: 700; }
.t-chip.back { background: var(--t-violetwash); color: var(--t-violettext); }
.t-rlines { flex: 1; min-height: 0; padding-top: 0.4em; }
.t-rlines .t-line { transition: opacity 0.3s; }
/* in a refund, what the customer keeps is taken off */
.t-rlines .t-line.kept { opacity: 0.36; }
.t-rlines .t-line.kept .n { text-decoration: line-through; }
.t-rlines .t-sum:first-of-type { margin-top: 0.7em; }
.t-keys .refund { background: var(--t-amber); color: var(--t-amberink); font-weight: 800; }
.t-wait { margin: auto; max-width: 21em; text-align: center; font-size: 1.02em; line-height: 1.45; color: var(--t-text3); }
.t-refund { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1em; padding: 0.85em 0.85em 0.85em 1.2em; border-radius: 1em; background: var(--t-panel); box-shadow: inset 0 0 0 1px var(--t-stroke); }
.t-refund b { display: block; font-size: 1.3em; }
.t-refund span { font-size: 0.8em; color: var(--t-text2); }
.t-refund .go { padding: 1em 1.7em; border-radius: 0.8em; background: var(--t-amber); color: var(--t-amberink); font-size: 1em; font-weight: 800; }

/* ---- what the film lays over the tablet's screens ---- */

/* something just rung up, pressed, or changed */
.t-line.is-new { animation: line-in 0.5s var(--out) both; }
@keyframes line-in { from { opacity: 0; transform: translateX(-0.9em); } }
.is-tapped { animation: tapped 0.42s var(--out); }
@keyframes tapped { 30% { filter: brightness(1.55); } }
.is-bump { animation: bump 0.45s var(--out); }
@keyframes bump { 35% { transform: scale(1.16); } }
.t-tk.is-fresh, .t-card.is-moved { animation: pop 0.6s var(--out) both; }
.t-tk.is-fresh { box-shadow: inset 0 0 0 0.14em var(--t-green); }
@keyframes pop { from { opacity: 0; transform: translateY(0.7em) scale(0.94); } }
.tb { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s, color 0.4s; }

/* a sheet that comes up over the screen: the payment, the discounts */
.f-sheet { position: absolute; right: 1.5em; bottom: 1.5em; z-index: 3; width: 27em; padding: 1.4em; border-radius: 1.4em; background: var(--t-bg); box-shadow: 0 0 0 1px var(--t-stroke2), 0 2em 4em -1em rgba(0, 0, 0, 0.85), 0 0 0 100em rgba(8, 9, 11, 0.45); opacity: 0; visibility: hidden; transform: translateY(1.8em); transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.45s; }
.f-sheet.is-up { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.f-sheet.left { left: 1.3em; right: auto; bottom: 9.6em; width: 24.4em; }
.f-given { margin-top: 0.5em; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.45em; }
.f-given span { padding: 0.75em 0; border-radius: 0.8em; background: var(--t-key); text-align: center; font-size: 0.9em; font-weight: 700; transition: background-color 0.25s, color 0.25s; }
.f-given .is-on { background: var(--t-text); color: var(--t-header); }
.f-change { display: flex; justify-content: space-between; align-items: baseline; margin: 0.6em 0 0; padding: 0.7em 0.95em; border-radius: 0.8em; background: var(--t-greenwash); color: var(--t-greentext); font-weight: 600; opacity: 0.25; transition: opacity 0.3s; }
.f-change.is-in { opacity: 1; }
.f-change b { font-size: 1.35em; color: #fff; }
.f-sheet .v-charge { transition: background-color 0.3s, color 0.3s; }
.f-sheet .v-charge.is-paid { background: var(--t-greenwash); color: var(--t-greentext); }
.f-pick { margin-top: 0.8em; display: grid; gap: 0.45em; }
.f-pick span { padding: 0.85em 1em; border-radius: 0.8em; background: var(--t-key); font-weight: 600; transition: background-color 0.25s, color 0.25s; }
.f-pick .is-on { background: var(--t-green); color: #fff; }

/* the paper comes out from under the top bar, as from a printer */
.t-bar { position: relative; z-index: 5; }
.f-slip { position: absolute; top: 0; right: 3.4em; z-index: 4; width: 15.5em; transform: translateY(-104%); transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1); filter: drop-shadow(0 1.2em 1.4em rgba(0, 0, 0, 0.6)); }
.f-slip.is-out { transform: none; transition: transform 1.25s cubic-bezier(0.25, 0.7, 0.3, 1); }
.f-slip .paper { padding: 1.3em 1.1em 1.9em; font-size: 0.74em; }

/* where a finger taps */
.f-hand { position: absolute; left: 50%; top: 62%; z-index: 6; width: 3em; height: 3em; margin: -1.5em 0 0 -1.5em; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, 0.26); box-shadow: 0 0 0 0.14em rgba(255, 255, 255, 0.8), 0 0.4em 1.2em rgba(0, 0, 0, 0.5); opacity: 0; transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1), top 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s, transform 0.15s; }
.f-hand.is-on { opacity: 1; }
.f-hand.is-down { transform: scale(0.76); background: rgba(255, 255, 255, 0.55); }
.f-hand::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0.14em rgba(255, 255, 255, 0.75); opacity: 0; }
.f-hand.is-down::after { animation: ring 0.55s var(--out); }
@keyframes ring { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(2.4); } }

/* ---- a shop's pieces, shown on their own ---- */

.v-sheet { padding: 1.5em; border-radius: 1.5em; background: var(--t-bg); box-shadow: 0 2.4em 3.6em -2em rgba(16, 44, 24, 0.6); }
.v-sheet h6 { margin: 1.15em 0 0.55em; }
.v-sheet .v-charge { margin-top: 1.25em; }

/* a product with variants asks which one; one sold by weight asks how much */
.v-variant { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 1.2em; align-items: end; }
.v-chips { display: flex; flex-wrap: wrap; gap: 0.45em; }
.v-chips span { display: grid; justify-items: center; min-width: 3.7em; padding: 0.6em 0.9em; border-radius: 0.8em; background: var(--t-key); font-weight: 700; transition: background-color 0.3s, color 0.3s; }
.v-chips i { font-size: 0.66em; font-weight: 600; color: var(--t-text3); transition: color 0.3s; }
.v-chips .is-on { background: var(--t-text); color: var(--t-header); }
.v-chips .is-on i { color: #4d5562; }
.v-chips .none { opacity: 0.45; }
.v-weigh { padding: 1.3em; border-radius: 1.3em; background: var(--t-panel); box-shadow: inset 0 0 0 1px var(--t-stroke), 0 2.4em 3.6em -2em rgba(16, 44, 24, 0.6); transform: rotate(2deg); }
.v-weigh .v-due { margin-bottom: 0.35em; }
.v-due small { font-size: 0.45em; font-weight: 600; letter-spacing: 0; color: var(--t-text2); }
.v-eq { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding-top: 0.75em; border-top: 1px solid var(--t-row); font-size: 0.86em; color: var(--t-text2); }
.v-eq b { font-size: 1.2em; color: var(--t-greentext); }

/* a stock check, beside tiles that say what is left */
.v-stock { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 1.2em; align-items: center; }
.v-name { display: flex; justify-content: space-between; align-items: baseline; margin: 0.3em 0 0.8em; font-size: 1.5em; font-weight: 800; letter-spacing: -0.02em; }
.v-name span { font-size: 0.6em; font-weight: 600; letter-spacing: 0; color: var(--t-text2); }
.v-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4em; }
.v-rows li { display: flex; justify-content: space-between; align-items: center; padding: 0.55em 0.6em 0.55em 0.95em; border-radius: 0.8em; background: var(--t-panel); box-shadow: inset 0 0 0 1px var(--t-stroke); font-size: 0.95em; }
.v-rows em { min-width: 2.9em; padding: 0.22em 0.6em; border-radius: 0.5em; background: var(--t-greenwash); color: var(--t-greentext); text-align: center; font-weight: 800; transition: background-color 0.3s, color 0.3s; }
.v-rows .few em { background: #3a2a08; color: var(--t-ambertext); }
.v-rows .none em { background: #3a1c1e; color: #ff8a8e; }
.v-tiles { display: grid; gap: 0.65em; }
.v-tiles .t-item { min-height: 5.7em; background: var(--t-bg); box-shadow: inset 0 0 0 1px var(--t-stroke), 0 1.8em 2.6em -1.8em rgba(16, 44, 24, 0.7); }

/* a return: the receipt with its barcode, and the refund it opens */
.v-return { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); }
.p-bars { position: relative; overflow: hidden; height: 3.4em; margin: 1em 14% 0.3em; background: repeating-linear-gradient(90deg, #23211d 0 0.14em, transparent 0.14em 0.32em, #23211d 0.32em 0.6em, transparent 0.6em 0.74em, #23211d 0.74em 0.82em, transparent 0.82em 1.1em); }
/* the scanner's line, drawn only while the piece is on screen */
.p-bars i { position: absolute; top: 0; bottom: 0; left: 0; width: 0.2em; background: #e23b3b; box-shadow: 0 0 0.9em 0.35em rgba(226, 59, 59, 0.5); opacity: 0; }
.is-live .p-bars i { animation: sweep 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes sweep { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 58% { left: calc(100% - 0.2em); opacity: 1; } 70%, 100% { left: calc(100% - 0.2em); opacity: 0; } }
.p-code { text-align: center; letter-spacing: 0.32em; }
.v-shares .kept { opacity: 0.42; }
.v-shares .kept em { font-weight: 500; color: var(--t-text3); }
.v-opt { display: flex; justify-content: space-between; align-items: center; margin: 0.75em 0 0; padding: 0.6em 0.8em; border-radius: 0.85em; background: var(--t-panel); box-shadow: inset 0 0 0 1px var(--t-stroke); font-size: 0.92em; font-weight: 600; }
.v-opt .tog { position: relative; width: 2.5em; height: 1.45em; border-radius: 2em; background: var(--t-green); }
.v-opt .tog::after { content: ""; position: absolute; right: 0.2em; top: 0.2em; width: 1.05em; height: 1.05em; border-radius: 50%; background: #fff; }
.v-return .v-charge { background: var(--t-amber); color: var(--t-amberink); }

/* ---- narrower windows ---- */

@media (max-width: 900px) {
  .till.piece { --u: 2.9; }
}
@media (max-width: 620px) {
  /* on a phone the tablet is shown larger and runs off the side of its
     stage, so the half that is seen can be read */
  .stage--hero .tablet { width: 190%; max-width: none; margin: 0; transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
  /* the film slides the tablet to keep what is moving in the half that shows */
  .stage--hero[data-look="right"] .tablet { transform: translateX(-47.4%); }
  .till.piece { --u: 3.3; }
  .v-kitchen, .v-pay, .v-variant, .v-stock { grid-template-columns: minmax(0, 1fr); gap: 1.6em; }
  .v-kitchen .paper-wrap, .v-pay .paper-wrap { width: 78%; margin: 0 auto; }
  .v-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v-weigh { width: 78%; margin: 0 auto; }
  .bo { --u: 1.25; grid-template-columns: 13em minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .t-screen { transform: none; }
  .f-hand, .f-slip, .f-sheet { display: none; }
}
