:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-soft: #121933;
  --panel: rgba(18, 25, 51, 0.94);
  --line: rgba(148, 163, 184, 0.2);
  --text: #e5eefc;
  --muted: #9fb1d1;
  --primary: #5eead4;
  --primary-strong: #2dd4bf;
  --danger: #fb7185;
  --warning: #fbbf24;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top, #182448 0%, var(--bg) 60%);
  color: var(--text);
}

.shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.shell-narrow {
  width: min(760px, calc(100% - 24px));
}

.hero,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
}

.lead {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.lead.small {
  font-size: 15px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.actions-stretch > * {
  flex: 1 1 180px;
}

.button,
button {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #07111f;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  text-decoration: none;
  cursor: pointer;
}

.button-secondary {
  color: var(--text);
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid var(--line);
}

.button-danger {
  color: white;
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
}

.text-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.panel-header-wrap {
  flex-wrap: wrap;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text);
  padding: 14px 16px;
  font-size: 15px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.status-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(11, 16, 32, 0.45);
}

.status-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.preview {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: black;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.preview-landscape {
  aspect-ratio: 16 / 9;
}

.note {
  color: var(--muted);
  line-height: 1.5;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

code {
  font-family: Consolas, Monaco, monospace;
  color: #bfdbfe;
}

.empty {
  text-align: center;
  color: var(--muted);
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

.badge {
  background: rgba(94, 234, 212, 0.15);
  color: var(--primary);
}

.pill-green {
  background: rgba(45, 212, 191, 0.15);
  color: #5eead4;
}

.pill-yellow {
  background: rgba(251, 191, 36, 0.16);
  color: var(--warning);
}

.pill-blue {
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
}

.pill-gray {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

@media (max-width: 640px) {
  .shell,
  .shell-narrow {
    width: min(100% - 16px, 100%);
    padding-top: 16px;
  }

  .hero,
  .panel {
    padding: 18px;
    border-radius: 18px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }
}
