/* Ticket paper: torn totals, script dish name, open ingredient strips. */

html body main.wrap .ticket.proto-ticket-stage .ds-totals,
html body main.wrap .ticket.proto-ticket-stage .proto-cards-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 0 !important;
  width: min(100%, 58rem) !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: visible !important;
  padding: 8px 4px 4px !important;
  box-sizing: border-box !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-card:nth-child(n) {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

html body main.wrap .ticket.proto-ticket-stage .ds-totals > .proto-card,
html body main.wrap .ticket.proto-ticket-stage .proto-cards-row > .proto-card,
html body main.wrap .ticket.proto-ticket-stage .proto-card {
  position: relative !important;
  flex: 1 1 0 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 -16px !important;
  overflow: visible !important;
  min-height: 7.4rem !important;
  padding: 22px 16px 26px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #241c12 !important;
  overflow: visible !important;
}

html body main.wrap .ticket.proto-ticket-stage .ds-totals > .proto-card.card-plate,
html body main.wrap .ticket.proto-ticket-stage .proto-card.card-plate {
  z-index: 1;
  transform: rotate(-2deg) !important;
  background: url("/ingredient-library/ticket-plate.png") center / 100% 100% no-repeat !important;
}

html body main.wrap .ticket.proto-ticket-stage .ds-totals > .proto-card.card-pct,
html body main.wrap .ticket.proto-ticket-stage .proto-card.card-pct {
  z-index: 2;
  transform: rotate(0.6deg) !important;
  background: url("/ingredient-library/ticket-percent.png") center / 100% 100% no-repeat !important;
}

html body main.wrap .ticket.proto-ticket-stage .ds-totals > .proto-card.card-suggest,
html body main.wrap .ticket.proto-ticket-stage .proto-card.card-suggest {
  z-index: 3;
  transform: rotate(2.6deg) !important;
  color: #fffaf3 !important;
  background: url("/ingredient-library/ticket-suggest.png") center / 100% 100% no-repeat !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-card-icon {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-card-icon svg {
  width: 44px !important;
  height: 44px !important;
}

html body main.wrap .ticket.proto-ticket-stage .card-suggest .proto-card-title,
html body main.wrap .ticket.proto-ticket-stage .card-suggest .proto-card-val {
  color: #fffaf3 !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-card-data {
  overflow: visible !important;
  min-width: 0 !important;
  text-align: left !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-card-title {
  font-size: clamp(0.7rem, 1.2vw, 0.95rem) !important;
  letter-spacing: 0.02em !important;
  line-height: 1.05 !important;
  white-space: normal !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-card-val {
  font-size: clamp(1.7rem, 3.4vw, 2.8rem) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

@media (max-width: 700px) {
  html body main.wrap .ticket.proto-ticket-stage .proto-card-val {
    font-size: 1.2rem !important;
  }
  html body main.wrap .ticket.proto-ticket-stage .proto-card-title {
    font-size: 0.58rem !important;
  }
  html body main.wrap .ticket.proto-ticket-stage .proto-card-icon,
  html body main.wrap .ticket.proto-ticket-stage .proto-card-icon svg {
    width: 26px !important;
    height: 26px !important;
  }
  html body main.wrap .ticket.proto-ticket-stage .proto-card {
    min-height: 0 !important;
    padding: 12px 8px 14px !important;
    margin: 0 -8px !important;
  }
}

html body main.wrap .ticket.proto-ticket-stage .proto-title-line {
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 0.7rem !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0.85rem 1.4rem 0.2rem !important;
  padding: 0 !important;
  overflow: visible !important;
}

@media (min-width: 900px) {
  html body main.wrap .ticket.proto-ticket-stage .proto-title-line {
    margin: 0.85rem 4.8rem 0.2rem !important;
  }
}

html body main.wrap .ticket.proto-ticket-stage .proto-kicker {
  font-family: "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  color: #1A140C !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-script-title-wrap {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  flex: 0 1 auto !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: calc(100% - 6.5rem) !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-script-input,
html body main.wrap .ticket.proto-ticket-stage .proto-script-title-wrap .proto-script-input {
  font-family: Caveat, "Segoe Script", cursive !important;
  font-style: normal !important;
  font-weight: 700 !important;
  font-size: clamp(2.35rem, 3.9vw, 3.35rem) !important;
  line-height: 1.15 !important;
  height: auto !important;
  min-height: 3.35rem !important;
  width: auto !important;
  min-width: 10rem !important;
  max-width: min(27rem, 70vw) !important;
  field-sizing: content;
  color: #1A140C !important;
  border: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
  padding: 0.05rem 0.1rem 0.18rem !important;
  overflow: visible !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-hero-dish-img {
  max-height: 260px !important;
  width: min(100%, 420px) !important;
  margin-inline: auto !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-hero-art-wrap:has(img[src*="menu-board.png"]),
html body main.wrap .ticket.proto-ticket-stage .proto-hero-art-wrap:has(img[src*="skillet.png"]) {
  isolation: auto !important;
  margin: 0.1rem auto 0.55rem !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-hero-dish-img[src*="menu-board.png"],
html body main.wrap .ticket.proto-ticket-stage .proto-hero-dish-img[src*="skillet.png"] {
  max-height: 210px !important;
  width: auto !important;
  max-width: min(100%, 340px) !important;
  mix-blend-mode: multiply !important;
  filter: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-title-brush {
  display: block !important;
  width: 100% !important;
  height: 5px !important;
  margin-top: -3px !important;
  background: #E2B93A !important;
  border-radius: 40% 60% 50% 50% !important;
  transform: rotate(-1.5deg) !important;
}

.ticket.proto-ticket-stage .ing-ticket {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  position: relative !important;
  margin: 0 0 8px !important;
  padding: 10px 8px 12px 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 8px 0, transparent 5px, #fbf6ec 5.5px) top / 16px 7px repeat-x,
    radial-gradient(circle at 8px 100%, transparent 5px, #fbf6ec 5.5px) bottom / 16px 7px repeat-x,
    linear-gradient(#fbf6ec, #fbf6ec) center / 100% calc(100% - 12px) no-repeat !important;
}

html body main.wrap .ticket.proto-ticket-stage .ing-name {
  font-family: "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  width: auto !important;
  min-width: 8ch !important;
  max-width: 100% !important;
  field-sizing: content;
  border: 0 !important;
  border-bottom: 2px solid #e2b93a !important;
  background: transparent !important;
  padding: 0 0 2px !important;
}

.ticket.proto-ticket-stage .ing-used {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin-top: 2px !important;
}

.ticket.proto-ticket-stage .used-label,
.ticket.proto-ticket-stage .ing-used input,
.ticket.proto-ticket-stage .ing-pack-open {
  font-family: "Source Serif 4", Georgia, serif !important;
  font-size: 0.92rem !important;
  color: #875e19 !important;
}

html body main.wrap .ticket.proto-ticket-stage .ing-used input[name="amountUsed"],
html body main.wrap .ticket.proto-ticket-stage .ing-used input[name="linePour"],
html body main.wrap .ticket.proto-ticket-stage .ing-used input[name="unit"],
html body main.wrap .ticket.proto-ticket-stage .ing-used input[name="pourUnit"],
html body main.wrap .ticket.proto-ticket-stage .ing-pack-open input {
  width: auto !important;
  min-width: 1.6rem !important;
  max-width: 4.2rem !important;
  field-sizing: content;
  flex: 0 0 auto !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  color: #875e19 !important;
  font: inherit !important;
}

html body main.wrap .ticket.proto-ticket-stage .ing-pack-open input.pack-unit-mirror {
  min-width: 1.8rem !important;
  max-width: 5.8rem !important;
  field-sizing: content;
}

html body main.wrap .ticket.proto-ticket-stage .ing-pack-open {
  flex-wrap: nowrap !important;
}

.ticket.proto-ticket-stage .ing-used input[name="unit"],
.ticket.proto-ticket-stage .ing-used input[name="pourUnit"] {
  width: auto !important;
  min-width: 1.6rem !important;
  max-width: 5.6rem !important;
  field-sizing: content;
}

.ticket.proto-ticket-stage .stepper-wrap {
  display: inline-flex !important;
  gap: 8px !important;
  margin-left: auto !important;
  max-width: none !important;
}

.ticket.proto-ticket-stage .stepper-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid #e4dccb !important;
  background: #fffaf3 !important;
  color: #241c12 !important;
  box-shadow: none !important;
}

.ticket.proto-ticket-stage .ing-pack-open {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 0.2rem !important;
  margin: 2px 0 0 !important;
}

.ticket.proto-ticket-stage .ing-ticket-cost,
.ticket.proto-ticket-stage .ticket-stub-box {
  grid-column: auto !important;
  justify-self: end !important;
  width: auto !important;
  min-width: 4.6rem !important;
  margin: 0 !important;
  padding: 6px 8px !important;
  border: 2px solid #e2b93a !important;
  border-radius: 2px !important;
  background: #fffaf3 !important;
  text-align: center !important;
}

html body main.wrap .ticket.proto-ticket-stage .pack-remove {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #241c12 !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 0.75 !important;
  font-size: 1.1rem !important;
}

html body main.wrap .ticket.proto-ticket-stage .pack-lines .ingredient-row,
html body main.wrap .ticket.proto-ticket-stage .ing-ticket {
  display: block !important;
  position: relative !important;
  min-height: 0 !important;
  padding: 10px 28rem 12px 58px !important;
  overflow: visible !important;
}

html body main.wrap .ticket.proto-ticket-stage .ing-rail {
  position: absolute !important;
  right: 8.2rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

html body main.wrap .ticket.proto-ticket-stage .ing-perf {
  display: block !important;
  width: 8px !important;
  height: 4.4rem !important;
  background: radial-gradient(circle, #1A140C 1.15px, transparent 1.35px) center / 8px 7px repeat-y !important;
}

html body main.wrap .ticket.proto-ticket-stage .stepper-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  flex: 0 0 34px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid #d5cdbf !important;
  background: #fffdf8 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  position: relative !important;
  box-shadow: none !important;
}

html body main.wrap .ticket.proto-ticket-stage .stepper-btn::before,
html body main.wrap .ticket.proto-ticket-stage .stepper-btn::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 12px !important;
  height: 1.6px !important;
  background: #1A140C !important;
  border-radius: 1px !important;
  transform: translate(-50%, -50%) !important;
}

html body main.wrap .ticket.proto-ticket-stage .stepper-inc::after,
html body main.wrap .ticket.proto-ticket-stage .stepper-btn[data-step-inc]::after {
  width: 1.6px !important;
  height: 12px !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-meta-strip {
  padding: 0.45rem 0.9rem !important;
  overflow: visible !important;
}

html body main.wrap .ticket.proto-ticket-stage .meta-pill .stepper-wrap-sm {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

html body main.wrap .ticket.proto-ticket-stage .meta-pill .stepper-wrap-sm .stepper-btn {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  flex: 0 0 28px !important;
}

html body main.wrap .ticket.proto-ticket-stage .ing-ticket-main {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

html body main.wrap .ticket.proto-ticket-stage .ing-used,
html body main.wrap .ticket.proto-ticket-stage .ing-rail .ing-used {
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  max-width: none !important;
  width: auto !important;
  min-width: max-content !important;
}

html body main.wrap .ticket.proto-ticket-stage .ing-used .stepper-wrap,
html body main.wrap .ticket.proto-ticket-stage .ing-rail .stepper-wrap {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin-left: 0 !important;
}

html body main.wrap .ticket.proto-ticket-stage .stepper-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 50% !important;
  border: 1px solid #d9d0c0 !important;
  background: #fffaf3 !important;
  grid-column: auto !important;
}

html body main.wrap .ticket.proto-ticket-stage .ing-ticket-cost,
html body main.wrap .ticket.proto-ticket-stage .ticket-stub-box {
  grid-column: auto !important;
  grid-row: 1 / span 2 !important;
  width: 4.8rem !important;
  min-width: 4.8rem !important;
  border-top: 2px solid #e2b93a !important;
  border-left: 2px solid #e2b93a !important;
  padding: 4px 6px !important;
}

html body main.wrap .ticket.proto-ticket-stage .ing-ticket-icon {
  position: absolute !important;
  left: 8px !important;
  top: 8px !important;
  width: 46px !important;
  height: 46px !important;
  background: transparent !important;
  background-color: transparent !important;
  filter: none !important;
  isolation: auto !important;
}

html body main.wrap .ticket.proto-ticket-stage .ing-ticket-icon img,
html body main.wrap .ticket.proto-ticket-stage .ing-cutout {
  background: transparent !important;
  background-color: transparent !important;
  mix-blend-mode: multiply !important;
  filter: none !important;
  object-fit: contain !important;
  width: 46px !important;
  height: 46px !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-card-line {
  display: none !important;
}

html body main.wrap .ticket.proto-ticket-stage .ticket-stub-box,
html body main.wrap .ticket.proto-ticket-stage .ing-ticket-cost {
  background: url("/ingredient-library/ticket-plate.png") center / 100% 100% no-repeat !important;
  border: 0 !important;
  box-shadow: none !important;
  width: 6.4rem !important;
  min-width: 6.4rem !important;
  max-width: 6.4rem !important;
  padding: 12px 8px 14px !important;
  overflow: hidden !important;
}

html body main.wrap .ticket.proto-ticket-stage .stub-star {
  display: none !important;
}

html body main.wrap .ticket.proto-ticket-stage .stub-label {
  color: #1A140C !important;
  font-size: 0.58rem !important;
  letter-spacing: 0.12em !important;
  font-weight: 800 !important;
}

html body main.wrap .ticket.proto-ticket-stage .stub-val {
  color: #1A140C !important;
  font-size: 1.15rem !important;
  line-height: 1.05 !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-actions .btn,
html body main.wrap .ticket.proto-ticket-stage .proto-actions .btn-ghost {
  background: #F3E6C9 !important;
  color: #1A140C !important;
  border: 2px solid #1A140C !important;
  box-shadow: none !important;
  border-radius: 2px !important;
  letter-spacing: 0.16em !important;
  font-weight: 800 !important;
  min-width: 7.2rem !important;
  min-height: 48px !important;
  padding: 0.7rem 1.1rem !important;
}

html body main.wrap .ticket.proto-ticket-stage .ing-ticket-cost,
html body main.wrap .ticket.proto-ticket-stage .ticket-stub-box {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  left: auto !important;
  width: 5.4rem !important;
  min-width: 5.4rem !important;
  max-width: 5.4rem !important;
  margin: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

html body main.wrap .ticket.proto-ticket-stage .stub-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  gap: 2px !important;
}

html body main.wrap .ticket.proto-ticket-stage .stub-val {
  display: block !important;
  font-size: 1.15rem !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

html body main.wrap .ticket.proto-ticket-stage .ing-used .stepper-wrap {
  width: auto !important;
  flex: 0 0 auto !important;
}

html body main.wrap .ticket.proto-ticket-stage .ing-pack-open {
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  max-width: calc(100% - 5.6rem) !important;
}

html body main.wrap .ticket.proto-ticket-stage .ing-pack-open > span {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-add-ingredient-btn {
  border: 2px dashed #241c12 !important;
  border-radius: 16px !important;
  background: #fbf6ec !important;
  color: #241c12 !important;
  box-shadow: none !important;
  min-height: 52px !important;
}

html body main.wrap .ticket.proto-ticket-stage .meta-pill select {
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 0 !important;
}

html body main.wrap .ticket.proto-ticket-stage .ing-used input[name="unit"],
html body main.wrap .ticket.proto-ticket-stage .ing-used input[name="pourUnit"] {
  width: auto !important;
  min-width: 2.2rem !important;
  max-width: 6.5rem !important;
  field-sizing: content;
}

html body main.wrap .ticket.proto-ticket-stage .ing-pack-open input[name="lineMl"] {
  width: 4.2rem !important;
  min-width: 4.2rem !important;
  max-width: 4.8rem !important;
}

@media (max-width: 700px) {
  html body main.wrap .ticket.proto-ticket-stage .pack-lines .ingredient-row,
  html body main.wrap .ticket.proto-ticket-stage .ing-ticket {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px 5rem 10px 52px !important;
    min-height: 0 !important;
  }

  html body main.wrap .ticket.proto-ticket-stage .ing-rail {
    position: static !important;
    transform: none !important;
    right: auto !important;
    top: auto !important;
    margin-top: 6px !important;
    gap: 8px !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }

  html body main.wrap .ticket.proto-ticket-stage .ing-ticket-cost,
  html body main.wrap .ticket.proto-ticket-stage .ticket-stub-box {
    top: 8px !important;
    right: 4px !important;
    transform: none !important;
    width: 4.4rem !important;
    min-width: 4.4rem !important;
    max-width: 4.4rem !important;
  }

  html body main.wrap .ticket.proto-ticket-stage .ing-pack-open {
    max-width: 100% !important;
    overflow: visible !important;
  }

  html body main.wrap .ticket.proto-ticket-stage .ing-perf {
    height: 2rem !important;
  }

  html body main.wrap .ticket.proto-ticket-stage .ing-pack-open [data-unit-note] {
    display: none !important;
  }

  html body main.wrap .ticket.proto-ticket-stage .ing-rail .ing-used {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    flex-wrap: nowrap !important;
  }

  html body main.wrap .ticket.proto-ticket-stage .used-label {
    width: auto !important;
  }

  html body main.wrap .ticket.proto-ticket-stage .ing-rail .stepper-wrap {
    flex: 0 0 auto !important;
    width: auto !important;
    margin-left: 0 !important;
  }
}

/* ==========================================================================
   Batch Calculator (/recipe-cost-calculator) & Menu Pricing (/menu-pricing-calculator)
   Scoped strictly so / and /pour-cost-calculator remain 100% untouched.
   ========================================================================== */

html body main.wrap .ticket.proto-ticket-stage .batch-sub-strip {
  display: block !important;
  width: min(100%, 42rem) !important;
  margin: 0.35rem auto 1rem !important;
  padding: 0.55rem 1rem !important;
  background: rgba(251, 246, 236, 0.88) !important;
  border-top: 1.5px dashed rgba(26, 20, 12, 0.35) !important;
  border-bottom: 1.5px dashed rgba(26, 20, 12, 0.35) !important;
  font-family: var(--font-ticket, "Courier Prime", ui-monospace, monospace) !important;
  font-size: 0.88rem !important;
  color: var(--ink, #1A140C) !important;
  text-align: center !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-meta-strip.proto-meta-strip--batch {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: min(100%, 38rem) !important;
  border-radius: 1.15rem !important;
  padding: 0.2rem 0 !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-meta-strip.proto-meta-strip--batch .meta-pill:nth-child(3n + 1) {
  border-left: 0 !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-meta-strip.proto-meta-strip--batch .meta-pill:nth-child(n + 4) {
  border-top: 2px dashed rgba(26, 20, 12, 0.28) !important;
}

html body main.wrap .ticket.proto-ticket-stage .proto-meta-strip.proto-meta-strip--batch .meta-pill select {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 7rem !important;
  min-height: 2.2rem !important;
  padding: 0.1rem 0.25rem !important;
  background: transparent !important;
  color: var(--ink, #1A140C) !important;
  border: 0 !important;
  border-bottom: 2px solid var(--grease, #E2B93A) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--font-display, Impact, sans-serif) !important;
  font-size: 1.45rem !important;
  font-weight: 900 !important;
  text-align: center !important;
  text-align-last: center !important;
  cursor: pointer !important;
}

@media (max-width: 700px) {
  html body main.wrap .ticket.proto-ticket-stage .proto-meta-strip.proto-meta-strip--batch {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    border-radius: 0.9rem !important;
  }
  html body main.wrap .ticket.proto-ticket-stage .proto-meta-strip.proto-meta-strip--batch .meta-pill select {
    font-size: 1.15rem !important;
  }
}

/* ==========================================================================
   Standalone Ticket Surfaces (.ticket:not(.proto-ticket-stage))
   Used by /dishcost-alternative, /backbar-alternative, /marketman-alternative,
   /upgrade, /setup, /settings, /kitchen, /privacy, /terms, /refund, and .editorial-ticket
   ========================================================================== */

html body main.wrap section.ticket:not(.proto-ticket-stage) {
  position: relative !important;
  width: min(100%, 54rem) !important;
  margin: 1rem auto 2rem !important;
  padding: 0 !important;
  background:
    radial-gradient(circle at 10px 0, transparent 6px, #fbf6ec 6.5px) top / 20px 10px repeat-x,
    radial-gradient(circle at 10px 100%, transparent 6px, #fbf6ec 6.5px) bottom / 20px 10px repeat-x,
    linear-gradient(#fbf6ec, #fbf6ec) center / 100% calc(100% - 18px) no-repeat !important;
  border-left: 2px solid rgba(26, 20, 12, 0.28) !important;
  border-right: 2px solid rgba(26, 20, 12, 0.28) !important;
  box-shadow: 0 8px 20px rgba(26, 20, 12, 0.1), 4px 5px 0 rgba(26, 20, 12, 0.14) !important;
}

html body main.wrap section.ticket:not(.proto-ticket-stage) > .ticket-clip {
  display: block !important;
  width: 6.5rem !important;
  height: 1.15rem !important;
  margin: 0 auto !important;
  background: var(--rail, #2B2722) !important;
  border: 2px solid var(--ink, #1A140C) !important;
  border-top: 0 !important;
  border-radius: 0 0 4px 4px !important;
  box-shadow: 0 2px 0 rgba(26, 20, 12, 0.22) !important;
}

html body main.wrap section.ticket:not(.proto-ticket-stage) > .ticket-body {
  padding: clamp(1.35rem, 3.5vw, 2.5rem) clamp(1.15rem, 4vw, 2.75rem) clamp(1.6rem, 4vw, 2.75rem) !important;
  background: transparent !important;
}

html body main.wrap section.ticket:not(.proto-ticket-stage) .kicker {
  display: inline-block !important;
  margin: 0 0 0.45rem !important;
  padding: 0.2rem 0.55rem !important;
  background: var(--paper-inner, #F7EDD6) !important;
  border: 1.5px solid var(--ink, #1A140C) !important;
  font-family: var(--font-ticket, "Courier Prime", ui-monospace, monospace) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--ticket-red, #B42318) !important;
}

html body main.wrap section.ticket:not(.proto-ticket-stage) h1 {
  margin: 0.15rem 0 0.75rem !important;
  font-family: var(--font-display, "Source Serif 4", Georgia, serif) !important;
  font-size: clamp(1.65rem, 3.6vw, 2.45rem) !important;
  line-height: 1.12 !important;
  color: var(--ink, #1A140C) !important;
}

html body main.wrap section.ticket:not(.proto-ticket-stage) .lede {
  font-size: clamp(1rem, 1.8vw, 1.15rem) !important;
  line-height: 1.5 !important;
  color: var(--ink, #1A140C) !important;
  margin-bottom: 1.25rem !important;
}

html body main.wrap section.ticket:not(.proto-ticket-stage) .recipe-card {
  background: var(--paper-inner, #F7EDD6) !important;
  border: 2px dashed rgba(26, 20, 12, 0.45) !important;
  border-radius: 2px !important;
  padding: 1.25rem !important;
  margin: 1rem 0 !important;
}

html body main.wrap section.ticket:not(.proto-ticket-stage) .actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  margin-top: 1.25rem !important;
}

html body main.wrap section.ticket:not(.proto-ticket-stage) .actions .btn {
  background: var(--ink, #1A140C) !important;
  color: var(--white, #FFFBF2) !important;
  border: 2px solid var(--ink, #1A140C) !important;
  border-radius: 2px !important;
  box-shadow: 3px 3px 0 var(--ticket-red, #B42318) !important;
  font-family: var(--font-ticket, "Courier Prime", ui-monospace, monospace) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 0.7rem 1.2rem !important;
  text-decoration: none !important;
}

html body main.wrap section.ticket:not(.proto-ticket-stage) .actions .btn.btn-ghost {
  background: var(--paper-inner, #F7EDD6) !important;
  color: var(--ink, #1A140C) !important;
  box-shadow: 3px 3px 0 var(--grease, #E2B93A) !important;
}

html body main.wrap section.ticket:not(.proto-ticket-stage) .fine {
  margin-top: 1rem !important;
  font-family: var(--font-ticket, "Courier Prime", ui-monospace, monospace) !important;
  font-size: 0.78rem !important;
  color: var(--ink-muted, #5C5346) !important;
}

html body main.wrap section.ticket:not(.proto-ticket-stage) .fine a {
  color: var(--ink-muted, #5C5346) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

/* ==========================================================================
   Ticket Ledger Tables (table.compare & table.ladder-table)
   Used by /menu-pricing-calculator, /dishcost-alternative, /backbar-alternative, /marketman-alternative
   ========================================================================== */

html body main.wrap .table-wrap {
  width: 100% !important;
  margin: 1rem 0 1.25rem !important;
  background: #fbf6ec !important;
  border: 2px solid var(--ink, #1A140C) !important;
  border-radius: 2px !important;
  box-shadow: 4px 4px 0 rgba(26, 20, 12, 0.12) !important;
  overflow-x: auto !important;
}

html body main.wrap .ticket.proto-ticket-stage .table-wrap {
  width: min(100%, 52rem) !important;
  margin: 0.5rem auto 1.25rem !important;
}

html body main.wrap table.compare,
html body main.wrap table.ladder-table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #fbf6ec !important;
  color: var(--ink, #1A140C) !important;
}

html body main.wrap table.compare thead th,
html body main.wrap table.ladder-table thead th {
  background: var(--paper-inner, #F7EDD6) !important;
  color: var(--ink, #1A140C) !important;
  font-family: var(--font-ticket, "Courier Prime", ui-monospace, monospace) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 0.75rem 0.65rem !important;
  border-bottom: 2px solid var(--ink, #1A140C) !important;
  text-align: left !important;
}

html body main.wrap table.compare:not(.ladder-table) thead th:nth-child(2) {
  background: rgba(226, 185, 58, 0.28) !important;
  border-top: 3px solid var(--ticket-red, #B42318) !important;
}

html body main.wrap table.compare tbody th,
html body main.wrap table.compare tbody td,
html body main.wrap table.ladder-table tbody td {
  padding: 0.7rem 0.65rem !important;
  border-bottom: 1px dashed rgba(26, 20, 12, 0.28) !important;
  color: var(--ink, #1A140C) !important;
  font-size: 0.94rem !important;
  vertical-align: middle !important;
}

html body main.wrap table.compare tbody th {
  font-family: var(--font-ticket, "Courier Prime", ui-monospace, monospace) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  background: rgba(247, 237, 214, 0.5) !important;
}

html body main.wrap table.compare tbody td.is-us {
  background: rgba(226, 185, 58, 0.18) !important;
  font-weight: 700 !important;
  color: var(--ink, #1A140C) !important;
}

html body main.wrap table.ladder-table tbody td {
  font-family: var(--font-ticket, "Courier Prime", ui-monospace, monospace) !important;
  font-variant-numeric: tabular-nums !important;
  font-size: 0.9rem !important;
}

html body main.wrap table.ladder-table tbody tr.highlight td {
  background: rgba(226, 185, 58, 0.26) !important;
  font-weight: 700 !important;
  border-top: 1.5px solid var(--ink, #1A140C) !important;
  border-bottom: 1.5px solid var(--ink, #1A140C) !important;
}

html body main.wrap table.ladder-table tbody tr.highlight td:first-child {
  border-left: 4px solid var(--ticket-red, #B42318) !important;
}

@media (max-width: 639px) {
  html body main.wrap .table-wrap {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow-x: visible !important;
  }

  html body main.wrap table.compare,
  html body main.wrap table.ladder-table {
    background: transparent !important;
  }

  html body main.wrap table.compare thead,
  html body main.wrap table.ladder-table thead {
    display: none !important;
  }

  html body main.wrap table.compare tbody tr,
  html body main.wrap table.ladder-table tbody tr {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #fbf6ec !important;
    border: 2px solid var(--ink, #1A140C) !important;
    border-radius: 2px !important;
    box-shadow: 3px 3px 0 rgba(26, 20, 12, 0.12) !important;
    padding: 0.5rem 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  html body main.wrap table.ladder-table tbody tr.highlight {
    background: rgba(247, 237, 214, 0.96) !important;
    border-left: 5px solid var(--ticket-red, #B42318) !important;
  }

  html body main.wrap table.compare tbody th {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.35rem 0 0.45rem !important;
    margin-bottom: 0.25rem !important;
    border-bottom: 1.5px solid var(--ink, #1A140C) !important;
    background: transparent !important;
    font-size: 0.85rem !important;
  }

  html body main.wrap table.compare tbody td,
  html body main.wrap table.ladder-table tbody td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    gap: 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.4rem 0.35rem !important;
    border-bottom: 1px dashed rgba(26, 20, 12, 0.22) !important;
    text-align: right !important;
  }

  html body main.wrap table.compare tbody td:last-child,
  html body main.wrap table.ladder-table tbody td:last-child {
    border-bottom: 0 !important;
  }

  html body main.wrap table.compare tbody td::before,
  html body main.wrap table.ladder-table tbody td::before {
    content: attr(data-label) !important;
    display: inline-block !important;
    width: auto !important;
    font-family: var(--font-ticket, "Courier Prime", ui-monospace, monospace) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: var(--ink-muted, #5C5346) !important;
    text-align: left !important;
    flex: 0 0 auto !important;
  }
}

/* Conversion Gate & Pass Styles */
.pass-paid-banner {
  background: var(--paperInner, #f7edd6);
  border: 2px solid var(--grease, #386641);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 2px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink, #1a140c);
}

.pass-upsell-note {
  font-size: 0.85rem;
  color: var(--ink-muted, #5c5346);
  margin-left: auto;
}

.ing-add-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-block: 0.75rem 1rem;
}

.proto-add-subrecipe-btn {
  background: transparent;
  border: 1.5px dashed var(--ink-muted, #8a7f70);
  border-radius: 2px;
  color: var(--ink, #1a140c);
  font-family: var(--font-ticket, "Courier Prime", monospace);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.proto-add-subrecipe-btn:hover {
  background: var(--paperInner, #f7edd6);
  border-color: var(--ink, #1a140c);
}

/* Modal Dialog */
.conversion-gate-modal {
  border: none;
  background: transparent;
  padding: 1rem;
  max-width: 680px;
  width: 92vw;
  margin: auto;
}

.conversion-gate-modal::backdrop {
  background: rgba(26, 20, 12, 0.75);
  backdrop-filter: blur(2px);
}

.conversion-gate-paper {
  position: relative;
  background: var(--paper, #f3e6c9);
  border: 2px solid var(--ink, #1a140c);
  box-shadow: 6px 6px 0 rgba(26, 20, 12, 0.35);
  padding: 2rem 1.75rem 1.5rem;
  border-radius: 2px;
}

.gate-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: 1px solid var(--ink, #1a140c);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
}

.gate-close:hover {
  background: var(--paperInner, #f7edd6);
}

.gate-badge {
  display: inline-block;
  font-family: var(--font-ticket, "Courier Prime", monospace);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  background: var(--ink, #1a140c);
  color: var(--paper, #f3e6c9);
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

.gate-header h2 {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  margin: 0.25rem 0 0.5rem;
  color: var(--ink, #1a140c);
}

.gate-sub {
  color: var(--ink-muted, #5c5346);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.gate-email-wrap {
  margin-bottom: 1.25rem;
}

.gate-email-wrap label {
  display: block;
  font-family: var(--font-ticket, "Courier Prime", monospace);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.gate-email-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--paperInner, #f7edd6);
  border: 1.5px solid var(--ink, #1a140c);
  border-radius: 2px;
}

.gate-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.gate-option-card {
  background: var(--paperInner, #f7edd6);
  border: 1.5px solid var(--ink, #1a140c);
  padding: 1.2rem;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
}

.gate-option--trial {
  border-color: var(--grease, #386641);
  box-shadow: 3px 3px 0 rgba(56, 102, 65, 0.2);
}

.gate-badge-pill {
  font-family: var(--font-ticket, "Courier Prime", monospace);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--grease, #386641);
  letter-spacing: 0.04em;
}

.gate-option-card h3 {
  margin: 0.25rem 0 0.15rem;
  font-size: 1.15rem;
}

.gate-price-tag {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  color: var(--ink, #1a140c);
}

.gate-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.86rem;
  color: var(--ink-muted, #423b32);
}

.gate-perks li {
  padding: 0.25rem 0;
  border-bottom: 1px dashed rgba(26, 20, 12, 0.15);
}

.gate-perks li::before {
  content: "✔ ";
  color: var(--grease, #386641);
  font-weight: 700;
}

.gate-cta-btn {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.gate-footer-note {
  font-size: 0.78rem;
  color: var(--ink-muted, #5c5346);
  text-align: center;
  margin: 0.5rem 0 0;
}

/* Pricing Page Gate Section */
.pricing-pass-section {
  margin-top: 2rem;
  width: min(920px, 100%);
  margin-inline: auto;
}

.pass-card {
  background: var(--paper, #f3e6c9);
  border: 2px solid var(--ink, #1a140c);
  box-shadow: 4px 4px 0 rgba(26, 20, 12, 0.2);
  padding: 2rem 1.5rem;
  border-radius: 2px;
}

.pass-card-head {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 1.5rem;
}

.pass-card-head h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  margin: 0.25rem 0 0.5rem;
}

.lead-email-row {
  max-width: 440px;
  margin: 0 auto 1.5rem;
}

.plan-options-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.plan-option-card {
  background: var(--paperInner, #f7edd6);
  border: 1.5px solid var(--ink, #1a140c);
  padding: 1.5rem;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
}

.plan-badge {
  font-family: var(--font-ticket, "Courier Prime", monospace);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--grease, #386641);
}

.plan-option-card h3 {
  margin: 0.35rem 0 0.2rem;
  font-size: 1.25rem;
}

.plan-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex: 1;
  font-size: 0.9rem;
}

.plan-feature-list li {
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(26, 20, 12, 0.15);
}

.plan-feature-list li::before {
  content: "✔ ";
  color: var(--grease, #386641);
  font-weight: 700;
}

