:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --ink: #1f2320;
  --muted: #6b7268;
  --accent: #2f6f4f;
  --accent-dark: #234f39;
  --border: #e4e2dd;
  --danger: #b3413c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; text-decoration: none; color: var(--ink); font-size: 1.1rem; }
.nav-right a { margin-left: 16px; color: var(--muted); text-decoration: none; }
.nav-right a:hover { color: var(--ink); }

.plan-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--border);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.plan-paid { background: var(--accent); color: white; }

.container { max-width: 960px; margin: 0 auto; padding: 32px 24px; }

.flash { background: #fff4e5; border: 1px solid #f0c988; padding: 10px 14px; border-radius: 8px; margin-bottom: 20px; }

h1 { margin-top: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }

.btn, button, .pricing-card button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
}
.btn:hover, button:hover { background: var(--accent-dark); }

.btn-link { background: none; border: none; color: var(--muted); cursor: pointer; padding: 0; font-size: 0.8rem; text-decoration: underline; }
.btn-link.danger { color: var(--danger); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: block;
  color: inherit;
  text-decoration: none;
}
.card-link:hover { border-color: var(--accent); }
.card-title { font-weight: 700; margin-bottom: 4px; }
.card-tags { font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; }

.status { font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; background: var(--border); }
.status-applied { background: #dbe9ff; }
.status-interviewing { background: #fff1c2; }
.status-offer { background: #d7f5df; }
.status-rejected { background: #f7d9d7; }

.empty { color: var(--muted); font-style: italic; }

.auth-card, .stacked-form, .generator, .pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  max-width: 520px;
}
.stacked-form { max-width: 640px; }

label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 0.88rem; }
input, textarea, select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

.hint { color: var(--muted); font-size: 0.85rem; }

.posting-text { white-space: pre-wrap; background: var(--card); border: 1px solid var(--border); padding: 12px; border-radius: 8px; }

.generator { max-width: none; margin: 24px 0; }
.answer-box { margin-top: 14px; background: #f2f8f4; border: 1px solid #cfe8d8; border-radius: 8px; padding: 14px; white-space: pre-wrap; }

.quota-note { color: var(--muted); font-size: 0.85rem; margin-top: 24px; }

.pricing-card ul { padding-left: 20px; }
