:root {
  --ink: #0f172a;
  --muted: #475569;
  --paper: #f8fafc;
  --panel: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --green: #10735a;
  --green-dark: #0e4b3d;
  --mint: #d5f6e8;
  --mint-tint: #eefbf6;
  --blue: #1d4ed8;
  --blue-tint: #eff6ff;
  --amber: #b45309;
  --amber-tint: #fffbeb;
  --red: #a63d30;
  --red-tint: #fef2f2;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  color-scheme: light;
  background: var(--paper);
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background: var(--paper);
  min-height: 100vh;
}
a {
  color: inherit;
}
button,
input,
textarea {
  font: inherit;
}
button,
.button {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

.topbar {
  height: 64px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px 10px 10px 3px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green);
  font-family: var(--sans);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.brand strong,
.brand small {
  display: block;
}
.brand strong {
  font-size: 13px;
  letter-spacing: 0.01em;
}
.brand small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.operator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.operator a {
  margin-left: 8px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22a06f;
  box-shadow: 0 0 0 4px rgba(34, 160, 111, 0.14);
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 96px;
}
.hero {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  margin-bottom: 56px;
}
.eyebrow,
.step-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 12px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font: 600 clamp(30px, 3.4vw, 42px) / 1.18 var(--sans);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 640px;
}
h1 em {
  font-style: normal;
  color: var(--green);
  font-weight: 600;
}
.lede {
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 0;
}
.promise-card {
  background: var(--ink);
  color: white;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow);
}
.promise-icon {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  background: var(--mint);
  color: var(--green-dark);
  border-radius: 50%;
  font-weight: 900;
  font-size: 14px;
}
.promise-card strong {
  font: 700 13px var(--sans);
  letter-spacing: -0.005em;
}
.promise-card p {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.5;
  margin: 6px 0 0;
}

.workspace,
.jobs-section {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  margin-top: 48px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}
.section-heading.compact {
  align-items: center;
}
.section-heading h2 {
  font: 600 24px var(--sans);
  letter-spacing: -0.015em;
  margin: 0;
}
.section-heading > p {
  max-width: 490px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
  margin: 0;
}
.migration-form {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-wide {
  grid-column: 1 / -1;
}
.field > span,
legend {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.field small {
  color: var(--muted);
  font-size: 12px;
}
input[type='url'],
input[type='text'] {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: white;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line-strong);
  background: white;
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: var(--ink);
}
input:hover {
  border-color: #94a3b8;
}
input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 115, 90, 0.14);
  outline: 0;
}
.destination-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  grid-row: span 2;
}
.crawl-scope-fieldset {
  grid-column: 1 / -1;
  grid-row: auto;
  grid-template-columns: 1fr 1fr;
}
.crawl-scope-fieldset legend {
  grid-column: 1 / -1;
}
legend {
  margin-bottom: 9px;
}
.choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.choice-card.selected {
  background: var(--mint-tint);
  border-color: var(--green);
}
.choice-card input {
  position: absolute;
  opacity: 0;
}
.choice-radio {
  width: 17px;
  height: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 4px white;
}
.selected .choice-radio {
  background: var(--green);
  border-color: var(--green);
}
.choice-card strong,
.choice-card small {
  display: block;
}
.choice-card strong {
  font-size: 13px;
}
.choice-card small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  line-height: 1.35;
}
.form-action {
  display: flex;
  align-items: center;
  gap: 16px;
  align-self: end;
}
#form-message {
  margin: 0;
  color: var(--red);
  font-size: 13px;
}
.button {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s,
    opacity 0.15s,
    box-shadow 0.15s;
}
.button:disabled {
  opacity: 0.48;
  cursor: wait;
}
.button-primary {
  background: var(--green);
  color: white;
}
.button-primary:hover {
  background: var(--green-dark);
}
.button-secondary {
  background: var(--mint-tint);
  color: var(--green-dark);
}
.button-quiet {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}
.button-danger {
  color: var(--red);
  background: var(--red-tint);
}
.button-wide {
  width: 100%;
  padding: 13px 18px;
  margin-top: 24px;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}
.empty-state[hidden] {
  display: none;
}
.empty-glyph {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.empty-state h3 {
  color: var(--ink);
  font: 600 18px var(--sans);
  margin-bottom: 6px;
}
.empty-state p {
  margin: 0 auto;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.55;
}
.jobs-list {
  display: grid;
  gap: 16px;
}
.job-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.job-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.job-status {
  display: inline-block;
  color: var(--green-dark);
  background: var(--mint);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}
.job-card[data-status='failed'] .job-status,
.job-card[data-status='completed_with_errors'] .job-status {
  background: var(--red-tint);
  color: var(--red);
}
.job-domain {
  font: 600 19px var(--sans);
  margin-bottom: 4px;
}
.job-destination,
.job-time {
  color: var(--muted);
  font-size: 12px;
}
.progress-track {
  height: 5px;
  background: var(--line);
  border-radius: 999px;
  margin: 20px 0;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), #2fa080);
  border-radius: inherit;
  transition: width 0.4s ease;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 0;
}
.metrics div {
  border-left: 1px solid var(--line);
  padding: 3px 18px;
}
.metrics div:first-child {
  border-left: 0;
  padding-left: 0;
}
.metrics dt {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.metrics dd {
  margin: 6px 0 0;
  font: 700 20px var(--sans);
  font-variant-numeric: tabular-nums;
}
.job-error,
.load-error {
  color: var(--red);
  background: var(--red-tint);
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  margin: 18px 0 0;
  font-size: 12px;
}
.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;
}

/* ── Migration console: Crawling / Media ─────────────────────────────────── */
.job-console {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.job-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 -1px;
}
.job-tab {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition:
    color 0.15s,
    background 0.15s;
}
.job-tab:hover {
  color: var(--ink);
}
.job-tab[aria-selected='true'] {
  color: var(--green-dark);
  background: var(--panel);
  border-color: var(--line);
  position: relative;
}
/* Hides the shared border under the active tab so it reads as one surface. */
.job-tab[aria-selected='true']::after {
  content: '';
  position: absolute;
  inset: auto 1px -1px 1px;
  height: 2px;
  background: var(--panel);
}
.tab-count {
  background: var(--mint);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
}
.job-tab[aria-selected='false'] .tab-count {
  background: var(--line);
  color: var(--muted);
}
.job-panel {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.job-panel:focus-visible {
  outline-offset: 6px;
}

.crawl-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px 20px;
  margin: 0;
}
.crawl-facts dt {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.crawl-facts dd {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.crawl-facts.limits dd {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.panel-subhead {
  font: 700 10px var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--green);
  margin: 22px 0 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.crawl-error {
  color: var(--red);
  background: var(--red-tint);
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  margin: 18px 0 0;
  font-size: 12px;
}

.crawl-browser {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
}
.crawl-browser-head,
.media-view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
}
.crawl-browser-head > span {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.crawl-view-toggle,
.media-view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.crawl-view-toggle button,
.media-view-toggle button,
.media-status-filters button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 10px;
  font: 700 10px var(--sans);
  cursor: pointer;
}
.crawl-view-toggle button[aria-pressed='true'],
.media-view-toggle button[aria-pressed='true'] {
  background: var(--ink);
  color: white;
}
.crawl-browser-body {
  display: grid;
  grid-template-columns: minmax(225px, 0.75fr) minmax(0, 1.25fr);
  min-height: 320px;
  max-height: 520px;
}
.crawl-page-list {
  overflow: auto;
  border-right: 1px solid var(--line);
  padding: 8px;
}
.crawl-page-row {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: start;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  padding: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.crawl-page-row:hover {
  background: #f1f5f9;
}
.crawl-page-row[data-selected='true'] {
  background: var(--mint-tint);
  box-shadow: inset 3px 0 0 var(--green);
}
.crawl-page-row strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}
.crawl-page-row span {
  color: var(--muted);
  font-size: 10px;
  text-transform: capitalize;
}
.crawl-page-detail {
  overflow: auto;
  padding: 20px;
}
.crawl-page-detail h4 {
  font: 600 18px var(--sans);
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.crawl-page-detail > a {
  display: block;
  color: var(--green);
  font-size: 11px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.page-empty {
  min-height: 250px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.page-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin: 0;
}
.page-facts dt {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.page-facts dd {
  margin: 4px 0 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.media-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter > span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.filter-search {
  flex: 1 1 220px;
}
.media-filters select,
.media-filters input[type='search'] {
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--line-strong);
  background: white;
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  color: var(--ink);
  width: 100%;
}
.media-filters select:focus,
.media-filters input[type='search']:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 115, 90, 0.14);
  outline: 0;
}
.media-note {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 0;
}
.media-view-bar {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.media-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.media-status-filters button {
  border-radius: 999px;
  background: var(--line);
}
.media-status-filters button[aria-pressed='true'] {
  background: var(--ink);
  color: white;
}
.media-gallery {
  display: grid;
  margin-top: 14px;
  max-height: min(68vh, 780px);
  overflow: auto;
  padding: 2px;
}
.media-gallery.is-grid {
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 14px;
}
.media-gallery.is-thumbnails {
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 7px;
}
.media-tile {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
}
.media-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: #e2e8f0;
  background-image:
    linear-gradient(45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(-45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #cbd5e1 75%),
    linear-gradient(-45deg, transparent 75%, #cbd5e1 75%);
  background-size: 18px 18px;
  background-position:
    0 0,
    0 9px,
    9px -9px,
    -9px 0;
  color: var(--muted);
  font-size: 11px;
  text-transform: capitalize;
}
.media-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.5);
}
.media-preview.is-file {
  background: #f1f5f9;
  font: 600 16px var(--sans);
  color: var(--ink);
}
.media-preview.is-unavailable {
  text-transform: none;
}
.media-preview-status {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  color: white;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.media-preview-status[data-status='uploaded'] {
  background: rgba(16, 115, 90, 0.92);
}
.media-preview-status[data-status='catalogued'] {
  background: rgba(29, 78, 216, 0.92);
}
.media-preview-status[data-status='failed'] {
  background: rgba(166, 61, 48, 0.92);
}
.media-preview-status[data-status='skipped'] {
  background: rgba(180, 83, 9, 0.92);
}
.media-tile-body {
  padding: 11px;
}
.media-tile-title {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.media-tile-meta {
  color: var(--muted);
  font-size: 10px;
  margin: 6px 0 10px;
}
.media-tile details {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.media-tile summary {
  color: var(--green);
  font-size: 10px;
  cursor: pointer;
}
.media-tile ul {
  margin: 8px 0 0;
  padding-left: 15px;
  max-height: 100px;
  overflow: auto;
}
.media-tile li {
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.media-tile-error {
  color: var(--red);
  font-size: 10px;
  margin: 9px 0 0;
}
.normalized-asset-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.media-tile.is-compact .media-preview {
  aspect-ratio: 1;
}
.media-tile.is-compact .media-tile-body {
  padding: 6px;
}
.media-tile.is-compact .media-tile-title {
  font-size: 9px;
}
.media-tile.is-compact .media-preview-status {
  width: 8px;
  height: 8px;
  padding: 0;
  top: 5px;
  right: 5px;
  overflow: hidden;
  text-indent: -999px;
}
.media-table-wrap {
  overflow: auto;
  max-height: 380px;
  margin-top: 12px;
}
/* The list scrolls inside its own box, so the headings have to stay put — once
   they scroll away, "68 B / 1 / —" three columns along stops meaning anything. */
.media-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel);
}
.media-downloads {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.row-reason {
  color: var(--muted);
}
.row-reason.is-problem {
  color: var(--red);
}
.row-reason.is-ok {
  color: var(--green);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  color: var(--muted);
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 9px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 11px 9px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td:first-child {
  max-width: 440px;
}
td a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
/*
  Only binary `uploaded` is green. A Duda collection row is blue: successful
  catalogue delivery, but intentionally not presented as an upload.
*/
.media-status {
  border-radius: 999px;
  background: #f1f5f9;
  padding: 4px 7px;
  white-space: nowrap;
}
.media-status[data-status='uploaded'] {
  color: var(--green-dark);
  background: var(--mint);
}
.media-status[data-status='catalogued'] {
  color: var(--blue);
  background: var(--blue-tint);
}
.media-status[data-status='failed'] {
  color: var(--red);
  background: var(--red-tint);
}
.media-status[data-status='skipped'] {
  color: var(--amber);
  background: var(--amber-tint);
}
.media-status[data-status='external'] {
  color: var(--blue);
  background: var(--blue-tint);
}
.media-status[data-status='discovered'],
.media-status[data-status='downloaded'] {
  color: var(--muted);
  background: #f1f5f9;
}
.job-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}
.job-actions > div {
  display: flex;
  gap: 8px;
}
.crawl-more {
  flex: 1;
  max-width: 700px;
}
.crawl-more summary {
  width: fit-content;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.crawl-more > p,
.continue-message {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 0;
}
.continue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.specific-pages-field {
  margin-bottom: 10px;
}
.continue-message {
  color: var(--red);
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}
.login-shell {
  width: min(440px, 100%);
}
.login-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 6vw, 44px);
  box-shadow: var(--shadow);
}
.login-card .brand-mark {
  margin-bottom: 28px;
}
.login-card h1 {
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.15;
}
.privacy-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  margin: 15px 0 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Responsive tiers: 1440 (default/desktop) → 1024 → 768 → 480 (covers 320) ── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .promise-card {
    max-width: 480px;
  }
  .migration-form {
    grid-template-columns: 1fr;
  }
  .field-wide {
    grid-column: auto;
  }
  .destination-fieldset {
    grid-row: auto;
  }
  .metrics {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 18px;
  }
  .metrics div:nth-child(5) {
    border-left: 0;
    padding-left: 0;
  }
}
@media (max-width: 768px) {
  .crawl-scope-fieldset {
    grid-template-columns: 1fr;
  }
  .crawl-scope-fieldset legend {
    grid-column: auto;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
  .crawl-facts {
    grid-template-columns: 1fr 1fr;
  }
  .crawl-browser-body {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .crawl-page-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 230px;
  }
  .media-view-bar {
    align-items: stretch;
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .topbar {
    height: auto;
    padding: 14px 18px;
  }
  .operator #operator-name,
  .status-dot {
    display: none;
  }
  .page-shell {
    width: min(calc(100% - 28px), 1180px);
    padding-top: 36px;
  }
  .migration-form,
  .job-card {
    padding: 18px;
  }
  .job-header,
  .job-actions {
    flex-direction: column;
  }
  .job-actions > div {
    flex-wrap: wrap;
  }
  .job-tab {
    padding: 9px 10px;
    font-size: 11px;
  }
  .media-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metrics div {
    padding-left: 12px;
  }
  .metrics div:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
}
