/* ==========================================================================
   Londry — application surfaces
   Booking wizard, customer account, staff order board, auth pages.
   These screens are working tools, so the styling is quieter and denser than
   the marketing pages: the hero does the shouting, this does the job.
   ========================================================================== */

/* ── Page header ──────────────────────────────────────────────────────── */

.page-head {
  padding-block: clamp(2.25rem, 5vw, 3.75rem) clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(90% 120% at 15% 0%, var(--aqua-wash) 0%, transparent 55%),
    radial-gradient(70% 100% at 95% 10%, var(--brightener-wash) 0%, transparent 50%),
    var(--porcelain);
  border-bottom: 1px solid var(--hairline-soft);
}

.page-head h1 {
  font-size: var(--step-lg);
}

.page-head .lede {
  margin-top: var(--s-3);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--slate-light);
  margin-bottom: var(--s-3);
}

.crumbs a {
  color: var(--slate);
  text-decoration: none;
}

.crumbs a:hover { color: var(--detergent-deep); }

.crumbs span[aria-hidden] { opacity: 0.5; }

/* ── Auth pages ───────────────────────────────────────────────────────── */

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  min-height: calc(100vh - var(--header-h));
  align-items: stretch;
}

.auth-form-side {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter);
}

.auth-card {
  width: min(100%, 27rem);
}

.auth-card h1 {
  font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.4rem);
  margin-bottom: var(--s-2);
}

.auth-card .lede {
  font-size: 0.975rem;
  margin-bottom: var(--s-5);
}

.auth-aside {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  display: grid;
  align-content: center;
  gap: var(--s-5);
  padding: clamp(2rem, 5vw, 4rem);
}

.auth-aside::before {
  content: '';
  position: absolute;
  inset: -30% -20% auto auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(53, 211, 232, 0.32) 0%, transparent 65%);
}

.auth-aside::after {
  content: '';
  position: absolute;
  inset: auto auto -35% -20%;
  width: 65%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.3) 0%, transparent 65%);
}

.auth-aside > * {
  position: relative;
  z-index: 1;
}

.auth-aside h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  max-width: 18ch;
}

.auth-points {
  display: grid;
  gap: var(--s-4);
}

.auth-point {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.auth-point svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--aqua);
  margin-top: 2px;
}

.auth-point strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
}

.auth-point span {
  font-size: 0.875rem;
  color: color-mix(in oklab, var(--white) 62%, transparent);
  line-height: 1.55;
}

.auth-switch {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--hairline-soft);
  font-size: 0.9rem;
  color: var(--slate);
  text-align: center;
}

/* Demo credential helper — this is a portfolio build, so the logins are
   printed rather than hidden. */
.demo-creds {
  margin-top: var(--s-4);
  padding: var(--s-4);
  border: 1px dashed var(--hairline);
  border-radius: var(--r-md);
  background: var(--white);
  font-size: 0.82rem;
}

.demo-creds h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: var(--s-2);
}

.demo-cred-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 0.3rem 0;
}

.demo-cred-row code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink);
}

.strength {
  display: flex;
  gap: 4px;
  margin-top: 0.5rem;
}

.strength-bar {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--hairline);
  transition: background-color var(--dur) linear;
}

.strength[data-score='1'] .strength-bar:nth-child(-n + 1) { background: var(--coral); }
.strength[data-score='2'] .strength-bar:nth-child(-n + 2) { background: var(--citrus); }
.strength[data-score='3'] .strength-bar:nth-child(-n + 3) { background: #7cc9a0; }
.strength[data-score='4'] .strength-bar { background: var(--mint); }

@media (max-width: 900px) {
  .auth {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-aside {
    order: -1;
    padding-block: clamp(2rem, 6vw, 3rem);
  }

  .auth-aside h2 { font-size: 1.5rem; }
  .auth-points { display: none; }
}

/* ── Booking wizard ───────────────────────────────────────────────────── */

.wizard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  padding-block: var(--s-6) var(--s-8);
}

.wizard-main {
  min-width: 0;
}

/* Progress rail — a real sequence, so it is numbered and ordered. */
.steps-rail {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: var(--s-5);
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
}

.steps-rail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  padding: 0.4rem 0.8rem 0.4rem 0.45rem;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate-light);
  transition: color var(--dur) linear, border-color var(--dur) linear,
    background-color var(--dur) linear;
}

.steps-rail-num {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--hairline-soft);
  color: var(--slate-light);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  transition: background-color var(--dur) linear, color var(--dur) linear;
}

.steps-rail-item.is-current {
  color: var(--ink);
  border-color: color-mix(in oklab, var(--detergent) 40%, transparent);
  background: var(--detergent-wash);
}

.steps-rail-item.is-current .steps-rail-num {
  background: var(--detergent);
  color: var(--white);
}

.steps-rail-item.is-done {
  color: var(--slate);
}

.steps-rail-item.is-done .steps-rail-num {
  background: var(--mint);
  color: var(--white);
}

.steps-rail-sep {
  flex: none;
  width: 14px;
  height: 1px;
  background: var(--hairline);
}

.wizard-panel {
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.wizard-step {
  display: none;
  animation: step-in 380ms var(--ease-out) both;
}

.wizard-step.is-active {
  display: block;
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.wizard-step h2 {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  margin-bottom: var(--s-2);
}

.wizard-step-lede {
  font-size: 0.95rem;
  color: var(--slate);
  margin-bottom: var(--s-5);
  max-width: 52ch;
}

.wizard-nav {
  display: flex;
  gap: var(--s-3);
  justify-content: space-between;
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--hairline-soft);
}

/* ── Service picker ───────────────────────────────────────────────────── */

.cat-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: var(--s-4);
}

.cat-tab {
  flex: none;
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  white-space: nowrap;
  transition: all var(--dur-fast) linear;
}

.cat-tab:hover {
  border-color: var(--detergent);
  color: var(--detergent-deep);
}

.cat-tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.svc-list {
  display: grid;
  gap: 0.65rem;
}

.svc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--hairline-soft);
  border-radius: var(--r-md);
  background: var(--white);
  transition: border-color var(--dur-fast) linear, background-color var(--dur-fast) linear;
}

.svc-row.is-picked {
  border-color: var(--detergent);
  background: var(--detergent-wash);
}

.svc-row-name {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.svc-row-desc {
  font-size: 0.83rem;
  color: var(--slate);
  line-height: 1.5;
  margin-top: 0.2rem;
}

.svc-row-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.svc-row-price span {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--slate-light);
}

.qty {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: var(--porcelain);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 3px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--slate);
  transition: all var(--dur-fast) linear;
}

.qty-btn:hover:not(:disabled) {
  background: var(--detergent);
  border-color: var(--detergent);
  color: var(--white);
}

.qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-value {
  min-width: 3.1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.qty-value small {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--slate-light);
  font-size: 0.7rem;
  display: block;
  margin-top: -2px;
}

/* ── Turnaround picker ────────────────────────────────────────────────── */

.turnarounds {
  display: grid;
  gap: 0.65rem;
}

.turnaround {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--hairline-soft);
  border-radius: var(--r-md);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--dur-fast) linear, background-color var(--dur-fast) linear,
    transform var(--dur-fast) var(--ease-out);
}

.turnaround:hover:not(.is-disabled) {
  border-color: color-mix(in oklab, var(--detergent) 45%, transparent);
}

.turnaround.is-selected {
  border-color: var(--detergent);
  background: var(--detergent-wash);
}

.turnaround.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.turnaround input {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--hairline);
  border-radius: 50%;
  flex: none;
  position: relative;
  transition: border-color var(--dur-fast) linear;
}

.turnaround input:checked {
  border-color: var(--detergent);
  border-width: 6px;
}

.turnaround-name {
  font-size: 0.98rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.turnaround-desc {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 0.15rem;
  line-height: 1.5;
}

.turnaround-price {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.turnaround-price small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--slate-light);
}

/* ── Date & slot picker ───────────────────────────────────────────────── */

.date-strip {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  margin-bottom: var(--s-4);
  scroll-snap-type: x proximity;
}

.date-chip {
  flex: none;
  width: 4.4rem;
  padding: 0.6rem 0.4rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--hairline-soft);
  background: var(--white);
  text-align: center;
  scroll-snap-align: start;
  transition: all var(--dur-fast) linear;
}

.date-chip:hover {
  border-color: var(--detergent);
}

.date-chip.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.date-chip-day {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-light);
}

.date-chip.is-selected .date-chip-day { color: color-mix(in oklab, var(--white) 70%, transparent); }

.date-chip-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.15;
}

.date-chip-mon {
  font-size: 0.66rem;
  color: var(--slate-light);
}

.date-chip.is-selected .date-chip-mon { color: color-mix(in oklab, var(--white) 70%, transparent); }

.slot-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
}

.slot {
  padding: 0.7rem 0.6rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--hairline-soft);
  background: var(--white);
  text-align: center;
  transition: all var(--dur-fast) linear;
}

.slot:hover:not(:disabled) {
  border-color: var(--detergent);
}

.slot.is-selected {
  background: var(--detergent);
  border-color: var(--detergent);
  color: var(--white);
}

.slot:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--porcelain);
}

.slot-time {
  font-size: 0.88rem;
  font-weight: 600;
}

.slot-meta {
  font-size: 0.7rem;
  color: var(--slate-light);
  margin-top: 0.15rem;
}

.slot.is-selected .slot-meta { color: color-mix(in oklab, var(--white) 78%, transparent); }
.slot.is-scarce .slot-meta { color: var(--citrus-deep); font-weight: 600; }

.slot-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-4);
  font-size: 0.78rem;
  color: var(--slate-light);
}

/* ── Basket / summary ─────────────────────────────────────────────────── */

.summary {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.summary-head {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--hairline-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}

.summary-head h3 {
  font-size: 1.05rem;
}

.summary-body {
  padding: 1rem 1.15rem;
  max-height: 22rem;
  overflow-y: auto;
}

.summary-empty {
  text-align: center;
  padding: var(--s-5) 0;
  color: var(--slate-light);
  font-size: 0.88rem;
}

.summary-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-3);
  padding: 0.5rem 0;
  font-size: 0.875rem;
  align-items: start;
}

.summary-line + .summary-line {
  border-top: 1px solid var(--hairline-soft);
}

.summary-line-name {
  font-weight: 500;
  line-height: 1.4;
}

.summary-line-qty {
  font-size: 0.78rem;
  color: var(--slate-light);
  font-family: var(--font-mono);
}

.summary-line-total {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.summary-totals {
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--hairline-soft);
  background: var(--porcelain);
}

.total-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: 0.875rem;
  padding: 0.25rem 0;
  color: var(--slate);
}

.total-row-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 500;
}

.total-row.is-discount .total-row-value { color: #0a7d5a; }

.total-row.is-grand {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hairline);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.total-row.is-grand .total-row-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.vat-note {
  font-size: 0.72rem;
  color: var(--slate-light);
  margin-top: 0.35rem;
}

.promo-row {
  display: flex;
  gap: 0.4rem;
  margin-top: var(--s-3);
}

.promo-row .input {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 0.55rem 0.75rem;
}

@media (max-width: 1000px) {
  .wizard {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }
}

/* ── Order confirmation ───────────────────────────────────────────────── */

.confirm {
  text-align: center;
  max-width: 34rem;
  margin-inline: auto;
  padding-block: var(--s-6);
}

.confirm-tick {
  width: 76px;
  height: 76px;
  margin: 0 auto var(--s-5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mint-wash);
  color: var(--mint);
  animation: pop 560ms var(--ease-spring) both;
}

.confirm-tick svg {
  width: 38px;
  height: 38px;
  stroke-width: 2.4;
}

@keyframes pop {
  0%   { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.confirm-ref {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--detergent-wash);
  color: var(--detergent-deep);
  margin-block: var(--s-3) var(--s-4);
}

/* ── Order cards & status ─────────────────────────────────────────────── */

.order-card {
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease-out), border-color var(--dur) linear;
}

.order-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--hairline);
}

.order-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--hairline-soft);
  background: var(--porcelain);
}

.order-ref {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.order-card-body {
  padding: 1.15rem;
  display: grid;
  gap: var(--s-4);
}

.order-facts {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.fact-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 0.25rem;
}

.fact-value {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}

.order-items-list {
  font-size: 0.875rem;
  color: var(--slate);
  display: grid;
  gap: 0.3rem;
}

.order-item-line {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
}

.order-item-line span:last-child {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* Status progress — a real pipeline, so it reads left to right. */
.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.25rem 0;
}

.pipeline-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  min-width: 0;
}

.pipeline-node::before,
.pipeline-node::after {
  content: '';
  position: absolute;
  top: 7px;
  height: 2px;
  background: var(--hairline);
  z-index: 0;
}

.pipeline-node::before { left: 0; right: 50%; }
.pipeline-node::after  { left: 50%; right: 0; }
.pipeline-node:first-child::before { display: none; }
.pipeline-node:last-child::after { display: none; }

.pipeline-node.is-done::before,
.pipeline-node.is-done::after,
.pipeline-node.is-current::before {
  background: var(--mint);
}

.pipeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--hairline);
  z-index: 1;
  transition: all var(--dur) var(--ease-out);
}

.pipeline-node.is-done .pipeline-dot {
  background: var(--mint);
  border-color: var(--mint);
}

.pipeline-node.is-current .pipeline-dot {
  background: var(--detergent);
  border-color: var(--detergent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--detergent) 20%, transparent);
}

.pipeline-label {
  font-size: 0.66rem;
  text-align: center;
  color: var(--slate-light);
  line-height: 1.25;
  max-width: 6rem;
}

.pipeline-node.is-current .pipeline-label {
  color: var(--ink);
  font-weight: 600;
}

.pipeline-cancelled {
  padding: 0.6rem 0.9rem;
  border-radius: var(--r-sm);
  background: var(--hairline-soft);
  color: var(--slate);
  font-size: 0.85rem;
  text-align: center;
}

/* ── Timeline of events ───────────────────────────────────────────────── */

.events {
  display: grid;
  gap: 0;
}

.event {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  position: relative;
}

.event:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 0.68rem;
  top: 1.15rem;
  bottom: 0;
  width: 2px;
  background: var(--hairline-soft);
}

.event-dot {
  width: 10px;
  height: 10px;
  margin: 0.4rem auto 0;
  border-radius: 50%;
  background: var(--detergent);
  z-index: 1;
  position: relative;
}

.event-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.event-meta {
  font-size: 0.78rem;
  color: var(--slate-light);
  margin-top: 0.1rem;
}

.event-note {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 0.25rem;
  padding: 0.4rem 0.65rem;
  background: var(--porcelain);
  border-radius: var(--r-sm);
}

/* ── Account layout ───────────────────────────────────────────────────── */

.account {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-block: var(--s-6) var(--s-8);
  align-items: start;
}

.side-nav {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: grid;
  gap: 0.2rem;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate);
  background: none;
  border: 0;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: background-color var(--dur-fast) linear, color var(--dur-fast) linear;
}

.side-link:hover {
  background: var(--hairline-soft);
  color: var(--ink);
}

.side-link.is-active {
  background: var(--detergent-wash);
  color: var(--detergent-deep);
  font-weight: 600;
}

.side-link svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.pane {
  display: none;
}

.pane.is-active {
  display: block;
  animation: step-in 320ms var(--ease-out) both;
}

@media (max-width: 860px) {
  .account {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }
}

/* ── Stats row ────────────────────────────────────────────────────────── */

.kpis {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  margin-bottom: var(--s-5);
}

.kpi {
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.kpi-sub {
  font-size: 0.78rem;
  color: var(--slate-light);
  margin-top: 0.2rem;
}

/* ── Staff board ──────────────────────────────────────────────────────── */

.board-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  margin-bottom: var(--s-4);
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-md);
}

.board-search {
  flex: 1;
  min-width: 12rem;
}

.board-search .input {
  padding-block: 0.55rem;
}

.filter-pills {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate);
  white-space: nowrap;
  transition: all var(--dur-fast) linear;
}

.filter-pill:hover { border-color: var(--detergent); color: var(--detergent-deep); }

.filter-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.filter-pill-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.7;
  margin-left: 0.25rem;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 54rem;
}

.table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  border-bottom: 1px solid var(--hairline);
  background: var(--porcelain);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--hairline-soft);
  vertical-align: middle;
}

.table tbody tr {
  transition: background-color var(--dur-fast) linear;
  cursor: pointer;
}

.table tbody tr:hover {
  background: var(--detergent-wash);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table .cell-ref {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.table .cell-money {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.table .cell-when {
  white-space: nowrap;
  font-size: 0.82rem;
}

.cell-customer-name {
  font-weight: 600;
}

.cell-customer-email {
  font-size: 0.78rem;
  color: var(--slate-light);
}

.empty-state {
  padding: var(--s-8) var(--s-5);
  text-align: center;
  color: var(--slate);
}

.empty-state h3 {
  font-size: 1.15rem;
  margin-bottom: var(--s-2);
}

.empty-state p {
  font-size: 0.92rem;
  max-width: 34ch;
  margin-inline: auto;
}

/* ── Drawer for order detail ──────────────────────────────────────────── */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 46, 0.42);
  backdrop-filter: blur(2px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) linear, visibility var(--dur) linear;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 34rem);
  background: var(--porcelain);
  z-index: 201;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.drawer.is-open {
  transform: none;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 1rem 1.25rem;
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: grid;
  gap: var(--s-4);
  align-content: start;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--hairline-soft);
  color: var(--slate);
  font-size: 1.1rem;
  line-height: 1;
  transition: background-color var(--dur-fast) linear;
}

.drawer-close:hover {
  background: var(--hairline);
  color: var(--ink);
}

.drawer-section {
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem;
}

.drawer-section h4 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: var(--s-3);
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ── Runsheet ─────────────────────────────────────────────────────────── */

.runsheet-slot {
  margin-bottom: var(--s-5);
}

.runsheet-slot-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}

.runsheet-slot-time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--white);
}

.runsheet-slot-rule {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.runsheet-job {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-md);
  margin-bottom: 0.4rem;
}

.job-type {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.job-type-collection { background: var(--citrus-wash); color: #96650a; }
.job-type-delivery   { background: var(--mint-wash);   color: #0a7d5a; }

/* ── Capacity board ───────────────────────────────────────────────────── */

.capacity-row {
  display: grid;
  grid-template-columns: 7rem 1fr 1fr;
  gap: var(--s-3);
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 0.85rem;
}

.capacity-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--hairline-soft);
  overflow: hidden;
  position: relative;
}

.capacity-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 4px;
  background: var(--grad-cycle);
  transition: width var(--dur-slow) var(--ease-out);
}

.capacity-bar-fill.is-full { background: var(--coral); }

.capacity-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate-light);
  white-space: nowrap;
}

/* ── Misc ─────────────────────────────────────────────────────────────── */

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.price-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-bottom: var(--s-3);
}

.price-table th {
  text-align: left;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--hairline);
}

.price-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--hairline-soft);
  vertical-align: top;
}

.price-table tr:last-child td { border-bottom: 0; }

.price-table .col-price {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-name { font-weight: 600; }

.price-desc {
  font-size: 0.82rem;
  color: var(--slate);
  margin-top: 0.15rem;
  line-height: 1.5;
  max-width: 48ch;
}

.loading-block {
  display: grid;
  gap: 0.6rem;
  padding: var(--s-5);
}

.loading-block .skeleton:nth-child(1) { height: 18px; width: 40%; }
.loading-block .skeleton:nth-child(2) { height: 14px; width: 85%; }
.loading-block .skeleton:nth-child(3) { height: 14px; width: 70%; }
.loading-block .skeleton:nth-child(4) { height: 14px; width: 55%; }

.avatar-chip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-cycle);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  flex: none;
}
