.demo-page { min-height: 100vh; background: var(--paper); }
.demo-header { width: min(1320px, calc(100% - 32px)); min-height: 68px; margin: 14px auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,249,240,.96); }
.demo-header .live-status { display: grid; grid-template-columns: 10px auto; column-gap: 9px; align-items: center; }
.demo-header .live-status small { grid-column: 2; color: #7a7480; font-size: 10px; }
.demo-header > a:last-child { font-size: 13px; font-weight: 750; }
.presenter-bar { position: relative; z-index: 30; width: min(1320px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto 12px; padding: 12px 14px; border: 1px solid #d1bd79; border-radius: 14px; color: #2c2833; background: #fff3bf; box-shadow: 0 12px 35px rgba(44,40,51,.12); }
.presenter-bar[hidden] { display: none; }
/* In the field the owner is holding the device: get the chat onto the first screen. */
.presenter-mode .activation-head { display: none; }
.presenter-bar small, .presenter-bar strong, .presenter-bar span { display: block; }
.presenter-bar small { color: #8a6017; font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.presenter-bar strong { margin: 2px 0; font-size: 12px; }
.presenter-bar span { color: #706348; font-size: 9px; }
.presenter-actions { display: flex; gap: 7px; }
.presenter-actions button { min-height: 34px; padding: 0 11px; border: 1px solid rgba(44,40,51,.2); border-radius: 9px; color: var(--ink); background: rgba(255,255,255,.72); cursor: pointer; font-size: 9px; font-weight: 850; }
.presenter-actions button:first-child { color: white; border-color: var(--violet); background: var(--violet); }
.live-dot { width: 9px; height: 9px; grid-row: 1 / 3; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(59,125,104,.13); }
.demo-shell { width: min(1320px, calc(100% - 32px)); margin: 0 auto; }
.activation-head { display: grid; grid-template-columns: 1.45fr .55fr; gap: 44px; align-items: end; padding: 28px 34px 22px; }
.activation-head h1 { margin: 12px 0 0; font-size: clamp(46px, 4.6vw, 62px); line-height: .94; }
.activation-head h1 br { display: none; }
.activation-head h1 em { margin-left: .14em; }
.activation-head > p { max-width: 500px; margin: 0 0 7px; color: #65606a; font-size: 17px; line-height: 1.65; }
.activation-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; }
.activation-steps > div { position: relative; display: flex; align-items: center; gap: 11px; min-height: 70px; padding: 12px 18px; color: #8b858d; }
.activation-steps > div + div { border-left: 1px solid var(--line); }
.activation-steps > div::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: transparent; }
.activation-steps > div.active { color: var(--ink); background: #fffaf3; }
.activation-steps > div.active::after { background: var(--coral); }
.activation-steps > div.complete::after { background: var(--green); }
.activation-steps span { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font: 700 14px Georgia, serif; }
.activation-steps .active span { color: white; border-color: var(--violet); background: var(--violet); }
.activation-steps .complete span { color: white; border-color: var(--green); background: var(--green); }
.activation-steps p, .activation-steps strong, .activation-steps small { display: block; margin: 0; }
.activation-steps small { margin-top: 2px; font-size: 10px; }
.studio { display: grid; grid-template-columns: .82fr 1.18fr; align-items: start; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.config-surface, .test-panel { padding: 30px; }
.quick-config { grid-column: 1; background: #f2eadf; border-right: 1px solid var(--line); }
.advanced-panel { grid-column: 1; border-top: 1px solid var(--line); border-right: 1px solid var(--line); background: #f2eadf; }
.test-panel { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 12px; background: #fffaf3; }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel-head > span { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; background: var(--violet); font-family: Georgia, serif; }
.panel-head small { color: var(--coral); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.panel-head h2 { margin: 3px 0 0; font-size: 22px; letter-spacing: -.035em; }
.panel-copy { margin: -7px 0 20px 50px; color: #6f6971; font-size: 12px; line-height: 1.55; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 10px; font-size: 12px; font-weight: 850; }
.preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preset-grid button { min-height: 54px; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; cursor: pointer; text-align: left; font-size: 11px; font-weight: 780; }
.preset-grid button span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; color: var(--violet); background: #f0ecfa; font-size: 14px; }
.preset-grid button[aria-pressed="true"] { border-color: var(--violet); box-shadow: 0 0 0 2px rgba(67,52,112,.1); }
.preset-grid button[aria-pressed="true"]::after { content: '✓'; margin-left: auto; color: var(--green); }
.quick-fields { display: grid; grid-template-columns: 1.1fr .9fr; gap: 9px; margin: 18px 0 10px; }
.quick-fields .quick-language { grid-column: 1 / -1; }
.config-surface label { display: block; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; background: #fff; }
.config-surface label:focus-within { border-color: var(--violet); }
.config-surface label > span, .service-labels { display: block; margin-bottom: 4px; color: #817a82; font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.config-surface input, .config-surface select { width: 100%; min-height: 28px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; font-weight: 700; }
.live-update { display: flex; align-items: center; gap: 7px; color: #66706b; font-size: 10px; }
.live-update i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); transition: transform .2s; }
.live-update.flash i { transform: scale(1.8); }
.first-action { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px; margin-top: 23px; padding-top: 20px; border-top: 1px solid rgba(55,45,38,.12); }
.first-action > span { grid-row: 1 / 3; align-self: start; padding-top: 14px; color: var(--coral); font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.first-action small { color: #77717a; font-size: 10px; }
.first-action .button { justify-content: space-between; width: 100%; }
.test-panel .panel-head { padding-right: 76px; }
.reset-button { position: absolute; right: 30px; top: 34px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; cursor: pointer; font-size: 11px; font-weight: 750; }
.aha-callout { display: flex; align-items: center; gap: 10px; margin: -2px 0 12px; padding: 10px 12px; border: 1px solid #d9ccef; border-radius: 10px; background: #f4effd; }
.aha-callout span { flex: 0 0 auto; color: var(--violet); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.aha-callout strong { font-size: 11px; }
.ai-gate { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.ai-gate > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ai-gate p, .ai-gate strong, .ai-gate small { display: block; margin: 0; }
.ai-gate p { min-width: 0; }
.ai-gate strong { font-size: 10px; }
.ai-gate small { margin-top: 2px; color: #7b7480; font-size: 8px; line-height: 1.35; }
.ai-state { flex: 0 0 auto; padding: 6px 7px; border-radius: 6px; color: #756d77; background: #eeeae5; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.ai-gate.connected { border-color: #a8cfbf; background: #edf8f3; }
.ai-gate.connected .ai-state { color: white; background: var(--green); }
.ai-gate button { flex: 0 0 auto; min-height: 34px; padding: 0 11px; border: 0; border-radius: 9px; color: white; background: var(--violet); cursor: pointer; font-size: 9px; font-weight: 850; }
.ai-gate button:disabled { cursor: wait; opacity: .7; }
.channel-window { overflow: hidden; border: 7px solid var(--ink); border-radius: 24px; background: #f5f0e8; }
.channel-head { min-height: 62px; display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: white; border-bottom: 1px solid var(--line); }
.channel-head strong, .channel-head small { display: block; }
.channel-head small { margin-top: 3px; color: #77717a; font-size: 9px; }
.channel-head i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--green); }
.channel-head > span { margin-left: auto; padding: 5px 8px; border-radius: 6px; color: var(--green); background: #e4f2ec; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.message-log { height: 310px; overflow-y: auto; padding: 16px; scroll-behavior: smooth; }
.message { width: fit-content; max-width: 82%; margin-bottom: 9px; padding: 10px 12px; white-space: pre-line; border-radius: 14px; background: white; font-size: 12px; line-height: 1.5; box-shadow: 0 2px 8px rgba(30,20,10,.06); }
.message.customer { margin-left: auto; color: white; background: var(--violet); }
.message.booking { border: 1px solid #a8cfbf; background: #edf8f3; }
.message small { display: block; color: var(--green); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.quick-replies { min-height: 46px; display: flex; gap: 7px; overflow-x: auto; padding: 6px 12px; border-top: 1px solid var(--line); background: white; }
.quick-replies button { flex: 0 0 auto; min-height: 34px; border: 1px solid #bfb4de; border-radius: 20px; padding: 7px 11px; color: var(--violet); background: #f6f2ff; cursor: pointer; font-size: 11px; font-weight: 750; }
.message-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px; background: white; border-top: 1px solid var(--line); }
.message-form input { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; }
.message-form input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(67,52,112,.12); }
.message-form button { min-width: 64px; border: 0; border-radius: 10px; padding: 0 16px; color: white; background: var(--coral); cursor: pointer; font-weight: 800; }
.owner-preview { display: grid; grid-template-columns: .55fr 1fr; gap: 18px; margin-top: 12px; padding: 14px 16px; border-left: 4px solid var(--green); border-radius: 8px 13px 13px 8px; background: #e8f3ee; }
.owner-preview small, .owner-preview strong { display: block; }
.owner-preview small { color: var(--green); font-size: 8px; font-weight: 900; letter-spacing: .11em; }
.owner-preview strong { margin-top: 4px; font-size: 13px; }
.owner-preview p { margin: 0; color: #5f6863; font-size: 11px; line-height: 1.45; }
.advanced-panel { padding-top: 0; }
.advanced-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 22px; cursor: pointer; list-style: none; }
.advanced-panel summary::-webkit-details-marker { display: none; }
.advanced-panel summary span small, .advanced-panel summary span strong { display: block; }
.advanced-panel summary small { margin-bottom: 3px; color: var(--coral); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.advanced-panel summary strong { font-size: 13px; }
.advanced-panel summary i { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: white; font-style: normal; }
.advanced-panel[open] summary i { transform: rotate(45deg); }
.advanced-inner { padding-top: 22px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.advanced-inner fieldset { margin: 18px 0; }
.service-labels, .service-row { display: grid; grid-template-columns: 1.55fr .85fr .55fr 30px; gap: 7px; }
.service-row .remove-service { min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 9px; color: #8a5a4c; background: white; cursor: pointer; font-size: 14px; line-height: 1; }
.service-row .remove-service:disabled { opacity: .35; cursor: not-allowed; }
.add-service { min-height: 34px; padding: 0 12px; border: 1px dashed rgba(55,45,38,.3); border-radius: 9px; color: var(--violet); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.add-service[hidden] { display: none; }
.field-grid .wide-field { grid-column: 1 / -1; }
.field-grid .wide-field small { display: block; margin-top: 4px; color: #77717a; font-size: 9px; }
.service-labels span { padding: 0 8px; }
.service-row { margin-bottom: 7px; }
.service-row input { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 11px; }
.secondary-button { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px; color: var(--ink); background: white; cursor: pointer; font-weight: 750; }
.launch-card { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin: 18px 0; padding: 28px 30px; border: 1px solid #a8cfbf; border-radius: 22px; background: #eaf6f1; box-shadow: 0 18px 50px rgba(38,83,67,.12); }
.launch-card[hidden] { display: none; }
.launch-check { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 24px; }
.launch-card h2 { margin: 7px 0 5px; font-size: clamp(28px, 3vw, 40px); }
.launch-card p { max-width: 650px; margin: 0; color: #5f6863; font-size: 12px; }
.launch-actions { min-width: 230px; display: grid; gap: 9px; }
.launch-actions > a:not(.button) { color: var(--green); text-align: center; font-size: 12px; font-weight: 800; }
.launch-actions small { color: #68716d; font-size: 9px; text-align: center; }
.proof-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 18px 0 90px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: white; font-size: 11px; }
.proof-strip > span::before { content: '✓'; margin-right: 6px; color: var(--green); font-weight: 900; }
.proof-strip small { flex: 1 1 100%; color: #77717a; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 980px) {
  .activation-head { grid-template-columns: 1fr; gap: 20px; }
  .activation-head h1 br { display: block; }
  .activation-head h1 em { margin-left: 0; }
  .studio { grid-template-columns: 1fr; }
  .quick-config, .advanced-panel, .test-panel { grid-column: 1; }
  .quick-config { grid-row: 1; border-right: 0; border-bottom: 1px solid var(--line); }
  .test-panel { grid-row: 2; position: relative; top: auto; }
  .advanced-panel { grid-row: 3; border-right: 0; }
  .launch-card { grid-template-columns: auto 1fr; }
  .launch-actions { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .demo-page { overflow-x: hidden; }
  .demo-header { width: min(100% - 20px, 1320px); padding: 8px 11px; }
  .demo-header .live-status { display: none; }
  .presenter-bar { position: static; width: min(100% - 20px, 1320px); align-items: stretch; flex-direction: column; gap: 9px; }
  .presenter-actions button { flex: 1; }
  .demo-shell { width: min(100% - 20px, 1320px); }
  .activation-head { padding: 30px 4px 22px; }
  .activation-head > *, .studio > *, .activation-steps > div { min-width: 0; }
  .activation-head h1 { max-width: 100%; font-size: 42px; overflow-wrap: anywhere; }
  .activation-head > p { font-size: 14px; }
  .activation-steps > div { justify-content: center; min-height: 55px; padding: 8px 5px; }
  .activation-steps p small { display: none; }
  .activation-steps p strong { font-size: 10px; }
  .activation-steps span { width: 26px; height: 26px; font-size: 12px; }
  .config-surface, .test-panel { padding: 20px 14px; }
  .panel-copy { margin-left: 0; }
  .preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preset-grid button { min-width: 0; min-height: 58px; align-items: flex-start; flex-direction: column; gap: 4px; font-size: 10px; }
  .preset-grid button span { display: none; }
  .quick-fields, .field-grid { grid-template-columns: 1fr; }
  .first-action { grid-template-columns: 1fr; }
  .first-action > span { display: none; }
  .test-panel .panel-head { padding-right: 58px; }
  .reset-button { right: 14px; top: 23px; padding: 0 9px; }
  .aha-callout { align-items: flex-start; flex-direction: column; gap: 4px; }
  .ai-gate { align-items: stretch; flex-direction: column; }
  .ai-gate > div { align-items: flex-start; }
  .ai-gate button { min-height: 42px; }
  .message-log { height: 330px; }
  .owner-preview { grid-template-columns: 1fr; gap: 7px; }
  .service-labels, .service-row { grid-template-columns: 1.45fr .9fr .55fr 26px; gap: 5px; }
  .service-row input { padding: 7px 6px; font-size: 10px; }
  .launch-card { grid-template-columns: 1fr; padding: 24px 20px; }
  .launch-check { width: 44px; height: 44px; }
  .launch-actions { grid-column: auto; min-width: 0; }
  .proof-strip { align-items: flex-start; flex-direction: column; margin-bottom: 55px; }
}
