/* ============================================================
   DABBA — screens.css : per-screen layout
   ============================================================ */

/* ===== Shared: feed hero ===== */
.feed-hero { margin-bottom: var(--space-8); }
.feed-hero h1 { margin-bottom: var(--space-2); }
.feed-hero .body { color: var(--ink-700); max-width: 40rem; }

/* C1 recruitment section header ("Almost there") gets the turmeric eyebrow-on-pill
   cue so the eye lands on the section before the per-card at-risk left edge
   (catalog §5.1 C1). No per-card alarm is added; this is a section-level cue. */
.feed-section.at-risk .section-head .eyebrow {
  width: fit-content;
  background: var(--turmeric-100);
  border: 1px solid var(--turmeric-500);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.7rem;
  color: var(--ink-900);
}

/* ===== C1 Browse ===== */
.batchcard {
  background: var(--white); border: 1px solid var(--cream-200); border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column;
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base);
}
.batchcard:hover { box-shadow: var(--shadow-md); border-color: var(--cream-300); }
.batchcard:focus-visible { outline: none; box-shadow: var(--ring-focus); border-color: var(--accent); }
.batchcard.animate-in { animation: fadeRise var(--dur-base) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes fadeRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Skeleton loader (Ch.6 C1) — stable layout, no shift, shimmer.
   The placeholder mirrors the real BatchCard default layout row-for-row and
   reserves the same body min-height as .batchcard-body so the grid does not
   resize on load (swap of skeleton → real causes zero vertical shift). */
.skeleton { position: relative; overflow: hidden; background: var(--cream-200); }
.skeleton::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.batchcard-skeleton {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--cream-200);
  border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-sm);
}
.batchcard-skeleton .sk-media { aspect-ratio: 4/3; }
.batchcard-skeleton .sk-body {
  padding: var(--space-4); display: flex; flex-direction: column;
  gap: var(--space-2); flex: 1;
  /* share the reserved body height with the real card so no reflow on swap;
     the floor is raised in lockstep with .batchcard-body (P1-2 rhythm) */
  min-height: var(--card-body-min, 248px);
}
.batchcard-skeleton .sk-line { height: 14px; border-radius: var(--radius-pill); }
.batchcard-skeleton .sk-line.w60 { width: 60%; } .sk-line.w40 { width: 40%; }
.batchcard-skeleton .sk-line.w85 { width: 85%; } .sk-line.w35 { width: 35%; }
.batchcard-skeleton .sk-line.w70 { width: 70%; } .sk-line.w50 { width: 50%; }
.batchcard-skeleton .sk-line.w90 { width: 90%; } .sk-line.w30 { width: 30%; }
/* chef strip row: 32px avatar + stacked name/meta (mirrors ChefStrip sm) */
.batchcard-skeleton .sk-chef { display: flex; align-items: center; gap: var(--space-3); }
.batchcard-skeleton .sk-chef-avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.batchcard-skeleton .sk-chef-lines { display: flex; flex-direction: column; gap: 6px; flex: 1; }
/* title reserves two lines (real .batchcard-title is clamp-2) */
.batchcard-skeleton .sk-title { height: 42px; }
/* fill meter track height (real .fillmeter-track is var(--space-2)) */
.batchcard-skeleton .sk-meter { height: var(--space-2); border-radius: var(--radius-pill); }
/* foot: price placeholder reserves tabular-figure width so digit swap never shifts layout */
.batchcard-skeleton .sk-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: auto; }
.batchcard-skeleton .sk-price {
  width: 88px; height: 20px; flex: none;
  font-size: var(--fs-num); font-variant-numeric: tabular-nums;
}
.batchcard-media { position: relative; aspect-ratio: 4/3; }
.batchcard-photo { width: 100%; height: 100%; object-fit: cover; }
.batchcard.is-dimmed .batchcard-photo { opacity: 0.5; filter: grayscale(0.5); }
.batchcard.at-risk { border-left: 4px solid var(--turmeric-500); }
.batchcard-countdown { position: absolute; top: var(--space-3); right: var(--space-3); z-index: var(--z-card); }
.batchcard-badge { position: absolute; top: var(--space-3); left: var(--space-3); background: rgba(28,25,23,0.78); color: var(--white); padding: 0.2rem 0.7rem; border-radius: var(--radius-pill); }
.batchcard-badge[data-state='confirmed'] { background: var(--forest-500); }
.batchcard-badge[data-state='sold-out'] { background: rgba(28,25,23,0.7); }
/* Failed vs cancelled are now glance-ably distinct (catalog §6.1), not just a
   different label. failed = muted pale pill ("didn't tip" is passive); cancelled
   = solid ink (a decisive action was taken). The shared photo-dim stays on
   .batchcard.is-dimmed for both. */
.batchcard-badge[data-state='failed'] { background: rgba(250,246,239,0.92); color: var(--ink-500); }
.batchcard-badge[data-state='cancelled'] { background: var(--ink-900); color: var(--white); }
.batchcard-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; min-height: var(--card-body-min, 248px); }
/* P1-2 rhythm contract (catalog §6.1): the top identity stack (chef / title /
   collect) stays tight at space-2; the live meter and the divider each get a
   clear space-2 step, so the card reads in three beats — not six uniform 8px
   rows. The foot is already pinned clear by margin-top:auto. The shared
   --card-body-min floor (also used by the skeleton) is raised by the same amount
   the added air costs, so skeleton -> real swap still produces zero shift. */
.batchcard-body > .fillmeter { margin-top: var(--space-2); }
.batchcard-body > hr.divider { margin-top: var(--space-2); }
.batchcard-title { font-size: 1.125rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.batchcard-title, .batchcard-title + * { min-width: 0; }
.batchcard-collect { display: flex; align-items: center; gap: 6px; color: var(--ink-700); min-width: 0; }
.batchcard-collect > span { min-width: 0; overflow-wrap: anywhere; }
.batchcard-foot { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-top: auto; flex-wrap: wrap; row-gap: var(--space-2); }
/* reserved tabular-figure width on the live price so digit changes never reflow */
.batchcard-price-now { color: var(--ink-900); font-variant-numeric: tabular-nums; min-width: 0; }
.batchcard-price { display: flex; align-items: baseline; gap: var(--space-2); flex: none; min-width: 0; line-height: 1.4; white-space: nowrap; }
.batchcard-price > .num { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.batchcard-base-strike { text-decoration: line-through; color: var(--ink-500); }
.batchcard-incentive { flex: 1 1 auto; text-align: right; min-width: 0; }
.batchcard-incentive.at-risk { color: var(--accent-strong); font-weight: 600; }
@media (max-width: 360px) {
  /* 320px fix (catalog §6.2): price line keeps its height; incentive drops to own line */
  .batchcard-foot { align-items: flex-start; }
  .batchcard-incentive { text-align: left; flex-basis: 100%; }
}
.batchcard-statepill { font-size: var(--fs-body-sm); font-weight: 600; color: var(--ink-700); }
.batchcard-statepill[data-state='failed'] { color: var(--ink-500); font-weight: 500; }
.batchcard-statepill[data-state='cancelled'] { color: var(--ink-900); font-weight: 700; }
.batchcard-statepill[data-state='sold-out'] { color: var(--ink-900); }
.batchcard-statepill.small { font-size: 0.8rem; }
.batchcard-track { color: var(--accent-strong); font-weight: 600; background: none; border: none; padding: var(--space-2); cursor: pointer; }

/* list-row */
.batchcard-list-row { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4); cursor: pointer; background: var(--white); border: 1px solid var(--cream-200); border-radius: var(--radius-card); }
.batchcard-list-row:hover { box-shadow: var(--shadow-md); }
.batchcard-rowphoto { width: 96px; height: 96px; border-radius: var(--radius-card-sm); object-fit: cover; flex: none; }
.batchcard-rowbody { flex: 1; display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.batchcard-rowhead { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.batchcard-rowhead h4 { font-size: 1.125rem; }
.batchcard-rowchef { color: var(--ink-700); }
.batchcard-rowmeter { }
.batchcard-rowfoot { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.batchcard-rowprice { }
.batchcard.is-dimmed .batchcard-rowphoto { opacity: 0.5; filter: grayscale(0.5); }

/* mini */
.batchcard-mini { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); cursor: pointer; background: var(--white); border: 1px solid var(--cream-200); border-radius: var(--radius-card); }
.batchcard-mini:hover { box-shadow: var(--shadow-md); }
.batchcard-mini-photo { width: 64px; height: 64px; border-radius: var(--radius-card-sm); object-fit: cover; flex: none; }
.batchcard-mini-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.batchcard-mini-title { font-size: 1rem; }

/* ===== C2 Batch Detail ===== */
.batch-detail { }
.allergy-band {
  display: flex; gap: var(--space-2); align-items: baseline;
  background: var(--paprika-100); border: 1px solid var(--paprika-600); color: var(--paprika-600);
  border-radius: var(--radius-card); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-6);
}
.detail-left { min-width: 0; }
.carousel { margin-bottom: var(--space-6); }
.carousel-main { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-card); }
.carousel-strip { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.carousel-thumb { border: none; padding: 0; background: none; border-radius: var(--radius-input); }
.carousel-thumb.active { outline: 2px solid var(--accent); }
.dish-header { margin-bottom: var(--space-8); }
.dish-header .display { margin-bottom: var(--space-2); }
.dish-meta { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; color: var(--ink-700); margin-bottom: var(--space-4); }
.dish-meta .dot { color: var(--cream-300); }
.detail-section { margin-bottom: var(--space-8); }
.detail-section .h2 { margin-bottom: var(--space-3); }
.ingredients { color: var(--ink-500); margin: var(--space-2) 0 var(--space-3); }
.detail-allergens { margin-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.how-it-works { display: flex; flex-direction: column; gap: var(--space-2); color: var(--ink-700); padding-left: var(--space-4); list-style: decimal; }
.how-it-works li { margin-left: var(--space-2); }
.review-list { display: flex; flex-direction: column; }

/* purchase panel (right rail) */
.purchase-panel {
  background: var(--white); border: 1px solid var(--cream-200); border-radius: var(--radius-card);
  box-shadow: var(--shadow-md); padding: var(--space-5);
}
@media (min-width: 1024px) {
  .purchase-panel { position: sticky; top: var(--space-6); }
}
.purchase-inner { display: flex; flex-direction: column; gap: var(--space-4); }
.panel-countdown { }
.panel-portions { color: var(--ink-700); }
/* Live-object grouping (C2 §5.2): the countdown + fill meter + price ladder
   read as one "This batch is live" object. Internal space-3 rhythm; the article
   breathes space-5 from the fulfilment block below it. */
.live-panel {
  border: 1px solid var(--cream-200); border-radius: var(--radius-card);
  background: var(--accent-soft); padding: var(--space-4);
  margin-bottom: var(--space-5); /* shared breathing from the block below */
}
.live-panel-head { margin-bottom: var(--space-3); }
.live-panel-body { display: flex; flex-direction: column; gap: var(--space-3); }
.panel-block { display: flex; flex-direction: column; gap: var(--space-3); }
.panel-total { display: flex; justify-content: space-between; align-items: baseline; }
.panel-total-num { font-size: 1.5rem; }
.panel-window { color: var(--ink-500); }
.state-block { border-radius: var(--radius-card-sm); padding: var(--space-4); }
.state-block.confirmed { background: var(--forest-100); }
.state-block.failed, .state-block.cancelled { background: var(--cream-200); }
.state-block.soldout { background: var(--cream-200); }
.state-block h3 { margin-bottom: var(--space-2); }

/* sticky footer CTA (mobile) */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--z-sticky);
  background: var(--cream-50); border-top: 1px solid var(--cream-200);
  padding: var(--space-3) var(--gutter-mobile) calc(var(--space-3) + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg);
}
.sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.sticky-price { font-size: 1.25rem; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ===== C3 Checkout ===== */
.checkout-page { max-width: 64rem; margin: 0 auto; }
/* Reassurance — the single most important sentence in the app. First full-width
   element above both checkout columns. cream-50 fill, radius-card, 4px terracotta
   left border, body-strong lead + small supporting line. */
.reassurance {
  background: var(--cream-50); border-left: 4px solid var(--accent);
  padding: var(--space-5); margin-bottom: var(--space-8); border-radius: var(--radius-card);
  border-top: 1px solid var(--cream-200); border-right: 1px solid var(--cream-200); border-bottom: 1px solid var(--cream-200);
  max-width: 100%;
}
.reassurance-lead { margin-bottom: var(--space-2); color: var(--ink-900); max-width: 100%; }
.reassurance-sub { color: var(--ink-700); max-width: 100%; }
.checkout-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
.checkout-summary { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.checkout-dish { display: flex; gap: var(--space-4); align-items: center; }
.checkout-dish-photo { width: 72px; height: 56px; border-radius: var(--radius-card-sm); object-fit: cover; }
.checkout-dish-info h2 { margin-bottom: 2px; }
.checkout-block { display: flex; flex-direction: column; gap: var(--space-3); }
.allergy-reconfirm { background: var(--paprika-100); border: 1px solid var(--paprika-600); border-radius: var(--radius-card-sm); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-1); color: var(--paprika-600); }
.pay-card { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.line-items { display: flex; flex-direction: column; gap: var(--space-2); }
.line-item { display: flex; justify-content: space-between; align-items: baseline; }
.line-item-true { color: var(--forest-700); }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; }
.pay-total-num { font-size: 1.5rem; }
.pay-actions { }
.pay-note { color: var(--ink-500); }
@media (min-width: 1024px) {
  .checkout-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== C4 Orders ===== */
.orders-page { }
.orders-layout { display: grid; gap: var(--space-8); grid-template-columns: 1fr; }
.orders-main { min-width: 0; }
.order-list { display: flex; flex-direction: column; gap: var(--space-4); }
.order-card { padding: var(--space-4); }
.order-card-body { padding-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.order-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); flex-wrap: wrap; }
.order-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.order-charge { color: var(--forest-700); }
/* Mobile: surface the "Waiting on the group" share moment at the top of the
   list instead of after the main column. Desktop restores it to the sidebar. */
.orders-rail { order: -1; }
.wait-card {
  padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3);
  position: sticky; top: var(--space-6);
}
/* Highlighted share object: accent-soft fill + terracotta border */
.wait-live-highlight {
  background: var(--accent-soft);
  border: 1px solid var(--terra-600);
  box-shadow: var(--shadow-md);
}
.wait-live { display: flex; flex-direction: column; gap: var(--space-3); }
.wait-copy { color: var(--ink-700); }
.wait-meter { }
.past-card { padding: var(--space-4); }
.past-card-main { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.past-status { font-size: var(--fs-body-sm); font-weight: 600; padding: 0.2rem 0.7rem; border-radius: var(--radius-pill); background: var(--cream-200); }
.past-status.completed { background: var(--forest-100); color: var(--forest-700); }
.past-status.failed, .past-status.voided { color: var(--ink-500); }
.past-copy { color: var(--ink-700); margin-top: var(--space-2); }
@media (min-width: 1024px) {
  .orders-layout { grid-template-columns: 1fr 320px; }
  .orders-rail { order: 0; grid-column: 2; grid-row: 1; }
  .orders-main { grid-column: 1; grid-row: 1; }
}

/* share sheet */
.share-sheet { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.share-card-wrap { display: flex; justify-content: center; }
.share-actions { display: flex; flex-direction: column; gap: var(--space-2); }

/* ===== K1 Login ===== */
.login-page { max-width: 26rem; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-6); }
/* Chef value statement — carries customer-side trust weight: Fraunces serif,
   weighted, sitting above the auth card (not a caption under it). */
.login-value { text-align: center; padding: var(--space-2) 0 0; display: flex; flex-direction: column; gap: var(--space-3); }
.login-value-kicker {
  font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--forest-500);
}
.login-value-statement {
  font-family: var(--font-display); font-weight: 600; color: var(--forest-700);
  font-size: clamp(1.4rem, 2.1vw, 1.8rem); line-height: 1.22;
}
.login-value-sub { color: var(--ink-500); margin: 0 auto; max-width: 30ch; }
.login-card { padding: var(--space-6); }
.login-head { margin-bottom: var(--space-4); }
.login-head .eyebrow { color: var(--forest-700); }
.login-chefs { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-4) 0; }
.login-chef-row {
  display: flex; align-items: center; gap: var(--space-3); width: 100%;
  padding: var(--space-3); border: 1px solid var(--cream-200); border-radius: var(--radius-input);
  background: var(--white); cursor: pointer; text-align: left;
  transition: border-color var(--dur-fast);
}
.login-chef-row:hover { border-color: var(--forest-500); }
.login-chef-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.login-chef-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.login-chef-info .body-sm { color: var(--ink-500); text-transform: capitalize; }
.login-chef-arrow { color: var(--ink-500); }
.login-note { color: var(--ink-500); margin-top: var(--space-2); }

/* ===== K2 Dashboard ===== */
.kitchen-page { }
.kitchen-hero .eyebrow { color: var(--forest-700); }
/* Allergy spine — full-width paprika band that spans every column. Lives above
   the grid (outside any column/accordion) so toggling prep sheets never hides
   it. Count is the glance-primary cue; renders nothing when no conflicts. */
.allergy-band {
  display: flex; align-items: center; gap: var(--space-4); width: 100%;
  flex-wrap: wrap;
  background: var(--paprika-100); border: 1px solid var(--paprika-600); color: var(--paprika-600);
  border-radius: var(--radius-card); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-6);
  text-align: left;
}
.allergy-band > svg { flex: none; }
.allergy-band-count { flex: none; font-size: 2rem; line-height: 1; min-width: 2.6ch; color: var(--paprika-600); }
.allergy-band-copy { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.allergy-band-copy .body-strong { color: var(--paprika-600); }
.allergy-band-copy .body-sm { color: var(--ink-700); }
.allergy-band-actions { flex: none; }
.kitchen-cta { margin-bottom: var(--space-6); }
.kitchen-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 1024px) { .kitchen-grid { grid-template-columns: 30% 1fr 26%; align-items: start; } }
.kitchen-col.left, .kitchen-col.right { }
@media (min-width: 1024px) { .kitchen-col.left, .kitchen-col.right { position: sticky; top: var(--space-6); } }
.prep-card { padding: var(--space-5); }
.prep-list { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-3) 0; }
.prep-item { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.prep-item .num { color: var(--forest-700); }
.prep-hint { color: var(--ink-500); }
.kitchen-batch-row { width: 100%; text-align: left; padding: var(--space-4); cursor: pointer; display: flex; flex-direction: column; gap: var(--space-3); }
.kitchen-batch-row:hover { box-shadow: var(--shadow-md); }
.kbr-main { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); width: 100%; }
.kitchen-batch-info { min-width: 0; }
.kitchen-batch-info .body-sm { color: var(--ink-500); }
/* one-glance earnings-now figure at the row's right edge */
.kbr-earn { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.kbr-earn-num { color: var(--forest-700); font-weight: 700; font-size: 1.3rem; line-height: 1.1; }
.kbr-earn-label { font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-500); }
.kitchen-batch-meter { }
.kitchen-batch-countdown { }
.forward-card { padding: var(--space-5); }
.forward-num { font-size: 1.75rem; color: var(--forest-700); display: block; margin: var(--space-2) 0; }

/* ===== K3 Composer ===== */
.composer-page { }
.composer-layout { display: grid; gap: var(--space-8); grid-template-columns: 1fr; }
@media (min-width: 1024px) { .composer-layout { grid-template-columns: 1fr 380px; align-items: start; } }
.composer-form { display: flex; flex-direction: column; gap: var(--space-6); }
.form-step { padding: var(--space-5); }
.form-step-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.form-step-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--forest-100); color: var(--forest-700);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; flex: none;
}
.form-step-body { display: flex; flex-direction: column; gap: var(--space-3); }
.dish-select { display: flex; flex-direction: column; gap: var(--space-2); }
.dish-opt { text-align: left; padding: var(--space-3); border: 1px solid var(--cream-200); border-radius: var(--radius-input); background: var(--white); cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.dish-opt.selected { border-color: var(--forest-500); background: var(--forest-100); }
.dish-opt .body-sm { color: var(--ink-500); }
.spice-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.spice-opt { border: 1px solid var(--cream-200); background: var(--white); border-radius: var(--radius-input); padding: var(--space-2) var(--space-3); cursor: pointer; color: var(--ink-700); }
.spice-opt.selected { border-color: var(--forest-500); background: var(--forest-100); color: var(--forest-700); }
.chips-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip-toggle { border: 1px solid var(--cream-200); background: var(--white); border-radius: var(--radius-pill); padding: 0.4rem 1rem; cursor: pointer; min-height: var(--min-touch); color: var(--ink-700); }
.chip-toggle.on { background: var(--forest-100); border-color: var(--forest-500); color: var(--forest-700); font-weight: 600; }
.chip-static { border: 1px solid var(--cream-200); background: var(--white); border-radius: var(--radius-pill); padding: 0.3rem 0.9rem; font-size: var(--fs-body-sm); }
.minmax-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.tier-list { display: flex; flex-direction: column; gap: var(--space-2); }
.tier-row { display: flex; align-items: center; gap: var(--space-3); }
.tier-input { max-width: 120px; }
.tier-del { background: none; border: none; color: var(--paprika-600); font-size: 1.4rem; cursor: pointer; min-width: var(--min-touch); min-height: var(--min-touch); }
.calc-card { padding: var(--space-5); background: var(--forest-100); border: 1px solid var(--forest-500); }
.calc-inner { display: flex; flex-direction: column; gap: var(--space-4); }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.calc-cell { display: flex; flex-direction: column; gap: 2px; }
.calc-cell .caption { color: var(--forest-700); }
.calc-cell .num { font-size: 1.2rem; color: var(--forest-700); }
.calc-cell .body-sm { color: var(--forest-700); opacity: 0.85; }
.calc-highlight { background: var(--white); border-radius: var(--radius-input); padding: var(--space-3); }
.calc-note { color: var(--forest-700); }
/* Delta-only number motion: only the figure that changed springs (~160ms settle).
   Tabular figures are already reserved via .num. Forest tints a gain; reduced
   motion (base.css) collapses the animation to an instant snap. */
.calc-num { display: inline-block; will-change: transform; }
.calc-gain { color: var(--forest-700); animation: calc-gain-pop 0.16s var(--ease-out); }
.calc-loss { animation: calc-loss-pop 0.16s var(--ease-out); }
@keyframes calc-gain-pop {
  0% { transform: translateY(1px) scale(1); }
  35% { transform: translateY(-2px) scale(1.12); }
  100% { transform: none; }
}
@keyframes calc-loss-pop {
  0% { transform: translateY(-1px) scale(1); }
  40% { transform: translateY(1.5px) scale(0.98); }
  100% { transform: none; }
}
.locked-hint { color: var(--ink-500); }
.review-preview { }
.publish-box { }
.publish-inner { display: flex; flex-direction: column; gap: var(--space-3); }
.composer-preview { display: flex; flex-direction: column; gap: var(--space-6); }
.preview-card { padding: var(--space-5); }
.preview-batchcard { max-width: 360px; }
.preview-batchcard .batchcard { box-shadow: var(--shadow-md); }

/* ===== K4 Chef Batch Detail ===== */
.k4-page { }
.k4-fill, .k4-ladder, .k4-orders, .k4-actions, .k4-earnings { padding: var(--space-5); margin-bottom: var(--space-5); }
.k4-countdown { margin-top: var(--space-4); }
.k4-order-list { display: flex; flex-direction: column; gap: var(--space-2); }
.k4-order-row {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3);
  border-bottom: 1px solid var(--cream-200); border-radius: var(--radius-input);
  border-left: 3px solid transparent;
}
.k4-order-row:last-child { border-bottom: none; }
/* An affected order is unmissable: tinted paprika row + left accent bar are the
   reinforcement; the leading glyph + conflict chip carry the meaning (not colour). */
.k4-order-row.conflict { background: var(--paprika-100); border-left: 3px solid var(--paprika-600); }
.k4-order-flaglead { flex: none; color: var(--paprika-600); display: inline-flex; align-items: center; }
.k4-order-flaglead svg { width: 18px; height: 18px; }
.k4-order-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.k4-order-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.k4-order-info .body-sm { color: var(--ink-500); }
.k4-order-row.conflict .k4-order-info .body-strong { color: var(--ink-900); }
.allergy-flag {
  display: inline-flex; align-items: center; gap: 5px; width: fit-content;
  background: var(--paprika-600); color: var(--white);
  border-radius: var(--radius-pill); padding: 0.18rem 0.6rem; font-size: 0.74rem; font-weight: 700;
}
.allergy-flag svg { flex: none; }
.k4-order-price { flex: none; font-weight: 700; }
.k4-actions-btns { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-3) 0; }
.k4-earnings-num { font-size: 1.75rem; color: var(--forest-700); display: block; margin: var(--space-2) 0; }
.cancel-sheet { padding: var(--space-6); position: relative; display: flex; flex-direction: column; gap: var(--space-4); }
.cancel-band { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--paprika-600); }
.cancel-body { display: flex; flex-direction: column; gap: var(--space-3); }
.cancel-head { display: flex; gap: var(--space-3); align-items: flex-start; }
.cancel-head > svg { flex: none; color: var(--paprika-600); width: 22px; height: 22px; margin-top: 3px; }
.cancel-heading h2 { color: var(--ink-900); }
.cancel-heading .eyebrow { color: var(--paprika-600); margin-bottom: var(--space-1); }
.cancel-actions { padding-top: var(--space-1); }
.confirm-overlay .btn-danger { width: 100%; }

/* ===== S1 Chef Profile ===== */
.profile-page { }
.profile-hero { position: relative; border-radius: var(--radius-card); overflow: hidden; margin-bottom: var(--space-8); }
.profile-hero-bg { width: 100%; height: 220px; object-fit: cover; opacity: 0.5; }
.profile-hero-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--space-6); gap: var(--space-3);
}
.profile-hero-avatar { width: 88px; height: 88px; border-radius: 50%; border: 3px solid var(--white); box-shadow: var(--shadow-md); }
.profile-hero-info { display: flex; flex-direction: column; gap: var(--space-2); }
.profile-hero-info .display { font-size: 1.9rem; }
.profile-hero-rating { display: flex; align-items: center; gap: var(--space-2); }
/* S1 reliability proof as scannable num counters beside the rating (catalog
   §5.9): a stat block (dl) under the hero, not a sentence in a badge pill. */
.profile-stats { display: flex; gap: var(--space-6); margin: var(--space-2) 0 0; }
.profile-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.profile-stat dd { margin: 0; font-size: 1.4rem; line-height: 1.1; }
.profile-stat .caption { color: var(--ink-500); }
.profile-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.badge { background: var(--white); border: 1px solid var(--cream-200); border-radius: var(--radius-pill); padding: 0.25rem 0.8rem; font-size: 0.8rem; color: var(--ink-700); }
.badge.signature { background: var(--terra-100); color: var(--terra-700); border-color: var(--terra-100); }
.badge.certified { background: var(--forest-100); color: var(--forest-700); }
.profile-bio {
  font-family: var(--font-display); font-size: 1.25rem; line-height: 1.5; color: var(--ink-700);
  border-left: 3px solid var(--accent); padding-left: var(--space-5); margin-bottom: var(--space-6);
}
.kitchen-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-bottom: var(--space-8); }
.kitchen-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-card-sm); cursor: pointer; }
.profile-rail { display: flex; flex-direction: column; gap: var(--space-5); }
.rail-card { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.mini-list { display: flex; flex-direction: column; gap: var(--space-2); }
.avail-list { display: flex; flex-direction: column; gap: var(--space-2); color: var(--ink-700); }
.lightbox { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); }
.lightbox-img { width: 100%; border-radius: var(--radius-card-sm); }

/* ===== Batch detail on tablet/desktop adjustments ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  .profile-hero-bg { height: 180px; }
}
