@font-face {
  font-family: Inter;
  src: url('/assets/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('/assets/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --page: #f1f3f6;
  --surface: #fff;
  --paper: #fdfcf9;
  --text: #202c3c;
  --muted: #4d5c70;
  --accent: #3d5d89;
  --border: #dce2eb;
  --focus: #3d5d89;
  --danger: #a12b32;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font:
    14px/1.6 Inter,
    system-ui,
    sans-serif;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
a.primary {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
button,
a.primary {
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}
button:hover {
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  margin: 8px 0 16px;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
label {
  display: block;
  font-weight: 600;
}
form {
  max-width: 440px;
}
.shell {
  max-width: 1080px;
  padding: 0 28px;
  margin: auto;
}
.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}
.brand img {
  width: 154px;
  height: auto;
  display: block;
}
.brand span {
  color: var(--muted);
  border-left: 1px solid var(--border);
  padding-left: 20px;
}
.brand .dark-logo {
  display: none;
}
.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
}
.intro {
  padding: 48px 0 24px;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.6px;
  line-height: 1.25;
  margin: 0 0 10px;
  font-weight: 600;
}
h2 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 12px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
p {
  margin: 0 0 14px;
}
.muted,
small {
  color: var(--muted);
}
#content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
#content > button {
  justify-self: start;
}
#content > form {
  grid-column: 1/-1;
  max-width: 480px;
  width: 100%;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.card.full-width {
  grid-column: 1/-1;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.actions:empty {
  display: none;
}
.licence-state {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.price {
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.7px;
  font-weight: 600;
}
.price small {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
}
.notice {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: 10px;
  margin: 0 0 20px;
}
.notice:empty {
  display: none;
}
.editions {
  margin: 40px 0 28px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  text-align: left;
}
caption {
  text-align: left;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 600;
}
th,
td {
  padding: 12px 24px;
  border-top: 1px solid var(--border);
}
th {
  font-weight: 600;
}
td {
  font-variant-numeric: tabular-nums;
}
thead {
  color: var(--muted);
}
.notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}
.notes p {
  font-size: 13px;
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  font-size: 12px;
  color: var(--muted);
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 8px;
  background: var(--surface);
  padding: 10px;
  z-index: 5;
}
.danger {
  color: var(--danger);
}
details {
  margin-top: 20px;
}
details summary {
  cursor: pointer;
  font-weight: 600;
}
details form {
  margin-top: 16px;
}
.recovery {
  max-width: 560px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #10151c;
    --surface: #181f29;
    --paper: #1b222b;
    --text: #edf1f7;
    --muted: #b9c4d4;
    --accent: #93abc9;
    --border: #344154;
    --focus: #93abc9;
    --danger: #ffadb2;
  }
  .primary {
    background: #38577e;
    color: #fff;
    border-color: #38577e;
  }
  .brand .light-logo {
    display: none;
  }
  .brand .dark-logo {
    display: block;
  }
}
@media (max-width: 680px) {
  .shell {
    padding: 0 18px;
  }
  .topbar .shell {
    min-height: 72px;
  }
  .brand {
    gap: 12px;
  }
  .brand img {
    width: 128px;
  }
  .brand span {
    padding-left: 12px;
    font-size: 12px;
  }
  .intro {
    padding-top: 32px;
  }
  h1 {
    font-size: 24px;
  }
  #content,
  .notes {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  footer {
    flex-direction: column;
    gap: 4px;
  }
  .topbar .badge {
    font-size: 11px;
  }
  .actions > button {
    flex: 1 1 auto;
  }
  table {
    min-width: 0;
    table-layout: fixed;
  }
  th,
  td {
    padding: 10px 8px;
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  th:first-child {
    width: 40%;
  }
}
