/* Batch 8: Help Center (app) and public guides. Tokens on .hc; the app's dark theme redefines them. */
.hc {
  --hc-bg: transparent; --hc-card: #ffffff; --hc-line: #ebe8f6; --hc-soft: #f6f4ff; --hc-ink: #1d1b33; --hc-mute: #625f7f;
  --hc-faint: #8b88a6; --hc-accent: #6e56f7; --hc-accent-ink: #4f3bd6; --hc-accent-soft: #efebff; --hc-tip: #fff8e6; --hc-tip-line: #f5e2ad;
  --hc-shadow: 0 1px 2px rgba(29, 27, 51, .04), 0 12px 32px -18px rgba(44, 34, 120, .22);
  color: var(--hc-ink); font-size: 15px; line-height: 1.6;
}
html[data-theme="dark"] .hc-app {
  --hc-card: #18171F; --hc-line: rgba(167, 139, 250, .16); --hc-soft: rgba(139, 123, 255, .08); --hc-ink: #ecebff; --hc-mute: #b3afd3;
  --hc-faint: #8e8ab0; --hc-accent: #8b7bff; --hc-accent-ink: #c9bfff; --hc-accent-soft: rgba(139, 123, 255, .14); --hc-tip: rgba(245, 197, 66, .08);
  --hc-tip-line: rgba(245, 197, 66, .25); --hc-shadow: 0 16px 40px -22px rgba(0, 0, 0, .8);
}
.hc *, .hc *::before, .hc *::after { box-sizing: border-box; }
.hc a { color: var(--hc-accent-ink); }
.hc-app { padding: 8px 4px 40px; }
.hc-public { background: #fbfaff; padding-block: calc(var(--hc-head, 120px) + 24px) 64px; }  /* the site header is position:absolute */
.hc-wrap { max-width: 1280px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.hc-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 14px; font-size: 13px; color: var(--hc-faint); }
.hc-crumbs a { color: var(--hc-mute); text-decoration: none; } .hc-crumbs a:hover { color: var(--hc-accent-ink); }

/* layout: guide menu | article | on this page */
.hc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.hc-layout-3 { grid-template-columns: 230px minmax(0, 1fr) 220px; }
.hc-main { min-width: 0; }
.hc-nav, .hc-toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding: 14px; border: 1px solid var(--hc-line); border-radius: 16px; background: var(--hc-card); font-size: 13.5px; }
.hc-nav ul, .hc-toc ol { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 1px; }
.hc-nav a, .hc-toc a { display: block; padding: 6px 10px; border-radius: 9px; color: var(--hc-mute); text-decoration: none; line-height: 1.35; }
.hc-nav a:hover, .hc-toc a:hover { background: var(--hc-soft); color: var(--hc-ink); }
.hc-nav a.is-on, .hc-toc a.is-on { background: var(--hc-accent-soft); color: var(--hc-accent-ink); font-weight: 700; }
.hc-nav-home { display: flex !important; align-items: center; gap: 8px; font-weight: 700; color: var(--hc-ink) !important; margin-bottom: 4px; }
.hc-nav-home svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hc-nav-h { margin: 12px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--hc-faint); }
.hc-toc .hc-nav-h { margin-top: 0; }
.hc-toc-open { width: 100%; margin-top: 10px; justify-content: center; }

/* buttons */
.hc-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 14px; text-decoration: none !important; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.hc-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hc-btn-p { background: linear-gradient(135deg, #6e56f7, #8b5cf6); color: #fff !important; box-shadow: 0 10px 24px -12px rgba(110, 86, 247, .7); }
.hc-btn-p:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(110, 86, 247, .8); }
.hc-btn-o { background: var(--hc-card); border-color: var(--hc-line); color: var(--hc-ink) !important; }
.hc-btn-o:hover { border-color: var(--hc-accent); }
.hc-btn:focus-visible, .hc a:focus-visible, .hc summary:focus-visible { outline: 2px solid var(--hc-accent); outline-offset: 2px; }

/* hub */
.hc-hubhead { padding: 26px 28px; border-radius: 20px; background: radial-gradient(120% 140% at 100% 0%, rgba(139, 92, 246, .16), transparent 55%), var(--hc-card); border: 1px solid var(--hc-line); box-shadow: var(--hc-shadow); margin-bottom: 22px; }
.hc-hubhead h1 { margin: 2px 0 8px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.hc-hubhead-public { margin-top: 4px; }
.hc-search { display: flex; align-items: center; gap: 10px; max-width: 520px; margin-top: 16px; padding: 0 14px; height: 48px; border: 1px solid var(--hc-line); border-radius: 14px; background: var(--hc-card); }
.hc-search:focus-within { border-color: var(--hc-accent); box-shadow: 0 0 0 4px var(--hc-accent-soft); }
.hc-search svg { width: 19px; height: 19px; fill: none; stroke: var(--hc-faint); stroke-width: 2; flex: 0 0 auto; }
.hc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--hc-ink); }
.hc-start { margin-bottom: 26px; }
.hc-start h2, .hc-group h2, .hc-related h2, .hc-faq h2 { margin: 0 0 12px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.hc-path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.hc-path a { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 14px; border: 1px solid var(--hc-line); border-radius: 14px; background: var(--hc-card); text-decoration: none; color: var(--hc-ink) !important; transition: border-color .15s, transform .15s; }
.hc-path a:hover { border-color: var(--hc-accent); transform: translateY(-1px); }
.hc-path-n { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hc-accent); color: #fff; font-weight: 800; font-size: 13px; }
.hc-path strong { display: block; font-size: 14.5px; } .hc-path small { display: block; color: var(--hc-mute); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.hc-group { margin-bottom: 26px; }
.hc-group[hidden], .hc-card[hidden] { display: none !important; }
.hc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.hc-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--hc-line); border-radius: 16px; background: var(--hc-card); text-decoration: none; color: var(--hc-ink) !important; box-shadow: var(--hc-shadow); transition: transform .18s, border-color .18s; }
.hc-card:hover { transform: translateY(-2px); border-color: var(--hc-accent); }
.hc-card-img { display: block; aspect-ratio: 16 / 10; max-width: 100%; background: var(--hc-soft); overflow: hidden; border-bottom: 1px solid var(--hc-line); }
.hc-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.hc-card-body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.hc-card-body strong { font-size: 15px; line-height: 1.35; } .hc-card-body > span { font-size: 13px; color: var(--hc-mute); line-height: 1.5; }
.hc-card-body small { font-size: 12px; color: var(--hc-faint); font-weight: 600; margin-top: 4px; }
.hc-none { padding: 18px; color: var(--hc-mute); }

/* article */
.hc-article { min-width: 0; }
.hc-head { padding: 26px 28px; border: 1px solid var(--hc-line); border-radius: 20px; background: radial-gradient(120% 140% at 100% 0%, rgba(139, 92, 246, .14), transparent 55%), var(--hc-card); box-shadow: var(--hc-shadow); }
.hc-eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hc-accent-ink); }
.hc-head h1 { margin: 4px 0 8px; font-size: clamp(25px, 3vw, 34px); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.hc-lead { margin: 0; max-width: 68ch; font-size: 16.5px; color: var(--hc-mute); }
.hc-meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 14px 0 0; font-size: 13px; font-weight: 600; color: var(--hc-faint); }
.hc-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hc-meta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.hc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
/* Batch 9: the intro is a compact "In short" card instead of a loose paragraph; two columns on wide screens */
.hc-intro { display: flex; gap: 14px; align-items: flex-start; margin: 16px 0 4px; padding: 18px 20px; border: 1px solid var(--hc-line); border-left: 4px solid var(--hc-accent); border-radius: 16px; background: linear-gradient(135deg, var(--hc-accent-soft), transparent 70%), var(--hc-card); box-shadow: var(--hc-shadow); }
.hc-intro-ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--hc-card); color: var(--hc-accent-ink); box-shadow: 0 0 0 1px var(--hc-line); }
.hc-intro-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hc-intro-body { min-width: 0; flex: 1; }
.hc-intro-h { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hc-accent-ink); }
.hc-intro-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 8px 28px; }
.hc-intro-cols p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--hc-ink); max-width: 62ch; }
.hc-intro-cols p + p { color: var(--hc-mute); }
@media (max-width: 520px) { .hc-intro { padding: 16px; } .hc-intro-ico { display: none; } }
.hc-tablewrap { overflow-x: auto; margin: 16px 0 4px; border: 1px solid var(--hc-line); border-radius: 16px; background: var(--hc-card); }
.hc-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.hc-table th, .hc-table td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--hc-line); vertical-align: top; }
.hc-table thead th { background: var(--hc-soft); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--hc-mute); }
.hc-table tbody th { font-weight: 700; color: var(--hc-ink); width: 22%; }
.hc-table tr:last-child > * { border-bottom: 0; }
.hc-table td:last-child { color: var(--hc-accent-ink); font-weight: 600; }

/* steps: text beside the screenshot on wide screens, stacked on narrow */
.hc-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: none; }
.hc-step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; align-items: start; padding: 20px; border: 1px solid var(--hc-line); border-radius: 18px; background: var(--hc-card); box-shadow: var(--hc-shadow); scroll-margin-top: 20px; }
.hc-step:not(:has(.hc-shot)) { grid-template-columns: 1fr; }
.hc-step-text { position: relative; padding-top: 2px; min-width: 0; }
.hc-step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--hc-accent-soft); color: var(--hc-accent-ink); font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.hc-step h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.hc-step p { margin: 0 0 10px; color: var(--hc-mute); font-size: 15px; }
.hc-step p:last-child { margin-bottom: 0; }
.hc-shot { margin: 0; min-width: 0; }
.hc-shot img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1040 / 650; border-radius: 12px; border: 1px solid var(--hc-line); background: var(--hc-soft); box-shadow: 0 18px 40px -26px rgba(44, 34, 120, .55); }

/* tips, questions, related, prev/next, call to action */
.hc-tips { margin: 22px 0 0; padding: 18px 20px; border: 1px solid var(--hc-tip-line); border-radius: 16px; background: var(--hc-tip); }
.hc-tips h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.hc-tips h2 svg { width: 20px; height: 20px; fill: none; stroke: #c48a00; stroke-width: 1.9; stroke-linecap: round; }
.hc-tips ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.hc-faq { margin-top: 26px; }
.hc-faq details { border: 1px solid var(--hc-line); border-radius: 14px; background: var(--hc-card); margin-bottom: 8px; }
.hc-faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.hc-faq summary::-webkit-details-marker { display: none; }
.hc-faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--hc-accent-ink); }
.hc-faq details[open] summary::after { content: "–"; }
.hc-faq details p { margin: 0; padding: 0 18px 16px; color: var(--hc-mute); }
.hc-related { margin-top: 28px; }
.hc-pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.hc-pn a { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--hc-line); border-radius: 14px; background: var(--hc-card); text-decoration: none; min-width: 0; max-width: 48%; }
.hc-pn a:hover { border-color: var(--hc-accent); }
.hc-pn small { font-size: 12px; color: var(--hc-faint); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.hc-pn span { color: var(--hc-ink); font-weight: 700; }
.hc-pn-next { text-align: end; margin-inline-start: auto; }
.hc-cta { margin-top: 30px; padding: 28px; border-radius: 20px; background: linear-gradient(135deg, #2b2370, #5b3fd6); color: #fff; }
.hc-cta h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: #fff; }
.hc-cta p { margin: 0; max-width: 62ch; color: rgba(255, 255, 255, .86); }
.hc-cta .hc-btn-o { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff !important; }

@media (max-width: 1180px) {
  .hc-layout-3 { grid-template-columns: 220px minmax(0, 1fr); }
  .hc-toc { display: none; }
}
@media (max-width: 900px) {
  .hc-layout, .hc-layout-3 { grid-template-columns: minmax(0, 1fr); }
  .hc-nav { position: static; max-height: none; order: 2; }
  .hc-step { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .hc-head, .hc-hubhead { padding: 20px 18px; }
  .hc-step { padding: 16px; }
  .hc-pn a { max-width: none; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .hc-card, .hc-path a, .hc-btn { transition: none; } .hc-card:hover, .hc-path a:hover, .hc-btn-p:hover { transform: none; } }
