/* /industries/ecommerce/ (components/site/demo_stage/industry_ecommerce/): what its three scenes and four section panels add to demo_stage.css. */
.demo-stage :is([data-demo-scene=fit], [data-demo-scene=back], [data-demo-scene=covered]) {
  .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; }
  :is(.thread, .talk) { -webkit-mask-image: linear-gradient(to bottom, transparent, black 34px); mask-image: linear-gradient(to bottom, transparent, black 34px); }
  .bubble { max-width: 90%; 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; }
  .wait { font-size: 13px; color: var(--muted-foreground); padding: 0 4px 8px; animation: ds-breathe 1.4s ease-in-out infinite; }
  .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; }

  .goods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
  .goods li { display: flex; flex-direction: column; min-width: 0; background: var(--background); border-radius: 14px; padding: 7px; font-size: 12.5px; line-height: 1.3; }
  .goods img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; background: var(--muted); margin-bottom: 7px; }
  .goods b { font-weight: 500; }
  .goods small { font-size: 12px; color: var(--muted-foreground); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
  .goods .add { margin-top: auto; text-align: center; border-radius: 99px; padding: 6px 4px; background: var(--foreground); color: var(--background); font-size: 12px; font-weight: 500; transition: transform .15s var(--ds-ease), background-color .2s, color .2s; }
  .goods .add.picked { background: var(--brand); color: var(--brand-foreground); transform: scale(.97); }
  .sheet { z-index: 3; }
  .sheet span svg { width: 18px; height: 18px; stroke-width: 2.6; }

  .picks { display: grid; gap: 8px; margin-top: 8px; }
  .pick { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 11px; padding: 6px 8px; font-size: 12px; line-height: 1.25; }
  .pick img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: var(--muted); flex: none; }
  .pick b { display: block; font-weight: 500; }

  .file { display: flex; align-items: center; gap: 10px; margin-top: 8px; background: var(--card); border-radius: 12px; padding: 8px 10px; font-size: 12.5px; font-weight: 500; }
  .file svg { width: 18px; height: 18px; flex: none; }
  .file small { display: block; font-size: 12px; font-weight: 400; color: var(--muted-foreground); }
  .photo { padding: 6px; }
  .photo .label { display: block; background: #f4f2ee; color: #1c1917; border-radius: 10px; padding: 14px 16px; font-size: 12px; line-height: 1.5; }
  .photo .label b { display: block; font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; font-weight: 500; }

  .work .head .title { min-width: 0; }
  .work .body { margin-top: 4px; }
  .work.done.kept .body { grid-template-rows: 1fr; opacity: 1; }
  .line { padding-left: 23px; }
  .tool { margin-left: auto; flex: none; font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; font-weight: 400; background: var(--card); border-radius: 6px; padding: 1px 7px; color: var(--muted-foreground); }
  .event.before :is(b, small) { color: var(--muted-foreground); }

  .side { display: flex; flex-direction: column; }
  .side .gap { padding-bottom: 16px; }
  .ask .item { display: flex; align-items: center; gap: 12px; }
  .ask .item img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--muted); flex: none; }
  .ask .item b { display: block; font-size: 16px; font-weight: 600; line-height: 1.25; }
  .ask .item small, .ask .who { font-size: 13px; color: var(--muted-foreground); }
  .ask .who { margin-top: 10px; }
  .choice { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
  .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 :is([data-demo-scene=fit], [data-demo-scene=back], [data-demo-scene=covered]) {
    .picks { grid-template-columns: 1fr 1fr; }
    .side { height: auto; }
  }
}

/* Section panels: still, fluid from 360 px, one box each but the rules panel's two. */
.demo-stage .panel.specs {
  .product { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; }
  .product img { width: 88px; height: 88px; border-radius: 16px; object-fit: cover; background: var(--muted); flex: none; }
  .product b { display: block; font-size: 18px; font-weight: 600; }
  .product span { display: block; font-size: 14.5px; margin-top: 2px; font-variant-numeric: tabular-nums; }
  .product small { display: block; font-size: 12.5px; color: var(--muted-foreground); margin-top: 4px; }
  dl div { display: grid; gap: 2px 24px; padding: 14px 0; border-top: 1px solid var(--border); font-size: 14.5px; line-height: 1.45; }
  dt { color: var(--muted-foreground); }
  .quoted { font-size: 13px; color: var(--muted-foreground); padding: 0 6px; }
}

.demo-stage .panel.rules {
  .tools header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-bottom: 14px; }
  .tools header b { display: block; font-size: 18px; font-weight: 600; }
  .tools header small, .tools header span { font-size: 13px; color: var(--muted-foreground); }
  .tools li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 14px 0; border-top: 1px solid var(--border); font-size: 14.5px; }
  .tools em { font-style: normal; font-weight: 500; }
  .tools em.ask { color: var(--brand); font-weight: 600; }
  .tools em.off { color: var(--muted-foreground); font-weight: 400; }
  .ask small { display: block; font-size: 13px; color: var(--muted-foreground); }
  .ask > b { display: block; font-size: 18px; font-weight: 600; margin-top: 10px; }
  .ask p { font-size: 14px; line-height: 1.5; color: var(--muted-foreground); margin-top: 6px; }
  .choice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 18px; }
  .choice span { font-size: 14px; font-weight: 500; }
  .choice .yes { border-radius: 99px; padding: 9px 24px; background: var(--foreground); color: var(--background); }
}

.demo-stage .panel.tasks {
  header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; padding-bottom: 14px; }
  header b { font-size: 18px; font-weight: 600; }
  nav { display: flex; gap: 18px; font-size: 14px; color: var(--muted-foreground); }
  nav .on { color: var(--foreground); font-weight: 500; text-decoration: underline 2px var(--brand); text-underline-offset: 6px; }
  li { display: grid; gap: 2px 20px; padding: 14px 0; border-top: 1px solid var(--border); font-size: 14.5px; line-height: 1.45; }
  time { font-size: 13px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
  li b { font-weight: 500; }
}

.demo-stage .panel.topics {
  header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding-bottom: 12px; }
  header b { font-size: 18px; font-weight: 600; }
  header small { font-size: 13px; color: var(--muted-foreground); }
  .scroll { overflow-x: auto; margin-inline: -18px; padding-inline: 18px; }
  table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
  th { text-align: right; font-weight: 400; font-size: 13px; color: var(--muted-foreground); padding: 8px 0 10px 16px; white-space: nowrap; }
  td { text-align: right; padding: 13px 0 13px 16px; border-top: 1px solid var(--border); white-space: nowrap; }
  :is(th, td):first-child { text-align: left; padding-left: 0; position: sticky; left: 0; background: var(--card); white-space: normal; }
  td span { color: var(--muted-foreground); }
  tr.up td:first-child { color: var(--brand); font-weight: 500; }
  .rising { margin-top: 14px; font-size: 13.5px; color: var(--muted-foreground); }
}

@media (min-width: 1024px) {
  .demo-stage .panel.specs {
    .box { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; padding: 28px; align-items: start; }
    .product { flex-direction: column; align-items: flex-start; padding: 0; }
    .product img { width: 160px; height: 160px; }
    dl div { grid-template-columns: 120px minmax(0, 1fr); }
    dl div:first-child { border-top: 0; padding-top: 0; }
  }
  .demo-stage .panel.rules {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: start;
    .box { padding: 24px 28px; }
  }
  .demo-stage .panel.tasks {
    .box { padding: 24px 28px; }
    li { grid-template-columns: 100px 160px minmax(0, 1fr); align-items: baseline; }
  }
  .demo-stage .panel.topics .box { padding: 24px 28px; }
}
