/* Demo-only frame: the working product is the hero. No live workspace styling
   or transport changes. Keep controls usable at 320px and 200% text zoom. */
:root { --demo-strip: 76px; }
.demo-strip {
  position: relative; z-index: 20; min-height: var(--demo-strip);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding: 12px 24px;
  background: #fff; color: #17283e; border-bottom: 1px solid #d8e1eb;
  font: 500 15px/1.4 Barlow, system-ui, sans-serif;
}
.demo-strip__title { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 18px; min-width: 0; }
.demo-strip__title a { grid-row: 1 / 3; display: inline-flex; align-items: center; min-height: 44px; padding-right: 18px; border-right: 1px solid #d8e1eb; color: #41536d; text-decoration: underline; text-underline-offset: 4px; }
.demo-strip__title a:hover { color: #234cc9; }
.demo-strip__title strong { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.demo-strip__title span { color: #52627a; font-size: .8125rem; }
.demo-strip form { display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0; }
.demo-strip form label { color: #52627a; font-size: .8125rem; }
.demo-strip button, .demo-strip select {
  font: 600 .875rem/1.3 Barlow, system-ui, sans-serif;
  min-height: 44px; min-width: 0; border: 1px solid #a8b6c9; border-radius: 6px;
  padding: 8px 12px; background: #fff; color: #20334e; cursor: pointer;
}
.demo-strip select { max-width: 100%; background: #f5f7fa; }
.demo-strip button:hover { background: #edf2fa; border-color: #768dab; }
.demo-strip #demo-tour-toggle { background: #234cc9; border-color: #234cc9; color: #fff; }
.demo-strip #demo-tour-toggle:hover { background: #18399f; }
.demo-strip #demo-reset { border-color: transparent; color: #52627a; }
.demo-strip :focus-visible { outline: 2px solid #234cc9; outline-offset: 3px; }
.demo-notice {
  position: fixed; z-index: 110; bottom: calc(82px + env(safe-area-inset-bottom,0px)); right: 16px;
  max-width: min(calc(100vw - 32px),360px); margin: 0; padding: 14px 18px;
  background: #20334e; color: #fff; border-radius: 8px; box-shadow: 0 8px 24px #17283e24;
  font: 500 .9375rem/1.5 Barlow,system-ui,sans-serif; pointer-events: none;
}
.demo-notice:empty { display: none; }
.layout, .bare { min-height: calc(100dvh - var(--demo-strip)); }
@media (min-width: 960px) { .layout .sidenav { top: 0; height: calc(100dvh - var(--demo-strip)); } }
@media (min-width: 681px) and (max-width: 1139px) { :root { --demo-strip: 124px; } .demo-strip form { flex-wrap: wrap; } }
@media (max-width: 680px) {
  :root { --demo-strip: 140px; }
  .demo-strip { padding: 10px 12px 12px; gap: 10px; }
  .demo-strip__title { width: 100%; grid-template-columns: 1fr auto; gap: 1px 10px; }
  .demo-strip__title strong { grid-row: 1; grid-column: 1; }
  .demo-strip__title span { grid-row: 2; grid-column: 1 / -1; font-size: .75rem; }
  .demo-strip__title a { grid-column: 2; grid-row: 1; min-height: 44px; padding: 0; border: 0; font-size: .8125rem; }
  .demo-strip form { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) auto; width: 100%; gap: 6px; }
  .demo-strip form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .demo-strip button, .demo-strip select { width: 100%; padding-inline: 8px; font-size: .8125rem; }
}
/* Optional coach. A quiet product help sheet rather than a marketing modal.
   Behavior, copy and step routing are owned by demo-tour.js. */
.demo-tour[hidden] { display: none !important; }
.demo-tour {
  position: fixed; z-index: 100; right: 20px; top: 96px; width: min(360px,calc(100vw - 32px));
  max-height: calc(100dvh - 120px); overflow: auto; overscroll-behavior: contain;
  padding: 22px; background: #fff; color: #17283e; border: 1px solid #bac8d9;
  border-radius: 12px; box-shadow: 0 12px 36px #17283e26;
  font: 400 15px/1.5 Barlow,system-ui,sans-serif;
}
.demo-tour header, .demo-tour nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.demo-tour__eyebrow { font-size: .875rem; font-weight: 600; letter-spacing: 0; color: #52627a; }
.demo-tour button, .demo-tour select {
  font: 600 .875rem/1.3 Barlow,system-ui,sans-serif; min-height: 44px;
  border: 1px solid #a8b6c9; border-radius: 6px; background: #fff; color: #20334e;
  padding: 10px 12px; cursor: pointer; max-width: 100%;
}
.demo-tour button:hover:not(:disabled) { background: #edf2fa; }
.demo-tour header button { font-size: 24px; width: 44px; padding: 4px; border-color: transparent; }
.demo-tour button:disabled { color: #69788c; background: #f1f4f8; cursor: default; }
.demo-tour :focus-visible { outline: 2px solid #234cc9; outline-offset: 3px; }
.demo-tour__count { font-size: .8125rem; color: #52627a; margin: 16px 0 8px; font-variant-numeric: tabular-nums; }
.demo-tour h2 { font: 700 26px/1.15 Barlow,system-ui,sans-serif; letter-spacing: -.025em; margin: 0 0 12px; text-wrap: balance; }
.demo-tour__detail { margin: 0 0 16px; color: #40516b; }
.demo-tour__cue { border-left: 3px solid #234cc9; background: #f2f5fb; padding: 12px 14px; font-size: .875rem; }
.demo-tour .demo-tour__open { width: 100%; background: #234cc9; color: #fff; border-color: #234cc9; margin: 8px 0 16px; }
.demo-tour .demo-tour__open:hover { background: #18399f; }
.demo-tour__dots { letter-spacing: 0; color: #234cc9; font-size: .8125rem; }
.demo-tour footer { border-top: 1px solid #dce3ed; margin-top: 16px; padding-top: 12px; color: #52627a; font-size: .8125rem; }
.demo-tour label { display: block; margin: 12px 0 6px; font-weight: 600; }
.demo-tour select { width: 100%; margin-bottom: 10px; }
.demo-tour progress { display: block; width: 100%; height: 6px; margin: 12px 0; border: 0; border-radius: 4px; overflow: hidden; accent-color: #234cc9; background: #e5ebf4; }
.demo-tour progress::-webkit-progress-bar { background: #e5ebf4; }
.demo-tour progress::-webkit-progress-value { background: #234cc9; }
.demo-tour progress::-moz-progress-bar { background: #234cc9; }
.demo-tour [data-skip], .demo-tour [data-restart] { color: #40516b; background: transparent; }
.demo-tour__status { color: #40516b; font-size: .875rem; margin: 12px 0; }
.demo-tour__status:empty { display: none; }
@media (max-width: 680px) {
  .demo-tour { top: auto; bottom: calc(76px + env(safe-area-inset-bottom,0px)); right: 12px; width: calc(100vw - 24px); max-height: min(62dvh,520px); padding: 18px; border-radius: 12px; }
  .demo-tour h2 { font-size: 24px; }
  .demo-tour nav button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .demo-strip *, .demo-tour * { animation: none; transition: none; scroll-behavior: auto; } }
