#industries.section { padding-top: clamp(48px, 5vw, 66px); }
.workflow-anchor { display: block; position: relative; top: 0; scroll-margin-top: var(--header); }
.scene-tabs {
  position: sticky; top: var(--header); z-index: 5;
  background: rgb(255 255 255 / 0.96); backdrop-filter: blur(8px);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 16px; border-block: 1px solid var(--rule-strong);
}
.scene-tab { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 7px 4px; background: transparent; border: 0; color: var(--subtle); font-weight: 590; }
.scene-tab + .scene-tab { border-left: 1px solid var(--rule); }
.scene-tab[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -1px var(--ink); background: var(--raised); }
.scene-tab svg { flex: 0 0 auto; }
.showcase-panel { position: relative; }
.showcase-intro { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding: 13px 0 10px; }
.showcase-intro h3 { font-weight: 620; font-size: clamp(1.03rem, 2.1vw, 1.5rem); }
.showcase-intro p { color: var(--subtle); font-size: .87rem; margin-top: 2px; }
.scene-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 11px; }
.mode-state { color: var(--muted); font-size: .76rem; }
.scene-meta .text-button { font-size: .76rem; text-decoration: underline; }
.scene-body {
  position: relative;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(22 21 19 / 0.04), 0 18px 44px -24px rgb(22 21 19 / 0.14);
}
.scene-steps { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--rule); background: #efede7; }
.scene-steps li {
  position: relative;
  flex: 1 0 0;
  display: flex; align-items: center; gap: 7px;
  padding: 9px 13px;
  color: var(--muted);
  font-size: .75rem;
  background: #efede7;
  transition: opacity 240ms var(--ease), background 240ms var(--ease), color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.scene-steps li + li { border-left: 1px solid var(--rule); }
.scene-steps li .step-num {
  font: 600 .67rem/1.2 var(--mono);
  padding: 2px 6px;
  border-radius: 999px;
  background: rgb(22 21 19 / 0.06);
  color: var(--muted);
  flex: 0 0 auto;
}
.scene-steps li strong { font-weight: 590; }
.scene-steps li.upcoming { opacity: .34; background: #efede7; color: var(--muted); }
.scene-steps li.passed:not([aria-current]) { opacity: .68; background: #f6f5f1; color: var(--subtle); }
.scene-steps li.passed:not([aria-current]) .step-num { background: rgb(12 123 82 / 0.12); color: var(--positive); }
.scene-steps li[aria-current="step"] {
  opacity: 1;
  z-index: 2;
  color: #161513;
  background: #ffffff;
  box-shadow: inset 0 -3px 0 var(--blue), inset 0 2px 0 var(--blue), 0 6px 18px -10px rgb(37 84 232 / 0.36);
}
.scene-steps li[aria-current="step"] .step-num {
  background: var(--blue);
  color: #ffffff;
}
.scene-steps li[aria-current="step"] strong { font-weight: 660; }
.step-live-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgb(37 84 232 / 0.22);
}
.scene-steps li.step-entered {
  animation: step-enter 480ms var(--ease) both;
}
.scene-steps li.step-entered::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 10%, rgb(37 84 232 / 0.16) 50%, transparent 90%);
  animation: step-sweep 480ms var(--ease) both;
}
@keyframes step-enter {
  0% { transform: translateY(3px) scale(.985); }
  45% { transform: translateY(-1px) scale(1.012); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes step-sweep {
  from { transform: translateX(-100%); opacity: .9; }
  to { transform: translateX(100%); opacity: 0; }
}
.scene-progress {
  height: 3px;
  background: rgb(22 21 19 / 0.08);
  overflow: hidden;
}
.scene-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #2554e8, #4d7bff);
  transform-origin: left center;
  transform: scaleX(var(--progress-to, 0));
}
.scene-progress-fill.is-advancing {
  animation: progress-slide 460ms var(--ease) both;
}
@keyframes progress-slide {
  from { transform: scaleX(var(--progress-from, 0)); }
  to { transform: scaleX(var(--progress-to, 0)); }
}

.scene-split { display: grid; grid-template-columns: minmax(0, .93fr) 0 minmax(0, 1.07fr); background: #ffffff; position: relative; }
.scene-side {
  min-width: 0;
  transition: opacity 280ms var(--ease), filter 280ms var(--ease), box-shadow 280ms var(--ease);
}
.scene-split[data-focus-side="front"] .scene-front,
.scene-split[data-focus-side="back"] .scene-back {
  opacity: 1;
  filter: none;
}
.scene-split[data-focus-side="front"] .scene-front .instrument-bar,
.scene-split[data-focus-side="back"] .scene-back .instrument-bar {
  color: var(--ink);
  font-weight: 620;
}
.scene-split[data-focus-side="front"] .scene-front .instrument-bar::before,
.scene-split[data-focus-side="back"] .scene-back .instrument-bar::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgb(37 84 232 / 0.24);
  flex: 0 0 auto;
}
.scene-split[data-focus-side="front"] .scene-back > :nth-child(2),
.scene-split[data-focus-side="back"] .scene-front > :nth-child(2) {
  opacity: .86;
  transition: opacity 240ms var(--ease);
}
.scene-split[data-focus-side="front"] .scene-back:hover > :nth-child(2),
.scene-split[data-focus-side="front"] .scene-back:focus-within > :nth-child(2),
.scene-split[data-focus-side="back"] .scene-front:hover > :nth-child(2),
.scene-split[data-focus-side="back"] .scene-front:focus-within > :nth-child(2) {
  opacity: 1;
}
.cup.is-pouring {
  border-color: var(--rule-strong);
  background: #ffffff;
}
.scene-side .instrument-bar {
  justify-content: flex-start;
  gap: 8px;
  padding-inline: clamp(13px, 2vw, 26px);
  min-height: 36px;
  padding-block: 8px 7px;
  background: #faf9f6;
  border-bottom: 1px solid var(--rule);
  font-size: .72rem;
  color: var(--muted);
}
.scene-side > :nth-child(2) { padding: 14px clamp(13px, 2vw, 26px) 16px; }
.sync-bridge {
  position: relative; z-index: 3;
  overflow: visible;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 6px; pointer-events: none;
}
.sync-pill {
  position: relative;
  flex: 0 0 auto;
  width: max-content;
  overflow: hidden;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 5px 11px; border-radius: 100px;
  background: #151413; color: #f5f4f0;
  border: 1px solid rgb(255 255 255 / 0.18);
  box-shadow: 0 6px 18px -4px rgb(22 21 19 / 0.36);
  font: 620 .68rem/1 var(--mono); letter-spacing: .04em;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.sync-dot { width: 6px; height: 6px; border-radius: 50%; background: #8f8b83; flex: 0 0 auto; }
.sync-bridge.is-live .sync-pill {
  border-color: rgb(77 123 255 / 0.72);
  box-shadow: 0 0 0 3px rgb(37 84 232 / 0.18), 0 8px 22px -4px rgb(22 21 19 / 0.44);
}
.sync-bridge.is-live .sync-dot {
  background: #34d399;
  box-shadow: 0 0 0 3px rgb(52 211 153 / 0.28);
  animation: sync-pulse 1.5s ease-in-out infinite;
}
.sync-bridge.is-pulse .sync-pill {
  animation: sync-kick 560ms var(--ease) both;
}
.sync-bridge.is-pulse .sync-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 10%, rgb(77 123 255 / 0.55) 45%, rgb(52 211 153 / 0.55) 60%, transparent 90%);
  animation: sync-sweep 560ms var(--ease) both;
}
@keyframes sync-kick {
  0% { transform: scale(.96); border-color: #4d7bff; }
  45% { transform: scale(1.07); border-color: #34d399; box-shadow: 0 0 0 5px rgb(37 84 232 / 0.28), 0 10px 26px -4px rgb(22 21 19 / 0.5); }
  100% { transform: scale(1); }
}
@keyframes sync-sweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
@keyframes sync-pulse { 50% { opacity: .45; } }
.scene-back {
  background: #ffffff;
  color: var(--ink);
  border-left: 1px solid var(--rule);
}
.scene-back .instrument-bar {
  background: #f6f4f0;
  color: var(--subtle);
  border-bottom-color: var(--rule);
  justify-content: flex-end;
}
.scene-back .demo-action {
  background: #ffffff;
  border-color: var(--rule-strong);
  color: var(--ink);
}
.scene-back .demo-action[aria-pressed="true"] {
  background: #161513;
  border-color: #161513;
  color: #ffffff;
}
.scene-back .demo-primary {
  background: #2554e8;
  border-color: #2554e8;
  color: #ffffff;
}
.scene-back .demo-primary:disabled {
  background: var(--raised);
  border-color: var(--rule);
  color: var(--muted);
}
.scene-back .data-table .selected-row { background: rgb(37 84 232 / 0.08); }
.scene-back .data-table .selected-row td:first-child { box-shadow: inset 2px 0 var(--blue); padding-left: 8px; }
.scene-back .data-table tbody tr { transition: opacity 260ms var(--ease), background 260ms var(--ease); }
.scene-back .data-table tbody tr.is-focus-row {
  opacity: 1;
  background: rgb(37 84 232 / 0.07);
}
.scene-back .data-table tbody tr.is-focus-row > :first-child {
  box-shadow: inset 3px 0 var(--blue);
  padding-left: 9px;
}
.scene-back .data-table tbody tr.is-dim-row { opacity: .64; }
.scene-back .data-table tbody tr.is-dim-row:hover { opacity: .92; }
.scene-back .is-focus-block { opacity: 1; transition: opacity 260ms var(--ease); }
.scene-back .is-dim-block { opacity: .66; transition: opacity 260ms var(--ease); }
.scene-back .is-dim-block:hover { opacity: .95; }
.scene-back .low-stock td:last-child, .scene-back .stock-notice { color: #b45309; }
.scene-back .database strong { color: var(--ink); }

/* Keep luxury dark-gold console exclusively for Jewelry EC scene */
#scene-panel[data-scene="ec"] .scene-back {
  background: #151413;
  color: #f5f4f0;
  border-left-color: rgb(255 255 255 / 0.12);
  --bg: #151413;
  --surface: #1c1b19;
  --raised: #262420;
  --ink: #f5f4f0;
  --subtle: #b8b4ac;
  --muted: #98938a;
  --tick: #6e6a62;
  --rule: rgb(255 255 255 / 0.095);
  --rule-strong: rgb(255 255 255 / 0.18);
  --positive: #34d399;
}
#scene-panel[data-scene="ec"] .scene-back .console-chrome-bar {
  background: #1c1b19; color: #f5f4f0; border-bottom-color: rgb(255 255 255 / 0.09);
}
#scene-panel[data-scene="ec"] .scene-back .console-role-label { color: #e6e2da; }
#scene-panel[data-scene="ec"] .scene-back .console-stage-chip {
  background: rgb(59 102 245 / 0.22); border-color: rgb(96 142 255 / 0.42); color: #dbe8ff;
}
#scene-panel[data-scene="ec"] .scene-back .console-action-bar {
  background: rgb(59 102 245 / 0.14); border-color: rgb(96 142 255 / 0.36);
}
#scene-panel[data-scene="ec"] .scene-back .console-action-label { color: #dbe8ff; }
#scene-panel[data-scene="ec"] .scene-back .demo-action {
  background: #1f1e1c; border-color: rgb(255 255 255 / 0.18); color: #ebe8e1;
}
#scene-panel[data-scene="ec"] .scene-back .demo-action[aria-pressed="true"] {
  background: #f5f4f0; border-color: #f5f4f0; color: #151413;
}
#scene-panel[data-scene="ec"] .scene-back .demo-primary:disabled {
  background: #24221f; border-color: rgb(255 255 255 / 0.1); color: #8a867e;
}
#scene-panel[data-scene="ec"] .scene-back .data-table tbody tr.is-focus-row { background: rgb(59 102 245 / 0.16); }
#scene-panel[data-scene="ec"] .scene-back .data-table tbody tr.is-dim-row { opacity: .56; }
#scene-panel[data-scene="ec"] .scene-back .stamp-seal { border-color: rgb(255 255 255 / 0.24); color: #9c978d; }
#scene-panel[data-scene="ec"] .scene-back .stamp-seal.is-stamped {
  border-color: #34d399; color: #34d399; background: rgb(52 211 153 / 0.14);
}
#scene-panel[data-scene="ec"] .scene-back .ship-stamp-card {
  background: rgb(52 211 153 / 0.09); border-color: rgb(52 211 153 / 0.34);
}
.scene-head { display: flex; justify-content: space-between; align-items: center; gap: 7px; min-height: 41px; margin-bottom: 9px; }
.scene-head h4 { font-size: 1rem; font-weight: 640; }
.scene-head .technical { display: block; }
.scene-head svg { color: var(--muted); flex: 0 0 auto; }
.front-product { font-weight: 590; font-size: .91rem; }
.detail-rows { border-top: 1px solid var(--rule); margin-block: 6px 10px; }
.detail-rows > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--rule); font-size: .77rem; }
.detail-rows dt { color: var(--subtle); min-width: 0; }
.detail-rows dd { text-align: end; font-weight: 540; min-width: 0; overflow-wrap: anywhere; }
.demo-primary, .demo-action {
  border: 1px solid var(--rule-strong); background: #ffffff; border-radius: 6px;
  min-height: 32px; padding: 5px 9px; font-size: .76rem; font-weight: 590;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.demo-action[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.demo-primary { background: var(--ink); color: #ffffff; border-color: var(--ink); padding-inline: 13px; }
.demo-primary:disabled { background: var(--raised); border-color: var(--rule); color: var(--muted); }
.demo-action:active:not(:disabled), .demo-primary:active:not(:disabled) { transform: translateY(1px); }
.choice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.choice-row > .note { margin-right: 3px; }
.ec-actions > .note { margin: 6px 0 8px; }
.ec-pay-marks {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--rule);
}
.scene-status { display: flex; align-items: center; gap: 7px; color: var(--subtle); font-size: .78rem; margin-top: 10px; }
.scene-status.positive { color: var(--positive); }
.back-detail { margin-top: 15px; }
.back-detail h5 { font-size: .82rem; }
.scene-side .metrics { border-block: 1px solid var(--rule-strong); margin-bottom: 11px; }
.scene-side .metric dt { font-size: .7rem; }
.scene-side .metric dd { font-size: clamp(.94rem, 1.85vw, 1.65rem); }
[data-scene="warehouse"][data-stage="2"] .metric-received dd, [data-scene="warehouse"][data-stage="3"] .metric-received dd { color: var(--positive); }
[data-scene="warehouse"][data-stage="2"] .metric-received dd { animation: quantity-posted 450ms var(--ease) both; }
@keyframes quantity-posted {
  from { opacity: .25; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.data-table { width: 100%; border-collapse: collapse; font-size: .75rem; text-align: left; table-layout: fixed; }
.data-table th, .data-table td { text-align: inherit; vertical-align: middle; padding: 6px 6px; border-bottom: 1px solid var(--rule); font-weight: 530; overflow-wrap: break-word; }
.data-table thead { color: var(--muted); }
.data-table :is(th, td):first-child { padding-left: 0; width: 38%; }
.data-table :is(th, td):last-child { padding-right: 0; text-align: right; }
.data-table .selected-row { background: var(--raised); }
.data-table .selected-row td:first-child { box-shadow: inset 1px 0 var(--blue); padding-left: 6px; }
.demo-modules { display: flex; flex-wrap: wrap; gap: 7px 17px; align-items: baseline; padding-block: 13px 7px; color: var(--subtle); font-size: .76rem; }
.demo-modules > strong { color: var(--muted); font-weight: 550; }
.demo-note { margin-top: 3px; }
.demo-cursor { position: absolute; top: 0; left: 0; z-index: 6; pointer-events: none; opacity: 0; transition: transform 340ms var(--ease), opacity 140ms ease-out; filter: drop-shadow(0 3px 7px rgb(22 21 19 / 0.28)); }
.demo-cursor.shown { opacity: 1; }
.cursor-ring { fill: none; stroke: var(--blue); stroke-width: 1.5; opacity: .52; transform-box: fill-box; transform-origin: center; }
.cursor-arrow { fill: #ffffff; stroke: #161513; stroke-width: 1.5; stroke-linejoin: round; }
.cursor-click { fill: rgb(37 84 232 / 0.28); stroke: var(--blue); stroke-width: 1.75; opacity: 0; transform-box: fill-box; transform-origin: center; }

.is-demo-clicked {
  animation: demo-btn-click 360ms var(--ease) both;
}
@keyframes demo-btn-click {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgb(37 84 232 / 0.5); }
  38% { transform: scale(.95); box-shadow: 0 0 0 6px rgb(37 84 232 / 0.28); }
  100% { transform: scale(1); box-shadow: 0 0 0 11px rgb(37 84 232 / 0); }
}

.metric.metric-changed {
  position: relative;
  animation: metric-flash 620ms var(--ease) both;
}
.metric.metric-changed dd {
  transform-origin: left bottom;
  animation: metric-pop 620ms var(--ease) both;
}
@keyframes metric-pop {
  0% { opacity: .65; transform: translateY(4px); color: #60a5fa; }
  55% { opacity: 1; transform: translateY(0); color: #34d399; }
  100% { transform: translateY(0); }
}
@keyframes metric-flash {
  0% { background: rgb(37 84 232 / 0.26); }
  45% { background: rgb(52 211 153 / 0.16); }
  100% { background: transparent; }
}

.data-table tbody tr.row-changed {
  animation: row-nudge 650ms var(--ease) both;
}
.detail-rows > div.row-changed {
  animation: detail-nudge 650ms var(--ease) both;
}
.cell-changed {
  animation: cell-flash 650ms var(--ease) both;
}
@keyframes row-nudge {
  0% { transform: translateX(-8px); background: rgb(59 102 245 / 0.34); }
  45% { transform: translateX(2px); background: rgb(52 211 153 / 0.22); }
  100% { transform: translateX(0); }
}
@keyframes detail-nudge {
  0% { transform: translateX(-8px); background: rgb(59 102 245 / 0.22); }
  50% { transform: translateX(1px); background: rgb(52 211 153 / 0.14); }
  100% { transform: translateX(0); background: transparent; }
}
@keyframes cell-flash {
  0% { color: #93c5fd; text-shadow: 0 0 10px rgb(59 102 245 / 0.55); }
  45% { color: #34d399; }
  100% { text-shadow: none; }
}

.stock-changed,
.used-stock.is-changed {
  animation: stock-kick 680ms var(--ease) both;
}
.detail-rows > div.stock-changed dd {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 5px;
  animation: stock-badge-light 680ms var(--ease) both;
}
.used-stock.is-changed {
  color: #fbbf24;
  font-weight: 660;
}
@keyframes stock-kick {
  0% { transform: translateY(-6px) scale(1.06); background: rgb(251 191 36 / 0.28); }
  45% { transform: translateY(3px) scale(.97); background: rgb(52 211 153 / 0.22); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes stock-badge-light {
  0% { background: rgb(251 191 36 / 0.34); color: #fef3c7; transform: translateY(-5px) scale(1.06); }
  50% { background: rgb(52 211 153 / 0.24); color: #a7f3d0; transform: translateY(2px) scale(.98); }
  100% { background: transparent; transform: translateY(0) scale(1); }
}

.kitchen-ticket.ticket-changed {
  animation: ticket-pop 560ms var(--ease) both;
}
@keyframes ticket-pop {
  0% { transform: translateX(-8px); background: rgb(59 102 245 / 0.24); }
  55% { transform: translateX(2px); background: rgb(52 211 153 / 0.14); }
  100% { transform: translateX(0); background: transparent; }
}

.scene-status.status-changed,
#dining-progress.status-changed {
  animation: status-enter 420ms var(--ease) both;
}
@keyframes status-enter {
  from { opacity: .25; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.scanner-viewport {
  position: relative;
  background: #151413;
  border: 1px solid rgb(22 21 19 / 0.22);
  border-radius: 10px;
  padding: 10px 12px 8px;
  margin-bottom: 10px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 10px 24px -16px rgb(22 21 19 / 0.45);
  transition: transform 160ms var(--ease), border-color 180ms var(--ease);
}
.scanner-viewport:active { transform: scale(.992); }
.scan-verified-pill {
  position: absolute; top: 8px; right: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 100px;
  background: rgb(12 123 82 / 0.94); color: #ecfdf5;
  border: 1px solid rgb(52 211 153 / 0.45);
  font-size: .7rem; font-weight: 620;
  animation: badge-pop 280ms var(--ease) both;
}
@keyframes badge-pop {
  from { opacity: 0; transform: translateY(-4px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.barcode, .ring-art { display: block; width: min(100%, 360px); height: auto; margin: 2px auto; }
.cup-grid { fill: none; stroke: var(--rule); stroke-width: 1; }
.cup-ticks { fill: none; stroke: var(--tick); stroke-width: 1; }
.barcode text { fill: #b8b4ac; font: 10px var(--mono); letter-spacing: 2.2px; }
.barcode-fine, .barcode-thick, .barcode-corners, .laser, .laser-halo { fill: none; }
.barcode-fine { stroke: rgb(245 244 240 / 0.74); stroke-width: 1.3; }
.barcode-thick { stroke: #ffffff; stroke-width: 3.7; }
.barcode-corners { stroke: #858078; transition: stroke 200ms var(--ease); }
.laser { stroke: #38bdf8; stroke-width: 2; }
.laser-halo { stroke: #3b66f5; stroke-width: 14; opacity: .44; }
.scan-line { opacity: 0; }
[data-scan="running"] .scan-line { animation: barcode-scan 820ms linear both; }
[data-scan="complete"] .barcode-corners { stroke: #34d399; }
@keyframes barcode-scan {
  0% { transform: translateX(0); opacity: 0; }
  12%, 88% { opacity: 1; }
  100% { transform: translateX(251px); opacity: 0; }
}
.ring-stage {
  position: relative;
  background: radial-gradient(ellipse 75% 85% at 50% 42%, #27241e, #151413 78%);
  border: 1px solid rgb(22 21 19 / 0.2);
  border-radius: 10px;
  padding: 6px 10px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
}
.ring-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgb(245 225 164 / 0.2) 50%, transparent 68%);
  transform: translateX(-120%);
  pointer-events: none;
}
.ring-stage.is-active::after { animation: ring-shimmer 1.15s var(--ease) both; }
@keyframes ring-shimmer { to { transform: translateX(120%); } }
.ring-stage .cup-grid { stroke: rgb(255 255 255 / 0.075); }
.ring-stage .cup-ticks { stroke: rgb(255 255 255 / 0.22); }
.ring-outline, .ring-inner { fill: none; stroke: #d4ac5c; stroke-width: 1.75; }
.ring-inner { stroke: rgb(212 172 92 / 0.56); stroke-width: 1.2; }

.calendar { margin: 8px 0 12px; }
.calendar > strong { display: block; margin-bottom: 5px; font-size: .81rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 7px; width: min(100%, 357px); }
.calendar-grid .weekday { text-align: center; color: var(--muted); font-size: .69rem; }
.calendar-grid .demo-action { text-align: center; padding: 0 1px; min-height: 28px; }
.calendar-grid .demo-action:disabled:not([aria-pressed="true"]) { color: var(--muted); border-color: transparent; }
.database { display: grid; gap: 4px; color: var(--subtle); border-top: 1px solid var(--rule); padding: 8px 0; font-size: .76rem; }
.database-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.database strong { color: var(--ink); font-size: .8rem; }
.site-controls { margin-block: 12px 10px; }
.approval-chain { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 16px; }
.approval-chain span { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; color: var(--muted); }
.approval-chain span + span::before { content: ''; display: inline-block; width: 12px; height: 1px; background: var(--rule-strong); margin-right: 4px; }
.approval-chain .approved { color: var(--positive); }
[data-stage="2"] .approval-chain .approved:nth-child(n+2) svg { animation: approval 560ms var(--ease) both; }
[data-stage="2"] .approval-chain .approved:nth-child(3) svg { animation-delay: 120ms; }
@keyframes approval {
  from { opacity: .24; transform: scale(.84); }
  to { opacity: 1; transform: scale(1); }
}

.dining-spec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(112px, .44fr); gap: 12px; align-items: start; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 10px; }
.option-group { min-width: 0; padding: 3px 0 5px; border: 0; border-bottom: 1px solid var(--rule); }
.option-drink, .option-topping, .option-payment { grid-column: 1 / -1; }
.option-group legend { padding: 0; color: var(--subtle); font-size: .71rem; margin-bottom: 3px; }
.option-buttons { display: flex; flex-wrap: wrap; gap: 4px; }
.option-buttons .demo-action { min-height: 27px; font-size: .7rem; padding: 2px 7px; }
.dining-total { display: flex; justify-content: space-between; align-items: baseline; gap: 7px; padding: 7px 0; font-size: .74rem; color: var(--subtle); }
.dining-total > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: end; gap: 4px 8px; }
.dining-total strong { color: var(--ink); font-size: 1.18rem; white-space: nowrap; }
.dining-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dining-cta-row > .positive { font-size: .78rem; }
.dining-payment-note { margin-top: 6px; font-size: .71rem; }
.issue-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 8px; }
.issue { color: #b42318; font-size: .78rem; }
.cup { margin-top: 4px; padding: 10px 8px 6px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); }
.cup-figure { display: block; width: 100%; max-width: 118px; margin-inline: auto; }
.cup figcaption { text-align: center; font-size: .72rem; color: var(--subtle); margin-top: 4px; }
.cup-outline { fill: none; stroke: rgb(22 21 19 / 0.28); stroke-width: 1.35; }
.cup-lid { fill: #f2efe9; stroke: rgb(22 21 19 / 0.28); stroke-width: 1.1; }
.cup-stream { fill: none; opacity: 0; stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 22 10; }
.cup-fill { transition: transform 320ms var(--ease); }
.cup-cube { animation: cube-fade 300ms var(--ease) both; }
.cup-pearl { transform-box: fill-box; transform-origin: center; animation: pearl-pop 300ms var(--ease) both; }
[data-fill="empty"] .cup-fill { transform: translateY(96px); }
[data-fill="ready"] .cup-fill { transform: translateY(0); }
[data-fill="pour"] .cup-fill { animation: fill-cup 760ms var(--ease) both; }
[data-fill="pour"] .cup-stream { opacity: .88; animation: pour-flow 480ms linear infinite; }
@keyframes fill-cup { from { transform: translateY(52px); } to { transform: translateY(0); } }
@keyframes pour-flow { from { stroke-dashoffset: 32; } to { stroke-dashoffset: 0; } }
@keyframes cube-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pearl-pop { from { opacity: 0; transform: scale(.35); } to { opacity: 1; transform: scale(1); } }
.kitchen-ticket { min-height: 61px; border-block: 1px solid var(--rule); margin-bottom: 6px; padding-block: 6px; }
.kitchen-ticket strong { font-size: .86rem; }
.kitchen-ticket .positive { font-size: .75rem; margin-left: 7px; }
.kitchen-ticket button { margin-top: 5px; }
.low-stock td:last-child { color: #9a3412; font-weight: 600; }
.stock-notice { color: #9a3412; font-size: .69rem; display: block; }
.used-stock { color: var(--subtle); }
.channel-strip { display: flex; flex-wrap: wrap; gap: 5px 12px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: .72rem; color: var(--subtle); }
.finance { margin-top: 9px; }
.finance > h5 { font-size: .82rem; margin-bottom: 4px; }
.finance > .note + .note { margin-top: 4px; }

/* v7 Plan B Tactile Toy Widgets: Hold-to-Pour Glass, Tearable Slip, All-Ingredient Honest Tanks */
.dining-spec { grid-template-columns: minmax(0, 1fr) minmax(168px, .52fr); gap: 14px; }
.cup { display: flex; flex-direction: column; align-items: center; padding: 12px 10px 10px; }
.cup-figure { max-width: 162px; }
.cup-stream-live { fill: none; opacity: 0; stroke-width: 3.6; stroke-linecap: round; stroke-dasharray: 18 10; animation: pour-flow 420ms linear infinite; transition: opacity 140ms ease; }
.hold-pour-btn {
  margin-top: 8px; width: 100%; padding: 7px 8px; border-radius: 7px;
  border: 1px solid #161513; background: #161513; color: #ffffff;
  font-size: .7rem; font-weight: 640; white-space: nowrap; cursor: pointer; touch-action: none; user-select: none;
  transition: transform 120ms var(--ease), background 140ms var(--ease), border-color 140ms var(--ease);
}
.hold-pour-btn:hover { background: #2d2b27; }
.hold-pour-btn.is-holding, .hold-pour-btn:active { transform: scale(.97); background: #0c7b52; border-color: #0c7b52; }
.printer-unit {
  border: 1px solid var(--rule-strong); border-radius: 10px;
  background: #f7f6f2; padding: 0; margin-bottom: 12px; overflow: hidden;
}
.printer-slot-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 11px; background: #efede7; border-bottom: 1px solid var(--rule);
  font: 600 .67rem/1 var(--mono); color: var(--subtle); letter-spacing: .04em;
}
.printer-led { width: 7px; height: 7px; border-radius: 50%; background: #a8a39a; }
.printer-led.is-on { background: #0c7b52; box-shadow: 0 0 6px rgb(12 123 82 / 0.45); }
.printer-chute { padding: 10px 12px; min-height: 158px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.thermal-slip {
  background: #ffffff; color: #161513; border-radius: 6px; padding: 10px 12px;
  border: 1px solid var(--rule);
  box-shadow: 0 6px 18px -10px rgb(22 21 19 / 0.14);
  border-bottom: 3px dashed #c8c3b8;
  transition: transform 250ms var(--ease), opacity 250ms var(--ease);
}
.thermal-slip.is-tearing {
  transform-origin: left top;
  transform: translateY(28px) rotate(-5.5deg) scale(.97);
  opacity: 0;
  border-bottom-color: #0c7b52;
}
.thermal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.thermal-head strong { font-size: .88rem; color: #161513; }
.thermal-paid { padding: 2px 8px; border-radius: 100px; background: rgb(12 123 82 / 0.12); color: #0a6342; font-size: .68rem; font-weight: 650; }
.thermal-desc { font-size: .74rem; color: #4e4b44; margin-top: 5px; line-height: 1.45; }
.thermal-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 7px; border-top: 1px dashed #d6d2c8; }
.thermal-pickup { font: 600 .72rem var(--mono); color: #4e4b44; }
.thermal-done-row { display: inline-flex; align-items: center; gap: 8px; }
.thermal-done { color: #0c7b52 !important; font-weight: 640; font-size: .75rem; }
.tear-ticket-btn {
  padding: 3px 9px; border-radius: 100px; border: 1px dashed #8c867c; background: transparent;
  color: #4e4b44; font-size: .68rem; font-weight: 620; cursor: pointer;
}
.tear-ticket-btn:hover { background: #ece8df; color: #161513; }
.thermal-idle { padding: 6px 2px; }
.tank-section { margin-bottom: 12px; }
.tank-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; margin-bottom: 8px; }
.tank-section-head h5 { font-size: .76rem; color: var(--subtle); font-weight: 620; }
.tank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 7px; }
.tank-card {
  display: flex; align-items: flex-end; gap: 7px;
  padding: 8px; border-radius: 8px; background: #f7f6f2; border: 1px solid var(--rule);
}
.tank-card.is-low { border-color: rgb(217 119 6 / 0.55); background: rgb(255 251 235 / 0.9); }
.tank-vessel {
  width: 14px; height: 48px; border-radius: 4px; background: #e8e5dc;
  overflow: hidden; display: flex; align-items: flex-end; flex: 0 0 auto;
}
.tank-fill { position: relative; width: 100%; border-radius: 3px 3px 0 0; }
.tank-info { display: grid; gap: 2px; min-width: 0; }
.tank-name { font-size: .66rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tank-qty { font-size: .74rem; color: var(--ink); font-weight: 640; white-space: nowrap; }
.tank-delta { font: 600 .64rem/1 var(--mono); color: var(--muted); }
.tank-delta.is-changed { color: #b45309; }

.ring-customizer { display: grid; gap: 5px; margin-bottom: 6px; }
.engrave-input {
  width: 78px; min-height: 29px; padding: 3px 8px;
  border: 1px solid var(--rule-strong); border-radius: 6px;
  background: #ffffff; color: var(--ink);
  font: 600 .73rem/1 var(--mono); letter-spacing: .04em;
}
.engrave-input:disabled { background: var(--surface); color: var(--muted); }
.ec-visual-wrap { perspective: 900px; }
.ring-body { transition: transform 280ms var(--ease); }
.ring-engraving { fill: #231705; font: 700 8.2px var(--mono); letter-spacing: 1.5px; opacity: .96; }
.ring-laser-dot { fill: #fef08a; opacity: 0; }
.ring-stage.is-active .ring-laser-dot { animation: ring-engrave-scan 420ms var(--ease) both; }
@keyframes ring-engrave-scan {
  0% { opacity: 0; transform: translateX(0); }
  15%, 75% { opacity: .95; }
  100% { opacity: 0; transform: translateX(52px); }
}
.ship-stamp-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; margin-bottom: 10px; border-radius: 8px;
  background: rgb(52 211 153 / 0.09); border: 1px solid rgb(52 211 153 / 0.34);
}
.ship-stamp-meta { display: grid; gap: 2px; font-size: .78rem; }
.stamp-seal {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 10px; border-radius: 5px;
  border: 1.5px solid var(--rule-strong); color: var(--muted);
  font: 700 .7rem/1 var(--mono); letter-spacing: .08em;
}
.stamp-seal.is-stamped {
  border-color: var(--positive); color: #0a6342; background: rgb(12 123 82 / 0.1);
  transform: rotate(-4deg);
}

.scanner-reticle {
  position: absolute; left: var(--rx, 50%); top: var(--ry, 50%);
  width: 44px; height: 44px; transform: translate(-50%, -50%);
  border: 1.5px solid rgb(56 189 248 / 0.85); border-radius: 6px;
  box-shadow: 0 0 12px rgb(56 189 248 / 0.4);
  pointer-events: none; opacity: 0; transition: opacity 160ms ease;
}
.scanner-reticle.is-visible { opacity: 1; }
.wms-bars { display: grid; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border-radius: 8px; background: #f7f6f2; border: 1px solid var(--rule); }
.wms-bar-row { display: grid; gap: 4px; }
.wms-bar-head { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: var(--subtle); }
.wms-bar-head strong { font-family: var(--mono); color: var(--ink); }
.wms-bar-row.is-synced .wms-bar-head strong { color: var(--positive); }
.wms-bar-track { height: 8px; border-radius: 100px; background: #e8e5dc; overflow: hidden; }
.wms-bar-fill { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, #2554e8, #38bdf8); }
.wms-bar-row.is-synced .wms-bar-fill { background: linear-gradient(90deg, #2554e8, #0c7b52); }

.booking-visual { display: grid; gap: 8px; margin-bottom: 12px; }
.timeline-head { display: flex; justify-content: space-between; align-items: center; font-size: .73rem; color: var(--subtle); }
.booking-timeline {
  position: relative; height: 38px; border-radius: 8px;
  background: #f7f6f2; border: 1px solid var(--rule); overflow: hidden;
}
.timeline-block {
  position: absolute; top: 5px; height: 26px; border-radius: 5px;
  background: #e2dfd7; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 .67rem/1 var(--mono);
}
.timeline-block.is-new { background: #2554e8; color: #ffffff; box-shadow: 0 3px 10px -2px rgb(37 84 232 / 0.35); z-index: 2; }
.timeline-block.is-confirmed { background: #0c7b52; color: #ffffff; box-shadow: 0 3px 10px -2px rgb(12 123 82 / 0.35); }
.timeline-ticks {
  display: flex; justify-content: space-between;
  font: 500 .64rem/1 var(--mono); color: var(--muted);
  padding-inline: 2px;
}
.line-notice {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 8px;
  background: rgb(6 199 85 / 0.08); border: 1px solid rgb(6 199 85 / 0.32);
}
.line-badge { padding: 3px 7px; border-radius: 6px; background: #047835; color: #ffffff; font: 700 .66rem/1 var(--mono); }
.line-notice strong { display: block; font-size: .77rem; color: var(--ink); }
.line-notice p { font-size: .71rem; color: var(--subtle); margin-top: 2px; }

.org-visual { display: grid; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border-radius: 8px; background: #f7f6f2; border: 1px solid var(--rule); }
.org-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: .73rem; color: var(--subtle); }
.org-wires { display: block; width: 100%; height: 18px; margin-block: -2px -4px; }
.org-wire { fill: none; stroke: rgb(22 21 19 / 0.16); stroke-width: 1.5; transition: stroke 260ms var(--ease); }
.org-wire.is-lit { stroke: #2554e8; }
.seal-row { display: flex; gap: 6px; }
.org-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.org-node {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 7px 6px; border-radius: 6px; font-size: .73rem; font-weight: 590;
  border: 1px solid var(--rule-strong); background: #ffffff; color: var(--ink);
  transition: opacity 220ms var(--ease), border-color 220ms var(--ease);
}
.org-node.is-active { border-color: var(--blue); background: rgb(37 84 232 / 0.08); color: var(--blue); }
.org-node.is-locked { background: #f2f0ea; border-color: var(--rule); color: var(--muted); }

/* Luminous Japanese Editorial Scene Atmospheres (EC Jewelry remains the sole luxury dark-gold gallery) */
.scene-body {
  border-radius: 16px;
  background: #f5f3ed;
  transition: background 360ms var(--ease), border-color 360ms var(--ease), box-shadow 360ms var(--ease);
}
#scene-panel[data-scene="dining"] .scene-body {
  background: linear-gradient(155deg, #f6f2ea 0%, #eee7db 100%);
  border-color: rgb(22 21 19 / 0.14);
}
#scene-panel[data-scene="ec"] .scene-body {
  background:
    radial-gradient(ellipse 50% 56% at 20% 22%, rgb(216 177 98 / 0.22), transparent 70%),
    radial-gradient(ellipse 44% 50% at 84% 78%, rgb(216 177 98 / 0.10), transparent 72%),
    linear-gradient(145deg, #17140f 0%, #0e0d0a 60%, #090807 100%);
  border-color: rgb(216 177 98 / 0.28);
}
#scene-panel[data-scene="warehouse"] .scene-body {
  background: linear-gradient(155deg, #eff2f1 0%, #e4eae8 100%);
  border-color: rgb(22 21 19 / 0.14);
}
#scene-panel[data-scene="booking"] .scene-body {
  background: linear-gradient(155deg, #f9f6f0 0%, #efe9de 100%);
  border-color: rgb(22 21 19 / 0.14);
}
#scene-panel[data-scene="enterprise"] .scene-body {
  background: linear-gradient(155deg, #eff2f7 0%, #e4e9f2 100%);
  border-color: rgb(22 21 19 / 0.14);
}
#scene-panel[data-scene="ec"] .scene-progress {
  background: rgb(255 255 255 / 0.1);
}
#scene-panel[data-scene="ec"] .device-phone {
  border-color: #3a3834;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.22), 0 30px 64px -22px rgb(0 0 0 / 0.68);
}
#scene-panel[data-scene="ec"] .device-console {
  border-color: rgb(255 255 255 / 0.16);
  box-shadow: 0 30px 64px -22px rgb(0 0 0 / 0.65), inset 0 1px 0 rgb(255 255 255 / 0.1);
}
.spatial-stage {
  display: grid;
  grid-template-columns: minmax(308px, 344px) minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 28px);
  align-items: center;
  padding: clamp(16px, 2.2vw, 26px);
  background: transparent;
}
.device-phone {
  position: relative;
  background: #ffffff;
  color: #161513;
  border: 5px solid #262522;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 26px 56px -22px rgb(22 21 19 / 0.32), 0 0 0 1px rgb(255 255 255 / 0.25) inset;
}
.device-phone.is-field {
  border-radius: 20px;
  border-color: #383632;
}
.device-phone .iphone-statusbar {
  background: #faf9f6;
  border-bottom: 1px solid var(--rule);
  padding: 8px 14px 6px;
}
.device-phone .iphone-role-tag {
  font-family: inherit;
  font-size: .64rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.device-phone-screen {
  padding: 10px 13px 10px;
}
.device-phone .scene-head { min-height: 30px; margin-bottom: 6px; }
.device-phone .scene-head h4 { font-size: .9rem; }
.device-phone .options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 2px 8px;
}
.device-phone .option-group { padding: 2px 0 3px; }
.device-phone .option-group legend { font-size: .67rem; margin-bottom: 2px; }
.device-phone .option-buttons { gap: 3px; }
.device-phone .option-buttons .demo-action { min-height: 24px; font-size: .67rem; padding: 1px 6px; }
.device-phone .dining-total { padding: 4px 0; }
.device-phone .dining-payment-note { margin-top: 4px; font-size: .65rem; line-height: 1.35; }

.pass-qr-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--rule);
  margin-top: 2px;
}
.pass-qr-svg {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  color: #161513;
}
.pass-qr-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: .73rem;
  color: var(--subtle);
}
.pass-qr-meta strong { color: #161513; font-size: .8rem; font-family: var(--mono); }
.pass-qr-price { color: #161513; font-weight: 660; font-size: .86rem; margin-top: 2px; }

.dynamic-island-banner {
  margin: 8px 12px 2px;
  padding: 8px 11px;
  border-radius: 16px;
  background: #161513;
  color: #f5f4f0;
  border: 1px solid rgb(6 199 85 / 0.45);
  box-shadow: 0 12px 28px -10px rgb(22 21 19 / 0.45);
  display: flex;
  align-items: center;
  gap: 9px;
}
.island-banner-text { display: grid; gap: 1px; min-width: 0; }
.island-banner-text strong { font-size: .72rem; color: #ffffff; }
.island-banner-text span { font: 540 .65rem/1.3 var(--mono); color: #a7f3d0; }

.customer-live-pass {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: #f7f6f2;
  border: 1px solid var(--rule-strong);
}
.customer-live-pass.is-ready {
  background: rgb(12 123 82 / 0.06);
  border-color: rgb(12 123 82 / 0.32);
}
.pass-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pass-eyebrow { font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.pass-order-id { font: 700 1.25rem/1 var(--mono); color: #161513; }
.pass-drink-name { font-size: .96rem; font-weight: 640; color: #161513; }
.pass-drink-meta { font-size: .72rem; color: var(--subtle); line-height: 1.45; }
.pass-progress-track {
  height: 7px;
  border-radius: 999px;
  background: rgb(22 21 19 / 0.1);
  overflow: hidden;
}
.pass-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2554e8, #0c7b52);
}
.customer-live-pass.is-ready .pass-progress-fill { background: #0c7b52; }
.pass-live-status { font-size: .78rem; font-weight: 620; color: #2554e8; }
.customer-live-pass.is-ready .pass-live-status { color: #0c7b52; }
.pass-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; border-top: 1px dashed var(--rule-strong);
  font-size: .76rem; color: var(--subtle);
}
.pass-foot strong { font-size: .95rem; color: #161513; }
.pass-actions { margin-top: 2px; }
.pass-actions .demo-primary { width: 100%; }

.device-console {
  border: 1px solid var(--rule-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 52px -28px rgb(22 21 19 / 0.2), 0 1px 2px rgb(22 21 19 / 0.04);
}
.device-console-screen {
  padding: 16px clamp(16px, 2vw, 24px) 18px;
}
.console-role-label { color: var(--ink); font-weight: 620; }
.console-stage-chip {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 100px;
  background: rgb(37 84 232 / 0.08);
  border: 1px solid rgb(37 84 232 / 0.24);
  color: var(--blue);
  font-size: .68rem;
  font-weight: 620;
}
.console-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgb(37 84 232 / 0.06);
  border: 1px solid rgb(37 84 232 / 0.2);
}
.console-action-label { font-size: .73rem; font-weight: 600; color: #1d3fa8; }

.buyer-track-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px; border-radius: 9px;
  background: rgb(37 84 232 / 0.08);
  border: 1px solid rgb(37 84 232 / 0.22);
  color: #161513; font-size: .74rem; font-weight: 580;
}
.buyer-track-pill .sync-dot { background: var(--blue); }
.buyer-track-pill.is-done {
  background: rgb(12 123 82 / 0.09);
  border-color: rgb(12 123 82 / 0.28);
  color: #0c7b52;
}
.buyer-track-pill.is-done .sync-dot { background: #0c7b52; }
.ec-buyer-tracker { display: grid; gap: 8px; }

.console-dining-grid {
  display: grid;
  grid-template-columns: minmax(228px, .88fr) minmax(0, 1.12fr);
  gap: 16px;
  align-items: start;
}
.console-dining-grid .tank-grid[data-count="5"] {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.console-dining-grid .tank-grid[data-count="5"] > .tank-card:nth-child(-n+3) {
  grid-column: span 2;
}
.console-dining-grid .tank-grid[data-count="5"] > .tank-card:nth-child(n+4) {
  grid-column: span 3;
}
.console-dining-grid .tank-grid[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.console-dining-grid .tank-grid[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.barista-cup-station {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: #f7f6f2;
  padding: 10px 12px 12px;
}
.barista-station-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 6px;
}
.barista-station-head h5 { font-size: .75rem; color: var(--ink); font-weight: 620; }
.scene-back .cup {
  margin-top: 2px;
  padding: 8px 10px 8px;
  background: #ffffff;
  border-color: var(--rule);
}
.scene-back .cup-figure { max-width: 122px; }
.scene-back .printer-chute { min-height: 108px; padding: 8px 10px; }
.scene-back .printer-unit { margin-bottom: 10px; }
.scene-back .cup-outline { stroke: rgb(22 21 19 / 0.34); }
.scene-back .cup-lid { fill: #f2efe9; stroke: rgb(22 21 19 / 0.28); }
.scene-back .cup figcaption { color: var(--subtle); }
.scene-back .hold-pour-btn {
  background: #2554e8;
  border-color: #2554e8;
  color: #ffffff;
  -webkit-user-select: none;
  user-select: none;
}
.scene-back .hold-pour-btn:hover { background: #1d46cc; }
.scene-back .hold-pour-btn.is-holding,
.scene-back .hold-pour-btn:active { background: #0c7b52; border-color: #0c7b52; }
.barista-ready-btn {
  background: #ffffff !important;
  color: #161513 !important;
  border-color: var(--rule-strong) !important;
  font-size: .7rem;
}

.ring-stage {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring-stage.has-webgl-3d { padding: 0; }
.ring-stage.has-webgl-3d .ring-art { display: none; }
.ring-3d-canvas {
  display: block;
  width: 100%;
  height: 142px;
  cursor: grab;
  touch-action: none;
}
.ring-3d-canvas:active { cursor: grabbing; }
.ring-engrave-badge {
  position: absolute;
  top: 8px;
  left: 10px;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgb(21 20 19 / 0.72);
  border: 1px solid rgb(216 177 98 / 0.48);
  color: #f7e5ad;
  font: 640 .66rem/1.3 var(--mono);
  letter-spacing: .08em;
  pointer-events: none;
}
.ring-drag-hint {
  position: absolute;
  right: 9px;
  bottom: 7px;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgb(21 20 19 / 0.74);
  border: 1px solid rgb(255 255 255 / 0.14);
  color: #d5d1c8;
  font-size: .62rem;
  pointer-events: none;
}

.spatial-stage[data-focus-side="front"] .device-console .device-console-screen,
.spatial-stage[data-focus-side="back"] .device-phone .device-phone-screen {
  opacity: .92;
  transition: opacity 220ms var(--ease);
}
.spatial-stage[data-focus-side="front"] .device-console:hover .device-console-screen,
.spatial-stage[data-focus-side="back"] .device-phone:hover .device-phone-screen {
  opacity: 1;
}

@media (max-width: 1120px) {
  .console-dining-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 960px) {
  .spatial-stage { grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
  .device-phone { max-width: 400px; width: 100%; margin-inline: auto; }
}
@media (max-width: 670px) {
  .spatial-stage { padding: 16px 12px 12px; gap: 14px; }
  .device-phone { max-width: 100%; border-width: 3px; border-radius: 24px; }
  .device-console { border-radius: 14px; }
  .device-console-screen { padding: 12px 12px 14px; }
  .console-dining-grid .tank-grid[data-count="5"],
  .console-dining-grid .tank-grid[data-count="4"],
  .console-dining-grid .tank-grid[data-count="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .console-dining-grid .tank-grid[data-count="5"] > .tank-card:nth-child(-n+3),
  .console-dining-grid .tank-grid[data-count="5"] > .tank-card:nth-child(n+4) {
    grid-column: auto;
  }
  .console-dining-grid .tank-grid[data-count="5"] > .tank-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .scene-tab:hover, .demo-action:hover:not(:disabled) { background: var(--surface); color: var(--ink); }
  .demo-action[aria-pressed="true"]:hover:not(:disabled) { background: #2d2b27; color: #ffffff; }
  .demo-primary:hover:not(:disabled) { background: #2d2b27; }
  .scene-back .demo-action:hover:not(:disabled) { background: var(--surface); color: var(--ink); }
  .scene-back .demo-action[aria-pressed="true"]:hover:not(:disabled) { background: #2d2b27; color: #ffffff; }
  .scene-back .demo-primary:hover:not(:disabled) { background: #1d46cc; }
  #scene-panel[data-scene="ec"] .scene-back .demo-action:hover:not(:disabled) { background: #2b2926; color: #ffffff; }
  #scene-panel[data-scene="ec"] .scene-back .demo-action[aria-pressed="true"]:hover:not(:disabled) { background: #ffffff; color: #151413; }
  .scanner-viewport:hover { border-color: rgb(59 102 245 / 0.65); }
}
@media (max-width: 1024px) {
  .dining-spec { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 830px) {
  .scene-tab { font-size: .84rem; }
  .scene-side .metric dd { font-size: clamp(.9rem, 2.4vw, 1.48rem); }
}
@media (max-width: 670px) {
  .scene-split { grid-template-columns: minmax(0, 1fr); }
  .sync-bridge {
    padding: 7px 14px;
    background: #1c1b19;
    border-block: 1px solid rgb(255 255 255 / 0.1);
    justify-content: flex-start;
  }
  .sync-pill svg { transform: rotate(90deg); }
  .scene-back { border-left: none; }
  .scene-back .instrument-bar { justify-content: flex-start; }
  .scene-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .scene-tab { grid-column: span 2; flex-direction: row; gap: 5px; font-size: .76rem; min-height: 42px; padding: 6px 4px; }
  .scene-tab:nth-child(4), .scene-tab:nth-child(5) { grid-column: span 3; border-top: 1px solid var(--rule); }
  .scene-tab:nth-child(4) { border-left: 0; }
  .scene-tab svg { width: 15px; height: 15px; }
  .scene-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-steps li { padding: 7px 10px; font-size: .72rem; border-top: 1px solid var(--rule); }
  .scene-steps li:nth-child(1), .scene-steps li:nth-child(2) { border-top: 0; }
  .scene-steps li:nth-child(odd) { border-left: 0; }
  .scene-steps li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .scene-steps li .step-num { font-size: .65rem; padding: 1px 5px; }
  .demo-modules { gap: 4px 10px; }
  .scene-side .metrics { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-side .metric:nth-child(2) { border-right: 0; }
  .scene-side .metric:nth-child(3) { padding-left: 0; border-top: 1px solid var(--rule); }
  .scene-side .metric dd { font-size: clamp(.95rem, 4vw, 1.35rem); }
  .dining-spec { grid-template-columns: 1fr; gap: 10px; }
  .options { grid-template-columns: 1fr; }
  .tank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tank-grid > .tank-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .org-map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .org-node { font-size: .67rem; padding: 6px 4px; }
  .demo-cursor { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-steps li.step-entered,
  .scene-steps li.step-entered::after,
  .scene-progress-fill.is-advancing,
  .sync-bridge.is-pulse .sync-pill,
  .sync-bridge.is-pulse .sync-pill::after,
  .metric.metric-changed,
  .metric.metric-changed dd,
  .data-table tbody tr.row-changed,
  .detail-rows > div.row-changed,
  .cell-changed,
  .stock-changed,
  .used-stock.is-changed,
  .detail-rows > div.stock-changed dd,
  .kitchen-ticket.ticket-changed,
  .scene-status.status-changed,
  #dining-progress.status-changed,
  .is-demo-clicked {
    animation: none !important;
  }
  .scene-split:not([data-focus-side]) .scene-side {
    opacity: 1;
    filter: none;
  }
}
