* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  letter-spacing: 0;
}
body {
  background: #f4f7fb;
  color: #172033;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.header {
  min-height: 76px;
  background: #fff;
  border-bottom: 1px solid #dce4ef;
  display: flex;
  align-items: center;
}
.header-inner {
  width: 94%;
  max-width: 1500px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.logo-link img {
  width: 48px;
  height: 48px;
}
.logo-link h2 {
  font-size: 22px;
}
.logo-link p {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}
.header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.header-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 800;
}
.header-btn.primary {
  background: #1769e0;
  border-color: #1769e0;
  color: #fff;
}
.container {
  width: 94%;
  max-width: 1500px;
  margin: 24px auto 48px;
}
.hero {
  background: #fff;
  border: 0;
  border-bottom: 1px solid #dce4ef;
  padding: 10px 2px 26px;
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 28px;
  align-items: end;
  border-radius: 0;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 38px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.hero h1 span {
  color: #1769e0;
}
.hero p {
  color: #52627a;
  line-height: 1.75;
}
.progress-card {
  background: #fff;
  border: 1px solid #d6e2f2;
  padding: 20px;
  border-radius: 8px;
}
.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.progress-row strong {
  color: #1769e0;
  font-size: 22px;
}
.progress-track {
  height: 9px;
  background: #e4ebf5;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 13px;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: #1769e0;
  transition: width 0.2s;
}
.layout {
  display: grid;
  grid-template-columns: minmax(520px, 0.92fr) minmax(520px, 1.08fr);
  gap: 22px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  padding: 28px;
}
.survey-panel {
  position: static;
  max-height: none;
  overflow: visible;
}
.result-panel {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow: auto;
}
.panel h2 {
  font-size: 25px;
  margin-bottom: 7px;
}
.panel-desc {
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 22px;
}
.survey-nav {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin: 0 0 16px;
}
.survey-nav button {
  height: 34px;
  border: 1px solid #d6dfeb;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}
.survey-nav button.answered {
  background: #e7f0ff;
  border-color: #87afea;
  color: #1558b0;
}
.question {
  padding: 22px 0;
  border-top: 1px solid #e5eaf1;
  scroll-margin-top: 100px;
}
.question:first-of-type {
  border-top: 0;
  padding-top: 8px;
}
.question-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.question-title label {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
}
.question-hint {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  margin-top: 4px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice span {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  border: 1px solid #ced8e6;
  background: #fff;
  border-radius: 8px;
  font-weight: 700;
  color: #34445d;
  transition: 0.15s;
}
.choice input:checked + span {
  background: #e5f0ff;
  color: #075dcf;
  border-color: #1769e0;
  box-shadow: inset 0 0 0 1px #1769e0;
}
.question select,
.question textarea {
  width: 100%;
  border: 1px solid #c8d3e2;
  border-radius: 8px;
  padding: 13px;
  background: #fff;
  outline: none;
}
.question select:focus,
.question textarea:focus {
  border-color: #1769e0;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.12);
}
.question textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.6;
}
.analysis-btn {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #1769e0;
  color: #fff;
  padding: 16px;
  font-size: 16px;
  font-weight: 900;
}
.analysis-btn:disabled {
  background: #9aabc2;
  cursor: wait;
}
.result-empty {
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #718199;
  line-height: 1.8;
}
.result-wrap {
  display: none;
}
.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.result-heading h2 {
  margin: 0;
}
.analysis-badge {
  padding: 7px 10px;
  border-radius: 8px;
  background: #e9f7ef;
  color: #08783c;
  font-size: 12px;
  font-weight: 900;
}
.profile-box {
  border-left: 4px solid #1769e0;
  background: #f4f8fe;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.profile-box h3 {
  font-size: 21px;
  line-height: 1.45;
  margin-bottom: 9px;
}
.profile-box p {
  line-height: 1.75;
  color: #43536b;
}
.summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}
.summary-block strong,
.detail-block h4,
.roadmap-column h4 {
  display: block;
  font-size: 13px;
  color: #52627a;
  margin-bottom: 8px;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tag {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 6px;
  background: #e5f0ff;
  color: #075dcf;
  font-size: 12px;
  font-weight: 800;
}
.profile-caution {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #d8e3f1;
  font-size: 13px;
  color: #66758c;
}
.career-card {
  border: 1px solid #d7e0ec;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}
.career-head {
  padding: 18px 20px;
  background: #f8fafc;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e1e7ef;
}
.rank-name {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.rank {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1769e0;
  color: #fff;
  font-weight: 900;
}
.career-name {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.35;
}
.source {
  display: block;
  margin-top: 4px;
  color: #728197;
  font-size: 12px;
}
.score {
  font-size: 20px;
  color: #075dcf;
  font-weight: 900;
  white-space: nowrap;
}
.career-body {
  padding: 20px;
}
.fit-summary {
  font-size: 15px;
  line-height: 1.75;
  color: #34445d;
  margin-bottom: 17px;
}
.evidence-list,
.plain-list {
  padding-left: 19px;
  color: #40516a;
}
.evidence-list li,
.plain-list li {
  margin: 7px 0;
  line-height: 1.58;
}
.career-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.detail-block {
  border: 1px solid #e0e6ee;
  padding: 14px;
  border-radius: 6px;
  min-width: 0;
}
.detail-block p {
  color: #40516a;
  line-height: 1.62;
  overflow-wrap: anywhere;
}
.detail-block.full {
  grid-column: 1/-1;
}
.warning-block {
  background: #fff8e8;
  border-color: #f0db9d;
}
.warning-block h4 {
  color: #865d00;
}
.career-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.link-btn {
  border: 1px solid #b9c7d9;
  background: #fff;
  color: #263650;
  padding: 9px 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
}
.link-btn.primary {
  background: #1769e0;
  border-color: #1769e0;
  color: #fff;
}
.roadmap {
  margin-top: 22px;
  border-top: 1px solid #dce4ef;
  padding-top: 22px;
}
.roadmap h3,
.counselor h3 {
  font-size: 20px;
  margin-bottom: 13px;
}
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.roadmap-column {
  background: #f8fafc;
  border: 1px solid #e1e7ef;
  padding: 14px;
  border-radius: 6px;
}
.counselor {
  margin-top: 18px;
  border: 1px solid #dce4ef;
  padding: 18px;
  border-radius: 6px;
}
.counselor ol {
  padding-left: 21px;
}
.counselor li {
  margin: 8px 0;
  line-height: 1.55;
}
.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}
.save-result-btn {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #172033;
  color: #fff;
  padding: 15px;
  font-weight: 900;
}
.history-result-btn {
  border: 1px solid #b9c7d9;
  border-radius: 8px;
  background: #fff;
  color: #263650;
  padding: 15px;
  font-weight: 900;
}
.notice {
  font-size: 12px;
  color: #6c7b91;
  line-height: 1.65;
  margin-top: 11px;
}
.loading-box {
  min-height: 540px;
  display: none;
  place-items: center;
  text-align: center;
  color: #52627a;
}
.spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #dbe5f2;
  border-top-color: #1769e0;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 14px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1050px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .survey-panel,
  .result-panel {
    position: static;
    max-height: none;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .header-inner {
    padding: 10px 0;
  }
  .logo-link h2 {
    font-size: 18px;
  }
  .logo-link p {
    display: none;
  }
  .header-btn {
    padding: 9px 10px;
    font-size: 12px;
  }
  .container {
    width: 96%;
    margin-top: 14px;
  }
  .hero {
    padding: 22px;
  }
  .hero h1 {
    font-size: 29px;
  }
  .panel {
    padding: 18px;
  }
  .choice-grid,
  .career-grid,
  .summary-row,
  .result-actions {
    grid-template-columns: 1fr;
  }
  .career-head {
    padding: 16px;
  }
  .career-body {
    padding: 16px;
  }
  .detail-block.full {
    grid-column: auto;
  }
  .result-heading {
    align-items: flex-start;
  }
}
