.content {
  min-width: 0;
  align-items: start;
  overflow-x: hidden;
  overflow-y: auto;
}

.workspace {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.lesson {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.quality {
  min-width: 0;
}

.lesson > *,
.form-grid,
.principles,
.choices,
.error-list,
.quiz {
  min-width: 0;
  max-width: 100%;
}

.principles,
.choices,
.error-list {
  grid-template-columns: repeat(var(--training-columns, 3), minmax(0, 1fr));
}

.choices {
  --training-columns: 4;
}

.form-grid label:nth-of-type(-n + 2) input {
  width: auto;
  height: auto;
  margin-top: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f3f6fb;
  font-size: 13px;
  font-weight: 700;
  opacity: 1;
  -webkit-text-fill-color: #f3f6fb;
}

.form-grid label.wide:nth-of-type(3),
.form-example p:first-of-type {
  display: none;
}

.form-example {
  padding: 20px 22px;
  font-size: 14px;
  line-height: 1.65;
}

.form-example > strong {
  margin-bottom: 10px;
  font-size: 11px;
}

.form-example p {
  margin: 6px 0;
}

.screenshot-plan {
  display: none;
}

.scenario .agent {
  overflow: hidden;
  border: 0;
  background: #172133;
}

.scenario .agent img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bad-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #05070b;
}

.bad-video > video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.bad-video > span,
.bad-video > div {
  display: none;
}

.bad-video > em {
  z-index: 2;
  pointer-events: none;
}

.error-list,
.found {
  display: none;
}

.training-control-review {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.training-question-label {
  color: #f3f6fb;
  font-family: "Russo One", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}

.training-answer-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.training-error-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  background: #121b29;
  color: #c7d1e0;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.quiz {
  gap: 14px;
}

.quiz article {
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
}

.quiz article > b {
  font-size: 22px;
}

.quiz h3 {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.45;
}

.quiz-options {
  gap: 9px;
}

.quiz-options button {
  min-height: 42px;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.3;
}

.training-error-choice i {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1px solid #526079;
  font-style: normal;
}

.training-error-choice.selected.correct {
  border-color: var(--green);
  background: #10241a;
  color: #eafff2;
}

.training-error-choice.selected.correct i {
  border-color: var(--green);
  background: var(--green);
  color: #07150d;
}

.training-error-choice.selected.wrong {
  border-color: var(--red);
  background: #28151b;
  color: #fff;
}

.training-error-choice.selected.wrong i {
  border-color: var(--red);
  background: var(--red);
}

.training-map-review {
  padding: 14px;
  border: 1px solid var(--line);
  background: #0c1420;
}

.training-map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.training-map-heading span {
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.training-map-heading strong {
  font-size: 13px;
}

.training-map-stage {
  position: relative;
  width: min(100%, 620px);
  margin: 0 auto;
  aspect-ratio: 1;
  overflow: hidden;
  background: radial-gradient(circle, #18263a, #080d16 72%);
}

.training-map-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .88;
}

.training-site-label {
  position: absolute;
  padding: 6px 8px;
  border: 1px solid #8ea0b8;
  background: #0a101bcc;
  color: #fff;
  font-size: 10px;
  letter-spacing: 1px;
}

.training-site-a {
  top: 15%;
  left: 31%;
}

.training-site-b {
  top: 76%;
  left: 27.5%;
  border-color: var(--green);
  color: #baffd3;
}

.training-ability-marker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 8px;
  border: 2px solid #ff4655;
  border-radius: 50%;
  background: #101827ee;
  box-shadow: 0 0 0 5px #ff46552e, 0 8px 20px #000a;
  transform: translate(-50%, -50%);
}

.training-ability-marker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.35);
}

.training-error-count {
  color: var(--muted);
  text-align: right;
  font-size: 10px;
}

@media (max-width: 1180px) {
  .training-answer-pair {
    grid-template-columns: 1fr;
  }
}

.training-return-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 12px 6px 0;
  text-decoration: none;
}
.training-video-launch {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 80;
  display: grid;
  grid-template-columns: 38px auto;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-items: center;
  padding: 13px 18px;
  color: #f7fbff;
  background: #122238;
  border: 1px solid #31c6ff;
  box-shadow: 0 14px 38px #0009;
  cursor: pointer;
  text-align: left;
}
.training-video-launch > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #06111f;
  background: #31c6ff;
  border-radius: 50%;
}
.training-video-launch b { font-size: 13px; letter-spacing: .04em; }
.training-video-launch small { color: #89a8cf; font-size: 11px; }
.training-video-modal[hidden] { display: none !important; }
.training-video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #020812e8;
}
.training-video-dialog {
  position: relative;
  width: min(1080px, 94vw);
  max-height: 92vh;
  overflow: auto;
  padding: 32px;
  color: #f7fbff;
  background: #0d1727;
  border: 1px solid #31435e;
  box-shadow: 0 30px 90px #000c;
}
.training-video-dialog h2 { margin: 6px 42px 10px 0; font-size: clamp(25px, 3vw, 42px); }
.training-video-dialog > p { color: #a9bdd8; font-size: 16px; line-height: 1.55; }
.training-video-kicker { color: #ff4655; font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.training-video-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  color: #fff;
  background: #18263a;
  border: 1px solid #42536c;
  font-size: 25px;
  cursor: pointer;
}
.training-video-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  margin-top: 22px;
  overflow: hidden;
  background: #050a12;
  border: 1px solid #243852;
}
.training-video-stage video { display: block; width: 100%; max-height: 68vh; background: #000; }
.training-video-placeholder { display: grid; gap: 10px; padding: 70px 30px; text-align: center; }
.training-video-placeholder strong { color: #31c6ff; font-size: 26px; }
.training-video-placeholder span { color: #89a8cf; font-size: 15px; }
body.training-video-open { overflow: hidden; }
@media (max-width: 720px) {
  .training-video-launch { right: 14px; bottom: 14px; max-width: calc(100vw - 28px); }
  .training-video-modal { padding: 10px; }
  .training-video-dialog { padding: 22px 16px; }
  .training-video-stage { min-height: 240px; }
}
