:root {
  color-scheme: light;
  --bg: #0e0f14;
  --panel: #f4f0e8;
  --panel-alt: #f9f6f0;
  --text: #1a1d1b;
  --muted: #5f6762;
  --accent: #e76f51;
  --accent-strong: #c95739;
  --border: #e1d8cb;
  --shadow: 0 20px 50px rgba(7, 10, 9, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Sora', 'Segoe UI', Tahoma, sans-serif;
  background: radial-gradient(circle at top left, #1f2b36 0%, #101316 45%, #0c0d12 100%);
  color: var(--text);
  min-height: 100vh;
}

.page {
  display: grid;
  gap: 24px;
  padding: 24px;
}

.hero {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: linear-gradient(135deg, #f9d9b9, #f4a261);
  padding: 28px 32px;
  border-radius: 22px;
  width: min(860px, 100%);
  box-shadow: var(--shadow);
  color: #2d1c11;
  animation: rise 0.5s ease;
}

.hero-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 12px;
}

.hero-card h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

.hero-card p {
  margin: 0;
  font-size: 14px;
  max-width: 480px;
}

.panel {
  display: flex;
  justify-content: center;
}

.form {
  width: min(860px, 100%);
  background: var(--panel);
  padding: 28px 32px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  animation: rise 0.6s ease;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.field label {
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  background: var(--panel-alt);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field small {
  color: var(--muted);
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  background: var(--accent);
  color: white;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--accent-strong);
}

.device {
  background: #fffdf7;
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.device-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.device-item {
  background: var(--panel-alt);
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  border: 1px solid var(--border);
}

.file-list {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.status {
  min-height: 18px;
  font-size: 13px;
  color: var(--muted);
}

.status.error {
  color: #b33c3c;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .page {
    padding: 16px;
  }

  .hero-card,
  .form {
    padding: 20px;
  }
}
