* { box-sizing: border-box; }
/* The [hidden] attr must win over .overlay/.center/.card display rules below. */
[hidden] { display: none !important; }
body { margin: 0; font: 14px/1.5 "72", system-ui, Arial, sans-serif; color: #1d2d3e; background: #f5f6f7; }
.center { display: grid; place-items: center; height: 100vh; color: #6a7783; }
header { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: #fff; border-bottom: 1px solid #e3e6e8; }
header h1 { font-size: 16px; margin: 0; }
.spacer { flex: 1; }
#who { color: #6a7783; font-size: 13px; }
main { padding: 20px; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e3e6e8; border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eef0f1; }
th { background: #fafbfb; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6a7783; }
.right { text-align: right; }
.muted { color: #8a949e; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.badge { padding: 2px 8px; border-radius: 10px; font-size: 12px; text-transform: capitalize; }
.badge.active { background: #e3f4e7; color: #1a7f37; }
.badge.suspended { background: #fdf0d5; color: #9a6700; }
.badge.cancelled { background: #fbe3e3; color: #b42318; }
button { font: inherit; padding: 6px 12px; border: 1px solid #c6cdd3; border-radius: 6px; background: #0a6ed1; color: #fff; cursor: pointer; }
button.ghost { background: #fff; color: #0a6ed1; }
button.link { background: none; border: none; color: #0a6ed1; padding: 2px 6px; }
button.danger { background: #fff; color: #b42318; border-color: #e6b8b3; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: grid; place-items: center; }
.card { background: #fff; border-radius: 10px; padding: 20px; width: 420px; max-width: 92vw; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.card h2 { margin: 0 0 12px; font-size: 16px; }
.card label { display: block; margin: 10px 0; font-size: 13px; color: #41505f; }
.card input, .card select { width: 100%; padding: 8px; margin-top: 4px; border: 1px solid #c6cdd3; border-radius: 6px; font: inherit; }
.card small { color: #8a949e; font-weight: normal; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.err { color: #b42318; background: #fbe3e3; padding: 8px; border-radius: 6px; font-size: 13px; }
.keybox { background: #f5f6f7; border: 1px solid #e3e6e8; border-radius: 6px; padding: 12px; word-break: break-all; font-size: 12px; }
