:root {
  --navy: #061d44;
  --gold: #b86f10;
  --gold-dark: #8b5208;
  --ink: #0b1735;
  --muted: #5f6472;
  --line: #d8dce5;
  --bg: #f7f8fb;
  --success: #116b3a;
  --danger: #a12525;
  --warning: #8a5a00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 Arial, Helvetica, sans-serif;
}

a {
  color: var(--navy);
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--navy);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: #e6a21a;
  font: 700 25px Georgia, serif;
  border: 2px solid var(--gold);
}

.panel,
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 30px rgb(7 24 61 / 7%);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  padding: 8px 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary,
button.secondary {
  background: #fff;
  color: var(--navy);
}

.button.danger,
button.danger {
  border-color: var(--danger);
  background: var(--danger);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd0dc;
  border-radius: 6px;
  padding: 10px 11px;
  font: inherit;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

form {
  display: grid;
  gap: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge.valid {
  background: #e6f5ec;
  color: var(--success);
}

.badge.revoked,
.badge.integrity_error {
  background: #fae9e9;
  color: var(--danger);
}

.badge.reissued,
.badge.superseded,
.badge.expired,
.badge.not_found {
  background: #fff3d8;
  color: var(--warning);
}

.detail-list {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px 18px;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-list dd {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.notice {
  border-left: 4px solid var(--gold);
  background: #fff9ed;
  padding: 12px 14px;
}

.credential {
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  background: #fbfcff;
}

@media (max-width: 720px) {
  .topbar,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
