.shopping-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  margin-bottom: 36px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  font-size: 13px;
}
.shopping-choice p {
  color: var(--muted);
  font-size: 12px;
  margin: 5px 0 0;
}
.shopping-choice > div {
  margin-right: auto;
}
.shopping-choice a,
.empty-access a {
  color: var(--primary);
  white-space: nowrap;
  text-underline-offset: 4px;
}
.empty-access a {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
}
.payment-status {
  padding: 14px 18px;
  margin-bottom: 36px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  font-size: 13px;
}
@media (max-width: 700px) {
  .shopping-choice {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    margin-bottom: 28px;
  }
}
:root {
  color-scheme: dark;
  --background: #191724;
  --surface: #1f1d2e;
  --foreground: #e0def4;
  --muted: #a8a3be;
  --border: #403b52;
  --raised: #26233a;
  --primary: #c4a7e7;
  --pine: #9ccfd8;
  --rose: #ebbcba;
  --error: #eb6f92;
  font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  color: var(--foreground);
  background: var(--background);
}
* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.6;
}
[hidden] {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}
::selection {
  color: var(--background);
  background: var(--primary);
}
input,
textarea {
  caret-color: var(--primary);
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
html {
  scroll-padding-top: 88px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px 5vw;
  background: rgb(25 23 36 / 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-lift linear both;
    animation-timeline: scroll();
    animation-range: 0 64px;
  }
}
@keyframes header-lift {
  from {
    background-color: rgb(25 23 36 / 0);
    border-bottom-color: transparent;
  }
}
.wordmark {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.4px;
  text-decoration: none;
}
.wordmark span {
  color: var(--rose);
  font-weight: 500;
}
.header-right,
.header-right nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-right nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.header-right nav a:hover,
.header-right nav [aria-current='page'] {
  color: var(--foreground);
}
main {
  flex: 1;
  width: min(1120px, 90vw);
  margin: 0 auto;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 100px;
  align-items: center;
  min-height: calc(100dvh - 190px);
  padding: 48px 0 80px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.intro h1 {
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-bottom: 28px;
}
.intro h1 span {
  color: var(--primary);
}
.intro > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  max-width: 38ch;
}
.intro-note {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 60px;
}
.note-line {
  width: 28px;
  height: 1px;
  background: var(--primary);
  margin-top: 13px;
  flex-shrink: 0;
}
.intro-note p {
  color: var(--muted);
  font-size: 13px;
}
.auth-panel {
  border-left: 1px solid var(--border);
  padding-left: 40px;
}
h2 {
  font-size: 22px;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}
.secondary {
  color: var(--muted);
  font-size: 14px;
}
label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}
form {
  margin-top: 28px;
}
input[type='password'],
input[type='text'],
input[type='email'],
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--foreground);
  padding: 13px 14px;
}
input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.primary,
.secondary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 7px;
  width: 100%;
  font-weight: 550;
  font-size: 14px;
}
.primary {
  color: var(--background);
  background: var(--primary);
}
.primary:hover:not(:disabled) {
  background: #d6bff0;
}
.secondary-button {
  color: var(--foreground);
  background: transparent;
  border: 1px solid var(--border);
  justify-content: center;
}
.secondary-button:hover:not(:disabled),
.text-button:hover:not(:disabled) {
  background: var(--surface);
}
.text-button {
  padding: 8px 10px;
  color: var(--muted);
  background: transparent;
  border-radius: 6px;
  font-size: 14px;
}
.auth-divider {
  height: 1px;
  background: var(--border);
  margin: 30px 0 24px;
}
.error {
  color: var(--error);
  font-size: 13px;
  margin: 10px 0 16px;
  overflow-wrap: anywhere;
}
.error:empty {
  margin: 14px 0;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  margin: 24px 0;
  line-height: 1.6;
}
.check-label input {
  accent-color: var(--primary);
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  flex-shrink: 0;
}
.back-link {
  margin: 18px -10px 0;
}
.account-number {
  display: block;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  line-height: 1.7;
  padding: 20px 0;
  overflow-wrap: anywhere;
  color: var(--primary);
}
.site-footer {
  border-top: 1px solid #343044;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 44px 5vw 52px;
}
.footer-nav {
  display: flex;
  gap: 72px;
}
.footer-nav h2 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--foreground);
}
.footer-nav ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--foreground);
  text-decoration: underline;
}
.footer-app {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.footer-nav .footer-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
}
.footer-download svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-nav .footer-checksum {
  font-size: 12px;
}
.account-layout {
  max-width: 940px;
  margin: 44px auto 70px;
}
.account-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 36px;
}
.account-heading h1 {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.account-heading p {
  margin-bottom: 0;
}
.compact {
  width: auto;
  min-height: 38px;
}
.access-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.access-heading h2 {
  font-size: 19px;
  margin: 0;
}
.empty-access {
  padding: 60px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.empty-access h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
}
.empty-access p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
#access-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  margin-top: 20px;
}
.key-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 24px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  min-width: 0;
}
.key-card[data-status='active'] {
  border-color: color-mix(in srgb, var(--pine) 45%, var(--border));
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}
.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
[data-status='active'] .status-pill {
  color: var(--pine);
  background: color-mix(in srgb, var(--pine) 14%, transparent);
}
[data-status='expired'] .status-pill {
  color: var(--muted);
  background: var(--raised);
}
[data-status='revoked'] .status-pill {
  color: var(--error);
  background: color-mix(in srgb, var(--error) 12%, transparent);
}
.key-hours {
  margin: 18px 0 2px;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}
.key-hours span {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-right: 2px;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}
[data-status='expired'] .key-hours span,
[data-status='revoked'] .key-hours span {
  color: var(--muted);
}
.key-plan {
  margin: 0;
  font-size: 13px;
  font-weight: 550;
}
.key-detail {
  margin: 6px 0 20px;
  color: var(--muted);
  font-size: 13px;
}
.key-progress {
  appearance: none;
  width: 100%;
  height: 4px;
  margin: -6px 0 20px;
  border: 0;
  border-radius: 4px;
  background: var(--raised);
  overflow: hidden;
}
.key-progress::-webkit-progress-bar {
  background: var(--raised);
}
.key-progress::-webkit-progress-value {
  background: var(--pine);
}
.key-progress::-moz-progress-bar {
  background: var(--pine);
}
.key-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  align-self: stretch;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.key-bought {
  color: var(--muted);
  font-size: 12px;
}
.key-footer .compact {
  flex-shrink: 0;
  text-decoration: none;
}
.text-link {
  color: var(--primary);
  font-size: 14px;
}
.notice {
  margin: 0 0 28px;
  padding: 14px 18px 14px 40px;
  position: relative;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
  color: var(--muted);
  font-size: 14px;
}
.notice::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 23px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.notice strong {
  color: var(--foreground);
  font-weight: 600;
}
.account-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding-top: 44px;
}
.account-info h2 {
  font-size: 16px;
  letter-spacing: 0;
}
.account-info p,
.account-reference p {
  color: var(--muted);
  font-size: 13px;
}
.account-reference {
  margin-top: 30px;
  font-size: 12px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  width: fit-content;
}
.account-reference p {
  margin: 14px 0 8px;
}
.account-reference code {
  overflow-wrap: anywhere;
}
dialog {
  background: var(--surface);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  width: min(500px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  box-shadow: 0 20px 70px #0005;
}
dialog::backdrop {
  background: #090711aa;
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.dialog-heading h2 {
  margin-top: 5px;
}
dialog > p {
  color: var(--muted);
  font-size: 14px;
}
dialog textarea {
  resize: none;
  overflow-wrap: anywhere;
  font-family: Consolas, monospace;
  font-size: 13px;
  margin-bottom: 16px;
}
.load-error {
  max-width: 480px;
  margin: 100px auto;
}
.load-error h1 {
  font-size: 28px;
  line-height: 1.3;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  padding: 10px;
  background: var(--primary);
  color: var(--background);
  z-index: 20;
}
.skip-link:focus {
  top: 12px;
}
#boot-status {
  margin-top: 90px;
  color: var(--muted);
}
.legal {
  max-width: 70ch;
  margin: 44px auto 80px;
  overflow-wrap: break-word;
}
.legal h1,
.contact h1 {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.legal-updated {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 36px;
}
.legal h2 {
  font-size: 20px;
  margin: 44px 0 12px;
}
.legal h3 {
  font-size: 16px;
  font-weight: 550;
  margin: 28px 0 8px;
}
.legal p,
.legal ul {
  margin-bottom: 16px;
}
.legal ul {
  padding-left: 22px;
}
.legal li {
  margin-bottom: 10px;
}
.legal li::marker {
  color: var(--primary);
}
.legal a {
  color: var(--primary);
}
.legal code {
  font-family: Consolas, monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.contact {
  max-width: 560px;
  margin: 44px auto 80px;
}
.contact textarea {
  resize: vertical;
}
.field {
  margin-bottom: 22px;
}
.optional,
.field-note {
  color: var(--muted);
}
.field-note {
  font-size: 13px;
  margin: 8px 0 0;
}
.contact-status {
  margin: 14px 0 0;
  font-size: 14px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .auth-layout {
    gap: 45px;
    grid-template-columns: 1fr 360px;
  }
  .auth-panel {
    padding-left: 28px;
  }
  .intro > p {
    font-size: 16px;
  }
}
@media (max-width: 700px) {
  .site-header {
    min-height: 60px;
    padding-inline: 6vw;
  }
  .header-right nav a:not([href='/account']) {
    display: none;
  }
  main {
    width: 88vw;
  }
  .auth-layout {
    display: block;
    padding: 30px 0 48px;
    min-height: auto;
  }
  .intro h1 {
    font-size: 38px;
  }
  .intro > p {
    font-size: 15px;
    margin-bottom: 36px;
  }
  .intro-note {
    display: none;
  }
  .auth-panel {
    border: 0;
    padding: 0;
  }
  .footer-inner {
    flex-direction: column;
    gap: 28px;
    padding: 36px 6vw 40px;
  }
  .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
    width: 100%;
  }
  .footer-app {
    grid-column: 1 / -1;
  }
  .account-layout,
  .legal,
  .contact {
    margin-top: 30px;
  }
  .legal h1,
  .contact h1 {
    font-size: 28px;
  }
  .account-heading {
    gap: 12px;
  }
  .account-heading h1 {
    font-size: 28px;
  }
  .account-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .key-card {
    padding: 20px;
  }
  .account-number {
    font-size: 24px;
  }
  .empty-access {
    padding-inline: 0;
  }
}
