/* ==========================================================================
   ASTERION DEVELOPER PLATFORM — XDS / MINITLIFY EXACT SPECIFICATION
   Strict 1:1 replica of https://docs.x.com/overview design tokens and layout
   ========================================================================== */

:root {
  /* XDS True Monochrome Primitives (from docs.x.com) */
  --x-black: #000000;
  --x-white: #ffffff;
  --x-neutral-000: #f2f2f2;
  --x-neutral-050: #ebebeb;
  --x-neutral-100: #d9d9d9;
  --x-neutral-200: #cccccc;
  --x-neutral-300: #b2b2b2;
  --x-neutral-400: #999999;
  --x-neutral-500: #808080;
  --x-neutral-600: #666666;
  --x-neutral-700: #4d4d4d;
  --x-neutral-800: #333333;
  --x-neutral-900: #262626;
  --x-neutral-1000: #141414;
  --x-neutral-1100: #0d0d0d;

  /* Transparent Alphas */
  --x-white-02: rgba(255, 255, 255, 0.02);
  --x-white-04: rgba(255, 255, 255, 0.04);
  --x-white-06: rgba(255, 255, 255, 0.06);
  --x-white-08: rgba(255, 255, 255, 0.08);
  --x-white-10: rgba(255, 255, 255, 0.10);
  --x-white-15: rgba(255, 255, 255, 0.15);
  --x-white-20: rgba(255, 255, 255, 0.20);
  --x-white-30: rgba(255, 255, 255, 0.30);
  --x-white-40: rgba(255, 255, 255, 0.40);
  --x-white-60: rgba(255, 255, 255, 0.60);

  /* Semantic Theme Tokens */
  --x-bg-primary: #000000;
  --x-bg-secondary: #0d0d0d;
  --x-bg-tertiary: #141414;
  --x-bg-inputs: rgba(255, 255, 255, 0.04);
  --x-bg-modal: #0a0a0a;

  --x-fg-primary: #ffffff;
  --x-fg-secondary: #999999;
  --x-fg-tertiary: #71767b;
  --x-fg-inverted: #000000;

  --x-border-normal: rgba(255, 255, 255, 0.10);
  --x-border-subtle: rgba(255, 255, 255, 0.06);
  --x-border-hover: rgba(255, 255, 255, 0.30);
  --x-border-active: #ffffff;

  --x-hover-subtle: rgba(255, 255, 255, 0.06);
  --x-tile-bg: rgba(255, 255, 255, 0.03);

  /* Functional Accents */
  --x-green-500: #00ba7c;
  --x-green-bg: rgba(0, 186, 124, 0.08);
  --x-green-border: rgba(0, 186, 124, 0.25);
  --x-green-text: #86efac;

  /* Typography Scale */
  --x-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --x-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --x-text-title1: 34px;    --x-leading-title1: 40px;
  --x-text-title2: 30px;    --x-leading-title2: 36px;
  --x-text-title3: 26px;    --x-leading-title3: 32px;
  --x-text-title4: 22px;    --x-leading-title4: 28px;
  --x-text-headline1: 20px; --x-leading-headline1: 24px;
  --x-text-headline2: 17px; --x-leading-headline2: 22px;
  --x-text-body: 15px;      --x-leading-body: 22px;
  --x-text-subtext1: 14px;  --x-leading-subtext1: 20px;
  --x-text-subtext2: 13px;  --x-leading-subtext2: 18px;
  --x-text-subtext3: 11px;  --x-leading-subtext3: 14px;

  /* Radius */
  --x-radius-xs: 4px;
  --x-radius-sm: 8px;
  --x-radius-base: 12px;
  --x-radius-md: 16px;
  --x-radius-lg: 24px;
  --x-radius-full: 9999px;

  /* Dimensions */
  --navbar-height: 48px;
  --sidebar-width: 224px;
  --toc-width: 220px;
  --content-max-width: 800px;

  /* Ecosystem Brand Colors */
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --fury-red: #ff4d5a;
  --cc-gold-1: #FFD56A;
  --cc-gold-2: #F4C049;
  --cc-grad-1: #A78BFA;
  --cc-grad-2: #F472B6;
  --gold-1: #fcd34d;
  --gold-2: #f59e0b;
  --gold-3: #fbbf24;
}

/* ==========================================================================
   Base & Reset — Pure Monochrome Dark (#000000)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: #000000;
  color: #d1d5db;
  font-family: var(--x-font-sans);
  font-size: 15px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #000000;
  background-image: none;
  color: #d1d5db;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Clean Standard Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #404040;
}

a {
  color: var(--x-fg-primary);
  text-decoration: none;
  transition: color 120ms ease;
}

/* ==========================================================================
   Sliding Hover Pill (docs.x.com parity)
   ========================================================================== */
#xds-hover-pill {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  pointer-events: none;
  background: var(--x-hover-subtle);
  border-radius: var(--x-radius-sm);
  opacity: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform, width, height, opacity;
}

html.xds-motion .x-sidebar a:hover,
html.xds-motion .x-sidebar button:hover,
html.xds-motion .x-sidebar-top-item a:hover,
html.xds-motion .x-sidebar-link:hover,
html.xds-motion .x-toc-link:hover,
html.xds-motion .x-nav-pill-item a:hover,
html.xds-motion .x-mobile-drawer .x-sidebar-link:hover {
  background: transparent !important;
}

/* ==========================================================================
   Top Navigation Header (docs.x.com exact match — 48px height)
   ========================================================================== */
.x-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: var(--navbar-height);
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--x-border-normal);
}

.x-header-inner {
  max-width: 1560px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.x-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.x-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--x-fg-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--x-radius-sm);
}

.x-mobile-toggle:hover {
  color: var(--x-fg-primary);
  background: var(--x-white-04);
}

.x-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--x-fg-primary);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.x-logo-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.x-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Product Selector Dropdown Button (X API ▾ style) */
.x-product-selector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--x-border-normal);
  border-radius: var(--x-radius-base);
  background: transparent;
  color: var(--x-fg-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.x-product-selector:hover {
  background: var(--x-white-04);
  border-color: var(--x-border-hover);
}

.x-product-selector svg {
  color: var(--x-fg-tertiary);
  transition: transform 120ms ease;
}

/* Centered Navigation Pills */
.x-header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.x-nav-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.x-nav-pill-item a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--x-radius-full);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--x-fg-secondary);
  text-decoration: none;
  transition: all 120ms ease;
}

.x-nav-pill-item a:hover {
  color: var(--x-fg-primary);
  background-color: var(--x-white-04);
}

.x-nav-pill-item.active a {
  color: var(--x-fg-primary);
  background-color: var(--x-white-08);
  font-weight: 600;
}

/* Right Header Actions */
.x-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language Switcher (RU / EN) — XDS Minimalist Segmented Pill */
.x-lang-switcher {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 2px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  gap: 2px;
  user-select: none;
  flex-shrink: 0;
}

.x-lang-switcher:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.x-lang-btn {
  background: transparent;
  border: none;
  color: var(--x-fg-tertiary);
  font-size: 11px;
  font-family: var(--x-font-sans);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 9999px;
  cursor: pointer;
  line-height: 1;
  transition: all 140ms cubic-bezier(0.4, 0, 0.2, 1);
}

.x-lang-btn:hover {
  color: var(--x-fg-primary);
  background-color: rgba(255, 255, 255, 0.06);
}

.x-lang-btn.active {
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Mobile drawer lang switcher row */
.x-mobile-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.x-mobile-lang-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--x-fg-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pill Search Entry — docs.x.com / Discord Docs Header Button */
.x-search-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 200px;
  height: 34px;
  padding: 0 10px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--x-fg-tertiary);
  font-size: 13px;
  cursor: pointer;
  transition: all 120ms ease;
}

.x-search-pill:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.x-search-pill:hover svg {
  color: #ffffff;
}

.x-kbd-badge {
  font-size: 11px;
  font-family: var(--x-font-sans);
  font-weight: 600;
  color: var(--x-fg-tertiary);
  background: var(--x-black);
  border: 1px solid var(--x-border-normal);
  border-radius: var(--x-radius-xs);
  padding: 1px 5px;
}

/* Outline Support Button */
.x-btn-support {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--x-border-normal);
  border-radius: var(--x-radius-full);
  color: var(--x-neutral-200);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 120ms ease;
}

.x-btn-support:hover {
  color: var(--x-white);
  border-color: var(--x-border-hover);
  background-color: var(--x-white-04);
  text-decoration: none;
}

/* Inverted Solid Primary CTA Button */
.x-btn-primary {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  background-color: var(--x-white);
  color: var(--x-black);
  border-radius: var(--x-radius-full);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 120ms ease;
}

.x-btn-primary:hover {
  opacity: 0.88;
  text-decoration: none;
}

/* ==========================================================================
   Documentation Main 3-Column Layout
   ========================================================================== */
.x-container {
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex: 1;
}

/* Left Sidebar (w-56 / 224px) */
.x-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: calc(100vh - var(--navbar-height));
  position: sticky;
  top: var(--navbar-height);
  overflow-y: auto;
  border-right: 1px solid var(--x-border-normal);
  padding: 20px 12px 48px;
}

.x-sidebar-top-links {
  list-style: none;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--x-border-subtle);
}

.x-sidebar-top-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border-radius: var(--x-radius-sm);
  font-size: 13.5px;
  color: var(--x-fg-secondary);
  text-decoration: none;
  position: relative;
  z-index: 2;
  transition: color 120ms ease;
}

.x-sidebar-top-item a:hover {
  color: var(--x-fg-primary);
}

.x-nav-icon {
  width: 16px;
  height: 16px;
  color: var(--x-fg-tertiary);
  flex-shrink: 0;
  transition: color 120ms ease;
  vertical-align: middle;
  display: inline-block;
}

.x-sidebar-top-item a:hover .x-nav-icon,
.x-sidebar-link:hover .x-nav-icon,
.x-sidebar-link.active .x-nav-icon {
  color: var(--x-fg-primary);
}

.x-sidebar-section {
  margin-bottom: 22px;
}

.x-sidebar-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--x-fg-tertiary);
  margin-bottom: 6px;
  padding-left: 12px;
}

.x-sidebar-list {
  list-style: none;
}

.x-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--x-radius-sm);
  font-size: 13.5px;
  color: var(--x-fg-secondary);
  text-decoration: none;
  position: relative;
  z-index: 2;
  transition: color 120ms ease;
}

.x-sidebar-link:hover {
  color: var(--x-fg-primary);
  text-decoration: none;
}

.x-sidebar-link.active {
  color: var(--x-fg-primary);
  font-weight: 600;
  text-shadow: -0.2px 0 0 currentColor, 0.2px 0 0 currentColor;
  background-color: var(--x-white-08);
}

.x-sidebar-link.active .x-nav-icon {
  color: var(--x-fg-primary);
}

/* Center Documentation Reading Area */
.x-content {
  flex: 1;
  min-width: 0;
  padding: 32px 48px 80px;
  display: flex;
  justify-content: center;
}

.x-article {
  max-width: var(--content-max-width);
  width: 100%;
}

/* Eyebrow label */
.x-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--x-fg-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* Page Header Row (Title + Copy Page button) */
.x-page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.x-page-title {
  font-size: var(--x-text-title1);
  line-height: var(--x-leading-title1);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--x-fg-primary);
}

/* Copy Page Split Button */
.x-copy-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--x-border-normal);
  border-radius: var(--x-radius-base);
  background: transparent;
  color: var(--x-neutral-300);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.x-copy-page-btn:hover {
  background: var(--x-white-04);
  border-color: var(--x-border-hover);
  color: var(--x-white);
}

.x-copy-page-btn.copied {
  color: var(--x-green-500);
  border-color: var(--x-green-border);
}

.x-page-lead {
  font-size: 16px;
  line-height: 24px;
  color: var(--x-fg-secondary);
  margin-bottom: 32px;
}

/* Section Headings */
.x-section-heading {
  position: relative;
  font-size: var(--x-text-title4);
  line-height: var(--x-leading-title4);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--x-fg-primary);
  margin: 38px 0 8px;
  scroll-margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.x-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--x-fg-secondary);
  flex-shrink: 0;
  transition: color 120ms ease;
}

.x-section-heading:hover .x-heading-icon {
  color: var(--x-fg-primary);
}

.x-heading-anchor {
  position: absolute;
  left: -26px;
  opacity: 0;
  color: var(--x-fg-tertiary);
  transition: opacity 120ms ease, color 120ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  text-decoration: none;
}

.x-section-heading:hover .x-heading-anchor,
.x-heading-anchor:focus {
  opacity: 1;
}

.x-heading-anchor:hover {
  color: var(--x-fg-primary);
}

.x-section-desc {
  font-size: var(--x-text-body);
  line-height: 22px;
  color: var(--x-fg-secondary);
  margin-bottom: 20px;
}

/* Dividers */
.x-divider {
  border: 0;
  height: 1px;
  background-color: var(--x-border-normal);
  margin: 36px 0;
}

/* ==========================================================================
   CARDS & GRIDS (docs.x.com exact match — pure black surface, crisp borders)
   ========================================================================== */
.x-cards-grid {
  display: grid;
  gap: 16px;
  margin: 16px 0 24px;
}

.x-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.x-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.x-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #000000;
  border: 1px solid var(--x-border-normal);
  border-radius: var(--x-radius-md);
  padding: 22px 24px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.x-card:hover {
  border-color: var(--x-border-hover);
  background-color: var(--x-white-02);
  text-decoration: none;
}

.x-card-icon {
  width: 24px;
  height: 24px;
  color: var(--x-fg-primary);
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.x-card-icon svg {
  width: 24px;
  height: 24px;
}

.x-card-arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 14px;
  height: 14px;
  color: var(--x-fg-tertiary);
  transition: color 150ms ease, transform 150ms ease;
}

.x-card:hover .x-card-arrow {
  color: var(--x-fg-primary);
  transform: translate(2px, -2px);
}

.x-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--x-fg-primary);
  margin-bottom: 6px;
  line-height: 1.35;
}

.x-card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--x-fg-secondary);
}

/* Banner Card (docs.x.com Get Started featured banner) */
.x-banner-card {
  position: relative;
  background-color: #000000;
  border: 1px solid var(--x-border-normal);
  border-radius: var(--x-radius-md);
  padding: 24px 28px;
  margin: 16px 0 24px;
  overflow: hidden;
  transition: border-color 150ms ease;
}

.x-banner-card:hover {
  border-color: var(--x-border-hover);
}

.x-banner-content {
  position: relative;
  z-index: 2;
  max-width: 80%;
}

.x-banner-icon {
  width: 24px;
  height: 24px;
  color: var(--x-fg-primary);
  margin-bottom: 12px;
}

.x-banner-icon svg {
  width: 24px;
  height: 24px;
}

.x-banner-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--x-fg-primary);
  margin-bottom: 6px;
}

.x-banner-desc {
  font-size: 14px;
  line-height: 22px;
  color: var(--x-fg-secondary);
}

.x-banner-watermark {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 140px;
  height: 140px;
  opacity: 0.06;
  pointer-events: none;
  filter: grayscale(1);
}

.x-banner-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   Callout (XDS Callout Tip)
   ========================================================================== */
.x-callout-tip {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--x-radius-md);
  background-color: var(--x-green-bg);
  border: 1px solid var(--x-green-border);
  margin: 20px 0 28px;
}

.x-callout-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.x-callout-icon svg {
  width: 18px;
  height: 18px;
  color: var(--x-green-500);
}

.x-callout-content {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--x-green-text);
}

.x-callout-content b, .x-callout-content strong {
  color: var(--x-white);
}

/* ==========================================================================
   Code Panels & Interactive Tabs (docs.x.com style)
   ========================================================================== */
.x-code-panel {
  background-color: var(--x-neutral-1000);
  border: 1px solid var(--x-border-normal);
  border-radius: var(--x-radius-md);
  margin: 20px 0 32px;
  overflow: hidden;
}

.x-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 40px;
  background-color: #0d0d0d;
  border-bottom: 1px solid var(--x-border-normal);
}

.x-code-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.x-code-tab {
  background: none;
  border: none;
  font-family: var(--x-font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--x-fg-secondary);
  padding: 0 10px;
  height: 100%;
  cursor: pointer;
  position: relative;
  transition: color 120ms ease;
  display: inline-flex;
  align-items: center;
}

.x-code-tab:hover {
  color: var(--x-fg-primary);
}

.x-code-tab.active {
  color: var(--x-fg-primary);
  font-weight: 600;
}

.x-code-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--x-fg-primary);
}

.x-copy-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--x-fg-secondary);
  font-size: 12px;
  font-family: var(--x-font-sans);
  padding: 4px 8px;
  border-radius: var(--x-radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 120ms ease;
}

.x-copy-btn:hover {
  background: var(--x-white-06);
  color: var(--x-white);
  border-color: var(--x-border-normal);
}

.x-copy-btn.copied {
  color: var(--x-green-500);
}

.x-code-body {
  padding: 16px 20px;
  overflow-x: auto;
  font-family: var(--x-font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: #e6edf3;
  background-color: #050505;
}

.x-code-body pre {
  margin: 0;
}

/* Syntax Highlighting */
.token-cmd { color: #79c0ff; font-weight: 600; }
.token-param { color: #d2a8ff; }
.token-val { color: #a5d6ff; }
.token-comment { color: #71767b; font-style: italic; }
.token-key { color: #7ee787; }
.token-num { color: #ffab70; }

code.x-inline {
  font-family: var(--x-font-mono);
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: var(--x-radius-xs);
  background-color: var(--x-bg-inputs);
  border: 1px solid var(--x-border-normal);
  color: var(--x-neutral-200);
}

/* ==========================================================================
   Data Table (docs.x.com Standard)
   ========================================================================== */
.x-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0 32px;
  border: 1px solid var(--x-border-normal);
  border-radius: var(--x-radius-md);
  background-color: var(--x-black);
}

.x-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.x-table th {
  background-color: #0d0d0d;
  color: var(--x-fg-secondary);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--x-border-normal);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.x-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--x-border-subtle);
  color: var(--x-neutral-300);
  vertical-align: top;
}

.x-table tr:last-child td {
  border-bottom: none;
}

.x-table tbody tr {
  transition: background 120ms ease;
}

.x-table tbody tr:hover td {
  background-color: var(--x-hover-subtle);
}

/* Badges */
.x-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: var(--x-radius-xs);
  font-size: 11px;
  font-family: var(--x-font-mono);
  font-weight: 600;
  border: 1px solid var(--x-border-normal);
  background: var(--x-bg-inputs);
  color: var(--x-neutral-300);
}

.x-badge.staff { border-color: rgba(245, 158, 11, 0.3); color: #fcd34d; background: rgba(245, 158, 11, 0.08); }
.x-badge.admin { border-color: rgba(244, 33, 46, 0.3); color: #fca5a5; background: rgba(244, 33, 46, 0.08); }
.x-badge.public { border-color: rgba(0, 186, 124, 0.3); color: #86efac; background: rgba(0, 186, 124, 0.08); }

/* ==========================================================================
   Page Pagination (Previous / Next)
   ========================================================================== */
.x-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--x-border-normal);
}

.x-pagination-card {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border-radius: var(--x-radius-md);
  border: 1px solid var(--x-border-normal);
  background-color: var(--x-black);
  text-decoration: none;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.x-pagination-card:hover {
  background-color: var(--x-white-04);
  border-color: var(--x-border-hover);
  text-decoration: none;
}

.x-pagination-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--x-fg-tertiary);
  margin-bottom: 4px;
}

.x-pagination-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--x-fg-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.x-pagination-card.next {
  text-align: right;
  align-items: flex-end;
}

/* ==========================================================================
   Right Table of Contents (TOC) — docs.x.com exact match
   ========================================================================== */
.x-toc {
  width: var(--toc-width);
  min-width: var(--toc-width);
  height: calc(100vh - var(--navbar-height));
  position: sticky;
  top: var(--navbar-height);
  overflow-y: auto;
  padding: 32px 16px 48px;
}

.x-toc-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: none;
  letter-spacing: normal;
}

.x-toc-title svg {
  color: #ffffff;
  flex-shrink: 0;
}

.x-toc-list {
  list-style: none;
  position: relative;
  border-left: none;
  padding-left: 0;
}

.x-toc-item {
  margin-bottom: 8px;
  position: relative;
}

.x-toc-item.indent {
  padding-left: 14px;
}

.x-toc-link {
  font-size: 13.5px;
  line-height: 1.45;
  color: #71767b;
  text-decoration: none;
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 16px;
  transition: color 120ms ease;
}

.x-toc-link:hover {
  color: #ffffff;
  text-decoration: none;
}

.x-toc-link.active {
  color: #ffffff;
  font-weight: 700;
}

.x-toc-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.x-toc-link:not(.active)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: transparent;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.x-footer {
  border-top: 1px solid var(--x-border-normal);
  background-color: var(--x-black);
  padding: 36px 24px;
  margin-top: 40px;
}

.x-footer-inner {
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--x-fg-tertiary);
}

.x-footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.x-footer-links a {
  color: var(--x-fg-tertiary);
  text-decoration: none;
}

.x-footer-links a:hover {
  color: var(--x-fg-primary);
}

/* ==========================================================================
   Search Palette Modal (⌘K) — Mintlify / docs.x.com / Discord Docs Parity
   ========================================================================== */
.x-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}

.x-modal-overlay.open {
  display: flex;
}

.x-modal-box {
  width: 100%;
  max-width: 640px;
  background-color: #0b0c0e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  padding: 0;
  animation: xModalFadeIn 140ms ease-out;
}

@keyframes xModalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.x-modal-input-wrapper {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  height: 52px;
  padding: 0 16px;
  gap: 12px;
}

.x-modal-search-icon {
  width: 18px;
  height: 18px;
  color: var(--x-fg-tertiary);
  flex-shrink: 0;
  transition: color 120ms ease;
}

.x-modal-input-wrapper:focus-within .x-modal-search-icon {
  color: var(--x-fg-primary);
}

.x-modal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 15px;
  font-family: var(--x-font-sans);
  letter-spacing: -0.01em;
}

.x-modal-input::placeholder {
  color: var(--x-fg-tertiary);
}

.x-modal-clear-btn {
  background: transparent;
  border: none;
  color: var(--x-fg-tertiary);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color 120ms ease, background 120ms ease;
}

.x-modal-clear-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.x-modal-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.x-modal-category {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--x-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--x-fg-tertiary);
  padding: 10px 10px 4px;
}

.x-modal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: background 120ms ease, border-color 120ms ease;
}

.x-modal-item:hover, .x-modal-item.selected {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.x-modal-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.x-modal-item-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--x-fg-secondary);
  flex-shrink: 0;
  transition: color 120ms ease, border-color 120ms ease;
}

.x-modal-item:hover .x-modal-item-icon-box,
.x-modal-item.selected .x-modal-item-icon-box {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.x-modal-item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.x-modal-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.x-modal-item-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.x-modal-badge {
  font-size: 10px;
  font-family: var(--x-font-mono);
  font-weight: 600;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--x-fg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.x-modal-badge.command {
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.2);
}

.x-modal-badge.admin {
  color: #fcd34d;
  border-color: rgba(252, 211, 77, 0.2);
}

.x-modal-item-desc {
  color: var(--x-fg-tertiary);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.x-modal-item-enter {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--x-fg-tertiary);
  opacity: 0;
  transition: opacity 120ms ease, color 120ms ease;
  flex-shrink: 0;
}

.x-modal-item:hover .x-modal-item-enter,
.x-modal-item.selected .x-modal-item-enter {
  opacity: 1;
  color: var(--x-fg-secondary);
}

.x-modal-highlight {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.x-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  font-size: 12px;
  color: var(--x-fg-tertiary);
}

.x-modal-footer-left, .x-modal-footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.x-modal-footer-text {
  margin-left: 2px;
  margin-right: 8px;
  color: var(--x-fg-tertiary);
  font-size: 11.5px;
}

/* ==========================================================================
   Established Ecosystem Styles & Brand Terms (FuRY, ConCord, Asterion)
   ========================================================================== */
.asterion-gold {
  background: linear-gradient(120deg, var(--gold-1), var(--gold-2), var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 12px rgba(252, 211, 77, 0.55);
  font-weight: 800;
  display: inline-block;
}

.cc-con {
  background: linear-gradient(180deg, var(--cc-gold-1), var(--cc-gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  display: inline-block;
}

.cc-cord {
  background: linear-gradient(90deg, var(--cc-grad-1), var(--cc-grad-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  display: inline-block;
}

.connect-text {
  background: linear-gradient(135deg, #1e40af, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  display: inline-block;
}

.fury-text {
  color: #ff4d5a;
  font-weight: 700;
}

.fury-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fury-chip::before {
  content: '';
  width: 18px;
  height: 18px;
  display: inline-block;
  background: url('assets/FuRYCoin.png') no-repeat center / contain;
  filter: drop-shadow(0 0 6px rgba(255, 77, 90, 0.4));
  vertical-align: middle;
}

.badge-soon {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--mono);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.x-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
  vertical-align: middle;
  margin-left: 8px;
}

.x-status-pill.realise {
  background: rgba(0, 186, 124, 0.14);
  border: 1px solid rgba(0, 186, 124, 0.45);
  color: #86efac;
}

.x-status-pill.alpha {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fcd34d;
}

.kicker {
  color: var(--x-fg-tertiary);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 700;
}

.x-patch-container {
  background: #000000;
  border: 1px solid var(--x-border-normal);
  border-radius: var(--x-radius-md);
  padding: 24px 28px;
  margin: 24px 0 32px;
}

.x-patch-container-header {
  color: var(--x-fg-tertiary);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.x-patch-container-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.x-meta-block {
  background: #000000;
  border: 1px solid var(--x-border-normal);
  border-radius: var(--x-radius-base);
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--x-neutral-300);
}

.x-meta-row {
  margin-bottom: 6px;
}

.x-meta-row:last-child {
  margin-bottom: 0;
}

.x-meta-row strong {
  color: var(--x-fg-primary);
}

/* Media Feed Dot Indicator inside Cards */
.media-badge-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}
.media-badge-dot.twitch { background-color: #9146ff; }
.media-badge-dot.steam { background-color: #6366f1; }
.media-badge-dot.youtube { background-color: #ef4444; }
.media-badge-dot.pulse { background-color: #10b981; }

/* ==========================================================================
   Mobile Responsive Drawer & Media Queries
   ========================================================================== */
.x-mobile-drawer {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
}

.x-mobile-drawer.open {
  display: block;
}

.x-mobile-drawer-content {
  width: 280px;
  height: 100%;
  background-color: #000000;
  border-right: 1px solid var(--x-border-normal);
  padding: 24px 20px;
  overflow-y: auto;
}

.x-mobile-drawer-close {
  background: none;
  border: none;
  color: var(--x-fg-secondary);
  font-size: 24px;
  cursor: pointer;
  float: right;
  margin-bottom: 20px;
  line-height: 1;
}

@media (max-width: 1180px) {
  .x-toc {
    display: none;
  }
  .x-content {
    padding: 32px 36px 80px;
  }
}

@media (max-width: 960px) {
  .x-grid-3 {
    grid-template-columns: 1fr;
  }
  .x-header-center {
    display: none;
  }
}

@media (max-width: 1200px) {
  .x-search-pill {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    border-radius: 8px;
  }
  .x-search-pill .x-search-text,
  .x-search-pill .x-kbd-badge {
    display: none;
  }
}

@media (max-width: 860px) {
  .x-sidebar {
    display: none;
  }
  .x-mobile-toggle {
    display: block;
  }
  .x-content {
    padding: 24px 16px 60px;
  }
  .x-grid-2 {
    grid-template-columns: 1fr;
  }
  .x-btn-support {
    display: none;
  }
  .x-pagination {
    grid-template-columns: 1fr;
  }
  .x-banner-content {
    max-width: 100%;
  }
  .x-banner-watermark {
    display: none;
  }
}

/* ==========================================================================
   Accordion / Expandable Panels (docs.x.com / Mintlify)
   ========================================================================== */
.x-accordion {
  border: 1px solid var(--x-border-normal);
  border-radius: var(--x-radius-md);
  background-color: var(--x-black);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.x-accordion:hover {
  border-color: var(--x-border-hover);
}

.x-accordion[open] {
  border-color: rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.015);
}

.x-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--x-fg-primary);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.x-accordion summary::-webkit-details-marker,
.x-accordion summary::marker {
  display: none;
}

.x-accordion summary::after {
  display: none !important;
  content: none !important;
}


.x-accordion-content {
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--x-fg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 2px;
  padding-top: 14px;
}

/* Stamina meter */
.stam {
  font-family: var(--x-font-mono);
  letter-spacing: 1px;
}
.stam .full {
  color: #86efac;
}

/* Weapon thumbnails */
.x-weapon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border: 1px solid var(--x-border-normal);
}

/* Valentine seasonal event styles */
.x-valentine-box {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.06) 0%, rgba(0, 0, 0, 0.8) 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--x-radius-lg);
  padding: 24px;
  margin-top: 24px;
}

.x-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--x-border-normal);
  border-radius: 9999px;
  font-size: 12px;
  color: var(--x-fg-secondary);
}


/* ==========================================================================
   UNIFIED PATCH CONTAINER & ACCORDION EXPANSIONS (docs.x.com parity)
   ========================================================================== */

.x-patch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--x-border-normal);
}

.x-patch-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.x-patch-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--x-fg-secondary);
}

.x-author-name {
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.x-author-tag {
  font-family: var(--x-font-mono);
  color: var(--x-fg-tertiary);
  font-size: 12px;
}

.x-author-date {
  color: var(--x-fg-muted);
  font-size: 12px;
}

.x-patch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.x-patch-col {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--x-border-normal);
  border-radius: var(--x-radius-sm);
  padding: 16px;
}

.x-patch-col-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.x-patch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--x-fg-secondary);
}

.x-patch-list li {
  margin-bottom: 8px;
  padding-left: 14px;
  position: relative;
}

.x-patch-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--x-fg-tertiary);
}

.x-patch-list li strong {
  color: #ffffff;
}

.x-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.x-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  user-select: none;
}

.x-accordion-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
}

.x-accordion-chevron {
  color: var(--x-fg-tertiary);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
  flex-shrink: 0;
}

.x-accordion:hover .x-accordion-chevron,
.x-accordion summary:hover .x-accordion-chevron {
  color: var(--x-fg-primary);
}

.x-accordion[open] .x-accordion-chevron {
  transform: rotate(180deg);
  color: var(--x-fg-primary);
}

@media (max-width: 768px) {
  .x-patch-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
