@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("/_build/assets/fraunces-latin-variable-DihXLNYH.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("/_build/assets/instrument-sans-latin-variable-BbzFLZTg.woff2") format("woff2");
}

/* Night-smoke: the pit after service. Char ground, oak and ash surfaces, one ember accent.
   This is the storefront palette. Every surface reads its colors from these tokens. */
:root {
  color-scheme: dark;
  --bosco-cream: #17130f;
  --bosco-cream-deep: #2a221b;
  --bosco-paper: #211a15;
  --bosco-charcoal: #efe6d6;
  --bosco-charcoal-soft: #b8ab97;
  --bosco-ember: #ff7a3d;
  --bosco-ember-dark: #ffa070;
  --bosco-ember-glow: #ffb27a;
  --bosco-focus: #ffd166;
  --bosco-mustard: #ffd166;
  --bosco-line: #3d3128;
  --bosco-oak: #5b3f27;
  --bosco-ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --bosco-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --bosco-duration-fast: 160ms;
  --bosco-duration: 360ms;
  --bosco-duration-slow: 720ms;
  --bosco-stagger-step: 70ms;
  --bosco-font-display: "Fraunces", Georgia, serif;
  --bosco-font-sans: "Instrument Sans", "Helvetica Neue", sans-serif;
  --bosco-radius-sm: 0.45rem;
  --bosco-radius-md: 0.8rem;
  --bosco-radius-lg: 1.4rem;
  --bosco-radius-pill: 999px;
  --background: var(--bosco-cream);
  --foreground: var(--bosco-charcoal);
  --card: var(--bosco-paper);
  --card-foreground: var(--bosco-charcoal);
  --popover: var(--bosco-paper);
  --popover-foreground: var(--bosco-charcoal);
  --primary: var(--bosco-ember);
  --primary-foreground: var(--bosco-cream);
  --secondary: var(--bosco-cream-deep);
  --secondary-foreground: var(--bosco-charcoal);
  --muted: var(--bosco-cream-deep);
  --muted-foreground: var(--bosco-charcoal-soft);
  --accent: var(--bosco-ember);
  --accent-foreground: var(--bosco-cream);
  --border: var(--bosco-line);
  --input: var(--bosco-line);
  --ring: var(--bosco-focus);
  --radius: var(--bosco-radius-md);
}

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

html {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--bosco-font-sans);
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

.z-carousel { position: relative; min-width: 0; }
.z-carousel:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
.z-carousel-viewport { overflow: auto; }
.z-carousel[data-ready] .z-carousel-viewport { overflow: hidden; }
.z-carousel-track { display: flex; }
.z-carousel[data-ready] .z-carousel-track { touch-action: pan-y pinch-zoom; }
.z-carousel-item { flex: 0 0 100%; min-width: 0; }
.z-carousel .z-carousel-control { touch-action: manipulation; border-radius: var(--bosco-radius-pill); }
.z-carousel-control[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.z-carousel-control[aria-disabled="true"]:is(:hover, :active) { transform: none; }
.z-carousel[data-orientation="vertical"] .z-carousel-track { flex-direction: column; }
.z-carousel[data-ready][data-orientation="vertical"] .z-carousel-track { touch-action: pan-x pinch-zoom; }
.z-carousel[data-orientation="vertical"] .z-carousel-control svg { rotate: 90deg; }

.z-button {
  display: inline-flex;
  flex-shrink: 0;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--bosco-radius-sm);
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  transition:
    background-color var(--bosco-duration-fast) ease,
    color var(--bosco-duration-fast) ease,
    border-color var(--bosco-duration-fast) ease,
    transform var(--bosco-duration-fast) var(--bosco-ease-out),
    box-shadow var(--bosco-duration-fast) var(--bosco-ease-out);
}

.z-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.z-button:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  transition-duration: 80ms;
}

.z-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.z-button-variant-default {
  background: var(--primary);
  color: var(--primary-foreground);
}

.z-button-variant-default:hover {
  background: var(--bosco-ember-dark);
}

.z-button-variant-outline {
  border-color: var(--foreground);
  background: transparent;
  color: var(--foreground);
}

.z-button-variant-outline:hover,
.z-button-variant-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.z-button-variant-ghost,
.z-button-variant-link {
  background: transparent;
  color: var(--foreground);
}

.z-button-variant-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.z-button-size-sm {
  padding-inline: 0.85rem;
}

.z-button-size-lg {
  min-height: 3.25rem;
  padding-inline: 1.4rem;
  font-size: 1rem;
}

.z-button-size-icon {
  width: 2.75rem;
  padding: 0;
}

.z-accordion {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.z-accordion-item {
  border-top: 1px solid var(--border);
}

.z-accordion-item:last-child {
  border-bottom: 1px solid var(--border);
}

.z-accordion-header {
  margin: 0;
}

.z-accordion-trigger {
  display: flex;
  width: 100%;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 0;
  background: transparent;
  color: var(--foreground);
  padding: 1rem 0;
  text-align: left;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 650;
  cursor: pointer;
}

.z-accordion-trigger span {
  transition: color var(--bosco-duration-fast) ease, transform var(--bosco-duration) var(--bosco-ease-out);
}

.z-accordion-trigger:hover span {
  color: var(--primary);
  transform: translateX(0.35rem);
}

.z-accordion-trigger [data-slot="accordion-trigger-icon"] {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  transition: transform var(--bosco-duration) var(--bosco-ease-spring), color var(--bosco-duration-fast) ease;
}

.z-accordion-trigger:hover [data-slot="accordion-trigger-icon"] {
  color: var(--primary);
}

.z-accordion-trigger[aria-expanded="true"] [data-slot="accordion-trigger-icon"] {
  transform: rotate(180deg);
}

.z-accordion-content {
  overflow: hidden;
  animation: bosco-accordion-up var(--bosco-duration) var(--bosco-ease-out);
}

.z-accordion-content[data-expanded] {
  animation: bosco-accordion-down var(--bosco-duration) var(--bosco-ease-out);
}

.z-accordion-content-inner {
  animation: bosco-fade var(--bosco-duration-slow) var(--bosco-ease-out) both;
  max-width: 43rem;
  padding: 0 3rem 1.4rem 0;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.7;
}

.z-tabs {
  display: flex;
  min-width: 0;
  gap: 1rem;
}

.z-tabs[data-orientation="horizontal"] {
  flex-direction: column;
}

.z-tabs-list {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  flex-shrink: 0;
  align-items: center;
  padding: 0.25rem;
  overflow-x: auto;
  border-radius: var(--bosco-radius-md);
  color: var(--muted-foreground);
}

.z-tabs-list[data-orientation="vertical"] {
  height: fit-content;
  flex-direction: column;
}

.z-tabs-list-variant-default {
  background: var(--muted);
}

.z-tabs-list-variant-line {
  gap: 0.25rem;
  background: transparent;
}

.z-tabs-trigger {
  position: relative;
  display: inline-flex;
  flex: 1 0 auto;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--bosco-radius-sm);
  padding: 0.65rem 1rem;
  background: transparent;
  color: var(--muted-foreground);
  font-family: var(--bosco-font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.z-tabs-trigger[data-orientation="vertical"] {
  width: 100%;
  justify-content: flex-start;
}

.z-tabs-trigger:hover:not(:disabled):not([data-disabled]),
.z-tabs-trigger[data-selected] {
  color: var(--foreground);
}

.z-tabs-trigger[data-selected] {
  background: var(--background);
}

.z-tabs-trigger:disabled,
.z-tabs-trigger[data-disabled] {
  pointer-events: none;
  opacity: 0.5;
}

.z-tabs-trigger svg {
  pointer-events: none;
  flex-shrink: 0;
}

.z-tabs-list-variant-line > .z-tabs-trigger {
  background: transparent;
}

.z-tabs-list-variant-line > .z-tabs-trigger[data-selected]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--foreground);
}

.z-tabs-list-variant-line > .z-tabs-trigger[data-selected][data-orientation="vertical"]::after {
  inset-block: 0;
  inset-inline-start: auto;
  inset-inline-end: 0;
  width: 2px;
  height: auto;
}

.z-tabs-content {
  flex: 1;
  min-width: 0;
}

.z-tabs-trigger:focus-visible,
.z-tabs-content:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: -3px;
}

.z-resizable-panel-group { display: flex; width: 100%; }
.z-resizable-panel-group[data-orientation="vertical"] { flex-direction: column; }
.z-resizable-handle { position: relative; display: flex; flex: none; align-items: center; justify-content: center; width: 1px; min-height: 44px; border: 0; padding: 0; background: var(--border); color: var(--muted-foreground); touch-action: none; }
.z-resizable-handle::after { content: ""; position: absolute; inset-block: 0; left: 50%; width: 44px; transform: translateX(-50%); }
.z-resizable-handle[data-orientation="vertical"] { width: 100%; height: 1px; min-height: 0; min-width: 44px; }
.z-resizable-handle[data-orientation="vertical"]::after { inset-inline: 0; top: 50%; height: 44px; width: auto; transform: translateY(-50%); }
.z-resizable-handle:focus-visible { z-index: 1; outline: 3px solid var(--ring); outline-offset: 2px; }
.z-resizable-handle[data-active], .z-resizable-handle[data-dragging] { background: var(--ring); }
.z-resizable-handle-icon { z-index: 1; flex: none; width: 5px; height: 24px; border-radius: var(--bosco-radius-pill); background: currentColor; }
.z-resizable-handle[data-orientation="vertical"] > .z-resizable-handle-icon { transform: rotate(90deg); }

.z-drawer-trigger,
.z-drawer-close {
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.z-drawer-trigger:focus-visible,
.z-drawer-close:focus-visible,
.z-drawer-content :focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

.z-drawer-content:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: -3px;
}

.z-drawer-overlay,
.z-drawer-content {
  position: fixed;
  z-index: var(--bosco-drawer-z-index, 50);
}

.z-drawer-overlay {
  inset: 0;
  background: color-mix(in srgb, var(--bosco-cream) 60%, transparent);
}

.z-drawer-overlay[data-transitioning] {
  transition: opacity var(--bosco-duration) var(--bosco-ease-out);
}

.z-drawer-content {
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  max-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border);
  background: var(--bosco-paper);
  color: var(--foreground);
  font-family: var(--bosco-font-sans);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}

/* Corvu owns the inline transform for dragging and snap points. */
.z-drawer-content[data-transitioning] {
  transition: transform var(--bosco-duration) var(--bosco-ease-out);
}

.z-drawer-content[data-resizing] {
  transition-property: transform, width, height;
}

.z-drawer-content[data-side="bottom"],
.z-drawer-content[data-side="top"] {
  inset-inline: 0;
  max-height: 90dvh;
}

.z-drawer-content[data-side="bottom"] {
  bottom: 0;
  border-bottom: 0;
  border-radius: var(--bosco-radius-md) var(--bosco-radius-md) 0 0;
}

.z-drawer-content[data-side="top"] {
  top: 0;
  border-top: 0;
  border-radius: 0 0 var(--bosco-radius-md) var(--bosco-radius-md);
}

.z-drawer-content[data-side="right"],
.z-drawer-content[data-side="left"] {
  top: 0;
  bottom: 0;
  width: var(--bosco-drawer-width, 24rem);
}

.z-drawer-content[data-side="right"] {
  right: 0;
  border-right: 0;
  border-radius: var(--bosco-radius-md) 0 0 var(--bosco-radius-md);
}

.z-drawer-content[data-side="left"] {
  left: 0;
  border-left: 0;
  border-radius: 0 var(--bosco-radius-md) var(--bosco-radius-md) 0;
}

.z-drawer-handle {
  display: none;
  flex-shrink: 0;
  width: 6rem;
  height: 0.375rem;
  margin: 1rem auto 0;
  border-radius: var(--bosco-radius-pill);
  background: var(--muted-foreground);
}

.z-drawer-content[data-side="bottom"] > .z-drawer-handle {
  display: block;
}

.z-drawer-header,
.z-drawer-footer {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
}

.z-drawer-footer {
  margin-top: auto;
}

.z-drawer-title {
  margin: 0;
  font-family: var(--bosco-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.z-drawer-description {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.6;
}

.z-table-container {
  position: relative;
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--bosco-radius-md);
  background: var(--card);
}

.z-table-container:focus-visible { outline: 3px solid var(--ring); outline-offset: -3px; }
.z-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.5; }
.z-table-header { border-bottom: 1px solid var(--border); }
.z-table-row { border-bottom: 1px solid var(--border); }
.z-table-body .z-table-row:last-child { border-bottom: 0; }
.z-table-body .z-table-row:hover, .z-table-row:focus-within { background: var(--muted); }
.z-table-head { height: 3rem; padding: 0.5rem 1rem; color: var(--muted-foreground); font-weight: 600; text-align: left; white-space: nowrap; }
.z-table-cell { padding: 1rem; vertical-align: middle; }
.z-table-caption { margin-top: 1rem; color: var(--muted-foreground); }
.z-table-cell a { display: inline-flex; align-items: center; min-width: 2.75rem; min-height: 2.75rem; }

/* ---------------------------------------------------------------------------
   Motion library. Restrained by default; every animation collapses under
   prefers-reduced-motion (see the block at the end of this file).
   --------------------------------------------------------------------------- */

@keyframes bosco-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bosco-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bosco-pop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.35) rotate(-6deg);
  }
  70% {
    transform: scale(0.94) rotate(3deg);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes bosco-ember-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes bosco-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@keyframes bosco-accordion-down {
  from {
    height: 0;
  }
  to {
    height: var(--kb-accordion-content-height);
  }
}

@keyframes bosco-accordion-up {
  from {
    height: var(--kb-accordion-content-height);
  }
  to {
    height: 0;
  }
}

/* Enter on mount, staggered by --bosco-stagger (an integer index). */
.bosco-rise {
  animation: bosco-rise var(--bosco-duration-slow) var(--bosco-ease-out) both;
  animation-delay: calc(var(--bosco-stagger, 0) * var(--bosco-stagger-step));
}

.bosco-fade {
  animation: bosco-fade var(--bosco-duration-slow) var(--bosco-ease-out) both;
  animation-delay: calc(var(--bosco-stagger, 0) * var(--bosco-stagger-step));
}

/* Reveal as the element scrolls into view. Progressive: browsers without
   scroll-driven animations simply render the element in its final state. */
@supports (animation-timeline: view()) {
  .bosco-reveal {
    animation: bosco-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

/* Three ember dots: a loading indicator. */
.bosco-embers {
  display: inline-flex;
  gap: 0.45rem;
  vertical-align: middle;
}

.bosco-embers i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--bosco-ember);
  animation: bosco-ember-pulse 1.2s ease-in-out infinite;
}

.bosco-embers i:nth-child(2) {
  animation-delay: 0.2s;
  background: var(--bosco-ember-glow);
}

.bosco-embers i:nth-child(3) {
  animation-delay: 0.4s;
}

/* Skeleton surface while data loads. */
.bosco-skeleton {
  background: linear-gradient(100deg, var(--muted) 30%, var(--bosco-paper) 50%, var(--muted) 70%);
  background-size: 200% 100%;
  animation: bosco-shimmer 2.2s linear infinite;
}

/* Underline that draws itself in from the left. */
.bosco-draw-link {
  position: relative;
  text-decoration: none;
}

.bosco-draw-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.2em;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--bosco-duration) var(--bosco-ease-out);
}

.bosco-draw-link:hover::after,
.bosco-draw-link:focus-visible::after,
.bosco-draw-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Scroll-driven animations ignore duration, so they need an explicit stop. */
  .bosco-reveal {
    animation: none !important;
  }

  .bosco-embers i {
    animation: none !important;
    opacity: 1;
  }

  /* Corvu detects zero duration and completes without waiting for transitionend. */
  .z-drawer-content,
  .z-drawer-overlay {
    transition-duration: 0s !important;
  }
}
/* Product styles for the SolidStart application on the night-smoke palette.
   Colors, fonts, radii, and motion come from @bosco/ui tokens; the aliases
   below keep the product stylesheet short. Do not introduce new hex values here. */

:root {
    --cream: var(--bosco-cream);
    --cream-deep: var(--bosco-cream-deep);
    --paper: var(--bosco-paper);
    --charcoal: var(--bosco-charcoal);
    --ash: var(--bosco-charcoal-soft);
    --ember: var(--bosco-ember);
    --ember-dark: var(--bosco-ember-dark);
    --ember-glow: var(--bosco-ember-glow);
    --mustard: var(--bosco-mustard);
    --line: var(--bosco-line);
    --oak: var(--bosco-oak);
    --radius: var(--bosco-radius-sm);
    --radius-card: var(--bosco-radius-md);
    --pill: var(--bosco-radius-pill);
    --display: var(--bosco-font-display);
    --sans: var(--bosco-font-sans);
    --ease: var(--bosco-ease-out);
    --spring: var(--bosco-ease-spring);
    --fast: var(--bosco-duration-fast);
    --slow: var(--bosco-duration-slow);
    --header-height: 90px;
    font-synthesis: none;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}
body {
    min-width: 320px;
    background: var(--cream);
    color: var(--charcoal);
}
/* Char grain: a fixed noise layer so the ground reads as ash rather than flat black. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
    pointer-events: none;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
a {
    -webkit-tap-highlight-color: transparent;
}
img {
    max-width: 100%;
    display: block;
}
h1,
h2,
h3,
p,
dl {
    margin-top: 0;
}
h1,
h2,
h3 {
    font-family: var(--display);
    font-variation-settings: "opsz" 120;
    letter-spacing: -0.035em;
    line-height: 0.97;
}
h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    margin-bottom: 1.25rem;
    letter-spacing: -0.04em;
    line-height: 0.95;
}
h2 {
    font-size: clamp(1.8rem, 3.4vw, 3.2rem);
}
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
}
p {
    line-height: 1.65;
}
::selection {
    background: var(--ember);
    color: var(--cream);
}

.wrap {
    width: min(1240px, calc(100% - 3rem));
    margin-inline: auto;
}
.eyebrow {
    margin-bottom: 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ember);
}
.lede {
    max-width: 37rem;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--ash);
}

/* Outrank shared motion styles regardless of route stylesheet insertion order. */
body :is(.bosco-rise, .bosco-fade, .bosco-reveal) {
    animation: none;
}

/* Raised surfaces: one rule so every card, panel, and rail shares the same edge. */
.home-card,
.home-steps li,
.home-window,
.prepayment-panel,
.menu-card,
.cart-summary,
.checkout-panel,
.receipt,
.order-timeline,
.metric-grid article,
.dashboard-placeholder,
.kitchen-notice,
.loading-slab {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--paper);
}

/* Buttons. The shared .z-button primitive supplies the base; the product adds the pill shape
   and two variants: ember for the primary action, ghost for the secondary. */
.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: var(--pill);
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        background var(--fast) ease,
        border-color var(--fast) ease;
}
.z-button:not(.z-button-size-icon),
.z-button.cart-link {
    transition-property: background-color, border-color, box-shadow;
}
.z-button:not(.z-button-size-icon):is(:hover, :active),
.z-button.cart-link:is(:hover, :active) {
    transform: none;
}
.button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.button.ember {
    background: var(--ember);
    color: var(--cream);
}
.button.ember:hover:not(:disabled) {
    background: var(--ember-dark);
}
.button.ember[data-state="added"] {
    background: var(--charcoal);
}
.button.ghost {
    border-color: var(--charcoal);
    background: color-mix(in srgb, var(--cream) 55%, transparent);
    color: var(--charcoal);
}
.button.ghost:hover:not(:disabled) {
    background: var(--cream);
}
.button.wide {
    width: 100%;
}
.text-link,
.text-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    padding: 0;
    background: transparent;
    font-weight: 700;
    cursor: pointer;
}
.text-link {
    color: var(--ember);
}
.text-link:hover {
    color: var(--ember-dark);
}
.text-link .arrow {
    display: inline-block;
}
.text-button {
    color: var(--charcoal);
    text-decoration: underline;
    text-decoration-color: var(--ash);
    text-underline-offset: 0.25em;
}
.text-button:hover {
    color: var(--ember);
    text-decoration-color: currentColor;
}

/* Skip link and footer */
.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    transform: translateY(-200%);
    border-radius: var(--pill);
    background: var(--charcoal);
    color: var(--cream);
    padding: 0.75rem 1rem;
    font-weight: 700;
}
.skip-link:focus {
    transform: translateY(0);
}
.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 2.5rem;
}
.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    color: var(--ash);
    font-size: 0.85rem;
}
.site-footer p {
    margin: 0;
}
.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
}
.site-footer nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--charcoal);
}
.site-footer nav a:hover {
    color: var(--ember);
}
.site-footer-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--charcoal);
}

/* Header. Three destinations fit without a scrolling navigation strip. */
.site-header {
    min-height: var(--header-height);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 2rem;
    border-bottom: 1px solid var(--line);
    padding: 0 3vw;
    background: color-mix(in srgb, var(--cream) 94%, transparent);
    position: sticky;
    top: 0;
    z-index: 10;
}
.brand {
    display: block;
}
.brand img {
    width: 100px;
    height: auto;
}
.site-header nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.site-header nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.site-header nav a:hover {
    color: var(--ember);
}
.site-header nav a.bosco-draw-link::after {
    background: var(--ember);
    bottom: 0.55rem;
}
.cart-link {
    position: relative;
    overflow: visible;
    border-radius: var(--pill);
    color: var(--charcoal);
    margin-right: 0.5rem;
}
.cart-link .count {
    position: absolute;
    top: -0.15rem;
    right: -0.5rem;
    min-width: 1.35rem;
    height: 1.35rem;
    padding-inline: 0.2rem;
    display: grid;
    place-items: center;
    border-radius: var(--pill);
    background: var(--ember);
    color: var(--cream);
    font-size: 0.7rem;
    font-weight: 700;
    transition: background var(--fast) ease;
}
.cart-link .count[data-count="0"] {
    background: var(--cream-deep);
    color: var(--ash);
}

/* The Cart stays beside the menu rather than replacing it. Its contents share /cart's controls. */
.z-drawer-content.cart-drawer {
    --bosco-drawer-width: 34rem;
    overflow: hidden;
}
.cart-drawer .cart-drawer-heading {
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
}
.cart-drawer-heading .z-drawer-title {
    font-size: 2.2rem;
}
.cart-drawer-heading .z-drawer-description {
    margin: 0.5rem 0 0;
}
.cart-drawer-body,
.cart-drawer .cart-content,
.cart-drawer .cart-layout {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}
.cart-drawer-body,
.cart-drawer .cart-content {
    overflow-y: auto;
    overscroll-behavior: contain;
}
.cart-drawer .cart-layout {
    gap: 0;
    align-items: stretch;
}
.cart-drawer .cart-save-status {
    flex: none;
    padding-inline: 1.5rem;
}
.cart-drawer .cart-sections {
    display: block;
    min-width: 0;
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 1.5rem 1rem;
}
.cart-drawer .cart-unattached {
    margin-top: 1.5rem;
}
.cart-drawer .cart-note,
.cart-drawer .cart-warnings {
    margin-block: 1rem;
}
.cart-drawer .cart-lines article {
    gap: 0.5rem 1rem;
    padding-block: 1.25rem;
}
.cart-drawer .cart-lines h2 {
    font-size: 1.35rem;
    overflow-wrap: anywhere;
}
.cart-drawer .cart-summary {
    position: static;
    flex: none;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: 1rem 1.5rem;
}
.cart-drawer .empty-state {
    padding: 1.5rem 0;
}
.cart-drawer .empty-state h2 {
    font-size: 1.7rem;
}
.cart-save-status {
    color: var(--ash);
}
.cart-save-status:empty {
    display: none;
}
.cart-save-status p {
    margin-block: 1rem 0;
}
.cart-save-status .text-button {
    margin-bottom: 1rem;
}

/* ---------------------------------------------------------------------------
   Home. Full-bleed founder hero: the picture is the hero; a bottom-up scrim in
   the char ground carries the copy lower right. Desktop band is 21:9 clamped
   to 60-75svh. See docs/design/storefront-direction.md for the rules.
   --------------------------------------------------------------------------- */
.home-hero {
    position: relative;
    display: grid;
    align-items: end;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 60svh;
    max-height: 75svh;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.home-hero-media {
    position: absolute;
    inset: 0;
    background: var(--paper);
}
.home-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 45% 40%;
}
.home-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--cream) 0%,
        color-mix(in srgb, var(--cream) 92%, transparent) 32%,
        color-mix(in srgb, var(--cream) 60%, transparent) 48%,
        transparent 66%
    );
    pointer-events: none;
}
/* The founder presents the tray toward the copy, which sits lower right over the darker vehicle and away from his face. */
.home-hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    justify-content: end;
    padding-block: clamp(1.5rem, 4vw, 3rem);
}
.home-hero-copy > * {
    max-width: min(38rem, 44vw);
}
.home-hero h1 {
    margin: 0.5rem 0 1rem;
    font-size: clamp(1.9rem, 3.7vw, 3.5rem);
    text-shadow: 0 1px 2px rgb(0 0 0 / 35%);
}
.home-hero .lede {
    color: var(--charcoal);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    text-shadow: 0 1px 2px rgb(0 0 0 / 35%);
}
.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.25rem;
    margin-top: 1.5rem;
    align-items: center;
}
.home-facts {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: clamp(1.5rem, 5vw, 4rem);
    padding-block: 1.75rem;
    border-bottom: 1px solid var(--line);
}
.home-facts strong {
    display: block;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.9rem;
    letter-spacing: -0.02em;
    color: var(--ember);
}
.home-facts span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ash);
}
.home-section {
    padding-block: clamp(3.5rem, 7vw, 6rem);
    border-bottom: 1px solid var(--line);
}
.home-section:last-child {
    border-bottom: 0;
}
.home-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem 3rem;
    margin-bottom: 2.5rem;
}
.home-section-head h2 {
    margin: 0.35rem 0 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
}
.home-section-head p {
    margin: 0;
    max-width: 32rem;
    color: var(--ash);
}
.home-menu-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.home-menu-navigation p {
    margin: 0;
    color: var(--ash);
    font-size: 0.85rem;
}
.home-menu-controls {
    display: flex;
    gap: 0.75rem;
}
.home-menu-carousel .z-carousel-track {
    gap: 1.25rem;
}
.home-menu-carousel .z-carousel-item {
    padding-block: 0.25rem;
}
.home-menu-carousel .home-card {
    height: 100%;
}
.home-menu-carousel .home-card-foot {
    flex-wrap: wrap;
}
@media (min-width: 48rem) {
    .home-menu-carousel .z-carousel-item {
        flex-basis: calc((100% - 1.25rem) / 2);
    }
}
@media (min-width: 64rem) {
    .home-menu-carousel .z-carousel-item {
        flex-basis: calc((100% - 2.5rem) / 3);
    }
}
.home-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    transition: border-color var(--fast) ease;
}
.home-card:hover {
    border-color: var(--ash);
}
.home-card-body {
    padding: 1.25rem 1.25rem 0.5rem;
}
.home-card-body h3 {
    margin: 0.2rem 0 0.5rem;
    font-size: 1.5rem;
}
.home-card-body p {
    margin: 0;
    color: var(--ash);
    font-size: 0.95rem;
}
.home-card-body .allergens {
    margin-top: 0.75rem;
}
.home-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem 1.25rem;
}
.home-card-foot strong {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.25rem;
}
.home-card-foot .text-link {
    white-space: nowrap;
}
.home-empty {
    padding: 3rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius-card);
    text-align: center;
    color: var(--ash);
}
.home-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.home-steps li {
    padding: 1.5rem;
}
.home-steps li::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    margin-bottom: 2.5rem;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ember);
}
.home-steps h3 {
    margin: 0 0 0.5rem;
    font-size: 1.45rem;
}
.home-steps p {
    margin: 0;
    color: var(--ash);
    font-size: 0.95rem;
}
.home-windows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.home-window {
    padding: 1.75rem;
}
.home-window h3 {
    margin: 0 0 0.75rem;
    font-size: 1.7rem;
}
.home-window p {
    margin: 0 0 0.75rem;
    color: var(--ash);
}
.home-window dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1rem;
    margin: 1.25rem 0 0;
    font-size: 0.9rem;
}
.home-window dt {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--ash);
    align-self: center;
}
.home-window dd {
    margin: 0;
}
.home-window dd a {
    color: var(--ember);
    font-weight: 700;
}
.home-offerings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-offerings .home-window {
    display: flex;
    flex-direction: column;
}
.home-offerings .eyebrow {
    color: var(--ember);
}
.home-offerings h3 {
    text-wrap: balance;
}
.home-offerings .button {
    align-self: flex-start;
    margin-top: auto;
}

.prepayment-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem clamp(2rem, 6vw, 5rem);
    padding: clamp(1.5rem, 4vw, 3.5rem);
}
.prepayment-intro h2 {
    max-width: 16ch;
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    line-height: 1.05;
    text-wrap: balance;
}
.prepayment-intro > p:last-child {
    max-width: 34ch;
    margin: 0;
    color: var(--ash);
}
.prepayment-benefits {
    display: grid;
    align-content: center;
    gap: 1.5rem;
    margin: 0;
}
.prepayment-benefits > div + div {
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
}
.prepayment-benefits dt {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}
.prepayment-benefits dd {
    margin: 0;
    max-width: 36ch;
    color: var(--ash);
    line-height: 1.65;
}
.prepayment-footer {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}
.prepayment-terms h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}
.prepayment-terms p,
.prepayment-action p {
    margin: 0;
    color: var(--ash);
    font-size: 0.875rem;
}
.prepayment-action {
    display: grid;
    justify-items: end;
    gap: 0.65rem;
}

/* Pages */
.page {
    min-height: calc(100svh - var(--header-height));
    padding-block: clamp(3rem, 7vw, 6rem);
}
.page-heading {
    max-width: 820px;
    margin-bottom: 3rem;
}
.page-heading h1 {
    margin-bottom: 1rem;
}
.page-heading > p:last-child {
    max-width: 40rem;
    color: var(--ash);
    font-size: 1.12rem;
}
.split-heading {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 0.55fr;
    gap: 5vw;
    align-items: end;
}
.loading-slab {
    min-height: 240px;
    display: grid;
    place-content: center;
    color: var(--ash);
    font-weight: 700;
    text-align: center;
}
.empty-state {
    min-height: 280px;
    display: grid;
    place-content: center;
    gap: 0.5rem;
    border: 0;
    background: transparent;
    text-align: center;
}
.empty-state h2 {
    margin-bottom: 0.25rem;
}
.empty-state p {
    margin: 0;
    color: var(--ash);
}
.empty-state .text-link {
    justify-self: center;
}
.small-print,
.stack-form small {
    display: block;
    color: var(--ash);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Menu Item tile, shared by the home grid and the menu page. */
.menu-tile {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.menu-tile[data-placeholder] {
    display: grid;
    place-content: center;
    text-align: center;
    background: radial-gradient(
        circle at 50% 115%,
        color-mix(in srgb, var(--ember) 40%, var(--paper)),
        var(--paper) 65%
    );
}
.menu-tile[data-placeholder] span {
    font-family: var(--display);
    font-weight: 700;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--ember);
}
.menu-tile[data-placeholder] small {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ash);
}
.menu-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Menu */
.menu-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.menu-categories a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    color: var(--charcoal);
    font-weight: 700;
}
.menu-categories a:hover {
    border-color: var(--ash);
}
.menu-categories a[aria-current="page"] {
    background: var(--ember);
    border-color: var(--ember);
    color: var(--cream);
}
.menu-version {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    padding: 0.45rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ash);
}
.menu-version {
    max-width: 100%;
    overflow-wrap: anywhere;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr));
    gap: 1.25rem;
}
.menu-grid .empty-state {
    grid-column: 1 / -1;
}
.menu-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    transition: border-color var(--fast) ease;
}
.menu-card[hidden] {
    display: none;
}
.menu-card:hover {
    border-color: var(--ash);
}
.menu-number {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 1;
    min-width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    border-radius: var(--pill);
    background: color-mix(in srgb, var(--cream) 78%, transparent);
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--charcoal);
}
.menu-card-body {
    padding: 1.25rem 1.5rem 0;
}
.menu-card-body h2 {
    margin: 0.2rem 0 0.5rem;
    font-size: 1.7rem;
}
.menu-card-body > p:not(.eyebrow, .labels, .allergens) {
    color: var(--ash);
    font-size: 0.95rem;
}
.menu-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.menu-options > * {
    min-width: 0;
}
.menu-meat {
    grid-column: 1 / -1;
}
.menu-options select {
    width: 100%;
}
.menu-included {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--ash);
    font-size: 0.95rem;
}
.menu-options label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ash);
}
.menu-options select,
.checkout-window select,
.stack-form input {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.5rem 0.65rem;
    background: var(--cream-deep);
    color: var(--charcoal);
    font-size: 1rem;
    transition: border-color var(--fast) ease;
}
.menu-options select:hover,
.checkout-window select:hover,
.stack-form input:hover {
    border-color: var(--ash);
}
.menu-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem 1.5rem;
}
.menu-meta > strong,
.home-card-foot strong {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}
.menu-meta small,
.home-card-foot small {
    display: block;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ash);
}
.labels,
.allergens {
    margin: 0;
    font-size: 0.8rem;
}
.labels {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ash);
}
.allergens {
    color: var(--ember-dark);
}
.menu-card-body .labels,
.menu-card-body .allergens {
    margin-top: 0.75rem;
}
.kitchen-notice {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--ember);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--ash);
    font-size: 0.95rem;
}
.kitchen-notice strong {
    color: var(--charcoal);
}

/* Cart, checkout, orders */
.selection-summary {
    display: block;
    margin: 0.4rem 0 0;
    color: var(--ash);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.cart-layout,
.checkout-layout,
.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 0.42fr);
    gap: 3rem 5vw;
    align-items: start;
}
.checkout-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
}
.cart-lines article {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 2rem;
    border-top: 1px solid var(--line);
    padding: 1.8rem 0;
}
.cart-lines article:last-child {
    border-bottom: 1px solid var(--line);
}
.cart-lines h2 {
    margin: 0;
    font-size: 1.6rem;
}
.cart-lines > article > strong {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.25rem;
}
.cart-lines .text-button {
    justify-self: start;
}
.cart-lines .allergens {
    grid-column: 1 / -1;
}
.cart-summary,
.checkout-panel {
    position: sticky;
    top: 2rem;
    padding: 2rem;
}
.cart-subtotal {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}
.cart-subtotal dt {
    font-weight: 700;
}
.cart-subtotal dd {
    margin: 0;
    font-family: var(--display);
    font-size: 1.8rem;
    font-weight: 600;
}
.cart-summary p,
.checkout-panel p {
    color: var(--ash);
}
.cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.cart-actions .text-link:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    color: var(--ember);
}
/* Quantity controls: 44px round targets plus a text Remove, spanning the line's full width. */
.cart-lines form,
.quantity-controls {
    grid-column: 1 / -1;
}
.quantity-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.quantity-button {
    min-width: 44px;
    min-height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    padding: 0;
    background: var(--cream-deep);
    color: var(--charcoal);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        border-color var(--fast) ease,
        background var(--fast) ease;
}
.quantity-button:hover:not(:disabled) {
    border-color: var(--ash);
}
.quantity-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.quantity-value {
    min-width: 2ch;
    text-align: center;
    font-weight: 700;
}
.quantity-controls .text-button {
    margin-left: 0.75rem;
}
.cart-sections {
    display: grid;
    gap: 3rem;
}
.cart-sections:only-child {
    grid-column: 1 / -1;
}
.cart-section-heading {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.cart-unattached form {
    margin-top: 1.25rem;
}
.cart-note {
    color: var(--ash);
}
.cart-page .checkout-alert {
    margin-bottom: 1.5rem;
}
.cart-page .checkout-alert p {
    margin: 0.4rem 0 0;
    font-size: 0.95rem;
}
/* Cart and checkout warnings: the Commercial kitchen disclosure and the allergens present, as one list. */
.cart-warnings {
    display: grid;
    gap: 0.5rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--ember-dark);
    font-size: 0.85rem;
    line-height: 1.5;
}
.cart-warnings li {
    border-top: 1px dotted var(--line);
    padding-top: 0.5rem;
}
/* A limit the Cart already breaks: advisory only, so it is quieter than the failure alert. */
.checkout-notice {
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--ember);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0.85rem 1rem;
    background: color-mix(in srgb, var(--ember) 8%, var(--paper));
}
.checkout-notice p {
    margin: 0;
    color: var(--charcoal);
}
.checkout-notice .text-link,
.checkout-alert .text-link {
    display: inline-block;
    margin-top: 0.6rem;
}
.return-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.checkout-panel form {
    display: grid;
    gap: 1.25rem;
}
.checkout-window {
    display: grid;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ash);
}
.checkout-window select {
    width: 100%;
    min-height: 50px;
    padding: 0.65rem;
    text-transform: none;
    letter-spacing: 0;
}
.checkout-window-detail {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}
/* Checkout failure: an ember-edged notice that stays mounted (and announced) but collapses while empty. */
.checkout-alert {
    margin-bottom: 1.25rem;
    border: 1px solid var(--ember-dark);
    border-left-width: 4px;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.25rem;
    background: color-mix(in srgb, var(--ember) 12%, var(--paper));
}
.checkout-alert:empty {
    display: none;
}
.checkout-alert strong {
    display: block;
    color: var(--charcoal);
    line-height: 1.4;
}
.checkout-panel .checkout-alert p {
    margin: 0.4rem 0 0;
    font-size: 0.95rem;
}
.checkout-panel .checkout-closed {
    margin: 0;
    border-top: 1px dashed var(--line);
    padding-top: 1.25rem;
    color: var(--charcoal);
}
.narrow-page {
    width: min(680px, calc(100% - 3rem));
    margin-inline: auto;
    padding-block: clamp(4rem, 10vw, 8rem);
}
.narrow-page > p:not(.eyebrow, .lede) {
    color: var(--ash);
}
.narrow-page .lede {
    color: var(--charcoal);
}
.centered {
    min-height: calc(100svh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.return-status {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 2rem;
    font-size: 1.1rem;
}
.stack-form {
    display: grid;
    gap: 1.2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--line);
    padding-top: 2rem;
}
.stack-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
}
.stack-form input {
    min-height: 50px;
    padding: 0.75rem;
}
.stack-form input:disabled {
    color: var(--ash);
    background: var(--paper);
}
.stack-form .button {
    justify-self: start;
}
.receipt {
    padding: 2rem;
}
.receipt h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.receipt > p {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 0;
    border-bottom: 1px dotted var(--line);
    padding: 0.8rem 0;
}
.receipt > p > span {
    min-width: 0;
}
.receipt > p > strong {
    flex-shrink: 0;
}
.receipt > p.receipt-total {
    margin-top: 0.5rem;
    border-top: 2px solid var(--line);
    border-bottom: 0;
    font-size: 1.2rem;
}
.checkout-payment {
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-bottom: 1rem;
}
.checkout-payment > p {
    gap: 1rem;
    padding-block: 0.6rem;
}
.order-list {
    border-top: 1px solid var(--line);
}
.order-list > a {
    min-height: 126px;
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 2rem;
    border-bottom: 1px solid var(--line);
    padding: 1.5rem;
    transition: background var(--fast) ease;
}
.order-list > a:hover {
    background: var(--paper);
}
.order-list h2 {
    margin: 0;
    font-size: 1.6rem;
}
.order-list > a > strong {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.25rem;
}
.order-list .arrow {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--ember);
    opacity: 0;
}
.order-list > a:hover .arrow,
.order-list > a:focus-visible .arrow {
    opacity: 1;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.status-pill[data-live="true"]::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--ember);
    animation: bosco-ember-pulse 1.6s ease-in-out infinite;
}
.order-hero {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 3rem;
    margin-bottom: 3rem;
}
.order-hero h1 {
    margin-bottom: 1rem;
}
.order-hero p {
    margin: 0;
    color: var(--ash);
}
.order-hero > div:last-child {
    display: grid;
    justify-items: end;
    gap: 0.75rem;
    text-align: right;
}
.order-hero h2 {
    margin: 0;
}
.order-timeline {
    border-top: 3px solid var(--ember);
    padding: 1.5rem;
}
.order-timeline h2 {
    font-size: 1.5rem;
}
.order-timeline p {
    margin: 0;
    color: var(--ash);
}
.conversation {
    max-width: 780px;
    margin-top: 5rem;
}
.conversation article {
    border-top: 1px solid var(--line);
    padding: 1.25rem 0;
}
.conversation article p {
    margin: 0.35rem 0;
}
.conversation time {
    color: var(--ash);
    font-size: 0.75rem;
}

/* Customer and Staff pages share the same fixed, resizable navigation layout. */
#app:has(.sidebar-shell) {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100dvh;
    overflow: hidden;
}
#content:has(.sidebar-shell) {
    min-height: 0;
    overflow: hidden;
}
#app:has(.sidebar-shell) > .site-footer {
    display: none;
}
.sidebar-shell {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
.sidebar-panel {
    flex-shrink: 0;
    min-width: 0;
    min-height: 0;
    max-width: 270px;
    overflow: hidden;
    background: var(--paper);
    container: sidebar / size;
}
.sidebar-panel[inert] {
    visibility: hidden;
}
.sidebar-content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
}
.sidebar-content:focus-visible {
    outline: 3px solid var(--bosco-focus);
    outline-offset: -3px;
}
/* Before hydration, CSS supplies the same desktop/mobile defaults as the panels. */
.sidebar-shell:not([data-ready]) > .sidebar-panel {
    flex-basis: 270px !important;
}
.sidebar-divider {
    position: relative;
    flex: none;
    width: 1px;
}
.sidebar-divider > .z-resizable-handle {
    inset: 0;
    height: 100%;
}
.sidebar-toggle {
    position: sticky;
    top: 1rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-top: 1rem;
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0;
    background: var(--paper);
    color: var(--ember);
    cursor: pointer;
}
.sidebar-toggle:hover {
    background: var(--cream-deep);
}
.sidebar-toggle:focus-visible {
    outline: 3px solid var(--bosco-focus);
    outline-offset: -3px;
}

/* Staff dashboard */
.dashboard-rail {
    padding: 2.5rem 2rem;
    color: var(--charcoal);
}
.dashboard-rail .rail-title {
    margin: 0;
    font-family: var(--display);
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: -0.035em;
    line-height: 0.97;
}
.dashboard-rail nav {
    display: grid;
    margin-top: 3rem;
    border-top: 1px solid var(--line);
}
.dashboard-rail nav a {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
}
.dashboard-rail nav a::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--ember);
    transform: scale(0);
    transition: transform var(--fast) var(--spring);
}
.dashboard-rail nav a:hover {
    color: var(--ember);
}
.dashboard-rail nav a[aria-current="page"] {
    color: var(--ember);
}
.dashboard-rail nav a[aria-current="page"]::before {
    transform: scale(1);
}
.rail-note {
    margin-top: 4rem;
    color: var(--ash);
    font-size: 0.8rem;
}
.dashboard-main {
    padding: clamp(2rem, 5vw, 5rem);
    padding-top: clamp(4.5rem, 5vw, 5rem);
    color: var(--charcoal);
}
.dashboard-main > .site-footer {
    margin-top: 3rem;
}
.dashboard-main > .site-footer .wrap {
    width: 100%;
}
.dashboard-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem 3rem;
    margin-bottom: 3rem;
}
.dashboard-heading h1 {
    max-width: 800px;
    margin: 0;
}
.dashboard-heading > p:last-child {
    margin: 0;
    color: var(--ash);
}
.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.metric-grid article {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    transition: border-color var(--fast) ease;
}
.metric-grid article:hover {
    border-color: var(--ash);
}
.metric-grid strong {
    font-family: var(--display);
    font-weight: 600;
    font-size: 4.5rem;
    letter-spacing: -0.03em;
    line-height: 1;
}
.metric-grid article[data-attention="true"] strong {
    color: var(--ember);
}
.metric-grid span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ash);
}
.dashboard-placeholder {
    margin-top: 4rem;
    padding: clamp(2rem, 5vw, 4rem);
}
.dashboard-placeholder {
    min-height: 280px;
    background: repeating-linear-gradient(
        135deg,
        var(--paper),
        var(--paper) 15px,
        color-mix(in srgb, var(--ember) 6%, var(--paper)) 15px,
        color-mix(in srgb, var(--ember) 6%, var(--paper)) 30px
    );
}
.dashboard-placeholder p:last-child {
    color: var(--ash);
}
.operations-table {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--paper);
}
.operations-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.operations-table th,
.operations-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}
.operations-table th {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ash);
}
.operations-table tr:last-child td {
    border-bottom: 0;
}
.operations-table code {
    font-size: 0.8rem;
    word-break: break-all;
}
.operations-table .reason-note {
    display: block;
    margin-top: 0.25rem;
    color: var(--ash);
}

/* Keep navigation reachable without a sidebar scrollbar on shorter viewports. */
@container sidebar (max-height: 760px) {
    .dashboard-rail .rail-note {
        display: none;
    }
}
@container sidebar (max-height: 600px) {
    .dashboard-rail {
        padding: 1rem;
    }
    .dashboard-rail nav {
        margin-top: 1rem;
    }
    .dashboard-rail nav a {
        min-height: 44px;
    }
}
@container sidebar (max-height: 420px) {
    .dashboard-rail .eyebrow,
    .dashboard-rail .rail-title {
        display: none;
    }
    .dashboard-rail nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 0.75rem;
        margin-top: 0;
    }
    .dashboard-rail nav a {
        font-size: 0.85rem;
    }
    .dashboard-rail nav a::before {
        display: none;
    }
}

@media (max-width: 64rem) {
    /* Copy over the picture would cover the tray, so it moves below a shorter crop. */
    .home-hero {
        display: block;
        aspect-ratio: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
    }
    .home-hero-media {
        position: relative;
        width: 100%;
        aspect-ratio: 1 / 1;
        min-height: 50svh;
        max-height: 70svh;
        overflow: hidden;
    }
    .home-hero-media::after {
        background: linear-gradient(to top, var(--cream) 0%, transparent 18%);
    }
    .home-hero-copy {
        justify-content: start;
        padding-top: 0.5rem;
    }
    .home-hero-copy > * {
        max-width: none;
    }
    .home-hero h1 {
        font-size: clamp(2.4rem, 9vw, 3.4rem);
        text-shadow: none;
    }
    .home-hero .lede {
        text-shadow: none;
    }
    .home-facts {
        grid-template-columns: 1fr 1fr;
    }
    .home-offerings {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    :root {
        --header-height: 80px;
    }
    .wrap {
        width: min(100% - 2rem, 680px);
    }
    .site-header {
        padding: 0.5rem 1rem;
        gap: 0 1rem;
    }
    .brand img {
        width: 88px;
    }
    .site-header nav {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-end;
        gap: 0 1rem;
        font-size: 0.7rem;
    }
    .home-windows,
    .home-steps {
        grid-template-columns: 1fr;
    }
    .prepayment-panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
    .prepayment-intro h2 {
        max-width: 18ch;
    }
    .prepayment-action {
        width: 100%;
        justify-items: stretch;
    }
    .prepayment-action p {
        text-align: center;
    }
    .split-heading,
    .cart-layout,
    .checkout-layout,
    .order-detail-grid {
        grid-template-columns: 1fr;
    }
    .menu-grid {
        grid-template-columns: 1fr;
    }
    .menu-card-body {
        padding: 1.25rem 1.25rem 0;
    }
    .menu-meta {
        padding: 1.25rem;
    }
    .cart-summary,
    .checkout-panel {
        position: static;
    }
    .order-list > a {
        grid-template-columns: 1fr auto;
    }
    .order-list > a > strong {
        grid-column: 2;
    }
    .order-list .arrow {
        display: none;
    }
    .order-hero {
        display: block;
    }
    .order-hero > div:last-child {
        margin-top: 2rem;
        justify-items: start;
        text-align: left;
    }
    .sidebar-shell:not([data-ready]) > .sidebar-panel {
        flex-basis: 0 !important;
        visibility: hidden;
    }
    .dashboard-main {
        padding: 4.5rem 1rem 3rem;
    }
    .metric-grid {
        grid-template-columns: 1fr;
    }
    .metric-grid article {
        min-height: 130px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .status-pill[data-live="true"]::before {
        animation: none;
    }
}

/* ---------------------------------------------------------------------------
   Staff setup (fulfillment, menu, inventory): sections, plain native forms,
   result alerts, and inline per-row forms. Same tokens and edges as the rest
   of the dashboard; every control keeps the 44px target.
   --------------------------------------------------------------------------- */
.staff-section {
    margin-top: 2.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--paper);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}
.staff-section h2 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}
.staff-section h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.15rem;
}
.staff-section > p {
    max-width: 46rem;
    color: var(--ash);
}
.staff-section .operations-table {
    margin-top: 1.25rem;
}
.staff-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem 1.25rem;
    margin-top: 1.5rem;
}
.staff-form h3 {
    margin: 0.5rem 0 0;
}
.staff-form label {
    display: grid;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
}
.staff-form label code {
    font-weight: 500;
}
.staff-form .wide,
.staff-form small,
.staff-form .staff-actions {
    grid-column: 1 / -1;
}
.staff-form input,
.staff-form select,
.staff-form textarea {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.6rem 0.75rem;
    background: var(--cream-deep);
    color: var(--charcoal);
    font: inherit;
    font-size: 1rem;
    transition: border-color var(--fast) ease;
}
.staff-form textarea {
    min-height: 5.5rem;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}
.staff-form input:hover,
.staff-form select:hover,
.staff-form textarea:hover {
    border-color: var(--ash);
}
.staff-form small {
    color: var(--ash);
    font-size: 0.8rem;
    line-height: 1.5;
}
.staff-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.staff-alert {
    margin: 1.25rem 0;
    border: 1px solid var(--ember-dark);
    border-left-width: 4px;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.25rem;
    background: color-mix(in srgb, var(--ember) 12%, var(--paper));
}
.staff-alert:empty {
    display: none;
}
.staff-alert[data-status="ok"] {
    border-color: var(--oak);
    background: color-mix(in srgb, var(--oak) 16%, var(--paper));
}
.staff-alert strong {
    display: block;
    color: var(--charcoal);
    line-height: 1.4;
}
.operations-table .staff-alert {
    margin: 0.75rem 0 0;
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
}
.staff-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.5rem;
}
.staff-inline-form label {
    display: grid;
    gap: 0.25rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ash);
}
.staff-inline-form input {
    width: 6.5rem;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.4rem 0.6rem;
    background: var(--cream-deep);
    color: var(--charcoal);
    font: inherit;
}
.button.compact {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
}
.staff-setup-list {
    display: grid;
    gap: 0.5rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}
.staff-setup-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.staff-setup-list li::before {
    content: "";
    flex: none;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--ember);
}
.staff-setup-list li[data-complete="true"]::before {
    background: var(--oak);
}
.staff-item {
    margin-top: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: color-mix(in srgb, var(--cream) 50%, var(--paper));
}
.staff-item > summary {
    min-height: 44px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.9rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
}
.staff-item > summary .labels {
    margin-left: auto;
}
.staff-item > div {
    padding: 0 1.25rem 1.25rem;
}
.staff-item > div > form + form {
    margin-top: 1rem;
}
.staff-negative {
    color: var(--ember-dark);
    font-weight: 700;
}
.staff-warning {
    font-weight: 700;
}

@media (max-width: 800px) {
    .staff-form {
        grid-template-columns: 1fr;
    }
    .staff-inline-form input {
        width: 5rem;
    }
}

/* Order status timeline, live updates, and the Order Conversation. */
.live-region {
    min-height: 1.5rem;
    margin: -1.5rem 0 2rem;
    color: var(--ash);
    font-size: 0.9rem;
}
.live-region small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.live-region small[data-status="open"] {
    color: var(--oak);
}
.timeline-steps {
    display: grid;
    gap: 0.6rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}
.timeline-steps li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--ash);
}
.timeline-steps li::before {
    content: "";
    position: absolute;
    top: 0.35em;
    left: 0;
    width: 0.75rem;
    height: 0.75rem;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    transition:
        background var(--fast) ease,
        border-color var(--fast) ease;
}
.timeline-steps li[data-reached="true"] {
    color: var(--charcoal);
}
.timeline-steps li[data-reached="true"]::before {
    border-color: var(--ember);
    background: var(--ember);
}
.timeline-steps li[aria-current="step"] {
    font-weight: 700;
}
.order-timeline p strong {
    color: var(--charcoal);
}
.conversation article[data-author="customer"] {
    border-left: 3px solid var(--ember);
    padding-left: 1rem;
}
.conversation article[data-author="system"] {
    color: var(--ash);
    font-size: 0.9rem;
}
.conversation-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 2rem;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
}
.conversation-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
}
.conversation-form textarea {
    min-height: 5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.75rem;
    background: var(--cream-deep);
    color: var(--charcoal);
    font: inherit;
    resize: vertical;
    transition: border-color var(--fast) ease;
}
.conversation-form textarea:hover {
    border-color: var(--ash);
}
.conversation-form-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.conversation-form-foot small {
    color: var(--ash);
    font-size: 0.8rem;
}
.conversation-alert {
    border-left: 3px solid var(--ember-dark);
    padding: 0.6rem 0.9rem;
    background: color-mix(in srgb, var(--ember) 12%, var(--paper));
}
.conversation-alert:empty {
    display: none;
}

/* Staff Order page. */
.staff-window-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin: 0 0 0.5rem;
}
.staff-window-heading .labels {
    font-size: 0.72rem;
}
.staff-order {
    margin-top: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--paper);
    padding: 1.25rem;
}
.staff-order[data-settled="true"] {
    opacity: 0.75;
}
.staff-order > header {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}
.staff-order h3 {
    margin: 0.25rem 0 0;
    font-size: 1.4rem;
}
.staff-order > header small {
    display: block;
    margin-top: 0.35rem;
    color: var(--ash);
    font-size: 0.8rem;
}
.staff-order-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 1rem 1.5rem;
    margin-top: 1rem;
}
.staff-order-actions select {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.4rem 0.6rem;
    background: var(--cream-deep);
    color: var(--charcoal);
    font: inherit;
}
.staff-order-actions .staff-inline-form input {
    width: auto;
}
.staff-order-actions .small-print {
    align-self: center;
}
.staff-order-message {
    margin-top: 1rem;
}
.staff-order-message textarea {
    min-height: 3.5rem;
    font-family: inherit;
}
.staff-conversation {
    margin-top: 1rem;
}
.staff-conversation summary {
    cursor: pointer;
    font-weight: 700;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.staff-conversation article {
    border-top: 1px solid var(--line);
    padding: 0.6rem 0;
    font-size: 0.9rem;
}
.staff-conversation article[data-author="customer"] {
    border-left: 3px solid var(--ember);
    padding-left: 0.75rem;
}
.staff-conversation article p {
    margin: 0.2rem 0;
}
.staff-conversation time {
    color: var(--ash);
    font-size: 0.72rem;
}

/* Cancellation Requests and refunds. */
.status-stack {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 0.4rem;
}
.status-pill[data-state="cancellation_requested"] {
    border-color: var(--ember-dark);
    color: var(--ember-dark);
}
.status-pill[data-state="cancelled"] {
    border-style: dashed;
    color: var(--ash);
}
.cancellation-status {
    margin-top: 1.25rem;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}
.cancellation-status p {
    color: var(--charcoal);
}
.cancellation-status blockquote,
.cancellation-review blockquote,
.staff-cancel blockquote {
    margin: 0.75rem 0 0;
    border-left: 3px solid var(--ember);
    padding-left: 0.9rem;
    color: var(--ash);
    font-style: italic;
}
.cancellation-request {
    margin-top: 1.25rem;
}
.cancellation-request summary,
.staff-cancel summary {
    cursor: pointer;
    font-weight: 700;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.cancellation-request .conversation-form {
    margin-top: 0.5rem;
    border-top: 0;
    padding-top: 0;
}
.cancellation-decision {
    display: grid;
    gap: 1.5rem;
}
.cancellation-review {
    border-left: 4px solid var(--ember);
}
.staff-cancel {
    margin-top: 1rem;
}
.refund-fields {
    grid-column: 1 / -1;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}
.refund-fields legend {
    padding: 0 0.4rem;
    font-weight: 700;
}
.refund-fields legend small {
    display: block;
    color: var(--ash);
    font-size: 0.8rem;
    font-weight: 500;
}
.refund-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.75rem 1rem;
}
.refund-grid input {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.4rem 0.6rem;
    background: var(--cream-deep);
    color: var(--charcoal);
    font: inherit;
}
.refund-grid input:disabled {
    opacity: 0.6;
}
.operations-table form {
    margin: 0;
}

/* Customer Credit */
.credits-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem 1.5rem;
    align-items: start;
}
.credit-panel {
    min-width: 0;
    padding: clamp(1.25rem, 3cqi, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--paper);
}
.credit-balance {
    margin: 0 0 1rem;
    font-family: var(--display);
    font-size: clamp(2.6rem, 6vw, 4rem);
    font-weight: 600;
    line-height: 1;
    color: var(--charcoal);
}
.credit-balance[data-negative="true"] {
    color: var(--ember-dark);
}
.top-up-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}
.top-up-form input:not([type="checkbox"]) {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 0.65rem;
    font-size: 1.1rem;
    text-transform: none;
    letter-spacing: 0;
}
.credit-automatic-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.credit-automatic-heading h2 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.15;
}
.credit-automatic-status {
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    padding: 0.3rem 0.75rem;
    background: var(--cream-deep);
    font-size: 0.8rem;
    font-weight: 700;
}
.credit-automatic-settings summary {
    width: fit-content;
    list-style: none;
}
.credit-automatic-settings summary::-webkit-details-marker {
    display: none;
}
.credit-automatic-settings summary:focus-visible {
    outline: 3px solid var(--bosco-focus);
    outline-offset: 4px;
}
.credit-automatic-settings[open] > summary {
    margin-bottom: 1.5rem;
}
.credit-automatic-settings .top-up-form {
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
}
.credit-automatic .checkout-toggle {
    min-height: 44px;
    cursor: pointer;
}
.credit-automatic .checkout-toggle input {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--ember);
}
.checkout-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}
.credit-history {
    grid-column: 1 / -1;
    min-width: 0;
}
.credit-history h2 {
    margin-bottom: 1rem;
}
.credit-entries {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}
.credit-entries li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 0;
}
.credit-entries .eyebrow {
    margin-bottom: 0.25rem;
    color: var(--ash);
}
.credit-entries strong {
    font-family: var(--display);
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
}
.credit-entries strong[data-sign="minus"] {
    color: var(--ash);
}
.credit-entries strong[data-sign="plus"] {
    color: var(--ember);
}

@container (min-width: 48rem) {
    .credits-layout {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    }
}

.error-fallback {
    max-width: 40rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}
.error-fallback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
