:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #18202c;
  --muted: #657084;
  --line: #d9dee7;
  --primary: #2457d6;
  --primary-dark: #193f9d;
  --success: #137a4b;
  --warning: #986200;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 1;
}

.brand {
  color: var(--text);
  font-size: 18px;
}

nav {
  display: flex;
  gap: 18px;
}

.page {
  width: min(1160px, calc(100% - 32px));
  margin: 32px auto;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
  letter-spacing: 0;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 20px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-header h2,
.panel h2 {
  margin: 0;
  font-size: 18px;
}

.panel-header span,
.muted {
  color: var(--muted);
}

.notice {
  padding: 12px 14px;
  border: 1px solid #aad7bd;
  border-radius: 8px;
  background: #edf9f1;
  color: var(--success);
  margin-bottom: 18px;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

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

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

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

td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, monospace;
}

pre {
  overflow-x: auto;
  background: #101828;
  color: #eef4ff;
  padding: 16px;
  border-radius: 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #eef2f7;
  color: var(--muted);
}

.status-active {
  background: #e9f8ef;
  color: var(--success);
}

.status-suspended {
  background: #fff5db;
  color: var(--warning);
}

.status-revoked {
  background: #fff0ef;
  color: var(--danger);
}

.status-replaced,
.status-released {
  background: #eef2f7;
  color: var(--muted);
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.button:hover,
button.button:hover {
  background: var(--primary-dark);
}

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
}

.compact {
  min-height: 36px;
  padding: 0 12px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(150px, 1.5fr) auto;
  gap: 8px;
  min-width: 360px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
}

.full {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.copy-box {
  padding: 18px;
  background: #eef2f7;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 22px;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 16px;
}

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

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.empty {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 720px) {
  .topbar,
  .hero,
  .panel-header,
  .grid-two {
    display: block;
  }

  nav {
    margin-top: 8px;
    gap: 12px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .inline-form {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .button,
  .secondary {
    width: 100%;
    margin-top: 12px;
  }
}
