:root {
  --ink: #162033;
  --muted: #647085;
  --line: #dfe4ed;
  --panel: #ffffff;
  --surface: #f5f7fb;
  --primary: #3157d5;
  --primary-dark: #2344b5;
  --navy: #111b31;
  --teal: #22a99a;
  --success: #19785f;
  --warning: #a55a0a;
  --danger: #b23845;
  --shadow: 0 14px 38px rgba(28, 45, 75, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface);
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 5vw;
  color: white;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.brand strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 2px;
  color: #9eabc1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  font-weight: 800;
  background: linear-gradient(145deg, #4d72ed, #21a99b);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.25);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #c7d0df;
  font-size: 14px;
}

.topnav a,
.link-button {
  color: inherit;
  text-decoration: none;
}

.topnav a:hover,
.link-button:hover {
  color: white;
}

.topnav form {
  margin: 0;
}

.link-button {
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
}

.shell {
  width: min(1380px, 90vw);
  margin: 0 auto;
  padding: 48px 0 72px;
}

.page-heading {
  margin-bottom: 28px;
}

.page-heading h1 {
  margin: 5px 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.page-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

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

.back-link {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 750;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: 150ms ease;
}

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

.button-primary {
  color: white;
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(49, 87, 213, 0.2);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  color: var(--primary);
  border-color: #cbd6ff;
  background: #eef2ff;
}

.button-danger {
  color: white;
  background: var(--danger);
  box-shadow: 0 8px 18px rgba(178, 56, 69, 0.18);
}

.button-danger:hover {
  background: #922d38;
}

.button-disabled {
  color: #7e8796;
  border-color: var(--line);
  background: #f1f3f6;
  cursor: not-allowed;
}

.button-disabled:hover {
  transform: none;
}

.button-quiet {
  color: var(--ink);
  border-color: var(--line);
  background: white;
}

.button-small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12px;
}

.button-wide {
  width: 100%;
}

.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.panel h2,
.hero-action h2 {
  margin: 0 0 5px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.panel-heading p,
.hero-action p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

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

.metric-card {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.metric-card strong {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-card-accent {
  color: white;
  border-color: transparent;
  background: linear-gradient(140deg, #3157d5, #243d89);
}

.metric-card-accent span {
  color: #dce4ff;
}

.job-list {
  margin: 0 -12px -10px;
}

.job-row {
  min-height: 72px;
  display: grid;
  grid-template-columns:
    minmax(260px, 1.6fr)
    minmax(80px, 0.55fr)
    auto
    auto
    92px;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
}

.job-row:hover {
  background: #f7f9fd;
}

.job-row-link {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(200px, 1fr);
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.job-row-link:focus-visible {
  border-radius: 10px;
  outline: 3px solid rgba(49, 87, 213, 0.18);
  outline-offset: 4px;
}

.job-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--primary);
  border-radius: 10px;
  background: #edf1ff;
  font-weight: 800;
}

.job-main strong,
.job-main span {
  display: block;
}

.job-main strong {
  font-size: 14px;
}

.job-main span,
.job-owner,
.job-date {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.job-date {
  text-align: right;
}

.share-form {
  display: flex;
  align-self: center;
  align-items: center;
  margin: 0;
}

.share-form.is-saving {
  pointer-events: none;
  opacity: 0.65;
}

.share-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  line-height: 22px;
}

.share-toggle input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
}

.share-switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid #c8d0dc;
  border-radius: 999px;
  background: #dfe4eb;
  transition: 150ms ease;
}

.share-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(22, 32, 51, 0.22);
  transition: 150ms ease;
}

.share-toggle input:checked + .share-switch {
  border-color: var(--primary);
  background: var(--primary);
}

.share-toggle input:checked + .share-switch::after {
  transform: translateX(16px);
}

.share-toggle input:focus-visible + .share-switch {
  box-shadow: 0 0 0 3px rgba(49, 87, 213, 0.16);
}

.share-toggle input:disabled + .share-switch {
  cursor: not-allowed;
  opacity: 0.62;
}

.share-label {
  min-width: 42px;
}

.status,
.badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #63561a;
  background: #fff6cc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.status-running,
.status-queued {
  color: #294bb5;
  background: #e8eeff;
}

.status-completed,
.badge-success {
  color: var(--success);
  background: #e4f7f1;
}

.status-failed {
  color: var(--danger);
  background: #ffeaed;
}

.status-large {
  padding: 9px 14px;
  font-size: 12px;
}

.empty-state {
  padding: 44px 20px 36px;
  text-align: center;
}

.empty-state h3 {
  margin: 16px 0 6px;
}

.empty-state p {
  margin: 0 0 22px;
  color: var(--muted);
}

.empty-illustration {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  color: white;
  border-radius: 22px;
  background: linear-gradient(145deg, #4d72ed, #21a99b);
  font-size: 26px;
  font-weight: 850;
}

.stack-form {
  display: grid;
  gap: 20px;
}

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

label {
  display: grid;
  gap: 7px;
  color: #2b3548;
  font-size: 13px;
  font-weight: 750;
}

label small,
.muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid #cdd5e1;
  border-radius: 10px;
  outline: none;
  background: white;
}

select[multiple] {
  min-height: 130px;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(49, 87, 213, 0.12);
}

.full-width {
  grid-column: 1 / -1;
}

.form-panel {
  max-width: 900px;
}

.upload-zone {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  border: 1.5px dashed #b9c4d6;
  border-radius: 16px;
  text-align: center;
  background: #fafbfe;
  cursor: pointer;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: #f7f9ff;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.upload-zone strong {
  margin-top: 12px;
  font-size: 17px;
}

.upload-zone span,
.upload-zone em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.upload-zone em {
  color: var(--primary);
  font-weight: 700;
}

.upload-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--primary) !important;
  border-radius: 16px;
  background: #e9efff;
  font-size: 24px !important;
  font-weight: 800 !important;
}

.callout {
  display: flex;
  align-items: start;
  gap: 9px;
  padding: 14px 16px;
  color: #285d54;
  border: 1px solid #c9ebe3;
  border-radius: 12px;
  background: #edfaf6;
  font-size: 12px;
  line-height: 1.5;
}

.callout strong {
  white-space: nowrap;
}

.callout-warning {
  display: grid;
  color: #7e4e17;
  border-color: #f1d8b1;
  background: #fff8e9;
}

.callout-danger {
  display: grid;
  color: #812f39;
  border-color: #efc2c8;
  background: #fff1f3;
}

.form-actions,
.action-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.form-actions {
  padding-top: 6px;
}

.mapping-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.8fr);
  align-items: start;
  gap: 22px;
}

.section-heading {
  display: flex;
  align-items: start;
  gap: 12px;
  padding-top: 10px;
}

.section-heading:not(:first-of-type) {
  margin-top: 10px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0 0 4px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.step-number {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--primary);
  border-radius: 9px;
  background: #edf1ff;
  font-size: 12px;
  font-weight: 850;
}

.preview-panel {
  position: sticky;
  top: 22px;
  overflow: hidden;
}

.table-scroll {
  max-height: 420px;
  overflow: auto;
  margin: 0 -28px 22px;
  border-block: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  white-space: nowrap;
}

th,
td {
  max-width: 160px;
  padding: 9px 10px;
  overflow: hidden;
  border-bottom: 1px solid #e7eaf0;
  text-overflow: ellipsis;
  text-align: left;
}

th {
  position: sticky;
  top: 0;
  color: #38445a;
  background: #f3f5f9;
  font-weight: 800;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profile-card {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
}

.profile-card:has(input:checked) {
  border-color: var(--primary);
  background: #f5f7ff;
  box-shadow: 0 0 0 2px rgba(49, 87, 213, 0.1);
}

.profile-card input {
  width: 16px;
  min-height: 16px;
  margin: 2px 0 0;
}

.profile-card strong,
.profile-card small {
  display: block;
}

.profile-card small {
  margin-top: 5px;
}

.hero-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 28px;
  color: white;
  border-radius: 18px;
  background: linear-gradient(140deg, #17233e, #263969);
  box-shadow: var(--shadow);
}

.hero-action p {
  max-width: 720px;
  color: #c2cce0;
}

.hero-action .eyebrow {
  margin-bottom: 6px;
  color: #7d9dff;
}

.hero-action-error {
  background: linear-gradient(140deg, #551f28, #873440);
}

.detail-metrics {
  margin-top: 0;
}

.metric-date {
  font-size: 16px !important;
  line-height: 1.35 !important;
  letter-spacing: -0.02em !important;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}

.narrow-panel {
  max-width: 680px;
}

.file-list {
  display: grid;
  gap: 3px;
}

.file-item-main,
.file-item-info {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-radius: 11px;
  text-decoration: none;
}

.file-item-main:hover {
  background: #f7f9fd;
}

.file-item-info {
  min-width: 0;
}

.file-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-radius: 11px;
}

.file-item:hover {
  background: #f7f9fd;
}

.file-item-main {
  min-width: 0;
}

.file-download {
  margin-right: 8px;
  padding: 8px 10px;
  color: var(--primary);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.file-download:hover {
  border-color: #b9c6eb;
  background: #f2f5ff;
}

.file-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #2b745c;
  border-radius: 11px;
  background: #e8f5f0;
  font-size: 9px;
  font-weight: 900;
}

.file-icon-report {
  color: #365ac4;
  background: #edf1ff;
}

.file-list strong,
.file-list small {
  display: block;
}

.file-list strong {
  font-size: 13px;
}

.file-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.file-list b {
  color: var(--primary);
  font-size: 11px;
}

.preview-heading {
  align-items: flex-end;
}

.preview-heading h1 {
  margin-bottom: 5px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.csv-preview-panel {
  overflow: hidden;
}

.csv-preview-toolbar {
  align-items: center;
}

.csv-table-scroll {
  max-height: calc(100vh - 320px);
  min-height: 260px;
  overflow: auto;
  margin: 0 -28px;
  border-block: 1px solid var(--line);
}

.csv-preview-table {
  width: max-content;
  min-width: 100%;
  font-size: 12px;
}

.csv-preview-table th,
.csv-preview-table td {
  max-width: 320px;
  height: 38px;
  padding: 9px 12px;
}

.csv-preview-table thead th {
  z-index: 2;
}

.csv-preview-table .row-number {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 58px;
  min-width: 58px;
  color: var(--muted);
  background: #f7f8fb;
  text-align: right;
}

.csv-preview-table thead .row-number {
  z-index: 3;
  background: #eef1f6;
}

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

.preview-pagination span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.preview-pagination-footer {
  padding-top: 18px;
}

.empty-preview {
  padding: 56px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-preview strong {
  color: var(--ink);
}

.empty-preview p {
  margin: 6px 0 0;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  min-height: 58px;
}

.timeline li > span {
  position: relative;
  width: 10px;
  height: 10px;
  margin: 4px 0 0 2px;
  border: 2px solid white;
  border-radius: 50%;
  background: #8c99ad;
  box-shadow: 0 0 0 2px #cbd2dd;
}

.timeline li:not(:last-child) > span::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 2px;
  width: 2px;
  height: 43px;
  background: #e0e5ed;
}

.timeline-success > span {
  background: var(--success) !important;
  box-shadow: 0 0 0 2px #a3d9c8 !important;
}

.timeline-error > span {
  background: var(--danger) !important;
  box-shadow: 0 0 0 2px #f3b7bf !important;
}

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

.timeline strong {
  font-size: 13px;
  line-height: 1.4;
}

.timeline small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.warning-panel {
  margin-top: 22px;
  border-color: #edd6ad;
}

.danger-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  border-color: #efc2c8;
}

.danger-panel h2 {
  margin: 0 0 5px;
}

.danger-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.delete-confirmation {
  display: grid;
  gap: 26px;
}

.delete-summary {
  display: grid;
  gap: 14px;
  margin: 0;
}

.delete-summary > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.delete-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.delete-summary dd {
  margin: 0;
  font-size: 14px;
  font-weight: 750;
}

.warning-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #73501f;
  font-size: 13px;
  line-height: 1.5;
}

.progress-panel {
  margin-bottom: 22px;
}

.progress-copy {
  display: flex;
  align-items: center;
  gap: 18px;
}

.progress-copy > span {
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  margin: 22px 0 10px;
  border-radius: 999px;
  background: #e7ebf3;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  transition: width 400ms ease;
}

.member-list {
  display: grid;
}

.member-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.member-row:last-child {
  border-bottom: 0;
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--primary);
  border-radius: 12px;
  background: #edf1ff;
  font-weight: 850;
}

.member-copy strong,
.member-copy span,
.member-copy small {
  display: block;
}

.member-copy strong {
  font-size: 13px;
}

.member-copy span,
.member-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 16px;
  min-height: 16px;
}

.flash-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.flash {
  padding: 13px 16px;
  border: 1px solid #cfd8e7;
  border-radius: 11px;
  color: #34445e;
  background: white;
  box-shadow: var(--shadow);
  font-size: 13px;
}

.flash-success {
  color: var(--success);
  border-color: #bfe5d9;
  background: #edfaf6;
}

.flash-error {
  color: var(--danger);
  border-color: #f0c5cb;
  background: #fff1f3;
}

.login-page {
  color: white;
  background:
    radial-gradient(circle at 20% 10%, rgba(57, 96, 215, 0.35), transparent 34%),
    radial-gradient(circle at 85% 80%, rgba(34, 169, 154, 0.2), transparent 30%),
    var(--navy);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 460px);
  align-content: center;
  justify-content: center;
  gap: 18px;
  padding: 30px;
}

.login-shell .flash-stack {
  width: 100%;
  margin: 0;
}

.login-card {
  width: 100%;
  padding: 34px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: white;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.25);
}

.login-brand {
  color: var(--ink);
}

.login-copy {
  margin: 38px 0 26px;
}

.login-copy h1 {
  margin: 7px 0 8px;
  font-size: 34px;
  letter-spacing: -0.045em;
}

.login-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.security-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 1080px) {
  .mapping-layout,
  .two-column {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(94vw, 720px);
    padding-top: 30px;
  }

  .topbar {
    align-items: flex-start;
    padding-block: 18px;
  }

  .topnav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
  }

  .metric-grid,
  .form-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

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

  .job-row {
    align-items: center;
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
  }

  .job-row-link {
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: 36px 1fr;
  }

  .job-owner,
  .job-date {
    display: none;
  }

  .share-form {
    grid-column: 1;
    margin-left: 50px;
  }

  .job-row > .status {
    grid-column: 2;
  }

  .split-heading,
  .hero-action,
  .danger-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel {
    padding: 20px;
  }

  .table-scroll {
    margin-inline: -20px;
  }

  .csv-table-scroll {
    max-height: calc(100vh - 280px);
    margin-inline: -20px;
  }

  .csv-preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .preview-pagination {
    justify-content: flex-start;
  }
}
