/* Scoped optional UI. Removing this asset and walkthrough.js restores the original layout. */
.walkthrough-overlay { position: fixed; z-index: 1000; inset: 0; pointer-events: none; }
.walkthrough-mask { position: absolute; width: 100%; height: 100%; pointer-events: none; }
.walkthrough-mask path { fill: rgb(12 29 22 / 68%); }
.walkthrough-shade { position: absolute; background: transparent; pointer-events: auto; }
.walkthrough-ring { position: absolute; box-sizing: border-box; border: 2px solid #b6efd0; border-radius: 12px; pointer-events: none; }
.walkthrough-debrief-preview { position: absolute; padding: 8px 12px; border: 1px solid #287b57; border-radius: 8px; background: #fff; color: #28533f; pointer-events: auto; font-size: 13px; }
.walkthrough-arrow { position: absolute; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 1px 2px #102d2640); pointer-events: none; }
.walkthrough-arrow [data-arrow] { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.walkthrough-arrow marker path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.walkthrough-coach { position: absolute; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; padding: 20px; border: 2px solid #287b57; border-radius: 16px; background: #fff; color: #304b3a; box-shadow: 0 12px 45px #071c2940; pointer-events: auto; }
.walkthrough-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.walkthrough-actions, .walkthrough-skip { flex-shrink: 0; }
.walkthrough-step { margin: 0 0 8px; color: #527461; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.walkthrough-coach h2 { margin: 0 0 9px; font-size: 18px; line-height: 1.3; letter-spacing: -.025em; }
.walkthrough-coach h2:focus { outline: none; }
.walkthrough-coach p:not(.walkthrough-step) { margin: 0 0 14px; font-size: 13px; line-height: 1.6; }
.walkthrough-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; }
.walkthrough-actions button, .walkthrough-examples button { border: 1px solid #d5e3d9; border-radius: 8px; padding: 9px 12px; background: #fff; color: #28533f; font-size: 12px; font-weight: 650; }
.walkthrough-actions .walkthrough-next { margin-left: auto; border-color: #287b57; background: #287b57; color: #fff; }
.walkthrough-skip { display: block; margin: 12px auto 0; padding: 7px; border: 0; background: transparent; color: #697c70; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.walkthrough-examples { padding-top: 12px; border-top: 1px solid #e7eee9; }
.walkthrough-examples summary { cursor: pointer; color: #287b57; font-size: 12px; font-weight: 650; }
.walkthrough-examples[open] summary { margin-bottom: 12px; }
.walkthrough-examples button { display: block; margin: 6px 0; }
.walkthrough-coach .walkthrough-status { margin-top: 12px; color: #697c70; font-size: 11px; }
.walkthrough-coach button:disabled, .walkthrough-help:disabled { opacity: .5; cursor: not-allowed; }
.walkthrough-coach button:focus-visible, .walkthrough-coach summary:focus-visible, .walkthrough-help:focus-visible, .walkthrough-debrief-preview:focus-visible { outline: 2px solid #287b57; outline-offset: 3px; }
.walkthrough-help { border: 1px solid #dce5de; border-radius: 10px; padding: 8px 10px; background: #fff; color: #28533f; font-size: 12px; font-weight: 650; white-space: nowrap; }
.walkthrough-reading .briefing-scroll { padding-bottom: var(--walkthrough-coach-space, 300px); }
@media (max-width: 900px) {
  .walkthrough-enabled .topbar { flex-wrap: wrap; height: auto; min-height: 58px; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .walkthrough-enabled .topbar-actions { gap: 8px; }
  .walkthrough-help { padding: 8px; font-size: 11px; }
  .walkthrough-coach { padding: 16px; border-radius: 18px; }
  .walkthrough-actions button, .walkthrough-examples button, .walkthrough-skip, .walkthrough-debrief-preview { min-height: 44px; }
  .walkthrough-actions button { padding: 10px 14px; font-size: 13px; }
  .walkthrough-coach p:not(.walkthrough-step) { font-size: 14px; line-height: 1.55; }
  .walkthrough-coach h2 { font-size: 17px; }
}
/* Keep navigation in one thumb-friendly row so short screens retain reading space. */
@media (max-width: 900px) {
  .walkthrough-coach { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto; gap: 12px 8px; }
  .walkthrough-content { grid-column: 1 / -1; }
  .walkthrough-actions { display: contents; }
  .walkthrough-actions [data-action="back"] { grid-row: 2; grid-column: 1; }
  .walkthrough-actions [data-action="next"] { grid-row: 2; grid-column: 3; margin: 0; }
  .walkthrough-skip { grid-row: 2; grid-column: 2; margin: 0; padding: 4px; font-size: 11px; }
  .walkthrough-actions button { padding: 10px; font-size: 12px; }
}
@media (max-width: 900px) and (max-height: 600px) {
  .walkthrough-coach { padding: 12px; row-gap: 8px; }
}
