.staged-tour-card {
  position: fixed;
  z-index: 1050;
  top: 1rem;
  right: 1rem;
  width: min(31rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1rem;
  color: #17243d;
  background: #fff;
  border: 1px solid #d8dfed;
  border-radius: 0.9rem;
  box-shadow: 0 18px 48px rgba(31, 43, 80, 0.18);
}

/* Readability baseline for the staged workspace surfaces. This deliberately
 * leaves the tour card layout alone while giving the underlying teacher and
 * student pages the same comfortable text scale as the live shell. */
.guided-tour-v2-staged.workspace-shell #mainContent :is(
  p,
  li,
  td,
  th,
  label,
  .form-label,
  .form-text,
  .btn,
  button,
  input,
  select,
  textarea
) {
  font-size: 0.95rem !important;
  line-height: 1.5;
}

.guided-tour-v2-staged.workspace-shell #mainContent :is(.small, .text-muted, .text-secondary, .text-body-secondary) {
  font-size: 0.9rem !important;
  line-height: 1.5;
}

.guided-tour-v2-staged.workspace-shell #mainContent :is(
  .staged-tour-step-count,
  .staged-tour-card-disclosure,
  .staged-tour-control,
  .staged-tour-final-cta p,
  .staged-evidence-kicker,
  .staged-evidence-roster-link,
  .staged-evidence-row-action,
  .staged-profile-kicker,
  .staged-profile-facts dt
) {
  font-size: 0.82rem !important;
}

.guided-tour-v2-staged.workspace-shell #mainContent .staged-tour-guide-heading {
  font-size: 1.1rem !important;
}

/* Evidence rows and next-move copy are the most important reading surface in
 * the walkthrough, so keep their names and explanations clearly legible. */
.guided-tour-v2-staged.workspace-shell #mainContent :is(
  .staged-evidence-overview p,
  .staged-evidence-moves > p,
  .staged-evidence-move p,
  .staged-profile-context-line,
  .staged-profile-card .small,
  .staged-profile-facts dd,
  .staged-profile-terminal-note,
  .attn-row-name,
  .attn-row-class
) {
  font-size: 0.9rem !important;
  line-height: 1.5;
}

.guided-tour-v2-staged.workspace-shell #mainContent :is(
  .staged-evidence-move h3,
  .staged-evidence-row .attn-row-name
) {
  font-size: 1rem !important;
}

.staged-tour-card-topline,
.staged-tour-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.staged-tour-card-topline {
  justify-content: space-between;
}

.staged-tour-card[data-guide-collapsed="true"] > :not(.staged-tour-card-topline) {
  display: none;
}

.staged-tour-guide-heading,
.staged-tour-step-count {
  color: #3f4ab4;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.staged-tour-guide-heading {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.staged-tour-card-disclosure {
  margin: 0.2rem 0 0;
  color: #526078;
  font-size: 0.72rem;
  line-height: 1.3;
}

.staged-tour-explore-note,
.staged-tour-guide-text,
.staged-tour-evidence,
.staged-tour-audio-note {
  margin: 0.7rem 0 0;
  font-size: 0.83rem;
  line-height: 1.45;
}

.staged-tour-final-cta {
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e3e7f0;
}

.staged-tour-final-cta p {
  margin: 0.45rem 0 0;
  color: #526078;
  font-size: 0.76rem;
}

.staged-tour-explore-note,
.staged-tour-evidence,
.staged-tour-audio-note {
  color: #526078;
}

.staged-tour-current {
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e3e7f0;
}

.staged-tour-current h3 {
  margin: 0.22rem 0 0;
  font-size: 1.02rem;
  line-height: 1.2;
}

.staged-tour-step-count {
  margin: 0;
}

.staged-tour-controls {
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.staged-tour-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid #d8dfed;
  border-radius: 0.45rem;
  color: #3f4ab4;
  background: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.staged-tour-card .staged-tour-guide-toggle.staged-tour-control {
  min-height: 44px;
}

.staged-tour-control:hover,
.staged-tour-control:focus-visible {
  color: #303a98;
  background: #eef0ff;
}

.guided-tour-v2-staged a[href="#staged-read-only"],
.guided-tour-v2-staged a.staged-tour-disabled {
  cursor: default;
}

.guided-tour-v2-staged [data-tour-highlight] {
  outline: 3px solid rgba(15, 118, 110, 0.48);
  outline-offset: 0.3rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 0.45rem rgba(15, 118, 110, 0.11);
}

.guided-tour-v2-staged .staged-tour-control-notice {
  margin: 0 0 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(18, 122, 115, 0.28);
  border-radius: 0.65rem;
  background: rgba(18, 122, 115, 0.08);
  color: #35526e;
  font-size: 0.88rem;
}

/* This is the production workspace header structure with staged-only
   disclosure controls in place of feedback and account actions. */
.workspace-shell .staged-demo-header .container-xl {
  display: flex;
  align-items: center;
  min-height: 72px;
}

.workspace-shell .staged-demo-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  margin-left: 0;
}

.workspace-shell .staged-demo-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  color: #fff;
  background: #0F766E;
  border: 1px solid #0F766E;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}

.workspace-shell .staged-demo-home:hover,
.workspace-shell .staged-demo-home:focus-visible {
  color: #fff;
  background: #0C655F;
  border-color: #0C655F;
  text-decoration: none;
}

.staged-tour-primary {
  margin-left: 0;
  color: #fff;
  background: #5865d8;
  border-color: #5865d8;
}

.staged-tour-audio-note {
  font-size: 0.7rem;
}

.staged-tour-audio {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid #e3e7f0;
}

.staged-tour-audio-native {
  display: block;
  width: 100%;
  max-width: 100%;
}

.guided-tour-v2-js .staged-tour-audio-native {
  display: none;
}

.guided-tour-v2-js .staged-tour-audio-native.staged-tour-audio-native--visible {
  display: block;
  margin-top: 0.55rem;
}

.staged-tour-audio-disclosure,
.staged-tour-transcript {
  margin: 0.5rem 0 0;
  color: #526078;
  font-size: 0.72rem;
  line-height: 1.4;
}

.staged-tour-audio-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.staged-tour-audio-controls .staged-tour-control {
  min-height: 1.9rem;
  padding: 0.3rem 0.52rem;
  font-size: 0.71rem;
}

.staged-tour-audio-controls .staged-tour-control:disabled {
  color: #7b8495;
  background: #f1f3f7;
  border-color: #d8dfed;
  cursor: not-allowed;
  opacity: 0.72;
}

.staged-tour-transcript summary {
  color: #3f4ab4;
  cursor: pointer;
  font-weight: 750;
}

.staged-tour-transcript p {
  margin: 0.45rem 0 0;
}

.staged-tour-navigation {
  justify-content: space-between;
  position: sticky;
  bottom: 0;
  padding-top: 0.75rem;
  padding-bottom: 0.1rem;
  background: #fff;
}

/* Staged Evidence and Review keeps the six move-linked records easy to scan
   while making each complete row one ordinary, keyboard-accessible link. */
.guided-tour-v2-staged .staged-evidence-overview,
.guided-tour-v2-staged .staged-evidence-moves {
  max-width: 860px;
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #d8dfed;
  border-radius: 0.75rem;
  background: #fff;
  color: #17243d;
  box-shadow: 0 8px 22px rgba(31, 43, 80, 0.07);
}

.guided-tour-v2-staged .staged-evidence-overview {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.guided-tour-v2-staged .staged-evidence-overview h2,
.guided-tour-v2-staged .staged-evidence-moves h2 {
  margin: 0.15rem 0 0.45rem;
  color: #17243d;
  font-size: 1.1rem;
  line-height: 1.25;
}

.guided-tour-v2-staged .staged-evidence-overview p,
.guided-tour-v2-staged .staged-evidence-moves > p {
  margin: 0;
  color: #526078;
  font-size: 0.84rem;
  line-height: 1.45;
}

.guided-tour-v2-staged .staged-evidence-kicker {
  color: #3f4ab4;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guided-tour-v2-staged .staged-evidence-roster-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  border: 1px solid #5865d8;
  border-radius: 0.45rem;
  color: #303a98;
  background: #f5f6ff;
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.guided-tour-v2-staged .staged-evidence-roster-link:hover,
.guided-tour-v2-staged .staged-evidence-roster-link:focus-visible {
  color: #fff;
  background: #3f4ab4;
  border-color: #3f4ab4;
  text-decoration: none;
}

.guided-tour-v2-staged .staged-evidence-moves ol {
  display: grid;
  gap: 0.65rem;
  margin: 0.85rem 0 0;
  padding-left: 1.3rem;
}

.guided-tour-v2-staged .staged-evidence-move {
  padding: 0.7rem 0.75rem 0.7rem 0.35rem;
  border-top: 1px solid #e3e7f0;
}

.guided-tour-v2-staged .staged-evidence-move h3 {
  margin: 0;
  color: #27365a;
  font-size: 0.92rem;
}

.guided-tour-v2-staged .staged-evidence-move p {
  margin: 0.25rem 0 0;
  color: #526078;
  font-size: 0.78rem;
  line-height: 1.4;
}

.guided-tour-v2-staged .staged-evidence-move .staged-evidence-move-evidence {
  color: #3f4ab4;
  font-size: 0.73rem;
  font-weight: 650;
}

.guided-tour-v2-staged .staged-evidence-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.65rem;
  border: 1px solid transparent;
  border-bottom-color: rgba(130, 165, 225, 0.12);
  color: inherit;
  text-decoration: none;
}

.guided-tour-v2-staged .staged-evidence-row:hover {
  background: rgba(88, 101, 216, 0.08);
  border-color: rgba(88, 101, 216, 0.2);
  text-decoration: none;
}

.guided-tour-v2-staged .staged-evidence-row:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.62);
  outline-offset: 0.15rem;
  background: rgba(88, 101, 216, 0.08);
  border-color: #0f766e;
  text-decoration: none;
}

.guided-tour-v2-staged #attnFilters .attn-filter-btn {
  min-height: 44px;
}

.guided-tour-v2-staged #attnFilters .attn-filter-btn:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.62);
  outline-offset: 0.15rem;
  border-color: #0f766e;
}

.guided-tour-v2-staged .staged-evidence-row .attn-row-name {
  color: #27365a;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.guided-tour-v2-staged .staged-evidence-row .attn-row-class {
  color: #526078;
}

.guided-tour-v2-staged .staged-evidence-row .attn-row-reasons {
  margin-left: auto;
}

.guided-tour-v2-staged .staged-evidence-row-action {
  flex: 0 0 auto;
  margin-left: auto;
  color: #3f4ab4;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
}

.guided-tour-v2-staged .staged-profile-page {
  max-width: 720px;
}

.guided-tour-v2-staged .staged-profile-back {
  margin-bottom: 0.9rem;
}

.guided-tour-v2-staged .staged-profile-back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.6rem;
  color: #3f4ab4;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.guided-tour-v2-staged .staged-profile-back a:hover,
.guided-tour-v2-staged .staged-profile-back a:focus-visible {
  color: #303a98;
  background: #eef0ff;
  border-radius: 0.4rem;
  text-decoration: underline;
}

.guided-tour-v2-staged .staged-profile-card {
  border-color: #d8dfed;
  box-shadow: 0 8px 22px rgba(31, 43, 80, 0.07);
}

.guided-tour-v2-staged .staged-profile-kicker {
  margin: 0;
  color: #3f4ab4;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guided-tour-v2-staged .staged-profile-card h2 {
  margin: 0.15rem 0 0.2rem;
  color: #17243d;
  font-size: 1.5rem;
}

.guided-tour-v2-staged .staged-profile-context-line {
  margin: 0;
  color: #526078;
  font-size: 0.8rem;
}

.guided-tour-v2-staged .staged-profile-card .small {
  margin-top: 0.85rem;
}

.guided-tour-v2-staged .staged-profile-facts {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
}

.guided-tour-v2-staged .staged-profile-facts > div {
  padding-top: 0.65rem;
  border-top: 1px solid #e3e7f0;
}

.guided-tour-v2-staged .staged-profile-facts dt {
  color: #526078;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guided-tour-v2-staged .staged-profile-facts dd {
  margin: 0.2rem 0 0;
  color: #27365a;
  font-size: 0.86rem;
  line-height: 1.45;
}

.guided-tour-v2-staged .staged-profile-event-sequence {
  margin: 0.3rem 0 0;
  padding-left: 1.25rem;
}

.guided-tour-v2-staged .staged-profile-event-sequence li + li {
  margin-top: 0.25rem;
}

.guided-tour-v2-staged .staged-profile-terminal-note {
  margin: 0.9rem 0 0;
  color: #526078;
  font-size: 0.78rem;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .staged-tour-audio,
  .staged-tour-audio * {
    scroll-behavior: auto;
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .staged-tour-card {
    position: fixed;
    top: 8.5rem;
    right: 0.5rem;
    width: min(31rem, calc(100vw - 1rem));
    max-height: calc(100vh - 9rem);
    max-height: calc(100dvh - 9rem);
    overflow-y: auto;
    margin: 0;
    z-index: 1050;
  }
}

@media (max-width: 720px) {
  .workspace-shell .staged-demo-header .container-xl {
    min-height: 8rem;
  }

  .workspace-shell .staged-demo-header-actions {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .workspace-shell .staged-demo-home {
    white-space: nowrap;
  }

  .guided-tour-v2-staged .staged-evidence-overview {
    align-items: stretch;
    flex-direction: column;
  }

  .guided-tour-v2-staged .staged-evidence-roster-link {
    width: 100%;
  }

  .guided-tour-v2-staged .staged-evidence-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .guided-tour-v2-staged .staged-evidence-row .attn-row-reasons,
  .guided-tour-v2-staged .staged-evidence-row-action {
    margin-left: 0;
  }

}
