:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--page); color: var(--text); scroll-behavior: smooth; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0s; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.docs-header { position: sticky; top: 0; z-index: 30; height: 64px; display: grid; grid-template-columns: 180px minmax(240px, 480px) 1fr; align-items: center; gap: 16px; padding: 0 22px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(18px); }
.docs-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.25rem; font-weight: 780; letter-spacing: -.03em; }
.docs-brand-avatar { width: 32px; height: 32px; object-fit: contain; }
.docs-search { position: relative; width: 100%; height: 36px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); color: var(--muted); }
.docs-search:focus-within { border-color: var(--line-strong); background: var(--surface); }
.docs-search svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; }
.docs-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: .82rem; }
.docs-search input::placeholder { color: var(--muted); }
.docs-search kbd { display: grid; place-items: center; min-width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--muted); font: inherit; font-size: .7rem; }
.docs-header nav { height: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.docs-header nav > a:not(.login-pill) { display: flex; height: 100%; align-items: center; color: var(--muted); font-size: .78rem; }
.docs-header nav > a:not(.login-pill):hover, .docs-header nav > a:not(.login-pill)[aria-current="page"] { color: var(--text); }
.docs-language { max-width: 105px; height: 32px; padding: 0 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--text); font: inherit; font-size: .76rem; cursor: pointer; }
.docs-theme { display: grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--surface); cursor: pointer; }
.docs-theme:hover { color: var(--text); border-color: var(--line-strong); }
.login-pill { display: inline-flex; height: 36px; min-height: 36px; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid transparent; border-radius: 2px; background: var(--blue); color: var(--theme-fixed-ffffff); font-size: 12px; font-weight: 650; line-height: 1; white-space: nowrap; transition: background .18s ease, border-color .18s ease; }
.login-pill:hover { background: color-mix(in srgb, var(--blue) 84%, white); }
:root[data-theme="dark"] .docs-header .login-pill { border-color: var(--theme-fixed-ffffff); background: var(--theme-fixed-ffffff); color: var(--theme-fixed-11141b); -webkit-text-fill-color: var(--theme-fixed-11141b); }
:root[data-theme="dark"] .docs-header .login-pill:hover { background: var(--theme-fixed-f4f4f7); color: var(--theme-fixed-11141b); -webkit-text-fill-color: var(--theme-fixed-11141b); }
:root[data-theme="light"] .docs-header .login-pill { border-color: var(--theme-fixed-11141b); background: var(--theme-fixed-11141b); color: var(--theme-fixed-ffffff); -webkit-text-fill-color: var(--theme-fixed-ffffff); }
:root[data-theme="light"] .docs-header .login-pill:hover { background: var(--theme-fixed-262a33); color: var(--theme-fixed-ffffff); -webkit-text-fill-color: var(--theme-fixed-ffffff); }
.theme-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-moon { display: block; }
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 760px) 210px; gap: clamp(32px, 5vw, 72px); width: min(1380px, calc(100% - 44px)); min-height: calc(100vh - 96px); min-block-size: calc(100dvh - 96px); margin: 0 auto; }
.docs-sidebar, .docs-toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 116px); overflow-y: auto; scrollbar-gutter: stable; padding: 12px 6px 30px; }
.sidebar-group { margin-bottom: 26px; }
.sidebar-group strong { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--text); font-size: .82rem; font-weight: 650; letter-spacing: 0; }
.sidebar-group strong svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--text-soft); }
.sidebar-group-links { display: grid; gap: 1px; margin-left: 8px; padding-left: 18px; border-left: 1px solid var(--line-strong); }
.docs-sidebar .sidebar-group-links a { position: relative; display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 7px; border: 0; border-radius: 4px; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.docs-sidebar .sidebar-group-links a:hover { color: var(--text); background: var(--surface-soft); }
.docs-sidebar .sidebar-group-links a.is-active { color: var(--home-glow-blue); font-weight: 650; background: transparent; }
.docs-sidebar .sidebar-group-links a.is-active::before { position: absolute; top: 3px; bottom: 3px; left: -19px; width: 1px; background: var(--home-glow-blue); content: ""; }
.docs-sidebar .sidebar-group-links a svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--text-soft); }
.docs-sidebar .sidebar-group-links a.is-active svg { color: var(--home-glow-blue); }
[dir="rtl"] .sidebar-group-links { margin-left: 0; padding-left: 0; border-left: 0; margin-right: 8px; padding-right: 18px; border-right: 1px solid var(--line-strong); }
[dir="rtl"] .docs-sidebar .sidebar-group-links a.is-active::before { left: auto; right: -19px; }
.docs-toc strong { margin: 0 8px 7px; font-size: .76rem; letter-spacing: .02em; }
.docs-toc a { padding: 7px 9px; color: var(--muted); font-size: .83rem; line-height: 1.35; }
.docs-toc a:hover, .docs-toc a.is-active { color: var(--text); background: var(--surface-soft); }
.docs-toc { display: grid; gap: 1px; }
.docs-toc-rail { position: absolute; width: 32px; overflow: visible; pointer-events: none; }
.docs-toc-rail path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.docs-toc-rail-base { stroke: var(--line-strong); stroke-width: 1.5; }
.docs-toc-rail-visible { stroke: var(--home-glow-blue); stroke-width: 1.5; }
.docs-toc strong { margin-bottom: 10px; }
.docs-toc a { border-left: 0; padding-block: 6px; padding-left: 10px; font-size: .78rem; transition: color .24s ease; }
.docs-toc a.is-subsection { margin-left: 12px; padding-left: 10px; font-size: .75rem; }
.docs-toc a.is-visible { color: var(--home-glow-blue); background: transparent; }
.search-empty { margin: 8px; color: var(--muted); font-size: .8rem; }
.docs-main { min-width: 0; padding: 66px 0 24px; }
.docs-intro { padding-bottom: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.docs-kicker, .section-number { margin: 0; color: var(--blue-bright); font-size: .76rem; font-weight: 720; letter-spacing: .05em; }
.docs-intro h1 { margin: 9px 0 14px; font-size: clamp(2.35rem, 6vw, 4rem); letter-spacing: -.055em; }
.docs-intro > p:last-child:not(.docs-kicker) { max-width: 650px; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
body:not([data-docs-page="overview"]) .docs-intro { padding-bottom: 24px; }
body:not([data-docs-page="overview"]) .docs-intro h1 { margin-bottom: 0; font-size: clamp(2rem, 5vw, 3.1rem); }
.docs-main section { padding: 52px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 82px; }
body[data-docs-page="overview"] .docs-intro { padding-bottom: 30px; }
body[data-docs-page="overview"] .docs-intro h1 { font-size: clamp(2rem, 5vw, 3.15rem); }
body[data-docs-page="overview"] .docs-main section { padding: 32px 0; }
body[data-docs-page="overview"] .docs-main h2 { font-size: 1.55rem; }
body[data-docs-page="overview"] .docs-main .docs-module-overview { padding: 12px 0; border-bottom: 0; }
.docs-overview-link { display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; align-items: start; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
.docs-overview-link:hover, .docs-overview-link:focus-visible { background: var(--surface-soft); border-color: var(--blue-bright); }
.docs-overview-link:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
.docs-overview-link > svg { width: 28px; height: 28px; margin-block-start: 2px; color: var(--muted); }
body[data-docs-page="overview"] .docs-overview-copy h2 { margin: 0 0 8px; font-size: 1.1rem; }
.docs-overview-copy > p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.docs-overview-arrow { color: var(--muted); margin-block-start: 2px; }
html[dir="rtl"] .docs-overview-arrow { transform: scaleX(-1); }
.docs-main [hidden] { display: none; }
.docs-sidebar .sidebar-group-links a[hidden] { display: none; }
body:not([data-docs-page="overview"]) .docs-main [data-doc-section] > .section-number,
body:not([data-docs-page="overview"]) .docs-main [data-doc-section] > h2 { display: none; }
body:not([data-docs-page="overview"]) .docs-main [data-doc-section] { min-height: 0; }
.docs-main h2 { margin: 8px 0 14px; font-size: clamp(1.55rem, 4vw, 2rem); letter-spacing: -.03em; }
.docs-main h3 { margin: 29px 0 10px; font-size: .96rem; }
.docs-main section > p:not(.section-number), .docs-main li { color: var(--muted); font-size: .95rem; line-height: 1.75; }
.docs-main ul { margin: 13px 0 0; padding-left: 21px; }
.docs-main li + li { margin-top: 5px; }
.docs-main [id] { scroll-margin-top: 128px; }
@media (max-width: 1080px) { .docs-header { grid-template-columns: 180px minmax(240px, 1fr) auto; } .docs-layout { grid-template-columns: 210px minmax(0, 760px); } .docs-toc { display: none; } }
@media (max-width: 760px) { .docs-header { height: auto; min-height: 64px; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 14px; } .docs-search { grid-column: 1 / -1; grid-row: 2; } .docs-header nav > a:not(.login-pill) { display: none; } .login-pill { padding: 0 12px; } .docs-layout { width: min(100% - 28px, 720px); display: block; } .docs-sidebar { position: static; display: flex; gap: 5px; max-height: none; overflow-x: auto; padding: 18px 0 3px; } .sidebar-group, .sidebar-group-links { display: contents; } .sidebar-group strong, .search-empty { display: none; } .docs-sidebar .sidebar-group-links a { flex: 0 0 auto; white-space: nowrap; border-bottom: 2px solid transparent; border-radius: 0; } .docs-sidebar .sidebar-group-links a.is-active { border-bottom-color: var(--home-glow-blue); } .docs-sidebar .sidebar-group-links a.is-active::before { display: none; } .docs-main { padding-top: 36px; } }


.docs-header { height: 56px; grid-template-columns: auto minmax(180px, 260px) 1fr; gap: 24px; padding: 0; width: min(1080px, calc(100% - 40px)); margin-inline: auto; background: var(--page); border-bottom-color: var(--line); }
.docs-brand { color: var(--text); font-size: 15px; }
.docs-header nav { gap: 8px; }
.docs-header nav > a:not(.login-pill) { color: var(--muted); font-size: 12px; }
.docs-header nav > a:not(.login-pill):hover, .docs-header nav > a:not(.login-pill)[aria-current="page"] { color: var(--text); }
.docs-search { height: 32px; border-color: var(--line); background: var(--surface-soft); }


.docs-guide-section { padding: 38px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 82px; }
.docs-guide-section:last-child { border-bottom: 0; padding-bottom: 0; }
.docs-guide-section > h3 { margin-top: 0; font-size: 1.18rem; letter-spacing: -.015em; }
.docs-guide-subsection { margin-block-start: 28px; padding-inline-start: 24px; min-inline-size: 0; }
.docs-guide-subsection > h4 { margin: 0 0 12px; font-size: .9rem; letter-spacing: .01em; }
.docs-guide-subsection > :last-child { margin-block-end: 0; }
.docs-guide-subsection > p { color: var(--muted); font-size: .95rem; line-height: 1.75; }
.docs-filter-guide { padding-inline-start: 24px; min-inline-size: 0; }
.docs-main [data-doc-section="other"] > .docs-guide-section:has(> h3:is(#other-introduction, #settings-embed-color, #settings-language-time, #settings-access, #settings-data, #settings-troubleshooting)),
.docs-main [data-doc-section="commands"] > .docs-guide-section:has(> h3:is(#commands-requirements, #commands-list, #commands-details, #commands-troubleshooting)) { padding-inline-start: 24px; }
.docs-guide-subsection > h4,
.docs-filter-guide > h4,
.docs-guide-section > h3:is(#other-introduction, #settings-embed-color, #settings-language-time, #settings-access, #settings-data, #settings-troubleshooting, #commands-requirements, #commands-list, #commands-details, #commands-troubleshooting) { position: relative; }
.docs-guide-subsection > h4::before,
.docs-filter-guide > h4::before,
.docs-guide-section > h3:is(#other-introduction, #settings-embed-color, #settings-language-time, #settings-access, #settings-data, #settings-troubleshooting, #commands-requirements, #commands-list, #commands-details, #commands-troubleshooting)::before { content: ""; position: absolute; inset-inline-start: -24px; inset-block-start: .15em; inline-size: 12px; block-size: 10px; border-inline-start: 1px solid var(--muted); border-block-end: 1px solid var(--muted); border-end-start-radius: 3px; opacity: .65; }
.docs-guide-section > p, .docs-guide-section li { color: var(--muted); font-size: .95rem; line-height: 1.75; }
.docs-guide-section strong { color: var(--text); }
.docs-guide-section code { padding: .12em .35em; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-soft); color: var(--text); font: .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.docs-guide-section kbd { display: inline-grid; place-items: center; min-width: 1.8em; padding: .05em .4em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--surface-soft); color: var(--text); font: .82em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.docs-steps { margin: 15px 0 0; padding-left: 1.45rem; }
.docs-steps li { padding-left: .3rem; }
.docs-steps li + li { margin-top: 9px; }
.docs-note { margin: 20px 0 0; padding: 15px 17px; border: 1px solid var(--line); border-left: 2px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--muted); font-size: .9rem; line-height: 1.65; }
.docs-guide-section > .docs-permission-note { margin: 12px 0 16px; padding: 11px 14px; font-size: .85rem; }
.docs-note strong { color: var(--text); }
.docs-table-wrap { width: 100%; margin: 16px 0 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; }
.docs-table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--surface); font-size: .88rem; }
.docs-table th, .docs-table td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.55; }
.docs-table th { background: var(--surface-soft); color: var(--text); font-size: .76rem; letter-spacing: .02em; }
.docs-table td { color: var(--muted); }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-table strong { color: var(--text); }
.docs-table code { white-space: nowrap; }
.docs-permissions { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 4px; }
.docs-permission { display: inline-flex; align-items: center; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--text); font-size: .78rem; font-weight: 650; }
.docs-settings { display: grid; gap: 10px; margin: 17px 0 22px; }
.docs-setting { padding: 15px 17px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.docs-setting-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.docs-setting-head strong { font-size: .9rem; }
.docs-setting p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.docs-badge { flex: 0 0 auto; padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .02em; }
.docs-badge-required { border-color: color-mix(in srgb, var(--blue-bright) 45%, var(--line)); color: var(--blue-bright); }
.docs-filter-guide { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 82px; }
.docs-filter-guide:first-of-type { margin-top: 18px; }
.docs-filter-guide > h4 { margin: 0 0 7px; color: var(--text); font-size: 1rem; }
.docs-filter-guide > p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.docs-search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; max-height: min(480px, calc(100vh - 96px)); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); }
.docs-search-results[hidden] { display: none; }
.docs-search-result { display: grid; gap: 3px; padding: 10px 11px; border-radius: 5px; color: var(--text); }
.docs-search-result:hover, .docs-search-result:focus { outline: 0; background: var(--surface-soft); }
.docs-search-result strong { font-size: .84rem; }
.docs-search-result span { overflow: hidden; color: var(--muted); font-size: .75rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.docs-search-message { margin: 0; padding: 12px 11px; color: var(--muted); font-size: .8rem; }
@media (max-width: 760px) { .docs-guide-section { padding: 32px 0; } .docs-table { min-width: 520px; } }


.docs-header {
  top: 16px;
  width: min(1280px, calc(100% - 40px));
  height: 68px;
  margin: 16px auto 0;
  padding: 0 20px;
  grid-template-columns: auto minmax(180px, 300px) 1fr;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: none;
  backdrop-filter: none;
}
.docs-brand { color: var(--text); font-size: 18px; }
.docs-header nav { gap: 9px; }
.docs-header nav > a:not(.login-pill) { height: 42px; padding-inline: 10px; border-radius: 8px; color: var(--text-soft); font-size: 13px; }
.docs-header nav > a:not(.login-pill):hover,
.docs-header nav > a:not(.login-pill)[aria-current="page"] { color: var(--text); background: var(--surface-soft); }
.docs-search, .docs-language, .docs-theme, .docs-header .login-pill { border-radius: 8px; }
.docs-sidebar, .docs-toc { top: 120px; }
@media (max-width: 760px) {
  .docs-header { top: 8px; width: calc(100% - 16px); height: auto; min-height: 58px; margin-top: 8px; padding: 9px 12px; gap: 8px; border-radius: 11px; }
  .docs-brand { font-size: 15px; }
}


.docs-header .login-pill,
.docs-header .public-account-toggle { border-radius: 2px; }



.topbar-primary-link,
.topbar-docs-menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
.topbar-primary-link:hover,
.topbar-primary-link[aria-current="page"],
.topbar-docs-menu > summary:hover,
.topbar-docs-menu > summary[aria-current="page"],
.topbar-docs-menu[open] > summary { color: var(--text); background: var(--surface-soft); }
.topbar-docs-menu { position: relative; display: flex; align-items: center; height: 42px; }
.topbar-docs-menu > summary { gap: 6px; cursor: pointer; list-style: none; user-select: none; }
.topbar-docs-menu > summary::-webkit-details-marker { display: none; }
.topbar-docs-menu > summary::after { content: "⌄"; font-size: 11px; transition: transform .16s ease; }
.topbar-docs-menu[open] > summary::after { transform: rotate(180deg); }
.topbar-docs-menu .modules-menu-panel {
  position: absolute;
  z-index: 100;
  top: calc(100% + 8px);
  left: 0;
  width: 210px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.topbar-docs-menu .modules-menu-title { display: block; padding: 8px 10px 6px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.topbar-docs-menu .modules-menu-panel a { display: flex; align-items: center; min-height: 38px; padding: 0 10px; border-radius: 6px; color: var(--text-soft); font-size: 13px; white-space: nowrap; text-decoration: none; }
.topbar-docs-menu .modules-menu-panel a:hover { color: var(--text); background: var(--surface-soft); }
:root[data-theme="dark"] .topbar-docs-menu .modules-menu-panel { color-scheme: dark; }
@media (max-width: 760px) {
  .topbar-primary-link, .topbar-docs-menu { display: none; }
}


.docs-header nav > .topbar-primary-link { height: 42px; padding-inline: 13px; }
.docs-header nav > .topbar-docs-menu { flex: 0 0 auto; }
