/* The Customers page (/product/sales/, components/site/demo_stage/product_sales/): only what its three scenes and four
   section panels add to demo_stage.css. */
.demo-stage [data-demo-scene=record] {
  .address { margin: 14px auto 0; width: max-content; font-size: 12px; color: var(--muted-foreground); background: var(--ds-panel); border-radius: 99px; padding: 3px 14px; }
  .search { margin: 14px 10px 0; }
  .bar { display: flex; align-items: center; gap: 10px; min-height: 48px; border-radius: 24px; background: var(--background); box-shadow: 0 8px 24px -14px rgb(0 0 0 / .4); padding: 6px 6px 6px 16px; }
  .bar > svg { width: 16px; height: 16px; flex: none; color: var(--muted-foreground); }
  .bar span { width: 36px; height: 36px; border-radius: 99px; background: var(--brand); color: var(--brand-foreground); display: grid; place-items: center; flex: none; }
  .bar span svg { width: 16px; height: 16px; }
  .query { flex: 1; min-width: 0; font-size: 13.5px; min-height: 1.4em; }
  .results { margin-top: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px; display: grid; gap: 14px; }
  .answer { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.45; }
  .mark { width: 26px; height: 26px; border-radius: 99px; background: var(--primary); color: var(--primary-foreground); display: grid; place-items: center; flex: none; }
  .mark svg { width: 13px; height: 13px; }
  .product { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; }
  .product img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: var(--muted); }
  .product b { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.3; }
  .product span { display: block; font-size: 13.5px; margin-top: 2px; font-variant-numeric: tabular-nums; }
  .product small { display: block; font-size: 12px; color: var(--muted-foreground); margin-top: 2px; }
  .add { display: block; text-align: center; border-radius: 99px; padding: 9px 0; font-size: 13px; font-weight: 500; background: var(--foreground); color: var(--background); transition: background-color .2s, color .2s, transform .15s var(--ds-ease); }
  .add.picked { background: var(--brand); color: var(--brand-foreground); transform: scale(.98); }
  .talk { margin: 14px 10px 0; }
  .bubble { max-width: 84%; width: fit-content; border-radius: 17px; padding: 9px 13px; font-size: 13.5px; line-height: 1.4; 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); border-bottom-left-radius: 5px; }

  .user { padding: 24px; }
  .facts b { font-size: 22px; }
  .work { margin-bottom: 14px; }
  .person .stage-chip { margin: 0 0 0 auto; }
  .learned { margin-top: 4px; border-radius: 14px; padding: 14px 16px; background: color-mix(in oklab, var(--brand) 9%, var(--card)); display: grid; gap: 4px; font-size: 13.5px; line-height: 1.4; }
  .learned b { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
  .nobody { padding-top: 14px; font-size: 13px; color: var(--muted-foreground); }
}

.demo-stage [data-demo-scene=cart] {
  .phone > :is(.site, .clock, .mailview) { position: absolute; inset: 0; transition: opacity .3s var(--ds-ease), transform .3s var(--ds-ease); }
  .site { z-index: 2; background: var(--ds-screen); }
  .site.off { opacity: 0; }
  .address { margin: 14px auto 0; width: max-content; font-size: 12px; color: var(--muted-foreground); background: var(--ds-panel); border-radius: 99px; padding: 3px 14px; }
  .checkout { margin: 16px 12px 0; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px 16px; display: grid; gap: 16px; font-size: 13.5px; }
  .checkout h3 { font-size: 17px; font-weight: 600; }
  .checkout .item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
  .checkout .item img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--muted); }
  .checkout .item b { font-weight: 500; }
  .sum { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding-top: 12px; font-variant-numeric: tabular-nums; }
  .sum b { font-size: 16px; font-weight: 600; }
  .pay { display: block; text-align: center; background: var(--foreground); color: var(--background); border-radius: 99px; padding: 11px 0; font-weight: 500; }
  .clock { display: grid; place-items: center; text-align: center; color: var(--muted-foreground); }
  .clock b { display: block; font-size: 54px; font-weight: 300; color: var(--foreground); line-height: 1; }
  .clock.off { opacity: 0; }
  .mailview { z-index: 3; background: var(--ds-screen); opacity: 0; transform: translateY(14px); display: flex; flex-direction: column; }
  .mailview.on { opacity: 1; transform: none; }
  .mailhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 18px 16px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
  .mailhead b { font-weight: 600; }
  .mailhead small { font-size: 12px; color: var(--muted-foreground); }
  .paper { margin: 12px; background: #fff; color: #1c1917; border-radius: 12px; padding: 18px 16px; display: grid; gap: 12px; box-shadow: 0 1px 3px rgb(0 0 0 / .08), 0 0 0 1px rgb(0 0 0 / .04); }
  .paper h3 { font-size: 17px; font-weight: 600; line-height: 1.25; }
  .paper p { font-size: 13px; line-height: 1.45; color: #44403c; }
  .paper .item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 13px; color: #57534e; }
  .paper .item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #f5f5f4; }
  .paper .item b { display: block; font-weight: 500; color: #1c1917; }
  .paper .cta { text-align: center; }
  .paper .cta span { display: inline-block; background: #1c1917; color: #fff; border-radius: 99px; padding: 8px 18px; font-size: 13px; font-weight: 500; }
  .talk { margin: 4px 12px 0; }
  .bubble { max-width: 84%; width: fit-content; border-radius: 17px; padding: 9px 13px; font-size: 13.5px; line-height: 1.4; 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); border-bottom-left-radius: 5px; }
  .sheet { z-index: 4; }
  .sheet span svg { width: 18px; height: 18px; stroke-width: 2.6; }

  .flow { display: flex; flex-direction: column; gap: 16px; }
  .flow > .grow > div { padding-bottom: 2px; }
  .rule { padding: 22px 24px; display: grid; gap: 10px; }
  .rule small { font-size: 13px; color: var(--muted-foreground); }
  .rule p { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
  .email { padding: 20px 24px; }
  .email > b { display: block; font-size: 17px; font-weight: 600; }
  .email > small { display: block; font-size: 13px; color: var(--muted-foreground); margin-top: 2px; }
  .exchange { padding-top: 16px; display: grid; gap: 8px; }
  .exchange .meta { margin: 0; }
  .credit { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
  .user { padding: 20px; }
}
.dark .demo-stage [data-demo-scene=cart] .sheet { outline: 1px solid color-mix(in oklab, var(--foreground) 22%, transparent); }

.demo-stage [data-demo-scene=company] {
  .box { padding: 22px 24px; }
  .lookup { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 14px; padding: 6px 6px 6px 14px; margin-bottom: 16px; font-size: 14px; }
  .typed { flex: 1 1 200px; min-width: 0; min-height: 1.4em; overflow-wrap: anywhere; }
  .go { flex: none; margin-left: auto; border-radius: 99px; padding: 8px 16px; font-size: 13px; font-weight: 500; background: var(--foreground); color: var(--background); transition: transform .15s var(--ds-ease); }
  .go.picked { transform: scale(.96); }
  .work { margin-bottom: 14px; }
  h4 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; padding-bottom: 8px; }
  dl > .grow > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; border-top: 1px solid var(--border); padding: 11px 0; font-size: 14.5px; }
  dt { color: var(--muted-foreground); }
  .person { margin: 18px 0 0; }
  .person .stage-chip { margin: 0 0 0 auto; }

  .letter > small { display: block; font-size: 13px; color: var(--muted-foreground); margin-bottom: 12px; }
  .field { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; font-size: 14px; padding: 4px 0; }
  .field span { color: var(--muted-foreground); }
  .field b { font-weight: 600; }
  .body { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 14px; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
  .send { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
  .send span { background: var(--muted); border-radius: 99px; padding: 7px 18px; font-size: 13px; font-weight: 500; transition: transform .15s var(--ds-ease); }
  .send .primary { background: var(--foreground); color: var(--background); }
  .send .primary.picked { transform: scale(.96); }
  [data-part=sent] .meta { margin: 10px 0 0; }
  .exchange { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 14px; display: grid; gap: 4px; }
  .exchange .msg.agent { margin-top: 6px; }
  .task { margin-top: 16px; border-radius: 14px; padding: 14px 16px; background: color-mix(in oklab, var(--brand) 9%, var(--card)); display: grid; gap: 2px; font-size: 13.5px; }
  .task b { font-size: 14.5px; font-weight: 600; }
  .task small { font-size: 12.5px; color: var(--muted-foreground); }
  .task p { margin-top: 4px; }
}

@media (min-width: 1024px) {
  .demo-stage [data-demo-scene=record] .behind { grid-template-columns: minmax(0, 1fr); }
  .demo-stage [data-demo-scene=record] .user { padding: 26px 30px; }
  .demo-stage [data-demo-scene=record] .person b { font-size: 20px; }
  .demo-stage [data-demo-scene=record] .facts b { font-size: 26px; }
  .demo-stage [data-demo-scene=record] .event b { font-size: 14px; }
  .demo-stage [data-demo-scene=record] .event small { font-size: 12.5px; }
  .demo-stage [data-demo-scene=cart] .flow { height: 600px; }
  .demo-stage [data-demo-scene=company] .desk { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; height: 600px; align-items: start; }
  .demo-stage [data-demo-scene=company] .box { height: 600px; padding: 26px 30px; }
}

/* Section panels: still, fluid from 360 px to the full width; their boxes stay boxes (demo_stage.css flattens a panel's children below 1024 px for the hero's panes). */
.demo-stage .panel:is(.sales-account, .sales-rules, .sales-rhythm, .sales-tasks) > .box { display: block; }
.demo-stage .panel.sales-account {
  .box { padding: 24px; }
  .title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
  h4 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
  .stage-chip { margin: 0; }
  .line { margin-top: 6px; font-size: 14px; color: var(--muted-foreground); }
  .figures { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; }
  .figures dt { font-size: 13px; color: var(--muted-foreground); }
  .figures dd { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .domain { font-size: 13px; color: var(--muted-foreground); margin-bottom: 6px; }
  .people li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
  .people li:first-child { border-top: 0; }
  .face { width: 40px; height: 40px; border-radius: 99px; background: color-mix(in oklab, var(--brand) 14%, transparent); color: var(--brand); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
  .people b { display: block; font-size: 15px; font-weight: 500; }
  .people small { font-size: 13px; color: var(--muted-foreground); }
}

.demo-stage .panel.sales-rules {
  .box { padding: 24px; }
  .rule { display: grid; gap: 12px; align-content: center; }
  .rule small { font-size: 13.5px; color: var(--muted-foreground); }
  .rule p { font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
  .stages ol { display: grid; gap: 0; }
  .stages li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
  .stages li:first-child { border-top: 0; }
  .stages span { font-size: 14px; color: var(--muted-foreground); }
  .stages b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .stages li:last-child b { color: var(--brand); }
}

.demo-stage .panel.sales-rhythm {
  .box { padding: 22px 24px; }
  table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
  th { text-align: left; font-weight: 400; font-size: 13px; color: var(--muted-foreground); padding: 0 10px 10px 0; }
  td { padding: 12px 10px 12px 0; border-top: 1px solid var(--border); vertical-align: top; }
  td:first-child { font-weight: 500; }
  td:nth-child(2) { white-space: nowrap; }
  .late { color: var(--brand); font-weight: 600; }
  .segment { display: grid; align-content: center; gap: 4px; }
  .segment small { font-size: 13.5px; color: var(--muted-foreground); }
  .segment p { font-size: 18px; font-weight: 600; }
  .segment b { font-size: 34px; font-weight: 600; line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; }
}

.demo-stage .panel.sales-tasks {
  .box { padding: 22px 24px; }
  .tabs { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--muted-foreground); border-bottom: 1px solid var(--border); }
  .tabs span { padding-bottom: 10px; }
  .tabs .on { color: var(--foreground); font-weight: 500; box-shadow: inset 0 -2px var(--brand); }
  .group { margin-top: 18px; font-size: 13px; color: var(--muted-foreground); }
  .task { display: grid; gap: 2px 16px; padding: 12px 0; border-top: 1px solid var(--border); }
  .group + .task { border-top: 0; }
  .task b { font-size: 15px; font-weight: 500; }
  .task small { font-size: 13.5px; color: var(--muted-foreground); }
  .task p { grid-column: 1 / -1; font-size: 13.5px; color: var(--brand); }
}

@media (min-width: 1024px) {
  .demo-stage .panel:is(.sales-account, .sales-rules, .sales-rhythm, .sales-tasks) { display: grid; }
  .demo-stage .panel.sales-account { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .demo-stage .panel.sales-account .box { padding: 30px 34px; }
  .demo-stage .panel.sales-account h4 { font-size: 28px; }
  .demo-stage .panel.sales-account .figures dd { font-size: 30px; }
  .demo-stage .panel.sales-rules { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .demo-stage .panel.sales-rules .box { padding: 30px 34px; }
  .demo-stage .panel.sales-rules .rule p { font-size: 26px; }
  .demo-stage .panel.sales-rules .stages { display: grid; align-content: center; }
  .demo-stage .panel.sales-rules .stages ol { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .demo-stage .panel.sales-rules .stages li { flex-direction: column; justify-content: flex-start; gap: 6px; border-top: 2px solid var(--border); padding: 14px 0 0; }
  .demo-stage .panel.sales-rules .stages li:first-child { border-top: 2px solid var(--border); }
  .demo-stage .panel.sales-rules .stages li:last-child { border-top-color: var(--brand); }
  .demo-stage .panel.sales-rules .stages b { font-size: 30px; }
  .demo-stage .panel.sales-rhythm { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .demo-stage .panel.sales-rhythm .box { padding: 28px 34px; }
  .demo-stage .panel.sales-rhythm table { font-size: 16px; }
  .demo-stage .panel.sales-tasks .box { padding: 28px 34px; }
  .demo-stage .panel.sales-tasks .task { grid-template-columns: minmax(0, 1fr) auto; }
  .demo-stage .panel.sales-tasks .task small { text-align: right; }
  .demo-stage .panel.sales-tasks .task b { font-size: 16px; }
}
