:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --primary: #1c6e5c;
  --primary-dark: #14503f;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --danger: #b3261e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.center-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 400px;
}

h1 { font-size: 22px; margin-bottom: 4px; }
.subtitle { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

label { display: block; font-size: 13px; margin-bottom: 6px; margin-top: 16px; color: var(--muted); }

input, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}

button {
  margin-top: 20px;
  width: 100%;
  padding: 11px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: var(--primary-dark); }
button.secondary { background: transparent; color: var(--primary); border: 1px solid var(--primary); margin-top: 8px; }

.error { color: var(--danger); font-size: 13px; margin-top: 12px; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}
.topbar .role-badge { font-size: 12px; color: var(--muted); }

.container { max-width: 1000px; margin: 24px auto; padding: 0 16px; }

table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: #fafafa; color: var(--muted); font-weight: 600; }

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

.modal-backdrop {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  align-items: center; justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal { background: white; border-radius: 12px; padding: 24px; width: 100%; max-width: 420px; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #eef2f1; color: var(--primary-dark); font-size: 12px; }
