/* At-the-machine demo. Kept separate from the product tour's chat styles. */
.operator-section {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 4.5vw, 64px);
  background: var(--paper-2);
}

.operator-section__inner { max-width: 1240px; margin: 0 auto; }
.operator-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
.operator-section__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.operator-section__eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.operator-section__header h2 {
  margin: 0;
  font-size: clamp(40px, 5.1vw, 68px);
  letter-spacing: -0.055em;
  line-height: 1.04;
  font-weight: 500;
}
.operator-section__header h2 > span { color: var(--ink-3); }
.operator-section__intro {
  max-width: 355px;
  margin: 0 0 5px;
  font-size: 16px;
  line-height: 1.7;
}

.operator-demo {
  --operator-accent: #bce1cb;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 32px;
  padding: 40px 40px 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  background: #192320;
  color: #fff;
}
.operator-demo__image,
.operator-demo__shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.operator-demo__image { object-fit: cover; object-position: 40% 12%; }
.operator-demo__shade {
  background: linear-gradient(180deg, rgba(6, 15, 12, .15) 28%, rgba(6, 15, 12, .48) 60%, #101a17 92%), linear-gradient(90deg, rgba(6, 15, 12, .2), transparent 42%, rgba(6, 15, 12, .35));
}
.operator-demo__scene { min-width: 0; }

.operator-panel {
  min-width: 0;
  align-self: start;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 14px;
  background: #fafbf9;
  color: #18231d;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
  overflow: hidden;
}
.operator-panel__header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 24px; }
.operator-panel__identity { display: flex; align-items: center; gap: 10px; }
.operator-panel__identity strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -.04em; }
.operator-panel__mark { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px; background: #000; color: #f5f5f5; }
.operator-panel__mark svg { width: 24px; height: 24px; }
.operator-panel__tabs { display: flex; gap: 18px; padding: 0 24px; border-bottom: 1px solid #e4e8e3; }
.operator-panel__tabs button {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 10px 0 12px;
  margin-bottom: -1px;
  background: transparent;
  color: #6b726d;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.operator-panel__tabs button[aria-pressed="true"] { color: #16271c; border-color: #355e43; }
.operator-panel__tabs button:hover { color: #16271c; }
.operator-transcript { position: relative; display: grid; gap: 22px; padding: 24px; }
.operator-question { border-left: 2px solid #adc4b4; padding-left: 13px; }
.operator-question-label { display: block; color: #747c75; font-size: 11px; line-height: 1.5; margin-bottom: 6px; }
.operator-question-text { margin: 0; color: #1c2c23; font-size: 22px; line-height: 1.4; letter-spacing: -.025em; font-weight: 500; min-height: 62px; }
.operator-question-pending { visibility: hidden; }
.operator-search { position: absolute; top: 128px; left: 24px; display: flex; align-items: center; gap: 10px; font-size: 11px; color: #68786d; visibility: hidden; opacity: 0; }
.operator-search-dots { display: flex; gap: 3px; }
.operator-search-dots > * { width: 4px; height: 4px; background: #52725d; border-radius: 50%; }
.operator-answer-title { margin: 0; color: #1e2f24; font-size: 16px; font-weight: 500; letter-spacing: -.025em; line-height: 1.5; }
.operator-answer-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.operator-answer-item { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 10px 14px; border: 1px solid #e0e7df; border-radius: 8px; background: #f3f6f1; color: #4d5a51; font-size: 12px; line-height: 1.5; text-align: center; }
.operator-item-icon { flex: 0 0 32px; width: 32px; height: 32px; color: #52745b; }
/* Reserve the longest label's line count so switching examples keeps the card height. */
.operator-item-label { min-height: 3em; max-width: 100%; overflow-wrap: anywhere; }
.operator-source { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid #dce5dc; border-radius: 8px; background: #f0f4ef; }
details.operator-source { display: block; }
.operator-source-summary { display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; }
.operator-source-summary::marker { content: ""; }
.operator-source-summary::-webkit-details-marker { display: none; }
.operator-source-summary:focus-visible { outline: 2px solid #538e64; outline-offset: 5px; border-radius: 3px; }
.operator-source-copy { min-width: 0; }
.operator-source-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 36px; border: 1px solid #d1dfd1; background: #fff; border-radius: 4px; color: #57745d; }
.operator-source-icon svg { width: 20px; height: 20px; }
.operator-source-label { display: block; margin-bottom: 2px; font-size: 9px; line-height: 1.4; color: #667b69; }
.operator-source-title { margin: 0; color: #314e37; font-size: 12px; line-height: 1.6; font-weight: 500; overflow-wrap: anywhere; }
.operator-source-detail { margin: 1px 0 0; color: #637166; font-size: 10px; line-height: 1.5; }
details.operator-source > .operator-source-detail { margin: 8px 0 0 42px; overflow-wrap: anywhere; }
.operator-source-toggle { flex: 0 0 7px; width: 7px; height: 7px; margin: -4px 3px 0 auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; color: #57745d; transform: rotate(45deg); transition: transform .2s; }
.operator-source[open] .operator-source-toggle { margin-top: 4px; transform: rotate(225deg); }
.operator-source-check { margin-left: auto; align-self: flex-start; color: #4b7453; font-size: 12px; }
.operator-replay { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #536359; cursor: pointer; }
.operator-replay svg { width: 18px; height: 18px; }
.operator-replay:hover { color: #18231d; }

.operator-demo__bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 21px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.operator-steps { display: flex; align-items: center; gap: clamp(16px, 3vw, 46px); padding: 0; margin: 0; list-style: none; }
.operator-steps li { display: flex; align-items: center; gap: 9px; color: #9dacA3; font-size: 11px; line-height: 1.5; transition: color .3s; }
.operator-steps__number { font-size: 9px; font-variant-numeric: tabular-nums; color: #9dada3; border: 1px solid #58665e; border-radius: 50%; display: grid; place-items: center; width: 25px; height: 25px; transition: background .3s, border-color .3s, color .3s; }
.operator-steps .is-active { color: #fff; }
.operator-steps .is-active .operator-steps__number { background: var(--operator-accent); border-color: var(--operator-accent); color: #163622; }
.operator-steps .is-complete { color: #dfE9e2; }
.operator-steps .is-complete .operator-steps__number { border-color: #9db6a6; color: #c6dfcf; }
.operator-controls { display: flex; align-items: center; gap: 5px; }
.operator-controls__count { padding: 0 8px; color: #c1cfc6; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .04em; white-space: nowrap; }
.operator-control { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); color: #ecf2ee; background: transparent; cursor: pointer; transition: background .2s, border-color .2s; }
.operator-control svg { width: 17px; height: 17px; }
.operator-control--motion { border-color: transparent; }
.operator-control:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.operator-control:disabled { opacity: .4; cursor: default; }
.operator-control .operator-play-icon { display: none; }
.operator-control[aria-pressed="true"] .operator-play-icon { display: block; }
.operator-control[aria-pressed="true"] .operator-pause-icon { display: none; }
.operator-demo button:focus-visible { outline: 2px solid #538e64; outline-offset: 4px; }
.operator-controls button:focus-visible { outline-color: #bce1cb; }
.operator-section__footnote { display: flex; justify-content: flex-end; align-items: flex-start; padding-top: 20px; }
.operator-section__footnote a { flex-shrink: 0; font-size: 11px; font-weight: 500; text-decoration: none; }
.operator-section__footnote a > span { display: inline-block; margin-left: 9px; transition: transform .2s; }
.operator-section__footnote a:hover > span { transform: translate(2px, -2px); }
.operator-sr-only,
.operator-question-accessible { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.operator-demo [hidden] { display: none; }

/* Content stays in layout during each beat, so the scene never jumps. */
.operator-demo.is-enhanced .operator-question,
.operator-demo.is-enhanced .operator-answer,
.operator-demo.is-enhanced .operator-source { transition: opacity .4s ease, transform .4s cubic-bezier(.2, .65, .3, 1), visibility .4s; }
[data-demo-phase="ready"] .is-enhanced .operator-question,
[data-demo-phase="ready"] .is-enhanced .operator-answer,
[data-demo-phase="question"] .is-enhanced .operator-answer,
[data-demo-phase="searching"] .is-enhanced .operator-answer,
[data-demo-phase="ready"] .is-enhanced .operator-source,
[data-demo-phase="question"] .is-enhanced .operator-source,
[data-demo-phase="searching"] .is-enhanced .operator-source,
[data-demo-phase="answer"] .is-enhanced .operator-source { opacity: 0; transform: translateY(8px); visibility: hidden; }
[data-demo-phase="searching"] .is-enhanced .operator-search { visibility: visible; opacity: 1; transition: opacity .25s; }
[data-demo-phase="searching"] .operator-search-dots > * { animation: operator-thinking .8s ease-in-out 3; }
[data-demo-phase="searching"] .operator-search-dots > :nth-child(2) { animation-delay: .12s; }
[data-demo-phase="searching"] .operator-search-dots > :nth-child(3) { animation-delay: .24s; }
[data-demo-phase="answer"] .is-enhanced .operator-answer-item { animation: operator-item-in .45s both; }
[data-demo-phase="answer"] .operator-answer-item:nth-child(1) { animation-delay: .12s; }
[data-demo-phase="answer"] .operator-answer-item:nth-child(2) { animation-delay: .3s; }
[data-demo-phase="answer"] .operator-answer-item:nth-child(3) { animation-delay: .48s; }
[data-demo-phase="question"] .operator-question-typed::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.1em; background: #648971; animation: operator-caret .6s steps(2) 3; }
.operator-demo.is-enhanced .operator-demo__image { transform: scale(1.025); transition: transform 2.2s cubic-bezier(.2, .6, .3, 1); }
[data-demo-phase]:not([data-demo-phase="ready"]) .operator-demo.is-enhanced .operator-demo__image { transform: scale(1); }
.operator-demo.is-paused *,
.operator-demo.is-paused *::after { animation-play-state: paused !important; }
@keyframes operator-thinking { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes operator-item-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes operator-caret { to { opacity: 0; } }

@media (max-width: 1050px) {
  .operator-demo { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); padding: 28px 28px 0; gap: 24px; }
  .operator-section__intro { max-width: 310px; font-size: 14px; }
  .operator-steps { gap: 20px; }
  .operator-steps li { gap: 7px; font-size: 10px; }
  .operator-controls__count { padding: 0 3px; }
}
@media (max-width: 800px) {
  .operator-section__header { gap: 24px; }
  .operator-section__header h2 { font-size: 44px; }
  .operator-section__intro { max-width: 250px; font-size: 13px; }
  .operator-demo { grid-template-columns: 1fr; padding: 24px 24px 0; gap: 24px; }
  .operator-demo__image { height: 580px; object-position: 28% top; }
  .operator-demo__shade { background: linear-gradient(180deg, rgba(6, 15, 12, .06) 8%, rgba(6, 15, 12, .3) 21%, #101a17 60%); }
  .operator-demo__scene { min-height: 250px; }
  .operator-panel { width: min(100%, 480px); justify-self: end; }
  .operator-demo__bottom { flex-wrap: wrap; gap: 20px; }
  .operator-steps { flex: 1; justify-content: space-between; }
  .operator-controls { margin-left: auto; }
}
@media (max-width: 540px) {
  .operator-section { padding: 64px 20px; }
  .operator-section__header { display: block; margin-bottom: 28px; }
  .operator-section__eyebrow { margin-bottom: 16px; font-size: 9px; }
  .operator-section__header h2 { font-size: clamp(38px, 10vw, 52px); }
  .operator-section__intro { max-width: 340px; margin-top: 20px; font-size: 14px; line-height: 1.65; }
  .operator-demo { padding: 16px 16px 0; gap: 20px; border-radius: 14px; }
  .operator-demo__image { height: 430px; object-position: 32% top; }
  .operator-demo__shade { background: linear-gradient(180deg, rgba(6, 15, 12, .04), rgba(6, 15, 12, .15) 13%, #101a17 45%); }
  .operator-demo__scene { min-height: 220px; }
  .operator-panel { border-radius: 10px; }
  .operator-panel__header { padding: 16px; }
  .operator-panel__identity { gap: 8px; }
  .operator-panel__identity strong { font-size: 14px; }
  .operator-panel__mark { width: 32px; height: 32px; }
  .operator-panel__tabs { justify-content: space-between; gap: 8px; padding: 0 16px; }
  .operator-panel__tabs button { font-size: 10px; min-height: 44px; padding-bottom: 10px; }
  .operator-transcript { padding: 20px 16px; gap: 20px; }
  .operator-question-text { font-size: 19px; min-height: 54px; }
  .operator-answer-title { font-size: 14px; }
  .operator-answer-item { font-size: 11px; padding: 14px 4px 12px; gap: 10px; }
  .operator-item-label { min-height: 4.5em; }
  .operator-answer-list { gap: 7px; margin-top: 13px; }
  .operator-item-icon { flex-basis: 28px; width: 28px; height: 28px; }
  .operator-search { left: 16px; top: 123px; font-size: 10px; }
  .operator-source { gap: 9px; padding: 12px 10px; }
  .operator-source-summary { gap: 9px; }
  .operator-source-title { font-size: 11px; }
  .operator-source-detail { font-size: 9px; }
  .operator-source-icon { flex-basis: 27px; width: 27px; }
  details.operator-source > .operator-source-detail { margin-left: 36px; }
  .operator-demo__bottom { justify-content: center; gap: 16px; padding: 20px 0 16px; }
  .operator-steps { flex: 1 0 100%; gap: 7px; }
  .operator-steps li { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 9px; }
  .operator-steps__number { width: 23px; height: 23px; font-size: 8px; }
  .operator-controls { margin-left: 0; width: 100%; justify-content: flex-end; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 12px; }
  .operator-control { width: 44px; height: 44px; }
  .operator-control--motion { margin-right: auto; }
  .operator-controls__count { margin-right: 6px; }
  .operator-section__footnote { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .operator-demo *, .operator-demo *::before, .operator-demo *::after { animation: none !important; transition: none !important; }
  .operator-demo.is-enhanced .operator-demo__image { transform: none; }
  .operator-section__footnote a > span { transition: none; }
}
