:root { color-scheme: light; font-family: system-ui, "Microsoft JhengHei", sans-serif; color: #17243a; background: #eef2f7; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { min-height: 38px; padding: 0 14px; border: 1px solid #cbd5e1; border-radius: 8px; color: #243b5a; background: #fff; cursor: pointer; }
button:hover { background: #f4f7fb; }
button.primary { border-color: #3f67ca; color: #fff; background: #4f76d9; }
button.danger { border-color: #e5b4ae; color: #a12a20; background: #fff5f3; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 28px; color: #fff; background: #213957; }
.topbar div { display: flex; align-items: baseline; gap: 12px; }
.topbar strong { font-size: 20px; }
.topbar span { color: #c6d4e5; font-size: 13px; }
main { width: min(1180px, calc(100% - 32px)); margin: 32px auto; }
.card { border: 1px solid #d8e0eb; border-radius: 12px; background: #fff; box-shadow: 0 10px 28px #243b5a12; }
.login-card { width: min(460px, 100%); margin: 80px auto; padding: 34px; text-align: center; }
.login-card h1, .heading h1 { margin: 0 0 8px; }
.login-card p, .heading p { color: #68778d; }
#google-button { display: flex; justify-content: center; margin-top: 24px; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.identity { margin: -8px 0 18px; color: #65758b; font-size: 13px; overflow-wrap: anywhere; }
.message { min-height: 22px; color: #65758b; font-weight: 700; }
.message.error { color: #a12a20; }
.message.success { color: #14745f; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 13px; border-bottom: 1px solid #e3e8f0; text-align: left; vertical-align: top; }
th { color: #52647b; background: #f7f9fc; font-size: 12px; }
td { font-size: 13px; }
.player strong, .player span { display: block; }
.player span { margin-top: 4px; color: #6b7a8e; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #edf2f8; }
.badge.pending, .badge.approved { color: #725600; background: #fff4c9; }
.badge.active { color: #116750; background: #dcf4eb; }
.badge.expired, .badge.suspended { color: #9e2b22; background: #fee9e6; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 220px; }
.actions button { min-height: 32px; padding: 0 10px; font-size: 12px; }
.empty { padding: 35px; text-align: center; color: #68778d; }
dialog { width: min(460px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 14px; color: inherit; box-shadow: 0 24px 70px #17243a55; }
dialog::backdrop { background: #17243a88; }
.license-form { display: grid; gap: 18px; padding: 26px; }
.license-form h2 { margin: 0; }
.dialog-hint { margin: 6px 0 0; color: #68778d; }
.license-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.license-form input, .license-form textarea { width: 100%; padding: 10px 11px; border: 1px solid #cbd5e1; border-radius: 8px; color: #17243a; background: #fff; }
.shortcuts, .dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.shortcuts button[aria-pressed="true"] { border-color: #3f67ca; color: #fff; background: #4f76d9; }
.dialog-actions { justify-content: flex-end; margin-top: 4px; }
@media (max-width: 700px) {
  .topbar { padding: 0 16px; }
  main { width: min(100% - 20px, 1180px); margin-top: 20px; }
  .heading { align-items: stretch; flex-direction: column; }
}
