:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17212b; background: #eef1f3; letter-spacing: 0;
  --muted: #68737d; --line: #d9dee2; --navy: #14324a;
  --teal: #087e78; --amber: #b56a08; --red: #b42318;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
.app-header {
  height: 58px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; color: #f8fafb; background: var(--navy); border-bottom: 3px solid #15a29a;
}
.app-header > div { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; color: var(--navy); background: white; font-weight: 800; }
.environment {
  display: flex; align-items: center; gap: 10px;
  color: #d2dce3; font-size: 13px;
}
#current-user-label {
  width: auto; height: auto; border-radius: 0; background: transparent; color: inherit;
}
#logout-button {
  width: auto; min-width: 0; height: 30px; padding: 0 10px;
  font-size: 12px; font-weight: 650; color: #f8fafb;
  background: transparent; border-color: #5a7180;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eef1f3;
}
.login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  width: min(420px, 100%);
  text-align: center;
  display: grid;
  gap: 12px;
}
.login-card h1 { font-size: 22px; }
.login-card p { margin: 0; color: var(--muted); font-size: 14px; }
.login-notice {
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff1d8;
  color: #875006;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}
.login-card .primary-button {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.login-local {
  margin-top: 12px;
  text-align: left;
}
.login-local summary {
  cursor: pointer; color: #34424c; font-size: 13px; font-weight: 650;
}
.login-local form { margin-top: 10px; display: grid; gap: 0; }
.login-local input {
  width: 100%;
  margin-bottom: 8px;
  padding: 8px;
}
main { padding: 24px 28px 36px; max-width: 1540px; margin: 0 auto; }
.toolbar { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.eyebrow { margin: 0 0 5px; color: var(--teal); text-transform: uppercase; font-size: 11px; font-weight: 750; }
h1 { margin: 0; font-size: 25px; line-height: 1.2; }
.toolbar-title { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 750; }
h2 { margin: 0; font-size: 18px; }
h3 { margin: 0; font-size: 14px; }
.primary-button, .secondary-button {
  min-height: 38px; border: 1px solid transparent; border-radius: 5px; padding: 0 14px; font-weight: 700; white-space: nowrap;
}
.primary-button { color: white; background: var(--teal); }
.secondary-button { color: #2d3d49; background: white; border-color: #c7d0d6; }
.icon-button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); background: white; border-radius: 5px; font-size: 19px; }
.icon-button:disabled { opacity: .55; cursor: default; }
#refresh-button,
.refresh-button {
  display: inline-grid; place-items: center;
}
#refresh-button .refresh-icon,
.refresh-button .refresh-icon {
  display: inline-block; line-height: 1;
  transform-origin: center center;
}
#refresh-button.is-spinning .refresh-icon,
.refresh-button.is-spinning .refresh-icon {
  animation: refresh-spin .8s linear infinite;
}
@keyframes refresh-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.metric-strip { display: grid; grid-template-columns: repeat(5, 1fr); background: white; border: 1px solid var(--line); margin-bottom: 16px; }
.metric-strip div { padding: 13px 18px; border-right: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; }
.metric-strip div:last-child { border: 0; }
.metric-strip span { color: var(--muted); font-size: 12px; }
.metric-strip strong { font-size: 22px; }
.workspace {
  display: block; background: transparent; border: 0; min-height: 0;
}
.page-tabs {
  display: flex; gap: 0; margin: 0 0 14px; border-bottom: 1px solid var(--line);
}
.page-tab {
  min-height: 42px; padding: 0 4px 12px; margin-right: 22px; border: 0;
  border-bottom: 3px solid transparent; background: transparent;
  color: #8a959e; font-size: 15px; font-weight: 700;
}
.page-tab.active { color: #17212b; border-bottom-color: var(--teal); }
.page-panel { min-width: 0; }
.job-list-panel {
  min-width: 0; background: white; border: 1px solid var(--line);
}
.panel-heading {
  min-height: 56px; height: auto; display: flex; align-items: center;
  justify-content: space-between; padding: 8px 16px; border-bottom: 1px solid var(--line);
  gap: 10px; flex-wrap: wrap;
}
.jobs-heading-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-left: auto;
}
.jobs-filter {
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  color: #34424c; font-size: 12px; font-weight: 650; white-space: nowrap;
}
.jobs-filter select {
  width: auto; min-width: 150px; max-width: 220px; height: 30px;
  padding: 0 8px; font-size: 12px;
}
.jobs-filter input[type="date"] {
  width: auto; min-width: 132px; height: 30px; padding: 0 6px; font-size: 12px;
}
.jobs-clear-filters {
  min-height: 30px; height: 30px; padding: 0 10px; font-size: 12px;
}
.table-wrap { overflow-x: auto; }
.jobs-pagination {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 10px 14px; border-top: 1px solid var(--line); background: #fbfcfc;
}
.jobs-pagination span { color: var(--muted); font-size: 12px; font-weight: 600; }
.jobs-pagination .secondary-button:disabled { opacity: .45; cursor: default; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th { padding: 10px 14px; color: #5d6871; background: #f6f8f9; text-align: left; font-size: 11px; text-transform: uppercase; }
.jobs-table th:nth-child(1) { width: 16%; }
.jobs-table th:nth-child(2) { width: 14%; }
.jobs-table th:nth-child(3) { width: 13%; }
.jobs-table th:nth-child(4) { width: 10%; }
.jobs-table th:nth-child(5) { width: 12%; }
.jobs-table th:nth-child(6), .jobs-table th:nth-child(7) { width: 10%; }
.jobs-table th:nth-child(8), .jobs-table td.job-actions { width: 9%; }
.sort-header {
  display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0;
  background: transparent; color: inherit; font: inherit; text-transform: inherit;
  letter-spacing: inherit; cursor: pointer;
}
.sort-header::after { content: "↕"; font-size: 10px; color: #9aa4ab; }
.sort-header[aria-sort="ascending"]::after { content: "▲"; color: var(--teal); }
.sort-header[aria-sort="descending"]::after { content: "▼"; color: var(--teal); }
td { padding: 13px 14px; border-top: 1px solid #e5e9ec; font-size: 13px; vertical-align: middle; overflow-wrap: anywhere; }
tbody tr { cursor: pointer; } tbody tr:hover, tbody tr.selected { background: #f1f8f7; }
.job-actions { white-space: nowrap; overflow: visible; }
.danger-button, .delete-job-button {
  min-height: 32px; border: 1px solid #f0b4ae; border-radius: 5px; padding: 0 10px;
  color: var(--red); background: #fff5f4; font-weight: 700; white-space: nowrap;
}
.danger-button:hover, .delete-job-button:hover { background: #ffe8e6; }
.danger-button {
  min-height: 38px; padding: 0 14px;
}
.job-name { display: block; margin-bottom: 3px; font-weight: 700; }
.job-code, .date-cell { color: var(--muted); font-size: 11px; }
.job-code { display: block; }
.job-creator-cell { color: #34424c; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.job-type-cell { color: #34424c; font-size: 12px; font-weight: 600; }
.detail-code {
  margin: 2px 0 0; color: #17212b; font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
.detail-creator {
  margin: 2px 0 6px; color: var(--muted); font-size: 12px; font-weight: 600;
}
.detail-job-type { margin-bottom: 2px; }
.stage-cell { color: #344651; font-size: 12px; }
.status-badge { display: inline-flex; padding: 5px 8px; border-radius: 4px; font-size: 10px; font-weight: 800; color: #31515c; background: #e8f0f2; white-space: nowrap; }
.status-badge.running, .status-badge.queued { color: #05635d; background: #dff4f1; }
.status-badge.report-ready, .status-badge.pending-approval { color: #875006; background: #fff1d8; }
.status-badge.failed { color: var(--red); background: #fee4e2; }
.status-badge.completed { color: #1f6b42; background: #e2f4e9; }
.empty-state { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--muted); text-align: center; }
.detail-placeholder { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--muted); text-align: center; }
.empty-state span, .detail-placeholder p { font-size: 13px; margin: 0; max-width: 300px; }
.placeholder-icon { font-size: 34px; color: #8c9aa3; }
.detail-placeholder.is-loading .placeholder-icon {
  display: inline-block;
  animation: refresh-spin .8s linear infinite;
}
.detail-panel {
  min-width: 0; margin-top: 0; background: white; border: 1px solid var(--line);
}
.detail-header { padding: 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.detail-header-actions {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.detail-subject { overflow-wrap: anywhere; }
.detail-section { padding: 17px 18px; border-bottom: 1px solid var(--line); }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-title span, .run-status { color: var(--muted); font-size: 11px; font-weight: 700; }
.progress-track { height: 7px; overflow: hidden; background: #dfe5e8; border-radius: 2px; }
.progress-fill { height: 100%; width: 0; background: var(--teal); transition: width 250ms ease; }
.progress-message { min-height: 18px; margin: 8px 0 10px; color: var(--muted); font-size: 11px; }
.stage-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 18px;
}
.stage-list li { display: grid; grid-template-columns: 22px 18px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 24px; font-size: 11px; }
.stage-step {
  width: 22px; color: var(--muted); font-size: 11px; font-weight: 800; text-align: right;
}
.stage-list li.active .stage-step { color: var(--teal); }
.stage-list li.failed .stage-step { color: var(--red); }
.stage-marker { width: 14px; height: 14px; display: grid; place-items: center; border: 1px solid #bfc8ce; border-radius: 50%; color: transparent; font-size: 9px; }
.stage-list li.done .stage-marker { color: white; border-color: var(--teal); background: var(--teal); }
.stage-list li.active { color: var(--teal); font-weight: 750; }
.stage-list li.active .stage-marker {
  border: 4px solid #bce6e2; background: var(--teal);
  animation: stage-marker-pulse 1.2s ease-in-out infinite;
}
@keyframes stage-marker-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(5, 99, 93, 0.35); }
  50% { opacity: 0.35; box-shadow: 0 0 0 4px rgba(5, 99, 93, 0); }
}
.stage-list li.failed { color: var(--red); }
.stage-list li.failed .stage-marker { color: white; border-color: var(--red); background: var(--red); }
.stage-duration { color: var(--muted); font-size: 10px; }
.alert-box { margin: 14px 18px 0; padding: 10px 12px; border-left: 3px solid var(--amber); background: #fff5e6; color: #774707; font-size: 12px; }
.source-counts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.source-pill { border: 1px solid #cfdbdf; background: white; padding: 7px 9px; font-size: 11px; }
.source-pill strong { margin-left: 8px; }
.input-settings {
  margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 18px;
}
.input-settings > div { min-width: 0; }
.input-settings dt {
  margin: 0 0 6px; color: var(--muted); font-size: 11px; font-weight: 750;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.input-settings dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.keyword-chip {
  display: inline-flex; max-width: 100%; padding: 5px 8px;
  border: 1px solid #cfdbdf; background: #f7fafb; color: #24333d;
  font-size: 12px; font-weight: 600; overflow-wrap: anywhere;
}
.keyword-empty { color: var(--muted); font-size: 12px; font-style: italic; }
.report-preview {
  max-height: 420px; overflow: auto; padding: 14px 16px; border: 1px solid var(--line);
  background: white; color: #1d2a33; font: 13px/1.55 ui-sans-serif, system-ui, sans-serif;
}
.report-preview > *:first-child { margin-top: 0; }
.report-preview > *:last-child { margin-bottom: 0; }
.report-preview h1 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; }
.report-preview h2 { margin: 16px 0 8px; font-size: 15px; line-height: 1.35; color: var(--navy); }
.report-preview h3 { margin: 14px 0 6px; font-size: 13px; }
.report-preview p { margin: 0 0 10px; }
.report-preview ul { margin: 0 0 10px; padding-left: 18px; }
.report-preview li { margin: 0 0 4px; }
.report-preview code {
  padding: 1px 5px; border-radius: 3px; background: #eef2f4; font: 12px/1.4 ui-monospace, monospace;
}
.report-preview table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 12px; }
.report-preview th, .report-preview td {
  padding: 7px 8px; border: 1px solid var(--line); text-align: left; vertical-align: top;
}
.report-preview th { background: #f6f8f9; color: #5d6871; font-size: 11px; text-transform: uppercase; }
.result-tabs {
  display: flex; gap: 0; margin: 0 0 12px; border-bottom: 1px solid var(--line);
}
.result-tab {
  min-height: 34px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent;
  background: transparent; color: var(--muted); font-size: 12px; font-weight: 700;
}
.result-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.result-tab[hidden] { display: none; }
.result-panel { min-width: 0; }
.audit-person-company h4 { margin: 16px 0 8px; font-size: 13px; }
.person-company-scroll { max-height: 280px; overflow: auto; }
.person-company-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.source-tabs {
  display: flex; gap: 0; margin: 0 0 10px; border-bottom: 1px solid var(--line);
}
.source-tab {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent;
  background: transparent; color: var(--muted); font-size: 12px; font-weight: 700;
}
.source-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.source-tab-count {
  min-width: 18px; padding: 1px 6px; border-radius: 999px;
  background: #eef2f4; color: #5d6871; font-size: 10px; font-weight: 700;
}
.source-tab.active .source-tab-count { background: #e7f4f2; color: var(--teal); }
.source-tab-panel { min-width: 0; }
.data-pool-source { margin: 0; }
.data-pool-source .jobs-pagination { border: 1px solid var(--line); border-top: 0; }
.data-pool-source .result-empty {
  border: 0; border-top: 1px dashed var(--line); padding: 18px 12px;
}
.result-table-wrap { border: 1px solid var(--line); }
.result-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.result-table th {
  position: sticky; top: 0; padding: 8px 10px; background: #f6f8f9; color: #5d6871;
  font-size: 10px; text-transform: uppercase; text-align: left; border-bottom: 1px solid var(--line);
}
.result-table td {
  padding: 9px 10px; border-top: 1px solid #e5e9ec; font-size: 12px; vertical-align: top;
  overflow-wrap: anywhere;
}
.result-table th.row-num,
.result-table td.row-num {
  width: 2rem; max-width: 2.4rem; min-width: 2rem;
  padding-left: 8px; padding-right: 4px;
  color: #5d6871; font-variant-numeric: tabular-nums; font-weight: 650;
  text-align: left; white-space: nowrap;
}
.result-table.uploaded-table th:nth-child(1),
.result-table.uploaded-table td:nth-child(1) { width: 2rem; max-width: 2.4rem; }
.data-pool-source .result-table th:nth-child(2),
.data-pool-source .result-table td:nth-child(2) { width: 7%; }
.data-pool-source .result-table th:nth-child(3),
.data-pool-source .result-table td:nth-child(3) { width: 38%; }
.data-pool-source .result-table th:nth-child(4),
.data-pool-source .result-table td:nth-child(4) { width: 14%; }
.data-pool-source .result-table th:nth-child(5),
.data-pool-source .result-table td:nth-child(5) { width: 41%; }
.result-table.uploaded-table th:nth-child(2),
.result-table.uploaded-table td:nth-child(2) { width: 10%; }
.result-table.uploaded-table th:nth-child(3),
.result-table.uploaded-table td:nth-child(3) { width: 20%; }
.result-table.uploaded-table th:nth-child(4),
.result-table.uploaded-table td:nth-child(4) { width: 12%; }
.result-table.uploaded-table th:nth-child(5),
.result-table.uploaded-table td:nth-child(5) { width: 10%; }
.result-table.uploaded-table th:nth-child(6),
.result-table.uploaded-table td:nth-child(6) { width: 42%; }
.uploaded-files-summary { margin: 0 0 12px; }
.uploaded-files-list,
.uploaded-file-list {
  display: flex; flex-direction: column; gap: 8px; margin-top: 8px;
}
.uploaded-files-section .uploaded-files-list { margin-top: 0; }
.uploaded-file-card {
  display: grid; gap: 2px; padding: 10px 12px;
  border: 1px solid var(--line); background: #fbfcfc;
}
.uploaded-file-card strong {
  color: #17212b; font-size: 12px; text-transform: uppercase; letter-spacing: 0.02em;
}
.uploaded-file-name {
  color: #17212b; font-size: 13px; font-weight: 650; overflow-wrap: anywhere;
}
.result-table a { color: var(--teal); text-decoration: none; }
.result-table a:hover { text-decoration: underline; }
.result-empty {
  padding: 28px 12px; color: var(--muted); font-size: 12px; text-align: center;
  border: 1px dashed var(--line); background: #fbfcfc;
}
.candidate-filters {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 10px;
}
.candidate-filters label {
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  color: #34424c; font-size: 12px; font-weight: 650;
}
.candidate-filters input { width: auto; height: auto; margin: 0; }
.candidate-filter-count { color: var(--muted); font-size: 11px; font-weight: 600; }
.audit-summary {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px;
}
.audit-summary .source-pill { background: #f7fafb; }
.funnel-table-wrap {
  margin-top: 16px;
  margin-bottom: 0;
  max-height: none;
  overflow: visible;
}
.funnel-table th:first-child, .funnel-table td:first-child { width: 42%; }
.audit-filters label { display: inline-flex; align-items: center; gap: 6px; }
.audit-filters select {
  width: auto; min-width: 110px; height: 30px; padding: 0 8px; font-size: 12px;
}
.audit-filter-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.audit-layout {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 12px; align-items: start;
}
.audit-list-wrap { max-height: 460px; overflow: auto; }
.audit-table tbody tr { cursor: pointer; }
.audit-table tbody tr.selected { background: #eef8f6; }
.audit-detail {
  border: 1px solid var(--line); background: #fbfcfc; padding: 12px;
  max-height: 520px; overflow: auto;
}
.audit-detail .section-title { margin-bottom: 10px; }
.audit-detail-body { font-size: 12px; color: #24333d; }
.audit-detail-body h4 {
  margin: 14px 0 6px; font-size: 12px; color: var(--navy); text-transform: uppercase;
}
.audit-detail-body h4:first-child { margin-top: 0; }
.audit-meta-grid {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 10px; margin: 0;
}
.audit-meta-grid dt { color: var(--muted); font-weight: 650; }
.audit-meta-grid dd { margin: 0; overflow-wrap: anywhere; }
.credits-summary {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.credits-summary .source-pill,
.credits-run-totals .source-pill { background: #f7fafb; }
.credits-runs { display: grid; gap: 14px; }
.credits-run-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  background: #fff;
}
.credits-run-card .section-title { margin-bottom: 6px; }
.credits-run-card h4 { margin: 0; font-size: 14px; }
.credits-run-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.credits-run-totals {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
.credits-source-wrap { max-height: 260px; overflow: auto; }
.decision-timeline { list-style: none; margin: 0; padding: 0; }
.decision-timeline li {
  position: relative; padding: 0 0 12px 14px;
  border-left: 2px solid #d5dee3;
}
.decision-timeline li:last-child { padding-bottom: 0; }
.decision-timeline .decision-stage {
  color: var(--teal); font-size: 11px; font-weight: 750;
}
.decision-timeline .decision-rule {
  color: var(--muted); font-size: 11px; margin: 2px 0;
}
.decision-timeline .decision-reason { overflow-wrap: anywhere; }
.l2-reasons { margin: 6px 0 0; padding-left: 16px; }
.approval-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.rewind-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
select, input, textarea { width: 100%; border: 1px solid #cbd3d8; border-radius: 4px; background: white; color: #17212b; }
select, input { height: 38px; padding: 0 9px; }
dialog { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: 6px; padding: 0; box-shadow: 0 22px 65px #0d213555; }
dialog::backdrop { background: #13222e99; }
#job-form { padding: 20px; overflow: auto; }
#delete-job-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: none;
}
#delete-job-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 22px 24px 20px;
}
#delete-job-form .dialog-heading {
  align-items: center;
  margin-bottom: 12px;
}
#delete-job-form .dialog-heading h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}
#delete-job-form .eyebrow { margin-bottom: 4px; }
.delete-copy {
  margin: 0 0 14px;
  color: #4a5862;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}
.delete-job-code {
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f7f9fa;
  color: #17212b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#delete-job-form .form-error { min-height: 16px; margin: 0 0 12px; }
#delete-job-form .dialog-actions {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.form-meta { display: grid; grid-template-columns: 1fr 1fr 220px; gap: 12px; margin-bottom: 14px; }
label { display: grid; gap: 6px; color: #34424c; font-size: 12px; font-weight: 700; }
label .field-caption { display: inline; font-weight: 700; color: #34424c; }
label .field-hint { color: var(--muted); font-weight: 500; }
label .required-mark,
.required-mark { color: var(--red); font-weight: 700; margin-left: 2px; }
.required-legend {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}
.keyword-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
textarea { min-height: 126px; resize: vertical; padding: 9px; line-height: 1.45; }
.file-drop { display: flex; align-items: center; gap: 8px; margin-top: 15px; padding: 13px; border: 1px dashed #9fadb5; background: #f7f9fa; }
.file-drop input { width: auto; height: auto; }
.upload-source-type { display: block; margin-top: 12px; }
.form-error { min-height: 18px; margin-top: 8px; color: var(--red); font-size: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 980px) {
  .keyword-grid { grid-template-columns: repeat(2, 1fr); }
  .audit-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .app-header { padding: 0 14px; } main { padding: 18px 12px; }
  .environment { font-size: 12px; }
  h1 { font-size: 20px; } .metric-strip { grid-template-columns: repeat(2, 1fr); }
  th:nth-child(3), td:nth-child(3), th:nth-child(4), td:nth-child(4) { display: none; }
  th:first-child { width: 65%; } .form-meta, .keyword-grid { grid-template-columns: 1fr; }
  .jobs-pagination { justify-content: center; }
  .stage-list { grid-template-columns: 1fr; }
}
