.tour-coach {
  position: fixed;
  z-index: 110;
  width: min(370px, calc(100vw - 24px));
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  color: #0f293e;
  box-shadow: 0 16px 60px #0f293e30;
  font-size: 14px;
  line-height: 1.6;
  display: flex; flex-direction: column; max-height: calc(100dvh - 24px);
}
.tour-body { min-height: 0; overflow-y: auto; }
.tour-coach > :not(.tour-body) { flex-shrink: 0; }
.tour-coach #tour-title { outline: none; }
.tour-coach[hidden], #tour-spotlight[hidden], .tour-coach img[hidden] { display: none; }
.tour-heading, .tour-buttons, .tour-footer { display: flex; align-items: center; gap: 10px; }
.tour-heading, .tour-footer { justify-content: space-between; }
.tour-eyebrow { color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tour-coach h2 { margin: 14px 0 8px; font-size: 21px; font-weight: 700; line-height: 1.25; }
.tour-coach progress { display: block; width: 100%; height: 4px; margin-top: 10px; accent-color: #f97316; }
.tour-coach progress::-webkit-progress-bar { background: #eef1f5; border-radius: 4px; }
.tour-coach progress::-webkit-progress-value { background: #f97316; border-radius: 4px; }
.tour-coach progress::-moz-progress-bar { background: #f97316; border-radius: 4px; }
.tour-coach progress { appearance: none; border: 0; background: #eef1f5; border-radius: 4px; }
.tour-buttons { margin-top: 18px; flex-wrap: wrap; }
.tour-coach button, .tour-library button {
  border-radius: 9px; padding: 9px 13px; font-weight: 600; border: 1px solid #e2e8f0; background: #fff; cursor: pointer;
}
.tour-coach button:disabled, .tour-library button:disabled { opacity: .5; cursor: default; }
.tour-coach button:hover:not(:disabled), .tour-library button:hover:not(:disabled) { background: #f5f7f9; }
button.tour-primary, .tour-library button.tour-primary { background: #0f293e; border-color: #0f293e; color: white; }
button.tour-primary:hover:not(:disabled), .tour-library button.tour-primary:hover:not(:disabled) { background: #20435e; }
.tour-heading button { border: 0; font-size: 22px; line-height: 1; padding: 5px 9px; }
.tour-footer { margin-top: 16px; padding-top: 12px; border-top: 1px solid #eef1f5; font-size: 12px; color: #64748b; }
.tour-footer button { border: 0; padding: 0; font-weight: 400; }
.tour-footer a { text-decoration: underline; }
.tour-hint { margin-top: 12px; padding: 10px 12px; background: #fff7ed; border-radius: 8px; color: #9a3412; font-size: 13px; }
.tour-hint:empty, .tour-save-status:empty { display: none; }
.tour-save-status { margin-top: 10px; color: #9a3412; font-size: 12px; }
.tour-coach img { display: block; width: 100%; margin-top: 14px; border-radius: 10px; }
#tour-spotlight { position: fixed; z-index: 105; border: 3px solid #f97316; border-radius: 10px; box-shadow: 0 0 0 5px #f973161a; pointer-events: none;
  animation: tour-ring 1.8s ease-out infinite; }
@keyframes tour-ring { from { box-shadow: 0 0 0 0 #f9731666; } to { box-shadow: 0 0 0 14px #f9731600; } }
.tour-coach.tour-gliding { transition: left .5s cubic-bezier(.2, .8, .2, 1), top .5s cubic-bezier(.2, .8, .2, 1); }
#tour-spotlight.tour-gliding { transition: left .5s cubic-bezier(.2, .8, .2, 1), top .5s cubic-bezier(.2, .8, .2, 1), width .5s cubic-bezier(.2, .8, .2, 1), height .5s cubic-bezier(.2, .8, .2, 1); }
#tour-hand { position: fixed; left: 0; top: 0; z-index: 111; width: 22px; height: 26px; pointer-events: none; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .3)); }
#tour-hand[hidden] { display: none; }
.tour-ripple { position: fixed; z-index: 110; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 3px solid #f97316; pointer-events: none; animation: tour-ripple .6s ease-out forwards; }
@keyframes tour-ripple { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.tour-coach :focus-visible, .tour-library :focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.tour-library { max-width: 1100px; margin: 0 auto; }
.tour-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding: 32px; border-radius: 20px; background: #0f293e; color: white; }
.tour-hero h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin: 10px 0 16px; }
.tour-hero p { max-width: 55ch; color: #d9e4ed; line-height: 1.7; }
.tour-hero .tour-eyebrow { color: #fdba74; }
.tour-hero button { color: #0f293e; }
.tour-hero img { align-self: center; width: 100%; border-radius: 12px; }
.tour-context { padding: 22px; margin: 24px 0; border: 1px solid #e2e8f0; border-radius: 14px; background: white; }
.tour-context h3 { font-weight: 700; margin-bottom: 5px; }
.tour-context p { font-size: 14px; color: #64748b; margin-bottom: 12px; }
.tour-context-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tour-context label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.tour-context select { width: 100%; padding: 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: white; }
.tour-chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tour-chapter { background: white; border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px; }
.tour-chapter h3 { font-size: 19px; font-weight: 700; margin: 8px 0; }
.tour-chapter p { color: #64748b; font-size: 14px; line-height: 1.6; }
.tour-chapter details { margin-top: 16px; font-size: 13px; }
.tour-chapter summary { cursor: pointer; color: #c2410c; font-weight: 600; }
.tour-chapter ol { list-style: decimal; padding-left: 20px; margin-top: 12px; }
.tour-chapter li { margin: 10px 0; color: #475569; }
.tour-chapter li strong { display: block; color: #0f293e; }
@media (max-width: 640px) {
  .tour-hero, .tour-context-fields, .tour-chapters { grid-template-columns: 1fr; }
  .tour-hero { padding: 24px; gap: 20px; }
  .tour-coach { padding: 16px; max-height: 48dvh; }
  .tour-coach img { max-height: 100px; object-fit: contain; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-coach *, .tour-library * { scroll-behavior: auto; transition: none; }
  #tour-spotlight, .tour-coach, .tour-chapter { animation: none !important; transition: none !important; }
  #tour-hand, .tour-ripple { display: none !important; }
}
.tour-group-title { grid-column: 1 / -1; font-size: 1.15rem; font-weight: 700; margin: 1rem 0 0; }
.tour-library-filters { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tour-library-filters > div { flex: 1 1 240px; }
.tour-library-filters label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; }
.tour-library-filters input, .tour-library-filters select { width: 100%; padding: .7rem; border: 1px solid var(--ev-steel-light); border-radius: .6rem; background: white; }
.tour-context-note { font-size: .8rem; color: var(--ev-steel); }
.tour-hero .tour-buttons button.tour-story-button { background: #f97316; border-color: #f97316; color: #fff; }
.tour-hero .tour-buttons button.tour-story-button:hover { background: #ea580c; }
.tour-chapter { scroll-margin: 90px; }
.tour-chapter.tour-chapter-target { border-color: #f97316; box-shadow: 0 0 0 4px #f9731622; animation: tour-target 1.2s ease-out 2; }
@keyframes tour-target { 50% { box-shadow: 0 0 0 10px #f9731611; } }

/* Hulp & support: three equal ways in (learn, practise, ask), then the chapter library. */
.help-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.help-choice { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--ev-steel-light); border-radius: 14px; background: white; }
.help-choice h3 { font-size: 16px; font-weight: 700; color: var(--ev-graphite); margin-bottom: 6px; }
.help-choice > p { font-size: 14px; line-height: 1.55; color: var(--ev-steel); }
.help-choice .tour-buttons { margin-top: auto; padding-top: 16px; }
.help-choice #tour-demo-status:not(:empty) { margin-top: 10px; font-size: 12px; }
.tour-library button.help-quiet { align-self: flex-start; margin-top: 10px; padding: 0; border: 0; background: none; font-size: 12px; color: var(--ev-steel); text-decoration: underline; text-underline-offset: 3px; }
.tour-library button.help-quiet:hover:not(:disabled) { background: none; color: var(--ev-graphite); }
.help-link-primary, .help-link { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.help-link-primary { background: var(--ev-orange); color: white; }
.help-link-primary:hover { background: var(--ev-orange-hover); }
.help-link { border: 1px solid var(--ev-steel-light); color: var(--ev-graphite); background: white; }
.help-link:hover { background: var(--ev-paper-dim); }
.help-section-title { font-size: 18px; font-weight: 700; color: var(--ev-graphite); margin-bottom: 12px; }
.tour-library .tour-context { margin-top: 0; }
.tour-library button.tour-story-button { background: var(--ev-orange); border-color: var(--ev-orange); color: #fff; }
.tour-library button.tour-story-button:hover:not(:disabled) { background: var(--ev-orange-hover); }
@media (max-width: 899px) { .help-choices { grid-template-columns: 1fr; } }
