:root {
  --bg: #f6f5f2;
  --panel: #ffffff;
  --ink: #1c1b19;
  --muted: #6b6a66;
  --border: #e4e2dc;
  --accent: #b5762c;
  --accent-ink: #ffffff;
  --stage-bg: #efece5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: var(--panel); border-bottom: 1px solid var(--border);
}
.topbar .brand { font-weight: 700; font-size: 17px; letter-spacing: 0.2px; }
.topbar .brand span { color: var(--accent); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 20px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; text-align: left; }
.stat .n { font-size: 22px; font-weight: 700; }
.stat .label { font-size: 12px; color: var(--muted); }
.stat.active { border-color: var(--accent); background: #fbf3e9; }
form.searchbar { display: flex; gap: 8px; margin-bottom: 18px; }
input, select, textarea {
  font-size: 14px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 7px;
  background: #fff; color: var(--ink); font-family: inherit;
}
input[type=text], input[type=search] { flex: 1; }
textarea { width: 100%; resize: vertical; }
button, .btn {
  font-size: 14px; padding: 9px 16px; border-radius: 7px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); cursor: pointer; font-weight: 600;
}
button.secondary, .btn.secondary { background: transparent; color: var(--ink); border-color: var(--border); }
button.danger, .btn.danger { background: #b23b2f; border-color: #b23b2f; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
tr:hover { background: #faf9f6; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; background: var(--stage-bg); color: var(--ink); font-weight: 600; }
.badge.Hired { background: #dff3e3; color: #1e6b34; }
.badge.Rejected { background: #f6e0dd; color: #97362a; }
.badge.Interviewing, .badge.Offered { background: #fbeecb; color: #8a5b0a; }
.formrow { margin-bottom: 14px; }
.formrow label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.tag { display: inline-block; background: var(--stage-bg); border-radius: 6px; padding: 2px 8px; font-size: 12px; margin: 2px 4px 2px 0; }
.muted { color: var(--muted); }
.activity { font-size: 13px; color: var(--muted); padding: 6px 0; border-bottom: 1px dashed var(--border); }
.login-wrap { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-card { width: 320px; }
.error { color: #b23b2f; font-size: 13px; margin-top: 8px; }
.top-actions { display: flex; gap: 8px; }
.resume-preview { white-space: pre-wrap; font-size: 13px; background: #faf9f6; border: 1px solid var(--border); border-radius: 8px; padding: 12px; max-height: 260px; overflow-y: auto; }
