:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17202a;
  background: #f4f6f8;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: #1558a6; text-decoration: none; }
h1, h2 { margin: 0 0 16px; font-weight: 650; }
h1 { font-size: 28px; }
h2 { font-size: 18px; }
p { color: #5b6573; }
button, .button {
  min-height: 40px; border: 0; border-radius: 6px; padding: 10px 16px;
  background: #176b4d; color: white; font-weight: 650; cursor: pointer;
}
.secondary, .secondary-link { background: #e8edf2; color: #263444; }
.danger { background: #b42318; }
.topbar {
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; background: #fff; border-bottom: 1px solid #dce2e8;
}
.topbar div { display: flex; gap: 16px; align-items: baseline; }
.topbar span { color: #6d7783; font-size: 14px; }
.workspace { max-width: 1180px; margin: 0 auto; padding: 28px 24px 56px; }
.workspace > section { margin-bottom: 34px; }
.status-band {
  display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #dce2e8;
  background: #fff; border-radius: 6px;
}
.status-band div { padding: 18px; border-right: 1px solid #dce2e8; }
.status-band div:last-child { border-right: 0; }
.status-band span { display: block; color: #6d7783; font-size: 13px; margin-bottom: 6px; }
.active { color: #13704a; }
.error { color: #b42318; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid button { align-self: end; }
label { display: grid; gap: 6px; color: #4d5866; font-size: 13px; font-weight: 600; }
input, select {
  width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid #bfc8d2;
  border-radius: 5px; background: #fff; color: #17202a; font: inherit;
}
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #dce2e8; }
th, td { padding: 12px 14px; border-bottom: 1px solid #e5e9ed; text-align: left; font-size: 14px; }
th { color: #5b6573; font-size: 12px; text-transform: uppercase; background: #f8f9fa; }
.state { display: inline-block; padding: 3px 7px; border-radius: 4px; background: #e6f4ed; color: #13704a; font-size: 12px; }
.state.revoked { background: #f4e8e7; color: #9b2c24; }
.muted { color: #7a8490; text-align: center; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-panel { width: min(380px, 100%); display: grid; gap: 16px; padding: 28px; background: #fff; border: 1px solid #dce2e8; border-radius: 6px; }
.auth-panel code { padding: 10px; background: #eef1f4; overflow-wrap: anywhere; }
.qr { width: 220px; justify-self: center; }
.profile-head { display: flex; justify-content: space-between; align-items: start; }
.qr-pane { background: #fff; border: 1px solid #dce2e8; padding: 20px; text-align: center; }
.qr-large { width: min(100%, 420px); }
.actions { display: grid; gap: 14px; justify-items: start; }
.public-shell { min-height: 100vh; display: grid; align-content: center; justify-content: center; text-align: center; }
@media (max-width: 760px) {
  .topbar { padding: 0 16px; }
  .workspace { padding: 20px 14px 40px; overflow-x: auto; }
  .status-band { grid-template-columns: 1fr 1fr; }
  .status-band div:nth-child(2) { border-right: 0; }
  .status-band div:nth-child(-n+2) { border-bottom: 1px solid #dce2e8; }
  .split, .form-grid { grid-template-columns: 1fr; }
}
