  .kitchen-window { min-width: 0; position: relative; color: #FFFFFF; padding: 8px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--ink); font: 400 16px/1.45 var(--font); --speaker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3a4.5 4.5 0 0 0-2.5-4v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E"); }
  .window-top { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 12px 8px; }
  .window-top h2 { margin: 0; font: 700 16px/1.2 var(--font); letter-spacing: 0; }
  .window-dots { display: none; }
  .scene-select { display: flex; gap: 0; padding: 0 8px 12px; }
  .scene-select button { flex: 1; min-width: 0; min-height: 52px; padding: 9px 10px; background: transparent; color: #FFFFFF; border: 1px solid #A695AA; border-radius: 0; font-size: 15px; font-weight: 700; cursor: pointer; }
  .scene-select button + button { border-left: 0; }
  .scene-select button[aria-pressed="true"] { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
  .kitchen-window [hidden] { display: none !important; }
  .kitchen-window :focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
  .scene-panel { padding: 0 8px 10px; }
  .scene-workflow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 13px; }
  .scene-workflow li { position: relative; min-width: 0; overflow-wrap: anywhere; border-top: 3px solid #ffffff66; padding-top: 8px; color: #D6CBDC; display: grid; }
  /* Each stage reserves the height of its own bold label, so marking the current stage never moves the window. */
  .scene-workflow li > span, .scene-workflow li::after { grid-area: 1 / 1; }
  .scene-workflow li::after { content: attr(data-label); font-weight: 700; visibility: hidden; }
  .scene-workflow li::before { content: ""; position: absolute; inset: -3px 0 auto; height: 3px; background: var(--pink); transform: scaleX(0); transform-origin: left; }
  .scene-workflow [aria-current="true"] { border-color: var(--pink); color: #FFFFFF; font-weight: 700; }
  .call-surface { background: #1B0F22; border: 1px solid #ffffff18; border-radius: 0; padding: 16px; margin-bottom: 14px; height: 205px; overflow-y: auto; }
  .call-surface h3 { display: flex; align-items: center; gap: 10px; font: 700 16px/1.4 var(--font); letter-spacing: 0; color: #FFFFFF; margin-bottom: 8px; } /* who speaks is said by the word, not by a colour */
  .call-surface p { line-height: 1.5; }
  .kitchen-ticket { background: #fff; color: var(--ink); border-radius: 0; padding: 20px; }
  .ticket-heading { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
  .ticket-heading h3 { font: 700 22px/1.2 var(--font); letter-spacing: -.01em; }
  .ticket-total { text-align: right; flex-shrink: 0; min-width: 72px; } .ticket-total strong { display: block; font-size: 32px; font-variant-numeric: tabular-nums; line-height: 1.2; letter-spacing: -.02em; }
  .ticket-details { margin-top: 10px; font-size: 16px; }
  .ticket-items { white-space: pre-line; min-height: 102px; border-block: 1px solid var(--line); margin-top: 16px; padding-block: 14px; font-weight: 700; font-size: 16px; }
  .ticket-fee { margin-top: 10px; font-size: 16px; }
  .ticket-fee:empty { display: none; }
  .ticket-status { min-height: 68px; margin-top: 14px; border-left: 4px solid var(--teal); padding: 10px 12px; background: #E4F0E9; font-weight: 700; color: #0F625D; }
  [data-status="pending"] .ticket-status { border-color: #C2461B; background: #FFF2DF; color: var(--ink); }
  .scene-controls { padding-top: 16px; }
  .scene-play-row { display: flex; align-items: center; gap: 12px; }
  .scene-duration { flex-shrink: 0; min-width: 42px; font-variant-numeric: tabular-nums; text-align: right; }
  .scene-play { width: 100%; min-height: 54px; padding: 12px; background: #FFFFFF; color: var(--ink); border: 0; border-radius: var(--r); font-weight: 700; cursor: pointer; }
  .scene-play[data-state="ready"]::before, .scene-play[data-state="ended"]::before { content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; background: currentColor; -webkit-mask: var(--speaker) center / contain no-repeat; mask: var(--speaker) center / contain no-repeat; }
  .scene-controls audio { display: block; width: 100%; height: 44px; margin-top: 12px; }
  .playback-status { min-height: 2.9em; margin-top: 10px; font-size: 15px; color: #E6DCEB; }
  .kitchen-window details.scene-transcript { margin-top: 10px; border-top: 1px solid #ffffff66; border-bottom: 0; }
  .scene-transcript summary { cursor: pointer; padding-block: 12px; font-size: 16px; font-weight: 700; }
  .scene-transcript p { white-space: pre-line; padding-block: 6px 14px; font-size: 16px; margin-top: 0; max-width: none; }
  @media (max-width: 640px) { .kitchen-window { --label-row-closes: 1; } .window-top, .scene-select { padding-inline: 4px; } .kitchen-ticket { padding: 18px; } .scene-panel { padding-inline: 4px; } .call-surface { height: 165px; } }
  @media (min-width: 641px) { .window-top { min-height: 68px; } }
  .sound-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 5px 14px; border: 1px solid #ffffff80; border-radius: var(--r); background: transparent; color: #FFFFFF; font: 700 13px/1.2 var(--font); cursor: pointer; }
  .sound-chip:hover { background: #ffffff26; }
  .preview-track { height: 44px; margin-top: 12px; display: flex; align-items: center; gap: 10px; }
  .preview-toggle { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff80; border-radius: var(--r); background: transparent; color: #FFFFFF; cursor: pointer; }
  .preview-toggle:hover { background: #ffffff26; }
  .preview-toggle::before { content: ""; box-sizing: border-box; width: 12px; height: 14px; border: solid currentColor; border-width: 0 4px; }
  .preview-toggle[data-state="paused"]::before { margin-left: 3px; border-width: 0 0 0 12px; clip-path: polygon(0 0, 100% 50%, 0 100%); } /* solid clipped shape: forced colors fill transparent borders */
  .preview-track i { display: block; flex: 1; min-width: 0; height: 4px; background: linear-gradient(var(--pink), var(--pink)) left / calc(var(--progress, 0) * 100%) 100% no-repeat, #ffffff30; }
  .kitchen-window[data-enhanced] .scene-panel:not([data-engaged]) audio { display: none; }
  .scene-panel[data-engaged] .preview-track { display: none; }
  .kitchen-window[data-enhanced] .scene-panel:not([data-engaged]) :is(.call-surface, .kitchen-ticket) { cursor: pointer; }
  .voice-bars { display: none; align-items: center; gap: 3px; height: 14px; }
  .voice-bars i { display: block; width: 3px; height: 100%; background: currentColor; transform: scaleY(.3); }
  @media (prefers-reduced-motion: no-preference) {
    [data-live] .voice-bars { display: inline-flex; }
    [data-live] .voice-bars i { animation: voice-bar .9s ease-in-out infinite; } [data-live] .voice-bars i:nth-child(2) { animation-delay: -.3s; } [data-live] .voice-bars i:nth-child(3) { animation-delay: -.6s; }
    .call-surface p.bump { animation: line-in .38s ease-out both; }
    .ticket-total strong.bump { animation: value-pop .5s ease-out both; } .ticket-items.bump { animation: items-flash .9s ease-out both; }
    .ticket-status.bump { animation: status-in .45s ease-out both; }
    [data-live] [data-status="pending"] .ticket-status { animation: pending-pulse 1.1s ease-in-out infinite alternate; }
    [data-live] .scene-workflow [aria-current="true"] { border-color: #ffffff66; }
    [data-live] .scene-workflow [aria-current="true"]::before { animation: stage-fill .5s ease-out both; }
    .kitchen-ticket { transition: box-shadow .5s ease-out; } [data-live] .kitchen-ticket[data-status="accepted"] { box-shadow: 0 0 0 3px #74B9A1; }
  }
  @keyframes voice-bar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
  @keyframes line-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes value-pop { 0% { transform: scale(1); } 35% { transform: scale(1.12); color: #C2461B; } 100% { transform: scale(1); } }
  @keyframes items-flash { from { background: #FFE9C7; } to { background: transparent; } }
  @keyframes status-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
  @keyframes pending-pulse { from { background: #FFF2DF; } to { background: #FFD9A8; } }
  @keyframes stage-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @media (min-width: 700px) { .scene-panel { display: grid; grid-template-columns: .95fr 1.05fr; gap: 14px; align-items: start; } .scene-workflow, .scene-controls, .scene-transcript { grid-column: 1 / -1; } .scene-workflow { margin-bottom: 0; } .call-surface { height: auto; align-self: stretch; margin: 0; } .kitchen-ticket { min-height: 328px; padding: 16px; } .ticket-heading { flex-wrap: wrap; } .ticket-total { margin-left: auto; } .scene-controls { padding-top: 0; } .scene-transcript { margin-top: 0; } }

  /* The statement under the hero. */
  /* Hairlines run from the left edge of the text to its right edge, not into the page margins. */
/* Keep the existing audio controller and ticket states on the shared public design. */
.kitchen-window{--font:var(--body);--r:8px;--pink:var(--teal);--label-row-closes:0;padding:0 16px 12px;background:var(--paper);color:var(--ink);box-shadow:var(--panel-shadow);border:1px solid var(--line);border-radius:16px}
.window-top{background:var(--soft);border-bottom:1px solid var(--line);margin:0 -16px 4px;padding:13px 24px;min-height:68px}
.window-top h2{font:700 clamp(21px,2.45vw,27px)/1.1 var(--body);color:var(--ink);letter-spacing:-.02em}
.window-top .demo-label{margin-top:4px}
.sound-chip,.preview-toggle{color:var(--play-ink);border-color:var(--line);background:var(--play)}
.sound-chip:hover,.preview-toggle:hover{background:#D9E7F5}
.scene-select button{border-color:var(--line);background:var(--paper);color:var(--ink);border-radius:8px}
.scene-select [aria-pressed="true"]{background:#DAE7F5;color:#213C5A;border-color:#8DA4BF}
.scene-panel{color:var(--ink);min-width:0}
.scene-workflow li{color:var(--muted);border-color:var(--line)}
.scene-workflow [aria-current="true"]{color:var(--ink);border-color:var(--teal)}
.call-surface{background:var(--play);color:var(--ink);border:0;border-radius:8px}
.call-surface h3{color:var(--play-ink)}
.kitchen-ticket{background:var(--soft);border-radius:8px}
.ticket-status{border:0;border-radius:6px;background:var(--review);color:var(--review-ink)}
[data-status="pending"] .ticket-status{background:var(--pending);color:var(--pending-ink)}
.scene-play{background:var(--play);color:var(--play-ink)}
.playback-status,.scene-duration{color:var(--muted)}
.preview-track i{background:linear-gradient(var(--teal),var(--teal)) left / calc(var(--progress,0)*100%) 100% no-repeat,var(--line)}
.kitchen-window details.scene-transcript{border-top-color:var(--line)}
@media(min-width:700px){
  .scene-panel:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 18px;align-items:start}
  .scene-workflow,.scene-controls,.scene-transcript{grid-column:1/-1}
  .scene-panel .call-surface{height:200px;margin-bottom:0}
}
@media(max-width:640px){.kitchen-window{--label-row-closes:1;padding-inline:12px;border-radius:12px;box-shadow:0 8px 20px rgba(36,58,88,.18)}.window-top{margin-inline:-12px;padding-inline:16px}}
.kitchen-window{overflow:hidden}
.scene-select{gap:8px}
.scene-select button + button{border-left:1px solid var(--line)}
.scene-select button[aria-pressed="true"]{background:#DAE7F5;color:#213C5A;border-color:#8DA4BF}
.scene-controls{padding-top:0}
.scene-play{min-height:46px}
@media(max-width:640px){.window-top{gap:8px}.scene-workflow{margin-bottom:6px}.call-surface{margin-bottom:8px}.kitchen-ticket{padding:12px}}
