/* Native web interpretation of the existing Apple / HarmonyOS-inspired visual language. */
:root {
  color-scheme: light dark;
  --page: #f2f3f4;
  --surface: #fff;
  --soft: #e9ecef;
  --ink: #16181a;
  --muted: #646a70;
  --line: #dce0e3;
  --accent: #a9343e;
  --accent-soft: #f6e8e9;
  --radius: 24px;
  --shadow: 0 12px 40px #26323c0b;
  font-family:
    "SF Pro Display", "SF Pro Text", "HarmonyOS Sans SC", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a:hover {
  color: var(--accent);
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.13;
  margin-bottom: 22px;
}
h2 {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 22px;
}
h3 {
  font-size: 1.17rem;
  line-height: 1.4;
  margin-bottom: 10px;
}
p {
  color: var(--muted);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.wrap {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}
.page {
  padding-top: 50px;
  padding-bottom: 90px;
  min-height: 60vh;
}
.narrow {
  max-width: 820px;
}
.section {
  margin-block: 70px;
}
.sectionhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.sectionhead h2,
.sectionhead h1 {
  margin: 0;
}
.sectionhead p {
  margin-bottom: 7px;
}
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--page) 90%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}
.nav {
  width: min(1376px, calc(100% - 48px));
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 42px;
  margin: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
  color: var(--ink);
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.navlinks a {
  position: relative;
  padding: 8px 0;
}
.navlinks a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
}
.navlinks a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.navtools {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
  font-size: 14px;
}
.navtools select {
  border: 0;
  padding: 7px 2px;
  background: transparent;
  font-size: 14px;
  width: auto;
  min-width: 60px;
}
.sr {
  font-size: 0;
}
.account-link {
  background: var(--ink);
  color: var(--surface);
  padding: 8px 17px;
  border-radius: 30px;
  white-space: nowrap;
}
.account-link:hover {
  color: var(--surface);
  opacity: 0.85;
}
.admin-link {
  font-size: 14px;
  white-space: nowrap;
}
.button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    background 0.18s,
    transform 0.18s;
}
.button:hover {
  background: var(--soft);
  color: var(--ink);
}
.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}
.button.primary:hover {
  filter: brightness(0.92);
}
.full {
  width: 100%;
}
.textlink {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.hero {
  /* Preserve redesign: variance 6, motion 3, density 3. Existing brand tokens and routes stay unchanged. */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  min-height: 490px;
  gap: 0;
  margin-top: 28px;
  padding: 50px 56px;
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  border-radius: 32px;
  background: linear-gradient(115deg, #fafbfc 12%, #eef1f5 76%, #e7ecf1);
  box-shadow: inset 0 1px 0 #ffffffb3;
}
.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.hero h1 {
  font-size: clamp(3.25rem, 4.8vw, 4.5rem);
  font-weight: 620;
  line-height: 1.16;
  letter-spacing: -0.045em;
  margin-bottom: 0;
}
.hero h1 > span {
  display: block;
}
.hero-title-accent {
  color: var(--accent);
}
html[lang="en"] .hero h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  letter-spacing: -0.055em;
}
.hero p {
  font-size: 17px;
  line-height: 1.85;
  max-width: 24em;
  margin: 26px 0 30px;
  text-wrap: pretty;
}
.hero-cta {
  min-height: 52px;
  padding: 13px 24px;
  gap: 24px;
  box-shadow: 0 6px 18px #a9343e1a;
}
.hero-cta span {
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.2s;
}
.hero-cta:hover span {
  transform: translate(2px, -2px);
}
.hero-cta:active {
  transform: scale(0.98);
}
.hero-visual {
  position: absolute;
  inset: -20px -75px -20px 36%;
  pointer-events: none;
  mask-image: radial-gradient(
    ellipse 70% 68% at 56% 50%,
    #000 30%,
    #000b 50%,
    transparent 78%
  );
}
.hero img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.hero + .section {
  margin-top: 44px;
}
.discovery-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 42px;
}
.discovery-sidebar,
.catalog-sidebar {
  position: sticky;
  top: 108px;
  min-width: 0;
}
.discovery-products,
.catalog-results {
  min-width: 0;
}
.discovery-label {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.02em;
}
.discovery-sidebar nav,
.catalog-categories {
  display: grid;
  gap: 4px;
}
.discovery-sidebar nav a,
.catalog-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.18s;
}
.discovery-sidebar nav a:hover,
.catalog-categories a:hover,
.catalog-categories a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
}
.catalog-categories a[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--accent);
}
.discovery-sidebar small,
.catalog-categories small {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.discovery-links,
.catalog-sidebar-links {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.discovery-links a,
.catalog-sidebar-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}
.discovery-products .sectionhead {
  align-items: flex-end;
}
.discovery-products .sectionhead p {
  max-width: 38em;
  margin: -10px 0 0;
}
.platform-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.platform-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 600;
  font-size: 14px;
  background: var(--surface);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.product-grid.featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.product-card {
  position: relative;
  min-width: 0;
  min-height: 280px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
}
.product-grid.featured .product-card:first-child {
  background: linear-gradient(
    145deg,
    var(--surface),
    color-mix(in srgb, var(--soft) 72%, var(--surface))
  );
}
.product-grid.featured .product-card:last-child {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent-soft) 35%, var(--surface)),
    var(--surface)
  );
}
.product-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}
.product-arrow {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 16px;
  transition:
    transform 0.2s,
    color 0.2s,
    background 0.2s;
}
.product-card:hover .product-arrow,
.platform-card:hover .product-arrow {
  transform: translate(2px, -2px);
  background: var(--ink);
  color: var(--surface);
}
.product-card h3 {
  font-size: 22px;
  margin: 12px 0;
}
.product-card h3 a::after,
.platform-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.product-card h2 {
  font-size: 24px;
}
.product-card p {
  font-size: 15px;
  line-height: 1.7;
  flex: 1;
}
.product-card .textlink {
  margin-top: 15px;
}
.product-card-action {
  margin-top: 17px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
}
.product-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--soft);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 24px;
}
.product-card-top .product-mark {
  margin-bottom: 22px;
}
.mark-chatgpt {
  background: #dfece7;
  color: #215d48;
}
.mark-claude {
  background: #f1dfd2;
  color: #875436;
}
.mark-gemini {
  background: #e4eaf7;
  color: #416191;
}
.mark-grok {
  background: #26292d;
  color: white;
}
.meta {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.fine {
  font-size: 13px;
  line-height: 1.7;
}
.guide-band {
  background: var(--surface);
  border-radius: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 55px;
}
.guide-band h2 {
  max-width: 12em;
}
.guide-band p {
  max-width: 31em;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
}
.steps li {
  display: flex;
  gap: 22px;
}
.steps span {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}
.steps h3 {
  margin: 0 0 5px;
}
.steps p {
  margin: 0;
  font-size: 14px;
}
.support-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 36px 8px;
}
.support-band p {
  margin: 0;
}
.footer {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 42px 0 25px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 26px;
}
.footer .brand {
  font-size: 22px;
}
.footer p {
  font-size: 14px;
}
.footerlinks {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: start;
  font-size: 14px;
}
.footer .fine {
  grid-column: 1/-1;
  font-size: 12px;
}
.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 40px;
}
.catalog-head {
  max-width: 720px;
  margin-bottom: 44px;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 42px;
}
.catalog-results {
  min-width: 0;
}
.catalog-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.catalog-toolbar h2,
.catalog-toolbar p {
  margin-bottom: 0;
}
.catalog-toolbar .search {
  width: min(440px, 54%);
}
.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.catalog-grid .product-card {
  min-height: 270px;
}
.platform-head {
  margin-bottom: 52px;
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.platform-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px;
  min-height: 190px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.platform-card:nth-child(4n + 2),
.platform-card:nth-child(4n + 3) {
  background: color-mix(in srgb, var(--soft) 44%, var(--surface));
}
.platform-card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
}
.platform-card .product-mark {
  margin: 0;
}
.platform-card h2 {
  margin: 5px 0 8px;
  font-size: 24px;
}
.platform-card p {
  margin: 0;
  font-size: 14px;
}
.pagehead {
  margin-bottom: 35px;
  max-width: 780px;
}
.pagehead p {
  font-size: 18px;
}
.search {
  display: flex;
  gap: 10px;
  max-width: 630px;
}
.search input {
  min-width: 0;
  flex: 1;
}
.filters {
  display: flex;
  gap: 10px;
  margin: 28px 0 20px;
  overflow: auto;
  padding: 4px 0;
}
.filters a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  white-space: nowrap;
}
.filters a[aria-current] {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.product-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 85px;
  margin-bottom: 70px;
}
.product-intro h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.1rem);
}
.product-intro .product-mark {
  height: 80px;
  width: 80px;
  font-size: 29px;
  border-radius: 24px;
}
.product-story > .product-mark {
  margin-bottom: 28px;
}
.lead {
  font-size: 22px;
  color: var(--ink);
}
.prose {
  max-width: 72ch;
}
.prose p {
  line-height: 1.9;
  white-space: normal;
  overflow-wrap: anywhere;
}
.purchase-panel {
  position: sticky;
  top: 108px;
  align-self: start;
  background: var(--surface);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.purchase-panel h2 {
  font-size: 22px;
}
.plan {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.plan-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.plan-heading h3,
.plan-heading p {
  margin-bottom: 4px;
}
.price {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 650;
  color: var(--ink);
  margin: 22px 0;
}
.plan-heading .price {
  flex: 0 0 auto;
  margin: 0;
  font-size: 27px;
  text-align: right;
}
.purchase-empty {
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
}
.detail-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.detail-highlights div {
  padding: 19px 20px 19px 0;
}
.detail-highlights div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.detail-highlights strong,
.detail-highlights span {
  display: block;
}
.detail-highlights strong {
  margin-bottom: 4px;
  font-size: 14px;
}
.detail-highlights span {
  color: var(--muted);
  font-size: 13px;
}
.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 60px;
  max-width: none;
  padding: 45px;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.detail-content h2 {
  margin-top: 0;
}
.detail-copy .textlink,
.detail-faq .textlink {
  margin-top: 18px;
}
.related-section {
  margin-bottom: 0;
}
.faq {
  margin: 25px 0;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 21px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
}
.faq p {
  margin: 14px 0 0;
}
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.panel h1 {
  font-size: 36px;
}
.panel h2 {
  font-size: 24px;
}
.panel h3 {
  font-size: 20px;
}
.record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  margin: 16px 0;
}
.record p {
  margin-bottom: 5px;
}
.record > div:last-child {
  text-align: right;
}
.record .textlink {
  display: block;
  margin-top: 10px;
}
.empty {
  text-align: center;
  padding: 55px 25px;
  color: var(--muted);
  background: var(--surface);
  border-radius: 24px;
}
.notice {
  padding: 20px;
  border-radius: 16px;
  background: var(--accent-soft);
  font-size: 15px;
  margin: 20px 0;
  overflow-wrap: anywhere;
}
.notice p:last-child {
  margin-bottom: 0;
}
form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 20px 0;
  font-size: 14px;
  font-weight: 550;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px 14px;
  font-size: 16px;
  width: 100%;
  outline-offset: 2px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
input[readonly] {
  background: var(--soft);
  color: var(--muted);
}
textarea {
  resize: vertical;
  min-height: 105px;
}
fieldset {
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 16px;
}
.choice {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  flex-wrap: wrap;
  font-weight: 400;
}
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.choice a {
  text-decoration: underline;
}
.form-error {
  color: var(--accent);
  font-size: 14px;
  min-height: 22px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 15px;
  z-index: 100;
  background: var(--surface);
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.sr {
  display: flex;
  align-items: center;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--surface);
  padding: 15px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 60;
  max-width: 90vw;
  display: none;
  font-size: 14px;
}
#toast.visible {
  display: block;
}
.admin-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  max-width: 1600px;
  margin: auto;
}
.sidebar {
  padding: 30px 20px;
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  overflow: auto;
  border-right: 1px solid var(--line);
}
.sidebar > a {
  display: block;
  padding: 11px 16px;
  border-radius: 12px;
  margin: 4px 0;
  font-size: 14px;
}
.sidebar > a[aria-current] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 650;
}
.sidebar .meta {
  padding: 0 16px;
}
.sidebar .backstore {
  margin-top: 25px;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.admin-main {
  padding: 38px;
  min-width: 0;
}
.admin-main h1 {
  font-size: 30px;
}
.admin-main > .sectionhead {
  align-items: flex-start;
}
.admin-page .navlinks {
  display: none;
}
.admin-page .footer {
  margin-top: 35px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 25px 0;
}
.stats article {
  padding: 24px;
  background: var(--surface);
  border-radius: 20px;
}
.stats span {
  color: var(--muted);
  font-size: 14px;
}
.stats strong {
  display: block;
  font-size: 36px;
  margin-top: 10px;
}
.admin-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.admin-cards .panel {
  margin: 0;
}
.rowlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.rowlink:last-child {
  border: 0;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 20px;
}
.toolbar .search {
  flex: 1;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  white-space: nowrap;
}
th,
td {
  padding: 17px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}
th {
  background: var(--soft);
  font-weight: 550;
  color: var(--muted);
}
tbody tr:hover {
  background: color-mix(in srgb, var(--soft) 45%, transparent);
}
tbody tr:last-child td {
  border-bottom: 0;
}
.pagination {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin: 25px;
}
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 25px;
}
.editor-grid .wide {
  grid-column: 1/-1;
}
.editor-grid label {
  min-width: 0;
}
.editor-grid [data-telegram-card][hidden] {
  display: none;
}
.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.detail-list div {
  min-width: 0;
}
.detail-list dt {
  font-size: 13px;
  color: var(--muted);
}
.detail-list dd {
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.checklist > div {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 15px;
}
.checklist strong {
  min-width: 60px;
  font-size: 13px;
}
.checklist small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}
.ok {
  color: #247452;
}
.warn {
  color: var(--accent);
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #151618;
    --surface: #222427;
    --soft: #2e3135;
    --ink: #f0f1f3;
    --muted: #afb5bd;
    --line: #3a3e43;
    --accent: #e7838c;
    --accent-soft: #3b282d;
    --shadow: 0 12px 40px #0002;
  }
  .button.primary {
    background: #b94350;
    border-color: #b94350;
  }
  .hero {
    background: linear-gradient(115deg, #23262b 12%, #202731 78%, #28313c);
    box-shadow: inset 0 1px 0 #ffffff0a;
  }
  .hero img {
    mix-blend-mode: luminosity;
    opacity: 0.76;
  }
  .mark-chatgpt {
    background: #24463a;
    color: #bedccd;
  }
  .mark-claude {
    background: #584030;
    color: #eed8c6;
  }
  .mark-gemini {
    background: #2f3e5d;
    color: #d4dff5;
  }
  .ok {
    color: #86d4b0;
  }
}
@media (min-width: 1600px) {
  .hero {
    min-height: 510px;
  }
}
@media (max-width: 1100px) {
  .nav {
    gap: 22px;
  }
  .navlinks {
    gap: 15px;
  }
  .product-grid.featured {
    grid-template-columns: repeat(2, 1fr);
  }
  .discovery-shell,
  .catalog-layout {
    gap: 28px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .platform-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero {
    padding: 42px 38px;
    min-height: 450px;
    grid-template-columns: 1.15fr 1fr;
  }
  .product-intro {
    gap: 40px;
  }
  .detail-content {
    gap: 38px;
  }
  .admin-main {
    padding: 25px;
  }
  .admin-layout {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .wrap,
  .footer {
    width: calc(100% - 36px);
  }
  .nav {
    width: calc(100% - 28px);
    gap: 15px;
    min-height: 68px;
  }
  .navlinks {
    display: none;
  }
  .navtools {
    gap: 8px;
  }
  .navtools select {
    min-width: 52px;
    font-size: 13px;
  }
  .account-link {
    padding: 7px 12px;
    font-size: 13px;
  }
  .brand {
    font-size: 21px;
  }
  .hero {
    min-height: 400px;
    padding: 36px 30px;
    margin-top: 20px;
    grid-template-columns: 1.2fr 1fr;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 3.4rem);
  }
  html[lang="en"] .hero h1 {
    font-size: clamp(2rem, 3.9vw, 2.8rem);
  }
  .hero p {
    font-size: 16px;
    margin: 20px 0 24px;
  }
  .hero-visual {
    inset: 0 -80px 0 31%;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .discovery-shell,
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .discovery-sidebar,
  .catalog-sidebar {
    position: static;
  }
  .discovery-sidebar nav,
  .catalog-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 8px;
    scrollbar-width: none;
  }
  .discovery-sidebar nav::-webkit-scrollbar,
  .catalog-categories::-webkit-scrollbar {
    display: none;
  }
  .discovery-sidebar nav a,
  .catalog-categories a {
    flex: 0 0 auto;
    gap: 10px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
  }
  .catalog-categories a[aria-current="page"] {
    box-shadow: none;
    background: var(--ink);
    color: var(--surface);
    border-color: var(--ink);
  }
  .catalog-categories a[aria-current="page"] small {
    color: inherit;
  }
  .discovery-links,
  .catalog-sidebar-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
    padding-top: 16px;
  }
  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .catalog-toolbar .search {
    width: 100%;
    max-width: none;
  }
  .platform-grid {
    grid-template-columns: 1fr;
  }
  .guide-band {
    padding: 32px;
    gap: 35px;
    grid-template-columns: 1fr;
  }
  .product-intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .purchase-panel {
    position: static;
    width: 100%;
  }
  .detail-content {
    grid-template-columns: 1fr;
    padding: 34px;
  }
  .section {
    margin-block: 50px;
  }
  .footer {
    grid-template-columns: 1fr;
  }
  .footerlinks {
    justify-content: flex-start;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    display: flex;
    overflow: auto;
    padding: 12px 18px;
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .meta,
  .sidebar .backstore {
    display: none;
  }
  .sidebar > a {
    white-space: nowrap;
    margin: 0;
    padding: 7px 12px;
  }
  .admin-main {
    padding: 24px 18px;
  }
  .admin-main > .sectionhead {
    flex-direction: column;
    gap: 12px;
  }
  .admin-cards {
    grid-template-columns: 1fr;
  }
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .toolbar .search {
    max-width: none;
  }
  .admin-link {
    display: none;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .editor-grid .wide {
    grid-column: auto;
  }
}
@media (max-width: 520px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
    padding: 32px 24px 0;
    margin-top: 16px;
    border-radius: 26px;
  }
  .hero h1 {
    font-size: clamp(2.45rem, 10.7vw, 3.25rem);
    line-height: 1.17;
  }
  html[lang="en"] .hero h1 {
    font-size: clamp(1.5rem, 7.1vw, 2.25rem);
  }
  .hero-visual {
    position: relative;
    inset: auto;
    width: calc(100% + 48px);
    height: 210px;
    margin: -4px -24px 0;
    mask-image: radial-gradient(
      ellipse 65% 69% at 54% 49%,
      #000 35%,
      transparent 80%
    );
  }
  .hero img {
    object-fit: contain;
    object-position: center;
  }
  .hero p {
    max-width: 23em;
    margin: 18px 0 22px;
    font-size: 15px;
  }
  .hero-cta {
    min-height: 48px;
    padding: 11px 21px;
  }
  .hero + .section {
    margin-top: 34px;
  }
  .platform-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .platform-strip a {
    min-height: 49px;
  }
  .product-grid,
  .product-grid.featured {
    grid-template-columns: 1fr;
  }
  .product-card {
    padding: 25px;
    min-height: 210px;
  }
  .product-card .product-mark {
    margin-bottom: 16px;
  }
  .sectionhead {
    gap: 16px;
  }
  .discovery-products .sectionhead {
    align-items: flex-start;
    flex-direction: column;
  }
  .discovery-links,
  .catalog-sidebar-links {
    grid-template-columns: 1fr;
  }
  .sectionhead h2 {
    font-size: 23px;
  }
  .sectionhead .textlink {
    white-space: nowrap;
    font-size: 13px;
  }
  .support-band {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .footerlinks {
    gap: 15px 22px;
  }
  .record {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .record > div:last-child {
    text-align: left;
  }
  .panel,
  .purchase-panel {
    padding: 24px;
  }
  .platform-card {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 0;
    padding: 23px;
  }
  .platform-card > .product-arrow {
    display: none;
  }
  .platform-card .product-mark {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 18px;
  }
  .catalog-head,
  .platform-head {
    margin-bottom: 34px;
  }
  .catalog-toolbar .search {
    flex-wrap: nowrap;
  }
  .catalog-toolbar .search input {
    flex-basis: auto;
  }
  .detail-highlights {
    grid-template-columns: 1fr;
  }
  .detail-highlights div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .detail-content {
    gap: 36px;
    padding: 26px;
    border-radius: 24px;
  }
  .plan-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .plan-heading .price {
    text-align: left;
  }
  .detail-list {
    grid-template-columns: 1fr;
  }
  .page {
    padding-top: 30px;
  }
  .stats {
    gap: 12px;
  }
  .stats article {
    padding: 18px;
  }
  .toolbar .search {
    flex-wrap: wrap;
  }
  .toolbar .search input {
    flex-basis: 100%;
  }
  .brand-mark {
    width: 26px;
    height: 26px;
    font-size: 17px;
  }
  .navtools {
    gap: 5px;
  }
  .nav {
    gap: 10px;
  }
  .nav .brand {
    font-size: 18px;
  }
  .navtools select {
    padding: 6px 0;
    min-width: 47px;
    font-size: 12px;
  }
  .account-link {
    font-size: 12px;
    padding: 7px 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .header {
    background: var(--page);
    backdrop-filter: none;
  }
}
:is([data-recharge-root], [data-checkout]) [hidden] {
  display: none !important;
}
.recharge-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0;
  margin: 0 0 1.4rem;
  list-style: none;
}
.recharge-steps li {
  border-top: 2px solid currentColor;
  padding-top: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.65;
}
.recharge-steps li[aria-current="step"] {
  font-weight: 700;
  opacity: 1;
}
.recharge-panel code, [data-recharge-reference] {
  overflow-wrap: anywhere;
}
.recharge-panel [data-recharge-form="renewal"] {
  margin-top: 1.5rem;
}
.recharge-history { padding: 0; list-style: none; }
.recharge-history li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
}
