:root {
  color-scheme: dark;
  --bg: #07110f;
  --panel: #0d1d19;
  --line: #21443a;
  --text: #eef7f3;
  --muted: #91aaa1;
  --accent: #20e83d;
  --danger: #ff6b61;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #143228, var(--bg) 36rem);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(760px, 100%); margin: 0 auto; padding: 28px 16px 60px; }
header { padding: 12px 4px 18px; }
.eyebrow { color: var(--accent); letter-spacing: .18em; font-weight: 800; margin: 0; }
h1 { font-size: clamp(2rem, 9vw, 3.6rem); margin: 4px 0; }
h2 { margin: 0 0 16px; font-size: 1.08rem; }
.sub, .status, .meta, .empty { color: var(--muted); }
.panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: 0 20px 60px rgb(0 0 0 / 22%);
}
label { display: grid; gap: 8px; color: var(--muted); font-size: .88rem; }
input {
  min-width: 0;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #071410;
  color: var(--text);
}
input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 65%, transparent); }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 110px 1fr; gap: 12px; margin-bottom: 14px; }
button {
  border: 0;
  border-radius: 12px;
  padding: 11px 15px;
  font-weight: 750;
}
.primary { background: var(--accent); color: #041006; }
.secondary, .filter, .card-actions button { background: #18332b; color: var(--text); }
.section-title { display: flex; align-items: center; justify-content: space-between; }
.section-title h2 { margin: 0; }
.filters { display: flex; gap: 7px; overflow-x: auto; padding: 16px 0 8px; }
.filter { white-space: nowrap; padding: 8px 11px; color: var(--muted); }
.filter.active { background: var(--text); color: #07110f; }
.license-list { display: grid; gap: 10px; margin-top: 8px; }
.license-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #091713; }
.license-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.code { font: 800 1.12rem/1.3 ui-monospace, "Cascadia Mono", monospace; letter-spacing: .08em; }
.badge { padding: 4px 8px; border-radius: 999px; font-size: .72rem; background: #1a392f; color: var(--accent); }
.badge.bound { color: #8cc8ff; }
.badge.revoked { color: var(--danger); }
.meta { margin: 9px 0 0; font-size: .78rem; overflow-wrap: anywhere; }
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.card-actions button { padding: 8px 10px; font-size: .8rem; }
.card-actions .danger { color: var(--danger); }
.toast {
  position: fixed;
  left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  padding: 11px 16px; border-radius: 999px; background: var(--text); color: #07110f;
  opacity: 0; pointer-events: none; transition: .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
[hidden] { display: none !important; }
@media (max-width: 540px) {
  .form-grid { grid-template-columns: 1fr; }
  .input-row { grid-template-columns: 1fr; }
}
