:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8fafc;
  background: #070b14;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.2), transparent 34rem),
    radial-gradient(circle at 95% 12%, rgba(13, 148, 136, 0.15), transparent 30rem), #070b14;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero,
.panel-heading,
.button-row,
.session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
}

.eyebrow {
  margin-bottom: 8px;
  color: #60a5fa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.subtitle,
.disclosure,
.field-meta {
  color: #94a3b8;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  gap: 20px;
  margin-top: 36px;
}

.panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.player-panel,
.controls-panel,
.jobs-panel {
  padding: 24px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 3;
  margin-top: 22px;
  border-radius: 14px;
  background: #020617;
}

video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #64748b;
}

.disclosure {
  margin: 14px 0 0;
  font-size: 13px;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid #334155;
  border-radius: 10px;
  outline: none;
  color: #f8fafc;
  background: #0b1220;
}

input {
  height: 44px;
  padding: 0 12px;
}

textarea {
  padding: 12px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.13);
}

.prompt-field {
  margin-top: 24px;
}

.field-meta {
  margin-top: 6px;
  text-align: right;
  font-size: 12px;
}

.button-row .button {
  flex: 1;
}

.button {
  width: 100%;
  min-height: 44px;
  margin-bottom: 10px;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.button-primary {
  background: #2563eb;
}

.button-secondary {
  background: #334155;
}

.button-danger {
  background: #9f1239;
}

.status,
.pill {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
}

.status-offline {
  color: #cbd5e1;
  background: #1e293b;
}

.status-online,
.pill-running,
.job-succeeded {
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.45);
}

.job-failed,
.job-cancelled {
  color: #fecdd3;
  background: rgba(159, 18, 57, 0.45);
}

.session-card {
  margin-top: 16px;
  color: #94a3b8;
  font-size: 12px;
}

code {
  overflow: hidden;
  color: #bfdbfe;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message {
  min-height: 42px;
  margin-top: 16px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

.jobs-panel {
  margin-top: 20px;
}

.jobs-empty {
  padding: 28px 0 8px;
  color: #64748b;
}

.job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-top: 14px;
}

.job-meta {
  color: #94a3b8;
  font-size: 12px;
}

.job-cancel {
  display: block;
  margin: 8px 0 0 auto;
  border: 0;
  padding: 0;
  color: #fda4af;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 820px) {
  .shell {
    padding-top: 28px;
  }

  .hero,
  .panel-heading {
    align-items: flex-start;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
