﻿:root {
  color-scheme: light;
  --page: #e7e7e9;
  --shell: #fbfbfc;
  --panel: #ffffff;
  --soft: #f1f2f4;
  --soft-2: #eceff2;
  --ink: #202124;
  --text: #3a3d40;
  --muted: #70757a;
  --faint: #9aa0a6;
  --line: #d6d8db;
  --line-strong: #c5c8cc;
  --accent: #6c4fe0;
  --accent-ink: #5138bd;
  --green: #13795b;
  --amber: #a15c00;
  --red: #b42318;
  --shadow: 0 24px 55px rgba(22, 25, 29, 0.18), 0 3px 12px rgba(22, 25, 29, 0.08);
  --control-shadow: 0 2px 5px rgba(23, 26, 31, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}

button, input, select, textarea { font: inherit; }

.app-shell {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  width: min(1500px, calc(100vw - 72px));
  min-height: min(820px, calc(100vh - 92px));
  margin: 46px auto;
  overflow: hidden;
  border: 1px solid #babdc2;
  border-radius: 24px;
  background: var(--shell);
  box-shadow: var(--shadow);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 60px 52px 42px;
  background: #fafafa;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1.5px solid #50545a;
  border-radius: 7px;
  background: transparent;
  color: transparent;
  font-size: 0;
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  height: 2px;
  border-radius: 999px;
  background: #303236;
}

.brand-mark::before { top: 7px; }
.brand-mark::after { bottom: 7px; }

.brand strong,
.brand small { display: block; }

.brand strong {
  font-size: 23px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand small { display: none; }

.sidebar-intro {
  max-width: 330px;
  margin: 4px 0 26px;
  color: #555b61;
  font-size: 20px;
  line-height: 1.56;
}

.step-nav {
  display: grid;
  gap: 16px;
}

.nav-step {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 14px;
  color: #2d3035;
  text-decoration: none;
  font-size: 19px;
  font-weight: 560;
}

.nav-step:hover { background: #f0f1f2; }

.nav-step svg {
  width: 22px;
  height: 22px;
  color: #6f767d;
  stroke-width: 1.6;
}

.nav-step.active {
  background: #eef0f1;
  color: #17191c;
}

.nav-step.active svg { color: #17191c; }

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 14px;
}

.step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #73777d;
  font-size: 16px;
}

.step-meta span:first-child { color: #60656b; }

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e5e7;
}

.progress-track span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 180ms ease;
}

.main-panel {
  min-width: 0;
  margin: 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 48px 50px 24px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #73777d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  color: #303236;
  font-size: 26px;
  font-weight: 760;
  line-height: 1.2;
}

h2 {
  margin-bottom: 0;
  color: #25272b;
  font-size: 21px;
  font-weight: 690;
}

h3 {
  margin: 26px 0 12px;
  color: #272a2f;
  font-size: 17px;
  font-weight: 680;
}

.topbar-actions,
.panel-actions,
.result-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  border: 0;
  cursor: pointer;
  font-weight: 620;
}

button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 14px;
  padding: 0 20px;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.primary-button,
.secondary-button {
  background: #050506;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.primary-button:hover,
.secondary-button:hover { transform: translateY(-1px); }

.ghost-button,
.icon-button {
  background: #ffffff;
  color: #2d3035;
  border: 1px solid var(--line-strong);
  box-shadow: var(--control-shadow);
}

.icon-button {
  width: 48px;
  padding: 0;
}

.close-button {
  min-height: 40px;
  width: 40px;
  border: 0;
  border-radius: 12px;
  background: #f1f2f4;
  box-shadow: none;
}

#sampleBtn {
  min-height: 40px;
  border-radius: 12px;
  background: #f8f8f9;
  box-shadow: none;
}

.page {
  display: none;
  padding: 0 50px 48px;
}

.page.active { display: block; }

.content-grid,
.filters-layout,
.candidate-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.upload-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
}

.filters-layout,
.candidate-shell {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.filters-layout {
  max-width: 920px;
  grid-template-columns: 1fr;
  gap: 22px;
}

.panel,
.dropzone,
.metric {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.dropzone {
  display: grid;
  min-height: 460px;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 36px;
  text-align: center;
  border-style: dashed;
  background: #f6f7f8;
}

.dropzone.dragging {
  border-color: var(--accent);
  background: #f3f0ff;
}

.dropzone input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dropzone-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid #d0d3d7;
  border-radius: 18px;
  background: #ffffff;
  color: #303236;
  box-shadow: var(--control-shadow);
}

.dropzone-icon svg {
  width: 28px;
  height: 28px;
}

.dropzone h2 {
  margin-bottom: 0;
  font-size: 25px;
  font-weight: 720;
}

.dropzone p {
  max-width: 470px;
  margin-bottom: 4px;
  color: #646a70;
  font-size: 17px;
  line-height: 1.55;
}

.panel {
  padding: 28px;
}

.form-panel:nth-child(2),
.results-panel,
.candidate-shell .panel:nth-child(2) {
  background: #ffffff;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.count-pill,
.score-pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 12px;
  background: #f0f1f2;
  color: #4f555b;
  font-size: 13px;
  font-weight: 650;
}

.file-list {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 316px;
}

.file-row,
.candidate-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--control-shadow);
}

.file-row strong,
.candidate-card strong { overflow-wrap: anywhere; }

.file-row span,
.candidate-card span,
.empty-state,
.empty-cell {
  color: var(--muted);
  font-size: 14px;
}

.panel-actions {
  justify-content: flex-end;
  margin-top: 20px;
}

.form-panel {
  min-height: auto;
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 16px;
}

.form-stack,
.weight-row {
  display: grid;
  gap: 16px;
}

.weight-row {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  margin-top: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: #25272b;
  font-size: 14px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  padding: 11px 15px;
  outline: none;
  box-shadow: var(--control-shadow);
}

textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.45;
}

input::placeholder,
textarea::placeholder { color: #82888f; }

input:focus,
select:focus,
textarea:focus {
  border-color: #9b8cf2;
  box-shadow: 0 0 0 4px rgba(108, 79, 224, 0.12), var(--control-shadow);
}

input[type="range"] {
  padding: 0;
  box-shadow: none;
  accent-color: var(--accent);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.metric {
  padding: 20px;
  background: #f7f8f9;
}

.metric span {
  display: block;
  color: #686e74;
  font-size: 13px;
  font-weight: 650;
}

.metric strong {
  display: block;
  margin-top: 10px;
  color: #25272b;
  font-size: 25px;
  font-weight: 740;
}

.results-panel {
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #f7f8fc;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.results-panel .panel-head {
  margin: 0;
  padding: 28px 32px 22px;
  background: #ffffff;
  border-bottom: 1px solid #e6e8ed;
}

.compact-search {
  position: relative;
  display: block;
  width: 270px;
}

.compact-search svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  transform: translateY(-50%);
}

.compact-search input {
  min-height: 44px;
  border-radius: 14px;
  padding-left: 44px;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.06);
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid #e6e8ed;
  background: #ffffff;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

th,
td {
  padding: 18px 22px;
  border-bottom: 1px solid #edf0f4;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

tr:last-child td { border-bottom: 0; }

tbody tr {
  background: #ffffff;
  transition: background 160ms ease;
}

tbody tr:hover { background: #f3f5f9; }

th {
  background: #f5f6f9;
  color: #667085;
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.score-bar {
  width: 122px;
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e6e8;
}

.score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.score-pill.strong {
  border-color: #b8e6d1;
  background: #effaf5;
  color: var(--green);
}

.score-pill.medium {
  border-color: #efd3a5;
  background: #fff8eb;
  color: var(--amber);
}

.score-pill.low {
  border-color: #efc3bf;
  background: #fff4f3;
  color: var(--red);
}

.candidate-hero {
  display: grid;
  gap: 16px;
}

.avatar {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #ffffff;
  color: #2d3035;
  font-size: 20px;
  font-weight: 760;
  box-shadow: var(--control-shadow);
}

.detail-list,
.reason-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.reason-list { display: grid; }

.reason-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f8f9;
  color: #535960;
}

.snippet {
  max-height: 340px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f8f9;
  color: #41464c;
  line-height: 1.58;
  white-space: pre-wrap;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 330px minmax(0, 1fr);
    width: calc(100vw - 32px);
    margin: 16px auto;
  }

  .sidebar { padding: 36px 28px 32px; }
  .sidebar-intro { font-size: 17px; }
  .nav-step { font-size: 16px; }
  .upload-grid,
  .filters-layout,
  .candidate-shell { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  body { background: var(--shell); }

  .app-shell {
    display: block;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 3;
    gap: 16px;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-intro,
  .sidebar-footer { display: none; }

  .step-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-step {
    justify-content: center;
    min-height: 46px;
    padding: 0;
  }

  .nav-step span { display: none; }

  .main-panel {
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .topbar,
  .page { padding-left: 20px; padding-right: 20px; }

  .topbar { padding-top: 24px; flex-direction: column; align-items: flex-start; }
  .topbar-actions, .result-tools, .compact-search { width: 100%; }
  .form-grid, .weight-row, .metrics-grid { grid-template-columns: 1fr; }
  .dropzone { min-height: 330px; }
}


/* Refinements: compact CV rows, skill chips, premium score bars */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 13px 15px;
}

.file-row strong {
  grid-column: 1 / -1;
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv-file-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv-file-size {
  justify-self: end;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f2f4;
  color: #555b61;
  font-size: 12px;
  font-weight: 650;
}

.skill-field {
  display: grid;
  gap: 10px;
}

.add-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.add-chip-button {
  min-height: 48px;
  padding: 0 18px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
  align-items: center;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 8px 0 13px;
  border: 1px solid #d7d2f4;
  border-radius: 999px;
  background: #f7f5ff;
  color: #31245f;
  font-size: 14px;
  font-weight: 650;
}

.skill-chip button {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #6b5cc4;
  border: 1px solid #dfdaf8;
  padding: 0;
}

.skill-chip svg {
  width: 13px;
  height: 13px;
}

.chip-empty {
  color: #83898f;
  font-size: 13px;
}

.candidate-name,
.candidate-file {
  display: block;
  max-width: 260px;
}

.candidate-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-file {
  margin-top: 3px;
  color: #65707b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-bar {
  position: relative;
  width: 142px;
  height: 10px;
  margin-top: 9px;
  overflow: hidden;
  border: 1px solid rgba(72, 62, 138, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, #eceef1, #dfe2e6);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9);
}

.score-bar span {
  position: relative;
  display: block;
  height: 100%;
  min-width: 8px;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(circle at 82% 45%, rgba(255, 255, 255, 0.95) 0 1px, transparent 2px),
    linear-gradient(90deg, #4c3bd8 0%, #6d55e7 42%, #9b8cff 72%, #d8d1ff 100%);
  box-shadow: 0 0 12px rgba(109, 85, 231, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.score-bar span::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  width: 34px;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  animation: scoreSheen 2.6s ease-in-out infinite;
}

@keyframes scoreSheen {
  0% { left: -42px; opacity: 0; }
  18% { opacity: 0.75; }
  48%, 100% { left: calc(100% + 12px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .score-bar span::after { animation: none; }
}

@media (max-width: 820px) {
  .add-control { grid-template-columns: 1fr; }
  .add-chip-button { width: 100%; }
}

/* Minimal gradient accent system inspired by the selected Figma options */
:root {
  --premium-accent: linear-gradient(92deg, #76a8df 0%, #76e3ea 54%, #baf7ef 100%);
  --premium-accent-deep: linear-gradient(92deg, #5d8dd7 0%, #43cad8 58%, #8cf2e4 100%);
  --premium-warm-glow: rgba(255, 133, 115, 0.22);
  --premium-cool-glow: rgba(88, 204, 224, 0.28);
}

.progress-track span {
  background: var(--premium-accent-deep);
  box-shadow: 0 0 14px var(--premium-cool-glow);
}

.primary-button,
.secondary-button {
  position: relative;
  overflow: hidden;
  background: var(--premium-accent-deep);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow: 0 8px 18px rgba(67, 202, 216, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.primary-button::after,
.secondary-button::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 45%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.score-bar {
  height: 11px;
  border-color: rgba(58, 126, 173, 0.16);
  background: linear-gradient(180deg, #eef1f4, #dde2e7);
}

.score-bar span {
  background:
    radial-gradient(circle at 84% 45%, rgba(255, 255, 255, 0.98) 0 1px, transparent 2px),
    linear-gradient(92deg, #6e9ed9 0%, #69d5e3 48%, #b6f3ee 100%);
  box-shadow: 0 0 12px var(--premium-cool-glow), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.score-pill.strong + .score-bar span {
  background:
    radial-gradient(circle at 84% 45%, rgba(255, 255, 255, 0.98) 0 1px, transparent 2px),
    linear-gradient(92deg, #6e9ed9 0%, #76e3ea 45%, #f3b1be 100%);
  box-shadow: 0 0 14px var(--premium-cool-glow), 0 0 18px var(--premium-warm-glow), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.skill-chip {
  border-color: rgba(99, 177, 205, 0.28);
  background: linear-gradient(180deg, #f8fcfd, #f3fbfc);
  color: #265361;
}

.skill-chip button {
  color: #357d93;
  border-color: rgba(99, 177, 205, 0.28);
}

/* Primary action accent: yellow-charcoal option from the Figma set */
:root {
  --action-gold: #dfd82b;
  --action-olive: #37352a;
  --action-gold-soft: rgba(223, 216, 43, 0.28);
}

.primary-button,
.secondary-button {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.3), transparent 28%),
    linear-gradient(104deg, var(--action-olive) 0%, #6b692f 46%, var(--action-gold) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 10px 22px rgba(55, 53, 42, 0.20),
    0 0 28px var(--action-gold-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -10px 18px rgba(55, 53, 42, 0.16);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 26px rgba(55, 53, 42, 0.24),
    0 0 34px rgba(223, 216, 43, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -10px 18px rgba(55, 53, 42, 0.16);
}

.primary-button::after,
.secondary-button::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
}

.primary-button svg,
.secondary-button svg {
  color: #ffffff;
}

/* Match left-rail progress with the yellow-charcoal action accent */
.progress-track span {
  background: linear-gradient(104deg, var(--action-olive) 0%, #6b692f 48%, var(--action-gold) 100%);
  box-shadow: 0 0 18px var(--action-gold-soft), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

/* Matcha brand accent: green action treatment */
:root {
  --matcha-bright: #6afb80;
  --matcha-deep: #0ac326;
  --matcha-ink: #193b20;
  --matcha-glow: rgba(10, 195, 38, 0.24);
}

.primary-button,
.secondary-button {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(104deg, var(--matcha-ink) 0%, var(--matcha-deep) 48%, var(--matcha-bright) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 10px 22px rgba(25, 59, 32, 0.20),
    0 0 28px var(--matcha-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -10px 18px rgba(25, 59, 32, 0.15);
}

.primary-button:hover,
.secondary-button:hover {
  box-shadow:
    0 12px 26px rgba(25, 59, 32, 0.24),
    0 0 34px rgba(106, 251, 128, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    inset 0 -10px 18px rgba(25, 59, 32, 0.15);
}

.progress-track span {
  background: linear-gradient(104deg, var(--matcha-ink) 0%, var(--matcha-deep) 48%, var(--matcha-bright) 100%);
  box-shadow: 0 0 18px var(--matcha-glow), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.brand-mark {
  border-color: rgba(10, 195, 38, 0.55);
}

.brand-mark::before,
.brand-mark::after {
  background: var(--matcha-ink);
}

.skill-chip {
  border-color: rgba(10, 195, 38, 0.18);
  background: linear-gradient(180deg, #f7fff8, #f0fff3);
  color: #1f5c2a;
}

.skill-chip button {
  color: #0f8f26;
  border-color: rgba(10, 195, 38, 0.2);
}

/* Match score bar aligned to Matcha brand green */
.score-bar span,
.score-pill.strong + .score-bar span {
  background:
    radial-gradient(circle at 84% 45%, rgba(255, 255, 255, 0.98) 0 1px, transparent 2px),
    linear-gradient(92deg, var(--matcha-ink) 0%, var(--matcha-deep) 48%, var(--matcha-bright) 100%);
  box-shadow: 0 0 12px var(--matcha-glow), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.score-pill.strong + .score-bar span {
  box-shadow: 0 0 16px rgba(106, 251, 128, 0.34), 0 0 22px rgba(10, 195, 38, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

/* Remove outer glow from action buttons */
.primary-button,
.secondary-button {
  box-shadow:
    0 2px 5px rgba(25, 59, 32, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -8px 14px rgba(25, 59, 32, 0.12);
}

.primary-button:hover,
.secondary-button:hover {
  box-shadow:
    0 3px 7px rgba(25, 59, 32, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -8px 14px rgba(25, 59, 32, 0.12);
}

/* Cleaner flat matcha buttons: no dark base, no glow */
.primary-button,
.secondary-button {
  background: linear-gradient(100deg, var(--matcha-deep) 0%, #31df4b 54%, var(--matcha-bright) 100%);
  color: #ffffff;
  border: 1px solid rgba(8, 150, 32, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 2px 5px rgba(16, 24, 40, 0.10);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 4px 8px rgba(16, 24, 40, 0.12);
}

.primary-button::after,
.secondary-button::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
}

/* Cleaner flat matcha score bars: no glow, no dark tone */
.score-bar {
  border-color: #dfe4e1;
  background: linear-gradient(180deg, #eef2ef, #e2e8e4);
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.07);
}

.score-bar span,
.score-pill.strong + .score-bar span {
  background: linear-gradient(100deg, var(--matcha-deep) 0%, #31df4b 54%, var(--matcha-bright) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.score-bar span::after {
  display: none;
}

/* Workflow feature UI: guards, parse confidence, breakdowns, decisions */
.inline-notice {
  display: none;
  padding: 13px 15px;
  border: 1px solid #fedf89;
  border-radius: 14px;
  background: #fffaeb;
  color: #8a4b05;
  font-weight: 650;
}

.inline-notice.active {
  display: block;
}

.parse-pill {
  justify-self: start;
  grid-column: 1 / -1;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #effaf5;
  color: #13795b;
  font-size: 12px;
  font-weight: 700;
}

.parse-pill.text-limited {
  background: #fffaeb;
  color: #a15c00;
}

.parse-pill.could-not-read,
.parse-pill.needs-review {
  background: #fff4f3;
  color: #b42318;
}

.score-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  max-width: 180px;
}

.score-breakdown span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f4f2;
  color: #53605a;
  font-size: 11px;
  font-weight: 700;
}

.detail-breakdown {
  max-width: none;
}

.action-cell {
  min-width: 170px;
  text-align: right;
}

.decision-control {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.decision-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d6d8db;
  border-radius: 999px;
  background: #ffffff;
  color: #4f555b;
  font-size: 12px;
  font-weight: 700;
}

.decision-button.active {
  border-color: rgba(10, 195, 38, 0.28);
  background: #effaf1;
  color: #0d7f21;
}

.preview-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #d8dadd;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.preview-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  border-color: #cdd4db;
}

.candidate-file-large {
  margin: 5px 0 0;
  color: #697079;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.candidate-score-bar {
  width: 100%;
  max-width: 260px;
}

.candidate-decisions {
  margin: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.info-grid div {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faf8;
}

.info-grid span,
.info-grid strong {
  display: block;
}

.info-grid span {
  color: #717a75;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.info-grid strong {
  margin-top: 5px;
  color: #202124;
  font-size: 14px;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .info-grid { grid-template-columns: 1fr; }
  .action-cell { min-width: 180px; }
}
