/* The walkthrough's own chrome. Shared, because the three surfaces that use
   it must not each grow their own idea of what a highlight looks like. */
/* ABOVE EVERY DIALOG (row 341). A Help guide carries on into the staff app's
   dialogs (they sit at 100, an asking one at 300, the toasts at 400), and its
   card under one of them was a guide that had vanished mid-job. Nothing here
   takes a click but the card itself. */
.tour-back {
  position: fixed; inset: 0; z-index: 500; pointer-events: none;
}
/* NO SCRIM. A tour explains a screen, so dimming the screen is working
   against the one thing it is for — and a dimmed page reads as blocked when
   every control on it still works. */
/* BORDER-BOX, so the ring's 2px border is inside the size tour.js gives it.
   The tutor app does not set border-box for everything (see .tour-card), so
   there every ring was 4px wider and taller than its target's box, off to
   the right and down (found 11 Oct 2026). */
.tour-ring {
  box-sizing: border-box;
  position: fixed; border: 2px solid #5A4020; border-radius: 10px;
  box-shadow: 0 0 0 4px rgba(90, 64, 32, 0.16);
  pointer-events: none;
}
/* No halo where it would lie over the next thing on the page. */
.tour-ring.is-tight { box-shadow: none; }
/* Between steps only (tour.js glide): a ring that glided on every redraw
   trailed a target that was still moving. */
.tour-ring.is-glide { transition: top 0.15s ease, left 0.15s ease, width 0.15s ease, height 0.15s ease; }
/* A 44px button inside a ring reads as an error state, so below the
   threshold the step still points and simply does not decorate. */
.tour-ring.is-off { display: none; }
/* BORDER-BOX, so the width is the card's width. The child's page sets
   border-box for everything and the tutor app does not, so there the padding
   and border went on top: 340 + 38 = 378px in a 375px phone, every step's
   Next 15px past the edge (measured 24 Sep 2026). Now 340 on every page. */
.tour-card {
  box-sizing: border-box;
  position: fixed; width: min(340px, calc(100vw - 24px));
  background: #FFFEF9; border: 1px solid #DDD0B8; border-radius: 12px;
  padding: 16px 18px 12px; pointer-events: auto;
  box-shadow: 0 6px 28px rgba(46, 35, 24, 0.22);
}
.tour-h {
  margin: 0 0 6px; font-family: var(--font-display);
  font-size: var(--type-item); font-weight: 700; line-height: 1.3;
}
.tour-body { margin: 0; font-size: var(--type-meta); line-height: 1.6; color: #4A3520; }
.tour-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; flex-wrap: wrap;
}
.tour-count { font-size: var(--type-label); color: #7A6A55; margin-right: auto; }
.tour-skip, .tour-next, .tour-prev {
  min-height: 44px; padding: 8px 16px; font: inherit; cursor: pointer;
  border-radius: 999px;
}
.tour-skip, .tour-prev { background: none; border: 1px solid #DDD0B8; color: #6B5844; }
.tour-prev[hidden], .tour-skip[hidden], .tour-count[hidden] { display: none; }
/* A guide's name above each step, so a step read alone still says which task
   it belongs to. */
.tour-kicker {
  margin: 0 0 4px; font-size: var(--type-label); font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: #7A6A55;
}
/* On a step done by pressing the ringed control, the card's own button is
   the way round it, so it steps back. */
.tour-next.is-quiet { background: none; color: #2E2318; font-weight: 600; }
.tour-next.is-quiet:hover { background: #F3ECDD; border-color: #2E2318; }
.tour-next { background: #2E2318; border: 1px solid #2E2318; color: #FFFEF9; font-weight: 600; }
.tour-next:hover { background: #5A4020; border-color: #5A4020; }
@media (prefers-reduced-motion: reduce) { .tour-ring.is-glide { transition: none; } }

/* "WHAT'S NEW" (row 341). A quiet card in the page's flow, above the work and
   never over it: no overlay, no animation, put away with one press. */
.wn {
  box-sizing: border-box; margin: 0 0 16px; padding: 14px 16px 12px;
  background: #FFFEF9; border: 1px solid #DDD0B8; border-left: 4px solid #C8DCC0;
  border-radius: 12px;
}
.wn-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wn-h {
  margin: 0; font-family: var(--font-display); font-size: var(--type-item);
  font-weight: 700; color: #2E2318;
}
.wn-done {
  min-height: 44px; padding: 6px 16px; font: inherit; cursor: pointer; border-radius: 999px;
  background: none; border: 1px solid #DDD0B8; color: #4A3520;
}
.wn-done:hover { border-color: #2E2318; }
.wn-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.wn-item { font-size: var(--type-meta); line-height: 1.55; color: #4A3520; }
.wn-title { display: block; font-weight: 700; color: #2E2318; }
.wn-date { font-size: var(--type-label); color: #7A6A55; margin-right: 4px; }
.wn-show, .wn-all {
  font: inherit; font-weight: 600; color: #5A4020; background: none; border: 0; padding: 4px 2px;
  min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
/* ONE LINE ON A PHONE (row 342): "2 new things on the platform · Show · Got
   it"; Show opens the notes under it. The heading stays for screen readers. */
.wn-short { display: none; margin: 0; }
.wn-open {
  font: inherit; font-weight: 600; color: #5A4020; background: none; border: 0;
  padding: 12px 4px; margin: -12px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .wn { padding: 8px 12px; }
  .wn-head { align-items: center; }
  .wn-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wn-short { display: block; flex: 1 1 auto; min-width: 0; font-size: var(--type-label); color: #4A3520; }
  .wn:not(.is-open) .wn-list, .wn:not(.is-open) .wn-all { display: none; }
}
/* A 44px target WITHOUT a 44px line (UX review: an inline Show me made its
   line 44px tall, so a note's title and text sat as far apart as two notes).
   The padding is the target; the negative margin gives the line back. */
.wn-show { display: inline-block; min-height: 0; padding: 12px 4px; margin: -12px 0; }
.wn-all { margin-top: 6px; font-size: var(--type-label); }
.wn-none { margin: 0; color: #7A6A55; }

/* The step said to a screen reader, once, out of sight. */
.tour-live {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
