/* /industries/car-rental/ (components/site/demo_stage/industry_car_rental/): what its three scenes and four section panels add to demo_stage.css. */
.demo-stage :is([data-demo-scene=pickup], [data-demo-scene=extras], [data-demo-scene=deposit], .panel.quote, .panel.tasks) {
  .chat { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--card); color: var(--foreground); }
  .chat header { padding: 16px 16px 12px; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 600; }
  .chat 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; }
  .tiles { display: grid; gap: 6px; margin-top: 9px; }
  .tiles span { min-width: 0; display: flex; align-items: baseline; gap: 10px; background: var(--card); border-radius: 10px; padding: 8px 10px; }
  .tiles b { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
  .tiles small { flex: none; font-size: 12px; color: var(--muted-foreground); }
  .tiles.photos { grid-template-columns: 1fr 1fr; }
  .tiles.photos span { display: block; }
  .tiles.photos b { display: block; }
  .tiles.photos small { display: block; margin-top: 2px; }
  .tiles.photos img { display: block; width: 100%; height: 64px; object-fit: contain; border-radius: 7px; background: var(--muted); margin-bottom: 7px; }
  .day { text-align: center; font-size: 12px; color: var(--muted-foreground); padding: 4px 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); }
}

.demo-stage :is([data-demo-scene=pickup], [data-demo-scene=extras], [data-demo-scene=deposit]) {
  :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; }
  .box-in .typed:not(:empty) + .hint { display: none; }

  .work .title { font-weight: 500; }
  .work:not(.done) .title { animation: ds-breathe 1.4s ease-in-out infinite; }
  .work.done .title { font-size: 12.5px; font-weight: 400; color: var(--muted-foreground); }
  .work .line { color: var(--foreground); font-size: 13px; line-height: 1.45; padding-top: 3px; }
  .note { font-size: 12.5px; color: var(--muted-foreground); padding: 0 2px 10px; }
  .event.before :is(b, small) { color: var(--muted-foreground); }
  .event .dot svg[fill] { color: inherit; }

  .side { display: flex; flex-direction: column; }
  .side .gap { padding-bottom: 16px; }
  .ask { font-size: 13px; }
  .ask > small { display: block; color: var(--muted-foreground); font-size: 12.5px; }
  .ask > b { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; margin: 6px 0 8px; }
  .ask > p { color: var(--muted-foreground); line-height: 1.45; margin-bottom: 8px; }
  .choice { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
  .choice span { border-radius: 99px; padding: 8px 18px; font-size: 13.5px; font-weight: 500; background: var(--muted); transition: transform .15s var(--ds-ease); }
  .choice .yes { background: var(--foreground); color: var(--background); }
  .choice .yes.picked { transform: scale(.95); }
  .approved-line { padding-top: 12px; font-size: 13px; font-weight: 500; color: var(--ds-good); }
}

@media (min-width: 1024px) {
  .demo-stage [data-demo-scene=deposit] .side { height: auto; }
}

/* Section panels: each its own shape, still, fluid from 360 px. demo_stage.css turns a panel's children into
   display: contents below 1024 px (for the panes); a still panel keeps its boxes. Their phones are only as tall as
   the chat in them. */
.demo-stage .panel.still:is(.quote, .rules, .tasks, .results) > * { display: block; }
.demo-stage .panel.still:is(.quote, .tasks) .phone { height: auto; align-self: center; }
.demo-stage .panel:is(.quote, .tasks) .chat { position: relative; inset: auto; }
.demo-stage .panel:is(.quote, .tasks) .talk { padding-top: 16px; }

.demo-stage .panel.quote {
  .bubble.them { max-width: 92%; }
  .tiles.photos { grid-template-columns: 1fr; }
  .tiles.photos span { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 10px; align-items: center; }
  .tiles.photos img { grid-row: span 2; width: 72px; height: 54px; margin: 0; }
  .tiles.photos small { margin-top: 0; align-self: start; }
  .tiles.photos b { align-self: end; }
  .classes { padding: 8px 0; align-self: center; }
  header { padding: 14px 24px 14px; }
  header b { display: block; font-size: 18px; font-weight: 600; }
  header small { font-size: 13px; color: var(--muted-foreground); }
  li { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--border); }
  li div { flex: 1; min-width: 0; }
  li b { display: block; font-size: 15px; font-weight: 600; }
  li small { font-size: 13px; color: var(--muted-foreground); }
  li span { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
}

.demo-stage .panel.rules {
  .box { padding: 24px; }
  header b { display: block; font-size: 20px; font-weight: 600; }
  header small { font-size: 13px; color: var(--muted-foreground); }
  .groups { display: grid; gap: 28px; margin-top: 24px; }
  section { min-width: 0; }
  h3 { font-size: 15px; font-weight: 600; }
  section p { font-size: 13.5px; color: var(--muted-foreground); margin-top: 2px; }
  ul { margin-top: 18px; display: grid; gap: 12px; }
  li { font-size: 18px; font-weight: 600; line-height: 1.3; }
  .ask h3 { color: var(--ds-warn); }
}

.demo-stage .panel.tasks {
  .box { padding: 8px 0; align-self: center; }
  header { padding: 14px 24px 16px; }
  header b { font-size: 18px; font-weight: 600; }
  li { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 2px; padding: 16px 24px; border-top: 1px solid var(--border); font-size: 14px; }
  li.lit { background: color-mix(in oklab, var(--brand) 7%, transparent); }
  time { color: var(--muted-foreground); font-variant-numeric: tabular-nums; font-size: 13px; }
  li small { font-size: 12.5px; color: var(--muted-foreground); }
}

.demo-stage .panel.results {
  .summary { padding: 24px; }
  .summary > b { display: block; font-size: 20px; font-weight: 600; }
  .summary > small { font-size: 13px; color: var(--muted-foreground); }
  dl { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; border-top: 1px solid var(--border); }
  dl div { padding-top: 16px; min-width: 0; }
  dl div + div { border-left: 1px solid var(--border); padding-left: 18px; }
  dt { font-size: 13px; color: var(--muted-foreground); }
  dd { font-size: 19px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
  dd small { display: block; font-size: 13px; font-weight: 400; color: var(--muted-foreground); }
  .versions { padding: 12px 0; align-self: center; }
  table { width: 100%; border-collapse: collapse; font-size: 14px; }
  th { text-align: left; font-size: 12.5px; font-weight: 400; color: var(--muted-foreground); padding: 8px 16px; }
  td { padding: 14px 16px; border-top: 1px solid var(--border); }
  :is(th, td):not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
  tr.lit td { background: color-mix(in oklab, var(--brand) 7%, transparent); }
  tr.lit td:last-child { font-weight: 600; }
}

@media (min-width: 1024px) {
  .demo-stage .panel:is(.quote, .rules, .tasks, .results) { display: grid; padding: 28px; }
  .demo-stage .panel:is(.quote, .tasks) { grid-template-columns: 334px minmax(0, 1fr); align-items: center; column-gap: 28px; }
  .demo-stage .panel.rules .groups { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
  .demo-stage .panel.rules .ask { border-left: 1px solid var(--border); padding-left: 40px; }
  .demo-stage .panel.results :is(th, td) { padding-inline: 24px; }
  .demo-stage .panel.results dd { font-size: 22px; }
  .demo-stage .panel.results { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; column-gap: 28px; }
  .demo-stage .panel.tasks li { grid-template-columns: 120px minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline; }
}
