.ssh-selected-template,
.ssh-selected-template *,
.ssh-template-questionnaire,
.ssh-template-questionnaire * {
  box-sizing: border-box;
}

.ssh-selected-template {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid #dde4f0;
  border-radius: 18px;
  color: #141b2d;
  background: #f6f8fc;
  box-shadow: 0 14px 36px rgba(11, 18, 32, 0.07);
  font-family: "Inter", Arial, sans-serif;
}

.ssh-selected-template > img {
  display: block;
  width: 142px;
  height: 88px;
  object-fit: cover;
  object-position: top;
  border: 1px solid #dde4f0;
  border-radius: 12px;
  background: #fff;
}

.ssh-selected-template__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.ssh-selected-template__copy span {
  color: #2f5eff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ssh-selected-template__copy strong {
  overflow: hidden;
  color: #0b1220;
  font-family: "Sora", Arial, sans-serif;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ssh-selected-template__copy small {
  color: #5b6479;
  font-size: 13px;
}

.ssh-selected-template__actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ssh-selected-template__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #dde4f0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.ssh-selected-template__view {
  color: #fff !important;
  border-color: #0b1220 !important;
  background: #0b1220;
}

.ssh-selected-template__change {
  color: #2f5eff !important;
  background: #fff;
}

.ssh-template-questionnaire {
  width: 100%;
  margin: 0 0 24px;
  padding: 22px;
  border: 1px solid #dde4f0;
  border-radius: 18px;
  color: #141b2d;
  background: #fff;
  font-family: "Inter", Arial, sans-serif;
}

.ssh-template-questionnaire legend {
  padding: 0 8px;
  color: #0b1220;
  font-family: "Sora", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.ssh-template-questionnaire__intro {
  margin: 0 0 18px;
  color: #5b6479;
  font-size: 13px;
  line-height: 1.55;
}

.ssh-template-questionnaire__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ssh-template-questionnaire__field {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #30394d;
  font-size: 13px;
  font-weight: 700;
}

.ssh-template-questionnaire__field input,
.ssh-template-questionnaire__field select,
.ssh-template-questionnaire__field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd4e2;
  border-radius: 10px;
  color: #141b2d;
  background: #fff;
  font: 400 14px/1.4 "Inter", Arial, sans-serif;
}

.ssh-template-questionnaire__field textarea {
  min-height: 92px;
  resize: vertical;
}

.ssh-template-questionnaire__field--full {
  margin-top: 16px;
}

.ssh-template-questionnaire__pages {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  color: #30394d;
  font-size: 13px;
  font-weight: 700;
}

.ssh-template-questionnaire__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ssh-template-questionnaire__checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #d8e0ec;
  border-radius: 999px;
  color: #3c465a;
  background: #f7f9fc;
  font-size: 12px;
  font-weight: 600;
}

.ssh-template-questionnaire :is(input, select, textarea):focus-visible {
  border-color: #2f5eff;
  outline: 3px solid rgba(47, 94, 255, 0.2);
  outline-offset: 1px;
}

@media (max-width: 760px) {
  .ssh-selected-template {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 13px;
  }

  .ssh-selected-template > img {
    width: 96px;
    height: 68px;
  }

  .ssh-selected-template__actions {
    grid-column: 1 / -1;
  }

  .ssh-selected-template__actions a {
    flex: 1;
  }

  .ssh-template-questionnaire {
    padding: 18px;
  }

  .ssh-template-questionnaire__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .ssh-selected-template {
    grid-template-columns: 1fr;
  }

  .ssh-selected-template > img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 8;
  }

  .ssh-selected-template__actions {
    grid-column: 1;
  }
}
