:root {
  color-scheme: light;
  --bg: #f7f8fc;
  --panel: #ffffff;
  --soft: #fbfcff;
  --line: #e4e8f1;
  --line-2: #dde3ef;
  --text: #20242c;
  --muted: #667085;
  --accent: #5278ff;
  --accent-2: #a36dff;
  --gold: #f0a923;
  --shadow: 0 18px 55px rgba(36, 48, 82, 0.13);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  background:
    radial-gradient(circle at 10% 0%, #e8f1ff, transparent 32%),
    radial-gradient(circle at 90% 10%, #fff1df, transparent 30%),
    radial-gradient(circle at 50% 100%, #f1eaff, transparent 34%),
    var(--bg);
  color: var(--text);
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  border: 1px solid #e5e9f2;
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

.hero,
.panel {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero {
  position: relative;
  display: block;
  overflow: visible;
  padding: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.eyebrow {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 12px;
  border: 1px solid #e7eaf2;
  border-radius: 999px;
  padding: 7px 11px;
  background: #f3f5fb;
  color: #596275;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.05em;
  text-align: center;
  text-shadow: none;
}

h2 {
  margin-bottom: 8px;
  font-size: 32px;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 16px;
}

.lead {
  max-width: 720px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.lead.compact {
  margin: 0;
  text-align: left;
}

.hero-actions,
.nav-row,
.result-head,
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-actions {
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0;
}

.filter-head,
.filter-actions,
.job-group-tabs,
.job-pool {
  display: flex;
}

.job-filter {
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: #ffffff;
}

.filter-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.filter-head h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.filter-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.filter-count {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 11px;
  background: #eef3ff;
  color: #3d57b7;
  font-size: 13px;
  font-weight: 950;
}

.filter-actions {
  gap: 8px;
  margin: 14px 0 12px;
}

.small {
  min-height: 36px;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 13px;
}

.job-group-tabs {
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.group-tab {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid #e7eaf2;
  border-radius: 999px;
  padding: 0 12px;
  background: #f3f5fb;
  color: #596275;
  font-size: 13px;
  font-weight: 850;
}

.group-tab.selected {
  border-color: var(--accent);
  background: #eef3ff;
  color: #213fc0;
}

.job-pool {
  max-height: 220px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid #edf0f6;
  border-radius: 16px;
  background: #fbfcff;
}

.job-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #edf0f6;
  border-radius: 12px;
  padding: 0 10px;
  background: #ffffff;
  color: #4b5565;
  font-size: 13px;
  font-weight: 850;
}

.job-check input {
  accent-color: var(--accent);
}

.filter-warning {
  margin: 0 0 10px;
  color: #d04b4b;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.primary-btn,
.ghost-btn,
.meta-pill {
  min-height: 44px;
  border-radius: 13px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  font-size: 15px;
}

.primary-btn {
  background: var(--accent);
  color: #ffffff;
  box-shadow: none;
}

.ghost-btn,
.meta-pill {
  border: 0;
  background: #eef0f5;
  color: #4b5565;
}

.meta-pill {
  border: 1px solid #e7eaf2;
  background: #f3f5fb;
  color: #596275;
  font-size: 13px;
}

.notice {
  margin: 18px 0 0;
  color: #7a8495;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.panel {
  padding: 0;
}

.topbar {
  margin-bottom: 14px;
}

.topbar .eyebrow {
  justify-content: flex-start;
  margin: 0 0 8px;
  color: var(--accent);
}

.progress-copy {
  color: var(--muted);
  font-weight: 950;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f6;
  margin: 0 0 20px;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 180ms ease;
}

.question {
  margin-bottom: 18px;
  padding: 22px 22px 10px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: #ffffff;
  min-height: 0;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.options {
  display: grid;
  gap: 10px;
  margin: -18px 0 0;
  padding: 0 22px 22px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  background: #ffffff;
}

.option-btn {
  width: 100%;
  min-height: 0;
  border: 1px solid var(--line-2);
  border-radius: 15px;
  padding: 15px 16px;
  background: var(--soft);
  color: var(--text);
  text-align: left;
  font-weight: 750;
  line-height: 1.45;
  box-shadow: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.option-btn:hover {
  border-color: #9aabff;
  background: #f5f7ff;
  transform: translateY(-1px);
}

.option-btn strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 8px 0 0;
  border-radius: 50%;
  background: #eef3ff;
  color: var(--accent);
}

.option-btn.selected {
  border-color: var(--accent);
  outline: 0;
  background: #eef3ff;
  box-shadow: inset 0 0 0 1px var(--accent);
  color: #213fc0;
}

.nav-row {
  margin-top: 18px;
}

.result-panel {
  min-height: auto;
}

.result-head {
  align-items: flex-start;
  margin-bottom: 18px;
}

.result-head .eyebrow {
  justify-content: flex-start;
  margin: 0 0 8px;
  color: var(--accent);
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  margin: 20px 0;
}

.recommendations,
.summary-card,
.all-scores {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  padding: 18px;
}

.job-card {
  display: grid;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.job-card:first-child {
  margin: 0 0 4px;
  border: 1px solid #f2c15f;
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, #fff9eb, #ffffff);
}

.job-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.score {
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 0;
}

.job-card:first-child .score {
  color: #c57a00;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f0f4ff;
  color: #3d57b7;
  font-size: 13px;
  font-weight: 850;
}

.bar-row {
  margin-bottom: 12px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  color: #596275;
  font-size: 13px;
  margin-bottom: 6px;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f6;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.full {
  width: 100%;
  margin-top: 10px;
}

.all-scores summary {
  cursor: pointer;
  font-weight: 950;
}

.all-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #edf0f6;
  border-radius: 12px;
  background: #ffffff;
  font-size: 14px;
}

#allJobs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.site-footer {
  max-width: 980px;
  margin: 24px auto 0;
  padding: 24px 16px 32px;
  text-align: center;
  font-size: 13px;
  color: #8b95a1;
}

.site-footer__nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #6b7280;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__notice {
  margin: 10px 0 0;
  line-height: 1.5;
}

.policy-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
  line-height: 1.7;
  color: #111827;
}

.policy-page h1 {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 1.3;
}

.policy-page h2 {
  margin: 28px 0 10px;
  font-size: 20px;
  line-height: 1.4;
}

.policy-page p {
  margin: 0 0 14px;
}

.policy-page a {
  color: #2563eb;
  text-decoration: none;
}

.policy-page a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  body {
    padding: 12px;
  }

  .app-shell {
    padding: 18px;
    border-radius: 20px;
  }

  h1 {
    font-size: 25px;
  }

  h2 {
    font-size: 28px;
  }

  .question {
    font-size: 20px;
    padding: 18px 18px 0;
  }

  .options {
    padding: 0 18px 18px;
  }

  .result-grid,
  .result-head,
  .topbar {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }

  .nav-row button {
    flex: 1;
  }

  .filter-head {
    display: grid;
  }

  .job-pool {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .policy-page {
    padding: 28px 16px;
  }

  .policy-page h1 {
    font-size: 24px;
  }

  .policy-page h2 {
    font-size: 18px;
  }
}
