:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: #172033;
  background: #f4f7fb;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 320px;
  background: linear-gradient(135deg, #0f766e, #155e75 55%, #1d4ed8);
  z-index: -1;
}
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 80px; }
header { color: white; margin-bottom: 28px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .16em; opacity: .8; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1; margin: 12px 0; letter-spacing: -.04em; }
header p { margin: 0; font-size: 18px; opacity: .86; }
.card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 48px rgba(15,23,42,.10);
}
form.card { padding: 24px; }
.input-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 22px; }
label > span, .threads { display: block; font-size: 14px; font-weight: 750; margin-bottom: 9px; }
.upload-zone {
  min-height: 212px;
  border: 2px dashed #99b8c7;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px;
  background: #f8fbfc;
  cursor: pointer;
}
.upload-zone span { font-size: 19px; margin: 0 0 6px; }
.upload-zone small { color: #64748b; margin-bottom: 16px; }
.upload-zone input { width: 100%; max-width: 280px; }
.upload-zone strong { color: #0f766e; margin-top: 12px; }
textarea, input[type="number"], select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: white;
}
textarea { resize: vertical; min-height: 174px; line-height: 1.45; }
textarea:focus, input:focus, select:focus { outline: 3px solid #bfdbfe; border-color: #2563eb; }
.form-footer, .toolbar, .progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-footer { margin-top: 20px; }
.threads { margin: 0; display: flex; align-items: center; gap: 10px; }
.threads input { width: 82px; }
button, .button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: #0f766e;
  color: white;
  padding: 12px 19px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .button:hover { background: #115e59; }
button:disabled { cursor: not-allowed; opacity: .5; }
.secondary { background: #e2e8f0; color: #253047; }
.secondary:hover { background: #cbd5e1; }
.hidden { display: none !important; }
#message { margin: 12px 0 0; }
.error-message { color: #b91c1c; font-weight: 650; }
#progress-section { padding: 20px 24px; margin-top: 18px; }
.progress-track { margin-top: 12px; height: 10px; border-radius: 20px; overflow: hidden; background: #dbe5ec; }
#progress-bar { width: 0; height: 100%; background: linear-gradient(90deg, #0f766e, #2563eb); transition: width .25s; }
#results-section { margin-top: 22px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.summary-card { padding: 16px; background: white; border: 1px solid #e2e8f0; border-radius: 14px; }
.summary-card span { display: block; color: #64748b; font-size: 13px; }
.summary-card strong { display: block; font-size: 23px; margin-top: 4px; }
.toolbar { margin: 14px 0; padding: 14px 16px; box-shadow: none; }
.toolbar label { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.toolbar select { width: 190px; }
.toolbar-actions { display: flex; gap: 9px; }
.table-wrap { overflow: auto; border-radius: 14px; box-shadow: none; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: #172033; color: white; text-align: left; position: sticky; top: 0; }
th, td { padding: 12px 14px; border-bottom: 1px solid #e2e8f0; }
th .sort { padding: 0; background: none; text-align: left; }
.link-cell { min-width: 380px; max-width: 580px; overflow-wrap: anywhere; }
.link-cell a { color: #0369a1; }
.badge { font-size: 12px; font-weight: 800; white-space: nowrap; }
.status-expired { background: #fff1f2; }
.status-ok { background: #f0fdf4; }
tr[class*="status-http"], tr[class*="status-timeout"],
tr[class*="status-no_date"], tr[class*="status-invalid"] { background: #f8fafc; }
@media (max-width: 760px) {
  .input-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar, .form-footer { align-items: stretch; flex-direction: column; }
  .toolbar-actions { flex-wrap: wrap; }
}
