.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 (docs/plan/help-tour-audit-2026-10-17.md §4): the search with the two ways to ask a person next to
   it, then one section at a time in tabs. */
.help-page { max-width: 1120px; }
.help-top { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; margin-bottom: 28px; align-items: start; }
.help-search { padding: 24px; border: 1px solid var(--ev-steel-light); border-radius: 16px; background: white; }
.help-ask { display: grid; gap: 12px; }
.help-ask-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--ev-steel-light); border-radius: 14px; background: white; color: var(--ev-graphite); text-decoration: none; }
a.help-ask-card:hover { border-color: var(--ev-orange); }
.help-ask-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.help-ask-text { font-size: 13px; line-height: 1.5; color: var(--ev-steel); }
.help-ask-link { font-size: 14px; font-weight: 600; color: var(--ev-orange-text); text-decoration: none; }
.help-ask-link:hover { text-decoration: underline; }
.help-ask-quiet { color: var(--ev-graphite); font-weight: 500; }
.help-count { display: inline-flex; min-width: 20px; height: 20px; align-items: center; justify-content: center; padding: 0 6px; border-radius: 999px; background: var(--ev-orange); color: white; font-size: 11px; font-weight: 700; }
.help-count.hidden { display: none; }
/* The page's own tabs and search chips are not tour buttons: undo the .tour-library button look for them. */
.help-page [role="tablist"] button { padding: 12px 14px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; font-weight: 500; color: var(--ev-steel); }
.help-page [role="tablist"] button:hover:not(:disabled) { background: none; color: var(--ev-graphite); }
.help-page [role="tablist"] button.ev-tab-active { border-bottom-color: var(--ev-orange); color: var(--ev-orange-text); font-weight: 600; }
.help-page #help-center-suggestions button { padding: 4px 12px; border-radius: 999px; font-weight: 500; font-size: 13px; }
.help-section-title { font-size: 16px; font-weight: 700; color: var(--ev-graphite); margin-bottom: 12px; }
.help-learn { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-bottom: 32px; }
.help-learn-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--ev-steel-light); border-radius: 14px; background: white; }
.help-learn-main { background: linear-gradient(135deg, #fff7ed, #fff 60%); border-color: #fed7aa; }
.help-learn-card h3 { font-size: 18px; font-weight: 700; color: var(--ev-graphite); margin: 6px 0; }
.help-learn-card > p:not(.tour-eyebrow) { font-size: 14px; line-height: 1.55; color: var(--ev-steel); }
.help-learn-card .tour-buttons { margin-top: auto; padding-top: 16px; }
.help-learn-card #tour-demo-status:not(:empty) { margin-top: 10px; font-size: 12px; color: var(--ev-steel); }
.tour-library button.help-quiet { align-self: flex-start; margin-top: 10px; padding: 0; min-height: 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); }
.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); }
.help-chapters-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.help-chapters-head .tour-library-filters { flex: 1 1 480px; max-width: 620px; margin-bottom: 0; }
.tour-context-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: var(--ev-paper-dim); font-size: 14px; color: var(--ev-graphite); }
.tour-context-bar.hidden { display: none; }
.tour-library .tour-context-bar button { min-height: 0; padding: 4px 10px; font-size: 13px; }
/* Chapters as a calm list of cards: the story is the one primary button on this tab. */
.help-page .tour-chapter { padding: 18px 20px; }
.help-page .tour-chapter h3 { font-size: 16px; margin: 6px 0 4px; }
.help-page .tour-chapter .tour-buttons { margin-top: 12px; }
.help-page .tour-chapter button.tour-primary { background: white; border-color: var(--ev-steel-light); color: var(--ev-graphite); }
.help-page .tour-chapter button.tour-primary:hover:not(:disabled) { background: var(--ev-paper-dim); border-color: var(--ev-orange); }
.tour-context-dialog { width: min(640px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 16px; overflow: visible; box-shadow: 0 24px 60px #0f172a33; }
.tour-context-dialog::backdrop { background: #0f172a66; }
.tour-context-dialog .tour-context { margin: 0; border: 0; }
.tour-context-hint:not(:empty) { margin-top: 10px; font-size: 13px; color: var(--ev-orange-text); }
@media (max-width: 899px) {
  .help-top, .help-learn { grid-template-columns: 1fr; }
  .help-search { padding: 18px; }
}

/* Zelf doen (hands-on steps): a file to download in the coach, and the coach stepping aside while a form is open. */
.tour-coach a.tour-link { display: inline-flex; margin-top: 10px; padding: 8px 12px; border: 1px solid var(--ev-steel-light); border-radius: 9px; font-weight: 600; color: var(--ev-orange-text); text-decoration: none; }
.tour-coach a.tour-link:hover { border-color: var(--ev-orange); }
.tour-coach a.tour-link[hidden] { display: none; }
.tour-coach.tour-coach-aside { width: min(300px, calc(100vw - 24px)); padding: 14px 16px; }
.tour-coach.tour-coach-aside #tour-text, .tour-coach.tour-coach-aside #tour-image, .tour-coach.tour-coach-aside .tour-link,
.tour-coach.tour-coach-aside #tour-meter, .tour-coach.tour-coach-aside .tour-footer, .tour-coach.tour-coach-aside #tour-back { display: none; }
.tour-coach.tour-coach-aside #tour-title { font-size: 14px; }
.tour-coach.tour-coach-aside .tour-buttons { margin-top: 8px; }
/* On a phone a form fills the screen: the coach waits out of sight until it closes (the step was read before). */
@media (max-width: 640px) { .tour-coach.tour-coach-aside { display: none; } }
