* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1200px;

  color: var(--main-text-color);
  background: var(--background-color);

  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans KR",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
}

.blind {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================
   전체 레이아웃
========================= */

.matching-main {
  width: 1040px;
  margin: 0 auto;
  padding: 38px 0 100px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.page-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: -1.4px;
}

.page-description {
  margin: 10px 0 0;
  color: var(--sub-text-color);
  font-size: 15px;
}

.matching-panel {
  background: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(38, 55, 95, 0.035);
}

.matching-panel + .matching-panel {
  margin-top: 18px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.panel-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.4px;
}

.panel-description {
  margin: 7px 0 0;
  color: var(--sub-text-color);
  font-size: 13px;
}

/* =========================
   보유 기술
========================= */

.skill-panel {
  padding: 25px 26px;
}

.skill-manage-button {
  height: 40px;
  padding: 0 15px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #3c465a;
  background: #ffffff;

  border: 1px solid #d9deea;
  border-radius: 8px;

  font-size: 13px;
  font-weight: 600;
}

.skill-manage-button:hover {
  color: var(--primary-color);
  border-color: #bfccef;
}

.skill-manage-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.selected-skill-layout {
  margin-top: 21px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  align-items: center;
  gap: 30px;
}

.selected-skill-list {
  min-height: 38px;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.selected-skill-tag {
  min-height: 36px;
  padding: 7px 11px 7px 14px;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  color: #4566b5;
  background: #f1f5ff;

  border: 1px solid #e0e8ff;
  border-radius: 8px;

  font-size: 13px;
  font-weight: 600;
}

.remove-skill-button {
  width: 18px;
  height: 18px;
  padding: 0;

  color: #6f84b9;
  background: transparent;

  font-size: 18px;
  line-height: 1;
}

.selected-empty-message {
  margin: 0;
  color: var(--light-text-color);
  font-size: 13px;
}

.skill-tip {
  margin: 14px 0 0;
  color: #778196;
  font-size: 12px;
}

.skill-tip::before {
  content: "💡";
  margin-right: 6px;
}

.analyze-button {
  width: 200px;
  height: 48px;

  color: var(--white-color);
  background: var(--primary-color);

  border-radius: 9px;

  font-size: 15px;
  font-weight: 700;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.analyze-button:hover {
  background: var(--primary-hover-color);
  transform: translateY(-1px);
}

.analyze-button:disabled {
  color: #a8acb6;
  background: #e4e6eb;
  cursor: default;
  transform: none;
}

/* =========================
   기술 선택 펼침 영역
========================= */

.skill-picker-area {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
}

.skill-search-form {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 8px;
}

.skill-search-input {
  width: 100%;
  height: 48px;
  padding: 0 18px;

  color: var(--main-text-color);
  background: var(--white-color);

  border: 1px solid var(--input-border-color);
  border-radius: 8px;

  font-size: 14px;
  outline: none;
}

.skill-search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(36, 81, 209, 0.1);
}

.skill-search-button {
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--white-color);
  background: var(--primary-color);

  border-radius: 8px;
}

.skill-search-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-option-list {
  max-height: 230px;
  margin-top: 16px;
  padding: 4px 8px 8px 0;

  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 14px;

  overflow-y: auto;
}

.skill-option-list::-webkit-scrollbar {
  width: 7px;
}

.skill-option-list::-webkit-scrollbar-thumb {
  background: #d9deea;
  border-radius: 10px;
}

.skill-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 13px;
  cursor: pointer;
}

.skill-checkbox {
  width: 17px;
  height: 17px;
  margin: 0;

  accent-color: var(--primary-color);
  cursor: pointer;
}

.state-message {
  width: 100%;
  margin: 25px 0;
  color: var(--light-text-color);
  font-size: 13px;
  text-align: center;
}

/* =========================
   분석 결과 요약
========================= */

.result-panel {
  padding: 25px 26px 27px;
}

.result-heading {
  margin-bottom: 20px;
}

.result-state {
  padding: 45px 20px;

  color: var(--sub-text-color);
  background: #fafbfe;

  border: 1px dashed #d9deea;
  border-radius: 10px;

  font-size: 14px;
  text-align: center;
}

.result-error {
  color: #d24b4b;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.summary-box {
  min-height: 112px;
  padding: 20px 18px;

  display: flex;
  align-items: center;
  gap: 14px;

  border: 1px solid #e0e3ea;
  border-radius: 11px;
}

.summary-icon {
  width: 38px;
  height: 38px;

  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  font-size: 17px;
  font-weight: 700;
}

.summary-icon-blue {
  color: #2e63d4;
  background: #eef4ff;
}

.summary-icon-green {
  color: #159466;
  background: #eaf8f2;
}

.summary-icon-purple {
  color: #7658d6;
  background: #f2efff;
}

.summary-icon-orange {
  color: #e59727;
  background: #fff4e5;
}

.summary-label {
  display: block;
  color: var(--sub-text-color);
  font-size: 12px;
}

.summary-value-row {
  margin-top: 6px;

  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.summary-value {
  font-size: 29px;
  line-height: 1;
}

.summary-unit {
  padding-bottom: 2px;
  font-size: 12px;
}

.summary-skill {
  display: block;
  margin-top: 8px;

  overflow: hidden;

  font-size: 21px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* =========================
   추천 공고
========================= */

.recommendation-panel {
  overflow: hidden;
}

.recommend-toolbar {
  min-height: 62px;
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid var(--border-color);
}

.recommend-tabs {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 28px;
}

.recommend-tab {
  position: relative;

  padding: 0;

  color: #697286;
  background: transparent;

  font-size: 14px;
  font-weight: 600;
}

.recommend-tab.active {
  color: var(--primary-color);
}

.recommend-tab.active::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;

  height: 2px;

  background: var(--primary-color);
}

.recommend-sort {
  height: 38px;
  padding: 0 34px 0 13px;

  color: #4e576a;
  background: #ffffff;

  border: 1px solid #d9deea;
  border-radius: 8px;

  font-size: 13px;
  outline: none;
}

.recommend-content {
  padding: 22px 24px 26px;
}

.recommend-job-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recommend-job-card {
  min-height: 190px;
  padding: 18px 22px;

  display: grid;
  grid-template-columns: 125px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 22px;

  background: #ffffff;

  border: 1px solid #e0e3ea;
  border-radius: 13px;

  cursor: pointer;
}

.recommend-job-card:hover {
  background: #fafbff;
}
.match-circle {
  --score: 0;

  width: 102px;
  height: 102px;
  margin: 0 auto;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background:
    conic-gradient(
      var(--match-color) calc(var(--score) * 1%),
      #e8ebf1 0
    );

  position: relative;
}

.match-circle::before {
  content: "";

  position: absolute;
  inset: 7px;

  background: #ffffff;
  border-radius: 50%;
}

.match-circle-content {
  position: relative;
  z-index: 1;

  text-align: center;
}

.match-circle strong {
  display: block;
  color: var(--match-color);
  font-size: 24px;
  line-height: 1;
}

.match-circle span {
  display: block;
  margin-top: 5px;
  color: #768096;
  font-size: 11px;
}

.recommend-job-main {
  min-width: 0;
}

.company-logo {
  width: fit-content;
  max-width: 420px;
  padding: 6px 12px;

  color: #5f6673;
  background: #f3f5f8;

  border-radius: 8px;

  font-size: 14px;
  font-weight: 600;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommend-job-title {
  display: block;
  margin: 10px 0 13px;

  overflow: hidden;

  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.skill-info-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 8px;

  margin-top: 8px;
}

.skill-info-label {
  color: var(--sub-text-color);
  font-size: 12px;
}

.matched-skill-list,
.missing-skill-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.result-skill-tag {
  min-height: 26px;
  padding: 5px 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 7px;

  font-size: 11px;
  font-weight: 600;
}

.matched-tag {
  color: #168b62;
  background: #eaf8f2;
  border: 1px solid #d6f0e5;
}

.missing-tag {
  color: #c55454;
  background: #fff1f1;
  border: 1px solid #f8dddd;
}

.recommend-job-meta {
  margin-top: 14px;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;

  color: #697286;
  font-size: 12px;
}

.bookmark-button {
  width: 40px;
  height: 40px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #9aa3b2;
  background: transparent;

  border: none;

  cursor: pointer;
}

.bookmark-icon {
  width: 27px;
  height: 27px;

  display: block;

  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;

  transition:
    fill 0.15s ease,
    stroke 0.15s ease,
    color 0.15s ease;
}

.bookmark-button:hover {
  color: #9aa3b2;
}

.bookmark-button.active {
  color: #f5b301;
}

.bookmark-button.active .bookmark-icon {
  fill: currentColor;
  stroke: currentColor;
}

.recommend-empty-message {
  margin: 0;
  padding: 65px 20px;

  color: var(--light-text-color);
  background: #fafbfe;

  border: 1px dashed #d9deea;
  border-radius: 10px;

  font-size: 14px;
  text-align: center;
}

/* =========================
   토스트
========================= */

.toast {
  position: fixed;
  left: 50%;
  bottom: 35px;
  z-index: 200;

  max-width: calc(100% - 40px);
  padding: 13px 22px;

  color: var(--white-color);
  background: rgba(20, 22, 27, 0.92);

  border-radius: 10px;

  font-size: 14px;
  font-weight: 600;

  opacity: 0;
  visibility: hidden;

  transform: translate(-50%, 20px);

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}