:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, sans-serif;
  color: #222;
  background: #f3f4f6;
}

* { box-sizing: border-box; }
body { margin: 0; }
.container { width: min(900px, calc(100% - 2rem)); margin: 3rem auto; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .25rem; }
h2 { font-size: 1.1rem; }
.header p, .signed-in-as, label span { color: #666; }
.panel { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 1.25rem; margin-bottom: 1rem; }
form { display: grid; gap: .5rem; max-width: 420px; }
input { border: 1px solid #aaa; border-radius: 4px; font: inherit; padding: .6rem; margin-bottom: .35rem; }
fieldset { border: 1px solid #ddd; border-radius: 4px; display: grid; gap: .35rem; margin: .25rem 0 .75rem; padding: .7rem; }
legend { color: #666; font-size: .85rem; padding: 0 .25rem; }
.checkbox { align-items: center; display: flex; gap: .45rem; }
.checkbox input { margin: 0; }
button { border: 0; border-radius: 4px; cursor: pointer; font: inherit; padding: .6rem .9rem; }
button:disabled { cursor: wait; opacity: .6; }
.primary { color: #fff; background: #2457a6; }
.secondary { color: #333; background: #ddd; }
.hidden { display: none !important; }
.token-result { background: #fff6d6; border: 1px solid #e3c766; border-radius: 4px; margin-top: 1rem; padding: .75rem; overflow-wrap: anywhere; }
.token-result code { display: block; margin: .5rem 0; }
.message { min-height: 1.5rem; }
.message.error { color: #a21d1d; }
.message.success { color: #176b36; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid #eee; padding: .7rem .4rem; text-align: left; }
th { font-size: .85rem; color: #666; }
td:last-child, th:last-child { text-align: right; }
.revoke { color: #a21d1d; background: transparent; padding: .25rem; }
@media (max-width: 650px) {
  .header { align-items: flex-start; flex-direction: column; }
  table { font-size: .85rem; }
  th:nth-child(3), td:nth-child(3), th:nth-child(4), td:nth-child(4) { display: none; }
}
