:root {
  --gold: #f1da80;
  --bg: #113014;
  --bg-card: #1a4820;
  --secondary: #205925;
  --text: #f4f4f5;
  --text-muted: #a8a48f;
  --border: rgba(241, 218, 128, 0.14);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.panel-wrap {
  width: min(100% - 2rem, 960px);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.panel-top h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.panel-top p { color: var(--text-muted); font-size: 0.9rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  background: var(--gold);
  color: #113014;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { filter: brightness(1.08); text-decoration: none; }

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

.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.login-box {
  max-width: 400px;
  margin: 4rem auto;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.login-box h1 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.login-box > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
}

.field input:focus {
  outline: none;
  border-color: var(--gold);
}

.alert {
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.staff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.staff-card img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
}

.staff-card .btn--download {
  display: block;
  width: 100%;
  max-width: 180px;
  margin: 0 auto 1rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  text-decoration: none;
}

.staff-card .btn--download:hover {
  text-decoration: none;
}

.staff-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.staff-card .dept {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.staff-card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.75);
}

.modal.is-open { display: flex; }

.modal__box {
  width: min(100%, 420px);
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal__head h2 { font-size: 1.1rem; }

.modal__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover { color: var(--text); }

.modal__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.modal__actions .btn { flex: 1; }

.modal__help {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal__help ol {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal__help strong {
  color: var(--text);
  font-weight: 600;
}
