/* /industries/reservations/ (components/site/demo_stage/industry_reservations/): what its three hero scenes, its
   section panels and the section 4 scene add to demo_stage.css. The client's phone is an SMS thread. */
.demo-stage :is([data-demo-scene=book], [data-demo-scene=move], [data-demo-scene=missed]),
.demo-stage .panel.rs-comeback {
  .sms { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--card); color: var(--foreground); }
  .sms header { padding: 16px 16px 12px; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 600; }
  .sms header small { display: block; font-size: 12px; font-weight: 400; color: var(--muted-foreground); }
  .talk { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 12px 6px; }
  .bubble { max-width: 84%; width: fit-content; border-radius: 17px; padding: 8px 12px; font-size: 13.5px; line-height: 1.38; margin-bottom: 8px; }
  .bubble.me { margin-left: auto; background: var(--brand); color: var(--brand-foreground); border-bottom-right-radius: 5px; }
  .bubble.them { background: var(--muted); color: var(--foreground); border-bottom-left-radius: 5px; }
  .day { text-align: center; font-size: 12px; color: var(--muted-foreground); padding: 2px 0 10px; }
  .box-in { margin: 0 12px 14px; display: flex; align-items: center; background: var(--muted); border-radius: 99px; padding: 9px 14px; font-size: 13.5px; min-height: 40px; }
  .box-in .hint { color: var(--muted-foreground); }
  .box-in .typed:not(:empty) + .hint { display: none; }
}

.demo-stage :is([data-demo-scene=book], [data-demo-scene=move], [data-demo-scene=missed]) {
  :is(.thread, .talk) { -webkit-mask-image: linear-gradient(to bottom, transparent, black 34px); mask-image: linear-gradient(to bottom, transparent, black 34px); }
  .wait { font-size: 13px; color: var(--muted-foreground); padding: 0 4px 8px; animation: ds-breathe 1.4s ease-in-out infinite; }
  .service { display: flex; align-items: center; gap: 10px; margin-top: 8px; background: var(--card); border-radius: 12px; padding: 6px 10px 6px 6px; font-size: 12.5px; line-height: 1.3; color: var(--muted-foreground); }
  .service img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; background: var(--muted); flex: none; }
  .service b { display: block; font-weight: 500; color: var(--foreground); }

  .work .head .title { min-width: 0; }
  .work.done .head .ok { color: var(--foreground); }
  .did { font-size: 13px; font-weight: 500; color: var(--brand); padding: 0 2px 10px; }
  .passes { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted-foreground); padding-bottom: 10px; }
  .passes::before, .passes::after { content: ''; flex: 1; height: 1px; background: var(--border); }
  .then { margin-bottom: 8px; }
  .state.solved { background: var(--ds-good-bg); color: var(--ds-good); }
  .event.before :is(b, small) { color: var(--muted-foreground); }

  .ask { background: var(--muted); border-radius: 14px; padding: 13px 14px; margin-bottom: 10px; font-size: 13.5px; line-height: 1.4; }
  .ask > b { display: block; font-weight: 600; }
  .ask > small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted-foreground); }
  .choice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; }
  .choice span { border-radius: 99px; padding: 7px 18px; font-size: 13.5px; font-weight: 500; transition: transform .15s var(--ds-ease); }
  .choice .yes { background: var(--foreground); color: var(--background); }
  .choice .yes.picked { transform: scale(.95); }
  .choice .no { color: var(--muted-foreground); }
  .approved-line { padding-top: 10px; font-size: 13px; font-weight: 500; color: var(--ds-good); }
}

/* Section panels: still, fluid from 360 px. demo_stage.css makes a panel's children display: contents below 1024 px (for
   the panes); a still panel keeps its boxes. */
.demo-stage .panel.still:is(.rs-reads, .rs-permissions, .rs-comeback) {
  padding: 20px; gap: 20px;
  > * { display: block; min-width: 0; }
  .box { padding: 22px 24px; }
  .title { display: block; font-size: 18px; font-weight: 600; }
  .sub { display: block; margin-top: 2px; font-size: 13px; color: var(--muted-foreground); }
  .last { margin-top: 14px; font-size: 13px; color: var(--muted-foreground); }
}

.demo-stage .panel.rs-reads {
  .rows { margin-top: 14px; }
  .rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 16px; padding: 13px 0; border-top: 1px solid var(--border); font-size: 15px; }
  .rows small { font-size: 13px; color: var(--muted-foreground); }
  .rows b { font-weight: 500; font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
  .tools li { grid-template-columns: minmax(0, 1fr) auto; }
  code { font-family: "Geist Mono", ui-monospace, monospace; font-size: 13.5px; overflow-wrap: anywhere; }
  .last { padding-top: 12px; border-top: 1px solid var(--border); margin-top: 0; }
}

.demo-stage .panel.rs-permissions {
  .box { width: 100%; max-width: 720px; justify-self: center; }
  .grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); margin-top: 14px; }
  .grid > * { display: flex; align-items: center; padding: 14px 12px 14px 0; border-top: 1px solid var(--border); font-size: 15px; }
  .grid > b { font-weight: 500; }
  .head { border-top: 0; padding: 4px 0 10px; font-size: 13px; color: var(--muted-foreground); }
  .allow { color: var(--ds-good); }
  .ask { color: var(--ds-warn); font-weight: 600; }
}

.demo-stage .panel.rs-comeback {
  .phone { height: 440px; }
  .campaign { align-self: center; }
  .campaign header { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
  .campaign header b { display: block; font-size: 18px; font-weight: 600; }
  .campaign header small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted-foreground); }
  .state.running { background: var(--ds-good-bg); color: var(--ds-good); }
  .rows { margin-top: 16px; }
  .rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-top: 1px solid var(--border); font-size: 15px; }
  .rows dt { color: var(--muted-foreground); }
  .rows dd { flex: none; font-weight: 500; font-variant-numeric: tabular-nums; }
}

.demo-stage [data-demo-scene=translate] {
  [data-pane] { height: auto; min-height: 0; }
  .ticket { width: 100%; max-width: 680px; justify-self: center; margin-inline: auto; }
  .thread { padding: 20px 22px 18px; }
  .msg { font-size: 15px; }
  .meta { font-size: 12.5px; }
  .tr-link { text-underline-offset: 3px; transition: color .2s; }
  .tr-link.pressed { color: var(--foreground); }
}

@media (min-width: 1024px) {
  .demo-stage .panel.still:is(.rs-reads, .rs-permissions, .rs-comeback) { display: grid; padding: 32px; gap: 28px; }
  .demo-stage .panel.rs-reads { grid-template-columns: 1fr 1fr; align-items: start; }
  .demo-stage .panel.rs-comeback { grid-template-columns: 334px minmax(0, 1fr); align-items: center; }
  .demo-stage .panel.still.rs-comeback .phone { height: 480px; }
  .demo-stage .panel.rs-comeback .campaign { max-width: 560px; }
  .demo-stage [data-demo-scene=translate] .panel { padding: 40px; }
}
