@import url("theme-tokens.css");
.theme-toggle{display:inline-grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:0;border:1px solid #e2dbe9;border-radius:8px;background:#fff;color:#7542b7;cursor:pointer;vertical-align:middle}
.mobile-doc-navigation{display:none}
.documentation-page .sidebar-brand{display:none}
@media(min-width:1191px){.documentation-page .layout,.documentation-page.is-home .layout{grid-template-columns:215px minmax(0,1fr);max-width:1240px;gap:48px}}
.theme-toggle:hover{background:#f5f0fc}.theme-toggle:focus-visible{outline:3px solid #b598df;outline-offset:3px}.theme-toggle svg{display:block;pointer-events:none}.auth-actions{display:flex;align-items:center;gap:12px}
:root[data-theme=dark]{color-scheme:dark}
[data-theme=dark] .theme-toggle{background:var(--palette-card);color:var(--purple);border-color:#48414f}[data-theme=dark] .theme-toggle:hover{background:var(--soft)}
[data-theme=dark] .documentation-page{background:var(--palette-bg);color:var(--ink)}
[data-theme=dark] .documentation-page .header,[data-theme=dark] .documentation-page .sidebar{background:var(--palette-sidebar)}
@media(min-width:821px){[data-theme=dark] .documentation-page .sidebar{background:transparent}}
[data-theme=dark] .documentation-page p,[data-theme=dark] .documentation-page li,[data-theme=dark] .documentation-page td,[data-theme=dark] .documentation-page .lead,[data-theme=dark] .documentation-page .entry-card p,[data-theme=dark] .documentation-page .home-intro>p{color:var(--muted)}
[data-theme=dark] .documentation-page strong,[data-theme=dark] .documentation-page summary,[data-theme=dark] .documentation-page .nav-group h2,[data-theme=dark] .documentation-page .toc p,[data-theme=dark] .documentation-page td:first-child{color:var(--ink)}
[data-theme=dark] .documentation-page .brand,[data-theme=dark] .documentation-page h1,[data-theme=dark] .documentation-page h2,[data-theme=dark] .documentation-page h3{color:var(--ink)}
[data-theme=dark] .documentation-page .nav-group a,[data-theme=dark] .documentation-page .toc a,[data-theme=dark] .documentation-page .entry-top small,[data-theme=dark] .documentation-page .home-kicker,[data-theme=dark] .documentation-page .page-footer a{color:var(--muted)}
[data-theme=dark] .documentation-page .nav-group a.active,[data-theme=dark] .documentation-page .nav-group a:hover{background:var(--soft);color:var(--purple)}
[data-theme=dark] .documentation-page .toc a.active{background:transparent;color:var(--purple)}
.documentation-page ::selection{background:#e8d9ff;color:#282433;text-shadow:none}
[data-theme=dark] .documentation-page ::selection{background:#644785;color:#fff;text-shadow:none}
[data-theme=dark] .documentation-page .entry-card,[data-theme=dark] .documentation-page .card,[data-theme=dark] .documentation-page .command-block,[data-theme=dark] .documentation-page .table-wrap,[data-theme=dark] .documentation-page .next-page,[data-theme=dark] .documentation-page dialog{background:var(--palette-card);border-color:var(--line);color:var(--ink)}
[data-theme=dark] .documentation-page .entry-card:hover,[data-theme=dark] .documentation-page .card:hover{background:var(--soft);border-color:var(--accent-solid)}
[data-theme=dark] .documentation-page .search-trigger,[data-theme=dark] .documentation-page kbd,[data-theme=dark] .documentation-page #menu-toggle,[data-theme=dark] .documentation-page .search-head,[data-theme=dark] .documentation-page .search-foot,[data-theme=dark] .documentation-page input{background:var(--palette-card);color:var(--ink);border-color:var(--line)}
[data-theme=dark] .documentation-page .code-label,[data-theme=dark] .documentation-page th{background:var(--design-field);color:var(--muted);border-color:var(--line)}
[data-theme=dark] .documentation-page pre,[data-theme=dark] .documentation-page code{color:var(--purple)}
[data-theme=dark] .documentation-page p code,[data-theme=dark] .documentation-page li code,[data-theme=dark] .documentation-page td code,[data-theme=dark] .documentation-page .authorize,[data-theme=dark] .documentation-page .badge{background:var(--soft);border-color:var(--line);color:var(--purple)}
[data-theme=dark] .documentation-page .command-block pre code{background:transparent;border:0}
[data-theme=dark] .documentation-page .copy{color:var(--purple)}[data-theme=dark] .documentation-page .callout{background:var(--soft);border-color:var(--line)}[data-theme=dark] .documentation-page .callout.neutral{background:var(--palette-card);border-color:var(--line)}[data-theme=dark] .documentation-page .callout strong{color:var(--purple)}
[data-theme=dark] .documentation-page .steps>li{border-color:var(--line)}[data-theme=dark] .documentation-page .steps>li:before{background:var(--soft);border-color:var(--palette-bg);color:var(--purple)}
[data-theme=dark] .documentation-page .hero{background:var(--soft);border-color:var(--line)}[data-theme=dark] .documentation-page .entry-top svg [fill=white]{fill:var(--soft)}
[data-theme=dark] .documentation-page .search-result,[data-theme=dark] .documentation-page .search-result:hover{color:var(--ink);border-color:var(--line)}[data-theme=dark] .documentation-page .search-result.selected{background:var(--soft)}[data-theme=dark] .documentation-page mark{background:#514060;color:#f1e5ff}
[data-theme=dark] .documentation-page #search-results a{color:var(--ink)}[data-theme=dark] .documentation-page #search-results a small{color:var(--muted)}[data-theme=dark] .documentation-page #search-results a.selected,[data-theme=dark] .documentation-page #search-results a:hover{background:var(--soft)}
[data-theme=dark] .auth-page{background:var(--palette-bg);color:var(--ink)}[data-theme=dark] .auth-page .top,[data-theme=dark] .auth-page main{background:var(--palette-card);border-color:var(--line);box-shadow:none}
[data-theme=dark] .auth-page .brand{color:var(--ink)}[data-theme=dark] .auth-page p,[data-theme=dark] .auth-page .intro,[data-theme=dark] .auth-page .explanation{color:var(--muted)}[data-theme=dark] .auth-page .explanation strong{color:var(--purple)}
[data-theme=dark] .auth-page a{color:var(--purple)}[data-theme=dark] .auth-page .docs-link,[data-theme=dark] .auth-page .button.secondary{background:var(--palette-card);border-color:var(--line);color:var(--purple)}[data-theme=dark] .auth-page .button{background:var(--accent-solid);color:#fff}[data-theme=dark] .auth-page .button:hover{background:#73579c}[data-theme=dark] .auth-page .button.secondary:hover{background:var(--soft)}
[data-theme=dark] .auth-page .divider:before,[data-theme=dark] .auth-page .divider:after{background:var(--line)}[data-theme=dark] .auth-page .foot{color:#ada3b8}
@media(max-width:520px){.theme-toggle{width:34px;height:34px;flex-basis:34px}.auth-actions{gap:8px}.documentation-page .header-actions{gap:8px}}
@media(max-width:820px){.documentation-page .header-actions{display:flex;margin-left:0;gap:0}.documentation-page .header-actions>a{display:none}.documentation-page .header{gap:10px;padding:0 14px}.documentation-page .brand{font-size:20px}.documentation-page .brand img{width:28px;height:28px}.documentation-page .search-trigger{width:32px;flex:0 0 32px}.documentation-page #menu-toggle{width:34px;padding:0}}
@media(max-width:380px){.auth-page .top{padding:14px;gap:8px}.auth-page .brand{font-size:15px}.auth-page .docs-link{font-size:12px;padding:7px 8px}.auth-page .auth-actions{gap:6px}.auth-page .theme-toggle{width:32px;height:32px;flex-basis:32px}}

/* Mobile navigation stays below the brand and utility controls. */
@media(max-width:820px){
  .documentation-page .header{display:grid;grid-template-columns:minmax(0,1fr) 34px 34px;grid-template-rows:62px 54px;height:116px;gap:0 8px;padding:0 18px}
  .documentation-page .brand{margin-right:0;min-width:0}
  .documentation-page .header-actions{margin:0;justify-content:center}
  .documentation-page .search-trigger{width:34px;height:34px}
  .documentation-page .theme-toggle{width:34px;height:34px;border:0;background:transparent;color:var(--muted)}
  .documentation-page .mobile-doc-navigation{display:flex;align-items:center;grid-column:1/-1;gap:12px;min-width:0;height:54px;padding-bottom:8px}
  .documentation-page #menu-toggle{display:grid;place-items:center;flex:0 0 30px;width:30px;height:34px;padding:0;border:0;background:transparent;color:var(--muted)}
  .documentation-page .mobile-doc-breadcrumb{display:flex;align-items:center;gap:10px;min-width:0;font-size:13px;line-height:1.3;color:var(--muted)}
  .documentation-page .mobile-doc-breadcrumb span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .documentation-page #mobile-doc-page{font-weight:600;color:var(--ink)}
  .documentation-page #mobile-doc-chevron{flex-shrink:0}
  .documentation-page #mobile-doc-chevron[hidden]{display:none}
  .documentation-page .sidebar{top:0;height:100dvh;width:min(320px,calc(100vw - 48px));z-index:50;padding:0 20px 24px}
  .documentation-page .sidebar-brand{display:flex;min-height:84px;font-size:22px;padding:20px 2px 28px;margin:0}
  .documentation-page .sidebar-brand img{width:30px;height:30px;object-fit:contain}
  .documentation-page #menu-scrim:not([hidden]){top:0;z-index:45}
  .documentation-page.doc-menu-open{overflow:hidden}
  .documentation-page h1,.documentation-page h2,.documentation-page h3{scroll-margin-top:140px}
}

/* Shared typography and surfaces for docs and every auth/error page. */
.documentation-page,.auth-page{font-family:var(--site-font);background:var(--palette-bg);color:var(--ink)}
.documentation-page .brand,.auth-page .brand,.documentation-page .sidebar-brand{font-family:var(--site-font);font-size:var(--site-brand-size);font-weight:650;letter-spacing:-.5px;color:var(--ink)}
.documentation-page h1,.documentation-page h2,.documentation-page h3,.documentation-page .entry-card h2,.auth-page h1,.auth-page h2{font-family:var(--site-font);color:var(--ink)}
.documentation-page .header,.auth-page .top{background:var(--palette-sidebar);border-color:var(--line)}
.documentation-page .entry-card,.documentation-page .card,.documentation-page .command-block,.documentation-page .table-wrap,.documentation-page dialog,.documentation-page .next-page,.auth-page main{background:var(--palette-card);border-color:var(--line);color:var(--ink)}
.documentation-page .search-trigger,.documentation-page input,.documentation-page .search-head,.documentation-page .search-foot,.documentation-page kbd{background:var(--design-field);color:var(--muted);border-color:var(--line)}
.documentation-page .nav-group a{color:var(--ink)}
.documentation-page .nav-group a.active,.documentation-page .nav-group a:hover{background:var(--soft);color:var(--purple)}
.documentation-page .code-label,.documentation-page th{background:var(--design-field);color:var(--muted)}
.documentation-page p,.documentation-page li,.documentation-page .lead,.documentation-page .entry-card p,.documentation-page .home-intro>p,.auth-page p,.auth-page .intro,.auth-page .explanation{color:var(--muted)}
.documentation-page strong,.documentation-page summary,.documentation-page .nav-group h2,.auth-page .explanation strong{color:var(--ink)}
.theme-toggle,.auth-page .docs-link,.auth-page .button.secondary{background:var(--palette-card);color:var(--purple);border-color:var(--line)}
.auth-page .button{background:var(--accent-solid);color:#fff}
.auth-page .button.secondary{color:var(--purple)}
.auth-page .button.secondary:hover,.theme-toggle:hover{background:var(--soft)}
.auth-page .divider:before,.auth-page .divider:after{background:var(--line)}
.auth-page .foot{color:var(--muted)}
.auth-page .status,.auth-page .status p{text-align:center}
.auth-page .top{flex-wrap:wrap}
.auth-page .auth-actions{flex-shrink:0}
/* Reserve stable columns for search and utilities instead of competing flex widths. */
@media(min-width:821px){
 .documentation-page .header{display:grid;grid-template-columns:220px minmax(180px,480px) max-content;justify-content:space-between;gap:24px;padding-inline:max(28px,calc((100vw - 1364px)/2));}
 .documentation-page .brand{min-width:0;margin:0;white-space:nowrap}
 .documentation-page .search-trigger{width:100%;min-width:0}
 .documentation-page .header-actions{margin:0;gap:12px;white-space:nowrap}
}
@media(min-width:821px) and (max-width:1000px){.documentation-page .header{grid-template-columns:195px minmax(160px,1fr) max-content;gap:16px;padding-inline:24px}.documentation-page .search-trigger kbd{display:none}}
