@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  --black: #000;
  --white: #fff;
  --primary: #07c42c;
  --white-64: #ffffffa3;
  --white-32: #ffffff52;
  --white-16: #ffffff29;
  --panel: #0a0a0a;
  --panel-2: #111;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Figtree", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  border-bottom: 1px solid var(--white-16);
  background: rgba(0, 0, 0, 0.88);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner,
.page {
  width: min(1326px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white-64);
  font-size: 13px;
}

.page {
  padding: 56px 0 80px;
}

.hero-row,
.split-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 32px;
  align-items: start;
}

.eyebrow {
  color: var(--primary);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3 {
  letter-spacing: -0.04em;
  margin: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.95;
  font-weight: 600;
}

h2 {
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.02;
}

h3 {
  font-size: 24px;
  line-height: 1.12;
}

.muted {
  color: var(--white-64);
}

.panel,
.table-wrap {
  border: 1px solid var(--white-16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.panel {
  padding: 28px;
}

.login-card {
  width: min(560px, calc(100vw - 32px));
  margin: 12vh auto 0;
}

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

.login-form {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.login-form .btn {
  width: fit-content;
}

.btn,
button.btn {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--white);
  color: var(--white);
  background: transparent;
  padding: 0 22px;
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn:hover {
  background: var(--white);
  color: var(--black);
}

.btn.fill {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--black);
}

.btn.subtle {
  border-color: var(--white-16);
  color: var(--white-64);
}

.field-grid {
  display: grid;
  gap: 22px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.choice-grid {
  display: grid;
  gap: 12px;
}

.choice-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--white-16);
  padding: 14px;
}

.choice-option:has(input[type="radio"]:checked) {
  border-color: rgba(7, 196, 44, 0.72);
}

.choice-option input[type="radio"] {
  width: 16px;
  min-height: 16px;
  margin-top: 3px;
  accent-color: var(--primary);
}

.option-content {
  display: grid;
  gap: 10px;
}

.option-title {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.option-note {
  color: var(--white-64);
  font-size: 13px;
}

.range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
}

label {
  display: grid;
  gap: 9px;
  color: var(--white-64);
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--white-16);
  background: transparent;
  color: var(--white);
  font: inherit;
  min-height: 42px;
  outline: none;
}

textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
}

input[type="file"] {
  padding: 12px 0;
}

input[type="range"] {
  accent-color: var(--primary);
}

input:disabled {
  opacity: 0.52;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white-64);
  font-size: 12px;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white-32);
}

.status.complete::before {
  background: var(--primary);
  box-shadow: 0 0 12px rgba(7, 196, 44, 0.55);
}

.status.failed::before {
  background: #ff4d4d;
}

.status.generating::before,
.status.queued::before {
  background: #c49a3c;
}

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

th,
td {
  text-align: left;
  padding: 18px;
  border-bottom: 1px solid var(--white-16);
  vertical-align: top;
}

th {
  color: var(--white-64);
  font-size: 12px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
}

.list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  border-bottom: 1px solid var(--white-16);
  padding-bottom: 12px;
  color: var(--white-64);
}

.error {
  border: 1px solid rgba(255, 77, 77, 0.4);
  color: #ff9b9b;
  padding: 14px 16px;
  background: rgba(255, 77, 77, 0.08);
}

@media (max-width: 900px) {
  .hero-row,
  .split-row,
  .detail-grid,
  .field-row {
    grid-template-columns: 1fr;
  }
}
