/* /industries/tyres/ (components/site/demo_stage/industry_tyres/): what its three scenes and four section panels add to demo_stage.css. */
.demo-stage :is([data-demo-scene=size], [data-demo-scene=fitting], [data-demo-scene=workshop]) {
  .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: 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; }
  .wait { font-size: 13px; color: var(--muted-foreground); padding: 0 4px 8px; animation: ds-breathe 1.4s ease-in-out infinite; }
  .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; color: var(--muted-foreground); }
  .box-in .typed { color: var(--foreground); }
  .box-in .typed:not(:empty) + .hint { display: none; }

  .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; color: var(--foreground); font-variant-numeric: tabular-nums; }
  .tool { margin-left: auto; flex: none; font-size: 12px; font-weight: 400; background: var(--card); border-radius: 6px; padding: 1px 8px; color: var(--muted-foreground); }
  .happened { text-align: center; font-size: 12.5px; font-weight: 500; color: var(--brand); padding: 2px 0 10px; }
  .picks { display: grid; gap: 8px; margin-top: 8px; }
  .pick { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--border); 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; }
  .state.solved { background: var(--ds-good-bg); color: var(--ds-good); }
  .sheet span svg { width: 18px; height: 18px; stroke-width: 2.6; }
}

.demo-stage [data-demo-scene=size] {
  .phone { display: flex; flex-direction: column; }
  .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; }
  .bar { margin: 12px 10px 0; display: flex; align-items: center; gap: 10px; min-height: 48px; border-radius: 24px; background: var(--card); padding: 6px 6px 6px 14px; box-shadow: 0 10px 24px -16px rgb(0 0 0 / .35); }
  .query { flex: 1; min-width: 0; min-height: 1.3em; font-size: 13px; line-height: 1.3; }
  .go { width: 36px; height: 36px; border-radius: 99px; flex: none; display: grid; place-items: center; background: var(--brand); color: var(--brand-foreground); }
  .talk { margin: 10px 10px 8px; background: var(--card); border-radius: 18px; padding-top: 14px; }
  .box-in { margin: 0 10px 14px; background: var(--card); }
  :is(.talk, .box-in) { opacity: 0; transform: translateY(10px); transition: opacity .26s var(--ds-ease), transform .26s var(--ds-ease); }
  :is(.talk, .box-in).show { opacity: 1; transform: none; }
  .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 6px; }
  .tiles li { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: 12px; padding: 6px; font-size: 12px; line-height: 1.25; }
  .tiles img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--muted); }
  .tiles b { font-weight: 500; margin-top: 6px; }
  .tiles li > span:not(.btn) { color: var(--muted-foreground); margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
  .buy { margin-top: auto; height: 30px; width: 100%; transition: transform .15s var(--ds-ease); }
  .buy.picked { transform: scale(.96); }
  .sheet { z-index: 3; }
}

.demo-stage [data-demo-scene=workshop] {
  .slack { display: flex; flex-direction: column; }
  .channel { font-size: 13px; color: var(--muted-foreground); padding-bottom: 12px; border-bottom: 1px solid var(--border); }
  .channel b { color: var(--foreground); font-weight: 600; }
  .gap { padding-top: 14px; }
  .work { margin-bottom: 0; }
  .post { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; padding-top: 16px; font-size: 13.5px; line-height: 1.45; }
  .post.reply { margin-left: 46px; }
  .post .face { width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; background: var(--muted); font-weight: 600; font-size: 14px; }
  .post .face.mark { background: var(--ds-bezel); color: #fff; }
  .post .face svg { width: 15px; height: 15px; }
  .post b { display: block; font-weight: 600; }
  .post b small { font-weight: 400; font-size: 12px; color: var(--muted-foreground); margin-left: 4px; }
  .post .link { display: inline-block; margin-top: 4px; color: var(--brand); font-weight: 500; font-size: 13px; }

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

@media (min-width: 1024px) {
  .demo-stage [data-demo-scene=size] .picks { grid-template-columns: 1fr 1fr; }
  .demo-stage [data-demo-scene=workshop] :is(.side, .slack) { height: auto; }
  .demo-stage [data-demo-scene=workshop] .slack { min-height: 420px; }
}

/* Section panels: still, fluid from 360 px. */
.demo-stage .panel.tyre-catalogue {
  .product { display: grid; gap: 20px; padding: 24px; }
  img { width: 100%; max-width: 320px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--muted); }
  .name { display: block; font-size: 18px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
  dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  :is(dt, dd) { padding: 10px 0; border-top: 1px solid var(--border); font-size: 14.5px; }
  dt { color: var(--muted-foreground); }
  dd { font-weight: 500; font-variant-numeric: tabular-nums; }
  .synced { margin-top: 12px; font-size: 12.5px; color: var(--muted-foreground); }
}

.demo-stage .panel.tyre-calendar {
  .box { padding: 22px 24px; }
  header b { display: block; font-size: 18px; font-weight: 600; }
  header small { display: block; font-size: 13px; color: var(--muted-foreground); margin-top: 2px; }
  .tools { margin-top: 12px; }
  .tools li { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--border); }
  .tools b { display: block; font-size: 15px; font-weight: 600; }
  .tools small { display: block; font-size: 12.5px; color: var(--muted-foreground); }
  .modes { display: flex; flex-wrap: wrap; gap: 4px; }
  .modes span { border-radius: 99px; padding: 5px 12px; font-size: 13px; color: var(--muted-foreground); }
  .modes .on { background: color-mix(in oklab, var(--brand) 11%, var(--card)); color: var(--brand); font-weight: 600; }
  .last { border-top: 1px solid var(--border); padding-top: 14px; }
  .last small { display: block; font-size: 12.5px; color: var(--muted-foreground); }
  .last p { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 16px; margin-top: 4px; font-size: 14.5px; }
  .last time { color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
  .last .sent { margin-top: 6px; }
}

.demo-stage .panel.tyre-record {
  .box { padding: 22px 24px; }
  .person { margin-bottom: 12px; }
  .facts { margin-bottom: 20px; }
  .cols { display: grid; gap: 22px; }
  .about > small { display: block; font-size: 12.5px; color: var(--muted-foreground); margin-bottom: 6px; }
  .about p { font-size: 15px; line-height: 1.5; }
  .about dl { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; margin-top: 14px; }
  .about :is(dt, dd) { padding: 9px 0; border-top: 1px solid var(--border); font-size: 14.5px; }
  .about dt { color: var(--muted-foreground); }
  .about dd { font-weight: 500; }
  .history li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--border); font-size: 14.5px; }
  .history time { flex: none; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
}

.demo-stage .panel.still.tyre-season .phone { height: auto; }
.demo-stage .panel.tyre-season {
  .sms { display: flex; flex-direction: column; background: var(--card); color: var(--foreground); }
  .sms header { padding: 18px 16px 12px; text-align: center; 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 { min-height: 140px; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 12px 6px; }
  .bubble { max-width: 86%; width: fit-content; border-radius: 17px; border-bottom-left-radius: 5px; padding: 9px 13px; margin-bottom: 8px; background: var(--muted); font-size: 14px; line-height: 1.42; }
  .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; color: var(--muted-foreground); }
  .result { padding: 22px 24px; align-self: center; }
  .result header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .result header b { font-size: 18px; font-weight: 600; }
  .state { 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; }
}

@media (min-width: 1024px) {
  .demo-stage .panel:is(.tyre-catalogue, .tyre-calendar, .tyre-record, .tyre-season) { padding: 28px; }
  .demo-stage .panel.tyre-catalogue .product { grid-template-columns: 300px minmax(0, 1fr); align-items: center; column-gap: 36px; padding: 28px 32px; }
  .demo-stage .panel.tyre-calendar .box { justify-self: center; width: 100%; max-width: 820px; padding: 26px 32px; }
  .demo-stage .panel.tyre-calendar .tools li { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px; }
  .demo-stage .panel.tyre-record .box { padding: 26px 32px; }
  .demo-stage .panel.tyre-record .top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: center; column-gap: 32px; margin-bottom: 18px; }
  .demo-stage .panel.tyre-record .top > * { margin-bottom: 0; }
  .demo-stage .panel.tyre-record .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
  .demo-stage .panel.still.tyre-season { grid-template-columns: 334px minmax(0, 1fr); align-items: center; column-gap: 28px; }
  .demo-stage .panel.tyre-season .result { padding: 26px 32px; }
}
