:root {
  color-scheme: light;
  --text: #0a0a0a;
  --muted: #5a5a5c;
  --subtle: #888888;
  --line: #e5e5e5;
  --surface: #ffffff;
  --soft: #f7f7f7;
  --soft-blue: #f2fbf8;
  --primary: #0a0a0a;
  --primary-dark: #1c1c1e;
  --green: #00d4a4;
  --green-deep: #00b48a;
  --code: #1c1c1e;
  --shadow: 0 24px 48px rgba(0, 0, 0, .12);
  --heading-weight: 650;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "HarmonyOS Sans SC",
    "MiSans",
    "Source Han Sans SC",
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans SC",
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: geometricPrecision;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 10px 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
}

.is-scrolled .topbar {
  background: transparent;
  box-shadow: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .is-scrolled .nav,
  .nav:has(.nav-toggle:checked) {
    background: rgba(255, 255, 255, .94);
  }
}

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 8px 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    transform .28s ease;
}

.is-scrolled .nav {
  border-color: rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: url("/assets/logo.png") center / contain no-repeat;
}

.brand-logo {
  display: block;
  width: 146px;
  height: 30px;
  background: url("/assets/logo-horizontal.png") left center / contain no-repeat;
}

.nav-menu {
  display: contents;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #4f5865;
  font-size: 13px;
  font-weight: 500;
}

.nav-links a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(15, 23, 42, .06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.nav-burger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}

.btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease;
}

.btn:hover { border-color: var(--text); }

.btn.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #fff;
}

.btn.accent {
  border-color: var(--green);
  background: var(--green);
  color: var(--primary);
}

.btn.text {
  border-color: transparent;
  background: transparent;
  color: var(--text);
}

.hero {
  position: relative;
  margin-top: -72px;
  padding: 148px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% -10%, rgba(0, 212, 164, .18), transparent 42%),
    radial-gradient(circle at 92% 4%, rgba(21, 50, 74, .10), transparent 46%),
    linear-gradient(180deg, #ffffff 0%, #f4f8f7 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 50, 74, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 50, 74, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 28% 36%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 28% 36%, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero.compact {
  margin-top: -72px;
  padding: 132px 0 56px;
}

.hero.compact .hero-inner {
  text-align: center;
}

.hero.compact h1 {
  font-size: clamp(42px, 7vw, 88px);
  font-weight: var(--heading-weight);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.hero-grid .hero-inner {
  text-align: left;
}

.hero-grid h1 {
  margin: 0 0 24px;
  max-width: none;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.08;
  font-weight: var(--heading-weight);
}

.hero-grid .hero-copy {
  margin: 0;
}

.hero-grid .hero-actions {
  justify-content: flex-start;
}

.hero-trust {
  margin: 28px 0 0;
  color: var(--subtle);
  font-size: 14px;
  font-weight: 500;
}

.hero-trust span {
  color: var(--green-deep);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 212, 164, .18);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

body,
button,
input,
select,
textarea {
  -webkit-text-size-adjust: 100%;
  font-variation-settings: normal;
}

h1 {
  max-width: 980px;
  margin: 0 auto 24px;
  font-size: clamp(40px, 6.5vw, 80px);
  line-height: 1.06;
  font-weight: var(--heading-weight);
}

.hero > .hero-inner > h1 {
  font-size: clamp(40px, 6.7vw, 74px);
  font-weight: var(--heading-weight);
}

.hero-inner h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 44px max(20px, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(10, 10, 10, .04);
  border-bottom: 1px solid rgba(10, 10, 10, .04);
  background: #fbfbfc;
}

.metric {
  padding: 0 18px;
  text-align: center;
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  font-weight: 500;
}

.metric span {
  color: #666d78;
  font-size: 15px;
  line-height: 1.45;
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  font-weight: var(--heading-weight);
}

.section-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.feature-grid,
.store-grid,
.download-grid,
.two-column {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.store-page {
  padding: 54px 0 88px;
}

.store-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.store-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(36px, 5.4vw, 56px);
  line-height: 1.08;
  font-weight: var(--heading-weight);
}

.store-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.store-search {
  min-width: min(360px, 100%);
}

.store-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.store-search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  background: var(--surface);
}

.store-search input:focus {
  outline: 2px solid rgba(0, 212, 164, .26);
  border-color: var(--green);
}

.store-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.store-tabs a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.store-tabs a.active {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.store-tabs span {
  color: inherit;
  opacity: .66;
  font-size: 12px;
}

.store-notice {
  margin-bottom: 24px;
  border: 1px solid #e2e6eb;
  border-radius: 10px;
  padding: 11px 13px;
  color: #5f6672;
  background: #fbfcfd;
  font-size: 14px;
  line-height: 1.6;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.catalog-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.catalog-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  position: relative;
  overflow: hidden;
}

.catalog-thumb::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.catalog-thumb span {
  position: absolute;
  left: 48px;
  right: 48px;
  top: 50%;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 99px;
  background: var(--text);
}

.catalog-thumb span::before,
.catalog-thumb span::after {
  content: "";
  position: absolute;
  left: 0;
  height: 9px;
  border-radius: 99px;
  background: #d8d8d8;
}

.catalog-thumb span::before {
  width: 64%;
  top: 26px;
}

.catalog-thumb span::after {
  width: 42%;
  top: 48px;
}

.theme-thumb {
  background: #f6f3ee;
}

.plugin-thumb {
  background: #eef9f5;
}

.guard-thumb {
  background: #f5f5f5;
}

.catalog-body {
  padding: 18px;
}

.catalog-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.catalog-title a {
  font-size: 18px;
  font-weight: var(--heading-weight);
}

.catalog-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.catalog-body p {
  min-height: 48px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.catalog-links {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 14px;
}

.catalog-links a {
  color: var(--text);
  font-weight: 400;
}

.catalog-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.catalog-tags span,
.catalog-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.catalog-tags a:hover {
  color: var(--text);
  background: #eceff1;
}

.app-detail-hero {
  position: relative;
  margin-top: -72px;
  padding: 132px 0 64px;
  background:
    radial-gradient(circle at 18% -10%, rgba(0, 212, 164, .14), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f5f8f7 100%);
}

.app-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.app-detail-grid h1 {
  margin-left: 0;
  margin-right: 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: var(--heading-weight);
}

.app-detail-grid .hero-copy {
  margin-left: 0;
  max-width: 720px;
}

.store-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.store-back:hover {
  color: var(--text);
}

.store-flash {
  max-width: 640px;
  margin: 18px 0 0;
}

.store-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.store-action-btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 10px;
  padding: 0 13px;
  background: rgba(255, 255, 255, .78);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

.store-action-btn:hover,
.store-action-btn.active {
  border-color: rgba(0, 180, 138, .35);
  background: var(--soft-blue);
  color: var(--green-deep);
}

.app-detail-panel {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  padding: 22px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .06);
}

.app-detail-tags {
  margin-top: 18px;
}

.app-author-card {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.app-author-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
}

.app-author-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
}

.app-author-card p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.app-author-card a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.app-author-card a:hover {
  text-decoration: underline;
}

.license-download-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.license-download-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.license-download-form div {
  display: flex;
  gap: 8px;
}

.license-download-form input,
.checkout-field input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.license-download-form input:focus,
.checkout-field input:focus {
  outline: 2px solid rgba(0, 212, 164, .24);
  border-color: var(--green);
}

.app-detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
}

.detail-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.app-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.app-shot {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 16px;
}

.app-shot-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .96)),
    linear-gradient(135deg, #eef3f1 0%, #f8faf9 100%);
  border: 1px solid var(--line);
  overflow: hidden;
}

.app-shot-visual::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f7f6 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05);
}

.app-shot-visual::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 24px;
  height: 9px;
  border-radius: 99px;
  background: rgba(15, 23, 42, .88);
  box-shadow:
    0 22px 0 rgba(15, 23, 42, .14),
    0 44px 0 rgba(15, 23, 42, .10);
}

.app-shot-visual span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, .08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.app-shot strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
}

.app-shot p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.version-list {
  display: grid;
  gap: 12px;
}

.version-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 18px 20px;
}

.version-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.version-item-head strong {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
}

.version-item-head span,
.version-item-meta {
  color: var(--muted);
  font-size: 13px;
}

.version-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.version-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.comment-panel {
  display: grid;
  gap: 16px;
}

.comment-form,
.comment-login,
.comment-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.comment-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.comment-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.comment-form select,
.comment-form textarea,
.reply-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.comment-form select {
  min-height: 42px;
  padding: 0 12px;
}

.comment-form textarea,
.reply-form textarea {
  min-height: 108px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.65;
}

.comment-form select:focus,
.comment-form textarea:focus,
.reply-form textarea:focus {
  outline: 2px solid rgba(0, 212, 164, .22);
  border-color: var(--green);
}

.comment-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-item {
  padding: 18px;
}

.comment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.comment-head strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.comment-head span,
.comment-rating {
  color: var(--muted);
  font-size: 13px;
}

.comment-rating {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  background: var(--soft);
  white-space: nowrap;
}

.comment-item > p {
  margin: 0;
  color: var(--text);
  line-height: 1.72;
}

.developer-reply {
  margin-top: 14px;
  border-left: 3px solid var(--green);
  border-radius: 0 10px 10px 0;
  background: var(--soft-blue);
  padding: 12px 14px;
}

.developer-reply strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
}

.developer-reply p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.reply-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.reply-form .btn {
  justify-self: start;
}

.related-list {
  display: grid;
  gap: 10px;
}

.related-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  background: #fff;
}

.related-item span,
.related-item small {
  font-weight: 400;
}

.related-item small {
  color: var(--muted);
}

.checkout-page {
  background: #fafafa;
}

.checkout-hero {
  margin-top: -72px;
  padding: 128px 0 34px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.checkout-hero-inner {
  max-width: 860px;
}

.checkout-hero h1 {
  margin-left: 0;
  margin-right: 0;
  font-size: clamp(40px, 6vw, 70px);
}

.checkout-hero .hero-copy {
  margin-left: 0;
  max-width: 680px;
}

.checkout-section {
  padding-top: 28px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 18px;
  align-items: start;
}

.checkout-card,
.checkout-summary {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.checkout-card {
  display: grid;
  gap: 20px;
  padding: 0;
}

.checkout-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 22px;
}

.checkout-card-head > div {
  flex: 1;
}

.checkout-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--soft);
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
}

.checkout-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.checkout-card-head p,
.checkout-summary p,
.order-status-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.checkout-card > .admin-alert,
.checkout-field,
.checkout-pay-box,
.checkout-methods,
.checkout-actions,
.order-status-head,
.order-code-box {
  margin-left: 22px;
  margin-right: 22px;
}

.checkout-card > :last-child {
  margin-bottom: 22px;
}

.checkout-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.checkout-field > span,
.checkout-methods > span,
.checkout-pay-box > span,
.order-code-box > span,
.checkout-lines span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.checkout-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.checkout-field input:focus {
  outline: 2px solid rgba(0, 212, 164, .24);
  border-color: var(--green);
}

.checkout-pay-box {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 10px;
  background: #fbfbfc;
  padding: 12px 14px;
}

.checkout-pay-box strong {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1;
  font-weight: var(--heading-weight);
}

.checkout-methods {
  display: grid;
  gap: 10px;
}

.checkout-method {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--text);
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  padding: 0 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.checkout-method span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: inset 0 0 0 5px var(--text);
}

.checkout-summary {
  padding: 20px;
}

.checkout-summary-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.checkout-summary-head > span,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 212, 164, .28);
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--green-deep);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
}

.checkout-summary-head > strong {
  display: block;
  font-size: 24px;
  line-height: 1.18;
  font-weight: var(--heading-weight);
}

.checkout-lines {
  display: grid;
  gap: 0;
  margin: 16px 0;
}

.checkout-lines div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.checkout-lines div:first-child {
  border-top: 1px solid var(--line);
}

.checkout-lines strong {
  text-align: right;
  font-weight: 600;
}

.order-status-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.order-status-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f2f4f7;
  color: #5f6672;
  font-size: 20px;
  font-weight: 750;
}

.order-status-mark.is-success,
.status-badge.is-success {
  border-color: rgba(0, 212, 164, .38);
  background: var(--soft-blue);
  color: var(--green-deep);
}

.status-badge.is-pending {
  border-color: #e4e7ec;
  background: #f7f7f8;
  color: #5f6672;
}

.order-status-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.order-code-box {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 10px;
  background: #fbfbfc;
  padding: 14px;
}

.order-code-box.is-license {
  border-color: rgba(0, 212, 164, .38);
  background: var(--soft-blue);
}

.order-code-box strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(18px, 3vw, 26px);
  line-height: 1.3;
  word-break: break-all;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a {
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
}

.pagination a.active {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.docs-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 760px);
  gap: 64px;
  padding-top: 54px;
  padding-bottom: 88px;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
}

.docs-sidebar strong {
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 400;
}

.docs-sidebar a {
  min-height: 32px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 10px;
  font-weight: 400;
}

.docs-sidebar a:hover {
  background: var(--soft);
  color: var(--text);
}

.docs-content h1 {
  margin-left: 0;
  margin-right: 0;
}

.docs-content .hero-copy {
  margin-left: 0;
  margin-right: 0;
}

.docs-content code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  padding: 2px 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .92em;
}

.docs-section {
  padding-top: 42px;
}

.docs-section h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: var(--heading-weight);
}

.docs-section p {
  color: var(--muted);
  line-height: 1.72;
}

.timeline {
  max-width: 900px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 36px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.timeline-item h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: var(--heading-weight);
}

.timeline-item p {
  color: var(--muted);
  line-height: 1.72;
}

.timeline-item ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.download-grid,
.two-column {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  align-items: start;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 28px;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 600;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card.highlight {
  border-color: rgba(0, 212, 164, .5);
  background: var(--soft-blue);
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--green);
  color: var(--text);
  font-weight: 400;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.app-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.app-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--soft-blue);
  border: 1px solid rgba(0, 212, 164, .34);
}

.app-card:nth-child(2n) .app-icon {
  background: #fafafa;
  border-color: var(--line);
}

.app-type {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.app-card h3 {
  margin-bottom: 8px;
  font-weight: 600;
}

.app-card p {
  color: var(--muted);
}

.app-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--subtle);
  font-size: 14px;
}

.meta-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.meta-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 400;
}

.meta-item strong {
  color: var(--text);
  text-align: right;
  font-weight: 400;
}

.code-block {
  overflow-x: auto;
  margin: 0;
  border-radius: 8px;
  background: var(--code);
  color: #edf5ff;
  padding: 26px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.85;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
}

.footer .site-shell {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.empty-state {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  color: var(--muted);
  background: var(--soft);
  text-align: center;
}

.admin-body {
  --admin-bg: #f8fafc;
  --admin-surface: #ffffff;
  --admin-soft: #f4f6f8;
  --admin-line: #e3e7ec;
  --admin-line-strong: #d8dde5;
  --admin-text: #16181d;
  --admin-muted: #667085;
  --admin-faint: #8a94a6;
  --admin-accent: #0f766e;
  --admin-accent-soft: #e9f7f3;
  background: var(--admin-bg);
  color: var(--admin-text);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, .96);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-brand {
  min-height: 42px;
  padding: 0 8px;
  font-weight: 650;
}

.admin-side-context {
  display: grid;
  gap: 3px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  padding: 12px;
  background: var(--admin-soft);
}

.admin-side-context strong {
  font-size: 13px;
  line-height: 1.2;
}

.admin-side-context span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 600;
}

.admin-nav {
  display: grid;
  gap: 16px;
  overflow-y: auto;
  padding-right: 2px;
}

.admin-nav-group {
  display: grid;
  gap: 5px;
}

.admin-nav-label {
  padding: 0 10px;
  color: var(--admin-faint);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 22px;
  text-transform: uppercase;
}

.admin-nav a,
.admin-side-foot a,
.admin-topbar-actions a {
  min-height: 38px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  color: #4f5868;
  font-size: 14px;
  font-weight: 600;
}

.admin-nav a {
  position: relative;
}

.admin-nav a::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border: 1px solid #b6beca;
  border-radius: 999px;
  background: #fff;
}

.admin-nav a:hover,
.admin-nav a.active,
.admin-side-foot a:hover,
.admin-topbar-actions a:hover {
  background: var(--admin-soft);
  color: var(--admin-text);
}

.admin-nav a.active::before {
  border-color: var(--admin-accent);
  background: var(--admin-accent);
}

.admin-side-foot {
  margin-top: auto;
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--admin-line);
}

.admin-workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  border-bottom: 1px solid var(--admin-line);
  background: rgba(248, 250, 252, .88);
  padding: 0 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.admin-mobile-brand {
  display: none;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-role-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-main {
  width: min(100%, 1220px);
  padding: 28px;
}

.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.admin-page-head h1 {
  margin: 0 0 7px;
  color: var(--admin-text);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.admin-page-head p {
  max-width: 680px;
  margin: 0;
  color: var(--admin-muted);
  line-height: 1.55;
}

.admin-kicker {
  margin-bottom: 8px !important;
  color: var(--admin-accent) !important;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-stats article,
.admin-panel,
.admin-form-panel,
.admin-login-card {
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-surface);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}

.admin-stats article {
  min-height: 112px;
  padding: 18px;
}

.admin-stats span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-stats strong {
  display: block;
  margin-top: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.admin-panel {
  overflow: hidden;
}

.admin-panel + .admin-panel,
.admin-form-panel + .admin-form-panel {
  margin-top: 16px;
}

.admin-panel-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--admin-line);
  background: #fff;
}

.admin-panel-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.admin-panel-head a,
.admin-panel-head span {
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 650;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  background: #fbfcfd;
  color: var(--admin-faint);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #edf0f3;
  padding: 14px 16px;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: #fbfcfd;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table td strong {
  display: block;
  margin-bottom: 3px;
  color: var(--admin-text);
  font-weight: 700;
}

.admin-table td span {
  color: var(--admin-muted);
  font-size: 13px;
}

.admin-roadmap {
  margin-top: 16px;
}

.admin-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.admin-roadmap-grid article {
  min-height: 132px;
  border-right: 1px solid #edf0f3;
  padding: 18px;
}

.admin-roadmap-grid article:last-child {
  border-right: 0;
}

.admin-roadmap-grid strong {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.admin-roadmap-grid span {
  color: var(--admin-muted);
  font-size: 14px;
  line-height: 1.55;
}

.admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.admin-actions a,
.admin-actions button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--admin-line);
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
  color: var(--admin-text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

.admin-actions a:hover,
.admin-actions button:hover {
  border-color: var(--admin-line-strong);
  background: var(--admin-soft);
}

.admin-actions button {
  color: #b42318;
}

.admin-actions button:not(.danger) {
  color: var(--admin-accent);
}

.admin-alert {
  margin-bottom: 16px;
  border: 1px solid #bfe2d7;
  border-radius: 8px;
  padding: 11px 13px;
  background: #f4fbf8;
  color: #155e51;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.55;
}

.admin-alert.error {
  border-color: #f0c6bd;
  background: #fff7f5;
  color: #a23a2f;
}

.admin-source-note {
  margin: 0 0 16px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  padding: 11px 13px;
  background: #fff;
  color: var(--admin-muted);
  font-size: 14px;
  line-height: 1.55;
}

.admin-source-note strong {
  color: var(--admin-text);
  font-weight: 700;
}

.admin-source-note span {
  margin-left: 8px;
}

.admin-form-panel {
  padding: 22px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-form-panel label,
.admin-login-card label {
  display: grid;
  gap: 8px;
  color: #3f4654;
  font-size: 14px;
  font-weight: 650;
}

.admin-form-panel label > span,
.admin-login-card label > span {
  color: #3f4654;
}

.admin-form-panel input,
.admin-form-panel select,
.admin-form-panel textarea,
.admin-login-card input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--admin-line-strong);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--admin-text);
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.admin-form-panel textarea {
  resize: vertical;
  line-height: 1.6;
}

.admin-form-panel input:focus,
.admin-form-panel select:focus,
.admin-form-panel textarea:focus,
.admin-login-card input:focus {
  outline: 0;
  border-color: #9aa5b1;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, .06);
}

.field-error {
  color: #a73a32;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.admin-wide {
  margin-top: 16px;
}

.seo-settings-form {
  display: grid;
  gap: 16px;
}

.seo-settings-panel {
  display: grid;
  gap: 16px;
}

.seo-panel-title,
.admin-seo-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--admin-line);
}

.seo-panel-title h2 {
  margin: 4px 0 0;
  color: var(--admin-text);
  font-size: 18px;
  line-height: 1.2;
}

.seo-panel-title span,
.admin-seo-block-head span {
  color: var(--admin-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-switch {
  min-height: 36px;
  display: inline-flex !important;
  align-items: center;
  gap: 10px !important;
  color: var(--admin-muted) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.admin-switch input {
  width: 36px !important;
  min-width: 36px;
  height: 20px;
  min-height: 20px !important;
  appearance: none;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0 !important;
  background: #cfd6df !important;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
  cursor: pointer;
}

.admin-switch input::before {
  content: "";
  width: 16px;
  height: 16px;
  display: block;
  margin: 2px;
  border-radius: 50%;
  background: #fff;
  transition: transform .16s ease;
}

.admin-switch input:checked {
  background: var(--admin-accent) !important;
}

.admin-switch input:checked::before {
  transform: translateX(16px);
}

.seo-settings-hint {
  margin: 0;
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.6;
}

.seo-settings-actions {
  margin-top: 0;
}

.admin-seo-block {
  margin-top: 18px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfcfd;
}

.admin-seo-block-head {
  margin-bottom: 16px;
}

.admin-seo-block-head strong {
  color: var(--admin-text);
  font-size: 16px;
  line-height: 1.25;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
}

.admin-login-card {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
}

.admin-login-brand {
  margin-bottom: 2px;
  font-size: 15px;
}

.admin-login-card h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
  font-weight: 700;
}

.admin-login-card button {
  width: 100%;
  min-height: 44px;
  margin-top: 0;
  border-radius: 8px;
}

.admin-login-card button:disabled {
  border-color: #d9dee6;
  background: #eef1f4;
  color: #8b949e;
  cursor: not-allowed;
}

.admin-login-card small {
  display: block;
  margin-top: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.install-card {
  width: min(640px, 100%);
}

.install-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.install-checks span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #dde3ea;
  border-radius: 999px;
  background: #fff;
  color: #4d5560;
  font-size: 13px;
  font-weight: 500;
}

.install-checks .ok {
  border-color: #cfd8e3;
  background: #fff;
  color: #2f6f4f;
}

.install-checks .bad {
  border-color: #f2c6c6;
  background: #fff5f5;
  color: #b42318;
}

.install-section {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #3f4650;
  border-top: 1px solid #eee;
  padding-top: 18px;
}

.install-section + .install-grid,
.install-section + label {
  margin-top: 10px;
}

.install-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.install-grid {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
}

.admin-alert.error > div + div {
  margin-top: 6px;
}

.api-token-value {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  background: #1c1c1c;
  color: #6ee7b7;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  word-break: break-all;
  user-select: all;
}

@media (max-width: 900px) {
  body {
    font-size: 15px;
  }

  .nav {
    position: relative;
    width: min(100%, calc(100vw - 24px));
    gap: 12px;
    min-height: 58px;
    border-radius: 999px;
  }

  .nav-burger {
    display: flex;
    order: 3;
    margin-left: auto;
    border-color: transparent;
    background: transparent;
  }

  .nav-menu {
    display: block;
    order: 4;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 50px rgba(15, 23, 42, .10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .24s ease, opacity .2s ease;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    font-size: 14px;
    font-weight: 400;
  }

  .nav-links a {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 10px;
  }

  .nav-actions {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-actions .btn {
    width: 100%;
    font-weight: 500;
  }

  .nav-toggle:checked ~ .nav-menu {
    max-height: 80vh;
    opacity: 1;
    pointer-events: auto;
  }

  .nav:has(.nav-toggle:checked) {
    border-color: rgba(15, 23, 42, .08);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
  }

  .nav-toggle:checked ~ .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-burger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    margin-top: -74px;
    padding: 112px 0 48px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8f7 100%);
  }

  .hero::after {
    display: none;
  }

  .hero.compact {
    margin-top: -74px;
    padding: 100px 0 42px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-grid .hero-inner,
  .hero-grid h1,
  .hero-grid .hero-copy {
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(34px, 10.8vw, 50px);
    line-height: 1.08;
    font-weight: var(--heading-weight);
  }

  .hero-grid h1 {
    font-size: clamp(28px, 7vw, 38px);
    font-weight: var(--heading-weight);
  }

  .hero-copy {
    max-width: 34rem;
    font-size: 16px;
    line-height: 1.72;
  }

  .eyebrow {
    min-height: 30px;
    margin-bottom: 18px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 400;
  }

  h1 {
    font-size: clamp(34px, 10.8vw, 50px);
    font-weight: var(--heading-weight);
  }

  h2 {
    font-size: clamp(28px, 8vw, 42px);
    line-height: 1.1;
    font-weight: var(--heading-weight);
  }

  .section-note {
    font-size: 16px;
    line-height: 1.7;
  }

  .card h3,
  .catalog-title a,
  .timeline-item h2,
  .docs-section h2,
  .store-heading h1 {
    font-weight: var(--heading-weight);
  }

  .hero-grid .hero-copy {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-grid .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    text-align: center;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
    padding: 34px 18px;
  }

  .metric {
    padding: 6px 10px;
  }

  .metric:nth-child(2n) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .feature-grid,
  .download-grid,
  .two-column,
  .docs-layout,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .docs-layout {
    gap: 26px;
    padding-top: 40px;
    padding-bottom: 68px;
  }

  .docs-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }

  .docs-sidebar strong {
    width: 100%;
  }

  .docs-sidebar a {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
  }

  .store-heading {
    display: block;
  }

  .store-heading h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .store-search {
    margin-top: 20px;
  }

  .store-tabs a {
    border-radius: 10px;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }

  .app-detail-hero {
    margin-top: -74px;
    padding: 104px 0 44px;
  }

  .app-detail-grid,
  .app-detail-content,
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .app-detail-grid h1 {
    font-size: clamp(34px, 10.8vw, 50px);
  }

  .app-detail-panel {
    padding: 18px;
  }

  .checkout-hero {
    margin-top: -74px;
    padding: 104px 0 28px;
  }

  .checkout-card-head {
    padding: 18px;
  }

  .checkout-card > .admin-alert,
  .checkout-field,
  .checkout-pay-box,
  .checkout-methods,
  .checkout-actions,
  .order-status-head,
  .order-code-box {
    margin-left: 18px;
    margin-right: 18px;
  }

  .detail-steps {
    grid-template-columns: 1fr;
  }

  .app-shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .version-item {
    padding: 16px 18px;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--admin-line);
    padding: 10px 14px 12px;
    gap: 10px;
  }

  .admin-side-context,
  .admin-topbar {
    display: none;
  }

  .admin-brand {
    display: flex;
    min-height: 36px;
    padding: 0 2px;
  }

  .admin-side-foot {
    display: flex;
    gap: 8px;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .admin-side-foot a {
    min-height: 34px;
    flex: 1 1 0;
    justify-content: center;
    border: 1px solid var(--admin-line);
    background: #fff;
  }

  .admin-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 2px;
    scrollbar-width: none;
  }

  .admin-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-nav-group {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
  }

  .admin-nav-label {
    display: none;
  }

  .admin-nav a {
    min-height: 36px;
    white-space: nowrap;
    border: 1px solid var(--admin-line);
    background: #fff;
  }

  .admin-nav a::before {
    display: none;
  }

  .admin-main {
    width: 100%;
    padding: 18px;
  }

  .admin-stats,
  .admin-form-grid,
  .admin-roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-roadmap-grid article:nth-child(2n) {
    border-right: 0;
  }

  .admin-roadmap-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid #edf0f3;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    padding: 8px 0;
  }

  .nav {
    min-height: 52px;
    border-radius: 999px;
    padding: 0 8px;
  }

  .brand {
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .nav-burger {
    width: 40px;
    height: 40px;
  }

  .brand-logo {
    width: 132px;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
  }

  .hero-actions .btn {
    flex: 1 1 140px;
    min-width: 0;
    padding: 0 14px;
    white-space: nowrap;
  }

  .hero-media {
    width: min(100% - 20px, 1120px);
    margin-top: 38px;
    border-radius: 16px;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 30px 16px;
  }

  .metric,
  .metric:nth-child(2n),
  .metric:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 0;
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 58px 0;
  }

  .section-head {
    margin-bottom: 26px;
  }

  .card {
    padding: 22px;
  }

  .card h3 {
    font-size: 19px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .store-tabs {
    gap: 7px;
  }

  .store-tabs a {
    min-height: 34px;
    padding: 0 11px;
    font-size: 13px;
  }

  .store-notice {
    margin-bottom: 18px;
  }

  .app-detail-grid .hero-actions .btn {
    flex: 1 1 130px;
  }

  .store-actions-row {
    align-items: stretch;
    flex-direction: column;
  }

  .store-action-btn {
    width: 100%;
  }

  .license-download-form div {
    flex-direction: column;
  }

  .license-download-form .btn {
    width: 100%;
  }

  .related-item {
    align-items: center;
  }

  .admin-login-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100dvh;
    padding: 14px 14px 22px;
  }

  .admin-login-page .admin-login-card {
    margin-top: 0;
    width: min(420px, 100%);
    border-radius: 18px;
    padding: 22px 18px 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .07);
  }

  .admin-login-page .admin-login-card h1 {
    font-size: 26px;
    font-weight: 700;
  }

  .admin-login-page .admin-login-brand {
    margin-bottom: 2px;
  }

  .admin-login-page .admin-login-card input {
    min-height: 46px;
  }

  .admin-form-panel label {
    gap: 7px;
    font-size: 13px;
    font-weight: 650;
  }

  .admin-login-page .admin-login-card button {
    min-height: 46px;
  }

  .install-checks span {
    flex: 1 1 130px;
    justify-content: center;
  }

  .metric strong {
    font-size: clamp(30px, 10vw, 42px);
  }

  .metric span {
    font-size: 13px;
  }

  .app-shot-grid {
    grid-template-columns: 1fr;
  }

  .app-shot {
    padding: 14px;
  }

  .version-item-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .version-item-meta {
    gap: 6px 12px;
  }

  .comment-login,
  .comment-head {
    align-items: stretch;
    flex-direction: column;
  }

  .comment-form,
  .comment-item {
    padding: 16px;
  }

  .admin-page-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
  }

  .admin-page-head h1 {
    font-size: 28px;
  }

  .admin-page-head .btn {
    width: 100%;
  }

  .admin-stats,
  .admin-form-grid,
  .admin-roadmap-grid,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .admin-roadmap-grid article,
  .admin-roadmap-grid article:nth-child(2n),
  .admin-roadmap-grid article:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid #edf0f3;
  }

  .admin-roadmap-grid article:last-child {
    border-bottom: 0;
  }

  .admin-main {
    padding: 14px;
  }

  .admin-stats article {
    min-height: 96px;
    padding: 16px;
  }

  .admin-stats strong {
    font-size: 30px;
  }

  .admin-panel-head {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 15px 16px;
  }

  .seo-panel-title,
  .admin-seo-block-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-form-panel {
    padding: 16px;
  }

  .admin-source-note span {
    display: block;
    margin: 4px 0 0;
  }

  .admin-table-wrap {
    overflow: visible;
  }

  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table tr,
  .admin-table th,
  .admin-table td {
    display: block;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
    background: #fbfcfd;
  }

  .admin-table tbody tr {
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
  }

  .admin-table th,
  .admin-table td {
    border-bottom: 1px solid #edf0f3;
    padding: 11px 12px;
  }

  .admin-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }

  .admin-table td::before {
    content: attr(data-label);
    color: var(--admin-faint);
    font-size: 12px;
    font-weight: 750;
  }

  .admin-table td:last-child {
    border-bottom: 0;
  }

  .admin-table td strong,
  .admin-table td span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .admin-actions {
    min-width: 0;
    align-items: stretch;
  }

  .admin-actions a,
  .admin-actions button {
    justify-content: center;
  }
}
