/* Shared screen typography for the client, legacy account pages and administration.
   Use native CJK sans faces; do not replace icon-font families. */
html:root {
  --ui-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", Arial, sans-serif;
  --serif: var(--ui-font);
}
html body, html .app-shell, html .auth-page, html .site-wrapper {
  font-family: var(--ui-font);
  font-weight: 400;
  letter-spacing: normal;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}
html .app-shell, html .auth-page { line-height: 1.65; }
html button, html input, html textarea, html select, html kbd {
  font-family: var(--ui-font);
  letter-spacing: normal;
}
html h1, html h2, html h3, html h4,
html .app-shell h1, html .app-shell h2, html .app-shell h3, html .app-shell h4,
html .auth-page h1, html .auth-page h2, html .auth-page h3,
html .cover-title h2, html .story-panel h1, html .mobile-title h1,
html .poster-title, html .catalog-hero h1, html .page-intro h1,
html .auth-story h1, html .auth-card h2, html .commerce-header h1 {
  font-family: var(--ui-font);
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.5;
}
html .story-tagline, html .cover-title p, html .mobile-title p,
html .story-description, html .account-vip p {
  font-family: var(--ui-font);
  letter-spacing: normal;
  line-height: 1.8;
}
html .avatar, html .story-kicker .rating, html .rating small,
html .welfare-balance strong, html .reward-total strong {
  font-family: var(--ui-font);
}
html .app-shell strong, html .app-shell b, html .auth-page strong { font-weight: 600; }
html .main-nav a, html .primary-button, html .secondary-button,
html .commerce-tabs button, html .membership-term button,
html .membership-plan>button, html .commerce-pay, html .pack-buy button,
html .welfare-primary, html .welfare-secondary, html .auth-submit,
html .auth-tabs button, html .vip-cta { font-weight: 500; letter-spacing: normal; }
html .commerce-badge { font-weight: 500; }
html .eyebrow, html .auth-kicker, html .commerce-topline,
html .welfare-heading .eyebrow, html .auth-card-footer, html .auth-page-footer {
  letter-spacing: .07em;
  font-weight: 400;
}
html .welfare-heading h1>span, html .vip-banner strong { letter-spacing: normal; }
html .commerce-header h1 { font-size: 30px; }
html .commerce-aside-glow h2 { font-size: 25px; line-height: 1.65; }
html .membership-heading h2 { font-size: 20px; }
html .membership-heading>strong, html .membership-gift strong,
html .pack-buy>strong, html .pack-amount h2, html .bean-balance strong,
html .reward-total strong, html .welfare-balance strong { font-weight: 500; font-variant-numeric: tabular-nums; }
html .commerce-footnote, html .commerce-confirm>p, html .help-list p { line-height: 1.85; }
html .bean-balance button { white-space: nowrap; }
html .auth-story h1 { font-size: 36px; }
html .auth-card h2 { font-size: 25px; }
html .auth-orbit b { font-family: var(--ui-font); font-weight: 500; letter-spacing: 0; font-style: normal; }
/* Supplied logo files are displayed without redrawing or recolouring. */
html .site-header .brand { width: 174px; min-width: 174px; gap: 0; }
html .brand-logo { display: block; width: 174px; height: 58px; object-fit: contain; flex-shrink: 0; }
html .auth-brand { gap: 0; }
html .auth-brand .brand-logo { width: 264px; height: 88px; }
html .brand-footer-logo { display: block; width: 138px; height: 46px; object-fit: contain; }
html .login-art .brand-footer-logo { width: 198px; height: 66px; }
html .hero-seal { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; }
html .hero-seal img { display: block; width: 48px; height: 48px; border-radius: 12px; }
html .hero-seal small { font-family: var(--ui-font); letter-spacing: .04em; }
/* Older account/settings screens share the same face; icon glyphs keep their own. */
html uni-page-body, html uni-view:not([class*="icon"]):not([style*="font-family"]),
html uni-text:not([class*="icon"]):not([style*="font-family"]),
html uni-button, html uni-input, html uni-textarea {
  font-family: var(--ui-font) !important;
}
html.ai18-auth .dlogin, html.ai18-auth .confirm-btn, html .ai18-hero-title, html .ai18-section-title,
html .ai18-business .title, html .ai18-business .ai18-amount-price,
html .ai18-payment-sheet-title { font-family: var(--ui-font) !important; font-weight: 500 !important; letter-spacing: normal !important; }
html #ai18-return { font-family: var(--ui-font); font-weight: 500; }
html .site-wrapper { line-height: 1.6; }
@media (max-width: 680px) {
  html .site-header .brand { width: 138px; min-width: 138px; }
  html .site-header .brand-logo { width: 138px; height: 46px; }
  html .auth-brand .brand-logo { width: 216px; height: 72px; }
  html .catalog-hero h1, html .page-intro h1, html .search-heading h1 { font-size: 25px; line-height: 1.5; }
  html .commerce-header h1, html .welfare-heading h1 { font-size: 26px; }
  html .membership-heading h2 { font-size: 18px; }
  html .membership-heading>strong { font-size: 22px; }
  html .hero-seal img { width: 38px; height: 38px; border-radius: 9px; }
}
