:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #667085;
  --line: #d8dee8;
  --surface: #ffffff;
  --page: #f3f6fa;
  --blue: #1f6feb;
  --green: #14866d;
  --amber: #a66a00;
  --rose: #c2415c;
  --shadow: 0 18px 45px rgba(27, 39, 60, 0.12);
}

* {
  box-sizing: border-box;
}

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

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 0 20px;
}

.topbar > div:first-child {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 18px;
}

h3 {
  margin: 16px 0 10px;
  font-size: 15px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#report-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.upload-button,
.ghost-button {
  gap: 8px;
  padding: 0 13px;
  font-weight: 700;
}

.upload-button {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.icon-button {
  width: 36px;
  font-size: 18px;
}

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

.metric-block {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-block strong {
  display: block;
  font-size: clamp(21px, 3vw, 32px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.workspace {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.subtle {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filters {
  align-self: start;
}

.filters label {
  display: grid;
  gap: 7px;
  padding: 14px 16px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filters label:last-child {
  padding-bottom: 16px;
}

.filters select,
.filters input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  color: var(--ink);
  background: #fbfcfe;
  font-weight: 650;
}

.jobs-list,
.skills-list,
.evidence-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.job-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
}

.job-card header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.job-title {
  display: grid;
  gap: 4px;
}

.company {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.role {
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  text-decoration: none;
}

.role:hover {
  color: var(--blue);
}

.badge {
  border-radius: 999px;
  padding: 5px 9px;
  background: #e9f2ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.job-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.posting-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.posting-button:hover {
  border-color: #b9d3ff;
  background: #f2f7ff;
}

.job-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.meta-pill {
  border-radius: 999px;
  padding: 5px 8px;
  background: #eef1f5;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

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

.skill-tag {
  border: 1px solid #cae6de;
  border-radius: 999px;
  padding: 5px 8px;
  background: #effaf6;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.skill-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 9px;
  min-height: 38px;
}

.skill-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #fff5dd;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.skill-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.evidence-item {
  border-left: 3px solid var(--rose);
  padding: 4px 0 4px 10px;
}

.evidence-item strong {
  display: block;
  margin-bottom: 3px;
}

.evidence-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.divider {
  height: 1px;
  margin: 2px 14px;
  background: var(--line);
}

.empty-state {
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
  font-weight: 750;
}

@media (max-width: 1080px) {
  .workspace,
  .main-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 16px;
  }

  .topbar {
    display: grid;
  }

  .actions {
    justify-content: flex-start;
  }

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

  .job-card header {
    display: grid;
  }

  .job-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 460px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .upload-button,
  .ghost-button {
    width: 100%;
  }
}
