:root {
  --ink: #17231d;
  --muted: #66736c;
  --paper: #f6f7f2;
  --card: #ffffff;
  --line: #dfe5de;
  --green: #185c3b;
  --green-light: #dceee2;
  --lime: #d9f36b;
  --error: #a43b34;
  --shadow: 0 18px 50px rgba(23, 35, 29, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 5%, rgba(217, 243, 107, 0.28), transparent 28rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: var(--green);
  font-size: 13px;
  letter-spacing: 0.08em;
}

nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
nav a:hover { color: var(--green); }

main {
  width: min(1120px, calc(100% - 40px));
  margin: 34px auto 80px;
}

.hero { width: 100%; padding: 72px 0 62px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.hero h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 78px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero-copy { max-width: 660px; color: var(--muted); font-size: 18px; }

.scan-form {
  width: 100%;
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.scan-form label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 800; }
.scan-mode-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 18px;
}
.scan-mode-row label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scan-mode-row select {
  flex: 0 0 132px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
.saved-source-picker { margin-bottom: 20px; }
.saved-source-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.saved-source-header label { margin: 0; }
.saved-source-list {
  display: grid;
  max-height: 230px;
  overflow: auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid #cbd4cc;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}
.saved-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  background: white;
}
.saved-source-row label {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.saved-source-row input { flex: 0 0 auto; min-width: auto; padding: 0; }
.saved-source-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved-source-empty {
  margin: 0;
  padding: 13px 15px;
  border: 1px dashed #cbd4cc;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}
.input-row { display: flex; gap: 10px; }
.url-input-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}
.url-input-row > button {
  min-width: 132px;
  white-space: nowrap;
}
.scan-all-button {
  align-self: stretch;
  min-width: 132px;
}

input, textarea, select {
  min-width: 0;
  flex: 1;
  padding: 15px 17px;
  border: 1px solid #cbd4cc;
  border-radius: 10px;
  color: var(--ink);
  background: white;
  font: inherit;
  outline: none;
}

textarea { resize: vertical; line-height: 1.45; }
select { flex: 0 0 145px; }
input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(24, 92, 59, 0.12); }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--green);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button:hover, .button:hover { background: #10472d; }
button:disabled { opacity: 0.6; cursor: wait; }
.button-secondary { color: var(--green); background: var(--green-light); }
.button-secondary:hover { background: #cce5d5; }
.button-ghost { color: var(--muted); background: #eef2ee; }
.button-ghost:hover { color: var(--green); background: var(--green-light); }
.button-small { padding: 8px 12px; border-radius: 8px; font-size: 12px; }
.button-disabled { color: #89938e; background: #e9ece8; cursor: default; }
.button-danger { color: white; background: var(--error); }
.button-danger:hover { background: #843029; }
.form-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.source-list { max-width: 700px; margin: 6px 0 0; padding-left: 20px; }
.source-list li + li { margin-top: 4px; }
.source-list a { color: white; overflow-wrap: anywhere; }

.alert, .error-details {
  max-width: 820px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 14px;
}

.alert-error, .error-details { color: var(--error); background: #f8e8e6; }
.alert-warning { color: #735000; background: #fff3c4; }
.error-details summary { cursor: pointer; font-weight: 800; }
.error-details ul { margin-bottom: 0; padding-left: 20px; }

.scan-notice, .strategy-note {
  max-width: 820px;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 10px;
  color: var(--green);
  background: var(--green-light);
  font-size: 13px;
  font-weight: 700;
}

.scan-notice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 20px 22px;
  border: 1px solid rgba(217, 243, 107, 0.5);
  color: #eaffb1;
  background:
    linear-gradient(135deg, rgba(24, 92, 59, 0.96), rgba(23, 35, 29, 0.96)),
    radial-gradient(circle at 18% 50%, rgba(217, 243, 107, 0.4), transparent 16rem);
  box-shadow: 0 0 0 1px rgba(217, 243, 107, 0.18), 0 18px 55px rgba(24, 92, 59, 0.28);
}

.scan-notice::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 18px,
    rgba(217, 243, 107, 0.08) 19px,
    transparent 20px
  );
  animation: scanline 1.8s linear infinite;
}

.spinner {
  display: inline-block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  margin-right: 2px;
  border: 3px solid rgba(217, 243, 107, 0.24);
  border-top-color: var(--lime);
  border-right-color: rgba(217, 243, 107, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(217, 243, 107, 0.55), inset 0 0 12px rgba(217, 243, 107, 0.12);
  vertical-align: -10px;
  animation: spin 800ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scanline { to { transform: translateX(40px); } }

.results-section {
  padding: 38px;
  border-radius: 24px;
  color: white;
  background: var(--ink);
}

.section-heading, .source-row, .jobs-heading, .job-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 36px; font-weight: 500; }
.results-section .eyebrow { color: var(--lime); }
.scan-time { color: #abb7b0; font-size: 13px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 30px 0;
}

.metric-card { padding: 24px; border: 1px solid #3a4740; border-radius: 15px; background: #202e27; }
.metric-card span { display: block; color: #aeb9b2; font-size: 13px; }
.metric-card strong { display: block; margin-top: 15px; font-family: Georgia, serif; font-size: 46px; font-weight: 500; line-height: 1; }
.metric-primary { color: var(--ink); border-color: var(--lime); background: var(--lime); }
.metric-primary span { color: #4b5528; }
.scan-status-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(217, 243, 107, 0.55);
  background:
    linear-gradient(135deg, rgba(24, 92, 59, 0.88), rgba(32, 46, 39, 0.98)),
    radial-gradient(circle at 20% 20%, rgba(217, 243, 107, 0.32), transparent 12rem);
  box-shadow: 0 0 0 1px rgba(217, 243, 107, 0.15), 0 14px 42px rgba(24, 92, 59, 0.24);
}
.scan-status-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 18px,
    rgba(217, 243, 107, 0.08) 19px,
    transparent 20px
  );
  animation: scanline 1.8s linear infinite;
}
.scan-status-card > * { position: relative; z-index: 1; }
.scan-status-card > div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}
.scan-status-card strong {
  margin: 0;
  color: #eaffb1;
  font-size: 34px;
}
.scan-status-card p {
  margin: 14px 0 0;
  color: #cbdccf;
  font-size: 12px;
  font-weight: 700;
}

.activity-section { margin: 0 0 30px; }
.activity-section h3 { margin-bottom: 12px; font-size: 16px; }
.activity-table-wrap { overflow-x: auto; }
.activity-table { width: 100%; border-collapse: collapse; }
.activity-table th, .activity-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #3a4740;
  text-align: left;
}
.activity-table th {
  color: #94a098;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.activity-table td:not(:first-child) { width: 120px; font-weight: 800; }
.activity-source a { color: white; overflow-wrap: anywhere; }
.activity-status {
  display: inline-block;
  margin-left: 9px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #17231d;
  background: #abb7b0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.inline-confirm-form { display: inline-block; margin-left: 9px; }
.inline-confirm-form button { padding: 5px 8px; font-size: 10px; }
.status-complete { background: var(--lime); }
.status-failed { color: white; background: var(--error); }
.status-suspicious { color: #563f00; background: #f0d989; }
.status-running { color: white; background: var(--green); }

.operation-log,
.technical-log {
  margin: 0 0 30px;
  border: 1px solid #3a4740;
  border-radius: 12px;
  background: #111a15;
}
.operation-log summary,
.technical-log summary {
  padding: 13px 16px;
  cursor: pointer;
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
}
.operation-log-list,
.technical-log-list {
  max-height: 320px;
  margin: 0;
  padding: 0 16px 14px;
  overflow-y: auto;
  list-style: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.log-entry {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid #29362f;
}
.log-entry time { color: #819087; }
.log-entry span { color: #d4ddd7; overflow-wrap: anywhere; }
.log-error span { color: #ffaaa4; }
.log-warning span { color: #f0d989; }
.log-success span { color: var(--lime); }
.technical-entry {
  display: grid;
  grid-template-columns: 70px minmax(86px, 0.8fr) minmax(110px, 1fr) 76px minmax(180px, 2fr);
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid #29362f;
}
.technical-entry time,
.tech-duration { color: #819087; }
.tech-component { color: var(--lime); font-weight: 800; }
.tech-event { color: #d4ddd7; }
.tech-detail { color: #b3c0b8; overflow-wrap: anywhere; }

.source-row { padding-top: 24px; border-top: 1px solid #3a4740; }
.source-label { color: #94a098; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.logout-form { display: inline-block; margin-left: 12px; }
.logout-form button {
  padding: 8px 12px;
  border: 1px solid #3a4740;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}
.login-form { width: min(420px, 100%); }
.login-form h1 { margin-top: 0; font-family: Georgia, serif; font-size: 42px; }
.login-form input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  padding: 13px 14px;
  border: 1px solid #cfdbd3;
  border-radius: 10px;
}

.jobs-page { margin-top: 60px; }
.jobs-heading { margin-bottom: 36px; }
.jobs-heading h1 { margin-bottom: 8px; font-family: Georgia, serif; font-size: clamp(48px, 7vw, 76px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.jobs-heading h1 span { color: var(--green); font-family: inherit; font-size: 24px; vertical-align: top; }
.jobs-heading p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); }
.job-list { display: grid; gap: 16px; }
.database-source-list { display: grid; gap: 48px; }
.database-source-group { display: grid; gap: 18px; }
.database-source-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.database-source-heading > div { min-width: 0; }
.database-source-heading .source-badge { margin-bottom: 8px; }
.database-source-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.database-source-heading p {
  flex: none;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.database-filter-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: -12px 0 42px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 24px rgba(23, 35, 29, 0.04);
}
.database-filter-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.database-filter-form select { width: 100%; flex-basis: auto; }
.filter-actions { display: flex; align-items: end; gap: 10px; }

.job-card {
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 6px 24px rgba(23, 35, 29, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.job-card-removed { opacity: 0.76; border-style: dashed; }
.change-section { display: grid; gap: 16px; margin-bottom: 42px; }
.change-section > h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 500;
}
.change-section > h2 span {
  color: var(--green);
  font-family: inherit;
  font-size: 18px;
  vertical-align: top;
}
.change-empty { padding: 26px; text-align: left; }
.change-empty p { margin: 0; }
.source-badge {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 5px 10px;
  overflow: hidden;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.source-color-1 { color: #174b35; background: #d9efe3; }
.source-color-2 { color: #254f78; background: #dceafa; }
.source-color-3 { color: #6a3d12; background: #f8e7cf; }
.source-color-4 { color: #66345f; background: #f2def0; }
.source-color-5 { color: #61520d; background: #f5edbd; }
.source-color-6 { color: #344b65; background: #dfe7ef; }
.source-color-7 { color: #724033; background: #f2dfd9; }
.source-color-8 { color: #354f16; background: #e3efcf; }
.job-card h2 { margin: 0; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.job-title-link { text-decoration: none; }
.job-title-link:hover { color: var(--green); }
.job-card p { max-width: 820px; margin: 18px 0; color: var(--muted); }
.job-location { flex: none; padding: 6px 10px; border-radius: 999px; color: var(--green); background: var(--green-light); font-size: 12px; font-weight: 800; }
.job-property-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.job-property-badge {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  align-items: baseline;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid #e2e8e0;
  border-radius: 12px;
  color: #344139;
  background: linear-gradient(180deg, #fbfcf8, var(--paper));
  font-size: 12px;
}
.job-property-badge strong {
  grid-column: 1 / -1;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.job-property-badge em { color: var(--muted); font-style: normal; font-weight: 800; }
.job-post-date { display: inline-block; margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.job-dates { display: flex; flex-wrap: wrap; gap: 14px; }
.job-last-seen { display: inline-block; margin-top: 10px; color: var(--green); font-size: 12px; font-weight: 800; }
.job-link { color: var(--green); font-size: 14px; font-weight: 800; text-decoration: none; }
.job-link span { margin-left: 3px; }
.job-link-unavailable { color: var(--muted); font-size: 14px; font-weight: 700; }

.job-detail-page { max-width: 900px; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--green); font-size: 14px; font-weight: 800; text-decoration: none; }
.job-detail { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.job-detail-heading { padding: 42px 46px 34px; border-bottom: 1px solid var(--line); }
.job-detail-heading h1 { margin-bottom: 28px; font-family: Georgia, serif; font-size: clamp(40px, 6vw, 62px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; }
.job-metadata { display: flex; flex-wrap: wrap; gap: 14px; }
.job-metadata span { min-width: 180px; padding: 12px 15px; border-radius: 10px; background: var(--paper); color: var(--muted); }
.job-metadata strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.job-content { padding: 40px 46px; color: #344139; font-size: 16px; line-height: 1.75; white-space: pre-wrap; }
.job-detail-actions { width: auto; margin: 0; padding: 28px 46px; border-top: 1px solid var(--line); }

.empty-state { padding: 70px 30px; border: 1px dashed #bdc7bf; border-radius: 18px; text-align: center; }
.empty-state h2 { font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.empty-state p { color: var(--muted); }

.match-upload { margin: 0 0 54px; }
.saved-cv-form { margin: -30px 0 54px; }
.saved-cv-form select { flex: 1; }
.saved-cv-empty {
  margin: -30px 0 54px;
  padding: 16px 18px;
  border: 1px dashed #cbd4cc;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}
.match-history { display: grid; gap: 14px; }
.match-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.match-history-item h2 { margin-bottom: 5px; font-family: Georgia, serif; font-weight: 500; }
.match-history-item h2 a { text-decoration: none; }
.match-history-item p { margin: 0; color: var(--muted); font-size: 13px; }
.match-run-heading h1 { overflow-wrap: anywhere; }
.match-filter-panel { margin-bottom: 24px; }
.match-running-panel { margin: 24px 0; }
.match-running-card {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.match-progress {
  margin: 18px 0 28px;
  padding: 16px;
  border: 1px solid #dce8df;
  border-radius: 12px;
  background: #f7fbf8;
}
.match-progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8df;
}
.match-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}
.match-progress p,
.match-scope { color: var(--muted); }
.score-disclaimer {
  margin-bottom: 22px;
  padding: 14px 17px;
  border-radius: 10px;
  color: var(--green);
  background: var(--green-light);
  font-size: 13px;
  font-weight: 700;
}
.match-list { margin-bottom: 24px; }
.match-card { position: relative; padding-left: 82px; }
.match-rank {
  position: absolute;
  top: 28px;
  left: 28px;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 24px;
}
.match-score {
  display: grid;
  width: 62px;
  height: 62px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  font-family: Georgia, serif;
  font-size: 20px;
}
.match-evidence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0;
}
.match-evidence section { padding: 18px; border-radius: 12px; background: var(--paper); }
.match-evidence h3 { margin: 0 0 10px; font-size: 13px; }
.match-evidence ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.match-evidence li + li { margin-top: 7px; }

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 700px) {
  .site-header { min-height: 70px; }
  nav { gap: 16px; }
  main { margin-top: 12px; }
  .hero { padding: 46px 0; }
  .hero h1 { font-size: 46px; }
  .url-input-row {
    grid-template-columns: 1fr;
  }
  .url-input-row button {
    width: 100%;
    min-width: 0;
  }
  .scan-mode-row { justify-content: flex-start; }
  .section-heading, .source-row, .jobs-heading, .job-card-heading { align-items: stretch; flex-direction: column; }
  .results-section { padding: 26px 20px; }
  .metrics { grid-template-columns: 1fr; }
  .source-row .button { width: 100%; }
  .jobs-heading .button { align-self: flex-start; }
  .job-card { padding: 23px 20px; }
  .database-source-heading { align-items: flex-start; flex-direction: column; }
  .database-filter-form { grid-template-columns: 1fr; }
  .filter-actions { align-items: stretch; flex-direction: column; }
  .match-history-item, .match-evidence { align-items: flex-start; grid-template-columns: 1fr; }
  .match-card { padding-left: 62px; }
  .match-rank { left: 20px; }
  .job-detail-heading, .job-content, .job-detail-actions { padding-left: 22px; padding-right: 22px; }
}
