:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface-2: #243044;
  --border: #2d3a4f;
  --text: #e7ecf3;
  --muted: #8b9cb3;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --success: #22c55e;
  --error: #ef4444;
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.layout {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1rem 5rem;
}

header {
  margin-bottom: 1.5rem;
}

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

header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

header a:hover {
  text-decoration: underline;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.5rem;
  margin-bottom: 1rem;
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.field .hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

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

textarea#resume_text {
  min-height: 12rem;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

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

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

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.checks input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.meta {
  font-size: 0.8rem;
  color: var(--muted);
  display: grid;
  gap: 0.25rem;
}

.import-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

button,
.btn {
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-weight: 500;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

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

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--muted);
}

.bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 20, 25, 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1rem;
  z-index: 10;
}

.bar .inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

#status {
  font-size: 0.85rem;
  color: var(--muted);
}

#status.ok {
  color: var(--success);
}

#status.err {
  color: var(--error);
}

#loading {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
}

.hidden {
  display: none !important;
}
