:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; color: #18243b; background: #f3f5f9; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.login-card { max-width: 460px; margin: 8vh auto; }
.login-card form { display: grid; gap: 10px; margin: 24px 0; }
.login-card input { min-width: 0; width: 100%; font: inherit; padding: 12px; border: 1px solid #cbd5e5; border-radius: 7px; }
.login-card form button { margin-top: 12px; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; border: 1px solid #d5ddea; border-radius: 7px; padding: 9px 14px; background: white; color: #243551; }
button { cursor: pointer; white-space: nowrap; }
button:hover:not(:disabled) { border-color: #315dea; background: #f2f5ff; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 3px solid #7493fa; outline-offset: 3px; }
.topbar { display: flex; align-items: center; gap: 25px; padding: 18px 32px; background: #182a49; color: white; }
.topbar > a:first-child { font-weight: 700; }
.topbar > span { color: #bfcbe1; font-size: 14px; }
.back { margin-left: auto; font-size: 14px; }
main { max-width: 1120px; padding: 36px 28px 60px; margin: auto; }
.page-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h1 { font-size: 30px; margin: 5px 0 10px; }
h2 { font-size: 19px; margin: 0; }
p { color: #5f6c82; line-height: 1.65; margin: 0; }
.eyebrow { color: #315dea; font-size: 12px; font-weight: 700; letter-spacing: 2px; }
#status { margin: 20px 0; min-height: 26px; }
#status.error { color: #b72d34; }
.policy { border: 1px solid #cbdaee; border-radius: 9px; padding: 15px 18px; background: #edf3ff; line-height: 1.7; }
.policy.warning { border-color: #edcf8f; background: #fff8e8; color: #795716; }
.hint { margin: 15px 0 28px; font-size: 13px; }
section { background: white; border: 1px solid #e0e5ed; border-radius: 12px; margin-bottom: 24px; overflow: hidden; }
.section-heading { padding: 22px; border-bottom: 1px solid #edf0f5; }
.section-heading p { font-size: 13px; }
h2 span { background: #edf2ff; color: #315dea; padding: 2px 9px; border-radius: 20px; font-size: 13px; margin-left: 6px; }
.user-row { padding: 20px 22px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid #edf0f5; }
.identity { flex: 1; min-width: 0; }
.nickname { margin: 0 0 7px; font-size: 16px; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.meta { font-size: 12px; overflow-wrap: anywhere; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.role { font-size: 13px; color: #536789; }
.protected { font-size: 12px; color: #78849a; }
.primary { background: #315dea; color: white; border-color: #315dea; }
.primary:hover:not(:disabled) { color: #315dea; }
.danger { color: #b72d34; border-color: #edccd0; }
.empty { padding: 38px 22px; text-align: center; color: #78849a; }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 15px 22px; font-size: 13px; color: #65748b; }
dialog { border: 1px solid #dce2ec; border-radius: 12px; padding: 28px; max-width: min(460px, calc(100vw - 32px)); color: #18243b; }
dialog::backdrop { background: #12203988; }
dialog p { margin: 18px 0 26px; white-space: pre-line; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.dialog-actions { display: flex; gap: 12px; justify-content: flex-end; }
@media(max-width: 600px) {
  .topbar { padding: 16px; gap: 14px; flex-wrap: wrap; }
  main { padding: 24px 16px; }
  .page-heading { align-items: flex-start; }
  h1 { font-size: 26px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; padding: 18px; }
  .user-row { align-items: stretch; flex-direction: column; gap: 15px; padding: 18px; }
  .actions { justify-content: flex-end; }
}
