/* =================================================================
   Hero Lab — temporary comparison page.
   Layered on top of styles.css + v2.css. Reuses brand tokens
   (var(--paper), var(--honey), var(--ink), etc.) and the
   v2-hero / v2-shopify-* / v2-printer-* vocabulary.

   This file is meant to be deleted once Garrett picks a direction.
   ================================================================= */

/* ── Lab intro band ──────────────────────────────────────────────── */
.lab-intro {
  padding: 64px 24px 32px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.lab-intro__inner {
  max-width: 880px;
  margin: 0 auto;
}
.lab-intro__title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 16px 0 12px;
  color: var(--ink);
}
.lab-intro__lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 64ch;
}
.lab-intro__lede em {
  font-style: italic;
  color: var(--ink-2);
}
.lab-intro__lede code {
  font-size: 13px;
  padding: 1px 6px;
  background: var(--paper-3);
  border-radius: 4px;
  border: 1px solid var(--rule);
}

/* ── Each lab option ─────────────────────────────────────────────── */
.lab-option {
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.lab-option:first-of-type { border-top: 0; }

.lab-option__label {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 24px;
}
.lab-option__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--honey);
  color: oklch(0.28 0.10 60);
  border-radius: 4px;
  margin-bottom: 14px;
}
.lab-option__title {
  font-size: clamp(28px, 3.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.lab-option__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 64ch;
  margin: 0;
}

.lab-stage {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 56px;
}

/* =================================================================
   OPTION A — Lean Frame 3 overrides
   ================================================================= */

/* Suppress any inherited "missing" list from v2.css (defensive) */
.lab-a-frame .v2-frame-arrow__missing { display: none; }

/* Slightly taller printer + paper to host detailed packing slip */
.lab-a-printer { padding: 18px; }
.lab-a-paper {
  margin: -4px 18px 0;
  padding: 16px 18px 22px;
  min-height: 280px;
}

/* Soft pulse on the click target so eye lands on the action */
@keyframes lab-a-pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.78 0.16 65 / 0.55); }
  50% { box-shadow: 0 0 0 8px oklch(0.78 0.16 65 / 0); }
}
@media (prefers-reduced-motion: no-preference) {
  .lab-a-pulse {
    animation: lab-a-pulse 2.4s ease-out infinite;
  }
}

/* Caption below the lean frame */
.lab-a-caption {
  margin-top: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.lab-a-caption em {
  font-style: italic;
  text-transform: none;
  font-family: inherit;
  color: var(--ink-3);
  font-size: 14px;
  letter-spacing: 0;
}

/* ── Detailed packing-slip rendered on printer paper (Option A) ── */
.lab-ps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: oklch(0.25 0.01 70);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
}
.lab-ps__brand {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: oklch(0.22 0.01 70);
}
.lab-ps__h {
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: oklch(0.45 0.01 70);
  margin-top: 2px;
}
.lab-ps__meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: oklch(0.45 0.01 70);
}
.lab-ps__rule {
  height: 1px;
  background: oklch(0.75 0.01 70);
  margin: 2px 0;
}
.lab-ps__ship .lab-ps__addr {
  font-size: 11px;
  line-height: 1.4;
  color: oklch(0.30 0.01 70);
}
.lab-ps__items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lab-ps__item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  font-size: 11px;
  color: oklch(0.28 0.01 70);
}
.lab-ps__qty {
  font-weight: 700;
  color: oklch(0.20 0.01 70);
}
.lab-ps__barcode {
  margin-top: 8px;
  height: 26px;
  background:
    repeating-linear-gradient(
      to right,
      oklch(0.20 0.01 70) 0 2px,
      transparent 2px 4px,
      oklch(0.20 0.01 70) 4px 5px,
      transparent 5px 8px,
      oklch(0.20 0.01 70) 8px 11px,
      transparent 11px 13px
    );
  border-radius: 1px;
}

/* =================================================================
   OPTION B — Beauty / Artifact (doc fan over printer backdrop)
   ================================================================= */
.lab-b {
  position: relative;
  margin-top: 32px;
  min-height: 380px;
  display: grid;
  place-items: center;
}

/* Printer behind the docs — subtle, atmospheric */
.lab-b__printer-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 90%);
  height: 140px;
  opacity: 0.55;
  pointer-events: none;
}
.lab-b__printer-body {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(180deg, var(--paper-3), var(--paper-4));
  border: 1px solid var(--rule);
  border-radius: 12px 12px 4px 4px;
}
.lab-b__printer-body::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 6px var(--ok);
}
.lab-b__printer-tray {
  position: absolute;
  bottom: 0;
  left: 12%;
  right: 12%;
  height: 60px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 20px 6px;
}
.lab-b__tray-doc {
  width: 70%;
  height: 8px;
  background: oklch(0.96 0.005 80);
  border: 1px solid var(--rule);
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  margin-left: -60%;
}
.lab-b__tray-doc + .lab-b__tray-doc { margin-top: -3px; }

/* Doc fan — three rich cards staggered */
.lab-b__fan {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 12px;
}

.lab-b__doc {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  padding: 18px 16px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.45;
  color: oklch(0.25 0.01 70);
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[data-theme="dark"] .lab-b__doc {
  background: oklch(0.94 0.005 80);
  color: oklch(0.22 0.01 70);
}

.lab-b__doc--ps {
  transform: rotate(-6deg) translate(8px, 18px);
  z-index: 1;
}
.lab-b__doc--inv {
  transform: rotate(0deg) translateY(-8px);
  z-index: 3;
  box-shadow: 0 18px 40px rgba(0,0,0,0.14), 0 3px 8px rgba(0,0,0,0.08);
}
.lab-b__doc--gift {
  transform: rotate(6deg) translate(-8px, 18px);
  z-index: 2;
  background: oklch(0.985 0.012 30);
}

.lab-b__doc-chip {
  position: absolute;
  top: -10px;
  left: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}
.lab-b__doc-chip--inv { background: oklch(0.45 0.16 290); }
.lab-b__doc-chip--gift { background: oklch(0.55 0.16 25); }

.lab-b__doc-brand {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: oklch(0.22 0.01 70);
}
.lab-b__doc-brand--inv { color: oklch(0.30 0.10 290); }
.lab-b__doc-brand--gift {
  text-align: center;
  font-family: serif;
  letter-spacing: 0.10em;
  text-transform: none;
  font-style: italic;
  color: oklch(0.35 0.10 25);
}

.lab-b__doc-h {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: oklch(0.45 0.01 70);
}
.lab-b__doc-h--gift {
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: serif;
  font-style: italic;
  font-weight: 400;
  font-size: 11px;
  color: oklch(0.40 0.06 25);
}

.lab-b__doc-rule {
  height: 1px;
  background: oklch(0.78 0.01 70);
}

.lab-b__doc-addr,
.lab-b__doc-bill {
  font-size: 10px;
  color: oklch(0.32 0.01 70);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lab-b__doc-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lab-b__doc-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  font-size: 10px;
}
.lab-b__doc-item span:first-child {
  font-weight: 700;
}

.lab-b__doc-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lab-b__doc-line {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.lab-b__doc-line-amt {
  font-variant-numeric: tabular-nums;
  color: oklch(0.30 0.01 70);
}

.lab-b__doc-total {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: oklch(0.30 0.10 290);
  padding-top: 4px;
}

.lab-b__doc-barcode {
  margin-top: auto;
  height: 22px;
  background:
    repeating-linear-gradient(
      to right,
      oklch(0.20 0.01 70) 0 2px,
      transparent 2px 4px,
      oklch(0.20 0.01 70) 4px 5px,
      transparent 5px 7px,
      oklch(0.20 0.01 70) 7px 10px,
      transparent 10px 13px
    );
  border-radius: 1px;
}

.lab-b__doc-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg,
    oklch(0.65 0.16 25) 0%,
    oklch(0.72 0.18 35) 50%,
    oklch(0.65 0.16 25) 100%);
  border-radius: 6px 6px 0 0;
}
.lab-b__doc-gift-msg {
  font-family: serif;
  font-style: italic;
  font-size: 11px;
  text-align: center;
  color: oklch(0.35 0.05 25);
  margin: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lab-b__doc-gift-note {
  margin-top: auto;
  text-align: center;
  font-size: 9px;
  color: oklch(0.50 0.04 25);
  font-style: italic;
}

@media (max-width: 720px) {
  .lab-b__fan {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lab-b__doc--ps,
  .lab-b__doc--inv,
  .lab-b__doc--gift {
    transform: none;
  }
  .lab-b__printer-bg { display: none; }
}

/* =================================================================
   OPTION C — Before/After (5-step vs 1-step)
   ================================================================= */
.lab-c {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 720px) {
  .lab-c {
    grid-template-columns: 1fr;
  }
}

.lab-c__col {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lab-c__col--without { background: var(--paper-2); }
.lab-c__col--with {
  background: var(--paper);
  position: relative;
}
.lab-c__col--with::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 30%,
    oklch(0.96 0.06 65 / 0.55),
    transparent 70%
  );
  pointer-events: none;
}
[data-theme="dark"] .lab-c__col--with::before {
  background: radial-gradient(
    circle at 50% 30%,
    oklch(0.30 0.06 65 / 0.45),
    transparent 70%
  );
}

.lab-c__col-head { position: relative; z-index: 1; }
.lab-c__col-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lab-c__col-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}
.lab-c__col-label--win {
  color: oklch(0.42 0.16 60);
}
[data-theme="dark"] .lab-c__col-label--win {
  color: oklch(0.78 0.14 65);
}
.lab-c__col-sub {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.lab-c__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.lab-c__steps--solo {
  justify-content: center;
  flex-grow: 1;
  min-height: 180px;
}

.lab-c__step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.lab-c__col--without .lab-c__step {
  opacity: 0.78;
  grid-template-columns: 28px 1fr auto;
}
.lab-c__step--win {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 8px 24px oklch(0.78 0.16 65 / 0.25);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 18px;
}
.lab-c__step--win code { color: var(--paper); background: oklch(0.30 0.02 70); border-color: oklch(0.35 0.02 70); }
[data-theme="dark"] .lab-c__step--win {
  background: var(--honey);
  color: oklch(0.20 0.10 60);
  border-color: var(--honey);
}
[data-theme="dark"] .lab-c__step--win code { color: oklch(0.20 0.10 60); background: oklch(0.85 0.10 65); border-color: oklch(0.80 0.10 65); }

.lab-c__step-num {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.lab-c__step-num--win {
  background: var(--honey);
  color: oklch(0.20 0.10 60);
  width: 28px;
  height: 28px;
  font-size: 13px;
}

.lab-c__step-text code {
  font-size: 12px;
  padding: 1px 6px;
  background: var(--paper-3);
  border-radius: 4px;
  border: 1px solid var(--rule);
  color: var(--ink-2);
}

/* Per-step time estimate (Without column) — right-aligned in the row's
   third grid track. Muted mono so it reads as a meta annotation, not a
   clickable chip. Sums to the ≈30s subtotal below the list. */
.lab-c__step-time {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--ink-4);
  white-space: nowrap;
}

.lab-c__time {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-4);
  position: relative;
  z-index: 1;
}
.lab-c__time--bad {
  color: oklch(0.50 0.12 25);
}
.lab-c__time--win {
  color: oklch(0.42 0.16 145);
  font-weight: 600;
}
[data-theme="dark"] .lab-c__time--bad { color: oklch(0.80 0.10 25); }
[data-theme="dark"] .lab-c__time--win { color: oklch(0.82 0.16 145); }

/* Subtotal row — sums the per-step estimates to ≈30s, hugging the last
   step (margin-top pulls it up from the column gap). A dashed hairline
   reads it as a receipt total flowing into the "× 3 orders" line below. */
.lab-c__subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: -6px;
  padding: 10px 12px 0;
  border-top: 1px dashed var(--rule);
  position: relative;
  z-index: 1;
}
.lab-c__subtotal-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.lab-c__subtotal-value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

/* Divider column */
.lab-c__divider {
  display: grid;
  place-items: center;
  background: var(--paper-2);
  position: relative;
}
.lab-c__divider-line {
  position: absolute;
  inset: 24px 50% 24px 50%;
  width: 1px;
  background: var(--rule);
}
.lab-c__divider-arrow {
  position: relative;
  z-index: 2;
  background: var(--paper-2);
  padding: 6px;
  color: var(--honey);
}
@media (max-width: 720px) {
  .lab-c__divider {
    display: none;
  }
  .lab-c__col {
    border-top: 1px solid var(--rule);
  }
  .lab-c__col:first-of-type { border-top: 0; }
}

/* =================================================================
   FOOTER
   ================================================================= */
.lab-foot {
  padding: 64px 24px 80px;
  text-align: center;
  color: var(--ink-4);
  font-size: 14px;
  line-height: 1.6;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.lab-foot p { margin: 4px 0; }
.lab-foot a {
  color: var(--honey);
  text-decoration: none;
  font-weight: 500;
}
.lab-foot a:hover { text-decoration: underline; }

/* =================================================================
   OPTION D — Pain + chain (Option C with mini storyboard appended)
   Layers on top of .lab-c rules. Modifier classes only — does not
   redefine layout, just retargets the win column's content packing.
   ================================================================= */

/* The click row in Option D sits at the top of the win column (not
   centered like Option C's solo step), so the chain can flow below
   it. Override .lab-c__steps--solo's center+grow behavior. */
.lab-d__steps-top {
  flex-grow: 0;
  justify-content: flex-start;
  min-height: 0;
}

/* Chain row — pick → arrow → print, all packed into the same
   column width as Option C's solo step. Three small graphics. */
.lab-d__chain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 4px 4px;
  position: relative;
  z-index: 1;
}

/* Left side: 3 overlapping templates + label */
.lab-d__chain-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 130px;
}

.lab-d__chain-templates {
  position: relative;
  width: 110px;
  height: 96px;
}

.lab-d__chain-tmpl {
  position: absolute;
  top: 0;
  width: 60px;
  height: 86px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 7px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
[data-theme="dark"] .lab-d__chain-tmpl {
  background: oklch(0.94 0.005 80);
}

/* Center template: elevated + honey-bordered (the chosen one) */
.lab-d__chain-tmpl--active {
  left: 50%;
  transform: translate(-50%, -4px);
  z-index: 3;
  border-color: var(--honey);
  box-shadow:
    0 0 0 1.5px var(--honey),
    0 6px 14px oklch(0.78 0.16 65 / 0.32);
}

/* Side templates: grayed, behind, rotated outward */
.lab-d__chain-tmpl--side {
  z-index: 1;
  opacity: 0.55;
  background: var(--paper-3);
  filter: grayscale(1);
}
[data-theme="dark"] .lab-d__chain-tmpl--side {
  background: oklch(0.30 0.005 80);
  opacity: 0.5;
}
.lab-d__chain-tmpl--left {
  left: 50%;
  transform: translate(calc(-50% - 22px), 8px) rotate(-6deg);
}
.lab-d__chain-tmpl--right {
  left: 50%;
  transform: translate(calc(-50% + 22px), 8px) rotate(6deg);
}

/* Mini template inner content (skeleton bars to suggest a doc) */
.lab-d__chain-tmpl-brand {
  height: 4px;
  width: 65%;
  background: var(--honey);
  border-radius: 1px;
}
.lab-d__chain-tmpl-h {
  height: 5px;
  width: 80%;
  background: oklch(0.30 0.01 70);
  border-radius: 1px;
}
.lab-d__chain-tmpl-line {
  height: 2.5px;
  width: 100%;
  background: oklch(0.72 0.01 70);
  border-radius: 1px;
}
.lab-d__chain-tmpl-line--short { width: 60%; }
.lab-d__chain-tmpl-bar {
  margin-top: auto;
  height: 6px;
  background: repeating-linear-gradient(
    to right,
    oklch(0.30 0.01 70) 0 2px,
    transparent 2px 3px,
    oklch(0.30 0.01 70) 3px 4px,
    transparent 4px 6px
  );
  border-radius: 1px;
}

/* Caption under either side of the chain */
.lab-d__chain-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-4);
  text-align: center;
  line-height: 1.3;
  max-width: 130px;
}

/* Arrow between pick and print */
.lab-d__chain-arrow {
  color: var(--honey);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

/* Right side: mini printer + label */
.lab-d__chain-print {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 130px;
}

.lab-d__chain-printer {
  width: 92px;
  display: flex;
  flex-direction: column;
}

/* Printer body — wider top, with green status light */
.lab-d__chain-printer-body {
  width: 92px;
  height: 26px;
  background: linear-gradient(180deg, var(--paper-3), var(--paper-4));
  border: 1px solid var(--rule);
  border-radius: 6px 6px 3px 3px;
  display: flex;
  align-items: center;
  padding-left: 8px;
}
.lab-d__chain-printer-light {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 4px var(--ok);
  display: inline-block;
}

/* Paper emerging from below the printer body (matches Option A
   pattern — body on top, paper sliding out the bottom) */
.lab-d__chain-printer-paper {
  width: 78%;
  margin: -2px auto 0;
  background: white;
  border: 1px solid var(--rule);
  border-top: 0;
  border-radius: 0 0 2px 2px;
  padding: 8px 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}
[data-theme="dark"] .lab-d__chain-printer-paper {
  background: oklch(0.94 0.005 80);
}
.lab-d__chain-paper-h {
  height: 5px;
  width: 70%;
  background: oklch(0.30 0.01 70);
  border-radius: 1px;
}
.lab-d__chain-paper-line {
  height: 2.5px;
  width: 100%;
  background: oklch(0.72 0.01 70);
  border-radius: 1px;
}
.lab-d__chain-paper-line--short { width: 55%; }

/* Mobile fallback — stack vertically when the column is narrow */
@media (max-width: 720px) {
  .lab-d__chain {
    flex-direction: column;
    gap: 10px;
  }
  .lab-d__chain-arrow {
    transform: rotate(90deg);
  }
}

/* =================================================================
   OPTION E — Pain + realistic Shopify order card + chain at scale
   Same column structure as C/D, but right side uses room properly:
   - order surface (title, badge, meta, action bar with AutoPrint)
   - bigger chain (templates with visible brand text, detailed printer)
   ================================================================= */

/* Same column-packing override as D — click moment at top, chain
   below, time stamp at bottom. */
.lab-e__col-with {
  /* parent .lab-c__col handles flex-direction: column already */
}

/* ── Order detail card (replaces D's dark step card) ─────────────── */
.lab-e__order {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px 20px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}
[data-theme="dark"] .lab-e__order {
  background: oklch(0.22 0.01 70);
}

.lab-e__order-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lab-e__order-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.lab-e__order-num {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0;
}

.lab-e__order-meta {
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.lab-e__sep {
  color: var(--ink-4);
  font-weight: 600;
}

.lab-e__order-actions {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* ── Buttons in the action bar ──────────────────────────────────── */
.lab-e__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-2);
  transition: background 0.15s ease;
}
.lab-e__btn:hover {
  background: var(--paper-3);
}
[data-theme="dark"] .lab-e__btn {
  background: oklch(0.28 0.01 70);
  color: oklch(0.92 0.005 70);
}

.lab-e__btn--secondary { /* default style works */ }

.lab-e__btn--autoprint {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  font-weight: 600;
  padding: 8px 16px;
}
.lab-e__btn--autoprint:hover {
  background: var(--ink-2);
}
[data-theme="dark"] .lab-e__btn--autoprint {
  background: var(--honey);
  color: oklch(0.20 0.10 60);
  border-color: var(--honey);
}

.lab-e__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lab-e__btn-icon svg { display: block; }

/* Cursor positioned near the AutoPrint button */
.lab-e__cursor {
  position: absolute;
  right: -8px;
  bottom: -10px;
  color: var(--ink);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

/* Honey-pulse on the AutoPrint button (the click target) */
@keyframes lab-e-pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.78 0.16 65 / 0.55); }
  50% { box-shadow: 0 0 0 8px oklch(0.78 0.16 65 / 0); }
}
@media (prefers-reduced-motion: no-preference) {
  .lab-e__pulse {
    animation: lab-e-pulse 2.4s ease-out infinite;
  }
}

/* ── Chain at proper scale (bigger than D) ──────────────────────── */
.lab-e__chain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 8px 8px;
  position: relative;
  z-index: 1;
}

.lab-e__chain-pick,
.lab-e__chain-print {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 180px;
}

/* Template stack */
.lab-e__chain-templates {
  position: relative;
  width: 150px;
  height: 130px;
}

.lab-e__chain-tmpl {
  position: absolute;
  top: 0;
  width: 84px;
  height: 116px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 9px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}
[data-theme="dark"] .lab-e__chain-tmpl {
  background: oklch(0.94 0.005 80);
}

.lab-e__chain-tmpl--active {
  left: 50%;
  transform: translate(-50%, -6px);
  z-index: 3;
  border-color: var(--honey);
  box-shadow:
    0 0 0 1.5px var(--honey),
    0 8px 18px oklch(0.78 0.16 65 / 0.34);
}

.lab-e__chain-tmpl--side {
  z-index: 1;
  opacity: 0.5;
  background: var(--paper-3);
  filter: grayscale(1);
}
[data-theme="dark"] .lab-e__chain-tmpl--side {
  background: oklch(0.30 0.005 80);
  opacity: 0.45;
}
.lab-e__chain-tmpl--left {
  left: 50%;
  transform: translate(calc(-50% - 30px), 10px) rotate(-7deg);
}
.lab-e__chain-tmpl--right {
  left: 50%;
  transform: translate(calc(-50% + 30px), 10px) rotate(7deg);
}

/* Active template content (visible text — bigger than D's bars) */
.lab-e__chain-tmpl-brand {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: oklch(0.22 0.01 70);
  line-height: 1.2;
}
.lab-e__chain-tmpl-h-text {
  font-family: var(--font-mono);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: oklch(0.45 0.01 70);
  line-height: 1.2;
}
/* Side templates use plain bars instead of text */
.lab-e__chain-tmpl-h-bar {
  height: 5px;
  width: 80%;
  background: oklch(0.30 0.01 70);
  border-radius: 1px;
}
.lab-e__chain-tmpl-rule {
  height: 1px;
  background: oklch(0.75 0.01 70);
  margin: 1px 0;
}
.lab-e__chain-tmpl-line {
  height: 3px;
  width: 100%;
  background: oklch(0.72 0.01 70);
  border-radius: 1px;
}
.lab-e__chain-tmpl-line--short { width: 60%; }
.lab-e__chain-tmpl-bar {
  margin-top: auto;
  height: 10px;
  background: repeating-linear-gradient(
    to right,
    oklch(0.30 0.01 70) 0 2px,
    transparent 2px 3px,
    oklch(0.30 0.01 70) 3px 4px,
    transparent 4px 6px,
    oklch(0.30 0.01 70) 6px 9px,
    transparent 9px 11px
  );
  border-radius: 1px;
}

/* Chain label (same size as D's — caps mono) */
.lab-e__chain-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-4);
  text-align: center;
  line-height: 1.3;
  max-width: 170px;
}

.lab-e__chain-arrow {
  color: var(--honey);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

/* Printer at bigger scale */
.lab-e__chain-printer {
  width: 124px;
  display: flex;
  flex-direction: column;
}

.lab-e__chain-printer-body {
  width: 124px;
  height: 32px;
  background: linear-gradient(180deg, var(--paper-3), var(--paper-4));
  border: 1px solid var(--rule);
  border-radius: 7px 7px 3px 3px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}
.lab-e__chain-printer-light {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 4px var(--ok);
  display: inline-block;
}
.lab-e__chain-printer-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.lab-e__chain-printer-paper {
  width: 76%;
  margin: -2px auto 0;
  background: white;
  border: 1px solid var(--rule);
  border-top: 0;
  border-radius: 0 0 3px 3px;
  padding: 10px 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}
[data-theme="dark"] .lab-e__chain-printer-paper {
  background: oklch(0.94 0.005 80);
}

.lab-e__chain-paper-brand {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: oklch(0.22 0.01 70);
  line-height: 1.2;
}
.lab-e__chain-paper-h {
  font-family: var(--font-mono);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: oklch(0.45 0.01 70);
  line-height: 1.2;
}
.lab-e__chain-paper-rule {
  height: 1px;
  background: oklch(0.75 0.01 70);
  margin: 1px 0;
}
.lab-e__chain-paper-line {
  height: 3px;
  width: 100%;
  background: oklch(0.72 0.01 70);
  border-radius: 1px;
}
.lab-e__chain-paper-line--short { width: 55%; }

/* Mobile fallback */
@media (max-width: 720px) {
  .lab-e__chain {
    flex-direction: column;
    gap: 14px;
  }
  .lab-e__chain-arrow {
    transform: rotate(90deg);
  }
  .lab-e__order-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* =================================================================
   OPTION F — Pain + Print dropdown + chain
   Condensed Shopify-admin Print menu surface. Action row of native
   buttons (Refund / Edit / Print / More actions); Print is shown
   in its open state with the dropdown anchored under it. Autoprinter
   is the highlighted first item in the dropdown.
   ================================================================= */

.lab-f__menu {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px 18px 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  z-index: 2;
}
[data-theme="dark"] .lab-f__menu {
  background: oklch(0.22 0.01 70);
}

.lab-f__menu-header {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 14px;
}

/* Action row — Refund / Edit / Print / More actions */
.lab-f__menu-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

.lab-f__action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-2);
  transition: background 0.15s ease;
}
.lab-f__action:hover {
  background: var(--paper-3);
}
[data-theme="dark"] .lab-f__action {
  background: oklch(0.26 0.01 70);
  color: oklch(0.90 0.005 70);
}

/* Print button in its "open" state — honey ring matches the
   /how-it-works Frame 2 explainer's green-ring-on-active button */
.lab-f__action--open {
  border-color: var(--honey);
  box-shadow: 0 0 0 1.5px var(--honey);
  position: relative;
  z-index: 4;
}

.lab-f__caret {
  opacity: 0.65;
}

/* Open dropdown anchored under the Print button. The action bar
   widths (Refund + Edit + gaps) sum to ~130px — use a margin offset
   to align under Print without absolute-positioning math. */
.lab-f__dropdown {
  margin-top: 6px;
  margin-left: 132px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 4px;
  box-shadow:
    0 6px 16px rgba(0,0,0,0.10),
    0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 230px;
  position: relative;
  z-index: 2;
}
[data-theme="dark"] .lab-f__dropdown {
  background: oklch(0.26 0.01 70);
  border-color: oklch(0.32 0.01 70);
}

.lab-f__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-2);
  text-align: left;
  position: relative;
  width: 100%;
}
.lab-f__item:hover {
  background: var(--paper-3);
}
[data-theme="dark"] .lab-f__item {
  color: oklch(0.90 0.005 70);
}

/* Highlighted active row (Autoprinter — what the cursor's about to click) */
.lab-f__item--active {
  background: oklch(0.92 0.06 70 / 0.55);
  color: var(--ink);
  font-weight: 500;
}
[data-theme="dark"] .lab-f__item--active {
  background: oklch(0.32 0.08 65 / 0.50);
  color: oklch(0.94 0.005 70);
}

@keyframes lab-f-pulse {
  0%, 100% { background: oklch(0.92 0.06 70 / 0.55); }
  50% { background: oklch(0.84 0.12 70 / 0.75); }
}
@keyframes lab-f-pulse-dark {
  0%, 100% { background: oklch(0.32 0.08 65 / 0.50); }
  50% { background: oklch(0.40 0.12 65 / 0.70); }
}
@media (prefers-reduced-motion: no-preference) {
  .lab-f__item--active {
    animation: lab-f-pulse 2.4s ease-in-out infinite;
  }
  [data-theme="dark"] .lab-f__item--active {
    animation: lab-f-pulse-dark 2.4s ease-in-out infinite;
  }
}

.lab-f__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--ink-3);
  flex-shrink: 0;
}

/* App-tile icon — the dark rounded square that holds the A wordmark.
   Matches how Shopify renders installed-app icons in admin menus. */
.lab-f__item-icon--app {
  background: oklch(0.32 0.08 60);
  border-radius: 4px;
  padding: 3px;
}

.lab-f__item-label {
  flex-grow: 1;
}

/* Cursor positioned on the right side of the Autoprinter row */
.lab-f__cursor {
  position: absolute;
  right: -6px;
  bottom: -12px;
  color: var(--ink);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

/* Mobile fallback — dropdown wraps under the action row at column width */
@media (max-width: 720px) {
  .lab-f__dropdown {
    margin-left: 0;
    width: auto;
  }
}

/* =================================================================
   OPTION G — Pain + bulk Print menu (3 orders selected)
   Reuses .lab-f__* dropdown + item + action button styles. New
   classes wrap the split layout (orders left, action-stack right).
   ================================================================= */

.lab-g__menu {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 14px 14px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  z-index: 2;
}
[data-theme="dark"] .lab-g__menu {
  background: oklch(0.22 0.01 70);
}

/* Header row: label on left, count chip + Print button on right.
   margin-bottom: 0 so the split section butts directly against the
   header's bottom edge — the dropdown below can then merge visually
   with the Print button's bottom border. */
.lab-g__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}
.lab-g__header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lab-g__header-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.lab-g__count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(0.40 0.14 60);
  background: oklch(0.94 0.06 70 / 0.7);
  border: 1px solid oklch(0.82 0.10 65);
  padding: 3px 8px;
  border-radius: 4px;
}
[data-theme="dark"] .lab-g__count {
  color: oklch(0.86 0.12 65);
  background: oklch(0.32 0.08 65 / 0.6);
  border-color: oklch(0.45 0.10 65);
}

/* Split: orders column left (flexible), dropdown column right (fixed
   to the dropdown's own width). With the Print button moved up into
   the header, the right column is just the dropdown — no need for the
   former menu-actions row above it. */
.lab-g__split {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  align-items: start;
  margin-top: 14px;        /* small gap between header text + orders */
}

/* ── Left: minimal orders list ───────────────────────────────────── */
.lab-g__orders {
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Slight "in the background" feel via subtle muting */
  opacity: 0.92;
}

.lab-g__order {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 4px;
  font-size: 12px;
  color: var(--ink-3);
  border-radius: 4px;
}

.lab-g__check {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
[data-theme="dark"] .lab-g__check {
  background: var(--honey);
  color: oklch(0.20 0.10 60);
}

.lab-g__order-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
}

.lab-g__order-name {
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Unselected order — empty checkbox + slight mute so it reads as "not in
   this batch". The header count stays "3 selected" (3 of the 4 rows). */
.lab-g__order--off {
  opacity: 0.6;
}
.lab-g__check--off {
  box-sizing: border-box;
  background: transparent;
  border: 1.5px solid var(--ink-4);
}
[data-theme="dark"] .lab-g__check--off {
  background: transparent;
  border-color: var(--ink-4);
}

/* ── Right: action buttons + dropdown ───────────────────────────── */
.lab-g__actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;            /* zero so the dropdown can butt against Print */
  min-width: 0;
}

/* Action row right-side variant — same buttons as F, just tighter
   gap so 3 buttons (Edit / Print / More) fit comfortably without
   wrapping when packed into the right column. */
.lab-g__menu-actions {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  position: relative;
  z-index: 3;
}

/* Dropdown sits in the right column of the split, butting up against
   the Print button (which moved to the header). Negative margin-top
   pulls it up to overlap the header's bottom border so the dropdown
   visually fuses with Print. With Print now in the header, the
   dropdown has full split-column vertical space — no clipping
   needed; the items render in full. */
.lab-g__dropdown {
  margin-top: -15px;       /* pull up so dropdown top butts under Print */
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top-left-radius: 8px;
  border-top-right-radius: 0;  /* square top-right matches Print's bottom-right corner */
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 4px;
  box-shadow:
    0 6px 16px rgba(0,0,0,0.10),
    0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 220px;
  position: relative;
  z-index: 2;
}
[data-theme="dark"] .lab-g__dropdown {
  background: oklch(0.26 0.01 70);
  border-color: oklch(0.32 0.01 70);
}

/* Mobile fallback — stack columns, right-align dropdown becomes natural */
@media (max-width: 720px) {
  .lab-g__split {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .lab-g__menu-actions {
    justify-content: flex-start;
  }
  .lab-g__dropdown {
    margin-left: 0;
    margin-right: 0;
    width: auto;
  }
}

/* "Skipped" callout — promoted from subtle inline strikethrough to
   honey-tinted pills with bold strikethrough. Sits between the chain
   and the time stamp. Each pill names a step Autoprinter eliminates;
   the strikethrough + pill background together carry "this is gone." */
.lab-g__skipped {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.lab-g__skipped-item {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 13px;
  background: oklch(0.94 0.06 70 / 0.65);
  border: 1px solid oklch(0.82 0.10 65);
  border-radius: 999px;
  color: oklch(0.38 0.12 60);
  text-decoration: line-through;
  text-decoration-color: oklch(0.62 0.18 65);
  text-decoration-thickness: 2px;
  text-decoration-skip-ink: none;
}
[data-theme="dark"] .lab-g__skipped-item {
  background: oklch(0.30 0.08 65 / 0.55);
  border-color: oklch(0.45 0.12 65);
  color: oklch(0.88 0.12 65);
  text-decoration-color: oklch(0.78 0.16 65);
}
/* Legacy separator (no longer used now that items are pills, but
   kept defined in case a stale tree still contains the dot). */
.lab-g__skipped-sep {
  display: none;
}
