/* QAZ-PRELAUNCH-NONBLOCKING-SPRINT-001 / P0-C 一次性在线体验样式 */

.xp-section {
  padding: 48px 0;
}

.xp-notice {
  border-left: 4px solid #ffb703;
  background: #fff8e6;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 22px;
}

.xp-notice p {
  margin: 6px 0 0;
}

.xp-gate {
  border: 1px solid var(--line, #d7e2e8);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 22px;
}

.xp-gate[data-xp-outcome="BLOCKED"],
.xp-gate[data-xp-outcome="UNAVAILABLE"] {
  border-color: #e0b4b4;
  background: #fdf4f4;
}

.xp-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.xp-meta {
  font-size: 14px;
  color: var(--muted, #4a6b7c);
  margin: 6px 0 0;
  word-break: break-all;
}

.xp-question {
  border: 1px solid var(--line, #d7e2e8);
  border-radius: 12px;
  padding: 16px;
  margin: 0 0 14px;
}

.xp-question legend {
  font-weight: 700;
  padding: 0 6px;
}

.xp-options {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.xp-options label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 10px;
  border: 1px solid var(--line, #d7e2e8);
  border-radius: 9px;
  cursor: pointer;
  line-height: 1.5;
}

.xp-options label:hover {
  background: var(--soft, #f2f7fa);
}

.xp-options input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.xp-result {
  border-top: 2px solid var(--line, #d7e2e8);
  margin-top: 24px;
  padding-top: 18px;
}

.xp-signal {
  border: 1px solid var(--line, #d7e2e8);
  border-radius: 10px;
  padding: 14px;
  margin: 0 0 12px;
}

.xp-signal h4 {
  margin: 0 0 6px;
}

.xp-signal p {
  margin: 4px 0;
}

.xp-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef5f9;
  color: #0a3048;
  margin-left: 6px;
}

.xp-tag[data-kind="NEEDS_CORROBORATION"] {
  background: #fff2d9;
}

.xp-tag[data-kind="NOT_MEASURABLE"] {
  background: #eeeeee;
  color: #555555;
}

.xp-audit-list {
  max-height: 220px;
  overflow: auto;
  font-size: 13px;
  background: #f7fafc;
  border: 1px solid var(--line, #d7e2e8);
  border-radius: 8px;
  padding: 10px;
}

.xp-audit-list code {
  word-break: break-all;
}

@media (max-width: 680px) {
  .xp-section {
    padding: 32px 0;
  }

  .xp-question,
  .xp-gate {
    padding: 13px;
  }

  .xp-options label {
    padding: 8px;
  }
}

/* Functional polish: scoped to the experience form and homepage availability note. */
.xp-section [hidden] { display: none !important; }
.xp-section .container { max-width: 960px; }
.xp-steps { display:flex; flex-wrap:wrap; gap:12px 24px; padding:0; list-style:none; }
.xp-details { margin:16px 0; border:1px solid #d7e2e8; border-radius:10px; padding:12px 16px; }
.xp-details summary { cursor:pointer; min-height:44px; display:list-item; align-content:center; font-weight:600; }
.xp-progress { font-weight:700; color:#0a3048; }
.xp-options label { min-height:48px; align-items:center; box-sizing:border-box; }
.xp-options input { width:20px; height:20px; margin:0; accent-color:#1644bd; }
.xp-options label:has(input:checked) { border-color:#1644bd; background:#edf3ff; }
.xp-options label:focus-within { outline:3px solid #1644bd; outline-offset:2px; }
.xp-question { min-width:0; }
.xp-question legend, .xp-signal, .xp-tag { overflow-wrap:anywhere; }
.xp-section .button { min-height:48px; white-space:normal; text-align:center; }
.xp-section [data-xp-feedback]:not(:empty) { padding:12px; background:#fff8e6; border-left:4px solid #bc7900; }
.xp-result { scroll-margin-top:100px; }
.xp-result:focus { outline:2px solid #1644bd; outline-offset:6px; }
@media(max-width:680px) {
  .xp-section { font-size:16px; line-height:1.7; }
  .xp-gate-actions { flex-direction:column; }
  .xp-gate-actions .button { width:100%; }
  .xp-tag { margin:6px 0 0; max-width:100%; }
  .xp-steps { display:grid; gap:4px; }
}
