@font-face {
  font-family: "VeoLira Inter";
  src: url("/assets/fonts/inter-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "VeoLira Inter";
  src: url("/assets/fonts/inter-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
}
@font-face {
  font-family: "VeoLira SC";
  src: url("/assets/fonts/sc-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "VeoLira SC";
  src: url("/assets/fonts/sc-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: "VeoLira Inter", "VeoLira SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  --bg: #f9f9f7;
  --paper: #fff;
  --ink: #171715;
  --muted: #62625f;
  --line: #e9e9e6;
  --soft: #f1f1ef;
  --contrast: #171715;
  --contrast-text: #fff;
  --live: #d85e57;
  --mark: url("/assets/mark-light.svg");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c0c0d;
    --paper: #171718;
    --ink: #f5f5f2;
    --muted: #a0a09e;
    --line: #303032;
    --soft: #232324;
    --contrast: #f6f6f4;
    --contrast-text: #121212;
    --live: #ff746a;
    --mark: url("/assets/mark-dark.svg");
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0c0d;
  --paper: #171718;
  --ink: #f5f5f2;
  --muted: #a0a09e;
  --line: #303032;
  --soft: #232324;
  --contrast: #f6f6f4;
  --contrast-text: #121212;
  --live: #ff746a;
  --mark: url("/assets/mark-dark.svg");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 1rem; line-height: 1.6; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.55rem); }
h2 { font-size: clamp(1.35rem, 3.7vw, 1.85rem); }
h3 { font-size: 1.15rem; }
p + p { margin-top: .45rem; }
label { display: grid; gap: .35rem; font-weight: 600; }
label input, label select, label textarea { width: 100%; min-width: 0; }
input, select, textarea { color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: .65rem; padding: .63rem .75rem; font-weight: 400; }
textarea { resize: vertical; }
input::placeholder { color: var(--muted); }
progress { accent-color: var(--ink); width: 100%; height: .65rem; }
form { display: grid; gap: 1rem; }
dialog { width: min(calc(100% - 2rem), 28rem); color: var(--ink); padding: 0; }
dialog::backdrop { background: #0007; }
th, td { padding: .8rem .6rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .83rem; font-weight: 600; white-space: nowrap; }
td { font-size: .93rem; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }
table { width: 100%; border-collapse: collapse; }

.skip { position: fixed; left: 1rem; top: -6rem; z-index: 3; padding: .55rem .8rem; background: var(--paper); }
.skip:focus { top: 1rem; }
.shell { width: min(100% - 3.5rem, 77rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.topbar, .footer-row { min-height: 4.7rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.top-links { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.5rem); }
.top-links > a, .footer-row > a { text-decoration: none; }
.top-links > a:not(.button):hover, .footer-row > a:not(.brand):hover { text-decoration: underline; text-underline-offset: .25em; }
.brand { display: inline-flex; align-items: center; gap: .45rem; width: max-content; font-size: 1.32rem; font-weight: 750; letter-spacing: -.035em; text-decoration: none; }
.mark { display: inline-block; width: 2rem; height: 2rem; flex: 0 0 auto; background: var(--mark) center / contain no-repeat; }
.line-icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; width: fit-content; min-height: 2.8rem; padding: .55rem 1rem; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: .68rem; text-decoration: none; line-height: 1.35; font-weight: 650; text-align: center; }
.button:not(:disabled):hover { background: var(--soft); }
.button.primary { background: var(--contrast); color: var(--contrast-text); border-color: var(--contrast); }
.button.primary:not(:disabled):hover { opacity: .86; }
.button.small { min-height: 2.4rem; padding: .45rem .7rem; font-size: .87rem; }
.theme-button { min-width: 2.35rem; min-height: 2.35rem; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 50%; font-size: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.muted { color: var(--muted); }
.small-text { font-size: .86rem; }
.break-word { overflow-wrap: anywhere; }
.panel { border: 1px solid var(--line); background: var(--paper); border-radius: 1rem; }
.padded { padding: clamp(1rem, 3vw, 1.65rem); }
.heading-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.notice { color: var(--ink); background: var(--soft); border-radius: .65rem; padding: .65rem .85rem; font-size: .95rem; overflow-wrap: anywhere; }

.home-page .site-header { background: var(--paper); }
.download-grid, .plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.plans-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.download-card, .plan-card { display: grid; grid-auto-rows: max-content; gap: .62rem; padding: 1.15rem; min-width: 0; }
.plan-card > p, .download-card > p { margin: 0; }
.plan-card .price { font-size: 1.2rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.download-card summary { cursor: pointer; }
.site-footer { border-top: 1px solid var(--line); }

.auth-card { padding: clamp(1.2rem, 4vw, 2rem); }
.auth-card h1 + p, .auth-card .heading-row + p { margin-top: .55rem; }
.auth-card form, .auth-card .actions { margin-top: 1.35rem; }
.auth-card form > .button { width: 100%; }
.account-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .5rem; margin: 1.45rem 0 .75rem; }
.account-data dt { color: var(--muted); font-size: .86rem; }
.account-data dd { font-weight: 700; margin: 0; }
.inset-panel { display: grid; gap: .62rem; background: var(--soft); border-radius: .65rem; padding: .85rem; margin-top: 1rem; }
.device-code { font-size: 1.2rem; letter-spacing: .15em; overflow-wrap: anywhere; }
.coupon { border-top: 1px solid var(--line); margin-top: 1.3rem; padding-top: 1rem; }
.coupon summary { cursor: pointer; font-weight: 600; }

.account-page { min-height: 100vh; display: flex; flex-direction: column; }
.account-page .site-header { background: var(--paper); }
.account-shell {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
  flex: 1;
  align-items: stretch;
  width: min(100% - 3.5rem, 70rem);
  min-height: 38rem;
  margin-block: clamp(2.5rem, 6vw, 4.7rem);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--paper);
  overflow: clip;
  box-shadow: 0 8px 28px #00000007;
}
.account-workspace { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.6rem, 5.7vw, 5rem); min-width: 0; }
.account-status { margin: 0 0 1rem; }
.account-shell .auth-card { width: 100%; padding: 0; }
.account-shell h1 { font-size: clamp(2rem, 4vw, 2.6rem); overflow-wrap: anywhere; }
.account-shell .auth-card form { margin-top: 1.8rem; gap: 1rem; }
.account-shell .account-auth form > .button { min-height: 3.15rem; justify-content: space-between; padding-inline: 1rem; }
.account-auth h1 + p { margin-top: .6rem; }
.account-auth label { font-size: .92rem; gap: .45rem; }
.account-auth label input { height: 3.15rem; background: var(--paper); border-color: var(--line); font-size: 1rem; }
.account-auth label input:focus-visible { outline-offset: 1px; }
.account-auth #auth-description { overflow-wrap: anywhere; }
.account-auth altcha-widget {
  display: block;
  font-size: .89rem;
  --altcha-max-width: 100%;
  --altcha-border-color: var(--line);
  --altcha-border-radius: .65rem;
  --altcha-color-base: var(--bg);
  --altcha-color-base-content: var(--ink);
  --altcha-color-neutral: var(--line);
  --altcha-color-neutral-content: var(--muted);
  --altcha-color-primary: var(--contrast);
  --altcha-color-primary-content: var(--contrast-text);
  --altcha-color-success: var(--contrast);
  --altcha-color-success-content: var(--contrast-text);
  --altcha-checkbox-outline-color: var(--ink);
}
.account-emblem { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.4rem; border-radius: .78rem; border: 1px solid var(--line); background: var(--bg); }
.account-emblem .mark { width: 2.15rem; height: 2.15rem; }
.account-form-note { font-size: .85rem; margin: 0; }
.account-text-button { display: inline-flex; width: fit-content; min-height: 2.75rem; align-items: center; justify-content: center; padding: 0; border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: .22em; text-align: left; font-size: .88rem; }
.account-text-button:hover { color: var(--ink); }
.account-auth .otp-input { color: var(--ink); font-weight: 700; font-size: 1.25rem; letter-spacing: .25em; font-variant-numeric: tabular-nums; }
.account-auth .otp-input::placeholder { opacity: .45; }
.account-preview { display: flex; flex-direction: column; align-items: stretch; justify-content: center; padding: clamp(1.6rem, 5.2vw, 4.5rem); border-left: 1px solid var(--line); background: var(--bg); min-width: 0; gap: 1.6rem; }
.account-preview-copy h2 { font-size: clamp(1.65rem, 3.3vw, 2.25rem); }
.account-preview-copy p { margin-top: .55rem; }
.account-preview-icon { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; background: var(--contrast); color: var(--contrast-text); border-radius: .57rem; }
.account-preview-icon svg { width: 1.13rem; height: 1.13rem; }
.account-caption { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: 0 8px 24px #0000000a; }
.account-caption-title { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .55rem; padding: .9rem 1rem; }
.account-caption-label { border: 1px solid var(--line); color: var(--muted); padding: .1rem .45rem; border-radius: 99px; font-size: .73rem; }
.account-caption-content { padding: .85rem 1rem 1.05rem; border-top: 1px solid var(--line); }
.account-caption-language { display: flex; align-items: center; font-size: .75rem; gap: .35rem; color: var(--muted); }
.account-caption-language img { width: 1.19rem; height: .81rem; border-radius: 2px; }
.account-caption-content p + p { margin-top: .4rem; }
.account-caption-translation { font-weight: 700; }
.account-preview-caption { font-size: .85rem; margin-top: -.65rem; }
.account-identity { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.account-identity h1 { font-size: clamp(1.38rem, 3vw, 1.72rem); }
.account-avatar { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--bg); font-weight: 700; }
#account-email { margin-top: .3rem; font-size: .84rem; }
.account-usage-title { font-size: 1.25rem; margin-top: 1.6rem; margin-bottom: .4rem; }
.account-member .account-data { margin-top: 1.1rem; }
.account-member .inset-panel { margin-top: 1.2rem; }
.account-member .inset-panel h2 { font-size: 1.25rem; }
.account-device-success { margin-top: 1.1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .65rem; font-size: .92rem; background: var(--soft); }
.account-footer { color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.account-footer-content { display: flex; align-items: center; justify-content: space-between; min-height: 3.75rem; }
.account-footer-content a { text-underline-offset: .22em; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.3rem; }
.footer-nav a { color: var(--muted); font-size: .89rem; text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }

@media (max-width: 820px) {
  .account-shell { grid-template-columns: minmax(0, 1fr); max-width: 32rem; }
  .account-preview { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .account-page .account-shell { width: 100%; margin: 0; min-height: 0; border: 0; border-radius: 0; box-shadow: none; align-content: start; }
  .account-workspace { padding: 2.2rem 1.7rem 2.6rem; }
  .account-preview { padding: 2rem 1.7rem; }
  .account-shell:has(.account-member:not([hidden])) .account-preview { display: none; }
  .account-preview .account-caption-content { padding-block: .65rem .8rem; }
  .account-avatar { width: 2.65rem; height: 2.65rem; }
}

@media (max-width: 920px) {
  .plans-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
}
@media (max-width: 740px) {
  .download-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
}
@media (max-width: 530px) {
  .shell { width: calc(100% - 2rem); }
  .topbar, .footer-row { min-height: 4rem; }
  .brand { font-size: 1.12rem; gap: .24rem; }
  .top-links > a:not(.button) { font-size: .82rem; }
  .top-links a[href="#plans"] { display: none; }
  .account-footer-content { flex-wrap: wrap; gap: .35rem; padding-block: .65rem; }
}

.locale-control {
  appearance: auto;
  min-width: 0;
  min-height: 2rem;
  max-width: min(9rem, 27vw);
  padding: .3rem .45rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: .82rem;
}
@media (max-width: 680px) {
  .site-header .topbar { flex-wrap: wrap; }
  [data-site-language] { min-width: 0; max-width: 100%; flex-wrap: wrap; }
}
@media (max-width: 400px) {
  [data-site-language] { gap: .28rem; }
  .locale-control { padding-inline: .2rem; }
}
