:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  --ink: #172026;
  --muted: #5d6872;
  --line: #d9dee5;
  --ok: #117a4a;
  --bad: #a83232;
  --bg: #f5f7fa;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
main {
  padding: 24px 28px;
}
a {
  color: #1d5fbf;
}
.auth {
  display: grid;
  min-height: 100vh;
  place-items: center;
}
.panel,
.card,
.serial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.panel {
  width: min(440px, calc(100vw - 32px));
}
.grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  color: var(--muted);
}
input,
select,
button {
  font: inherit;
  min-height: 38px;
}
form.inline {
  display: inline-block;
  margin-left: 12px;
}
form.inline button {
  min-height: 30px;
  background: #eef2f7;
  color: var(--ink);
}
input,
select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
}
button {
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: #172026;
  color: #fff;
  cursor: pointer;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}
.status.active {
  color: var(--ok);
}
.status.cancelled,
.error {
  color: var(--bad);
}
.notice,
.serial {
  margin-bottom: 18px;
}
.serial code {
  display: inline-block;
  font-size: 1.1rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
