/* survey.css — 사용자 설문 · 기술 검증 공통 확장 스타일 */

.survey-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: 16px; align-items: start; max-width: 1400px; margin: 0 auto;
}
@media (max-width: 900px) { .survey-layout { grid-template-columns: 1fr; } }

.q-block { margin-bottom: 18px; }
.q-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text); }

.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button {
  flex: 1; min-width: 84px; padding: 10px 8px; font-size: 12.5px; cursor: pointer;
  background: #0e1826; color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px; transition: all .12s;
}
.seg button:hover { border-color: var(--accent); color: var(--text); }
.seg button.sel {
  background: rgba(90, 168, 255, 0.2); color: #fff;
  border-color: var(--accent); font-weight: 600;
}

/* 리커트 5점 */
.likert { display: flex; gap: 6px; }
.likert button {
  flex: 1; padding: 9px 0; font-size: 13px; cursor: pointer;
  background: #0e1826; color: var(--muted);
  border: 1px solid var(--line); border-radius: 8px; transition: all .12s;
}
.likert button:hover { border-color: var(--stair); }
.likert button.sel { background: rgba(46,204,150,0.22); color: #fff; border-color: var(--stair); font-weight: 700; }
.likert-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 5px; }

textarea {
  width: 100%; margin-top: 4px; padding: 10px; border-radius: 8px; resize: vertical;
  background: #0e1826; color: var(--text); border: 1px solid var(--line);
  font-family: inherit; font-size: 13px;
}

.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.form-msg { font-size: 12.5px; color: var(--stair); }

/* 결과 */
.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi {
  background: #0e1826; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; text-align: center;
}
.kpi b { display: block; font-size: 24px; color: var(--stair); }
.kpi span { font-size: 11px; color: var(--muted); }

.likert-results { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.lr-item { font-size: 12px; }
.lr-top { display: flex; justify-content: space-between; margin-bottom: 4px; color: var(--text); }
.lr-avg { color: var(--stair); font-weight: 700; }
.bar-track { height: 8px; background: #0e1826; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.bar-fill { height: 100%; background: linear-gradient(90deg, #34e0a6, var(--stair)); border-radius: 4px; transition: width .4s; }

.dist-block { margin-top: 16px; }
.dist-block h3 { font-size: 13px; margin-bottom: 8px; }
.dist-bars { display: flex; flex-direction: column; gap: 6px; }
.dist-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.dist-row .dlabel { width: 88px; color: var(--muted); }
.dist-row .dtrack { flex: 1; height: 18px; background: #0e1826; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.dist-row .dfill { height: 100%; display: flex; align-items: center; padding-left: 6px; font-size: 10.5px; color: #08121f; font-weight: 700; }
.dfill.yes { background: var(--stair); }
.dfill.maybe { background: var(--warn); }
.dfill.no { background: var(--danger); }

.comment-list { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }
.comment-item {
  font-size: 12px; color: var(--muted); background: #0e1826;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; line-height: 1.5;
}
.comment-item .cmeta { color: #5f7898; font-size: 10.5px; margin-top: 3px; }

.empty { font-size: 12px; color: #5f7898; padding: 10px; text-align: center; }
