:root {
  --bg: #0b1020;
  --panel: #141b34;
  --line: #2a345c;
  --text: #e7ebff;
  --muted: #9aa6d1;
  --accent: #7aa2ff;
  --danger: #ff6f7d;
  --success: #39c07f;
  --warning: #f0b44d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #0a0f1d 0%, #121936 100%);
  color: var(--text);
}
.shell { max-width: 1200px; margin: 0 auto; padding: 24px; }
.header { margin-bottom: 24px; }
.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 28px;
  font-weight: 700;
}
.subtitle { color: var(--muted); margin-top: 8px; }
.panel {
  background: rgba(20, 27, 52, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.back-link, .btn-link { color: var(--accent); text-decoration: none; }
h1 { margin: 8px 0 0; font-size: 28px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table thead th { color: var(--muted); font-size: 13px; text-transform: uppercase; }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-ready { background: rgba(57, 192, 127, 0.16); color: var(--success); }
.badge-processing { background: rgba(240, 180, 77, 0.16); color: var(--warning); }
.badge-failed { background: rgba(255, 111, 125, 0.16); color: var(--danger); }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}
.btn-danger {
  border-color: rgba(255, 111, 125, 0.4);
  color: var(--danger);
}
.empty-state {
  border: 1px dashed var(--line);
  color: var(--muted);
  border-radius: 14px;
  padding: 22px;
}
.muted { color: var(--muted); }
.error-text {
  margin-top: 6px;
  color: #ffbcc4;
  font-size: 12px;
  max-width: 460px;
  white-space: pre-wrap;
}
code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 6px;
}
@media (max-width: 920px) {
  .panel-header { flex-direction: column; }
  .table, .table thead, .table tbody, .table th, .table td, .table tr { display: block; }
  .table thead { display: none; }
  .table tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .table td { border: none; padding: 8px 0; }
}