body { font-family: system-ui, sans-serif; max-width: 720px; margin: 2rem auto; padding: 0 1rem; }
a { color: #2563eb; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
header a:first-child { color: inherit; text-decoration: none; }
form { display: flex; flex-direction: column; gap: .5rem; max-width: 320px; }
form.inline { flex-direction: row; flex-wrap: wrap; max-width: none; }
input, button { font: inherit; padding: .4rem .6rem; }
.error { color: #dc2626; margin: 0; }
.game { display: block; padding: 1rem; margin: .5rem 0; border: 1px solid #ccc; border-radius: 8px; color: inherit; text-decoration: none; }
.game:hover { background: #f4f4f4; }
table { border-collapse: collapse; width: 100%; margin-bottom: 1rem; }
td { padding: .4rem; border-bottom: 1px solid #eee; }
td:last-child { text-align: right; white-space: nowrap; }
[hidden] { display: none !important; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.admin-tabs button { cursor: pointer; border: 1px solid #ccc; border-radius: 6px; }
.admin-tabs button[aria-pressed="true"] { background: #2563eb; color: white; border-color: #2563eb; }
.table-scroll { overflow-x: auto; }
th { text-align: left; padding: .4rem; border-bottom: 2px solid #ccc; }
.section-heading, .users-toolbar, .users-pagination, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.users-toolbar { margin: 1rem 0; align-items: end; }
.users-toolbar label { display: flex; flex-direction: column; gap: .4rem; }
.users-toolbar label:first-child { flex: 1; min-width: 200px; }
select { font: inherit; padding: .4rem .6rem; }
th button { border: 0; background: transparent; color: inherit; padding: 0; text-align: left; cursor: pointer; }
.users-pagination { justify-content: center; }
dialog { border: 1px solid #ccc; border-radius: 8px; padding: 1.5rem; max-width: calc(100vw - 4rem); }
dialog::backdrop { background: rgb(0 0 0 / 45%); }
dialog h2 { margin-top: 0; }
.dialog-actions { justify-content: flex-end; margin-top: 1rem; }
