.guided-session-map,
.guided-work-jump,
.guided-start-purpose,
.guided-purpose-inline {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(19, 18, 16, 0.92);
  color: #f4efe7;
}

.guided-session-map,
.guided-work-jump {
  margin-top: 12px;
  padding: 12px;
}

.guided-session-map strong,
.guided-work-jump summary,
.guided-purpose-inline strong {
  color: #fff;
  font-weight: 800;
}

.guided-session-map p,
.guided-work-jump p,
.guided-purpose-inline p {
  margin: 6px 0 0;
  color: rgba(244, 239, 231, 0.76);
  font-size: 13px;
  line-height: 1.55;
}

.guided-session-links,
.guided-work-jump-row,
.guided-purpose-actions,
.guided-checkpoint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.guided-session-links a,
.guided-work-jump button,
.guided-purpose-actions a,
.guided-checkpoint-actions a,
.guided-checkpoint-actions button,
.guided-resume-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  padding: 9px 12px;
  background: #eee6da;
  color: #171512;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}

.guided-session-links a.secondary,
.guided-purpose-actions a.secondary,
.guided-checkpoint-actions a.secondary,
.guided-checkpoint-actions button.secondary {
  background: transparent;
  color: #f4efe7;
}

.guided-work-jump summary {
  cursor: pointer;
}

.guided-work-jump input,
.guided-work-jump select {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background: #f8f3eb;
  color: #181512;
  padding: 8px 10px;
  font: inherit;
}

.guided-work-jump input {
  width: 88px;
}

.guided-work-jump select {
  flex: 1 1 220px;
  max-width: 100%;
}

.guided-control-rights {
  margin: 8px 0 0;
  color: rgba(244, 239, 231, 0.78);
  font-size: 12px;
  line-height: 1.5;
}

.guided-purpose-inline {
  margin-top: 14px;
  padding: 14px;
  border-color: rgba(207, 171, 102, 0.46);
  background: linear-gradient(135deg, rgba(83, 66, 39, 0.58), rgba(19, 18, 16, 0.96));
}

.guided-start-purpose {
  margin: 14px 0;
  padding: 14px;
  text-align: left;
}

.guided-start-purpose h3,
.guided-checkpoint-dialog h2 {
  margin: 5px 0 8px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.18;
}

.guided-start-purpose p {
  margin: 7px 0;
  color: rgba(244, 239, 231, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.guided-checkpoint {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.84);
}

.guided-checkpoint[hidden] {
  display: none !important;
}

.guided-checkpoint-dialog {
  width: min(720px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border: 1px solid rgba(224, 194, 137, 0.46);
  border-radius: 10px;
  padding: clamp(20px, 4vw, 36px);
  background: #171512;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.54);
  color: #f4efe7;
}

.guided-checkpoint-kicker {
  margin: 0;
  color: #d7b477;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guided-checkpoint-dialog p {
  color: rgba(244, 239, 231, 0.82);
  line-height: 1.65;
}

.guided-checkpoint-dialog .zh-line {
  display: block;
  margin-top: 5px;
  color: rgba(244, 239, 231, 0.64);
}

.guided-image-side > img,
.guided-image-side [data-guided-image] {
  object-fit: contain !important;
  user-select: none;
  -webkit-user-drag: none;
}

.guided-image-side [data-guided-image-frame] {
  width: 100%;
  height: calc(100vh - 174px);
  min-height: 500px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 980px) {
  .guided-image-side [data-guided-image-frame] {
    height: min(66vh, 690px);
    min-height: 350px;
  }
}

@media (max-width: 720px) {
  .guided-image-side [data-guided-image-frame] {
    height: 58vh;
    min-height: 300px;
  }
  .guided-session-links a,
  .guided-purpose-actions a,
  .guided-checkpoint-actions a,
  .guided-checkpoint-actions button {
    flex: 1 1 100%;
  }
}
