@charset "UTF-8";
/* 공통 색상, 여백 기준, 모서리 둥글기 */
:root {
  --bg: #f7f8fc;
  --surface: #fff;
  --ink: #202637;
  --muted: #626c80;
  --line: #e6e9f1;
  --accent: #278ed2;
  --accent-soft: #eaf5fb;
  --radius: 18px;
}
/* 전체 요소의 크기 계산과 기본 페이지 글꼴·링크·포커스 표시 */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 system-ui,-apple-system,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;
}
button,input,textarea {
  font: inherit;
}
button,a,input,textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: var(--accent);
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible {
  outline: 3px solid #9bd2f0;
  outline-offset: 3px;
}
button:disabled {
  opacity: .55;
  cursor: wait;
}
button,input,textarea {
  min-width: 0;
}
h1,h2,p {
  margin: 0;
}
a {
  text-decoration: none;
}
.d-none {
  display: none!important;
}
/* 상단 헤더와 로고, 브랜드 설명 */
.site-header {
  background: #ffffffd9;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1216px;
  min-height: 78px;
  margin: auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -.5px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  font-size: 21px;
  font-weight: 800;
}
.header-note {
  font-size: 12px;
  color: var(--muted);
}
/* 페이지 본문 너비와 제목·소개 문구 배치 */
.workspace {
  max-width: 1216px;
  margin: 0 auto;
  padding: 44px 32px 24px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.eyebrow,.step-label {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.eyebrow {
  color: var(--accent);
  margin-bottom: 9px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1.3px;
  line-height: 1.4;
  font-weight: 750;
}
.intro {
  color: var(--muted);
  margin-top: 8px;
  font-size: 14px;
}
/* 공통 버튼과 주요 동작·보조 동작 버튼 */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  transition: background .15s;
}
.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 7px #278ed21c;
}
.button-primary:hover {
  background: #1e72a8;
}
.button-quiet {
  background: #fff;
  color: #485267;
  border-color: #dce0eb;
}
.button-quiet:hover {
  background: #f2f3f9;
}
/* 입력 폼과 콘텐츠 영역을 감싸는 패널, 패널 제목 */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: 0 3px 14px #20263703;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

h2 {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -.65px;
}
/* 단계 이름과 AI 분석·검토 상태 표시 */
.step-label {
  margin-bottom: 4px;
}
.ai-label,.review-label {
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 650;
  background: var(--accent-soft);
  color: var(--accent);
}
/* 입력 방식 전환 탭과 선택된 탭 */
.mode-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  background: #f0f2f7;
  margin-bottom: 21px;
  gap: 3px;
}
.mode-tab {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 8px 19px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
  min-height: 38px;
}
.mode-tab.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 5px #20263712;
}
/* 폼 필드 제목, 입력 상자, 안내·선택 사항 표시 */
.field-label {
  display: block;
  color: #414a5d;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 8px;
}
.form-control {
  display: block;
  width: 100%;
  min-height: 46px;
  background: #fff;
  border: 1px solid #dce1eb;
  border-radius: 9px;
  padding: 11px 14px;
  color: var(--ink);
  font-size: 13px;
}
.form-control::placeholder {
  color: #757e8f;
}
.form-control:focus {
  border-color: var(--accent);
}
textarea.form-control {
  resize: vertical;
  min-height: 140px;
}
.form-control:disabled {
  background: #f2f3f7;
  color: var(--muted);
}
.field-help {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.field-space {
  margin-top: 16px;
}
.optional {
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
}
/* 폼 하단 안내와 버튼, 입력 처리 상태 메시지 */
.input-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}
.input-note {
  font-size: 12px;
  color: var(--muted);
}
.status-message {
  font-size: 12px;
  margin-top: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.status-message:empty {
  display: none;
}
.status-message.error {
  color: #b82d4c;
}
/* 분석 결과 패널과 결과 입력 항목의 그리드 */
.result-panel {
  margin-top: 20px;
  border-top: 3px solid var(--accent);
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 19px;
}
.full-width {
  grid-column: 1/-1;
}
.required {
  color: #c12d53;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 13px;
}
.check-label input {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
}
.check-label span {
  font-size: 11px;
  color: var(--muted);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 6px;
}
/* 채용 공고 목록 영역의 제목, 공고 개수, 정렬·필터 컨트롤 */
.list-section {
  margin-top: 36px;
}
.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}
.list-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.count {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  border-radius: 7px;
  min-width: 25px;
  padding: 1px 7px;
  text-align: center;
}
.list-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.list-control {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.list-select {
  min-height: 38px;
  padding: 7px 30px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.list-select:focus-visible {
  outline: 3px solid #9bd2f0;
  outline-offset: 2px;
}
/* 공고 표의 바깥 틀, 표 머리글과 각 행 */
.job-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.backup-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.backup-dialog {
  width: min(600px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 18px 60px #20263733;
}
.backup-dialog::backdrop {
  background: #17203380;
  backdrop-filter: blur(2px);
}
.backup-modal {
  padding: 24px;
}
.backup-modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.modal-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
}
.modal-close:hover {
  background: #f0f2f7;
  color: var(--ink);
}
.backup-text {
  display: block;
  width: 100%;
  min-height: 180px;
  max-height: min(52vh, 480px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fafe;
  color: var(--ink);
  font: 13px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;
  text-align: left;
  resize: vertical;
  overflow-wrap: anywhere;
}
.backup-modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.backup-modal-actions svg {
  width: 18px;
  height: 18px;
}
.toast-message {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 24px;
  padding: 11px 18px;
  border-radius: 10px;
  background: #202637;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 6px 24px #20263733;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .18s, transform .18s;
}
.toast-message.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast-message.error {
  background: #a52b35;
}
.jobs-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}
.jobs-table th {
  background: #f0f2f8;
  color: #626c80;
  font-size: 11px;
  letter-spacing: .2px;
  font-weight: 650;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
.jobs-table td {
  padding: 21px 18px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: middle;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.jobs-table tbody tr:last-child td {
  border-bottom: 0;
}
.jobs-table tbody tr:hover {
  background: #fafaff;
}
/* 공고 회사명, 직무명, 마감 날짜와 시간 */
.company-name {
  font-weight: 750;
  color: var(--ink);
}
.job-title {
  color: #535d71;
  line-height: 1.6;
}
.deadline-date {
  display: block;
  color: #414b60;
  font-variant-numeric: tabular-nums;
}
.deadline-time {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
/* 공고 상태 배지와 상태별 색상 */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 750;
  min-width: 59px;
  border-radius: 7px;
  padding: 5px 8px;
}
.badge-primary {
  background: var(--accent-soft);
  color: #1e72a8;
}
.badge-danger {
  background: #fff0f1;
  color: #bd3450;
}
.badge-warning {
  background: #fff6df;
  color: #895b09;
}
.badge-info {
  background: #eaf7f3;
  color: #21745d;
}
.badge-secondary {
  background: #eef0f4;
  color: #616a7b;
}
/* 공고 링크, 삭제 버튼과 링크가 없을 때의 안내 */
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.job-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.delete-button {
  border: 1px solid #e2e5ed;
  background: #fff;
  color: #687184;
  border-radius: 7px;
  padding: 6px 10px;
  min-height: 36px;
  font-size: 11px;
}
.delete-button:hover {
  color: #b92c4b;
  border-color: #e9b9c5;
  background: #fff6f8;
}
.no-link {
  color: var(--muted);
  font-size: 11px;
}
/* 공고가 없을 때 표시하는 빈 상태 안내와 아이콘 */
.empty-state {
  text-align: center;
  padding: 52px 20px;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 15px;
  margin: 0 auto 15px;
  font-size: 24px;
}
.empty-state h3 {
  font-size: 15px;
  margin: 0 0 6px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
}
/* 페이지 하단 안내와 모바일 전용 필드 이름 */
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  padding: 24px 2px;
}
.feedback-link {
  color: #c62828;
  text-decoration: underline;
}
.mobile-label {
  display: none;
}
/* 넓은 화면에서 공고 표의 각 열 너비 */
@media (min-width:761px) {
  .jobs-table th:nth-child(1) {
    width: 20%;
  }
  .jobs-table th:nth-child(2) {
    width: 24%;
  }
  .jobs-table th:nth-child(3) {
    width: 12%;
  }
  .jobs-table th:nth-child(4) {
    width: 24%;
  }
  .jobs-table th:nth-child(5) {
    width: 20%;
  }
}
/* 태블릿에서 표 여백을 줄이고 헤더 보조 문구 숨김 */
@media (max-width:1000px) and (min-width:761px) {
  .jobs-table th,.jobs-table td {
    padding-left: 12px;
    padding-right: 12px;
  }
  .header-note {
    display: none;
  }
}
/* 모바일 화면 전반의 헤더와 페이지 제목·패널 크기 */
@media (max-width:760px) {
  .header-inner {
    min-height: 66px;
    padding: 14px 16px;
  }
  .brand {
    font-size: 13px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
  .header-note {
    display: none;
  }
  .workspace {
    padding: 24px 12px 14px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 23px;
  }
  .page-heading>.button {
    display: inline-flex;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
  }
  h1 {
    font-size: 24px;
    letter-spacing: -1px;
  }
  .intro {
    font-size: 12px;
    max-width: 270px;
  }
  .panel {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .section-heading {
    margin-bottom: 18px;
  }
  h2 {
    font-size: 17px;
  }
  /* 모바일에서 상태 배지와 입력 방식 탭 크기 조정 */
  .ai-label,.review-label {
    font-size: 10px;
    padding: 4px 7px;
  }
  .mode-tabs {
    display: flex;
  }
  .mode-tab {
    flex: 1;
    padding: 8px 10px;
  }
  /* 모바일 폼 버튼을 세로로 배치하고 결과 항목을 한 열로 표시 */
  .input-bottom {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .input-bottom .button {
    width: 100%;
  }
  .input-note {
    font-size: 11px;
  }
  .result-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 15px;
  }
  .check-label span {
    flex-basis: 100%;
    padding-left: 26px;
  }
  /* 모바일 공고 목록의 간격과 표 외곽선 */
  .list-section {
    margin-top: 28px;
  }
  .list-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .list-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }
  .list-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    min-width: 0;
    font-size: 11px;
  }
  .list-select {
    width: 100%;
    min-width: 0;
    padding: 7px 24px 7px 8px;
    font-size: 11px;
  }
  .job-list {
    border-radius: 14px;
  }
  .backup-dialog {
    border-radius: 14px;
  }
  .backup-modal {
    padding: 18px 16px;
  }
  .backup-text {
    min-height: 150px;
  }
  /* 모바일 공고 표를 카드형 행으로 바꾸고 열 머리글 숨김 */
  .jobs-table,.jobs-table tbody {
    display: block;
    width: 100%;
  }
  .jobs-table thead {
    display: none;
  }
  .jobs-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 9px 10px;
    min-width: 0;
    padding: 18px 14px;
    border-bottom: 1px solid var(--line);
  }
  .jobs-table tbody tr:last-child {
    border-bottom: 0;
  }
  /* 카드형 공고 행의 회사명·직무·마감일·동작 위치 */
  .jobs-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0!important;
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .jobs-table td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }
  .company-name {
    font-size: 15px;
  }
  .jobs-table td:nth-child(2) {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .jobs-table td:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }
  .jobs-table td:nth-child(4) {
    grid-column: 1/-1;
    grid-row: 3;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 3px;
  }
  .jobs-table td:nth-child(5) {
    grid-column: 1/-1;
    grid-row: 4;
    border-top: 1px dashed var(--line)!important;
    padding-top: 10px;
    margin-top: 4px;
  }
  .mobile-label {
    display: inline-block;
    color: var(--muted);
    font-size: 11px;
    flex-shrink: 0;
    padding-top: 2px;
  }
  /* 카드형 공고의 날짜, 버튼 간격과 상태 배지 크기 */
  .deadline-date {
    font-size: 12px;
  }
  .deadline-time {
    font-size: 11px;
  }
  .actions {
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
  }
  .delete-button,.job-link {
    min-height: 40px;
  }
  .page-footer {
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    padding-top: 20px;
  }
  .empty-state {
    padding: 36px 18px;
  }
  .badge {
    min-width: 57px;
  }
}
@media (max-width:400px) {
  .page-heading {
    gap: 16px;
  }
  .panel {
    padding-right: 14px;
    padding-left: 14px;
  }
  .section-heading {
    gap: 8px;
  }
  .review-label {
    max-width: 112px;
    text-align: center;
  }
  .jobs-table tbody tr {
    padding-right: 12px;
    padding-left: 12px;
  }
}
/* 동작 줄이기를 설정한 사용자는 스크롤·전환 애니메이션 비활성화 */
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none!important;
  }
}
