:root {
  color-scheme: light;
  --ink: #183249;
  --muted: #516679;
  --blue: #365aa8;
  --line: #dfe6ed;
  --paper: #fff;
  --ground: #edf2f6;
  --red: #a52222;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
  font-variant-numeric: tabular-nums;
  accent-color: var(--blue);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: var(--ink);
  color: var(--paper);
  padding: 20px max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header a {
  color: inherit;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}
header span {
  font-size: 15px;
  font-weight: 400;
  margin-left: 22px;
  color: #bbcfdf;
}
main {
  max-width: 1288px;
  margin: auto;
  padding: 44px 24px 64px;
}
h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
p {
  margin: 8px 0;
  color: var(--muted);
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  border: 1px solid transparent;
  background: var(--blue);
  color: white;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
button:hover {
  background: #294781;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: #bac8d6;
}
.secondary:hover {
  background: #eaf0f5;
}
.quiet {
  color: white;
  background: transparent;
  border-color: #809aaa;
}
.quiet:hover {
  background: #294781;
}
.danger {
  color: var(--red);
}
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid #bac8d6;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  caret-color: var(--blue);
}
input::placeholder {
  color: #617589;
}
label {
  font-size: 13px;
  font-weight: 600;
}
label:has(textarea) {
  display: block;
  margin-top: 18px;
}
textarea {
  resize: vertical;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #365aa8;
  outline-offset: 3px;
}
header button:focus-visible,
header a:focus-visible {
  outline-color: #69cafa;
}
::selection {
  background: #c0cfea;
  color: #183249;
}
.login {
  max-width: 520px;
  margin: 64px auto;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.login form {
  margin-top: 28px;
}
.login button {
  margin-top: 16px;
}
.hint {
  font-size: 13px;
  max-width: 75ch;
}
.heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}
.heading p {
  margin-bottom: 0;
}
.tools {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin: 30px 0 20px;
}
.search {
  flex: 1;
}
.tools select {
  min-width: 180px;
}
.editor,
.key-panel {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 24px;
}
.key-panel {
  background: #e9f6ea;
}
.fields {
  display: grid;
  grid-template-columns: 2fr 1fr 120px 1.5fr;
  gap: 16px;
  margin-top: 20px;
}
.actions,
.key-line {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
output {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 19px;
  overflow-wrap: anywhere;
  user-select: all;
}
.license {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
}
.license-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.license h2 {
  margin-bottom: 6px;
}
.meta {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.status {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  border-radius: 4px;
  padding: 3px 8px;
  background: #e9f6ea;
  color: #245e2f;
  margin-right: 8px;
}
.status.revoked {
  background: #fdeeee;
  color: var(--red);
}
.license-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.license-actions button {
  font-size: 13px;
  padding: 7px 10px;
}
details {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 14px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  margin-top: 12px;
  text-align: left;
}
th {
  color: var(--muted);
  font-weight: 600;
}
th,
td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
td:first-child {
  padding-left: 0;
}
.machine-id {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
  display: block;
}
.table-wrap {
  overflow-x: auto;
}
.release {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid #bac8d6;
}
.empty {
  padding: 40px 0;
  color: var(--muted);
}
#message {
  margin-top: 24px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  padding: 14px 18px;
}
#message:empty {
  display: none;
}
#message.error {
  background: #8f2222;
}
footer {
  max-width: 1288px;
  margin: 0 auto;
  padding: 0 24px 28px;
  color: var(--muted);
  font-size: 12px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .fields {
    grid-template-columns: 1fr 1fr;
  }
  .license-head {
    flex-direction: column;
  }
  .license-actions {
    width: 100%;
  }
}
@media (max-width: 600px) {
  main {
    padding: 28px 16px;
  }
  .login {
    margin: 28px auto;
    padding: 24px;
  }
  h1 {
    font-size: 30px;
  }
  .heading {
    align-items: start;
  }
  .heading button {
    white-space: normal;
  }
  .tools {
    flex-wrap: wrap;
  }
  .tools .search {
    flex-basis: 100%;
  }
  .tools label:not(.search) {
    flex: 1;
  }
  .tools select {
    min-width: 0;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .license,
  .editor,
  .key-panel {
    padding: 20px;
  }
  .key-line {
    align-items: stretch;
    flex-direction: column;
  }
  .license-actions {
    gap: 6px;
  }
  .license-actions button {
    flex: 1;
  }
  table {
    min-width: 530px;
  }
  header {
    padding: 18px 20px;
  }
}
