:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #0f172a;
  color: #e2e8f0;
}

.card {
  width: min(420px, 92vw);
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.card.wide {
  width: min(720px, 92vw);
}

h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

.subtitle {
  margin: 0 0 1.5rem;
  color: #94a3b8;
}

label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

input {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #0f172a;
  color: inherit;
}

button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

button.secondary {
  width: auto;
  background: #334155;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.error {
  color: #fca5a5;
  margin: 0 0 1rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.app-tile {
  display: block;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #475569;
  background: #0f172a;
  color: inherit;
  text-decoration: none;
}

.app-tile:hover {
  border-color: #60a5fa;
}

.app-tile h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.app-tile p {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}
