.walkthrough[hidden], .walkthrough [hidden] { display: none; }
.walkthrough { margin-block: 36px 48px; padding: 32px; border-radius: 28px; background: #fff; box-shadow: 0 15px 45px -25px #785d7c55; scroll-margin-top: 24px; }
.demo-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.demo-header h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(25px, 2.5vw, 32px); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; }
.demo-header p { color: var(--ink-muted); font-size: 17px; line-height: 1.5; margin-top: 10px; }
.walkthrough button { cursor: pointer; }
.demo-action, .demo-quiet, .demo-context button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 16px; padding: 10px 18px; border-radius: 99px; }
.demo-action { border: 0; background: #eee7f1; color: #50375f; }
.demo-action:hover { background: #e3d8e9; }
.demo-action .icon { width: 20px; height: 20px; }
.demo-quiet { border: 1px solid #d9d2df; background: transparent; color: var(--ink-soft); }
.demo-quiet:hover { background: #f5f1fa; }
.demo-quiet:disabled { cursor: default; color: #797080; border-color: #e9e4ed; background: #faf8fb; }
#demo-close { flex: none; }
#demo-close span { font-size: 22px; line-height: 1; }
.demo-context { display: flex; gap: 10px; margin: 24px 0 18px; flex-wrap: wrap; }
.demo-context button { background: #f5f4f8; border: 1px solid transparent; color: var(--ink-soft); }
.demo-context button .icon { width: 20px; height: 20px; }
.demo-context button[aria-pressed="true"] { border-color: #6d28d9; background: #f3effd; color: #5720ae; }
.demo-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0; margin: 0 0 28px; border-bottom: 1px solid #e9e4ed; }
.demo-steps button { width: 100%; display: flex; align-items: center; gap: 9px; background: transparent; border: 0; border-bottom: 3px solid transparent; min-height: 54px; padding: 8px 8px 12px; color: var(--ink-muted); font-size: 16px; }
.demo-steps button span { display: inline-flex; align-items: center; justify-content: center; background: #f5f4f8; border-radius: 50%; width: 27px; height: 27px; flex: none; font-size: 14px; font-variant-numeric: tabular-nums; }
.demo-steps button[aria-current="step"] { color: #5720ae; border-bottom-color: #6d28d9; font-weight: 700; }
.demo-steps button[aria-current="step"] span { background: #6d28d9; color: white; }
.demo-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 38px; align-items: start; min-height: 335px; }
.demo-visual { margin: 0; }
.demo-visual img { width: 100%; height: 300px; object-fit: cover; border-radius: 16px; }
.demo-visual > p { color: var(--ink-muted); font-size: 15px; margin-top: 10px; }
.demo-content { min-width: 0; }
.demo-scene h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 25px; font-weight: 500; line-height: 1.25; letter-spacing: -.025em; }
.demo-scene > p { margin: 14px 0 20px; color: var(--ink-soft); font-size: 18px; line-height: 1.5; max-width: 55ch; }
.demo-details { margin: 20px 0; }
.demo-details > div { display: grid; grid-template-columns: 85px minmax(0, 1fr); gap: 10px; padding-block: 9px; border-bottom: 1px solid #eee9f0; }
.demo-details dt { color: var(--ink-muted); font-size: 15px; }
.demo-details dd { margin: 0; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.demo-feedback { display: flex; align-items: center; gap: 12px; background: #f3effd; border-radius: 12px; padding: 14px; margin-top: 18px; color: #483064; font-size: 16px; line-height: 1.5; }
.demo-feedback strong, .demo-feedback p > span { display: block; }
.demo-check { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #6d28d9; border-radius: 50%; width: 30px; height: 30px; flex: none; }
.demo-label-preview { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 20px; border: 2px solid var(--ink); border-radius: 8px; padding: 18px; margin-top: 20px; background: white; }
.demo-label-preview strong { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 28px; letter-spacing: -.025em; line-height: 1.1; }
.demo-label-preview span { display: block; color: var(--ink-muted); margin-top: 8px; font-size: 15px; }
.demo-label-preview .icon { width: 58px; height: 58px; stroke-width: 1.5; }
.demo-label-preview small { grid-column: 1 / -1; color: var(--ink-muted); font-size: 12px; margin-top: 14px; }
#demo-search-form label { display: block; color: var(--ink-soft); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.demo-search-row { display: flex; gap: 10px; }
#demo-search { min-width: 0; width: 100%; min-height: 46px; border: 1px solid #c7bed2; border-radius: 10px; font: inherit; font-size: 17px; padding: 10px 12px; color: var(--ink); caret-color: var(--focus); background: white; }
#demo-search::placeholder { color: var(--ink-muted); opacity: 1; }
.demo-try-search { margin-top: 12px; }
.demo-search-feedback { margin-top: 18px; font-size: 16px; line-height: 1.45; color: var(--ink-muted); }
.demo-found-result { margin-top: 12px; padding: 14px 16px; background: #f3effd; border-radius: 12px; color: var(--ink); }
.demo-found-result strong { font-size: 18px; }
.demo-found-result p { margin-top: 5px; }
.demo-found-result p:last-child { display: flex; align-items: center; gap: 5px; color: var(--ink-soft); }
.demo-found-result .icon { width: 17px; height: 20px; }
.demo-footer { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid #e9e4ed; }
#demo-next { margin-left: auto; }
.demo-note { margin-top: 18px; color: var(--ink-muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 900px) {
  .walkthrough { padding: 24px; }
  .demo-body { gap: 24px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .demo-visual img { height: 260px; }
  .demo-header h2 { font-size: 28px; }
  .demo-scene h3 { font-size: 25px; }
  .demo-scene > p { font-size: 17px; }
}
@media (max-width: 600px) {
  .walkthrough { padding: 18px; border-radius: 22px; margin-block: 28px 36px; }
  .demo-header { flex-wrap: wrap; gap: 12px; }
  .demo-header h2 { font-size: 25px; }
  .demo-header p { font-size: 16px; }
  #demo-close { order: -1; margin-left: auto; font-size: 14px; }
  .demo-context { gap: 8px; margin-top: 20px; }
  .demo-context button { flex: 1; font-size: 14px; padding-inline: 9px; gap: 6px; }
  .demo-steps { gap: 3px; margin-bottom: 20px; }
  .demo-steps button { flex-direction: column; font-size: 12px; gap: 6px; padding-inline: 0; }
  .demo-body { display: flex; flex-direction: column; gap: 22px; min-height: 0; }
  .demo-visual { width: 100%; }
  .demo-visual img { height: 175px; object-position: center 56%; }
  .demo-visual > p { font-size: 13px; margin-top: 8px; }
  .demo-content { width: 100%; }
  .demo-scene h3 { font-size: 24px; }
  .demo-scene > p { font-size: 16px; margin-block: 12px 16px; }
  .demo-footer { flex-wrap: wrap; gap: 8px; }
  .demo-footer button { padding-inline: 13px; font-size: 14px; }
  #demo-restart { order: 3; width: 100%; }
  .demo-search-row { gap: 7px; }
  .demo-search-row .demo-action { padding-inline: 13px; }
  .demo-details > div { grid-template-columns: 65px minmax(0, 1fr); }
  .demo-label-preview { padding: 14px; gap: 12px; }
  .demo-label-preview strong { font-size: 25px; }
  .demo-label-preview .icon { width: 44px; height: 44px; }
}
@media (forced-colors: active) {
  .demo-action, .demo-context button, .demo-found-result { border: 1px solid ButtonText; }
  .demo-steps button[aria-current="step"] { border-bottom-color: Highlight; }
}
