:root {
  color-scheme: dark;
  color: #f5f5f5;
  background: #0b1120;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(16, 24, 45, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

button {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  padding: 0.65rem 0.95rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font: inherit;
}

button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.content {
  padding: 1.5rem;
}

.card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.card + .card {
  margin-top: 1rem;
}

h1, h2, h3 {
  margin: 0 0 1rem;
}

p {
  line-height: 1.75;
}

input, textarea, select {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.95);
  color: #f8fafc;
  font: inherit;
}

label {
  display: block;
  margin-top: 1rem;
}

.form-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.status {
  margin: 0.75rem 0 0;
  color: #f8fafc;
}

.status.error {
  color: #fb7185;
}

.status.success {
  color: #34d399;
}

.small-note {
  opacity: 0.8;
  margin-top: 0.75rem;
}

.list-row {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  padding: 1rem 0;
}

.list-row:first-child {
  border-top: none;
}

.list-row a {
  color: #93c5fd;
  text-decoration: none;
}

.list-row a:hover {
  text-decoration: underline;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    justify-content: stretch;
  }
}
