:root {
  --bg: #0b0f14;
  --card-bg: #121820;
  --border: #21282f;
  --text: #d7e0e6;
  --text-muted: #7c8791;
  --accent: #4fd1c5;
  --accent-hover: #6fe0d5;
  --error: #e08585;
  --error-bg: #2a1618;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(680px 420px at 15% -10%, rgba(79, 209, 197, 0.08), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  margin: 0;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(6px);
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.home-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.home-link:hover {
  color: var(--accent);
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

main.wide {
  max-width: min(1400px, 95vw);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 1.75rem;
}

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

.subtitle {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.back-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1rem;
}

.back-link:hover {
  text-decoration: underline;
}

form {
  display: grid;
  gap: 0.35rem;
}

.field-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.75rem 1rem;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

select, input {
  width: 100%;
  font-size: 1rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}

select:focus, input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

select:disabled {
  opacity: 0.6;
}

button {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  margin-top: 1.25rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #0b0f14;
  cursor: pointer;
  transition: background 0.15s ease;
}

button:hover:not(:disabled) {
  background: var(--accent-hover);
}

button:disabled {
  opacity: 0.65;
  cursor: default;
}

img {
  max-width: 100%;
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 0.5rem;
}

.error {
  color: var(--error);
  background: var(--error-bg);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  max-width: 320px;
  background: var(--error);
  color: #0b0f14;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  font-weight: 600;
  z-index: 1000;
}

.site-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 1.5rem 1.25rem 2.5rem;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

.credit {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 1rem 0 0;
  line-height: 1.5;
}

.credit a {
  color: var(--accent);
  text-decoration: none;
}

.credit a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
