:root {
  --font-bitget: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", Arial, sans-serif;
  --aibit-font-bitget: var(--font-bitget);
  --bitget-type-caption: 11px;
  --bitget-type-meta: 12px;
  --bitget-type-body: 14px;
  --bitget-type-strong: 15px;
  --bitget-type-title: 17px;
  --bitget-weight-regular: 500;
  --bitget-weight-medium: 650;
  --bitget-weight-semibold: 760;
  --bitget-weight-bold: 850;
}

:where(html, body, button, input, select, textarea) {
  font-family: var(--font-bitget);
  font-synthesis-weight: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:where(
  .app-shell,
  .app-main,
  .page,
  .auth-shell,
  .dashboard-shell,
  .admin-shell,
  .aibit-admin,
  .profile-sheet,
  .fund-verify-sheet,
  .receive-picker,
  .install-sheet
) {
  font-family: var(--font-bitget) !important;
}

:where(button, input, select, textarea, a, label, small, strong, span, p, h1, h2, h3, h4) {
  letter-spacing: 0;
}

:where(.page-title, .section-head h2, .section-head h3, .profile-detail-head h1) {
  font-size: var(--bitget-type-title);
  font-weight: var(--bitget-weight-bold);
  line-height: 1.25;
}

:where(.coin-name, .market-line .coin-name, .market-card .coin-name, .row-main strong, .receive-option strong) {
  font-size: var(--bitget-type-body);
  font-weight: var(--bitget-weight-bold);
  line-height: 1.25;
}

:where(.pair-sub, .tiny-label, .hot-search-meta, .asset-record-row span, .notice-item span) {
  font-size: var(--bitget-type-caption);
  font-weight: var(--bitget-weight-semibold);
  line-height: 1.35;
}

:where(.price, .market-card .price, .row-side strong, .asset-record-amount strong) {
  font-size: var(--bitget-type-title);
  font-weight: var(--bitget-weight-bold);
  line-height: 1.2;
}

:where(.change, .tag, .tab-btn, .ranking-more-btn, .mini-link) {
  font-size: var(--bitget-type-meta);
  font-weight: var(--bitget-weight-bold);
  line-height: 1.2;
}

:where(.quick-action span:last-child, .feature-shortcut span:last-child, .nav-item) {
  font-size: var(--bitget-type-caption);
  font-weight: var(--bitget-weight-bold);
  line-height: 1.2;
}

:where(
  .function-row,
  .help-row,
  .address-field,
  .kyc-field,
  .fund-label,
  .sheet-field,
  .fund-verify-field,
  .withdraw-row-head strong,
  .withdraw-step-title
) {
  font-size: var(--bitget-type-body);
  font-weight: var(--bitget-weight-semibold);
  line-height: 1.35;
}

:where(
  .address-copy-field,
  .address-input-row input,
  .receive-address-input,
  .sheet-copy-field,
  .sheet-field input,
  .fund-password-input,
  .withdraw-input-field input,
  .coin-select-field,
  .withdraw-select-value
) {
  font-size: var(--bitget-type-body);
  font-weight: var(--bitget-weight-semibold);
  line-height: 1.35;
}

:where(.primary-btn, .secondary-btn, .danger-btn, .trade-submit, .kyc-submit-btn, .sheet-primary-btn, .fund-verify-actions button) {
  font-size: var(--bitget-type-strong);
  font-weight: var(--bitget-weight-bold);
  line-height: 1.2;
}

:where(.profile-sheet-head h2, .fund-verify-head h2, .receive-picker-head h2) {
  font-size: 16px;
  font-weight: var(--bitget-weight-bold);
  line-height: 1.25;
}

:where(.fund-verify-note, .install-sheet p, .favorite-empty p, .about-panel p) {
  font-size: 13px;
  font-weight: var(--bitget-weight-medium);
  line-height: 1.5;
}

:where(.auth-app-card .auth-title) {
  font-size: clamp(36px, 9vw, 42px);
  font-weight: var(--bitget-weight-bold);
  line-height: 1.12;
}

:where(.auth-top-link, .auth-app-card .auth-inline-link) {
  font-size: 20px;
  font-weight: var(--bitget-weight-bold);
  line-height: 1.2;
}

:where(.auth-app-card .field input) {
  font-size: 22px;
  font-weight: var(--bitget-weight-bold);
  line-height: 1.2;
}

:where(.auth-app-card .primary-action) {
  font-size: 24px;
  font-weight: var(--bitget-weight-bold);
  line-height: 1.2;
}

:where(.auth-links .secondary-action, .auth-links a, .dashboard-actions a, .admin-actions a) {
  font-size: 15px;
  font-weight: var(--bitget-weight-semibold);
}

:where(.aibit-admin .brand-text, .aibit-admin .admin-title, .aibit-admin .admin-card h2, .aibit-admin .admin-section h2) {
  font-weight: var(--bitget-weight-bold) !important;
}

:where(.aibit-admin .nav-link, .aibit-admin button, .aibit-admin input, .aibit-admin select, .aibit-admin textarea) {
  font-family: var(--font-bitget) !important;
}

.page-title,
.section-head h2,
.section-head h3,
.profile-detail-head h1 {
  font-size: var(--bitget-type-title) !important;
  font-weight: var(--bitget-weight-bold) !important;
  line-height: 1.25 !important;
}

.coin-name,
.market-line .coin-name,
.market-card .coin-name,
.row-main strong,
.receive-option strong {
  font-size: var(--bitget-type-body) !important;
  font-weight: var(--bitget-weight-bold) !important;
  line-height: 1.25 !important;
}

.pair-sub,
.tiny-label,
.hot-search-meta,
.asset-record-row span,
.notice-item span {
  font-size: var(--bitget-type-caption) !important;
  font-weight: var(--bitget-weight-semibold) !important;
  line-height: 1.35 !important;
}

.price,
.market-card .price,
.row-side strong,
.asset-record-amount strong {
  font-size: var(--bitget-type-title) !important;
  font-weight: var(--bitget-weight-bold) !important;
  line-height: 1.2 !important;
}

.change,
.tag,
.tab-btn:not(.trade-terminal-page .trade-header .tab-btn),
.ranking-more-btn,
.mini-link {
  font-size: var(--bitget-type-meta) !important;
  font-weight: var(--bitget-weight-bold) !important;
  line-height: 1.2 !important;
}

.quick-action span:last-child,
.feature-shortcut span:last-child,
.nav-item {
  font-size: var(--bitget-type-caption) !important;
  font-weight: var(--bitget-weight-bold) !important;
  line-height: 1.2 !important;
}

.function-row,
.help-row,
.address-field,
.kyc-field,
.fund-label,
.sheet-field,
.fund-verify-field,
.withdraw-row-head strong,
.withdraw-step-title {
  font-size: var(--bitget-type-body) !important;
  font-weight: var(--bitget-weight-semibold) !important;
  line-height: 1.35 !important;
}

.address-copy-field,
.address-input-row input,
.receive-address-input,
.sheet-copy-field,
.sheet-field input,
.fund-password-input,
.withdraw-input-field input,
.coin-select-field,
.withdraw-select-value {
  font-size: var(--bitget-type-body) !important;
  font-weight: var(--bitget-weight-semibold) !important;
  line-height: 1.35 !important;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.trade-submit,
.kyc-submit-btn,
.sheet-primary-btn,
.fund-verify-actions button {
  font-size: var(--bitget-type-strong) !important;
  font-weight: var(--bitget-weight-bold) !important;
  line-height: 1.2 !important;
}

.profile-sheet-head h2,
.fund-verify-head h2,
.receive-picker-head h2 {
  font-size: 16px !important;
  font-weight: var(--bitget-weight-bold) !important;
  line-height: 1.25 !important;
}

.fund-verify-note,
.install-sheet p,
.favorite-empty p,
.about-panel p {
  font-size: 13px !important;
  font-weight: var(--bitget-weight-medium) !important;
  line-height: 1.5 !important;
}

.auth-app-card .auth-title {
  font-size: clamp(36px, 9vw, 42px) !important;
  font-weight: var(--bitget-weight-bold) !important;
  line-height: 1.12 !important;
}

.auth-top-link,
.auth-app-card .auth-inline-link {
  font-size: 20px !important;
  font-weight: var(--bitget-weight-bold) !important;
  line-height: 1.2 !important;
}

.auth-app-card .field input {
  font-size: 22px !important;
  font-weight: var(--bitget-weight-bold) !important;
  line-height: 1.2 !important;
}

.auth-app-card .primary-action {
  font-size: 24px !important;
  font-weight: var(--bitget-weight-bold) !important;
  line-height: 1.2 !important;
}

.auth-links .secondary-action,
.auth-links a,
.dashboard-actions a,
.admin-actions a {
  font-size: 15px !important;
  font-weight: var(--bitget-weight-semibold) !important;
}
