.tour-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; background: #f5f7fa; }
.tour-page > .site-header { flex-shrink: 0; }
.tour-main { display: flex; flex: 1 1 0; flex-direction: column; gap: 8px; min-height: 0; padding-top: 12px; }
.tour-intro { display: flex; flex-shrink: 0; justify-content: space-between; align-items: center; gap: 16px; }
.tour-intro h1 { margin: 0; font-size: 26px; line-height: 1.25; }
.tour-sample { color: #667386; font-size: 10px; white-space: nowrap; }
.tour-sample > span { margin-right: 5px; color: #2563eb; }
.tour-home { margin-left: auto; color: #5d6879; font-size: 13px; }
.tour-home:hover { color: #2563eb; }
.tour-chapters { display: grid; flex-shrink: 0; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.tour-chapters a { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 10px; border: 1px solid transparent; border-radius: 6px; color: #667386; font-size: 11px; font-weight: 600; }
.tour-chapters a > span { display: grid; place-items: center; flex-shrink: 0; width: 21px; height: 21px; border: 1px solid #d8dee8; border-radius: 50%; font-size: 9px; }
.tour-chapters a:hover { color: #1d4ed8; background: #edf2fa; }
.tour-chapters a[aria-selected='true'] { border-color: #ccdbf7; color: #1d4ed8; background: #eaf1fe; }
.tour-chapters a[aria-selected='true'] > span { background: #2563eb; border-color: #2563eb; color: white; }
.tour-player { display: flex; flex: 1 1 0; flex-direction: column; align-self: center; width: 100%; max-width: min(100%, max(440px, calc((100dvh - 280px) * 1.44))); min-height: 0; overflow: hidden; overflow-anchor: none; border: 1px solid #d8dee8; border-radius: 10px; background: white; box-shadow: 0 12px 35px #17212f09; }
#demo-viewer { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; }
.tour-screen-shell { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; background: #e9edf4; }
.tour-screen-toolbar { display: flex; flex: 0 0 48px; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; padding: 6px 14px; color: #c1cddd; background: #172b49; font-size: 9px; letter-spacing: .07em; }
.tour-screen-heading { min-width: 0; }
.tour-screen-kind { display: flex; align-items: center; gap: 7px; font-size: 7px; }
.tour-screen-heading h2 { overflow: hidden; margin-top: 3px; color: white; font-size: 13px; line-height: 1.3; letter-spacing: -.01em; white-space: nowrap; text-overflow: ellipsis; }
.tour-live-dot { flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: #81aaf4; }
.tour-screen-actions { display: flex; flex-shrink: 0; align-items: center; gap: 12px; white-space: nowrap; }
.tour-screen-toolbar button { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0; border: 0; color: white; background: none; font-size: 10px; letter-spacing: 0; }
.tour-screen-toolbar button > span:first-child { font-size: 15px; }
.tour-screen-toolbar button:hover { color: #b4d0ff; }
.tour-screen-stage { display: flex; flex: 1 1 0; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
.tour-screen { position: relative; flex: 0 0 auto; margin: 0; background: white; box-shadow: 0 1px 8px #17212f12; }
.tour-screen > img { display: block; width: 100%; height: 100%; max-width: none; }
.tour-hotspots { position: absolute; inset: 0; pointer-events: none; }
.tour-hotspot { position: absolute; display: grid; place-items: center; min-width: 28px; min-height: 28px; padding: 0; border: 2px solid #2563eb; border-radius: 5px; background: #2563eb0a; box-shadow: 0 0 0 4px #2563eb16; transform: translate(-50%, -50%); pointer-events: auto; transition: background .15s, box-shadow .15s; }
.tour-hotspot:hover, .tour-hotspot:focus-visible { background: #2563eb20; box-shadow: 0 0 0 6px #2563eb20; }
.tour-hotspot > span { position: absolute; display: grid; place-items: center; top: -10px; right: -10px; width: 19px; height: 19px; color: white; background: #2563eb; border: 2px solid white; border-radius: 50%; box-shadow: 0 1px 5px #17212f30; font-size: 9px; font-weight: 700; }
.tour-screen-caption { display: flex; flex: 0 0 28px; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; padding: 4px 12px; color: #7b8594; font-size: 9px; }
.tour-screen-caption > [data-image-caption] { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tour-caption-mobile { display: none; }
.tour-document-link { flex-shrink: 0; color: #1d4ed8; font-size: 10px; font-weight: 600; white-space: nowrap; }
.tour-document-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tour-image-error { padding: 20px; color: #526276; font-size: 12px; text-align: center; }
.tour-progress-track { flex: 0 0 3px; background: #eef2f8; }
.tour-progress-track > span { display: block; height: 100%; background: #2563eb; transition: width .2s; }
.tour-navigation { display: flex; flex: 0 0 52px; align-items: center; gap: 12px; min-width: 0; padding: 6px 14px; background: #fbfcfe; }
.tour-subtle-button { flex-shrink: 0; min-height: 34px; padding: 4px 0; border: 0; color: #667386; background: none; font-size: 10px; font-weight: 600; }
.tour-subtle-button:hover { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
.tour-subtle-button:disabled { opacity: .4; }
.tour-replay { margin-left: auto; }
.tour-position { color: #7b8594; font-size: 9px; white-space: nowrap; }
.tour-navigation > .button { flex: 0 1 auto; min-width: 0; min-height: 36px; overflow: hidden; padding: 7px 12px; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.tour-disclaimer { flex-shrink: 0; padding: 0 8px; text-align: center; color: #7b8594; font-size: 9px; line-height: 1.4; }
.tour-footer { display: flex; flex-shrink: 0; align-items: center; gap: 18px; min-height: 30px; padding-block: 5px; color: #7b8594; font-size: 9px; }
.tour-footer > span { margin-right: auto; }
.tour-footer a:hover { color: #2563eb; }
.tour-finish { display: grid; flex: 1 1 0; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 28px; min-height: 0; overflow: auto; padding: 26px; background: linear-gradient(120deg, white 25%, #f5f8ff); }
.tour-finish h2 { margin-top: 10px; font-size: clamp(27px, 2.5vw, 36px); }
.tour-finish-copy > p:not(.eyebrow) { max-width: 450px; margin-top: 14px; font-size: 12px; }
.tour-finish-actions { display: grid; justify-items: start; gap: 9px; margin-top: 18px; }
.tour-finish-actions .button { min-height: 36px; padding: 8px 12px; font-size: 11px; }
.tour-finish-copy > p.tour-small { font-size: 10px; }
.tour-small a { color: #2563eb; }
.tour-finish-path { padding-left: 24px; border-left: 1px solid #dce6f7; }
.tour-path-label { color: #2563eb; font-size: 8px; font-weight: 650; letter-spacing: .09em; }
.tour-finish-path h3 { max-width: 330px; margin-top: 10px; font-size: 20px; line-height: 1.3; }
.tour-finish-path ol { display: grid; gap: 12px; margin: 18px 0; padding: 0; list-style: none; color: #526276; font-size: 11px; }
.tour-finish-path li { display: flex; align-items: center; gap: 10px; }
.tour-finish-path li > span { display: grid; place-items: center; flex-shrink: 0; width: 21px; height: 21px; border: 1px solid #cbdcfb; border-radius: 50%; color: #2563eb; font-size: 9px; }
.tour-finish-path > p { color: #7b8594; font-size: 9px; }
.tour-zoom { position: fixed; inset: 0; width: min(1600px, calc(100vw - 24px)); max-width: none; height: calc(100dvh - 24px); max-height: none; padding: 0; overflow: hidden; border: 1px solid #d8dee8; border-radius: 9px; background: white; box-shadow: 0 20px 90px #0005; }
.tour-zoom[open] { display: flex; flex-direction: column; }
.tour-zoom::backdrop { background: #101e32bf; }
.tour-zoom-toolbar { display: flex; flex-shrink: 0; align-items: center; gap: 16px; min-height: 48px; padding: 8px 12px; border-bottom: 1px solid #d8dee8; }
.tour-zoom-toolbar h2 { font-size: 13px; letter-spacing: -.02em; }
.tour-zoom-toolbar > span { margin-left: auto; color: #7b8594; font-size: 10px; }
.tour-zoom-toolbar .button { min-height: 32px; padding: 5px 10px; font-size: 11px; }
.tour-zoom-scroll { display: flex; flex: 1 1 0; align-items: center; justify-content: center; min-width: 0; min-height: 0; overflow: hidden; background: #edf1f6; }
.tour-zoom-scroll img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.tour-noscript { padding: 12px 0; font-size: 12px; }
@media (max-width: 760px) {
  .tour-main { gap: 7px; padding-top: 9px; }
  .tour-intro h1 { font-size: 21px; }
  .tour-sample { font-size: 8px; }
  .tour-sample > span { display: none; }
  .tour-chapters { gap: 2px; }
  .tour-chapters a { justify-content: center; gap: 4px; min-height: 34px; padding: 4px 1px; font-size: 9px; white-space: nowrap; }
  .tour-chapters a > span { width: 16px; height: 16px; font-size: 8px; }
  .tour-player { flex: 1 1 0; max-width: 100%; max-height: 471px; }
  .tour-screen-toolbar { flex-basis: 46px; gap: 8px; padding: 5px 10px; font-size: 8px; }
  .tour-screen-kind { font-size: 6px; }
  .tour-screen-heading h2 { font-size: 11px; }
  .tour-screen-actions { gap: 7px; }
  .tour-screen-toolbar button { font-size: 9px; }
  .tour-screen-stage { flex: 1 1 0; height: auto; }
  .tour-screen-caption { flex-basis: 28px; gap: 6px; padding-inline: 9px; font-size: 8px; }
  .tour-document-link { font-size: 9px; }
  .tour-navigation { flex-wrap: wrap; flex-basis: 72px; gap: 1px 12px; padding: 5px 10px; }
  .tour-navigation > .button { flex: 0 0 100%; order: -1; min-height: 30px; padding: 4px 8px; font-size: 10px; }
  .tour-subtle-button { min-height: 27px; font-size: 9px; }
  .tour-replay { margin-left: auto; }
  .tour-position { font-size: 8px; }
  .tour-disclaimer { font-size: 8px; }
  .tour-home { font-size: 10px; }
  .tour-footer { gap: 10px; min-height: 28px; font-size: 8px; }
  .tour-footer > a[href='/import-balance-comptable-excel/'] { display: none; }
  .tour-finish { display: block; padding: 20px; }
  .tour-finish h2 { font-size: 26px; }
  .tour-finish-copy > p:not(.eyebrow) { font-size: 11px; }
  .tour-finish-actions { justify-items: stretch; }
  .tour-finish-path { margin-top: 18px; padding: 16px 0 0; border-left: 0; border-top: 1px solid #dce6f7; }
  .tour-finish-path h3 { font-size: 17px; }
  .tour-zoom { width: calc(100vw - 12px); height: calc(100dvh - 12px); }
  .tour-zoom-toolbar { gap: 8px; min-height: 44px; padding: 6px 9px; }
  .tour-zoom-toolbar h2 { font-size: 11px; }
  .tour-zoom-toolbar > span { display: none; }
  .tour-zoom-toolbar .button { margin-left: auto; }
}
@media (max-height: 560px) {
  .tour-page { height: auto; min-height: 100vh; min-height: 100dvh; overflow: auto; }
  .tour-main { flex: 0 0 auto; }
  .tour-player { flex: 0 0 auto; height: max(300px, calc(100dvh - 170px)); max-width: 900px; }
  .tour-screen-stage { flex: 1 1 0; height: auto; }
  .tour-finish { align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-page *, .tour-page *::before, .tour-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
