:root {
  --bg: #0f1419;
  --surface: #1a222c;
  --text: #e8eef4;
  --muted: #8b9aab;
  --accent: #3d8bfd;
  --accent-2: #2a5fad;
  --danger: #e35d6a;
  --border: #2a3542;
  --radius: 10px;
  --font: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse at 20% 0%, #1b2a3d 0%, transparent 50%),
    radial-gradient(ellipse at 90% 20%, #1a2836 0%, transparent 40%),
    var(--bg);
}

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hidden { display: none !important; }

.brand h1, .topbar h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.brand p, .muted { color: var(--muted); margin: 0; }

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

.panel {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.2rem;
  margin-bottom: 1rem;
}

.panel.compact { padding-bottom: 1rem; }

.panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.card-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
  max-width: 360px;
}

label { font-size: 0.9rem; color: var(--muted); }

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #121820;
  color: var(--text);
  padding: 0.65rem 0.75rem;
  font: inherit;
}

textarea { resize: vertical; min-height: 8rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  align-items: center;
}

button,
.file-btn {
  appearance: none;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

button.secondary,
.file-btn {
  background: #243041;
  border: 1px solid var(--border);
}

button.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

button:hover,
.file-btn:hover { filter: brightness(1.08); }

.file-btn { display: inline-flex; align-items: center; }

.error { color: var(--danger); margin: 0.4rem 0 0; }
.status { min-height: 1.25rem; color: var(--muted); font-size: 0.9rem; margin: 0.6rem 0 0; }

.list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}

.list a { color: var(--accent); text-decoration: none; }
.list .meta { color: var(--muted); font-size: 0.8rem; }
