* { box-sizing: border-box; }
body { margin: 0; font: 16px Arial, sans-serif; color: #17233a; background: #f3f6f9; }
nav { background: #0a1a2f; padding: 14px; display: flex; flex-wrap: wrap; gap: 16px; }
nav a { color: white; text-decoration: none; }
nav a[aria-current="page"] { text-decoration: underline; font-weight: bold; }
main { max-width: 1100px; margin: auto; padding: 20px; }
header, .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
header { border-bottom: 1px solid #bdc9d6; margin-bottom: 20px; }
h1, h2, h3 { color: #0a2342; }
section, .card { background: white; border: 1px solid #d5dce4; border-radius: 8px; padding: 16px; margin: 14px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.grid .card { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: end; }
label { display: block; font-weight: bold; margin: 8px 0; }
input, select { display: block; width: 100%; padding: 9px; margin-top: 5px; font: inherit; border: 1px solid #aeb9c4; border-radius: 5px; }
button, .button { background: #006ee6; color: white; border: 0; border-radius: 5px; padding: 9px 13px; font: inherit; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
button.invite-loading::before { content: ''; display: inline-block; width: .8em; height: .8em; margin-right: .5em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: invite-spin .7s linear infinite; }
@keyframes invite-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { button.invite-loading::before { animation: none; } }
.invite-result-success { border-color: #3b8c5a; background: #e9f8ee; }
.invite-result-warning { border-color: #b27819; background: #fff7e2; }
button.secondary { background: #455e78; }
button.danger { background: #a32121; }
a { color: #005bba; }
.actions { justify-content: flex-start; margin: 10px 0; }
.actions a { margin-right: 10px; }
#message { color: #9a1e1e; white-space: pre-wrap; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px; border-bottom: 1px solid #d5dce4; text-align: left; }
.table-wrap { overflow-x: auto; }
@media (max-width: 600px) { main { padding: 14px; } .actions > button { width: 100%; } }
