:root {
  --ink: #16211c;
  --ink-soft: #3f4b44;
  --paper: #f2eee5;
  --white: #fffdf9;
  --line: #cec6b8;
  --sage: #617767;
  --sage-pale: #dfe7dd;
  --terra: #a95135;
  --terra-pale: #f0d8ce;
  --gold: #b58a45;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0, rgba(181, 138, 69, .15), transparent 26rem),
    radial-gradient(circle at 90% 24%, rgba(97, 119, 103, .16), transparent 30rem),
    var(--paper);
  font-family: var(--sans);
}
button, input { font: inherit; }
a { color: inherit; }
.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;
}
.crawler-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 90px; }
.crawler-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.crawler-nav a { text-decoration: none; color: var(--ink-soft); }
.crawler-nav a::after { content: "↗"; margin-left: 5px; color: var(--terra); }
.crawler-nav span { margin-left: auto; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; }
.crawler-header { padding: clamp(54px, 9vw, 110px) 0 64px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 22px; color: var(--terra); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.crawler-header h1 {
  margin: 0;
  font: 500 clamp(3.4rem, 7vw, 6.8rem)/.94 var(--serif);
  letter-spacing: -.055em;
}
.crawler-header h1 em { color: var(--terra); font-weight: 400; }
.crawler-header > p:last-child { max-width: 760px; margin: 30px 0 0; color: var(--ink-soft); font-size: 1.12rem; line-height: 1.7; }
.crawler-section { padding: 68px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 66px 1fr; gap: 18px; align-items: start; margin-bottom: 32px; }
.section-heading > span {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: .72rem;
  font-weight: 800;
}
.section-heading p { margin: 1px 0 5px; color: var(--terra); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font: 500 clamp(2rem, 4vw, 3.5rem)/1 var(--serif); letter-spacing: -.035em; }
.provider-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0; border: 0; }
.provider-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 230px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 249, .78);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.provider-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(31, 37, 30, .1); }
.provider-card:has(input:checked) { border-color: var(--terra); box-shadow: inset 0 0 0 2px var(--terra); }
.provider-card input { position: absolute; top: 20px; right: 20px; accent-color: var(--terra); }
.provider-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--ink);
  color: var(--paper);
  font-size: .72rem;
  font-weight: 800;
}
.provider-card strong { margin-top: auto; font-size: 1.2rem; }
.provider-card code { color: var(--terra); font-size: .78rem; font-weight: 700; word-break: break-word; }
.provider-card small { color: var(--ink-soft); line-height: 1.45; }
.crawler-form { display: grid; gap: 18px; }
.url-field, .image-field {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 249, .8);
}
.url-field > span, .image-field > div:first-child > span { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.url-field b, .image-field b {
  color: var(--terra);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.url-field input {
  width: 100%;
  margin-top: 13px;
  padding: 15px 0;
  border: 0;
  border-bottom: 2px solid var(--ink);
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}
.url-field input:focus { border-color: var(--terra); }
.url-field small, .image-field p { display: block; margin: 9px 0 0; color: var(--ink-soft); font-size: .78rem; }
.image-field { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.image-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.image-actions button {
  padding: 10px 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}
.image-actions button:hover { background: var(--ink); color: var(--paper); }
.image-preview { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.image-preview[hidden] { display: none; }
.image-preview img { width: 78px; height: 78px; object-fit: cover; border-radius: 13px; background: var(--sage-pale); }
.image-preview strong, .image-preview span { display: block; }
.image-preview span { margin-top: 5px; color: var(--ink-soft); font-size: .76rem; }
.run-row { display: flex; align-items: center; gap: 20px; margin-top: 6px; }
.run-button {
  min-width: 220px;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--terra);
  color: white;
  font-weight: 800;
  cursor: pointer;
}
.run-button:hover { background: #873d28; }
.run-button:disabled { opacity: .55; cursor: wait; }
.run-row p { color: var(--ink-soft); font-size: .76rem; }
.crawler-status {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
}
.status-dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(181, 138, 69, .13); }
.crawler-status[data-state="running"] .status-dot { background: var(--sage); animation: pulse 1.3s infinite; }
.crawler-status[data-state="completed"] .status-dot { background: #4d8b5d; }
.crawler-status[data-state="failed"] .status-dot { background: #b43e31; }
.crawler-status strong, .crawler-status p { display: block; margin: 0; }
.crawler-status p { margin-top: 3px; color: var(--ink-soft); font-size: .82rem; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(97, 119, 103, .05); } }
.crawler-result { margin-top: 18px; display: grid; gap: 14px; }
.crawler-result[hidden] { display: none; }
.result-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.result-card h3 { margin: 0 0 13px; font: 500 1.65rem/1.1 var(--serif); }
.result-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.result-meta span { padding: 6px 10px; border-radius: 999px; background: var(--sage-pale); font-size: .7rem; font-weight: 700; }
.result-link { word-break: break-all; color: var(--terra); font-weight: 700; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact { padding: 14px; border-radius: 12px; background: #f6f2e9; }
.fact strong, .fact small { display: block; }
.fact small { margin-top: 5px; color: var(--ink-soft); line-height: 1.45; }
.result-images { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.result-images figure { margin: 0; }
.result-images img { width: 100%; aspect-ratio: 1.15; object-fit: cover; border-radius: 12px; background: var(--sage-pale); }
.result-images figcaption { margin-top: 5px; font-size: .7rem; font-weight: 700; text-transform: capitalize; }
.missing-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; list-style: none; }
.missing-list li { padding: 6px 9px; border-radius: 999px; background: var(--terra-pale); color: #71331f; font-size: .7rem; font-weight: 700; }
@media (max-width: 760px) {
  .provider-grid, .fact-grid { grid-template-columns: 1fr; }
  .image-field { grid-template-columns: 1fr; }
  .image-actions { justify-content: flex-start; }
  .result-images { grid-template-columns: repeat(2, 1fr); }
  .run-row { align-items: flex-start; flex-direction: column; }
  .crawler-header h1 { font-size: 3.2rem; }
}
