/*
 * Two more use-case pages (store orders, bookings): what they add to site.css and uses.css. Each has pieces of its
 * own: a day that goes by over a board, a packing slip, a week of bars; a phone to talk to, the day as a list,
 * a card of stamps, a ribbon of tickets.
 */

/* ── An opening with the headline across, and the words and the button under it side by side ── */
.pitch.across {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.pitch.across .big {
  max-width: 1040px;
}
.pitch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 64px;
  align-items: end;
  margin-top: 26px;
}
.pitch-row .sub,
.pitch-row .cta-row {
  margin-top: 0;
}

/* ── Store orders: a day at the shop. The sky behind the board is the hour it is. ── */
@property --sky1 {
  syntax: '<color>';
  inherits: true;
  initial-value: oklch(0.24 0.08 272);
}
@property --sky2 {
  syntax: '<color>';
  inherits: true;
  initial-value: oklch(0.38 0.15 300);
}
.day {
  position: relative;
  margin-top: clamp(36px, 4.4vw, 64px);
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--sky1), var(--sky2));
  color: white;
  overflow: hidden;
  transition:
    --sky1 1.4s ease,
    --sky2 1.4s ease;
}
.day[data-phase='night'] {
  --sky1: oklch(0.24 0.08 272);
  --sky2: oklch(0.38 0.15 300);
  --sun-x: 12%;
  --sun-y: 30%;
  --sun: oklch(0.95 0.03 250);
  --stars: 1;
}
.day[data-phase='morning'] {
  --sky1: oklch(0.7 0.15 62);
  --sky2: oklch(0.56 0.2 12);
  --sun-x: 30%;
  --sun-y: 70%;
  --sun: oklch(0.93 0.14 85);
  --stars: 0;
}
.day[data-phase='noon'] {
  --sky1: oklch(0.68 0.13 222);
  --sky2: oklch(0.52 0.18 262);
  --sun-x: 64%;
  --sun-y: 6%;
  --sun: oklch(0.97 0.1 100);
  --stars: 0;
}
.day[data-phase='pickup'] {
  --sky1: oklch(0.74 0.15 82);
  --sky2: oklch(0.58 0.2 35);
  --sun-x: 74%;
  --sun-y: 34%;
  --sun: oklch(0.95 0.13 90);
  --stars: 0;
}
.day[data-phase='evening'] {
  --sky1: oklch(0.5 0.19 322);
  --sky2: oklch(0.27 0.1 275);
  --sun-x: 90%;
  --sun-y: 78%;
  --sun: oklch(0.82 0.17 45);
  --stars: 0.7;
}
/* the stars, there at night */
.day::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, oklch(1 0 0 / 0.9) 1px, transparent 1.6px), radial-gradient(circle, oklch(1 0 0 / 0.6) 1px, transparent 1.4px);
  background-position:
    0 0,
    19px 27px;
  background-size:
    57px 61px,
    83px 71px;
  mask-image: linear-gradient(black, transparent 60%);
  opacity: var(--stars, 0);
  transition: opacity 1.4s ease;
  pointer-events: none;
}
/* the sun (or the moon), which crosses as the day goes */
.day-sun {
  position: absolute;
  top: var(--sun-y, 30%);
  left: var(--sun-x, 12%);
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun, white) 0 22%, color-mix(in oklab, var(--sun, white) 40%, transparent) 23%, transparent 68%);
  opacity: 0.8;
  transition:
    top 1.6s cubic-bezier(0.4, 0, 0.2, 1),
    left 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.day > :not(.day-sun) {
  position: relative;
}
.day-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: 22px;
}
.day-clock {
  display: flex;
  align-items: center;
  gap: 18px;
  text-shadow: 0 1px 3px oklch(0 0 0 / 0.28);
}
.day-clock b {
  font-size: clamp(44px, 5.4vw, 72px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.day-clock span {
  max-width: 520px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}
/* the moments of the day to pick from */
.day-moments {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  padding: 5px;
  border-radius: 999px;
  background: oklch(0 0 0 / 0.26);
  backdrop-filter: blur(8px);
}
.day-moments button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: oklch(1 0 0 / 0.82);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}
.day-moments b {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.day-moments button:not([aria-selected='true']):hover {
  background: oklch(1 0 0 / 0.14);
  color: white;
}
.day-moments [aria-selected='true'] {
  background: white;
  color: var(--foreground);
}
/* the board's window lets the sky through */
.day .window {
  border-color: oklch(1 0 0 / 0.34);
  background: oklch(1 0 0 / 0.14);
  color: var(--foreground);
  box-shadow: 0 30px 70px -34px oklch(0 0 0 / 0.6);
  backdrop-filter: blur(10px);
}
.day .window-bar {
  background: var(--card);
}
/* (room for the most a list holds, so the piece doesn't grow as the day goes) */
.day .window-body {
  min-height: 456px;
  padding: 16px;
  background: none;
}
.day .kb {
  gap: 12px;
}

/* ── Store orders: an order as a packing slip. Its items are a checklist to tick. ── */
.slip-wrap {
  filter: drop-shadow(0 22px 30px oklch(0.3 0.1 268 / 0.28));
  width: min(100%, 420px);
  margin-inline: auto;
  rotate: -1.5deg;
}
.slip {
  --z: 9px;
  padding: 26px 26px calc(var(--z) + 24px);
  background: var(--card);
  /* torn off along the bottom */
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
}
.slip header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.slip header small {
  display: block;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.slip header b {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.slip .pill {
  margin-top: 6px;
  padding: 3px 11px;
  font-size: 12.5px;
}
.slip-to {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--muted-foreground);
}
.slip-to b {
  color: var(--foreground);
  font-weight: 600;
}
.slip-items {
  display: grid;
  margin: 18px 0 0;
  padding: 6px 0;
  border-block: 1px dashed color-mix(in oklab, var(--foreground) 26%, transparent);
  list-style: none;
}
.slip-items button {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 9px 4px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--foreground);
  font: inherit;
  font-size: 15.5px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.slip-items button:hover {
  background: var(--accent);
}
.slip-items .box {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid color-mix(in oklab, var(--foreground) 34%, transparent);
  border-radius: 6px;
  color: transparent;
  font-size: 14px;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.slip-items i {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
}
.slip-items [aria-pressed='true'] .box {
  border-color: var(--status-done);
  background: var(--status-done);
  color: white;
}
.slip-items [aria-pressed='true'] span:nth-child(2) {
  color: var(--muted-foreground);
  text-decoration: line-through;
}
.slip-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.slip-fields > div {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--lane);
  font-size: 14px;
  font-weight: 600;
}
.slip-fields small {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted-foreground);
}
.slip-hint {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted-foreground);
  text-align: center;
}
.slip.all .slip-hint {
  color: var(--status-done);
  font-weight: 600;
}

/* ── Store orders: the week as the Timeline shows it. A bar from start to due, a mark for a due date alone. ── */
.weekline {
  margin-top: 44px;
}
.wk {
  --name: 264px;
  position: relative;
  font-size: 13.5px;
}
.wk-head,
.wk-row {
  display: grid;
  grid-template-columns: var(--name) minmax(0, 1fr);
  align-items: center;
}
.wk-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.wk-days span {
  padding: 10px 0;
  border-left: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted-foreground);
  text-align: center;
}
.wk-days .today {
  color: var(--primary);
  font-weight: 650;
}
.wk-row {
  border-top: 1px solid var(--border);
}
.wk-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 14px 0 18px;
}
.wk-name b {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wk-name i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone);
}
.wk-lane {
  position: relative;
  height: 46px;
  background: repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px calc(100% / 7));
}
.wk-row {
  --tone: var(--status-todo);
}
.wk .t-doing {
  --tone: var(--status-doing);
}
.wk .t-done {
  --tone: var(--status-done);
}
.wk .t-late {
  --tone: var(--c-red);
}
.wk .t-blue {
  --tone: var(--c-blue);
}
.wk .bar {
  position: absolute;
  top: 9px;
  left: calc(var(--from) / 7 * 100% + 5px);
  display: flex;
  align-items: center;
  width: calc(var(--len) / 7 * 100% - 9px);
  height: 28px;
  padding: 0 10px;
  border: 1px solid color-mix(in oklab, var(--tone) 50%, white);
  border-radius: 8px;
  background: color-mix(in oklab, var(--tone) 22%, white);
  color: color-mix(in oklab, var(--tone) 62%, black);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  transform-origin: left;
}
.wk .mark {
  position: absolute;
  top: 9px;
  left: calc((var(--day) + 0.26) / 7 * 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  color: color-mix(in oklab, var(--tone) 62%, black);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.wk .mark::before {
  content: '';
  width: 14px;
  height: 14px;
  margin: 0 3px;
  border-radius: 3px;
  background: var(--tone);
  rotate: 45deg;
}
/* today, down every row */
.wk-now {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--name) + (100% - var(--name)) * 1.035 / 7);
  width: 2px;
  background: var(--primary);
  pointer-events: none;
}
.wk-now::before {
  content: '';
  position: absolute;
  top: 0;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}
.js .weekline[data-seen] .bar,
.js .weekline[data-seen] .mark {
  opacity: 0;
  scale: 0.2 1;
}
.js .weekline[data-seen].seen .bar,
.js .weekline[data-seen].seen .mark {
  opacity: 1;
  scale: 1 1;
  transition:
    opacity 0.3s ease calc(var(--i) * 90ms + 150ms),
    scale 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i) * 90ms + 150ms);
}
.js .weekline[data-seen] .mark {
  transform-origin: left;
}

/* ── Store orders: what the assistant says at closing time, as the till's receipt ── */
.receipt-wrap {
  filter: drop-shadow(0 22px 30px oklch(0.3 0.1 268 / 0.28));
  width: min(100%, 400px);
  margin-inline: auto;
  rotate: 1.2deg;
}
.receipt {
  --z: 8px;
  padding: calc(var(--z) + 22px) 26px calc(var(--z) + 22px);
  background: var(--card);
  font-size: 14.5px;
  /* torn off at both ends */
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--z)) 51% repeat-x;
}
.r-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px dashed color-mix(in oklab, var(--foreground) 26%, transparent);
  font-weight: 600;
}
.r-head .avatar {
  width: 30px;
  height: 30px;
  margin: 0;
  font-size: 16px;
}
.r-head small {
  margin-left: auto;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted-foreground);
}
.r-lines {
  display: grid;
  gap: 7px;
  padding: 14px 0;
  border-bottom: 1px dashed color-mix(in oklab, var(--foreground) 26%, transparent);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13.5px;
}
.r-lines div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.r-lines div::after {
  content: '';
  flex: 1;
  order: 1;
  border-bottom: 1px dotted color-mix(in oklab, var(--foreground) 30%, transparent);
}
.r-lines b {
  order: 2;
  font-weight: 650;
}
.r-lines .tot {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 650;
}
.r-notes {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.r-notes li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  line-height: 1.4;
}
.r-notes li > span:first-child {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: color-mix(in oklab, var(--tone, var(--primary)) 16%, transparent);
  color: var(--tone, var(--primary));
  font-size: 14px;
}
.r-ask {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.r-ask span {
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.r-ask span:first-child {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}
.js .receipt[data-seen] :is(.r-lines div, .r-notes li, .r-ask) {
  opacity: 0;
  translate: 0 6px;
}
.js .receipt[data-seen].seen :is(.r-lines div, .r-notes li, .r-ask) {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 0.35s ease calc(var(--i) * 140ms + 200ms),
    translate 0.35s ease calc(var(--i) * 140ms + 200ms);
}

/* ── Bookings: the people of the salon, in their colours ── */
.salon [data-who='BE'],
.salon [data-who='CH'],
.salon [data-who='AN'] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  color: white;
}
.salon [data-who='BE'] {
  --g1: oklch(0.72 0.24 355);
  --g2: oklch(0.8 0.17 62);
}
.salon [data-who='CH'] {
  --g1: oklch(0.8 0.15 185);
  --g2: oklch(0.62 0.17 245);
}
.salon [data-who='AN'] {
  --g1: oklch(0.82 0.14 200);
  --g2: oklch(0.6 0.22 262);
}

/* ── Bookings: the opening. The words on one side; on the other a phone to tell your AI, over the day's board. ── */
.bookhero {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 3.4vw, 56px);
  align-items: center;
  padding-top: clamp(48px, 6vw, 96px);
}
.bookhero .label {
  margin: 0 0 20px;
}
.bookhero .big {
  font-size: clamp(34px, 4vw, 58px);
}
.bookhero .sub {
  margin-top: 24px;
  max-width: 540px;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--muted-foreground);
}
/* (room on the left for the phone, which stands in front of the window's edge) */
.bookscene {
  position: relative;
  padding: 0 0 40px 230px;
}
.bookscene .window-body {
  min-height: 452px;
  padding: 12px;
}
.bookscene .kb {
  gap: 10px;
}
.bookscene .kb-card {
  font-size: 12.5px;
}
.phone {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 244px;
  height: 456px;
  border: 7px solid oklch(0.2 0.02 270);
  border-radius: 38px;
  background: var(--card);
  box-shadow:
    0 40px 70px -28px oklch(0.25 0.12 275 / 0.6),
    0 6px 16px oklch(0 0 0 / 0.12);
  rotate: -3deg;
  overflow: hidden;
  text-align: left;
}
.phone-top {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 14px 11px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
}
.phone-top .avatar {
  width: 26px;
  height: 26px;
  margin: 0;
  font-size: 15px;
}
.phone-top small {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.phone-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  font-size: 12.5px;
  line-height: 1.4;
  overflow: hidden;
  scroll-behavior: smooth;
}
.phone-chat .msg {
  max-width: 92%;
  padding: 7px 10px;
  font-size: inherit;
}
.phone-chat .act {
  font-size: 11.5px;
}
.phone-say {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px 12px;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--lane);
  color: var(--muted-foreground);
  font-size: 12.5px;
}
.phone-say .icon {
  color: var(--primary);
  font-size: 15px;
}
/* it has reached someone's calendar */
.toast {
  position: absolute;
  top: -22px;
  right: -10px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 16px 10px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-lift);
  font-size: 13px;
  line-height: 1.3;
  opacity: 0;
  translate: 0 -10px;
  transition:
    opacity 0.35s ease,
    translate 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.toast.on {
  opacity: 1;
  translate: 0 0;
}
.toast img {
  width: 24px;
  height: 24px;
}
.toast small {
  display: block;
  font-size: 11.5px;
  color: var(--muted-foreground);
}
.toast b {
  font-weight: 600;
}

/* ── Bookings: the day in order. A slider is the time of day; buttons keep one person's bookings. ── */
.sheet-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 36px;
}
.who-is {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.who-is button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted-foreground);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.who-is button:first-child {
  padding-left: 16px;
}
.who-is .avatar {
  width: 24px;
  height: 24px;
  margin: 0;
  font-size: 9.5px;
}
.who-is button:not([aria-pressed='true']):hover {
  color: var(--foreground);
}
.who-is [aria-pressed='true'] {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--background);
}
.sheet-time {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 16px;
  min-width: 280px;
  max-width: 600px;
}
.sheet-time small {
  font-size: 13.5px;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.sheet-time b {
  width: 4.6em;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.sheet-time input {
  flex: 1;
  min-width: 0;
  height: 28px;
  margin: 0;
  background: none;
  appearance: none;
  cursor: pointer;
}
.sheet-time input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) var(--at, 0%), var(--border) var(--at, 0%));
}
.sheet-time input::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) var(--at, 0%), var(--border) var(--at, 0%));
}
.sheet-time input::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 3px solid var(--card);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 2px 8px oklch(0.3 0.15 268 / 0.4);
  appearance: none;
}
.sheet-time input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--card);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 2px 8px oklch(0.3 0.15 268 / 0.4);
}
.sheet .window {
  margin-top: 20px;
}
.sheet .tr {
  display: grid;
  grid-template-columns: 96px minmax(0, 1.5fr) minmax(0, 1fr) 64px 80px 124px;
  gap: 12px;
  align-items: center;
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  transition:
    background 0.3s,
    color 0.3s;
}
.sheet .th {
  padding-block: 9px;
  background: var(--lane);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted-foreground);
}
.sheet .t,
.sheet .p {
  font-variant-numeric: tabular-nums;
}
.sheet .n {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet .tr .avatar {
  width: 26px;
  height: 26px;
  margin: 0;
  font-size: 10px;
}
.sheet .tr .fchip {
  font-size: 12.5px;
  line-height: 22px;
}
.sheet .tr .pill {
  padding: 2px 10px;
  font-size: 12px;
}
.sheet .is-done {
  color: var(--muted-foreground);
}
.sheet .is-done .n {
  text-decoration: line-through;
}
.sheet .is-doing {
  background: color-mix(in oklab, var(--status-doing) 12%, transparent);
}
/* where the day has got to */
.sheet-line {
  position: relative;
  z-index: 1;
  height: 0;
  border-top: 2px solid var(--primary);
}
.sheet-line span {
  position: absolute;
  top: -11px;
  right: 16px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.sheet-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 13px 20px;
  font-size: 14.5px;
  color: var(--muted-foreground);
}
.sheet-foot b {
  color: var(--foreground);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* ── Bookings: a client's card, with a stamp for each visit ── */
.regular {
  width: min(100%, 470px);
  margin-inline: auto;
  padding: 24px;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-lift);
}
.regular-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.regular-head > span:first-child {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.62 0.25 300), oklch(0.68 0.25 350));
  color: white;
  font-size: 15px;
  font-weight: 650;
}
.regular-head b {
  display: block;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.regular-head small {
  font-size: 13px;
  color: var(--muted-foreground);
}
.regular-note {
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--lane);
  font-size: 13.5px;
  color: var(--muted-foreground);
}
.regular-note b {
  color: var(--foreground);
  font-weight: 600;
}
.stamps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.stamps li {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1px;
  aspect-ratio: 1;
  border: 2px dashed color-mix(in oklab, var(--tone) 70%, transparent);
  border-radius: 50%;
  background: color-mix(in oklab, var(--tone) 9%, transparent);
  color: color-mix(in oklab, var(--tone) 72%, black);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  rotate: var(--r, 0deg);
}
.stamps .icon {
  font-size: 18px;
}
.stamps small {
  font-size: 10px;
  font-weight: 500;
}
.stamps .next {
  border-style: dotted;
  border-color: color-mix(in oklab, var(--foreground) 30%, transparent);
  background: none;
  color: var(--muted-foreground);
}
.js .regular[data-seen] .stamps li {
  opacity: 0;
  scale: 1.6;
}
.js .regular[data-seen].seen .stamps li {
  opacity: 1;
  scale: 1;
  transition:
    opacity 0.2s ease calc(var(--i) * 170ms + 250ms),
    scale 0.4s cubic-bezier(0.2, 1.5, 0.4, 1) calc(var(--i) * 170ms + 250ms);
}
.regular-sum {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
  border-top: 1px solid var(--border);
}
.regular-sum div {
  padding: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted-foreground);
}
.regular-sum b {
  display: block;
  color: var(--foreground);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.regular-ai {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--primary) 8%, transparent);
  font-size: 14px;
  line-height: 1.45;
}
.regular-ai .avatar {
  width: 28px;
  height: 28px;
  margin: 0;
  font-size: 15px;
}

/* ── Bookings: other things people book, on tickets going by ── */
.ribbon {
  display: grid;
  gap: 14px;
  margin-top: 44px;
  padding-block: 6px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ribbon > div {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: ribbon 60s linear infinite;
}
.ribbon > div:nth-child(2) {
  animation-duration: 72s;
  animation-direction: reverse;
}
.ribbon:hover > div {
  animation-play-state: paused;
}
/* (Each row holds its tickets twice: it has gone round when the second set is where the first began.) */
.ribbon .again {
  display: contents;
}
@keyframes ribbon {
  to {
    transform: translateX(calc(-50% - 7px));
  }
}
.ticket {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 26px 11px 20px;
  border-radius: 14px;
  background: var(--card);
  white-space: nowrap;
  /* a bite out of each side, as a ticket has */
  mask:
    radial-gradient(8px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat,
    radial-gradient(8px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
  box-shadow: inset 0 0 0 1px var(--border);
}
.ticket b,
.ticket small {
  display: block;
  line-height: 1.3;
}
.ticket b {
  font-size: 15px;
  font-weight: 600;
}
.ticket small {
  font-size: 13px;
  color: var(--muted-foreground);
}
.pop-rose {
  --g1: oklch(0.68 0.24 15);
  --g2: oklch(0.6 0.24 330);
}
.pop-lime {
  --g1: oklch(0.86 0.19 125);
  --g2: oklch(0.68 0.17 165);
}

/* ── Bookings: what reaches people, as it looks on a phone's screen ── */
.notifs {
  display: grid;
  gap: 8px;
  width: min(100%, 330px);
  margin-inline: auto;
}
.notif {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 10px 14px 10px 10px;
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  border-radius: 18px;
  background: color-mix(in oklab, var(--card) 90%, transparent);
  box-shadow: 0 14px 26px -18px oklch(0.3 0.1 268 / 0.55);
  font-size: 13.5px;
  line-height: 1.3;
  backdrop-filter: blur(8px);
}
.notif > span:first-child {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--primary);
  font-size: 17px;
}
.notif img {
  width: 19px;
  height: 19px;
}
.notif b {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif small {
  display: block;
  font-size: 12px;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif time {
  align-self: start;
  font-size: 11.5px;
  color: var(--muted-foreground);
}
/* walk-ins, in the order they'll be seen: one is being moved up */
.inline {
  position: relative;
  display: grid;
  gap: 6px;
  width: min(100%, 300px);
  margin: 0 auto;
  padding: 12px;
  border-radius: 14px;
  background: var(--lane);
  list-style: none;
  font-size: 13.5px;
}
.inline li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.inline li .icon {
  color: var(--muted-foreground);
}
.inline li small {
  margin-left: auto;
  color: var(--muted-foreground);
}
.inline .lifted {
  position: relative;
  z-index: 1;
  box-shadow: 0 14px 28px rgb(0 0 0 / 0.22);
  rotate: -2deg;
  translate: 10px -6px;
}
.inline .pointer {
  right: 28px;
  bottom: -14px;
}

/* ── Narrow screens ── */
@media (max-width: 1180px) {
  /* (the story boards' lists are narrower here, so their cards are taller) */
  [data-duo='orders'] .duo-board {
    --room: 442px;
  }
  [data-duo='bookings'] .duo-board {
    --room: 460px;
  }
}
@media (max-width: 1100px) {
  .day-bar {
    align-items: flex-start;
  }
  .day-moments span {
    display: none;
  }
  .bookhero {
    grid-template-columns: minmax(0, 1fr);
  }
  .bookscene {
    width: min(100%, 720px);
    margin-inline: auto;
  }
}
@media (max-width: 900px) {
  [data-duo='orders'] .duo-board,
  [data-duo='bookings'] .duo-board {
    --room: 400px;
  }
  .pitch-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .day .window-body {
    overflow-x: auto;
  }
  .day .kb {
    min-width: 820px;
  }
  .wk {
    --name: 150px;
  }
  .wk .bar,
  .wk .mark {
    font-size: 0;
  }
  .sheet .tr {
    grid-template-columns: 78px minmax(0, 1fr) 62px 104px;
    gap: 10px;
    padding-inline: 14px;
    font-size: 14px;
  }
  .sheet .tr > :nth-child(3),
  .sheet .tr > :nth-child(4) {
    display: none;
  }
}
@media (max-width: 640px) {
  .day {
    margin-inline: -20px;
    padding: 20px 16px;
    border-radius: 0;
  }
  .day-clock {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .day-moments {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .day-moments button {
    padding: 0 11px;
  }
  .slip-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* the phone first, the day's board under it */
  .bookscene {
    display: grid;
    gap: 18px;
    padding: 0;
  }
  .phone {
    position: relative;
    order: -1;
    width: min(100%, 300px);
    height: 400px;
    margin-inline: auto;
    rotate: none;
  }
  .toast {
    top: auto;
    right: 8px;
    bottom: 8px;
  }
  .bookscene .window-body {
    min-height: 0;
    overflow-x: auto;
  }
  .bookscene .kb {
    min-width: 560px;
  }
  .sheet-time {
    min-width: 100%;
  }
  .stamps {
    gap: 6px;
  }
  .stamps li {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon {
    mask-image: none;
  }
  .ribbon > div {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    animation: none;
  }
  .ribbon .again {
    display: none;
  }
}
