/* Logical 320px production canvases keep authentic typography as the frame shrinks. */
.journey-production .journey-screen-panel {
  overflow: hidden;
}
.production-canvas {
  width: 320px;
  height: var(--production-height, 480px);
  display: grid;
  grid-template-rows: 55px minmax(0, 1fr) 66px;
  overflow: hidden;
  transform: scale(var(--production-scale, 1));
  transform-origin: top left;
  background: #e9eff6;
  color: #0a1931;
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.production-canvas *,
.production-canvas *:before,
.production-canvas *:after {
  box-sizing: border-box;
  corner-shape: round;
}
.production-canvas h3,
.production-canvas h4,
.production-canvas p {
  margin: 0;
  text-wrap: initial;
  letter-spacing: normal;
}
.production-canvas button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 0;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: default;
  line-height: 1.5;
  background: transparent;
}
.production-canvas svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.production-canvas strong,
.production-canvas b {
  font-weight: 700;
}
.production-canvas i {
  display: grid;
  place-items: center;
  flex: none;
  font-style: normal;
}
.production-appbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 55px;
  padding: 12px 16px;
  border-bottom: 1px solid #e1e9f1;
  background: #f2f6fb;
  box-shadow: 0 1px 2px #0a19310d;
}
.production-appbar > img {
  width: 36px;
  height: 24px;
  object-fit: contain;
}
.production-appbar > div {
  flex: 1;
  min-width: 0;
}
.production-appbar strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.production-appbar small {
  display: block;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 500;
  color: #46698e;
  white-space: nowrap;
}
.production-appbar .production-bell {
  width: 34px;
  height: 34px;
  color: #46698e;
}
.production-book-body,
.production-review-body {
  min-height: 0;
  overflow: hidden;
}
.production-book-content {
  padding: 16px;
  transition: transform 500ms var(--ease);
}
.production-book-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.production-book-heading .production-back {
  flex: none;
  width: 36px;
  height: 36px;
  margin-left: -8px;
  border-radius: 50%;
}
.production-book-heading > div {
  flex: 1;
  min-width: 0;
}
.production-book-heading p {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #46698e;
}
.production-canvas .production-book-heading h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.5;
}
.production-step-tracks {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.production-step-tracks > span {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #b3cfe5;
}
.production-step-tracks > span:first-child {
  background: #5b52ce;
}
.production-dispatch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #cdd2ff;
  border-radius: 12px;
  background: #eaedff;
}
.production-dispatch > i {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #cdd2ff;
  color: #5b52ce;
}
.production-dispatch > span {
  flex: 1;
  min-width: 0;
}
.production-dispatch small {
  display: block;
  color: #5b52ce;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.production-dispatch strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}
.production-canvas .production-change {
  font-size: 12px;
  font-weight: 700;
  color: #5b52ce;
  text-decoration: underline;
}
.production-unit {
  padding: 16px;
  border: 1px solid #cdd2ff;
  border-radius: 16px;
  background: #f2f6fb;
  box-shadow: 0 1px 2px #0a19310d;
}
.production-unit-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.production-unit-heading > strong {
  color: #5b52ce;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.production-unit-heading .production-edit {
  display: none;
  width: 28px;
  height: 28px;
  color: #46698e;
  border-radius: 8px;
}
.production-edit svg {
  width: 16px;
  height: 16px;
}
.production-size {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #bec9d4;
  border-radius: 12px;
  background: #e9eff6;
}
.production-size > strong,
.production-unit-summary > strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.production-size > strong svg,
.production-unit-summary > strong svg {
  width: 16px;
  height: 16px;
  color: #5b52ce;
}
.production-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.production-canvas .production-category {
  padding: 6px 10px;
  border: 1px solid #bec9d4;
  border-radius: 8px;
  color: #1a3d63;
  background: #f2f6fb;
  font-size: 11px;
  font-weight: 700;
}
.production-canvas .production-category.is-selected {
  border-color: #5b52ce;
  background: #5b52ce;
  color: #ffffff;
}
.production-category-count {
  display: none;
}
.production-services {
  display: grid;
  gap: 8px;
}
.production-service-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border: 1px solid #bec9d4;
  border-radius: 12px;
  background: #f2f6fb;
}
.production-service-row > span {
  min-width: 0;
}
.production-service-row strong {
  display: block;
  font-size: 14px;
  line-height: 1.375;
}
.production-service-row small {
  display: block;
  margin-top: 2px;
  color: #1a3d63;
  font-size: 11px;
  font-weight: 500;
}
.production-service-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.production-service-counter button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.production-service-counter svg {
  width: 16px;
  height: 16px;
}
.production-service-counter .production-minus {
  background: #e1e9f1;
  color: #0a1931;
  opacity: 0.4;
}
.production-service-counter .production-plus {
  background: #5b52ce;
  color: #ffffff;
}
.production-qty {
  position: relative;
  display: block;
  width: 16px;
  height: 24px;
  text-align: center;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.production-qty > b {
  position: absolute;
  inset: 0;
  transition: opacity 160ms ease;
}
.production-qty-one {
  opacity: 0;
}
.production-canvas .production-apply {
  width: 100%;
  min-height: 46px;
  padding: 12px 8px;
  margin-top: 12px;
  border-radius: 12px;
  background: #8280fa80;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}
.production-apply > svg {
  width: 16px;
  height: 16px;
}
.production-apply > small {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
}
.production-selected-total {
  opacity: 0;
}
.production-count-two {
  display: none;
}
.production-unit-summary {
  display: none;
}
.production-unit-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #1a3d63;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 6px;
}
.production-unit-summary > div:first-of-type {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e1e9f1;
}
.production-unit-summary > div b {
  flex: none;
  color: #0a1931;
  font-weight: 500;
  white-space: nowrap;
}
.production-unit-summary > footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e1e9f1;
  font-size: 12px;
}
.production-unit-summary > footer > b {
  color: #5b52ce;
}
.production-canvas .production-add-unit {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border: 1px dashed #cdd2ff;
  border-radius: 12px;
  color: #5b52ce;
  font-size: 14px;
  font-weight: 700;
}
.production-add-unit svg {
  width: 16px;
  height: 16px;
}
.production-book-footer {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid #bec9d4;
  background: #f2f6fb;
  box-shadow: 0 -4px 12px #0a19310f;
}
.production-empty-cart {
  width: 100%;
  font-size: 12px;
  color: #46698e;
  font-weight: 500;
  text-align: center;
}
.production-empty-cart svg {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  transform: rotate(90deg);
}
.production-filled-cart {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.production-filled-cart small {
  display: block;
  color: #46698e;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.production-filled-cart strong {
  display: block;
  font-size: 16px;
}
.production-canvas .production-next {
  padding: 12px 24px;
  border-radius: 12px;
  background: #5b52ce;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 6px -1px #0a193119;
}

.production-chat {
  grid-template-rows: 61px minmax(0, 1fr) 63px;
}
.production-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #bec9d4;
  background: #f2f6fb;
  box-shadow: 0 1px 2px #0a19310d;
}
.production-chat-header .production-back {
  width: 32px;
  height: 32px;
  margin-left: -4px;
  border-radius: 50%;
}
.production-chat-header > i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #5b52ce;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}
.production-chat-header > div {
  flex: 1;
  min-width: 0;
}
.production-chat-header strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}
.production-chat-header small {
  display: block;
  font-size: 11px;
  line-height: 1.25;
  color: #46698e;
}
.production-message-list {
  padding: 16px 12px;
  min-height: 0;
  overflow: hidden;
}
.production-day {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}
.production-day > span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #e1e9f1;
  color: #325b7c;
  font-size: 10px;
  font-weight: 500;
}
.production-message {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}
.production-message.is-mine {
  justify-content: flex-end;
}
.production-bubble {
  max-width: 78%;
  padding: 8px 12px;
  border: 1px solid #bec9d4;
  border-radius: 16px 16px 16px 4px;
  background: #f2f6fb;
  font-size: 14px;
  line-height: 1.375;
}
.production-bubble > p {
  font-size: 14px;
  line-height: 1.375;
}
.production-bubble > small {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
  font-size: 9px;
  color: #46698e;
}
.production-bubble > small svg {
  width: 10px;
  height: 10px;
  color: #8dd0ff;
}
.production-message.is-mine .production-bubble {
  border-color: transparent;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 4px;
  background: #5b52ce;
  color: #ffffff;
}
.production-message.is-mine .production-bubble > small {
  color: #ffffffd9;
}
.production-user-message,
.production-tech-reply {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 240ms ease,
    transform 240ms var(--ease);
}
.production-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #bec9d4;
  background: #f2f6fb;
}
.production-draft {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #bec9d4;
  border-radius: 999px;
  background: #e9eff6;
  color: #46698e;
  font-size: 14px;
}
.production-draft-text {
  position: absolute;
  left: 12px;
  right: 12px;
  color: #0a1931;
  opacity: 0;
}
.production-placeholder,
.production-draft-text {
  transition: opacity 160ms ease;
}
.production-composer .production-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5b52ce;
  color: #ffffff;
  opacity: 0.4;
}
.production-send svg {
  width: 16px;
  height: 16px;
}

.production-review {
  display: block;
  position: relative;
}
.production-review-underlay > h3 {
  margin: 16px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}
.production-booking-tabs {
  display: flex;
  gap: 8px;
  margin: 16px;
  padding: 4px;
  border-radius: 12px;
  background: #e1e9f1;
}
.production-booking-tabs > b {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 8px;
}
.production-booking-tabs > b:last-child {
  border-radius: 8px;
  background: #f2f6fb;
  color: #5b52ce;
}
.production-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: #00000099;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.production-detail-sheet {
  position: absolute;
  inset: auto 0 0;
  height: 90%;
  display: grid;
  grid-template-rows: 69px minmax(0, 1fr) 64px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #f2f6fb;
}
.production-sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #bec9d4;
}
.production-sheet-heading > div {
  flex: 1;
  min-width: 0;
}
.production-canvas .production-sheet-heading h3 {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
}
.production-sheet-heading p {
  margin-top: 2px;
  color: #46698e;
  font-size: 12px;
  line-height: 1.5;
}
.production-sheet-heading .production-close {
  width: 36px;
  height: 36px;
  margin-right: -8px;
  border-radius: 50%;
  color: #1a3d63;
}
.production-review-content {
  padding: 16px;
  transition: transform 500ms var(--ease);
}
.production-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background: #e1e9f1;
  color: #1a3d63;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.production-visit-meta {
  margin-top: 16px;
}
.production-visit-meta p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a3d63;
  font-size: 12px;
  line-height: 1.5;
}
.production-visit-meta p + p {
  margin-top: 6px;
}
.production-visit-meta svg {
  width: 14px;
  height: 14px;
  color: #46698e;
}
.production-detail-tech {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
}
.production-detail-tech > i {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e5e9ff;
  color: #5b52ce;
}
.production-detail-tech svg {
  width: 16px;
  height: 16px;
}
.production-detail-tech small {
  display: block;
  color: #46698e;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.production-detail-tech strong {
  display: block;
  font-size: 14px;
  line-height: 1.5;
}
.production-detail-services {
  margin-top: 16px;
}
.production-canvas .production-detail-services h4,
.production-canvas .production-detail-timeline h4,
.production-canvas .production-photo-section h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: #46698e;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.production-detail-services h4 svg,
.production-photo-section h4 svg {
  width: 12px;
  height: 12px;
}
.production-detail-services > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #e1e9f1;
  border-radius: 8px;
  background: #e9eff6;
  font-size: 12px;
  line-height: 1.375;
  font-weight: 500;
}
.production-detail-services > div b {
  flex: none;
  white-space: nowrap;
}
.production-detail-services > footer {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid #e1e9f1;
  font-size: 14px;
}
.production-detail-services > footer b,
.production-detail-services > p b {
  color: #007a55;
}
.production-detail-services > p {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #1a3d63;
}
.production-detail-timeline {
  margin-top: 16px;
}
.production-detail-timeline > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.production-detail-timeline svg {
  width: 16px;
  height: 16px;
  color: #007a55;
}
.production-photo-section {
  margin-top: 16px;
}
.production-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.production-photo-grid svg {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #e1e9f1;
  box-shadow: 0 1px 2px #0a19310d;
}
.production-detail-footer {
  padding: 16px;
  border-top: 1px solid #bec9d4;
  background: #f2f6fb;
}
.production-detail-footer .production-pay-balance {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #009966;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 1px 2px #0a19310d;
}
.production-invoice-backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #000000cc;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.production-invoice-modal {
  width: 100%;
  max-height: calc(var(--production-height, 480px) * 0.9);
  overflow-y: auto;
  border-radius: 16px;
  background: #f2f6fb;
  opacity: 0;
  transform: scale(0.97) translateY(5px);
  transition:
    transform 240ms var(--ease),
    opacity 240ms ease;
}
.production-invoice-modal > header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid #bec9d4;
  background: #e9eff6;
}
.production-invoice-modal > header > i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #5b52ce;
  color: #ffffff;
}
.production-invoice-modal > header > div {
  flex: 1;
}
.production-canvas .production-invoice-modal h3 {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
}
.production-invoice-modal header p {
  color: #46698e;
  font-size: 12px;
  font-family: ui-monospace, monospace;
  line-height: 1.5;
}
.production-invoice-modal .production-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #1a3d63;
}
.production-invoice-modal .production-close svg {
  width: 16px;
  height: 16px;
}
.production-invoice-modal > main {
  padding: 16px;
}
.production-invoice-modal main > div,
.production-invoice-items > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.production-invoice-modal main > div > span {
  color: #46698e;
}
.production-invoice-modal main strong {
  font-weight: 500;
}
.production-invoice-status {
  padding: 2px 8px;
  border-radius: 4px;
  background: #e5e9ff;
  color: #5b52ce;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.production-invoice-items {
  padding-top: 12px;
  border-top: 1px solid #e1e9f1;
}
.production-invoice-items > div {
  margin-bottom: 8px;
}
.production-invoice-items b {
  font-weight: 500;
  white-space: nowrap;
}
.production-invoice-modal main > footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  margin-top: 16px;
  border-radius: 12px;
  background: #e1e9f1;
  font-size: 14px;
}
.production-invoice-modal main > footer strong {
  font-weight: 700;
}
.production-invoice-modal main > footer b {
  font-size: 20px;
}
.production-invoice-modal > footer {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid #bec9d4;
}
.production-invoice-modal > footer > button {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
}
.production-invoice-close {
  border: 1px solid #bec9d4 !important;
  color: #1a3d63 !important;
  background: #f2f6fb !important;
}
.production-invoice-download {
  color: #ffffff !important;
  background: #5b52ce !important;
}
.production-invoice-download svg {
  width: 16px;
  height: 16px;
}

/* Retargetable presentation changes follow the controller; back snapshots stay still. */
.journey-art[data-demo-scene='0'][data-demo-step='1'] .journey-production .production-book-content {
  transform: translateY(-150px);
}
.journey-art[data-demo-scene='0'][data-demo-step='2'] .journey-production .production-book-content {
  transform: translateY(-150px);
}
.journey-art[data-demo-scene='0'][data-demo-step='3'] .journey-production .production-book-content,
.journey-art[data-demo-scene='0'][data-demo-step='4'] .journey-production .production-book-content {
  transform: translateY(0);
}
.journey-art[data-demo-scene='0']:not([data-demo-step='0']) .journey-production .production-service-1,
.journey-art[data-demo-scene='0'][data-demo-step='2'] .journey-production .production-service-2 {
  border-color: #5b52ce;
  background: #eaedff;
}
.journey-art[data-demo-scene='0']:not([data-demo-step='0'])
  .journey-production
  .production-service-1
  .production-qty-zero,
.journey-art[data-demo-scene='0'][data-demo-step='2']
  .journey-production
  .production-service-2
  .production-qty-zero {
  opacity: 0;
}
.journey-art[data-demo-scene='0']:not([data-demo-step='0'])
  .journey-production
  .production-service-1
  .production-qty-one,
.journey-art[data-demo-scene='0'][data-demo-step='2']
  .journey-production
  .production-service-2
  .production-qty-one {
  opacity: 1;
}
.journey-art[data-demo-scene='0']:not([data-demo-step='0'])
  .journey-production
  .production-service-1
  .production-minus,
.journey-art[data-demo-scene='0'][data-demo-step='2']
  .journey-production
  .production-service-2
  .production-minus {
  opacity: 1;
}
.journey-art[data-demo-scene='0']:not([data-demo-step='0']) .journey-production .production-apply {
  background: #5b52ce;
}
.journey-art[data-demo-scene='0']:not([data-demo-step='0']) .journey-production .production-category-count {
  display: inline;
}
.journey-art[data-demo-scene='0']:not([data-demo-step='0']) .journey-production .production-selected-total {
  opacity: 1;
}
.journey-art[data-demo-scene='0'][data-demo-step='2'] .journey-production .production-count-one,
.journey-art[data-demo-scene='0'][data-demo-step='3'] .journey-production .production-count-one,
.journey-art[data-demo-scene='0'][data-demo-step='4'] .journey-production .production-count-one {
  display: none;
}
.journey-art[data-demo-scene='0'][data-demo-step='2'] .journey-production .production-count-two,
.journey-art[data-demo-scene='0'][data-demo-step='3'] .journey-production .production-count-two,
.journey-art[data-demo-scene='0'][data-demo-step='4'] .journey-production .production-count-two {
  display: inline;
}
.journey-art[data-demo-scene='0']:not([data-demo-step='0']) .journey-production .production-empty-cart {
  display: none;
}
.journey-art[data-demo-scene='0']:not([data-demo-step='0']) .journey-production .production-filled-cart {
  display: flex;
}
.journey-art[data-demo-scene='0'][data-demo-step='3'] .journey-production .production-unit-expanded,
.journey-art[data-demo-scene='0'][data-demo-step='4'] .journey-production .production-unit-expanded {
  display: none;
}
.journey-art[data-demo-scene='0'][data-demo-step='3'] .journey-production .production-unit-summary,
.journey-art[data-demo-scene='0'][data-demo-step='4'] .journey-production .production-unit-summary {
  display: block;
}
.journey-art[data-demo-scene='0'][data-demo-step='3'] .journey-production .production-edit,
.journey-art[data-demo-scene='0'][data-demo-step='4'] .journey-production .production-edit {
  display: inline-flex;
}
.journey-art[data-demo-scene='0'][data-demo-step='3'] .journey-production .production-unit,
.journey-art[data-demo-scene='0'][data-demo-step='4'] .journey-production .production-unit {
  border-color: #bec9d4;
}
.journey-art[data-demo-scene='1']:not([data-demo-step='0']) .journey-production .production-user-message {
  opacity: 1;
  transform: translateY(0);
}
.journey-art[data-demo-scene='1'][data-demo-step='0'] .journey-production .production-placeholder {
  opacity: 0;
}
.journey-art[data-demo-scene='1'][data-demo-step='0'] .journey-production .production-draft-text {
  opacity: 1;
}
.journey-art[data-demo-scene='1'][data-demo-step='0'] .journey-production .production-send {
  opacity: 1;
}
.journey-art[data-demo-scene='1'][data-demo-step='3'] .journey-production .production-tech-reply,
.journey-art[data-demo-scene='1'][data-demo-step='4'] .journey-production .production-tech-reply {
  opacity: 1;
  transform: translateY(0);
}
.journey-art[data-demo-scene='2'][data-demo-step='1'] .journey-production .production-review-content {
  transform: translateY(-330px);
}
.journey-art[data-demo-scene='2'][data-demo-step='2'] .journey-production .production-review-content,
.journey-art[data-demo-scene='2'][data-demo-step='3'] .journey-production .production-review-content,
.journey-art[data-demo-scene='2'][data-demo-step='4'] .journey-production .production-review-content {
  transform: translateY(-376px);
}
.journey-art[data-demo-scene='2'][data-demo-step='3'] .journey-production .production-pay-balance {
  box-shadow: 0 0 0 3px #00996626;
}
.journey-art[data-demo-scene='2'][data-demo-step='4'] .journey-production .production-invoice-backdrop,
.journey-art[data-demo-scene='2'][data-demo-step='4'] .journey-production .production-invoice-modal {
  opacity: 1;
}
.journey-art[data-demo-scene='2'][data-demo-step='4'] .journey-production .production-invoice-modal {
  transform: scale(1) translateY(0);
}
.journey-art.instant-change .production-book-content,
.journey-art.instant-change .production-review-content,
.journey-art.instant-change .production-user-message,
.journey-art.instant-change .production-tech-reply,
.journey-art.instant-change .production-invoice-modal {
  transition: none !important;
}
.journey-art[data-demo-state='paused'] .production-canvas *,
.journey-art[data-demo-state='paused'] .production-canvas *:before {
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .production-canvas * {
    transition: none !important;
  }
  .journey-production .production-user-message,
  .journey-production .production-tech-reply {
    opacity: 1;
    transform: none;
  }
}
.motion-disabled .production-canvas * {
  transition: none !important;
}
.motion-disabled .journey-production .production-user-message,
.motion-disabled .journey-production .production-tech-reply {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-transparency: reduce) {
  .production-sheet-backdrop,
  .production-invoice-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ---------------------------------------------------------------------------------------------
   Journey phones
   Three phones, one per scene, share one rig drawn at a fixed 272 x 572 (a real phone's 9:19
   proportion) and scaled as a whole by --rig-scale. Everything inside is therefore laid out
   once: the screens are the app's 320px canvas at 0.8, and the demo's scroll offsets and tap
   positions hold at every breakpoint.
   motion.js turns the phones like a turntable so the current scene faces front, and sets --depth
   (0 in front, 0.75 behind) on each. The transforms here are the arrangement before it runs.
   --------------------------------------------------------------------------------------------- */
.journey-art {
  --rig-scale: 1;
  --rig-side: 118px;
  height: calc(16px + 572px * var(--rig-scale) + 40px);
  perspective: 1400px;
}
.journey-rig {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 272px;
  height: 572px;
  margin-left: -136px;
  transform: scale(var(--rig-scale));
  transform-origin: 50% 0;
  transform-style: preserve-3d;
}
.journey-production {
  --production-scale: 0.8;
  --production-height: 635px;
}
.journey-device {
  --depth: 0;
  position: absolute;
  inset: 0;
  padding: 6px;
  border: 1px solid #787b82;
  border-radius: 46px;
  background: linear-gradient(128deg, #7b7e83, #26282d 15%, #111318 38%, #202329 75%, #71757d);
  box-shadow:
    0 0 0 1px #0b0d1466,
    inset 0 0 0 1px #cbcfd54d,
    0 40px 70px -24px #0a193159,
    0 10px 22px -10px #0a193138;
  transform-origin: 50% 55%;
  backface-visibility: hidden;
}
.journey-device[data-journey-phone='0'] {
  z-index: 3;
}
.journey-device[data-journey-phone='1'] {
  --depth: 0.75;
  transform: translate3d(var(--rig-side), 12px, -90px) rotate(6deg) scale(0.895);
}
.journey-device[data-journey-phone='2'] {
  --depth: 0.75;
  transform: translate3d(calc(var(--rig-side) * -1), 12px, -90px) rotate(-6deg) scale(0.895);
}
/* Side buttons */
.journey-device::before,
.journey-device::after {
  content: '';
  position: absolute;
  width: 3px;
  background: linear-gradient(90deg, #30343c, #7b8189);
}
.journey-device::before {
  right: -4px;
  top: 150px;
  height: 58px;
  border-radius: 0 3px 3px 0;
}
.journey-device::after {
  left: -4px;
  top: 126px;
  height: 36px;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 46px 0 #4a4f58;
}
.journey-glass {
  position: relative;
  display: grid;
  grid-template-rows: 30px minmax(0, 1fr) 18px;
  height: 100%;
  overflow: hidden;
  border: 1px solid #050609;
  border-radius: 40px;
  background: #e9eff6;
}
/* A phone that has turned away fades into the background a little. */
.journey-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 9;
  background: #e4eaf3;
  opacity: calc(var(--depth) * 0.5);
  pointer-events: none;
}
.journey-status {
  display: grid;
  place-items: center;
  background: #f2f6fb;
  transition: background 240ms ease;
}
/* The review screen always has its sheet open, and the status area dims with it. */
.journey-device[data-journey-phone='2'] .journey-status {
  background: #616264;
}
.journey-art[data-demo-scene='2'][data-demo-step='4'] [data-journey-phone='2'] .journey-status {
  background: #131414;
}
.journey-status span {
  width: 74px;
  height: 20px;
  border-radius: 999px;
  background: #06070b;
  box-shadow: inset 0 1px 1px #222530;
}
.journey-production .journey-screen {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.journey-screen-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.demo-home-indicator {
  width: 84px;
  height: 4px;
  margin: auto;
  border-radius: 999px;
  background: #18253b;
}
@supports (corner-shape: squircle) {
  .journey-device {
    corner-shape: squircle;
    border-radius: 62px;
  }
  .journey-glass {
    corner-shape: squircle;
    border-radius: 56px;
  }
}

/* The caption card rests on the bottom edge of the phone. */
.journey-art .journey-float {
  left: calc(50% - 120px);
  right: auto;
  top: auto;
  bottom: 0;
  width: 240px;
  max-width: 240px;
}

/* Scene choice and play/pause share one row. */
.journey-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.journey-controls .journey-scene-controls {
  margin: 0;
}
.journey-playback {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border: 1px solid #ffffffce;
  border-radius: 50%;
  background: #f2f6fbe6;
  color: var(--navy-soft);
  box-shadow: 0 8px 24px -10px #0a193126;
  transition: background 160ms ease;
}
.journey-playback:disabled {
  opacity: 0.45;
}
.journey-playback [data-demo-icon] {
  width: 11px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.journey-playback [data-demo-icon][data-playing='false'] {
  width: 0;
  height: 0;
  margin-left: 3px;
  border: 6px solid transparent;
  border-right: 0;
  border-left: 10px solid currentColor;
}
@media (hover: hover) and (pointer: fine) {
  .journey-playback:not(:disabled):hover {
    background: #e5e9ff;
  }
}
@media (prefers-contrast: more) {
  .journey-playback {
    border-color: var(--navy);
    background: var(--surface);
  }
}

@media (max-width: 1100px) {
  .journey-art {
    --rig-scale: 0.94;
  }
}
@media (max-width: 900px) {
  .journey-art {
    --rig-scale: 0.9;
    --rig-side: 92px;
  }
}
@media (max-width: 680px) {
  .journey-art {
    --rig-scale: 0.86;
    --rig-side: 66px;
  }
}
@media (max-width: 360px) {
  .journey-art {
    --rig-scale: 0.78;
  }
}

/* ---------------------------------------------------------------------------------------------
   Tap indicator
   A fingertip dot shows what the demo presses. During a step it travels to the control the next
   step will press, then pulses as that step begins. Positions are in the 320px canvas and assume
   the scroll offsets above; if either changes, re-measure the control centres.
   --------------------------------------------------------------------------------------------- */
.production-touch {
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.5px solid #ffffffe6;
  border-radius: 50%;
  background: #0a193138;
  box-shadow: 0 3px 10px #0a193140;
  opacity: 0;
  pointer-events: none;
  translate: var(--touch-x, 160px) var(--touch-y, 400px);
  transition:
    translate 650ms var(--ease) 380ms,
    opacity 200ms ease;
}
.production-touch::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid #5b52ce;
  border-radius: 50%;
  opacity: 0;
}
/* Two identical pairs, so consecutive steps restart the animation by switching names. */
@keyframes touch-press-a {
  35% {
    scale: 0.76;
  }
}
@keyframes touch-press-b {
  35% {
    scale: 0.76;
  }
}
@keyframes touch-ring-a {
  from {
    opacity: 0.9;
    scale: 0.7;
  }
  to {
    opacity: 0;
    scale: 1.9;
  }
}
@keyframes touch-ring-b {
  from {
    opacity: 0.9;
    scale: 0.7;
  }
  to {
    opacity: 0;
    scale: 1.9;
  }
}
.journey-art[data-demo-step='1'] .production-touch,
.journey-art[data-demo-step='3'] .production-touch {
  animation: touch-press-a 380ms ease-out;
}
.journey-art[data-demo-step='1'] .production-touch::after,
.journey-art[data-demo-step='3'] .production-touch::after {
  animation: touch-ring-a 520ms ease-out;
}
.journey-art[data-demo-step='2'] .production-touch,
.journey-art[data-demo-step='4'] .production-touch {
  animation: touch-press-b 380ms ease-out;
}
.journey-art[data-demo-step='2'] .production-touch::after,
.journey-art[data-demo-step='4'] .production-touch::after {
  animation: touch-ring-b 520ms ease-out;
}

/* Booking: + on the first service, + on the second, Apply, then Next. */
.journey-art[data-demo-scene='0'] .production-book .production-touch {
  --touch-x: 258px;
  --touch-y: 458px;
  opacity: 1;
}
.journey-art[data-demo-scene='0'][data-demo-step='0'] .production-book .production-touch {
  transition: opacity 200ms ease;
}
.journey-art[data-demo-scene='0'][data-demo-step='1'] .production-book .production-touch {
  --touch-y: 399px;
}
.journey-art[data-demo-scene='0'][data-demo-step='2'] .production-book .production-touch {
  --touch-x: 160px;
  --touch-y: 488px;
}
.journey-art[data-demo-scene='0'][data-demo-step='3'] .production-book .production-touch,
.journey-art[data-demo-scene='0'][data-demo-step='4'] .production-book .production-touch {
  --touch-x: 252px;
  --touch-y: 602px;
}
.journey-art[data-demo-scene='0'][data-demo-step='4'] .production-book .production-touch {
  opacity: 0;
  transition: opacity 300ms ease 900ms;
}

/* In Malay the category labels wrap onto a third row and "Seterusnya" is a wider button, so the
   same controls sit a little lower and further left. */
html:lang(ms) .journey-art[data-demo-scene='0'][data-demo-step='1'] .production-book .production-touch {
  --touch-y: 436px;
}
html:lang(ms) .journey-art[data-demo-scene='0'][data-demo-step='2'] .production-book .production-touch {
  --touch-y: 525px;
}
html:lang(ms) .journey-art[data-demo-scene='0'][data-demo-step='3'] .production-book .production-touch,
html:lang(ms) .journey-art[data-demo-scene='0'][data-demo-step='4'] .production-book .production-touch {
  --touch-x: 236px;
}

/* Chat: send the drafted reply. */
.journey-art[data-demo-scene='1'] .production-chat .production-touch {
  --touch-x: 288px;
  --touch-y: 604px;
  transition: opacity 250ms ease 450ms;
}
.journey-art[data-demo-scene='1'][data-demo-step='0'] .production-chat .production-touch {
  opacity: 1;
  transition: opacity 200ms ease;
}
.journey-art[data-demo-scene='1']:not([data-demo-step='1']) .production-chat .production-touch,
.journey-art[data-demo-scene='1']:not([data-demo-step='1']) .production-chat .production-touch::after {
  animation: none;
}

/* Review: Pay balance opens the invoice. */
.journey-art[data-demo-scene='2'] .production-review .production-touch {
  --touch-x: 160px;
  --touch-y: 612px;
  transition: opacity 250ms ease 450ms;
}
.journey-art[data-demo-scene='2'][data-demo-step='3'] .production-review .production-touch {
  opacity: 1;
  transition: opacity 200ms ease 500ms;
}
.journey-art[data-demo-scene='2']:not([data-demo-step='4']) .production-review .production-touch,
.journey-art[data-demo-scene='2']:not([data-demo-step='4']) .production-review .production-touch::after {
  animation: none;
}

/* No fingertip when nothing is playing. */
.journey-art[data-demo-state='paused'] .production-touch,
.motion-disabled .production-touch {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .production-touch {
    display: none;
  }
}

/* Malay: "Seterusnya" and "Muat turun PDF" are longer words; keep those buttons on one line. */
html:lang(ms) .production-canvas .production-next {
  padding-inline: 14px;
  white-space: nowrap;
}
html:lang(ms) .production-canvas .production-invoice-download {
  font-size: 12px;
  white-space: nowrap;
}
