*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #E9EDF4;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #0F172A;
}

svg {
  fill: none;
  stroke: #FFFFFF;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Container Utama / Halaman Upload ===== */
.page {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #FFFFFF;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

.hero {
  position: relative;
  isolation: isolate;
  height: 220px;
  padding: 32px 42px 68px;
  overflow: hidden;
  background: linear-gradient(90deg, #1D4ED8 0%, #2563EB 50%, #2563EB 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  z-index: -1;
}

.hero::before {
  width: 384px;
  height: 384px;
  right: -64px;
  top: -96px;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(20px);
}

.hero::after {
  height: 320px;
  left: 47.17%;
  right: 25%;
  bottom: -144px;
  background: rgba(96, 165, 250, 0.2);
  filter: blur(12px);
}

.hero-text {
  max-width: 672px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero h1 {
  max-width: 340px;
  font-weight: 600;
  font-size: 36px;
  line-height: 38px;
  letter-spacing: -1px;
  color: #FFFFFF;
}

.hero p {
  max-width: 512px;
  font-size: 14px;
  line-height: 22px;
  color: rgba(219, 234, 254, 0.9);
}

.hero p span {
  display: block;
  max-width: 474px;
}

.content {
  position: relative;
  z-index: 1;
  margin-top: -48px;
  padding: 0 2% 32px;
}

.cards {
  display: flex;
  align-items: stretch;
  gap: 18px;
  max-width: 1500px;
  margin: 0 auto;
}

.card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-head.spaced {
  padding-bottom: 18px;
}

.icon-box {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563EB;
  border-radius: 11px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

.card-head h2 {
  font-size: 16px;
  line-height: 23px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #0F172A;
}

.card-head p {
  font-size: 13px;
  line-height: 19px;
  font-weight: 500;
  color: #64748B;
}

/* ===== Upload CV ===== */
.dropzone {
  flex: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(239, 246, 255, 0.2);
  border: 2px dashed rgba(96, 165, 250, 0.9);
  border-radius: 14px;
}

.dropzone input {
  display: none;
}

.upload-circle {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: #2563EB;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.upload-circle svg {
  width: 24px;
  height: 24px;
}

.drop-title {
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
  color: #1E293B;
}

.drop-title u {
  color: #2563EB;
  text-decoration: underline;
}

.drop-note {
  margin-top: 5px;
  font-size: 11px;
  line-height: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #94A3B8;
}

/* ===== File Terpilih ===== */
.file {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 10px;
}

.file-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-info > div:last-child {
  flex: 1;
  min-width: 0;
}

.pdf-badge {
  flex: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #DC2626;
  border-radius: 8px;
}

.pdf-badge svg {
  width: 18px;
  height: 18px;
}

.file-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 19px;
  font-weight: 600;
  color: #1E293B;
}

.file-meta {
  margin-top: 4px;
  font-size: 10px;
  line-height: 15px;
  font-weight: 500;
  color: #94A3B8;
}

.remove {
  flex: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.remove svg {
  width: 16px;
  height: 16px;
  stroke: #94A3B8;
}

.remove:hover {
  background: #E2E8F0;
}

/* ===== Form Job Description ===== */
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field + .field {
  margin-top: 12px;
}

.first-field {
  margin-top: 16px;
}

.field.grow {
  flex: 1;
  min-height: 150px;
}

.label {
  font-size: 13px;
  line-height: 19px;
  font-weight: 600;
  color: #334155;
}

.label .opt {
  font-weight: 500;
  color: #94A3B8;
}

.label .req {
  color: #DC2626;
}

.input,
.textarea {
  width: 100%;
  padding: 9px 13px;
  font-family: inherit;
  font-size: 13px;
  line-height: 18px;
  color: #0F172A;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  outline: none;
}

.textarea {
  flex: 1;
  min-height: 90px;
  padding: 10px;
  line-height: 18px;
  resize: none;
}

.input::placeholder,
.textarea::placeholder {
  color: #94A3B8;
}

.input:focus,
.textarea:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.counter {
  text-align: right;
  font-size: 10px;
  line-height: 15px;
  font-weight: 500;
  color: #94A3B8;
}



.actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 24px;
  max-width: 940px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 43px;
  padding: 11px 26px;
  font-family: inherit;
  font-size: 13px;
  line-height: 19px;
  font-weight: 600;
  color: #FFFFFF;
  background: #2563EB;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3),
    0 4px 6px -4px rgba(37, 99, 235, 0.3);
}

.btn:hover {
  background: #1D4ED8;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:focus-visible,
.remove:focus-visible,
.dropzone:focus-within {
  outline: 3px solid rgba(37, 99, 235, 0.4);
  outline-offset: 2px;
}

/* ===== Responsif Halaman Upload ===== */
@media (max-width: 860px) {
  .hero {
    height: auto;
    min-height: 230px;
    padding: 28px 22px 72px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 33px;
  }

  .content {
    padding: 0 16px 24px;
  }

  .cards {
    flex-direction: column;
    gap: 20px;
  }

  .card {
    padding: 20px;
  }

  .actions .btn {
    width: 100%;
  }
}

/* ===== Halaman Hasil Analisis ===== */
#result-page {
  width: 100%;
  min-height: 100vh;
  background: #FFFFFF;
  color: #0F172A;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

#result-page,
#result-page *,
#result-page *::before,
#result-page *::after {
  box-sizing: border-box;
}

#result-page .container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

#result-page .summary {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 32px max(5vw, calc((100vw - 1100px) / 2));
  background: linear-gradient(135deg, #1D4ED8, #3B82F6);
  border-radius: 0;
  box-shadow: none;
}

#result-page .summary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

#result-page .candidate-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

#result-page .candidate-info h1 {
  font-size: 25px;
  line-height: 1.4;
  font-weight: 800;
  color: #FFFFFF;
  overflow-wrap: anywhere;
}

#result-page .candidate-position,
#result-page .candidate-file {
  margin-top: 4px;
  color: #DBEAFE;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#result-page .score-box {
  flex-shrink: 0;
  min-width: 190px;
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid #DBEAFE;
  border-radius: 40px;
  text-align: center;
}

#result-page .score-label {
  display: block;
  color: #64748B;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

#result-page .score-value {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px;
  margin-top: 8px;
  line-height: 1;
}

#result-page .score-value .score-number {
  color: #2563EB;
  font-size: 48px;
  font-weight: 800;
}

#result-page .score-value .score-max {
  color: #94A3B8;
  font-size: 20px;
  font-weight: 700;
}

#result-page .score-status {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  color: #1D4ED8;
  background: #DBEAFE;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

#result-page .summary-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#result-page .metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  color: #FFFFFF;
  font-size: 13px;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
}

#result-page .metric-pill strong {
  font-size: 14px;
  font-weight: 700;
}

#result-page .strong-pill {
  border-left: 3px solid #4ADE80;
}

#result-page .partial-pill {
  border-left: 3px solid #FBBF24;
}

#result-page .gap-pill {
  border-left: 3px solid #F87171;
}

#result-page .panel,
#result-page .recs {
  min-width: 0;
  padding: 28px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

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

#result-page .section-heading h2 {
  color: #0F172A;
  font-size: 12x;
  line-height: 1.4;
  font-weight: 800;
}

#result-page .section-heading p {
  margin-top: 5px;
  color: #64748B;
  font-size: 12p;
  line-height: 1.6;
}

#result-page .table-wrapper {
  width: 100%;
  overflow-x: auto;
}

#result-page .results-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

#result-page .results-table th {
  padding: 9px 8px;
  color: #475569;
  background: #EFF6FF;
  border-top: 1px solid #DBEAFE;
  border-bottom: 1px solid #DBEAFE;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  vertical-align: middle;
}

#result-page .results-table th:first-child {
  border-left: 1px solid #DBEAFE;
  border-radius: 10px 0 0 0;
}

#result-page .results-table th:last-child {
  border-right: 1px solid #DBEAFE;
  border-radius: 0 10px 0 0;
}

#result-page .results-table td {
  padding: 9px 8px;
  color: #334155;
  border-bottom: 1px solid #E2E8F0;
  font-size: 12px;
  line-height: 1.5;
  vertical-align: middle;
}

#result-page .results-table th:first-child,
#result-page .results-table td:first-child {
  min-width: 45px;
  text-align: center;
}

#result-page .results-table th:nth-child(2),
#result-page .results-table td:nth-child(2) {
  min-width: 260px;
}

#result-page .results-table th:nth-child(3),
#result-page .results-table td:nth-child(3),
#result-page .results-table th:nth-child(5),
#result-page .results-table td:nth-child(5),
#result-page .results-table th:nth-child(6),
#result-page .results-table td:nth-child(6) {
  text-align: center;
  white-space: nowrap;
}

#result-page .results-table th:last-child,
#result-page .results-table td:last-child {
  min-width: 280px;
  max-width: 360px;
  overflow-wrap: anywhere;
}

#result-page .results-table tbody tr:nth-child(even) {
  background: #F8FAFC;
}

#result-page .results-table tbody tr:hover {
  background: #EFF6FF;
}

#result-page .status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

#result-page .status.matched {
  color: #047857;
  background: #D1FAE5;
}

#result-page .status.partial {
  color: #B45309;
  background: #FEF3C7;
}

#result-page .status.missing {
  color: #BE123C;
  background: #FFE4E6;
}

#result-page .section-heading h2 {
  font-size: 16px;
}

#result-page .section-heading p {
  margin-top: 5px;
  color: #64748B;
  font-size: 12px;     
  line-height: 1.6;
}


#result-page .recs p,
#result-page .recs li,
#result-page .recommendation-item p {
  color: #334155;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 8px;
}

#result-page .recs h3,
#result-page .recommendation-item h3 {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 4px;
}

#result-page .result-actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;            
}

#result-page .result-actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8
}

#result-page .result-actions button {
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

#result-page .btn-back {
  color: #1D4ED8;
  background: #FFFFFF;
  border: 1px solid #BFDBFE;
}

#result-page .btn-back:hover {
  background: #EFF6FF;
}

#result-page .btn-download {
  color: #FFFFFF;
  background: #2563EB;
  border: 1px solid #2563EB;
}

#result-page .btn-download:hover {
  background: #1D4ED8;
}

#result-page .result-actions button:focus-visible {
  outline: 3px solid #93C5FD;
  outline-offset: 3px;
}

/* ===== Responsif Halaman Hasil ===== */
@media (max-width: 860px) {
  #result-page {
    padding: 0 16px 20px;
  }

  #result-page .summary-top {
    flex-direction: column;
    align-items: stretch;
  }

  #result-page .score-box {
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  #result-page .summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #result-page .panel,
  #result-page .recs {
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
  }

  #result-page .summary {
    padding: 22px 16px;
  }
}

@media (max-width: 480px) {
  #result-page .summary-metrics {
    grid-template-columns: 1fr 1fr;
  }

  #result-page .candidate-info h1 {
    font-size: 20px;
  }

  #result-page .result-actions {
    flex-direction: column;
  }

  #result-page .result-actions button {
    width: 100%;
  }
}

/* ===== Penjelasan Skor ===== */
.score-explanation {
  margin: 14px 0 18px;
  padding: 12px 15px;
  background: #f4f8ff;
  border: 1px solid #d9e6ff;
  border-radius: 12px;
  color: #52647d;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  line-height: 1.6;
}

.score-explanation h3 {
  margin: 0 0 7px;
  color: #243653;
  font-size: 14px;
  font-weight: 700;
}

.score-explanation p {
  margin: 0 0 6px;
}

.score-explanation p:last-child {
  margin-bottom: 0;
}



.error-message {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.55);   /* latar gelap di belakang popup */
}

.error-message[hidden] {
    display: none !important;
}

.error-box {
    position: relative;
    width: 100%;
    max-width: 300px;
    padding: 28px 20px 18px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 0px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);   /* bayangan supaya kotak menonjol */
    text-align: center;
}

.close-error {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1F5F9;                 
    border: 0;
    border-radius: 0px;
    font-size: 20px;
    line-height: 1;
    color: #475569;
    cursor: pointer;
}

.close-error:hover {
    background: #E2E8F0;
}

.error-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FEE2E2;
    border-radius: 50%;
}

.error-icon svg {
    width: 22px;
    height: 22px;
    stroke: #DC2626;
}

.error-text {
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    color: #1E293B;
    overflow-wrap: anywhere;
}

.error-ok {
    width: 100%;
    padding: 10px;
    background: #DC2626;
    border: 0;
    border-radius: 0px;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.error-ok:hover {
    background: #B91C1C;
}
/* ===== ATS Keyword Analysis & Scores Wrapper ===== */
#result-page .scores-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.keyword-analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.keyword-analysis-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.keyword-analysis-icon {
  width: 24px;
  height: 24px;
  stroke: #2563EB;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.keyword-analysis-title {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  line-height: 1.4;
}

.keyword-analysis-subtitle {
  font-size: 12px;
  color: #64748B;
  margin: 5px 0 0 0;
  line-height: 1.6;
}

.keyword-gauge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 6px;
}

.kw-gauge-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #64748B;
  text-transform: uppercase;
  text-align: center;
}

.keyword-gauge-circle {
  position: relative;
  width: 76px;
  height: 76px;
}

.kw-gauge-svg {
  width: 100%;
  height: 100%;
}

.kw-gauge-bg {
  fill: none;
  stroke: #EEF2F6;
  stroke-width: 8;
}

.kw-gauge-bar {
  fill: none;
  stroke: #F59E0B;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s ease;
}

.kw-gauge-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.kw-gauge-content #result-keyword-score {
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
  line-height: 1;
}

.kw-gauge-pct {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  margin-left: 1px;
  margin-top: -6px;
}

.keyword-analysis-card {
  padding: 24px 28px !important;
  background: #FFFFFF;
  border: 1px solid #E2E8F0 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.keyword-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.keyword-row-title {
  font-size: 14px;
  font-weight: 700;
  color: #1E293B;
}

.keyword-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip-matched {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.1px;
}

.chip-missing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.1px;
}

.chip-count {
  font-size: 11px;
  opacity: 0.85;
}


.extra-chips-container {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  background: #F1F5F9;
  color: #475569;
  border: 1px dashed #CBD5E1;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-toggle-btn:hover {
  background: #E2E8F0;
  color: #1E293B;
  border-color: #94A3B8;
}

/* ===== Match + ATS CV ===== */
.ats-options { margin-top: 14px; }
.ats-options-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 6px; }
.opt-select { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #475569; min-width: 200px; }
.opt-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #334155; cursor: pointer; }
.opt-check input { width: 16px; height: 16px; accent-color: #2563EB; }

#result-page .narrative-summary { font-size: 15px; font-weight: 600; line-height: 1.6; color: #0F172A; margin-bottom: 10px; }
#result-page .narrative-text { font-size: 13px; line-height: 1.7; color: #334155; margin-bottom: 14px; white-space: pre-line; }
#result-page .sub-heading { font-size: 13px; font-weight: 800; color: #0F172A; margin: 14px 0 8px; }
#result-page .bullet-list { margin: 0 0 0 18px; padding: 0; color: #334155; font-size: 13px; line-height: 1.6; }
#result-page .bullet-list li { margin-bottom: 4px; }
#result-page .results-table { min-width: 860px; }
#result-page .results-table td { vertical-align: top; }
#result-page .req-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; font-size: 10px;
  font-weight: 700; color: #1D4ED8; background: #DBEAFE; }
#result-page .muted { color: #94A3B8; }

#result-page .interview-item { padding: 14px 16px; border: 1px solid #E2E8F0; border-radius: 12px; margin-bottom: 10px; }
#result-page .interview-item h3 { margin-bottom: 4px; }
#result-page .interview-goal { font-size: 12px; color: #64748B; margin-bottom: 8px; }
#result-page .interview-answer { white-space: pre-line; }
#result-page .tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700;
  background: #F1F5F9; color: #475569; margin-left: 6px; vertical-align: middle; }
#result-page .tag.gap { background: #FFE4E6; color: #BE123C; }

#result-page .ats-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
#result-page .ats-regen { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#result-page .ats-regen .input { width: auto; min-width: 160px; }
#result-page .btn-secondary { min-height: 38px; padding: 8px 16px; border-radius: 10px; font-family: inherit; font-size: 13px;
  font-weight: 700; color: #1D4ED8; background: #FFFFFF; border: 1px solid #BFDBFE; cursor: pointer; }
#result-page .btn-secondary:hover { background: #EFF6FF; }
#result-page .btn-secondary:disabled, #result-page .btn-download:disabled { opacity: 0.6; cursor: wait; }
#result-page .privacy-note { font-size: 12px; color: #64748B; line-height: 1.6; margin-bottom: 10px; }
#result-page .contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; }
#result-page .contact-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #475569; }
#result-page .contact-grid .input, #result-page .ats-regen .input { padding: 8px 10px; border: 1px solid #CBD5E1;
  border-radius: 8px; font-family: inherit; font-size: 13px; color: #0F172A; background: #FFFFFF; }

#result-page .ats-preview { margin-top: 20px; padding: 28px 32px; border: 1px solid #E2E8F0; border-radius: 12px;
  background: #FCFCFD; font-size: 13px; line-height: 1.55; color: #111827; }
#result-page .ats-preview h4 { font-size: 13px; font-weight: 800; letter-spacing: 0.3px; border-bottom: 1px solid #94A3B8;
  padding-bottom: 2px; margin: 16px 0 6px; }
#result-page .ats-preview h4:first-child { margin-top: 0; }
#result-page .ats-entry-heading { font-weight: 700; margin: 8px 0 2px; }
#result-page .ats-line { display: flex; gap: 8px; align-items: flex-start; padding: 2px 0; }
#result-page .ats-line .dot { color: #64748B; }
#result-page .ats-line.rewritten .txt { border-bottom: 1px dashed #93C5FD; cursor: help; }
#result-page .ats-line.pending { background: #FFFBEB; border: 1px dashed #F59E0B; border-radius: 8px; padding: 6px 8px; margin: 4px 0; }
#result-page .ats-line.pending.rejected .txt { text-decoration: line-through; color: #94A3B8; }
#result-page .ats-line .approve { margin-left: auto; white-space: nowrap; font-size: 12px; color: #92400E; }
#result-page .ats-legend { font-size: 11px; color: #64748B; margin-top: 10px; }
#result-page .ats-gaps { margin-top: 18px; }
#result-page .ats-unavailable { margin-top: 12px; font-size: 13px; color: #BE123C; }

@media (max-width: 640px) {
  #result-page .ats-preview { padding: 16px; }
  #result-page .ats-line .approve { margin-left: 0; }
  #result-page .ats-line.pending { flex-wrap: wrap; }
}

/* Match table: evidence and suggestion are prose, not single-line cells. */
#result-page .results-table th:nth-child(4),
#result-page .results-table td:nth-child(4),
#result-page .results-table th:nth-child(5),
#result-page .results-table td:nth-child(5) {
  min-width: 240px;
  max-width: none;
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
}
#result-page .results-table td:nth-child(3) { vertical-align: top; }
