main .survey-box,
main .result-box,
main .result-hero,
main .action-box {
  max-width: 900px;
  margin: 8px auto;   
}
.survey-body {
  padding: 18px 24px 24px;
}
.title-meta {
  margin-left: auto;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0 8px 16px;
  font-weight: 500;
}
.title-meta b {
  color: var(--box-title-choose-color);
  font-size: 17px;
}
.survey-progress {
  margin-bottom: 16px;
}
.survey-progress .bar {
  height: 8px;
  border-radius: 99px;
  background: var(--primary-light);
  overflow: hidden;
}
.survey-progress .bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--box-title-choose-color);   
  transition: width 0.3s ease;
}
.survey-progress .num {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.survey-progress .num b {
  color: var(--box-title-choose-color);
  font-size: 15px;
}
.survey-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--main--border-color);
}
.survey-legend b {
  color: var(--box-title-choose-color);
}
.survey-legend .legend-hint {
  font-size: 12px;
  color: var(--news-date-color);
}
.q-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.q-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 8px;
  border-bottom: 1px solid var(--news-divider-color);
  border-radius: 10px;
  transition: background 0.2s ease;
}
.q-item:last-child {
  border-bottom: none;
}
.q-index {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--box-title-choose-color);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.q-text {
  flex: 1 1 auto;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.6;
}
.q-scale {
  flex: none;
  display: flex;
  gap: 8px;
}
.q-opt {
  position: relative;
  display: block;
  cursor: pointer;
}
.q-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.q-opt span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--main--border-color);
  background: #fff;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.16s ease;
}
.q-opt:hover span {
  border-color: var(--box-title-choose-color);
  color: var(--box-title-choose-color);
  transform: translateY(-1px);
}
.q-opt input:checked + span {
  background: var(--box-title-choose-color);   
  border-color: var(--box-title-choose-color);
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(29, 81, 210, 0.55);
}
.q-opt input:focus-visible + span {
  outline: 2px solid var(--box-title-choose-color);
  outline-offset: 2px;
}
.q-item.missing {
  background: #fff7f7;
  box-shadow: inset 0 0 0 1.5px #ffd4d4;
}
.q-item.missing .q-index {
  background: #ffe4e4;
  color: #e5484d;
}
.survey-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.btn {
  appearance: none;
  border: none;
  border-radius: var(--border-radius);
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.16s ease;
}
.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn-primary {
  background: var(--box-title-choose-color);   
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(29, 81, 210, 0.6);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.btn-ghost {
  background: #fff;
  color: var(--text-secondary);
  box-shadow: inset 0 0 0 1.5px var(--main--border-color);
}
.btn-ghost:hover {
  color: var(--box-title-choose-color);
  box-shadow: inset 0 0 0 1.5px var(--box-title-choose-color);
}
.result-intro {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.cat-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--primary-light);
  overflow: hidden;
  margin-bottom: 16px;
}
.cat-bar > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--box-title-choose-color);   
  transition: width 0.6s ease;
}
.winner {
  background: #f5f8ff;                         
  border: 1px solid #dde6ff;
  border-radius: var(--border-radius);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.winner-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: #fff;
  background: var(--box-title-choose-color);
  border-radius: 99px;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.winner h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--primary-dark);
}
.winner p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.winner p:last-child {
  margin-bottom: 0;
}
.sub-details summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--box-title-choose-color);
  padding: 6px 0;
  user-select: none;
}
.sub-details summary:hover {
  text-decoration: underline;
}
.sub-list {
  list-style: none;
  padding: 6px 0 0;
  margin: 0;
}
.sub-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 6px 0;
}
.sub-name {
  flex: 0 0 100px;
  color: var(--text-primary);
}
.sub-bar {
  flex: 1;
  height: 6px;
  background: var(--primary-light);
  border-radius: 99px;
  overflow: hidden;
}
.sub-bar > i {
  display: block;
  height: 100%;
  background: #9db0ff;                         
  border-radius: 99px;
}
.sub-score {
  flex: none;
  color: var(--box-title-choose-color);
  font-weight: 700;
  font-size: 13px;
}
footer .footer-block {
  align-items: center;
  gap: 12px;
}
footer .footer-links a {
  margin: 0 8px;
}
@media (max-width: 800px) {
  main .survey-box,
  main .result-box,
  main .result-hero,
  main .action-box {
    margin: 8px auto;
  }
  .survey-body {
    padding: 14px 16px 18px;
  }
  .q-item {
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 4px;
  }
  .q-index {
    display: none;
  }
  .q-text {
    flex: 1 1 100%;
    font-size: 15px;
  }
  .q-scale {
    flex: 1 1 100%;
    justify-content: space-between;
    gap: 4px;
  }
  .q-opt span {
    width: 46px;
    height: 46px;
  }
  .title-meta {
    font-size: 13px;
  }
  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  .sub-name {
    flex: 0 0 76px;
    font-size: 13px;
  }
  footer .footer-block {
    flex-direction: column;
    gap: 8px;
  }
}
@media print {
  body {
    background: #fff;
  }
  header,
  footer,
  .survey-nav,
  .survey-progress,
  .survey-legend .legend-hint,
  .sub-details {
    display: none !important;
  }
  .box {
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .q-item.missing {
    background: #fff;
    box-shadow: none;
  }
  .winner {
    background: #f9fafb;
  }
}