:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #182033;
  --muted: #647086;
  --line: #dfe5ef;
  --primary: #1f5eff;
  --primary-dark: #1748c7;
  --danger: #b42318;
  --ok: #16703a;
  --footer-bg: #1e293b;
  --shadow: 0 14px 35px rgba(24, 32, 51, .08);
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #eef4ff 0, #f8fafc 36%, var(--bg) 100%);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 26px; }
.main-content { flex: 1 0 auto; }
.header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.header h1 { margin: 0 0 8px; font-size: clamp(1.55rem, 2.4vw, 2.25rem); letter-spacing: -0.03em; }
.header p { margin: 0; color: var(--muted); max-width: 760px; line-height: 1.45; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: #e7efff; color: #1748c7; font-weight: 700; white-space: nowrap; }
.card { background: rgba(255,255,255,.92); border: 1px solid rgba(223,229,239,.9); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-title { padding: 22px 24px 0; }
.card-title h2 { margin: 0 0 5px; font-size: 1.22rem; }
.card-title p { margin: 0 0 18px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 950px; }
th, td { padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: middle; text-align: left; }
th { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; background: #fbfcff; }
.model { display: flex; gap: 16px; align-items: center; }
.thumb { width: 132px; height: 74px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.model strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.model small, .muted { color: var(--muted); line-height: 1.35; }
.pill { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #eef1f6; font-weight: 700; font-size: .86rem; }
.file { width: 230px; max-width: 100%; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn, button.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 13px;
  font-weight: 750;
  cursor: pointer;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-outline { background: #fff; color: var(--primary); border-color: #bfd0ff; }
.btn-outline:hover { background: #eef4ff; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 650; }
.check input { width: 18px; height: 18px; }
.status {
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  line-height: 1.45;
}
.status.ok { border-color: #b9e6c9; color: var(--ok); background: #f1fff6; }
.status.err { border-color: #ffd0ca; color: var(--danger); background: #fff5f3; }

.progress-status {
  color: var(--text);
  background: #fff;
}
.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.progress-head strong {
  font-size: .98rem;
}
.progress-head span {
  color: var(--primary);
  font-weight: 800;
  min-width: 48px;
  text-align: right;
}
.progress-track {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 13px;
  border-radius: 999px;
  background: #e8edf7;
  border: 1px solid #d9e2f2;
}
.progress-bar {
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #58a6ff);
  transition: width .22s ease;
}
.progress-detail {
  margin-top: 9px;
  color: var(--muted);
  font-size: .93rem;
}
.progress-status.is-indeterminate .progress-bar {
  width: 45% !important;
  min-width: 120px;
  background: linear-gradient(90deg, #bdd0ff, var(--primary), #bdd0ff);
  animation: progress-indeterminate 1.15s ease-in-out infinite;
}
@keyframes progress-indeterminate {
  0% { transform: translateX(-135%); }
  100% { transform: translateX(235%); }
}

.contact-callout {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #cdd9ff;
  background: #f4f7ff;
  color: var(--text);
  line-height: 1.45;
}
.contact-callout a { font-weight: 800; margin-left: 6px; white-space: nowrap; }
.footer {
  flex-shrink: 0;
  text-align: center;
  padding: 14px 14px 16px;
  min-height: 104px;
  color: #fff;
  width: 100%;
  background-color: var(--footer-bg);
  box-shadow: 0 -2px 6px rgba(15, 23, 42, 0.35);
}
.footer-title {
  display: block;
  font-size: .95rem;
  line-height: 1.25;
  margin-bottom: 10px;
}
.social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 42px;
  width: 100%;
}
.social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.social-link:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.24);
  text-decoration: none;
}
.social-link img,
.social-link .social-svg {
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 auto;
}
@media (max-width: 760px) {
  .header { display: block; }
  .badge { margin-top: 14px; }
  .container { width: min(100% - 22px, 1180px); padding-top: 22px; }
  th, td { padding: 13px 14px; }
  .contact-callout a { display: inline-block; margin-left: 0; margin-top: 4px; }
}
