:root, .light, .dark {
  --primary: #FE0000;
  --ring: #FE0000;
}
.bg-indigo-600 { background-color: #FE0000 !important; }
.hover\:bg-indigo-500:hover { background-color: #D90000 !important; }
.text-indigo-600 { color: #FE0000 !important; }
.hover\:text-indigo-600:hover { color: #FE0000 !important; }
.links .link .link-title { color: #FE0000 !important; }
.load-more .has-more button { color: #FE0000 !important; }

body.bx-sso-open { overflow: hidden; }
.bx-sso-overlay {
  position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(20, 24, 35, .58); font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif; color: #1f2937;
}
.bx-sso-dialog {
  position: relative; box-sizing: border-box; width: min(560px, 100%); max-height: calc(100dvh - 32px);
  overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 22px 60px rgba(17, 24, 39, .24);
}
.bx-sso-close {
  position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center;
  width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f3f4f6; color: #6b7280;
  font-size: 24px; line-height: 1; cursor: pointer;
}
.bx-sso-close:hover { background: #fee2e2; color: #FE0000; }
.bx-sso-header { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 28px 46px 20px; }
.bx-sso-lock { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 9px; background: #FFE6E6; color: #FE0000; }
.bx-sso-header h2 { margin: 0; color: #1f2937; font-size: 20px; line-height: 1.4; font-weight: 700; }
.bx-sso-header p { margin: 3px 0 0; color: #6b7280; font-size: 13px; line-height: 1.4; }
.bx-sso-tabs { display: flex; border-bottom: 1px solid #e5e7eb; }
.bx-sso-tab {
  position: relative; flex: 1; height: 58px; border: 0; background: #fff; color: #6b7280;
  font: inherit; font-size: 17px; cursor: pointer;
}
.bx-sso-tab[aria-selected="true"] { color: #FE0000; font-weight: 600; }
.bx-sso-tab[aria-selected="true"]::after { position: absolute; right: 31%; bottom: -1px; left: 31%; height: 3px; background: #FE0000; content: ""; }
.bx-sso-tab:hover { color: #FE0000; }
.bx-sso-content { box-sizing: border-box; height: 430px; max-height: calc(100dvh - 220px); overflow-y: auto; padding: 24px 28px 18px; }
.bx-sso-panel { display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; }
.bx-sso-panel[hidden] { display: none !important; }
.bx-sso-lead { margin: 0 0 19px; color: #4b5563; font-size: 17px; text-align: center; }
.bx-sso-qr-wrap { display: grid; place-items: center; flex: none; box-sizing: border-box; width: 240px; height: 240px; padding: 8px; border: 1px solid #e5e7eb; border-radius: 9px; background: #f9fafb; }
.bx-sso-qr { display: block; width: 222px; height: 222px; object-fit: contain; }
.bx-sso-qr[hidden], .bx-sso-qr-placeholder[hidden] { display: none; }
.bx-sso-qr-placeholder { color: #9ca3af; font-size: 18px; }
.bx-sso-countdown { min-height: 24px; margin: 13px 0 3px; color: #6b7280; font-size: 15px; }
.bx-sso-qr-status { min-height: 36px; margin: 0; color: #4b5563; font-size: 13px; line-height: 1.45; text-align: center; }
.bx-sso-refresh { margin-top: 6px; padding: 4px 10px; border: 0; background: transparent; color: #FE0000; font: inherit; font-size: 14px; cursor: pointer; }
.bx-sso-refresh:hover { text-decoration: underline; }
.bx-sso-refresh:disabled { opacity: .5; cursor: wait; }
.bx-sso-password-panel .bx-sso-lead { margin-bottom: 25px; }
.bx-sso-form { display: flex; flex-direction: column; width: min(340px, 100%); }
.bx-sso-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bx-sso-form input {
  box-sizing: border-box; width: 100%; height: 48px; margin-bottom: 20px; padding: 0 15px;
  border: 1px solid #d1d5db; border-radius: 11px; outline: none; background: #fff; color: #1f2937;
  font: inherit; font-size: 15px;
}
.bx-sso-form input:focus { border-color: #FE0000; box-shadow: 0 0 0 3px rgba(254, 0, 0, .1); }
.bx-sso-form input::placeholder { color: #9ca3af; }
.bx-sso-submit { width: 100%; height: 48px; margin-top: 4px; border: 0; border-radius: 11px; background: #FE0000; color: #fff; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.bx-sso-submit:hover:not(:disabled) { background: #D90000; }
.bx-sso-submit:disabled { opacity: .55; cursor: wait; }
.bx-sso-password-status { min-height: 42px; margin: 14px 0 0; color: #b91c1c; font-size: 13px; line-height: 1.45; text-align: center; }
.bx-sso-footer { padding: 0 24px 26px; color: #6b7280; font-size: 15px; text-align: center; }
.bx-sso-footer a { color: #FE0000; text-decoration: none; }
.bx-sso-footer a:hover { text-decoration: underline; }
.bx-sso-dialog button:focus-visible, .bx-sso-dialog a:focus-visible { outline: 2px solid #FE0000; outline-offset: 2px; }
@media (max-width: 480px) {
  .bx-sso-overlay { padding: 10px; }
  .bx-sso-dialog { max-height: calc(100dvh - 20px); }
  .bx-sso-header { padding: 24px 44px 18px 20px; }
  .bx-sso-header h2 { font-size: 17px; }
  .bx-sso-header p { font-size: 11px; }
  .bx-sso-tab { height: 52px; font-size: 15px; }
  .bx-sso-content { height: 410px; max-height: calc(100dvh - 194px); padding: 20px 18px; }
  .bx-sso-qr-wrap { width: 220px; height: 220px; }
  .bx-sso-qr { width: 202px; height: 202px; }
  .bx-sso-footer { padding: 0 18px 20px; font-size: 13px; }
}
