.walkthrough-switch {
  margin: 4px 0 0;
  text-align: right;
}
.walkthrough-switch label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-muted);
  font: 400 10px/1.5 var(--font-mono);
  letter-spacing: 0;
  cursor: pointer;
}
.walkthrough-switch input {
  appearance: none;
  position: relative;
  width: 30px;
  height: 18px;
  margin: 0;
  border: 1px solid #69758e;
  border-radius: 20px;
  background: #1e2435;
  cursor: pointer;
}
.walkthrough-switch input::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #aab5cd;
}
.walkthrough-switch input:checked {
  background: #4c5c96;
  border-color: #8a9acb;
}
.walkthrough-switch input:checked::before {
  left: 15px;
  background: #fff;
}
.walkthrough-layout {
  display: contents;
}
#walkthrough-panel[hidden] {
  display: none !important;
}
body.walkthrough-open .walkthrough-layout {
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(0, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0 auto;
  align-items: stretch;
}
body.walkthrough-open .walkthrough-layout > .container {
  width: 100%;
  max-width: none;
  margin: 0;
}
#walkthrough-panel {
  contain: size;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  background: #1b2030;
  border: 1px solid #46516e;
  border-radius: 16px;
  color: #c4cde0;
  text-align: left;
  font: 400 11px/1.75 var(--font-mono);
  box-shadow: 0 12px 32px #05081024;
}
#walkthrough-panel .wt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #3d475e;
  background: #252c40;
}
#walkthrough-panel .wt-filename {
  color: #e2e8fa;
}
#walkthrough-panel .wt-badge {
  font-size: 10px;
  color: #a3afcb;
}
#walkthrough-panel .wt-code {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 16px 0;
  overflow: auto;
  white-space: pre;
  tab-size: 2;
  font: inherit;
}
#walkthrough-panel .wt-line {
  display: block;
  width: max-content;
  min-width: 100%;
  padding-right: 14px;
}
#walkthrough-panel .wt-number {
  display: inline-block;
  width: 42px;
  padding-right: 10px;
  text-align: right;
  color: #98a5c2;
  user-select: none;
}
#walkthrough-panel .wt-highlight {
  background: #344169;
  color: #f1f4ff;
  box-shadow: inset 3px 0 #94a8e4;
}
#walkthrough-panel :focus-visible,
.walkthrough-switch input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  body.walkthrough-open .walkthrough-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 660px;
  }
  #walkthrough-panel {
    height: 320px;
  }
}

#walkthrough-panel .wt-plan-label {
  padding: 10px 16px 4px;
  color: #a3afcb;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
#walkthrough-panel .wt-steps {
  flex: none;
  max-height: 40%;
  overflow-y: auto;
  margin: 0;
  padding: 4px 8px 8px;
  list-style: none;
  border-bottom: 1px solid #3d475e;
}
#walkthrough-panel .wt-step {
  display: flex;
  gap: 10px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 3px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #c4cde0;
  font: inherit;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
#walkthrough-panel .wt-step:hover {
  background: #252c40;
}
#walkthrough-panel .wt-step[aria-current] {
  background: #344169;
  color: #f1f4ff;
  box-shadow: inset 3px 0 #94a8e4;
}
#walkthrough-panel .wt-step-number {
  min-width: 16px;
  color: #98a5c2;
  text-align: right;
}
#walkthrough-panel .wt-detail {
  flex: none;
  min-height: 3.5em;
  margin: 0;
  padding: 10px 16px;
  color: #a3afcb;
  font-family: var(--font-body, inherit);
  font-size: 12px;
  line-height: 1.5;
  border-bottom: 1px solid #3d475e;
}
#walkthrough-panel .wt-code {
  padding: 0;
  white-space: normal;
  overflow-anchor: none;
}
#walkthrough-panel .wt-snippet {
  margin: 0;
  padding: 10px 0;
  font: inherit;
  white-space: pre;
  tab-size: 2;
}
#walkthrough-panel .wt-unavailable {
  padding: 10px 16px;
  margin: 0;
}
#walkthrough-panel .wt-nav {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-top: 1px solid #3d475e;
  background: #252c40;
}
#walkthrough-panel .wt-nav button {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 4px 12px;
  border: 1px solid #69758e;
  border-radius: 6px;
  background: #1e2435;
  color: #e2e8fa;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
#walkthrough-panel .wt-nav button:disabled {
  opacity: 0.4;
  cursor: default;
}
#walkthrough-panel .wt-counter {
  color: #a3afcb;
}
@media (max-width: 1000px) {
  #walkthrough-panel {
    height: 620px;
  }
  #walkthrough-panel .wt-steps {
    max-height: 30%;
  }
}
