/* Local restore patches. Keep this narrow so Halo theme-alba remains dominant. */

.content-hidden-block {
  display: block !important;
}

.faq-block {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.faq-block h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.1;
}

.faq-item {
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.faq-item h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.faq-item p {
  margin: 0;
}

.download-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(245, 166, 35, 0.32);
  border-radius: 1rem;
  background: rgba(255, 250, 241, 0.9);
}

.download-card a {
  color: #9a5b00;
  font-weight: 700;
}

.download-card span {
  display: block;
  color: #777;
  font-size: 0.85rem;
}

.xw-post--article .consumable-hero {
  padding: clamp(4.5rem, 9vw, 6.25rem) 0 clamp(2.5rem, 6vw, 3.75rem);
  background: #f4f5f7;
}

.xw-post--article .step-container-wide,
.xw-post--article .section-title-box,
.xw-post--article .material-grid,
.xw-post--article .accessory-grid {
  width: min(92%, 1200px);
  margin-right: auto !important;
  margin-left: auto !important;
}

.xw-post--article .step-container-wide {
  text-align: center;
}

.xw-post--article .h1-title {
  margin: 0 0 1.6rem !important;
  color: #111;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #f1890f 0%, #f1890f 10%, #fff 25%, #ffba42 40%, #f1890f 55%, #111 75%, #5d2906 90%, #f1890f 100%);
  background-size: 300% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: apple-flow 18s linear infinite;
}

.xw-post--article .step-desc {
  margin: 0;
  color: #666;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1.65;
}

.xw-post--article .material-section {
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
  background: #f4f5f7;
}

.xw-post--article .section-title-box {
  margin-bottom: 2.5rem;
  text-align: left;
}

.xw-post--article .section-title-box h2 {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin: 0;
  color: #111;
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
}

.xw-post--article .section-title-box h2::before {
  content: "";
  width: 6px;
  height: 1.2em;
  border-radius: 999px;
  background: #f1890f;
}

.xw-post--article .material-grid {
  display: flex;
  gap: 1.875rem;
}

.xw-post--article .material-card {
  position: relative !important;
  flex: 1 1 0;
  height: 520px;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 2rem;
  background: #000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.xw-post--article .material-card img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 0.75;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.xw-post--article .material-card:hover img {
  transform: scale(1.06);
  opacity: 0.9;
}

.xw-post--article .material-overlay {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(1.875rem, 5vw, 3.125rem);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  text-align: left;
}

.xw-post--article .material-overlay h3 {
  margin: 0 0 0.9rem;
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
}

.xw-post--article .material-overlay p {
  margin: 0 0 1rem;
  line-height: 1.55;
}

.xw-post--article .accessory-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  background: #f4f5f7;
}

.xw-post--article .accessory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.55rem;
}

.xw-post--article .accessory-item {
  padding: 2.5rem 1.55rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 1.75rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.xw-post--article .accessory-item:hover {
  transform: translateY(-6px);
  border-color: #f1890f;
  box-shadow: 0 20px 50px rgba(241, 137, 15, 0.12);
}

.xw-post--article .accessory-img-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  margin-bottom: 1.25rem;
}

.xw-post--article .accessory-img-box img {
  max-width: 85%;
  max-height: 85%;
  margin: 0;
  object-fit: contain;
}

.xw-post--article .accessory-item h4 {
  margin: 0 0 0.55rem;
  color: #111;
  font-weight: 800;
  line-height: 1.25;
}

.xw-post--article .accessory-item p {
  margin: 0;
  line-height: 1.5;
}

.xw-post--article .apple-btn {
  position: relative;
  display: inline-block;
  margin-top: 0.95rem;
  overflow: hidden;
  border-radius: 999px;
  color: #fff !important;
  text-decoration: none !important;
}

.xw-post--article .btn-content {
  display: block;
  padding: 0.625rem 1.875rem;
  border-radius: 999px;
  background: #f1890f;
  color: #fff !important;
  font-weight: 800;
}

.xw-post--article .cpd-container {
  width: min(95%, 1200px);
  margin-right: auto;
  margin-left: auto;
  clear: both;
}

.xw-post--article .cpd-comparison-section {
  padding: clamp(5rem, 10vw, 7rem) 0;
  background: #f4f5f7;
}

@keyframes apple-flow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

.migration-index {
  max-width: 1120px;
  margin: 0 auto 5rem;
  padding: 8rem 1rem 0;
}

.migration-index h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.migration-index p {
  color: #666;
}

.migration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.migration-card {
  min-height: 10rem;
  padding: 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.migration-card small {
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.migration-card strong {
  display: block;
  margin-top: 0.65rem;
  color: #111827;
  line-height: 1.35;
}

.migration-card span {
  display: block;
  margin-top: 0.75rem;
  color: #777;
  font-size: 0.86rem;
}

.docs-hub,
.doc-layout,
.login-page {
  background: #f4f5f7;
}

.local-logo-text {
  margin-left: 0.45rem;
  color: #111827;
  font-weight: 800;
  white-space: nowrap;
}

.xw-header--logo-link:has(.local-logo-text) {
  display: inline-flex;
  align-items: center;
}

.xw-header--logo-link:has(.local-logo-text) .xw-header--logo-img {
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
}

.xw-mobile-drawer.is-ready:not(.is-open) {
  pointer-events: none;
  transform: translateX(calc(100% + 1rem));
}

.xw-mobile-drawer.is-ready.is-open {
  pointer-events: auto;
  transform: translateX(0);
}

.docs-hub {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8.5rem 1.25rem 6rem;
}

.docs-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 84% 18%, rgba(245, 166, 35, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff, #eef2f7);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.docs-hero > span {
  color: #f5a623;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-hero h1 {
  margin: 0.8rem 0 1rem;
  color: #0f172a;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.docs-hero h1 span {
  display: inline;
}

.docs-hero p {
  max-width: 760px;
  color: #5f6673;
  font-size: 1.05rem;
  line-height: 1.8;
}

.docs-lang-switch,
.docs-hero-actions,
.doc-lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.docs-lang-switch,
.docs-hero-actions {
  margin-top: 2rem;
}

.docs-search {
  max-width: 560px;
  margin-top: 1rem;
}

.docs-search input {
  width: 100%;
  min-height: 3rem;
  padding: 0 1.05rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #111827;
  font: inherit;
  font-weight: 750;
  outline: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.docs-search input:focus {
  border-color: rgba(245, 166, 35, 0.62);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.12);
}

.docs-search input::placeholder {
  color: #9aa2ad;
}

.docs-lang-switch button,
.docs-hero-actions a,
.doc-lang-switch a,
.doc-lang-switch span,
.doc-lang-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.docs-lang-switch svg,
.doc-lang-switch svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.docs-lang-switch button,
.doc-lang-switch a,
.doc-lang-switch span {
  gap: 0.42rem;
}

.docs-lang-switch button.is-active,
.docs-hero-actions a:first-child,
.doc-lang-switch .is-active {
  background: #111827;
  color: #fff;
}

.docs-lang-switch button:not(.is-active),
.docs-hero-actions a:last-child,
.doc-lang-switch a:not(.is-active),
.doc-lang-switch button:not(.is-active) {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #111827;
}

.docs-hub[data-docs-lang="zh"] [data-docs-copy="en"],
.docs-hub[data-docs-lang="en"] [data-docs-copy="zh"],
.docs-hub[data-docs-lang="zh"] [data-stat-lang="en"],
.docs-hub[data-docs-lang="en"] [data-stat-lang="zh"] {
  display: none;
}

.docs-lang-content[hidden] {
  display: none;
}

.doc-lang-switch .is-disabled {
  background: #eef1f5;
  color: #a0a7b2;
}

.doc-lang-switch em {
  flex-basis: 100%;
  color: #7b8492;
  font-size: 0.82rem;
  font-style: normal;
}

.docs-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 1.2rem 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.08);
}

.docs-stats div {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
}

.docs-stats strong {
  display: block;
  color: #111827;
  font-size: 2rem;
  line-height: 1;
}

.docs-stats span {
  display: block;
  margin-top: 0.45rem;
  color: #7b8492;
  font-weight: 700;
}

.docs-section {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.docs-section h2 {
  margin: 0;
  color: #111827;
  font-size: 1.45rem;
  line-height: 1.2;
}

.docs-section p {
  margin: 0.5rem 0 0;
  color: #8a93a1;
  font-weight: 700;
}

.docs-section > div > span {
  display: inline-flex;
  margin-top: 0.8rem;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: #fff7e8;
  color: #9a5b00;
  font-size: 0.74rem;
  font-weight: 900;
}

.docs-section-toggle {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.docs-hub.is-searching .docs-section-toggle {
  display: none;
}

.docs-section ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-section.is-collapsed .docs-doc-card:nth-child(n+5) {
  display: none;
}

.docs-hub.is-searching .docs-section.is-collapsed .docs-doc-card:nth-child(n+5) {
  display: list-item;
}

.docs-section[hidden],
.docs-doc-card[hidden] {
  display: none !important;
}

.docs-empty {
  margin: 1.25rem 0 0;
  padding: 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  background: #fff;
  color: #7b8492;
  font-weight: 800;
}

.docs-doc-card a {
  display: block;
  min-height: 4.65rem;
  padding: 0.78rem 0.86rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 0.82rem;
  background: #fbfcfd;
  color: #111827;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.docs-doc-card a:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 166, 35, 0.45);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.docs-doc-card small {
  display: block;
  margin-bottom: 0.42rem;
  color: #9aa2ad;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
}

.docs-doc-card strong {
  display: block;
  color: #111827;
  font-size: 0.94rem;
  line-height: 1.24;
}

.docs-pair-card {
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 1rem;
  background: #fbfcfd;
}

.docs-pair-card small {
  display: block;
  margin-bottom: 0.7rem;
  color: #9aa2ad;
  font-size: 0.72rem;
  font-weight: 900;
}

.docs-pair-card > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.docs-pair-link {
  min-width: 0;
  padding: 0.78rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 0.85rem;
  background: #fff;
  color: #111827;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.docs-pair-link:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 166, 35, 0.45);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.docs-pair-link span {
  display: block;
  margin-bottom: 0.42rem;
  color: #9a5b00;
  font-size: 0.74rem;
  font-weight: 900;
}

.docs-pair-link strong {
  display: block;
  color: #111827;
  font-size: 0.92rem;
  line-height: 1.35;
}

.docs-pair-link.is-missing {
  background: #f3f4f6;
  color: #9ca3af;
}

.doc-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.4rem;
  max-width: 1360px;
  margin: 0 auto;
  padding: 7.8rem 1.25rem 5rem;
}

.doc-sidebar {
  position: sticky;
  top: 6.8rem;
  align-self: start;
  max-height: calc(100vh - 8rem);
  overflow: auto;
  padding: 1rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.doc-sidebar-home {
  display: block;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: #111827;
  color: #fff;
  font-weight: 850;
}

.doc-sidebar section + section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.doc-sidebar h3 {
  margin: 0 0 0.55rem;
  color: #9aa2ad;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-sidebar section a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 0.8rem;
  color: #4b5563;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.doc-sidebar section a:hover,
.doc-sidebar section a.is-active {
  background: #fff7e8;
  color: #9a5b00;
}

.doc-article {
  min-width: 0;
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: 1.8rem;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.doc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #8a93a1;
  font-size: 0.85rem;
  font-weight: 800;
}

.doc-breadcrumb > * + *::before {
  content: "/";
  margin-right: 0.5rem;
  color: #c4cad3;
}

.doc-article-header {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.doc-article-header h1 {
  max-width: 900px;
  margin: 0;
  color: #111827;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.doc-prose h1:first-child {
  display: none;
}

.doc-reader {
  display: block;
}

.doc-reader[data-mode="zh"] .doc-pane-en,
.doc-reader[data-mode="en"] .doc-pane-zh {
  display: none;
}

.doc-reader[data-mode="compare"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.doc-pane {
  min-width: 0;
}

.doc-reader[data-mode="compare"] .doc-pane {
  padding: 1.15rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 1.1rem;
  background: #fbfcfd;
}

.doc-pane-label {
  display: none;
}

.doc-reader[data-mode="compare"] .doc-pane-label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.doc-pane-label span {
  color: #9a5b00;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.doc-pane-label strong {
  color: #111827;
  font-size: 1rem;
  line-height: 1.35;
}

.doc-prose img {
  border-radius: 1rem;
}

.gateway-page {
  width: 100%;
  min-height: 100vh;
  overflow: auto;
  background: #fff;
}

.gateway-wrapper,
.gateway-wrapper::before,
.gateway-wrapper::after,
.gateway-wrapper *,
.gateway-wrapper *::before,
.gateway-wrapper *::after {
  box-sizing: border-box;
  border-style: solid;
  border-width: 0;
}

.gateway-wrapper {
  --color-primary: #4ccba0;
  --color-secondary: #0e1731;
  --color-link: #1f75cb;
  --color-text: #374151;
  --color-border: #d1d5db;
  --rounded-sm: 0.125em;
  --rounded-base: 0.25em;
  --rounded-lg: 0.5em;
  --spacing-2xl: 1.5em;
  --spacing-lg: 1em;
  --spacing-sm: 0.625em;
  --text-base: 1em;
  --text-sm: 0.875em;
  width: min(100%, 28em);
  margin: 0 auto;
  padding: 5% 1em;
  color: var(--color-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.halo-logo {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 2em;
}

.halo-logo img {
  width: 30%;
  max-width: 7.5em;
  height: auto;
}

.halo-form-wrapper {
  padding: var(--spacing-2xl);
  border: 1px solid #dfe6ecb3;
  border-radius: var(--rounded-lg);
  background: #fff;
}

.halo-form .form-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: var(--spacing-2xl);
}

.halo-form .form-item[hidden],
.halo-form [hidden] {
  display: none !important;
}

.halo-form .form-item:last-of-type {
  margin-bottom: 0;
}

.halo-form .form-input {
  display: flex;
  grid-column: span 2 / span 2;
  align-items: center;
  height: 2.5em;
  padding: 0 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--rounded-base);
  background: #fff;
}

.halo-form .form-input:focus-within {
  border-color: var(--color-primary);
  outline: 2px solid transparent;
}

.halo-form .form-item input {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: none;
  box-shadow: none;
  color: #111827;
  font: inherit;
  appearance: none;
  outline: none;
}

.halo-form .form-input-stack {
  gap: 0.5em;
}

.halo-form .form-input-stack-icon {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  cursor: pointer;
}

.halo-form .form-item label {
  margin-bottom: 0.75rem;
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: 500;
}

.halo-form .form-label-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75em;
}

.halo-form .form-label-group label {
  margin-bottom: 0;
}

.halo-form .form-item-extra-link,
.signup-notice-content a {
  color: var(--color-link);
  font-size: var(--text-sm);
  text-decoration: none;
}

.halo-form .form-item-compact {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-2xl);
}

.halo-form .form-item-compact label {
  margin: 0;
  color: var(--color-text);
  font-size: var(--text-sm);
}

.halo-form button[type="submit"] {
  width: 100%;
  height: 2.5em;
  border: 0;
  border-radius: var(--rounded-base);
  background: var(--color-secondary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.halo-form button[type="submit"]:hover {
  opacity: 0.82;
}

.halo-form input[type="checkbox"] {
  display: inline-block;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--rounded-sm);
  background-color: #fff;
  color: #2563eb;
  vertical-align: middle;
  appearance: none;
}

.halo-form input[type="checkbox"]:checked {
  border-color: transparent;
  background-color: currentColor;
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.clerk-mount {
  min-height: 10rem;
}

.clerk-mount > div {
  margin: 0 auto;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.auth-tabs button {
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: #64748b;
  font-weight: 800;
  line-height: 2.5rem;
  cursor: pointer;
}

.auth-tabs button.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.auth-mode-summary {
  margin: 0 0 1.2rem;
}

.auth-mode-summary h1 {
  margin: 0 0 0.35rem;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1.35;
}

.auth-mode-summary p {
  margin: 0;
  color: #64748b;
  font-size: var(--text-sm);
  line-height: 1.55;
}

.verification-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  border: 0;
  padding: 0;
}

.verification-input input {
  border: 1px solid var(--color-border);
}

.verification-input button {
  min-width: 6.5rem;
  border: 1px solid #111827;
  border-radius: var(--rounded-base);
  background: #111827;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.verification-input button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.login-status {
  margin: 1em 0 0;
  padding: 0.85em 1em;
  border: 1px solid #fde047;
  border-radius: var(--rounded-base);
  background: #fff7e8;
  color: #9a5b00;
  font-size: var(--text-sm);
  line-height: 1.55;
}

.auth-modal-open {
  overflow: hidden;
}

.auth-challenge-modal[hidden] {
  display: none;
}

.auth-challenge-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.auth-challenge-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}

.auth-challenge-modal__panel {
  position: relative;
  width: min(100%, 25rem);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
  padding: 1.4rem;
}

.auth-challenge-modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.auth-challenge-modal h2 {
  margin: 0 2rem 0.45rem 0;
  color: #0f172a;
  font-size: 1.15rem;
  line-height: 1.35;
}

.auth-challenge-modal p {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: var(--text-sm);
  line-height: 1.55;
}

.auth-challenge-modal__question {
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--rounded-base);
  background: #f8fafc;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 800;
}

.auth-challenge-modal__status {
  margin: 0.75rem 0 0;
  color: #9a5b00;
}

.auth-challenge-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1rem;
}

.auth-challenge-modal__actions button {
  min-height: 2.65rem;
  border-radius: var(--rounded-base);
  font-weight: 800;
  cursor: pointer;
}

.auth-challenge-modal__actions button:first-child {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
}

.auth-challenge-modal__actions button:last-child {
  border: 1px solid #111827;
  background: #111827;
  color: #fff;
}

.auth-challenge-modal__actions button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.signup-notice-content,
.returntosite-content {
  margin: 1em 0;
  color: var(--color-text);
  font-size: var(--text-sm);
  text-align: center;
}

.returntosite-content a {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: var(--color-text);
  text-decoration: none;
}

.language-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin: 2em 0;
}

.language-switcher label {
  display: inline-flex;
  color: var(--color-text);
}

.language-switcher select {
  display: inline-flex;
  align-items: center;
  height: 2em;
  padding: 0 2em 0 0.5em;
  border: 1px solid var(--color-border);
  border-radius: var(--rounded-lg);
  background-color: #fff;
  color: var(--color-text);
  font: inherit;
  font-size: var(--text-sm);
  outline: none;
}

.account-page.doc-layout {
  display: block;
  max-width: 1080px;
}

.account-page .doc-article {
  max-width: none;
}

.account-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: start;
  gap: 1.25rem;
}

.account-card {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.account-card h2 {
  margin: 0 0 1rem;
  color: #0f172a;
  font-size: 1.15rem;
}

.account-card dl {
  margin: 0;
}

.account-card dl div {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eef2f7;
}

.account-card dl div:last-child {
  border-bottom: 0;
}

.account-card dt {
  color: #64748b;
  font-weight: 700;
}

.account-card dd {
  margin: 0;
  color: #0f172a;
  word-break: break-word;
}

.account-card label {
  display: block;
  margin-bottom: 0.85rem;
  color: #334155;
  font-weight: 700;
}

.account-card input {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.4rem;
  padding: 0 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.55rem;
  font: inherit;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.account-actions a,
.account-actions button,
.account-card button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0 1rem;
  border: 1px solid #0f172a;
  border-radius: 0.55rem;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.account-actions button {
  background: #fff;
  color: #0f172a;
}

@media (max-width: 760px) {
  .account-page.doc-layout {
    padding-top: 6.5rem;
  }

  .account-panel {
    grid-template-columns: 1fr;
  }

  .account-card dl div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .account-actions a,
  .account-actions button,
  .account-card button[type="submit"] {
    width: 100%;
  }
}

.admin-permissions .doc-article-header p {
  margin: 0.75rem 0 0;
  color: #5f6673;
  line-height: 1.7;
}

.admin-permissions-panel {
  display: grid;
  gap: 1rem;
}

.admin-permissions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-permissions-actions button {
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid #d7dde6;
  border-radius: 0.45rem;
  background: #111827;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.admin-permissions-actions button:first-child,
.admin-permissions-actions button:last-child {
  background: #fff;
  color: #111827;
}

.admin-permissions textarea {
  width: 100%;
  min-height: 32rem;
  padding: 1rem;
  border: 1px solid #d7dde6;
  border-radius: 0.5rem;
  background: #0f172a;
  color: #dbeafe;
  font: 0.9rem/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  resize: vertical;
}

.static-contact-form {
  display: grid;
  gap: 1.1rem;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  color: #151923;
}

.static-contact-form__head {
  display: grid;
  gap: 0.35rem;
  text-align: left;
}

.static-contact-form__head span {
  color: #f5a623;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.static-contact-form__head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
}

.static-contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.static-contact-form label {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
  color: #5b6370;
  font-size: 0.86rem;
  font-weight: 800;
}

.static-contact-form input,
.static-contact-form select,
.static-contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font: inherit;
  font-weight: 700;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.static-contact-form input,
.static-contact-form select {
  min-height: 3rem;
  padding: 0 0.9rem;
}

.static-contact-form textarea {
  resize: vertical;
  min-height: 8rem;
  padding: 0.85rem 0.9rem;
  line-height: 1.55;
}

.static-contact-form input:focus,
.static-contact-form select:focus,
.static-contact-form textarea:focus {
  border-color: rgba(245, 166, 35, 0.68);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.12);
}

.static-contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.static-contact-form__actions button,
.static-contact-form__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 900;
}

.static-contact-form__actions button {
  border: 0;
  background: #f5a623;
  color: #111827;
  cursor: pointer;
}

.static-contact-form__actions button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.static-contact-form__actions a {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #111827;
}

.static-contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.static-contact-form__turnstile {
  min-height: 65px;
}

.static-contact-form__status {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: #f3f4f6;
  color: #4b5563;
  font-weight: 800;
}

.static-contact-form__status[data-tone="success"] {
  background: #ecfdf3;
  color: #087443;
}

.static-contact-form__status[data-tone="warn"] {
  background: #fff7e8;
  color: #9a5b00;
}

@media (max-width: 900px) {
  .xw-post--article .material-grid,
  .xw-post--article .accessory-grid {
    width: min(92%, 640px);
  }

  .xw-post--article .material-grid {
    flex-direction: column;
  }

  .xw-post--article .material-card {
    flex: none;
    height: 420px;
  }

  .xw-post--article .accessory-grid {
    grid-template-columns: 1fr;
  }

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

  .docs-section,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .docs-section ul,
  .docs-stats,
  .docs-pair-card > div,
  .doc-reader[data-mode="compare"] {
    grid-template-columns: 1fr;
  }

  .doc-sidebar {
    position: static;
    max-height: none;
    order: 2;
  }

  .doc-article {
    order: 1;
  }

  .login-panel {
    grid-template-columns: 1fr;
  }

  .login-copy {
    min-height: auto;
  }

  .static-contact-form__grid {
    grid-template-columns: 1fr;
  }

  .xw-post--article .cpd-container {
    width: min(100% - 2rem, 640px);
  }

  .xw-post--article .cpd-title-box {
    margin-bottom: 1.75rem !important;
  }

  .xw-post--article .cpd-hero-tag {
    letter-spacing: 0.45rem !important;
  }

  .xw-post--article .cpd-section-title {
    align-items: flex-start !important;
    font-size: clamp(1.8rem, 8vw, 2.35rem) !important;
    line-height: 1.18 !important;
  }

  .xw-post--article .cpd-comparison-wrapper {
    width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-radius: 1.4rem !important;
    -webkit-overflow-scrolling: touch;
  }

  .xw-post--article .cpd-comparison-wrapper::before {
    content: "左右滑动查看完整对比";
    position: sticky;
    left: 0;
    z-index: 3;
    display: block;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.88);
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 800;
  }

  .xw-post--article .cpd-comp-table {
    width: max-content !important;
    min-width: 820px !important;
    table-layout: fixed !important;
  }

  .xw-post--article .cpd-th-info {
    width: 150px !important;
    padding: 1.25rem 1rem !important;
  }

  .xw-post--article .cpd-th-label {
    font-size: 0.95rem !important;
    letter-spacing: 0.2rem !important;
  }

  .xw-post--article .cpd-prod-header {
    width: 160px;
    padding: 1.25rem 0.75rem !important;
  }

  .xw-post--article .cpd-prod-img {
    width: 5.5rem !important;
    height: 5.5rem !important;
    margin-bottom: 0.9rem !important;
    border-radius: 1rem !important;
  }

  .xw-post--article .cpd-prod-price {
    font-size: 0.95rem !important;
  }

  .xw-post--article .cpd-prod-name {
    font-size: 1rem !important;
  }

  .xw-post--article .cpd-comp-table td,
  .xw-post--article .cpd-comp-table th {
    padding: 0.9rem 0.75rem !important;
    font-size: 0.88rem !important;
  }

  .xw-post--article .cpd-comp-table td:first-child,
  .xw-post--article .cpd-group-title td {
    padding-left: 1rem !important;
  }

  .xw-post--article .cpd-usp-grid {
    grid-template-columns: 1fr !important;
  }

  .xw-post--article .cpd-usp-card {
    padding: 1.5rem !important;
    border-radius: 1.25rem !important;
  }
}
