:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #1c1c1e;
  --muted: #6e7280;
  --line: #e8eaf2;
  --teal: #0d9488;
  --indigo: #4f46e5;
  --red: #dc2626;
  --green: #16a34a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "SF Pro Text", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; background: #fff; border-bottom: 1px solid var(--line);
}
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--ink); }
.topbar .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--indigo), var(--teal));
  display: grid; place-items: center; color: #fff; font-weight: 800;
  object-fit: cover;
}
.topbar nav a { margin-left: 18px; color: var(--muted); text-decoration: none; font-size: 14px; }
.topbar nav a:hover { color: var(--ink); }
.btn {
  display: inline-block; background: var(--teal); color: #fff; font-weight: 700;
  padding: 12px 26px; border-radius: 999px; font-size: 15px; text-decoration: none;
  border: none; cursor: pointer; text-align: center;
}
.btn.ghost { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.form-card {
  max-width: 420px; margin: 60px auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px; padding: 34px 30px;
  box-shadow: 0 10px 30px rgba(30,40,80,.06);
}
.form-card h1 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  font-size: 15px; background: #fbfbfd; outline: none;
}
input:focus { border-color: var(--teal); }
.err { color: var(--red); font-size: 13px; margin-top: 12px; min-height: 18px; }
.ok { color: var(--green); font-size: 13px; margin-top: 12px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px 26px; box-shadow: 0 8px 24px rgba(30,40,80,.05);
}
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.pill {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
}
.pill.registered { background: #eef1f8; color: var(--indigo); }
.pill.applied { background: #fef3e2; color: #b45309; }
.pill.invited { background: #e6f7f4; color: var(--teal); }
.pill.rejected { background: #fdeeee; color: var(--red); }
table { width: 100%; border-collapse: collapse; margin-top: 8px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
th { color: var(--muted); font-weight: 600; font-size: 12px; }
td button { margin-right: 6px; }
.small-btn {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 12.5px; cursor: pointer; color: var(--ink);
}
.small-btn:hover { border-color: var(--teal); color: var(--teal); }
.status-title { font-size: 13px; color: var(--muted); }
.status-line { font-size: 16px; font-weight: 700; margin-top: 4px; }
@media (max-width: 640px) {
  .topbar nav a { margin-left: 12px; }
  table { font-size: 12.5px; }
  th, td { padding: 8px 4px; }
}
