/* Every stage contributes its intrinsic height to the same grid cell.
   Inactive content is invisible and inert, while the frame stays stable. */
.focus-demo .ft-app-layout > .ft-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
.focus-demo .ft-stage > .ft-panel {
  grid-area: 1 / 1;
  align-self: stretch;
  min-width: 0;
}
.focus-demo .ft-stage > .ft-panel[hidden] {
  display: flex !important;
  visibility: hidden;
  pointer-events: none;
}

.ft-size-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
.ft-size-slot > * {
  grid-area: 1 / 1;
}
.ft-size-reserve {
  visibility: hidden !important;
  pointer-events: none;
  user-select: none;
}
.focus-demo .ft-drop-confirmation[hidden] {
  display: block !important;
  visibility: hidden;
}
.ft-drop-target > .ft-size-slot { width: 100%; }
.ft-drop-target .ft-size-slot > h4 {
  color: #31492b;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.025em;
  margin: 0;
}
.ft-drop-target .ft-size-slot > p {
  font-size: 14px;
  line-height: 1.65;
  color: #5f7253;
  margin: 9px 0 0;
}
.ft-check-progress > .ft-size-slot {
  flex: 0 1 auto;
  color: var(--ft-muted);
  font-size: 12px;
  line-height: 1.5;
}
.ft-caption > .ft-size-slot {
  flex: 1;
  max-width: 800px;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ft-muted);
}
.ft-caption > .ft-size-slot p { font: inherit; }
.ft-app-status > .ft-size-slot:first-child { flex: 1; }
.ft-app-status > .ft-size-slot:last-child {
  flex: none;
  font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: nowrap;
  color: var(--ft-muted);
}

/* The sidebar is a workflow trace, driven by the tour's single clock. */
.ft-sidebar .ft-steps > button {
  position: relative;
  overflow: hidden;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.ft-sidebar .ft-steps > button > i {
  position: relative;
}
.ft-sidebar .ft-steps > button > i > svg {
  transition: opacity 150ms ease, scale 180ms ease;
}
.ft-sidebar .ft-steps .ft-step-check {
  position: absolute;
  inset: 0;
  opacity: 0;
  scale: .8;
}
.ft-sidebar .ft-steps > button.is-complete > i > svg:not(.ft-step-check) { opacity: 0; }
.ft-sidebar .ft-steps > button.is-complete .ft-step-check { opacity: 1; scale: 1; }
.ft-sidebar .ft-steps > button > .ft-step-track {
  display: block;
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  width: auto;
  max-width: none;
  min-height: 0;
  background: transparent;
  pointer-events: none;
}
.ft-step-track > span {
  display: block;
  width: 100%;
  height: 100%;
  background: #a6b599;
  transform: scaleX(var(--ft-step-progress, 0));
  transform-origin: left center;
}
.ft-steps > button[data-state=active] .ft-step-track > span { background: #b39838; }
.ft-sidebar .ft-steps > button[disabled] {
  cursor: default;
  opacity: 1;
}
.ft-sidebar .ft-steps > button[disabled]:hover {
  background: none;
  color: #59675a;
}
.ft-sidebar .ft-steps > button[disabled][aria-selected=true],
.ft-sidebar .ft-steps > button[disabled][aria-selected=true]:hover {
  background: #f8f2df;
  border-color: #eadca8;
  color: #685720;
}
.ft-sidebar .ft-steps > button[disabled][aria-selected=false] > i { opacity: .65; }
.ft-sidebar .ft-steps > button.is-complete > i { opacity: 1; }
.ft-sidebar .ft-steps > button[aria-selected=true] .ft-auto-spinner { color: #95771e; }

/* The original gold gives the strategic invitation a distinct closing accent. */
.strategy-review { background: #e8cf56; }
.strategy-review p { color: #5a542f; }
.strategy-review .eyebrow::before { background: #000; }
.strategy-review .text-link { color: #27372a; }
.strategy-trial { border-color: #b7a349; }
.strategy-trial .button { background: #1d3023; color: #f5f6ed; border-color: #1d3023; }
.strategy-trial .button:hover { background: #304835; }

@media (max-width: 800px) {
  .ft-caption > .ft-size-slot { font-size: 13px; }
}
@media (max-width: 560px) {
  .ft-caption > .ft-size-slot { font-size: 13px; line-height: 1.75; min-height: 0; }
  .ft-app-status > .ft-size-slot:last-child { font-size: 10px; }
  .ft-sidebar .ft-steps > button > .ft-step-track { left: 4px; right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .ft-sidebar .ft-steps > button,
  .ft-sidebar .ft-steps > button > i > svg { transition: none; }
}

.ft-method-working { display: none; }
.ft-panel[data-phase=working] .ft-method-card > :not(.ft-method-working) { visibility: hidden; }
.ft-panel[data-phase=working] .ft-method-card > .ft-method-working {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 23px;
}
.ft-method-working strong { margin-top: 18px; color: #4c603f; font-size: 21px; font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
.ft-method-working p { margin-top: 12px; color: var(--ft-muted); font-size: 14px; line-height: 1.6; }

/* Completion marks use the same icon box as pending and active steps. */
@media (max-width: 850px) {
  .ft-sidebar .ft-steps > button:is(.is-complete,.is-done)[aria-selected=false] > i {
    width: 20px;
    min-width: 20px;
    height: 20px;
  }
}
@media (max-width: 560px) {
  .ft-sidebar .ft-steps > button:is(.is-complete,.is-done)[aria-selected=false] > i {
    width: 19px;
    min-width: 19px;
    height: 19px;
  }
}

.ft-recorded-checks { margin-top: 25px; border-top: 1px solid #d5dfcc; padding-top: 18px; }
.ft-recorded-checks > summary { cursor: pointer; color: #36512e; font-size: 14px; font-weight: 550; line-height: 1.6; }
.ft-recorded-checks[open] > summary { margin-bottom: 20px; }
.ft-recorded-checks > summary:focus-visible { outline: 2px solid #8c7622; outline-offset: 4px; }
