@font-face {
  font-family: "Roboto Flex";
  src: url("/fonts/roboto-flex/latin.woff2") format("woff2");
  font-display: swap;
}

:root { color-scheme: dark; font-family: "Roboto Flex", Arial, sans-serif; color: #f4f4f4; background: #131313; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, input, textarea { font: inherit; }
button:disabled, input:disabled { cursor: not-allowed; opacity: .65; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #a595ff; outline-offset: 4px; }

.topbar, footer {
  padding: 17px clamp(16px, 4vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #292929;
}
.topbar img { display: block; width: 144px; height: 22px; }
.topbar nav, footer { display: flex; gap: clamp(11px, 2vw, 24px); align-items: center; }
.topbar nav a, footer { color: #aaa; font-size: .875rem; }
.topbar nav a:hover, .topbar nav a[aria-current], footer a:hover { color: #fff; }
footer { margin-top: auto; border-bottom: 0; border-top: 1px solid #292929; }
main { width: min(1600px, 100%); margin: auto; padding: clamp(28px, 6vw, 70px) clamp(16px, 4vw, 60px) 64px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 4.1rem); letter-spacing: -.04em; line-height: 1.02; }
.filters { display: inline-flex; gap: 3px; border: 1px solid #363636; border-radius: 999px; padding: 4px; }
.filters button, button, .action {
  border: 1px solid #3b3b3b; border-radius: 999px; padding: 9px 15px; color: #f4f4f4; background: #202020; cursor: pointer;
}
.filters button { background: transparent; color: #aaa; border-color: transparent; }
.filters button[aria-pressed="true"], button:hover, .action:hover { color: #fff; background: #313131; }
.primary, .primary:hover { background: #f1f1f1; color: #151515; }
input, textarea {
  background: #1d1d1d;
  border: 1px solid #3a3a3a;
  color: #fff;
  padding: 11px 13px;
  border-radius: 11px;
  min-width: 0;
}
.status { margin: 16px 0; color: #afafaf; font-size: .875rem; min-height: 1.1em; }
.account { margin: 4vh auto; max-width: 420px; background: #1b1b1b; border: 1px solid #343434; padding: clamp(18px, 5vw, 36px); border-radius: 20px; }
.account h1 { font-size: clamp(1.8rem, 5vw, 2.55rem); margin-bottom: 21px; }
.account form { display: grid; gap: 14px; margin-top: 18px; }
.account label { display: grid; gap: 6px; font-size: .9rem; }
.account h2 { font-size: 1.05rem; }
.account .order-price, #private-payment, #private-login { margin-block: 14px; }
.account .action { display: inline-flex; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-google { margin-top: 16px; }
.account-google .google-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  border-color: #8e918f;
  background: #131314;
  color: #e3e3e3;
}
.account-google .google-button:hover:not(:disabled) { background: #202124; }
.account-google p, #license-help, #license-status { color: #b9b9b9; font-size: .875rem; }
.account-google p { margin-top: 8px; }

.account-document {
  --account-border: #343434;
  --account-muted: #b9b9b9;
  --account-focus: #53d887;
}
.account-document .topbar {
  min-height: 80px;
  padding: 12px clamp(16px, 2vw, 24px);
  border-bottom: 0;
}
.account-document .topbar img { width: 112px; height: 28px; object-fit: cover; object-position: left center; }
.account-document .topbar nav a[aria-current] {
  padding: 14px 24px;
  border-radius: 999px;
  background: #252525;
  font-weight: 600;
  white-space: nowrap;
}
.account-document main { margin: 0 auto; padding: clamp(28px, 7vh, 72px) clamp(16px, 4vw, 48px) 48px; }
.account-document :focus-visible { outline-color: var(--account-focus); }
.account-page ::selection { background: var(--account-focus); color: #0c1a12; }
.account-page {
  max-width: 884px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.account-page[data-state="guest"] { max-width: 404px; }
.account-page h1 { margin-bottom: 24px; font-size: 2.5rem; letter-spacing: -.035em; }
.account-page h2 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.02em; }
.account-page p { line-height: 1.48; }
.account-page .status { margin: 16px 0 0; }
.account-page .status:empty { margin: 0; min-height: 0; }

.account-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--account-border);
}
.account-identity > div { min-width: 0; }
#account-user, #account-email { overflow-wrap: anywhere; }
#account-user { font-size: 1.12rem; font-weight: 650; }
#account-email { margin-top: 3px; color: var(--account-muted); font-size: .9rem; }
#account-email:empty { margin: 0; }
.account-page .account-actions button, .account-page .account-actions .action {
  align-items: center;
  min-height: 40px;
  padding: 8px 15px;
  font-size: .88rem;
}

.account-details {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 5vw, 54px);
  margin-top: 26px;
}
.account-credits {
  padding: 21px 23px;
  border: 1px solid var(--account-border);
  border-radius: 16px;
  background: #191919;
}
.account-license { padding-top: 22px; }
#license-wave { position: relative; isolation: isolate; }
#license-wave button, #license-wave #license-status { position: relative; z-index: 2; }
#account-downloads { margin-top: 17px; }
.account-balance + .account-balance, #account-downloads > p { margin-top: 15px; }
.account-balance h3 { margin: 0 0 5px; color: var(--account-muted); font-size: .84rem; font-weight: 550; }
.account-balance dl { margin: 0; }
.account-balance dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--account-border);
}
.account-balance dd { margin: 0; color: var(--account-muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.account-balance strong { color: #f4f4f4; font-weight: 650; }
.account-category-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-top: 11px;
  font-size: .88rem;
  font-weight: 650;
  text-underline-offset: .22em;
}
.account-category-link:hover { text-decoration: underline; }
#license-form { margin-top: 9px; }
#license-status:not(:empty) { margin-top: 9px; }
#license-status[data-confirmed] { color: var(--account-focus); }
.account-page .primary { font-weight: 650; }
.account-page input { caret-color: var(--account-focus); }
.account-page .google-button { min-height: 44px; }

@media (max-width: 660px) {
  .account-details { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .account-license { padding-top: 0; }
}

@media (max-width: 580px) {
  .topbar img { width: 110px; height: 17px; }
  .filters button { padding-inline: 10px; }
  .account-document .topbar { min-height: 64px; gap: 8px; }
  .account-document .topbar img { width: 82px; height: 20px; }
  .account-document .topbar nav { gap: 9px; }
  .account-document .topbar nav a[aria-current] { padding: 10px 14px; }
  .account-document .topbar nav a:first-child { display: none; }
  .account-document main { padding-top: 40px; }
  .account-page h1 { font-size: 2.125rem; margin-bottom: 19px; }
  .account-identity { padding-bottom: 18px; }
  .account-credits { padding: 18px; }
}
