.industry-demo .shell { max-width: 1120px; }
.industry-demo .site-header { min-height: 78px; }
.industry-demo .site-header .button.primary {
  background: transparent; border-color: #bbc7d5; color: var(--navy);
}
.industry-demo .site-header .button.primary:hover { background: var(--navy); color: white; }
.restoring-story .story-grid { visibility: hidden; }
.industry-demo .hero {
  grid-template-columns: minmax(0, 1fr) minmax(235px, 30%);
  gap: 3rem;
  padding-block: clamp(2rem, 4vw, 3.25rem);
}
.industry-demo .hero .eyebrow { margin-bottom: .75rem; }
.industry-demo h1 { max-width: 780px; margin: 0; }
.industry-demo .hero-note { padding: .25rem 0 .25rem 1.2rem; }
.industry-demo .hero-note p { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.industry-demo .workbench { scroll-margin-top: 8px; }
.industry-demo .demo-notice { min-height: 58px; padding-block: .5rem; }
.industry-demo .demo-notice .button { min-height: 44px; padding-block: .5rem; }
.story-grid {
  min-height: 0;
  grid-template-columns: minmax(240px, 31%) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "queue detail" "activity detail";
}
.story-queue { grid-area: queue; padding: 1.4rem 0 0; }
.story-queue .queue-heading { margin-bottom: 1rem; }
.story-queue .inquiry-item { padding-block: 1rem; }
.story-queue .badge, .industry-demo .detail-heading .badge { font-size: .875rem; }
.story-queue .empty {
  margin: 0; padding: .85rem 1.45rem 1.1rem;
  border-block: 1px solid var(--line); background: white;
}
.story-grid .detail { grid-area: detail; padding: clamp(1.25rem, 2.8vw, 2.5rem); }
.industry-demo .detail-heading { gap: .75rem; align-items: center; margin-bottom: 1rem; }
.industry-demo .record-id { display: block; text-transform: uppercase; font-size: .82rem; }
.industry-demo .detail-heading h2 { margin: .35rem 0 0; font-size: clamp(1.45rem, 2.2vw, 2rem); }
.industry-demo .detail-heading .badge { flex: 0 0 auto; }
.industry-demo .badge.done { background: #ddf1e7; color: #215440; }
.industry-demo .detail-heading:has(.story-next-action) { display: grid; }
.story-next-action {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline;
  gap: clamp(.5rem, 2vw, 1rem); padding-block: .65rem; border-block: 1px solid var(--line);
  font-size: 1rem; line-height: 1.45;
}
.story-meta { display: flex; flex-wrap: wrap; gap: .8rem 2.2rem; margin-bottom: 1.2rem; }
.story-meta .owner-tag { text-align: left; line-height: 1.45; }
.story-step { padding: clamp(1rem, 2vw, 1.5rem); margin: 0; }
.story-step h3 { margin: 0 0 .5rem; font-size: 1.15rem; line-height: 1.35; }
.story-step > p { font-size: 1rem; line-height: 1.5; margin-bottom: 1rem; }
.story-step .draft-text { margin: .25rem 0 .85rem; padding: .85rem 1rem; line-height: 1.5; }
.story-step .button, .story-step .text-action { min-height: 44px; }
.text-action {
  color: var(--navy); background: transparent; padding: 6px 2px; border: none;
  font-size: .875rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px;
}
.story-activity {
  grid-area: activity; background: #fbfcfe; border-top: 0; border-right: 1px solid var(--line);
  margin: 0; padding: 1.3rem 1.45rem 1.5rem;
}
.story-activity h2 { font-size: .95rem; margin: 0 0 .8rem; }
.story-activity ol { list-style: none; padding: 0; margin: 0; }
.story-activity li { border-left: 2px solid var(--line); padding: .1rem 0 .9rem .85rem; }
.story-activity li:first-child { border-left-color: #729019; }
.story-activity li:last-child { padding-bottom: .1rem; }
.story-activity li strong, .story-activity li span { display: block; font-size: .875rem; line-height: 1.45; }
.story-activity li span { color: var(--muted); margin-top: .15rem; }
.industry-demo footer { margin-top: 2.4rem; }
.industry-demo footer a { line-height: 1.6; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
@media (max-width: 760px) {
  .industry-demo .site-header { min-height: 66px; }
  .industry-demo .site-header .brand { gap: .5rem; }
  .industry-demo .site-header .brand img { width: 34px; height: 34px; }
  .industry-demo .site-header .button { min-height: 44px; max-width: none; font-size: .8125rem; padding-inline: .65rem; }
  .industry-demo .hero { grid-template-columns: 1fr; gap: .75rem; padding-block: 1.3rem; }
  .industry-demo .hero .eyebrow { margin-bottom: .45rem; }
  .industry-demo h1 { font-size: clamp(1.85rem, 7.1vw, 2.5rem); }
  .industry-demo h1 span { box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .industry-demo .hero-note { padding: 0 0 0 .75rem; }
  .industry-demo .hero-note p { font-size: 1rem; line-height: 1.4; }
  .industry-demo .demo-notice {
    display: grid; grid-template-columns: 1fr auto; gap: 0 .5rem; padding: .55rem .85rem;
  }
  .industry-demo .demo-notice > span { grid-row: 2; grid-column: 1; font-size: .8125rem; }
  .industry-demo .demo-notice .button { grid-row: 1 / 3; grid-column: 2; }
  .story-grid { grid-template: "queue" auto "detail" auto "activity" auto / minmax(0, 1fr); }
  .story-queue { padding: .75rem 0 0; border: 0; }
  .story-queue .queue-heading { margin-bottom: .5rem; padding-inline: .9rem; }
  .story-queue .queue-heading h2 { font-size: 1rem; }
  .story-queue .inquiry-item { padding: .45rem .85rem; }
  .story-queue .inquiry-item .row-top { margin-bottom: .1rem; }
  .story-queue .empty { padding: .45rem .9rem; }
  #queue-start:not(:empty) { padding: .6rem .85rem; border-bottom: 1px solid var(--line); }
  #queue-start .button { width: 100%; min-height: 44px; }
  .story-step:has(.draft-actions:empty) > p { margin-bottom: 0; }
  .story-grid .detail { padding: 1rem .9rem; }
  .industry-demo .detail-heading { margin-bottom: .65rem; }
  .industry-demo .detail-heading h2 { margin-top: .2rem; }
  .story-meta { gap: .5rem 1.5rem; margin-bottom: .85rem; }
  .story-step { padding: .85rem; }
  .story-step .draft-actions { gap: .2rem .75rem; }
  .story-step .draft-actions .text-action { width: 100%; }
  .story-activity { border: 0; border-top: 1px solid var(--line); padding: 1rem; }
  .industry-demo footer { margin-top: 1.5rem; padding-block: 1rem; gap: .8rem 1.2rem; }
}
@media (max-width: 380px) {
  .industry-demo .shell { width: calc(100% - 22px); }
  .industry-demo .hero { padding-block: .9rem; }
  .industry-demo .site-header .button { font-size: .8125rem; padding-inline: .65rem; }
  .industry-demo .detail-heading { flex-wrap: wrap; }
}
