:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #1b2430;
  background: #f4f7f9;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }

.topbar {
  height: 58px;
  background: #ffffff;
  border-bottom: 1px solid #d8e0e6;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { color: #164e63; font-weight: 700; text-decoration: none; }
.brand span { color: #a14823; }
.account, .actions, .dialog-actions { display: flex; align-items: center; gap: 10px; }
.badge { background: #e8f1f4; color: #14546c; border: 1px solid #bcd2db; padding: 3px 7px; border-radius: 3px; font-size: 12px; }
.workspace { max-width: 1160px; margin: 0 auto; padding: 42px 28px; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 28px; font-weight: 680; }
h2 { margin-bottom: 18px; font-size: 20px; }
.eyebrow { color: #58707a; text-transform: uppercase; letter-spacing: 0; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.table-wrap { overflow-x: auto; background: #ffffff; border: 1px solid #d8e0e6; border-radius: 6px; }
table { border-collapse: collapse; width: 100%; min-width: 730px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #e5eaee; vertical-align: middle; }
th { background: #f8fafb; color: #52616b; font-size: 12px; font-weight: 700; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.muted { display: block; margin-top: 3px; color: #74838c; font-size: 12px; }
.empty { color: #667780; text-align: center; padding: 34px; }
.status { font-size: 12px; font-weight: 650; }
.status.active { color: #087551; }
.status.revoked, .status.expired { color: #a3322b; }
.button, .icon-button { appearance: none; border: 1px solid transparent; background: transparent; color: #1b2430; font: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; }
.button { padding: 7px 11px; border-radius: 4px; font-size: 14px; }
.button.primary { background: #14667d; color: #ffffff; border-color: #14667d; }
.button.quiet { border-color: #c7d2d8; background: #ffffff; }
.icon-button { width: 30px; height: 30px; border-radius: 4px; border-color: #d0d9de; background: #ffffff; font-size: 16px; }
.icon-button.danger { color: #a3322b; }
form { margin: 0; }
dialog { border: 0; border-radius: 6px; padding: 0; box-shadow: 0 16px 50px rgba(28, 47, 57, .25); width: min(420px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(22, 34, 42, .46); }
.dialog-form { display: grid; gap: 14px; padding: 24px; }
label { display: grid; gap: 6px; color: #42545d; font-size: 13px; font-weight: 650; }
input, select { min-height: 36px; border: 1px solid #bfcbd1; border-radius: 4px; padding: 7px 9px; color: #1b2430; font: inherit; background: #fff; }
.dialog-actions { justify-content: flex-end; margin-top: 8px; }
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.signin section { width: min(460px, 100%); }
.signin h1 { font-size: 36px; margin-bottom: 12px; }
.lead { color: #5a6c75; margin-bottom: 24px; }
.notice { margin: 16px auto 0; max-width: 1104px; padding: 10px 14px; border-radius: 4px; border: 1px solid #c6d8df; background: #eef7f8; color: #155161; }
.notice.error { background: #fff1f0; border-color: #e4b7b3; color: #87312a; }

@media (max-width: 680px) {
  .topbar { padding: 0 16px; }
  .workspace { padding: 26px 16px; }
  .page-heading { align-items: start; flex-direction: column; }
  .account > span:first-child { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
