@import url("../fonts/fonts.css");
/* Artisan Oven — Admin app. iOS-style layout built on v1's design rules
   (forest / cream / terracotta / sage, Baar Sophia, soft radii and shadows). */

@font-face {
  font-family: "Baar Sophia";
  src: url("../../fonts/BaarSophia.woff") format("woff"), url("../../fonts/BaarSophia.ttf") format("truetype");
  font-display: swap;
}

:root {
  --forest: #1F3A2E;
  --forest-deep: #16281F;
  --cream: #F7F3EC;
  --cream-warm: #F1EADD;
  --terracotta: #C65D3B;
  --terracotta-deep: #A84A2C;
  --sage: #6F8F72;
  --amber: #C98A1B;
  --text: #1F2A24;
  --text-soft: #5B5F5C;
  --text-faint: #8C918D;
  --card: #FFFFFF;
  --separator: rgba(31, 58, 46, 0.10);
  --fill: rgba(31, 58, 46, 0.06);
  --fill-strong: rgba(31, 58, 46, 0.10);

  --font-display: "Baar Sophia", "Iowan Old Style", Georgia, serif;
  --font-body: "Baar Sophia", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-num: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-soft: 0 12px 30px rgba(31, 58, 46, 0.10);
  --shadow-card: 0 1px 2px rgba(31, 58, 46, 0.06), 0 8px 24px rgba(31, 58, 46, 0.06);

  --ease-ios: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --tabbar-h: 58px;
  --sat: env(safe-area-inset-top);
  --sab: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--terracotta); }
[hidden] { display: none !important; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }

/* ── App frame ────────────────────────────────────────────────────────────── */
.app { min-height: 100%; }
.app-main { padding-bottom: calc(var(--sab) + 32px); }

/* Nav bar: small centred title that fades in once the large title scrolls away */
.navbar {
  position: sticky; top: 0; z-index: 20;
  padding: calc(var(--sat) + 10px) 16px 10px;
  display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: center; gap: 4px;
  background: rgba(247, 243, 236, 0.72);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 0.5px solid transparent;
  transition: border-color .25s, background .25s;
}
.navbar.scrolled { border-bottom-color: var(--separator); }
.navbar-title { font-weight: 700; font-size: 17px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; white-space: nowrap; }
.navbar.scrolled .navbar-title { opacity: 1; transform: none; }
.navbar-left { justify-self: start; min-width: 0; }
.navbar-right { justify-self: end; display: flex; gap: 6px; }
.nav-btn {
  background: none; border: 0; color: var(--terracotta); font-size: 17px; font-weight: 600;
  padding: 6px 8px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px;
  transition: opacity .15s, background .15s;
}
.nav-btn:active { opacity: .45; }
.nav-btn svg { width: 22px; height: 22px; }
.nav-btn { white-space: nowrap; }
/* A crowded nav bar on a phone keeps the icon and drops the word (the button's aria-label
   still names it): "Add order" used to wrap onto two lines beside the Orders/Checklist switch. */
@media (max-width: 430px) { .nav-btn .nav-label { display: none; } }

.view { padding: 0 16px; max-width: 860px; margin: 0 auto; animation: viewIn .38s var(--ease-out) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.large-title {
  font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 1.1;
  color: var(--forest); margin: 4px 0 2px;
}
.subtitle { color: var(--text-soft); margin: 0 0 18px; font-size: 15px; }

/* ── Tab bar (phones) / sidebar (wide screens) ────────────────────────────── */
.tabbar {
  display: none;                 /* phones: replaced by the hamburger menu below */
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tabbar-h) + var(--sab)); padding-bottom: var(--sab);
  background: rgba(247, 243, 236, 0.82);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--separator);
}
.tab {
  background: none; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--text-faint); font-size: 10px; font-weight: 600; position: relative;
  transition: color .2s;
}
.tab svg { width: 25px; height: 25px; transition: transform .35s var(--ease-ios); }
.tab.active { color: var(--forest); }
.tab.active svg { transform: translateY(-1px) scale(1.06); }
.tab:active svg { transform: scale(.88); }
.tab-badge {
  position: absolute; top: 5px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--terracotta); color: #fff; font: 700 11px/18px var(--font-num);
  text-align: center; animation: pop .35s var(--ease-ios);
}
/* ── Hamburger menu (phones) ──────────────────────────────────────────────── */
.menu-btn {
  grid-column: 1; position: relative; width: 44px; height: 44px; margin-left: -8px;
  display: grid; place-items: center; background: none; border: 0; border-radius: 12px; color: var(--forest);
}
.menu-btn svg { width: 26px; height: 26px; }
.menu-btn:active { background: var(--fill); }
.menu-btn.has-badge::after {
  content: ''; position: absolute; top: 8px; right: 7px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--terracotta); border: 2px solid var(--cream);
}
.navbar-left { grid-column: 2; } .navbar-title { grid-column: 3; } .navbar-right { grid-column: 4; }
.menu-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(20, 28, 22, .35); animation: menuFade .2s ease both; }
.menu-panel {
  position: fixed; z-index: 41; left: 10px; right: 10px; top: calc(var(--sat) + 58px);
  max-height: calc(100dvh - var(--sat) - var(--sab) - 76px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--card); border-radius: 18px; box-shadow: 0 18px 50px rgba(20, 28, 22, .28);
  padding: 6px; display: grid; gap: 2px; animation: menuDrop .22s var(--ease-out) both;
}
.menu-item {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 50px; padding: 0 14px;
  background: none; border: 0; border-radius: 12px; font-size: 17px; font-weight: 600; text-align: left; color: var(--text);
}
.menu-item svg { width: 24px; height: 24px; color: var(--text-soft); flex-shrink: 0; }
.menu-item.active { background: rgba(111, 143, 114, .16); color: var(--forest); }
.menu-item.active svg { color: var(--forest); }
.menu-item:active { background: var(--fill); }
.menu-item .tab-badge { position: static; margin-left: auto; }
body.menu-open { overflow: hidden; }
@keyframes menuFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes menuDrop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.menu-panel { transform-origin: 26px 0; }               /* grows out of the hamburger */
.menu-panel.closing { animation: menuLift .16s var(--ease-out) both; }
.menu-backdrop.closing { animation: menuFadeOut .16s ease both; }
@keyframes menuLift { to { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes menuFadeOut { to { opacity: 0; } }

@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (min-width: 900px) {
  .menu-btn, .menu-panel, .menu-backdrop { display: none !important; }
  .app { display: grid; grid-template-columns: 250px 1fr; }
  .tabbar {
    position: sticky; top: 0; height: 100vh; padding: 28px 14px; display: flex; flex-direction: column;
    gap: 4px; border-top: 0; border-right: 0.5px solid var(--separator); background: var(--cream-warm);
  }
  .tabbar::before {
    content: "ARTISAN OVEN"; font-weight: 700; letter-spacing: .16em; color: var(--forest);
    font-size: 14px; padding: 0 12px 22px;
  }
  .tab { flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 16px; padding: 11px 12px; border-radius: 12px; }
  .tab svg { width: 22px; height: 22px; }
  .tab.active { background: var(--card); box-shadow: var(--shadow-card); }
  .tab-badge { position: static; margin-left: auto; }
  .app-main { padding-bottom: 40px; min-width: 0; }
  .navbar { background: rgba(247, 243, 236, 0.85); }
  .view { padding: 0 28px; }
}

/* ── Grouped lists (iOS inset style) ──────────────────────────────────────── */
.section { margin: 0 0 26px; }
.section-header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 4px 7px; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-soft);
}
.section-header .nav-btn { font-size: 14px; text-transform: none; letter-spacing: 0; padding: 0; }
.section-footer { padding: 7px 4px 0; font-size: 13px; color: var(--text-soft); }
/* Collapsible section: tap the header to show/hide (closed by default). */
.collapsible > summary { list-style: none; cursor: pointer; align-items: center; -webkit-tap-highlight-color: transparent; }
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible .chevron { display: inline-flex; transition: transform .25s var(--ease-out); }
.collapsible .chevron svg { width: 8px; height: 13px; color: var(--text-soft); }
.collapsible[open] .chevron { transform: rotate(90deg); }
.collapsible[open] .collapsible-body { animation: rowIn .3s var(--ease-out) both; }
.group { background: var(--card); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.row {
  display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 16px;
  position: relative; background: var(--card); width: 100%; border: 0; text-align: left;
  transition: background .15s;
  animation: rowIn .4s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 28ms);
}
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.row + .row::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--separator);
}
.row.indent + .row.indent::before { left: 60px; }
button.row:active, .row.tappable:active { background: var(--fill); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { font-size: 14px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-value { color: var(--text-soft); white-space: nowrap; }
.chevron { width: 8px; height: 13px; color: #C4C4C4; flex-shrink: 0; }
.row-icon {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0;
  color: #fff; background: var(--forest);
}
.row-icon svg { width: 18px; height: 18px; }
.row-icon.terracotta { background: var(--terracotta); }
.row-icon.sage { background: var(--sage); }
.row-icon.amber { background: var(--amber); }
.row.destructive .row-title { color: var(--terracotta); }
.row.centered { justify-content: center; }
.row.centered .row-title { color: var(--terracotta); }
.empty { padding: 36px 20px; text-align: center; color: var(--text-soft); }
.empty svg { width: 44px; height: 44px; color: var(--text-faint); display: block; margin: 0 auto 10px; }

/* Form rows */
.field-row { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 6px 16px; position: relative; }
.field-row + .field-row::before, .row + .field-row::before, .field-row + .row::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--separator);
}
.field-row > label { flex: 0 0 auto; min-width: 118px; font-weight: 600; }
.field-row > input, .field-row > select {
  flex: 1; min-width: 0; border: 0; background: transparent; text-align: right; padding: 8px 0; outline: none;
  color: var(--text-soft);
}
.field-row > input:focus, .field-row > select:focus { color: var(--text); }
.field-stack { padding: 12px 16px; position: relative; }
.field-stack + .field-stack::before, .field-row + .field-stack::before, .field-stack + .field-row::before {
  content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--separator);
}
.field-stack > label { display: block; font-weight: 600; margin-bottom: 6px; }
.field-stack > textarea, .field-stack > input, .field-stack > select {
  width: 100%; border: 0; background: var(--fill); border-radius: var(--radius-sm); padding: 11px 12px;
  outline: none; resize: vertical; min-height: 44px; transition: box-shadow .2s;
}
.field-stack > textarea { min-height: 84px; }
.field-stack > textarea:focus, .field-stack > input:focus { box-shadow: 0 0 0 2px rgba(31, 58, 46, .25); }
.hint { font-size: 13px; color: var(--text-soft); margin-top: 6px; }

/* ── Controls ─────────────────────────────────────────────────────────────── */
.switch { position: relative; display: inline-block; vertical-align: middle; width: 51px; height: 31px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span {
  position: absolute; inset: 0; border-radius: 16px; background: rgba(120, 120, 128, .22);
  transition: background .28s var(--ease-ios);
}
.switch span::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16);
  transition: transform .32s var(--ease-ios), width .2s;
}
.switch input:checked + span { background: var(--sage); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:active + span::after { width: 33px; }
.switch input:checked:active + span::after { transform: translateX(14px); }
.switch.big { width: 64px; height: 38px; }
.switch.big span::after { width: 34px; height: 34px; }
.switch.big input:checked + span::after { transform: translateX(26px); }

.segmented {
  display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; position: relative;
  background: rgba(118, 118, 128, 0.12); border-radius: 10px; padding: 2px; margin-bottom: 14px;
}
.segmented button {
  position: relative; z-index: 1; border: 0; background: none; padding: 7px 8px; font-size: 14px;
  font-weight: 600; color: var(--text); border-radius: 8px; transition: color .2s;
}
.segmented .thumb {
  position: absolute; top: 2px; bottom: 2px; left: 2px; border-radius: 8px; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04);
  transition: transform .35s var(--ease-ios), width .35s var(--ease-ios);
}
.segmented.small button { padding: 5px 6px; font-size: 13px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; border: 0; border-radius: 999px; padding: 7px 14px; background: var(--card);
  box-shadow: var(--shadow-card); font-weight: 600; font-size: 14px; color: var(--text-soft);
  transition: background .2s, color .2s, transform .15s;
}
.chip:active { transform: scale(.95); }
.chip.on { background: var(--forest); color: #fff; }

.search {
  display: flex; align-items: center; gap: 8px; background: rgba(118, 118, 128, 0.12); border-radius: 11px;
  padding: 0 10px; height: 38px; margin-bottom: 12px;
}
.search svg { width: 17px; height: 17px; color: var(--text-faint); flex-shrink: 0; }
.search input { flex: 1; border: 0; background: none; outline: none; font-size: 16px; min-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 700; font-size: 16px;
  background: var(--forest); color: #fff; transition: transform .15s var(--ease-out), opacity .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; }
.btn.full { width: 100%; }
.btn.terracotta { background: var(--terracotta); }
.btn.tinted { background: var(--fill-strong); color: var(--forest); }
.btn.danger { background: rgba(198, 93, 59, .12); color: var(--terracotta); }
.btn svg { width: 20px; height: 20px; }
.btn .spinner { width: 18px; height: 18px; border-width: 2px; border-color: rgba(255,255,255,.35); border-top-color: #fff; }

.stepper { display: inline-flex; align-items: center; background: var(--fill); border-radius: 10px; overflow: hidden; }
.stepper button { border: 0; background: none; width: 40px; height: 34px; font-size: 20px; color: var(--forest); }
.stepper button:active { background: var(--fill-strong); }
.stepper .value { min-width: 44px; text-align: center; font: 700 16px var(--font-num); }

.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap; border: 0;
  transition: transform .2s var(--ease-ios), background .25s, color .25s;
}
.pill.paid { background: rgba(111, 143, 114, .18); color: #3F6443; }
.pill.unpaid { background: rgba(198, 93, 59, .13); color: var(--terracotta-deep); }
.pill.partial { background: rgba(201, 138, 27, .16); color: #8A5C0C; }
.pill.neutral { background: var(--fill); color: var(--text-soft); }
button.pill:active { transform: scale(.9); }
.ref {
  font: 700 13px var(--font-mono); color: var(--forest); background: var(--fill); border-radius: 8px;
  padding: 4px 7px; flex-shrink: 0; min-width: 44px; text-align: center;
}
.allergy { color: var(--terracotta); font-size: 14px; }
.cash-badge {
  display: inline-block; margin-left: 6px;
  padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 700;
  background: rgba(201,138,27,.15); color: #7a4d00;
  letter-spacing: .03em; vertical-align: middle; line-height: 1.6;
}

/* ── Cards (Today) ────────────────────────────────────────────────────────── */
.card {
  background: var(--card); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-card);
  animation: rowIn .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms);
}
.hero { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-bottom: 14px; }
.hero-state { font-family: var(--font-display); font-size: 26px; color: var(--forest); line-height: 1.15; }
.hero-detail { color: var(--text-soft); font-size: 14.5px; margin-top: 4px; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 2px; }
.status-dot.open { background: var(--sage); box-shadow: 0 0 0 4px rgba(111, 143, 114, .2); animation: pulse 2.4s infinite; }
.status-dot.closed { background: var(--terracotta); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(111, 143, 114, 0); } }

.capacity { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.ring { width: 112px; height: 112px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.ring .track { stroke: var(--fill-strong); }
.ring .value { stroke: var(--forest); transition: stroke-dashoffset 1s var(--ease-out), stroke .4s; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label b { font: 800 26px var(--font-num); color: var(--forest); line-height: 1; }
.ring-label span { font-size: 12px; color: var(--text-soft); }
.cap-meta { display: grid; gap: 8px; }
.cap-meta .row-sub { white-space: normal; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 14px 16px; }
.stat-label { font-size: 13px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font: 800 26px var(--font-num); color: var(--forest); margin-top: 4px; letter-spacing: -.02em; }
.stat-sub { font-size: 13px; color: var(--text-soft); margin-top: 2px; }
.stat.tappable { cursor: pointer; transition: transform .15s var(--ease-out); }
.stat.tappable:active { transform: scale(.97); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bar { height: 8px; border-radius: 4px; background: var(--fill-strong); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--sage); border-radius: 4px; width: 0; transition: width 1s var(--ease-out); }

.actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 26px; }
/* Two columns: an odd last tile takes the whole row instead of sitting alone on the left. */
@media (max-width: 699px) { .actions > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 700px) { .actions { grid-template-columns: repeat(4, 1fr); } }
.action {
  border: 0; background: var(--card); border-radius: var(--radius-md); padding: 16px 14px; text-align: left;
  box-shadow: var(--shadow-card); display: grid; gap: 10px; transition: transform .15s var(--ease-out);
  animation: rowIn .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms);
  text-decoration: none; color: inherit;
}
.action:active { transform: scale(.96); }
.action .row-icon { width: 36px; height: 36px; }
.action b { font-size: 15.5px; }

/* ── Sheets & action sheets ───────────────────────────────────────────────── */
.backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(15, 20, 17, 0.38);
  opacity: 0; transition: opacity .35s var(--ease-ios);
}
.backdrop.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: calc(100% - var(--sat) - 28px);
  background: var(--cream); border-radius: 14px 14px 0 0; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .5s var(--ease-ios);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .18);
}
.sheet.show { transform: translateY(0); }
.sheet.dragging, .sheet.js-motion, .backdrop.js-motion { transition: none; }
.sheet.js-motion { will-change: transform; }
.sheet-grabber, .sheet-header { touch-action: none; }   /* a drag here is always the sheet's */
@media (min-width: 700px) {
  .sheet { left: 50%; right: auto; width: 620px; bottom: auto; top: 50%; border-radius: 18px;
           max-height: 86vh; transform: translate(-50%, -46%) scale(.96); opacity: 0;
           transition: transform .42s var(--ease-ios), opacity .3s; }
  .sheet.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .sheet-grabber { display: none; }
}
.sheet-grabber { width: 36px; height: 5px; border-radius: 3px; background: rgba(60, 60, 67, .3); margin: 7px auto 0; flex-shrink: 0; }
.sheet-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 10px 8px;
  border-bottom: 0.5px solid var(--separator); flex-shrink: 0;
}
.sheet-header h2 { margin: 0; font-size: 17px; font-weight: 700; text-align: center; }
.sheet-header .nav-btn:last-child { justify-self: end; }
.sheet-body { overflow-y: auto; padding: 18px 16px calc(24px + var(--sab)); -webkit-overflow-scrolling: touch; }

.action-sheet {
  position: fixed; left: 8px; right: 8px; bottom: calc(8px + var(--sab)); z-index: 61;
  transform: translateY(120%); transition: transform .45s var(--ease-ios); max-width: 520px; margin: 0 auto;
}
.action-sheet.show { transform: none; }
.action-sheet .group { border-radius: 14px; margin-bottom: 8px; }
.as-title { padding: 14px 16px; text-align: center; font-size: 13.5px; color: var(--text-soft); border-bottom: 0.5px solid var(--separator); }
.as-title b { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }
.as-btn { display: block; width: 100%; border: 0; background: var(--card); padding: 16px; font-size: 18px; color: var(--forest); font-weight: 600; }
.as-btn + .as-btn { border-top: 0.5px solid var(--separator); }
.as-btn:active { background: var(--fill); }
.as-btn.danger { color: var(--terracotta); }
.as-btn.cancel { font-weight: 700; border-radius: 14px; }

/* ── Toast ────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; top: calc(var(--sat) + 12px); z-index: 80; transform: translate(-50%, -140%);
  background: rgba(31, 42, 36, .92); color: #fff; padding: 11px 16px; border-radius: 14px;
  display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; max-width: calc(100% - 32px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); opacity: 0;
  transition: transform .45s var(--ease-ios), opacity .25s ease;
  backdrop-filter: blur(10px);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast button { border: 0; background: none; color: #F0C3B3; font-weight: 700; padding: 0 0 0 6px; }
.toast svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Login ────────────────────────────────────────────────────────────────── */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(circle at 30% 10%, #2B4A3C 0%, var(--forest) 45%, var(--forest-deep) 100%);
}
.login-card {
  width: 100%; max-width: 360px; background: var(--cream); border-radius: 26px; padding: 34px 26px 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35); text-align: center; animation: loginIn .7s var(--ease-ios) both;
}
@keyframes loginIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.login-mark { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center;
  background: var(--forest); color: #fff; box-shadow: var(--shadow-soft); }
.login-mark svg { width: 34px; height: 34px; }
.login h1 { font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--forest); margin: 0; }
.login p { color: var(--text-soft); margin: 4px 0 22px; }
.pw { position: relative; margin-bottom: 14px; }
.pw input {
  width: 100%; height: 50px; border: 0; border-radius: 14px; background: var(--card); padding: 0 48px 0 16px;
  font-size: 17px; box-shadow: inset 0 0 0 1px var(--separator); outline: none; transition: box-shadow .2s;
}
.pw input:focus { box-shadow: inset 0 0 0 2px var(--forest); }
.pw button { position: absolute; right: 6px; top: 7px; width: 36px; height: 36px; border: 0; background: none; color: var(--text-faint); }
.pw button svg { width: 20px; height: 20px; }
.login-error { color: var(--terracotta); font-weight: 600; font-size: 14px; min-height: 20px; margin-top: 10px; }
.shake { animation: shake .45s var(--ease-out); }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }

/* ── Finances: editable cost rows ─────────────────────────────────────────── */
.cost-row { padding: 10px 16px; position: relative; animation: rowIn .35s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 25ms); }
.cost-row + .cost-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--separator); }
.cost-line { display: flex; align-items: center; gap: 8px; }
.cost-line.small { margin-top: 6px; font-size: 14px; flex-wrap: wrap; }
.cost-input { border: 0; background: var(--fill); border-radius: 8px; padding: 7px 9px; min-width: 0; outline: none; transition: box-shadow .2s; }
.cost-line:not(.small) > .cost-input:first-child { flex: 1; background: transparent; padding-left: 0; font-size: 16px; }
.cost-input:focus { box-shadow: 0 0 0 2px rgba(31, 58, 46, .25); background: var(--card); }
.cost-repeat { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--text-soft); font-size: 13px; }
.cost-repeat .switch { transform: scale(.8); transform-origin: right center; }
.cost-del { border: 0; background: none; color: var(--terracotta); width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; }
.cost-del:active { background: rgba(198, 93, 59, .1); }
.cost-del svg { width: 19px; height: 19px; }

/* ── Misc ─────────────────────────────────────────────────────────────────── */
.spinner {
  width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--fill-strong); border-top-color: var(--forest);
  animation: spin .8s linear infinite, spinnerIn .25s ease .15s both; margin: 30px auto; display: block;
}
@keyframes spinnerIn { from { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--fill) 25%, var(--fill-strong) 50%, var(--fill) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.summary-strip { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--text-soft); margin: 0 4px 12px; }
.summary-strip b { color: var(--text); font-family: var(--font-num); }
.warn-card { background: rgba(198, 93, 59, .09); color: var(--terracotta-deep); border-radius: var(--radius-md);
  padding: 12px 14px; font-weight: 600; margin-bottom: 18px; display: flex; gap: 10px; }
.warn-card svg { width: 20px; height: 20px; flex-shrink: 0; }
.pending-title svg { width: 18px; height: 18px; flex-shrink: 0; }
.preview { background: var(--card); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-card); font-size: 14.5px; }
.preview dt { font-size: 12px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .05em; margin-top: 8px; }
.preview dd { margin: 2px 0 0; white-space: pre-wrap; }
.kv { display: flex; justify-content: space-between; gap: 12px; }
.class-title { font-family: var(--font-display); font-size: 22px; color: var(--forest); margin: 18px 4px 8px; }
.tick { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--separator); flex-shrink: 0; }
.tick.done { background: var(--sage); border-color: var(--sage); }

/* ── Spreadsheet grid (Expenses tab) ─────────────────────────────────────── */
.xl-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--fill-strong); border-radius: 12px; box-shadow: var(--shadow-card); }
.xl { width: 100%; border-collapse: collapse; font: 13px/1.3 var(--font-num); font-variant-numeric: tabular-nums; }
.xl th, .xl td { border: 1px solid var(--separator); padding: 0; height: 36px; }
.xl tr > :first-child { border-left: 0; }
.xl tr > :last-child { border-right: 0; }
.xl thead th { position: sticky; top: 0; z-index: 3; background: #EDF0EA; color: var(--text-soft); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; padding: 0 10px; text-align: left; white-space: nowrap; border-top: 0; }
.xl th.r, .xl td.r { text-align: right; }
.xl .rn { width: 38px; min-width: 38px; text-align: center; background: #F3F5F1; color: var(--text-faint); font-size: 11px; font-weight: 600; padding: 0; }
.xl td.v { padding: 0 10px; white-space: nowrap; }
.xl-cell { display: block; width: 100%; height: 35px; border: 0; border-radius: 0; background: transparent; padding: 0 10px;
  outline: none; font: inherit; color: var(--text); min-width: 0; }
.xl-cell.r { text-align: right; }
.xl-cell::placeholder { color: var(--text-faint); }
.xl select.xl-cell { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238C918D' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center; }
.xl tbody td { position: relative; transition: background .15s; }
.xl tbody tr:hover > td:not(.rn) { background: rgba(111, 143, 114, .07); }
.xl tbody td:focus-within { box-shadow: inset 0 0 0 2px var(--forest); background: #fff !important; z-index: 2; }
.xl td.saved { animation: xlSaved 1.1s var(--ease-out); }
.xl td.err { box-shadow: inset 0 0 0 2px var(--terracotta); }
@keyframes xlSaved { from { background: rgba(111, 143, 114, .38); } to { background: transparent; } }
.xl tr.new > td:not(.rn) { background: rgba(201, 138, 27, .05); }
.xl tr.new .rn { color: var(--sage); font-size: 16px; font-weight: 700; }
.xl tr.total > td { background: #EDF0EA; font-weight: 800; padding: 0 10px; border-top: 2px solid var(--fill-strong); }
.xl td.act { width: 36px; min-width: 36px; }
.xl-btn { width: 36px; height: 35px; display: grid; place-items: center; border: 0; background: none; color: var(--terracotta); opacity: 0; transition: opacity .15s; }
.xl-btn svg { width: 16px; height: 16px; }
.xl tr:hover .xl-btn, .xl-btn:focus-visible { opacity: 1; }
.xl-btn.add { color: var(--forest); opacity: 1; }
/* Paid / Needs paying toggle in a grid row */
.xl-pill {
  display: block; width: 100%; height: 35px; padding: 0 10px; border: 0; background: transparent; cursor: pointer;
  font: 700 12px/1 var(--font-body, inherit); color: #7a4d00; text-align: left; white-space: nowrap;
  transition: background .15s, color .15s;
}
.xl-pill:not(.on) { background: rgba(201, 138, 27, .13); }
.xl-pill.on { color: var(--forest); background: rgba(111, 143, 114, .22); }
.xl-pill:active { opacity: .6; }
.xl-btn:disabled { opacity: .35; cursor: default; }
@media (hover: none) { .xl-btn { opacity: .7; } }
.xl-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; font-size: 13px; color: var(--text-soft); }
.xl-tools select, .xl-tools input { padding: 6px 10px; border: 1px solid var(--fill-strong); border-radius: 8px; background: var(--card); font-size: 13px; }
.xl-tools .link { border: 0; background: none; color: var(--text-soft); text-decoration: underline; font-size: 13px; padding: 4px; }
.xl-hint { font-size: 12px; color: var(--text-faint); margin-top: 8px; }
.partner-card { cursor: pointer; transition: box-shadow .2s, transform .2s; }
.partner-card.active { box-shadow: 0 0 0 2px var(--forest), var(--shadow-card); }

/* ── Feel ─────────────────────────────────────────────────────────────────── */
/* Entrances play once per screen; live refreshes then update in place (see settleAfterEntrance). */
.settled .row, .settled .card, .settled .action, .settled .cost-row, .settled .k-row,
.settled .collapsible-body { animation: none; }
/* Taps answer at once: no double-tap-zoom wait, no text selection on a long press. */
button, .row, .chip, .tab, .menu-item, .action, .stat.tappable, .k-row, .switch, summary { touch-action: manipulation; }
button, .tab, .menu-item, .chip, .action, .nav-btn, .segmented, summary { -webkit-user-select: none; user-select: none; }
/* Keyboard users see where they are; mouse and touch don't get a ring. */
:focus-visible { outline: 2.5px solid rgba(198, 93, 59, .6); outline-offset: 2px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }
.large-title { letter-spacing: -0.01em; }

@media (prefers-reduced-transparency: reduce) {
  .navbar { background: var(--cream); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tabbar { background: var(--cream-warm); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .toast { background: rgb(31, 42, 36); backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --separator: rgba(31, 58, 46, .35); --text-soft: #3E4340; --text-faint: #5C615D; }
  .navbar, .tabbar { background: var(--cream); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .group, .card, .chip { box-shadow: 0 0 0 1px rgba(31, 58, 46, .3); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* ── Print: the class-grouped checklist only ─────────────────────────────── */
@media print {
  body { background: #fff; }
  .tabbar, .navbar, .no-print, .toast, .large-title, .subtitle { display: none !important; }
  .app { display: block; }
  .view { max-width: none; padding: 0; animation: none; }
  .group, .card { box-shadow: none; border: 1px solid #ddd; }
  .row { animation: none; break-inside: avoid; }
  .class-title { break-after: avoid; }
}

/* ── Pizza Night Checklist view ──────────────────────────────────────────── */
.checklist-header-row { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 20px; }
.checklist-total { font-size: 14px; color: var(--text-soft); font-variant-numeric: tabular-nums; }

.checklist-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.checklist-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 3px; }
.checklist-sec-title { font-size: 16px; font-weight: 700; color: var(--forest); display: block; }
.checklist-prog { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.checklist-prog-bar { width: 64px; height: 4px; background: var(--fill-strong); border-radius: 2px; overflow: hidden; }
.checklist-prog-fill { height: 100%; background: var(--sage); border-radius: 2px; transition: width .25s var(--ease-out); width: 0; }
.checklist-prog-label { font-size: 12px; color: var(--text-soft); font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }

.checklist-list { list-style: none; margin: 0; padding: 0; }
.checklist-row { cursor: pointer; user-select: none; }
.checklist-row .row-main { pointer-events: none; }
.checklist-title { font-weight: 500; white-space: normal; line-height: 1.4; }
.checklist-done .checklist-title { color: var(--text-faint); text-decoration: line-through; text-decoration-color: var(--text-faint); }

.checklist-cb {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; min-width: 20px;
  border: 1.5px solid var(--separator); border-radius: 6px;
  background: var(--cream); cursor: pointer; position: relative;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.checklist-cb:checked { background: var(--sage); border-color: var(--sage); }
.checklist-cb:checked::after {
  content: ''; position: absolute; top: 4px; left: 6px;
  width: 5px; height: 9px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(42deg);
}
.checklist-delete {
  background: none; border: none; padding: 4px 2px; color: var(--text-faint);
  font-size: 18px; line-height: 1; cursor: pointer; flex-shrink: 0;
  transition: color .15s;
}
.checklist-delete:hover { color: var(--terracotta); }

.checklist-add-row {
  display: flex; align-items: center; padding: 0 16px; min-height: 44px;
  border-top: 0.5px solid var(--separator);
}
.checklist-add-btn {
  display: flex; align-items: center; gap: 7px; width: 100%;
  background: none; border: none; padding: 11px 0;
  font-size: 14px; font-weight: 600; color: var(--text-soft);
  text-align: left; cursor: pointer; transition: color .15s;
}
.checklist-add-btn svg { width: 16px; height: 16px; color: var(--text-soft); }
.checklist-add-btn:hover { color: var(--forest); }
.checklist-add-row.open .checklist-add-btn { display: none; }
.checklist-add-field { display: none; align-items: center; gap: 8px; width: 100%; padding: 8px 0; }
.checklist-add-row.open .checklist-add-field { display: flex; }
.checklist-add-input {
  flex: 1; min-width: 0;
  background: var(--fill); border: 1.5px solid var(--separator);
  border-radius: 8px; padding: 7px 10px; font-size: 15px; outline: none;
  transition: border-color .15s;
}
.checklist-add-input:focus { border-color: var(--sage); }
.checklist-add-confirm, .checklist-add-cancel {
  background: none; border: none; padding: 4px 6px; border-radius: 6px;
  font-size: 15px; cursor: pointer; flex-shrink: 0; transition: background .1s;
}
.checklist-add-confirm { color: var(--sage); }
.checklist-add-cancel  { color: var(--text-faint); }
.checklist-add-confirm:hover { background: var(--fill); }
.checklist-add-cancel:hover  { background: var(--fill); }

.checklist-notes-wrap { padding: 12px 16px; }
.checklist-notes-area {
  width: 100%; resize: vertical; min-height: 90px;
  background: var(--fill); border: 1.5px solid var(--separator);
  border-radius: 10px; padding: 10px 12px;
  font-size: 15px; line-height: 1.5; outline: none;
  transition: border-color .15s;
}
.checklist-notes-area:focus { border-color: var(--sage); }

/* ── Fair Operations (views/fair.js) ─────────────────────────────────────── */
.fair-windows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .fair-windows { grid-template-columns: repeat(4, 1fr); } }
.fw-tile {
  border: 0; background: var(--card); border-radius: var(--radius-md); padding: 12px 14px; text-align: left;
  box-shadow: var(--shadow-card); display: grid; gap: 6px; justify-items: start;
  transition: transform .15s var(--ease-out); animation: rowIn .45s var(--ease-out) both;
  animation-delay: calc(min(var(--i, 0), 12) * 30ms);
}
.fw-tile:active { transform: scale(.97); }
.fw-tile .bar { width: 100%; margin-top: 0; }
.fw-time { font-weight: 700; font-size: 15px; color: var(--forest); }
.fw-count { font: 500 14px var(--font-num); color: var(--text-soft); }
.fw-count b { font: 800 20px var(--font-num); color: var(--forest); }
.warn-card b { display: block; margin-bottom: 2px; }

/* ── Till (views/till.js) ─────────────────────────────────────────────────── */
@media (min-width: 1100px) { .till-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: start; } }
.till-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .till-menu { grid-template-columns: repeat(3, 1fr); } }
.till-item {
  border: 0; background: var(--card); border-radius: var(--radius-md); padding: 16px 14px; min-height: 96px; text-align: left;
  box-shadow: var(--shadow-card); display: grid; gap: 6px; align-content: space-between;
  transition: transform .15s var(--ease-out); animation: rowIn .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms);
}
.till-item:active { transform: scale(.96); }
.till-item:disabled { opacity: .45; }
.till-item-name { font-weight: 700; font-size: 16px; color: var(--forest); line-height: 1.25; }
.till-item-price { font: 600 14px var(--font-num); color: var(--terracotta); }
.till-windows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 700px) { .till-windows { grid-template-columns: repeat(4, 1fr); } }
.till-window {
  border: 1.5px solid transparent; background: var(--card); border-radius: 12px; padding: 10px; text-align: left;
  box-shadow: var(--shadow-card); display: grid; gap: 2px; min-height: 58px; transition: transform .15s var(--ease-out);
}
.till-window:active { transform: scale(.96); }
.till-window.on { background: var(--forest); color: #fff; }
.till-window.warn:not(.on) { opacity: .55; }
.till-window-time { font: 700 14px var(--font-num); }
.till-window-room { font-size: 12.5px; opacity: .8; }
/* What a customer asked to leave off must never be cut off. */
.till-grid .row-sub, .fair-sheet .row-sub, .till-grid .row-title, .fair-sheet .row-title { white-space: normal; }
.till-prompt { margin: 8px 4px 0; font-size: 13.5px; color: var(--text-soft); font-style: italic; }
.till-take { margin: 6px 0 28px; padding: 18px; font-size: 17px; position: sticky; bottom: calc(12px + var(--sab)); z-index: 5;
  box-shadow: 0 10px 28px rgba(31, 58, 46, .25); }
.till-done { text-align: center; padding: 8px 0 22px; display: grid; gap: 10px; justify-items: center; }
.till-done-ref { font: 800 44px var(--font-mono); color: var(--forest); letter-spacing: -.02em; }
.till-done-when { font-weight: 700; color: var(--terracotta); }
.till-done-codes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

/* ── Preparation and Oven (views/station.js): readable at arm's length, no flashing ── */
/* As many cards across as fit at a readable width (one on a phone). */
.st-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.st-window { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 2px 10px; font-size: 17px; color: var(--forest); }
.st-window span { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--fill); }
.st-window.due span:not(.st-window-n) { background: rgba(201, 138, 27, .18); color: #7a4d00; }
.st-window.urgent span:not(.st-window-n), .st-window.late span:not(.st-window-n) { background: var(--terracotta); color: #fff; }
.st-window-n { margin-left: auto; background: none !important; color: var(--text-soft); }
.st-card {
  background: var(--card); border-radius: var(--radius-lg); padding: 16px 16px 14px; box-shadow: var(--shadow-card);
  border-left: 6px solid var(--sage); display: grid; gap: 10px; transition: opacity .2s;
}
.st-card.due { border-left-color: var(--amber); }
.st-card.urgent { border-left-color: var(--terracotta); }
.st-card.late { border-left-color: var(--terracotta-deep); background: rgba(198, 93, 59, .05); }
.st-card.busy { opacity: .55; }
.st-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-code { font: 800 26px var(--font-mono); color: var(--forest); letter-spacing: -.02em; }
.st-size { font: 800 13px var(--font-num); letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; background: var(--forest); color: #fff; }
.st-tag { font-size: 12.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.st-tag.due { background: rgba(201, 138, 27, .18); color: #7a4d00; }
.st-tag.urgent, .st-tag.late { background: var(--terracotta); color: #fff; }
.st-of { margin-left: auto; font-size: 13.5px; color: var(--text-soft); font-weight: 600; }
.st-name { font-weight: 800; font-size: 21px; color: var(--forest); line-height: 1.2; }
.st-off { display: flex; flex-wrap: wrap; gap: 6px; }
.st-off span { font: 800 17px var(--font-body); letter-spacing: .02em; color: #fff; background: var(--terracotta); padding: 6px 12px; border-radius: 10px; }
.st-recipe { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 16px; color: var(--text); }
.st-recipe s { color: var(--terracotta-deep); text-decoration-thickness: 2px; opacity: .75; }
.st-allergy { display: flex; gap: 8px; align-items: flex-start; background: rgba(201, 138, 27, .14); color: #6b4300; border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.st-allergy svg { width: 20px; height: 20px; flex-shrink: 0; }
.st-change { display: grid; gap: 8px; background: rgba(198, 93, 59, .1); color: var(--terracotta-deep); border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.st-change .btn { padding: 10px; background: var(--terracotta); }
.st-actions { display: flex; gap: 8px; }
.st-actions .btn { flex: 1; padding: 16px 12px; font-size: 16.5px; min-height: 56px; }
.st-actions .st-undo { flex: 0 0 60px; background: var(--fill-strong); color: var(--forest); }
.st-actions .st-undo svg { width: 22px; height: 22px; }

/* Part 5: a pizza taken off after the kitchen started it; a cancelled order in the till list. */
.st-card.taken-off { border-left-color: var(--terracotta-deep); background: rgba(198, 93, 59, .06); }
.st-card.taken-off .st-name, .st-card.taken-off .st-recipe { text-decoration: line-through; opacity: .6; }
.fair-cancelled .row { opacity: .55; }
.fair-pay { display: flex; gap: 10px; margin-bottom: 14px; }
.fair-pay .btn { flex: 1; }
