:root {
  --bg: #F5F7FB;
  --bg-glow: rgba(99, 115, 255, .10);
  --surface: #FFFFFF;
  --surface-2: #EEF2F9;
  --border: #DCE3EF;
  --text: #101828;
  --muted: #55627A;
  --brand: #4F5BD5;
  --brand-ink: #FFFFFF;
  --link: #3142C6;
  --accent: #6E7BFF;
  --accent-ink: #0B1220;
  --focus: #3142C6;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --radius: 16px;
  --topbar-h: 60px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220;
    --bg-glow: rgba(110, 123, 255, .16);
    --surface: #111A2D;
    --surface-2: #17223A;
    --border: #25324F;
    --text: #E8EDF6;
    --muted: #9CA9C2;
    --brand: #8391FF;
    --brand-ink: #0B1220;
    --link: #A9B6FF;
    --focus: #A9B6FF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(1200px 500px at 15% -10%, var(--bg-glow), transparent 70%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
:lang(ar) { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, var(--font); }
:lang(bn) { font-family: "Noto Sans Bengali", "Nirmala UI", Vrinda, var(--font); }
:lang(hi) { font-family: "Noto Sans Devanagari", "Nirmala UI", Mangal, var(--font); }
:lang(ja) { font-family: "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", Meiryo, var(--font); }
:lang(ko) { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", var(--font); }
:lang(zh-CN) { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", var(--font); }
:lang(zh-TW) { font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", var(--font); }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
main { flex: 1; outline: none; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 10px; }

.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
.topbar-in { height: var(--topbar-h); max-width: 1120px; margin: 0 auto; padding: 0 12px; display: flex; align-items: center; gap: 10px; }
@media (min-width: 720px) { .topbar-in { padding: 0 24px; } }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 12px; color: var(--text); background: transparent; border: 1px solid transparent; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--border); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.01em; min-width: 0; margin-inline-end: auto; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand img { border-radius: 8px; flex: none; }

.lang-picker { position: relative; flex: none; }
.lang-picker > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: .95rem; font-weight: 600; user-select: none; }
.lang-picker > summary::-webkit-details-marker { display: none; }
.lang-picker > summary:hover { background: var(--surface-2); }
.lang-picker[open] > summary .chev { transform: rotate(180deg); }
.lang-picker .chev { transition: transform .2s; color: var(--muted); }
.lang-current { max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .lang-current { display: none; } }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: min(440px, calc(100vw - 24px)); max-height: min(70vh, 560px); overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; z-index: 45; }
.lang-menu-title { margin: 4px 8px 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.lang-grid a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .95rem; }
.lang-grid a:hover { background: var(--surface-2); }
.lang-grid a.is-current { background: color-mix(in srgb, var(--brand) 16%, transparent); font-weight: 700; }
.lang-grid a.is-current::after { content: "✓"; color: var(--brand); }

.drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 60; width: min(360px, 88vw); background: var(--surface); border-inline-end: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; transform: translateX(-102%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s; outline: none; }
[dir="rtl"] .drawer { transform: translateX(102%); }
.drawer.is-open { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(5, 10, 20, .55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; }
.drawer.is-open + .scrim { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--topbar-h); padding: 0 12px 0 20px; border-bottom: 1px solid var(--border); }
[dir="rtl"] .drawer-head { padding: 0 20px 0 12px; }
.drawer-title { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.drawer-list { list-style: none; margin: 0; padding: 16px; display: grid; gap: 12px; overflow-y: auto; }
.bot-btn { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); text-decoration: none; position: relative; overflow: hidden; transition: transform .15s, border-color .15s, background .15s; }
.bot-btn::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--accent); opacity: .9; }
.bot-btn:hover { border-color: var(--accent); transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); }
.bot-btn.is-current { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); }
.bot-btn img { border-radius: 12px; flex: none; }
.bot-btn-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.bot-btn-text strong { font-size: 1.05rem; }
.bot-btn-text small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.bot-btn .arrow, .doc-card .arrow { color: var(--muted); flex: none; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
body.drawer-open { overflow: hidden; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 14px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.page-home .btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; border-radius: 11px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0; max-width: 62ch; }
.hint { margin: 12px 0 0; color: var(--muted); font-size: .88rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: .92rem; }
.chips a:hover { border-color: var(--accent); }
.chips a.is-current { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 700; }
.page-home .chips a.is-current, .page-redirect .chips a.is-current { background: var(--brand); color: var(--brand-ink); }
.chips-sm a { padding: 3px 10px; font-size: .82rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 14px; font-size: 1.1rem; }

.hero { display: grid; gap: 36px; align-items: center; padding: 56px 0 36px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.35fr 1fr; padding: 88px 0 56px; } }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 18px; }
.hero-art { display: grid; grid-template-columns: repeat(2, minmax(0, 120px)); gap: 18px; justify-content: center; }
.orbit-item { display: block; border-radius: 28px; padding: 6px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 40px color-mix(in srgb, var(--accent) 22%, transparent); transition: transform .2s; animation: float 6s ease-in-out infinite; }
.orbit-item img { width: 100%; height: auto; border-radius: 22px; }
.orbit-item:nth-child(2) { animation-delay: -1.5s; transform: translateY(14px); }
.orbit-item:nth-child(3) { animation-delay: -3s; }
.orbit-item:nth-child(4) { animation-delay: -4.5s; }
.orbit-item:hover { transform: scale(1.04); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (max-width: 899px) { .hero-art { grid-template-columns: repeat(4, minmax(0, 76px)); gap: 12px; justify-content: start; } .orbit-item { border-radius: 20px; padding: 4px; } .orbit-item img { border-radius: 16px; } .orbit-item:nth-child(2) { transform: none; } }
.how { padding: 8px 0 72px; }
.how h2 { font-size: 1.4rem; margin: 0 0 18px; letter-spacing: -.01em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.steps p { margin: 0; }
.step-n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); font-weight: 800; }
.note { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; color: var(--muted); }
.note svg { flex: none; margin-top: 3px; }

.bot-hero { display: grid; gap: 24px; padding: 30px 0 26px; align-items: start; }
@media (min-width: 720px) { .bot-hero { grid-template-columns: auto 1fr; gap: 32px; padding: 44px 0 30px; } }
.bot-logo { width: 112px; height: 112px; border-radius: 30px; box-shadow: 0 14px 50px color-mix(in srgb, var(--accent) 35%, transparent); }
.bot-hero h1 { margin: 0; font-size: clamp(2rem, 4.4vw, 2.9rem); letter-spacing: -.025em; line-height: 1.1; }
.tagline { margin: 8px 0 14px; font-size: 1.2rem; font-weight: 600; color: var(--text); }
.docs-row { display: grid; gap: 14px; margin: 6px 0 22px; }
@media (min-width: 720px) { .docs-row { grid-template-columns: 1fr 1fr; } }
.doc-card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.doc-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.doc-card-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text); }
.doc-card-logo img { border-radius: 9px; }
.doc-card-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.doc-card-text strong { font-size: 1.08rem; }
.doc-card-text small { color: var(--muted); font-size: .9rem; }
.bot-grid { display: grid; gap: 14px; padding-bottom: 72px; }
@media (min-width: 820px) { .bot-grid { grid-template-columns: 1fr 1fr; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-inline-start: 30px; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 18px; height: 18px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.checks li::after { content: ""; position: absolute; inset-inline-start: 6px; top: calc(.3em + 4px); width: 5px; height: 9px; border: solid var(--text); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.doc-head { padding: 26px 0 8px; }
.doc-bot { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
[dir="rtl"] .doc-bot { padding: 6px 6px 6px 12px; }
.doc-bot img { border-radius: 50%; }
.doc-head h1 { margin: 18px 0 6px; font-size: clamp(1.9rem, 4.2vw, 2.7rem); letter-spacing: -.025em; line-height: 1.12; }
.doc-meta { margin: 0; color: var(--muted); }
.doc-meta em { font-style: normal; }
.doc-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.doc-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.doc-langs-label { color: var(--muted); font-size: .88rem; font-weight: 600; }
.notice { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, #F5A524 50%, var(--border)); background: color-mix(in srgb, #F5A524 12%, var(--surface)); }
.notice svg { flex: none; margin-top: 3px; }
.notice p { margin: 0; }
.doc-layout { display: grid; gap: 22px; margin-top: 24px; }
@media (min-width: 980px) { .doc-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 44px; } }
.toc-wrap { min-width: 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 8px; }
.toc > summary { cursor: pointer; padding: 10px 10px; font-weight: 700; list-style-position: inside; }
.toc ol { list-style: none; margin: 0; padding: 0 0 8px; display: grid; gap: 1px; }
.toc a { display: block; padding: 7px 10px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: .9rem; line-height: 1.35; border-inline-start: 2px solid transparent; }
.toc a:hover { color: var(--text); background: var(--surface-2); }
.toc a.is-active { color: var(--text); background: color-mix(in srgb, var(--accent) 12%, transparent); border-inline-start-color: var(--accent); font-weight: 600; }
@media (min-width: 980px) {
  .toc { position: sticky; top: calc(var(--topbar-h) + 18px); max-height: calc(100vh - var(--topbar-h) - 36px); overflow: auto; }
  .toc > summary { list-style: none; pointer-events: none; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; }
  .toc > summary::-webkit-details-marker { display: none; }
}
.prose { min-width: 0; max-width: 78ch; font-size: 1.04rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.4rem; line-height: 1.3; letter-spacing: -.01em; margin: 2.2em 0 .7em; padding-top: 1.1em; border-top: 1px solid var(--border); scroll-margin-top: calc(var(--topbar-h) + 16px); }
.prose h2:first-child { border-top: 0; padding-top: 0; }
.prose h3, .prose h4 { font-size: 1.12rem; margin: 1.6em 0 .5em; scroll-margin-top: calc(var(--topbar-h) + 16px); }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-inline-start: 1.4em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 700; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--border); padding: .1em .4em; border-radius: 6px; white-space: nowrap; }
.prose blockquote { margin: 0 0 1em; padding: .2em 1em; border-inline-start: 4px solid var(--accent); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--border); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .94rem; line-height: 1.5; }
.prose th, .prose td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th { background: var(--surface-2); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose td code { white-space: normal; }
.doc-foot { display: grid; gap: 14px; margin: 48px 0 72px; padding-top: 28px; border-top: 1px solid var(--border); }
@media (min-width: 720px) { .doc-foot { grid-template-columns: 1fr 1fr; } }
.contact-card { padding: 20px; border-radius: var(--radius); border: 1px dashed var(--border); }
.contact-card p { margin: 4px 0 0; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.contact-actions .btn { font-weight: 600; }
@media (min-width: 720px) { .contact-card { grid-column: 1 / -1; } }

.redirect-box { max-width: 640px; padding: 12vh 16px 64px; text-align: center; display: grid; justify-items: center; gap: 6px; }
.redirect-box img { border-radius: 16px; }
.redirect-box h1 { margin: 14px 0 4px; font-size: 1.6rem; }
.redirect-box p { margin: 0 0 14px; color: var(--muted); }
.redirect-box .chips { justify-content: center; }

.site-foot { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .9rem; padding: 26px 0 30px; }
.site-foot p { margin: 0 0 8px; }
.site-foot a { color: var(--text); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-bots { font-weight: 600; }
.foot-copy { margin: 0; }
.to-top { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 30; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility 0s linear .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s, visibility 0s; }

@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f3f4f6; --text: #000; --muted: #333; --border: #ccc; --link: #000; }
  body { background: #fff; }
  .topbar, .drawer, .scrim, .toc-wrap, .doc-foot, .site-foot, .to-top, .doc-tools, .crumbs, .notice, .skip-link { display: none !important; }
  .doc-layout { display: block; margin: 0; }
  .prose { max-width: none; font-size: 11pt; }
  .prose h2 { break-after: avoid; }
  .prose a::after { content: " (" attr(href) ")"; font-size: .85em; }
}
