/* TicketRally Help — semantic CSS, no Tailwind build required. */
@font-face {
  font-family: "Recoleta Medium";
  src: url("/assets/Recolata_Medium.a9b23bfee8.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #18181b;
  --body: #47474f;
  --muted: #9199a8;
  --line: rgba(24, 24, 27, .09);
  --line-strong: rgba(24, 24, 27, .14);
  --sidebar-width: 288px;
  --brand-violet: #6d5dfc;
  --brand-pink: #d9349a;
  --brand-orange: #ff7a32;
}

html.dark {
  --bg: #09090b;
  --surface: #09090b;
  --text: #f4f4f5;
  --body: #d2d2d8;
  --muted: #9099aa;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .13);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
a { color: inherit; }
[x-cloak] { display: none !important; }
svg { display: block; }

.site-body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.brand-gradient { background: linear-gradient(135deg, var(--brand-violet), var(--brand-pink) 52%, var(--brand-orange)); }

/* Premium glass sidebar from v22. */
.help-sidebar {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(520px 340px at -8% -4%, rgba(255,255,255,.96) 0%, rgba(255,255,255,.56) 34%, transparent 68%),
    radial-gradient(430px 310px at 108% 17%, rgba(151,130,255,.045) 0%, rgba(151,130,255,.014) 46%, transparent 72%),
    radial-gradient(430px 330px at 105% 80%, rgba(84,193,255,.030) 0%, rgba(84,193,255,.008) 50%, transparent 74%),
    linear-gradient(165deg, rgba(255,255,255,.84) 0%, rgba(249,249,251,.76) 42%, rgba(246,247,249,.72) 100%);
  backdrop-filter: blur(30px) saturate(132%);
  -webkit-backdrop-filter: blur(30px) saturate(132%);
  box-shadow:
    inset -1px 0 rgba(255,255,255,.76),
    inset 1px 0 rgba(255,255,255,.22),
    inset 0 1px rgba(255,255,255,.92),
    10px 0 34px rgba(24,24,27,.026);
}
.help-sidebar::before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    118deg,
    rgba(255,255,255,.56) 0%,
    rgba(255,255,255,.19) 21%,
    transparent 38%,
    transparent 69%,
    rgba(255,255,255,.11) 83%,
    rgba(255,255,255,.32) 100%
  );
  opacity: .88;
}
.help-sidebar::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 5;
  inset-block: 0;
  right: -1px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.92) 0%,
    rgba(151,130,255,.15) 23%,
    rgba(84,193,255,.12) 49%,
    rgba(211,87,184,.08) 73%,
    rgba(255,255,255,.68) 100%
  );
  box-shadow:
    -1px 0 rgba(255,255,255,.48),
    1px 0 rgba(24,24,27,.035);
  opacity: .56;
}
.dark .help-sidebar {
  background:
    radial-gradient(520px 340px at -8% -4%, rgba(255,255,255,.055) 0%, rgba(255,255,255,.018) 36%, transparent 68%),
    radial-gradient(430px 310px at 108% 17%, rgba(123,97,255,.14) 0%, rgba(123,97,255,.045) 46%, transparent 72%),
    radial-gradient(430px 330px at 105% 80%, rgba(55,177,255,.09) 0%, rgba(55,177,255,.025) 50%, transparent 74%),
    linear-gradient(165deg, rgba(20,20,25,.91) 0%, rgba(13,14,18,.89) 48%, rgba(10,10,14,.91) 100%);
  box-shadow:
    inset -1px 0 rgba(255,255,255,.035),
    inset 1px 0 rgba(255,255,255,.018),
    inset 0 1px rgba(255,255,255,.04),
    10px 0 36px rgba(0,0,0,.12);
}
.dark .help-sidebar::before {
  background: linear-gradient(
    118deg,
    rgba(255,255,255,.032) 0%,
    rgba(255,255,255,.010) 22%,
    transparent 39%,
    transparent 69%,
    rgba(255,255,255,.008) 84%,
    rgba(255,255,255,.018) 100%
  );
  opacity: 1;
}
.dark .help-sidebar::after {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.15) 0%,
    rgba(132,105,255,.35) 23%,
    rgba(83,181,255,.29) 49%,
    rgba(214,84,179,.22) 73%,
    rgba(255,255,255,.10) 100%
  );
  box-shadow:
    -1px 0 rgba(255,255,255,.018),
    1px 0 rgba(0,0,0,.22);
  opacity: .74;
}

.desktop-sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar-width); display: flex; flex-direction: column;
  border-right: 1px solid rgba(228,228,231,.7);
}
.dark .desktop-sidebar { border-right-color: rgba(255,255,255,.075); }
.sidebar-brand {
  position: relative;
  isolation: isolate;
  padding: 28px 24px 20px;
}
.sidebar-brand::before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
  left: -28px;
  top: -30px;
  width: 210px;
  height: 118px;
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,.82) 0%,
    rgba(255,255,255,.27) 40%,
    transparent 72%
  );
  filter: blur(19px);
  opacity: .70;
}
.dark .sidebar-brand::before {
  background: radial-gradient(
    ellipse at center,
    rgba(139,116,255,.11) 0%,
    rgba(255,255,255,.024) 42%,
    transparent 72%
  );
  opacity: 1;
}

.brand-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: auto; height: 36px; object-fit: contain; }
.brand-title { font-size: 24px; font-weight: 650; letter-spacing: -.04em; }

.search-trigger {
  width: 100%; height: 40px; margin-top: 24px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border: 1px solid #e4e4e7; border-radius: 12px; background: #fff; color: #71717a; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.02); transition: border-color .15s, background .15s, color .15s;
}
.search-trigger:hover { border-color: #d4d4d8; background: #fff; color: #3f3f46; }
.dark .search-trigger { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.035); color: #a1a1aa; }
.dark .search-trigger:hover { border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.05); color: #e4e4e7; }
.search-trigger svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-trigger span { flex: 1; text-align: left; font-size: 14px; }
.search-trigger kbd { border: 1px solid #e4e4e7; border-radius: 6px; background: #fafafa; padding: 3px 6px; color: #a1a1aa; font-size: 10px; font-weight: 600; }
.dark .search-trigger kbd { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.04); }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 4px 16px 32px; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.sidebar-nav:hover, .sidebar-nav:focus-within { scrollbar-color: rgba(113,113,122,.24) transparent; }
.dark .sidebar-nav:hover, .dark .sidebar-nav:focus-within { scrollbar-color: rgba(161,161,170,.20) transparent; }
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { border-radius: 999px; background: transparent; }
.sidebar-nav:hover::-webkit-scrollbar-thumb, .sidebar-nav:focus-within::-webkit-scrollbar-thumb { background: rgba(113,113,122,.24); }
.dark .sidebar-nav:hover::-webkit-scrollbar-thumb, .dark .sidebar-nav:focus-within::-webkit-scrollbar-thumb { background: rgba(161,161,170,.20); }
.nav-section { margin: 0 0 28px; }
.nav-section-title { margin: 0; padding: 0 10px 8px; color: #a1a1aa; font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.dark .nav-section-title { color: #71717a; }
.nav-link { display: block; border-radius: 8px; padding: 6px 10px; color: #5d5d66; font-size: 14px; line-height: 1.45; text-decoration: none; transition: background .15s, color .15s; }
.nav-link:hover { background: rgba(244,244,245,.82); color: #18181b; }
.dark .nav-link { color: #a1a1aa; }
.dark .nav-link:hover { background: rgba(255,255,255,.05); color: #f4f4f5; }

.ticket-nav-active { position: relative; isolation: isolate; display: flex; align-items: center; gap: 10px; overflow: visible; border: 0; background: transparent; box-shadow: none; padding: 8px 12px; color: #18181b; font-weight: 650; }
.dark .ticket-nav-active { color: #fff; }
.ticket-shape { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(0 1px 3px rgba(24,24,27,.025)); }
.ticket-shape path { fill: rgba(255,255,255,.97); stroke: rgba(212,212,216,.94); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dark .ticket-shape { filter: none; }
.dark .ticket-shape path { fill: rgba(255,255,255,.075); stroke: rgba(255,255,255,.11); }
.active-accent { position: relative; z-index: 1; width: 3px; height: 16px; flex: 0 0 3px; border-radius: 999px; background: linear-gradient(180deg, var(--brand-violet), var(--brand-pink) 55%, var(--brand-orange)); }
.nav-link-label { position: relative; z-index: 1; }

.sidebar-footer { position: relative; display: flex; align-items: center; gap: 4px; padding: 16px; border-top: 1px solid rgba(228,228,231,.8); }
.dark .sidebar-footer { border-top-color: rgba(255,255,255,.075); }
.locale-wrap { position: relative; flex: 1; }
.locale-button { width: 100%; height: 36px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; background: transparent; color: #71717a; padding: 0 10px; cursor: pointer; font-size: 12.5px; font-weight: 600; }
.locale-button:hover { background: rgba(244,244,245,.8); color: #3f3f46; }
.locale-button-static { cursor: default; }
.dark .locale-button { color: #a1a1aa; }
.dark .locale-button:hover { background: rgba(255,255,255,.05); color: #f4f4f5; }
.locale-button svg, .theme-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; }
.locale-button span { flex: 1; text-align: left; }
.locale-button small { color: #a1a1aa; font-size: 10px; }
.locale-menu { position: absolute; left: 0; bottom: 44px; z-index: 70; width: 208px; padding: 6px; border: 1px solid #e4e4e7; border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.dark .locale-menu { border-color: rgba(255,255,255,.09); background: #18181b; }
.locale-option { display: flex; justify-content: space-between; border-radius: 8px; padding: 8px 12px; font-size: 12.5px; text-decoration: none; }
.locale-option.is-current { background: #f4f4f5; font-weight: 650; }
.dark .locale-option.is-current { background: rgba(255,255,255,.07); }
.locale-option span { color: #a1a1aa; font-size: 10px; }
.theme-button, .mobile-icon-button { display: grid; place-items: center; border: 0; background: transparent; color: #71717a; cursor: pointer; }
.theme-button { width: 36px; height: 36px; border-radius: 8px; }
.theme-button:hover, .mobile-icon-button:hover { background: rgba(244,244,245,.8); color: #3f3f46; }
.dark .theme-button, .dark .mobile-icon-button { color: #a1a1aa; }
.dark .theme-button:hover, .dark .mobile-icon-button:hover { background: rgba(255,255,255,.05); color: #f4f4f5; }

.page-main { min-height: 100vh; margin-left: var(--sidebar-width); background: var(--surface); }
.article-shell {
  width: min(840px, 100%);
  margin: 0 auto;
  padding: 48px 56px 96px;
}
.article-eyebrow {
  margin-bottom: 8px;
  color: rgba(161,161,170,.9);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.dark .article-eyebrow { color: #71717a; }
.article-header { margin-bottom: 40px; }
.article-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.article-title {
  margin: 0;
  max-width: 720px;
  color: var(--text);
  font-family: "Recoleta Medium", "Iowan Old Style", Georgia, serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.022em;
}
.article-dek {
  max-width: 680px;
  margin: 8px 0 0;
  color: #9199a8;
  font-size: 17px;
  line-height: 1.65;
}
.dark .article-dek { color: #9099aa; }

.article-tools { display: flex; flex: none; align-items: center; gap: 8px; margin-top: 4px; }
.tool-wrap { position: relative; }
.article-tool { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.56); color: #71717a; cursor: pointer; transition: color .15s, background .15s, border-color .15s, transform .15s; }
.article-tool:hover { color: #27272a; background: rgba(250,250,250,.95); border-color: var(--line-strong); }
.article-tool:active { transform: translateY(1px); }
.dark .article-tool { color: #a1a1aa; background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.08); }
.dark .article-tool:hover { color: #f4f4f5; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.13); }
.article-tool svg { display: block; width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.article-tool.is-done { color: #5b48df; border-color: rgba(109,93,252,.28); background: rgba(109,93,252,.07); animation: tool-confirm .42s cubic-bezier(.2,.8,.2,1); }
.dark .article-tool.is-done { color: #b6adff; border-color: rgba(139,124,255,.32); background: rgba(109,93,252,.13); }
.tool-tip { pointer-events: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; white-space: nowrap; border: 1px solid rgba(24,24,27,.10); border-radius: 8px; background: rgba(24,24,27,.96); padding: 5px 8px; color: #fff; font-size: 11px; font-weight: 650; line-height: 1; opacity: 0; transform: translateY(-3px) scale(.98); transform-origin: top right; transition: opacity .14s, transform .14s; box-shadow: 0 8px 20px rgba(0,0,0,.10); }
.tool-wrap:hover .tool-tip, .tool-wrap:focus-within .tool-tip { opacity: 1; transform: none; }
.dark .tool-tip { border-color: rgba(255,255,255,.10); background: rgba(244,244,245,.97); color: #18181b; }
@keyframes tool-confirm { 0%{transform:scale(1)} 42%{transform:scale(.88)} 72%{transform:scale(1.08)} 100%{transform:scale(1)} }
.tool-icon-enter { animation: tool-icon-enter .22s ease-out; }
@keyframes tool-icon-enter { from{opacity:0;transform:scale(.72) rotate(-8deg)} to{opacity:1;transform:scale(1)} }

.article-body { color: var(--body); font-size: 16px; line-height: 1.72; }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 0 0 20px; }
.article-body h2 { margin: 42px 0 12px; color: var(--text); font-size: 23px; line-height: 1.25; font-weight: 700; letter-spacing: -.025em; }
.article-body h3 { margin: 28px 0 8px; color: var(--text); font-size: 17px; line-height: 1.35; font-weight: 700; letter-spacing: -.015em; }
.article-body strong { color: var(--text); font-weight: 650; }
.article-body em { color: #62626d; font-style: italic; }
.dark .article-body em { color: #c9c9d1; }
.article-body a { color: #6d5dfc; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(109,93,252,.25); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.article-body a:hover { color: #c73794; text-decoration-color: rgba(199,55,148,.45); }
.dark .article-body a { color: #a99cfb; text-decoration-color: rgba(169,156,251,.3); }
.dark .article-body a:hover { color: #f3a1d3; text-decoration-color: rgba(243,161,211,.45); }
.article-body ul, .article-body ol { margin: 14px 0 24px; padding-left: 1.35rem; }
.article-body li { margin-top: 7px; padding-left: .2rem; }
.article-body li::marker { color: #8b86a7; }
.dark .article-body li::marker { color: #8f8aa9; }
.article-body code { border: 1px solid rgba(24,24,27,.08); border-radius: 6px; background: rgba(244,244,245,.82); padding: .08rem .38rem; color: #3f3f46; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .88em; }
.dark .article-body code { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.055); color: #e4e4e7; }
.article-body pre { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; background: #111114; padding: 16px 18px; color: #e4e4e7; line-height: 1.55; }
.article-body pre code { border: 0; background: transparent; padding: 0; color: inherit; }
.article-body blockquote { margin: 24px 0; border-left: 3px solid #d4d4d8; padding: 4px 0 4px 18px; color: #71717a; }
.dark .article-body blockquote { border-left-color: #52525b; color: #a1a1aa; }
.article-body hr { margin: 38px 0; border: 0; border-top: 1px solid var(--line); }
.article-body img { display: block; max-width: 100%; height: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 14px; background: #fafafa; }
.dark .article-body img { background: rgba(255,255,255,.025); }

.callout { position: relative; display: flex; align-items: center; gap: 14px; overflow: hidden; margin: 28px 0; border: 1px solid; border-radius: 12px; padding: 18px 20px 18px 24px; }
.callout::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; }
.callout-icon { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; margin-top: 0; border-radius: 8px; }
.callout-icon svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.callout-content { flex: 1; min-width: 0; }
.callout-title { margin: 0 0 3px; color: var(--text); font-size: 14px; font-weight: 700; }
.callout-body { color: #60606b; font-size: 14px; line-height: 1.65; }
.dark .callout-body { color: #d1d1d8; }
.article-body .callout-body > * {
  margin-top: 0;
  margin-bottom: 0;
}
.article-body .callout-body > * + * {
  margin-top: 8px;
}
.callout-note, .callout-tip, .callout-important { border-color: rgba(196,181,253,.8); background: linear-gradient(118deg, #f8f6ff 0%, #faf7ff 48%, #fff8fc 100%); }
.callout-note::before, .callout-tip::before, .callout-important::before { background: linear-gradient(180deg, var(--brand-violet), var(--brand-pink) 58%, var(--brand-orange)); }
.callout-note .callout-icon, .callout-tip .callout-icon, .callout-important .callout-icon { background: #ede9fe; color: #7c3aed; }
.callout-warning, .callout-caution { border-color: rgba(253,230,138,.9); background: linear-gradient(118deg, #fff9eb 0%, #fff8ee 48%, #fff6ef 100%); }
.callout-warning::before, .callout-caution::before { background: linear-gradient(180deg, #f59e0b, #f97316 58%, #f43f5e); }
.callout-warning .callout-icon, .callout-caution .callout-icon { background: #fef3c7; color: #b45309; }
.dark .callout-note, .dark .callout-tip, .dark .callout-important { border-color: rgba(139,92,246,.30); background: linear-gradient(118deg, rgba(124,95,230,.20), rgba(151,85,218,.17) 52%, rgba(194,72,174,.14)); }
.dark .callout-warning, .dark .callout-caution { border-color: rgba(245,158,11,.30); background: linear-gradient(118deg, rgba(217,144,24,.20), rgba(224,118,31,.17) 52%, rgba(210,84,62,.14)); }
.dark .callout-note .callout-icon, .dark .callout-tip .callout-icon, .dark .callout-important .callout-icon { background: rgba(139,92,246,.12); color: #c4b5fd; }
.dark .callout-warning .callout-icon, .dark .callout-caution .callout-icon { background: rgba(245,158,11,.12); color: #fcd34d; }

.article-table-wrap { margin: 22px 0 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.55; }
.article-body th { background: rgba(248,248,249,.88); padding: 10px 13px; color: #62626d; text-align: left; font-weight: 650; border-bottom: 1px solid var(--line); }
.article-body td { padding: 11px 13px; color: #52525b; vertical-align: top; border-bottom: 1px solid rgba(24,24,27,.065); }
.article-body tr:last-child td { border-bottom: 0; }
.dark .article-body th { background: rgba(255,255,255,.04); color: #d4d4d8; }
.dark .article-body td { color: #c4c4cc; border-bottom-color: rgba(255,255,255,.06); }

.article-footer {
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}
.footer-nav-card {
  display: flex;
  min-height: 80px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(228,228,231,.8);
  border-radius: 12px;
  background: rgba(250,250,250,.45);
  padding: 14px 16px;
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.footer-nav-card:hover {
  border-color: #d4d4d8;
  background: #fafafa;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(24,24,27,.035);
}
.dark .footer-nav-card { border-color: rgba(255,255,255,.075); background: rgba(255,255,255,.02); }
.dark .footer-nav-card:hover { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.04); box-shadow: none; }
.footer-nav-label { color: #a1a1aa; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.footer-nav-title { margin-top: 6px; color: #3f3f46; font-size: 13.5px; font-weight: 650; }
.dark .footer-nav-title { color: #d4d4d8; }
.footer-nav-next { text-align: right; }
.mobile-header { display: none; }
.mobile-drawer-layer { position: fixed; inset: 0; z-index: 60; }
.mobile-drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.30); backdrop-filter: blur(4px); }
.mobile-help-sidebar { position: absolute; inset: 0 auto 0 0; display: flex; flex-direction: column; width: min(88%, 384px); border-right: 1px solid rgba(228,228,231,.7); box-shadow: 0 24px 70px rgba(0,0,0,.18); background: linear-gradient(165deg, rgba(255,255,255,.985), rgba(247,248,252,.975)); }
.mobile-help-sidebar::after { display: none; }
.dark .mobile-help-sidebar { border-right-color: rgba(255,255,255,.08); background: linear-gradient(165deg, rgba(18,18,22,.99), rgba(10,10,14,.99)); }
.mobile-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; }
.mobile-drawer-title { font-size: 20px; font-weight: 650; letter-spacing: -.03em; }
.mobile-drawer-search { padding: 0 16px 16px; }
.mobile-help-sidebar .search-trigger { margin-top: 0; }
.mobile-help-sidebar .sidebar-nav { padding-bottom: 24px; }
.drawer-enter { transition: transform .20s ease-out, opacity .20s ease-out; }
.drawer-enter-start { transform: translateX(-100%); opacity: .5; }
.drawer-enter-end { transform: translateX(0); opacity: 1; }
.drawer-leave { transition: transform .15s ease-in, opacity .15s ease-in; }
.drawer-leave-start { transform: translateX(0); opacity: 1; }
.drawer-leave-end { transform: translateX(-100%); opacity: .5; }

.search-layer { position: fixed; inset: 0; z-index: 80; }
.search-backdrop { position: absolute; inset: 0; background: transparent; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.dark .search-backdrop { background: rgba(0,0,0,.55); }
.search-position { position: relative; width: calc(100% - 32px); max-width: 640px; margin: 10vh auto 0; }
.search-modal { overflow: hidden; border: 1px solid rgba(228,228,231,.9); border-radius: 16px; background: #fff; box-shadow: 0 28px 80px rgba(24,24,27,.22); }
.dark .search-modal { border-color: rgba(255,255,255,.10); background: #111114; }
.search-input-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(228,228,231,.8); padding: 0 16px; }
.dark .search-input-row { border-bottom-color: rgba(255,255,255,.08); }
.search-input-row svg { width: 19px; height: 19px; flex: none; fill: none; stroke: #a1a1aa; stroke-width: 1.8; }
.search-input-row input { flex: 1; min-width: 0; height: 56px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.search-input-row input::placeholder { color: #a1a1aa; }
.dark .search-input-row input::placeholder { color: #52525b; }
.esc-button { border: 1px solid #e4e4e7; border-radius: 6px; background: #fafafa; padding: 5px 8px; color: #a1a1aa; cursor: pointer; font-size: 10px; font-weight: 700; }
.dark .esc-button { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: #71717a; }
.search-results { max-height: 55vh; overflow-y: auto; padding: 8px; }
.search-result { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 12px; padding: 12px; text-decoration: none; transition: background .15s; }
.search-result:hover { background: rgba(244,244,245,.8); }
.dark .search-result:hover { background: rgba(255,255,255,.055); }
.search-result-text { min-width: 0; }
.search-result-text strong { display: block; overflow: hidden; color: #3f3f46; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.dark .search-result-text strong { color: #e4e4e7; }
.search-result-text span { display: block; margin-top: 2px; color: #a1a1aa; font-size: 11px; font-weight: 600; }
.dark .search-result-text span { color: #52525b; }
.search-arrow { color: #d4d4d8; transition: transform .15s, color .15s; }
.search-result:hover .search-arrow { transform: translateX(2px); color: #71717a; }
.search-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 40px 16px; color: #a1a1aa; text-align: center; font-size: 12px; }
.search-empty strong { color: #52525b; font-size: 13px; }
.dark .search-empty strong { color: #d4d4d8; }
.search-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(228,228,231,.7); padding: 10px 16px; color: #a1a1aa; font-size: 10.5px; font-weight: 600; }
.dark .search-footer { border-top-color: rgba(255,255,255,.07); color: #52525b; }
.search-enter { transition: transform .15s ease-out, opacity .15s ease-out; }
.search-enter-start { transform: translateY(-8px) scale(.985); opacity: 0; }
.search-enter-end { transform: none; opacity: 1; }
.search-leave { transition: transform .10s ease-in, opacity .10s ease-in; }
.search-leave-start { transform: none; opacity: 1; }
.search-leave-end { transform: translateY(-5px) scale(.99); opacity: 0; }

@media (max-width: 1023px) {
  :root { --sidebar-width: 0px; }
  .desktop-sidebar { display: none; }
  .page-main { margin-left: 0; }
  .mobile-header { position: sticky; top: 0; z-index: 45; display: flex; height: 56px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); padding: 0 12px; backdrop-filter: blur(18px); }
  .dark .mobile-header { background: rgba(9,9,11,.95); }
  .mobile-icon-button { width: 36px; height: 36px; border-radius: 8px; }
  .mobile-icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .mobile-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
  .mobile-logo { width: auto; height: 28px; }
  .mobile-actions { display: flex; align-items: center; gap: 4px; }
  .article-shell { padding: 36px 24px 80px; }
  .article-title { font-size: 40px; }
}

@media (max-width: 620px) {
  .article-title { font-size: 36px; }
  .article-title-row { gap: 14px; }
  .article-tools { gap: 6px; }
  .article-tool { width: 34px; height: 34px; }
  .article-dek { font-size: 16px; }
  .footer-nav-grid { grid-template-columns: 1fr; }
  .footer-nav-next { text-align: left; }
}
