/* Shared public-site palette. Brand artwork and product screenshots stay original. */
:root {
  --site-bg: #fff;
  --site-surface: #f7f7f6;
  --site-hover: #f0f0ee;
  --site-ink: #222225;
  --site-muted: #6c6c74;
  --site-line: #e9e9ed;
  --site-link: #542dff;
  --site-header: #ffffffed;
  color-scheme: light;
}
:root[data-docs-theme=dark] {
  --site-bg: #111110;
  --site-surface: #191918;
  --site-hover: #292928;
  --site-ink: #f4f4f0;
  --site-muted: #aaa9a3;
  --site-line: #30302d;
  --site-link: #bda8ff;
  --site-header: #111110ed;
  --muted: var(--site-muted);
  --line: var(--site-line);
  --soft: var(--site-surface);
  color-scheme: dark;
}
html[data-docs-theme], html[data-docs-theme] body {
  background: var(--site-bg);
  color: var(--site-ink);
}
html[data-docs-theme] .site-header {
  background: var(--site-header);
}

/* One native action for the other theme, and a separate device-theme reset. */
.docs-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--site-line);
  border-radius: 24px;
  background: transparent;
  color: var(--site-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  touch-action: manipulation;
}
.docs-theme-toggle .theme-sun { display: none; }
[data-docs-theme=dark] .docs-theme-toggle .theme-sun { display: block; }
[data-docs-theme=dark] .docs-theme-toggle .theme-moon { display: none; }
.docs-theme-toggle svg { flex: none; }
.site-theme-menu {
  border-top: 1px solid var(--site-line);
  margin-top: 6px;
  padding-top: 6px;
}
.site-theme-menu .docs-theme-toggle {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding: 8px 14px;
  margin: 0;
  border: 0;
  border-radius: 6px;
}
.site-theme-system {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.site-theme-menu .site-theme-system {
  width: 100%;
  padding: 8px 14px;
  font-size: 13px;
}
.site-footer .links { align-items: center; flex-wrap: wrap; row-gap: 4px; }
.site-footer .site-theme-system { text-decoration: underline; text-underline-offset: 3px; }
.docs-theme-toggle:focus-visible, .site-theme-system:focus-visible {
  outline: 2px solid var(--site-link);
  outline-offset: 3px;
}
.docs-theme-toggle:active, .site-theme-system:active { background: var(--site-hover); }

/* Use the supplied white lockup in dark mode, including compact mobile headers. */
.site-header .home .brand-dark, .site-header .home .brand-compact { display: none; }
html[data-docs-theme=dark] .site-header .home .brand-light { display: none; }
html[data-docs-theme=dark] .site-header .home .brand-dark { display: block; }

/* The compact homepage install section does not load the docs stylesheet. */
.landing-install .quick-setup { margin-block: 22px 0; }
.landing-install .install-note { color: var(--site-muted); font-size: 13px; line-height: 1.8; }

/* Replace fixed light surfaces; original logos never receive invert filters. */
[data-docs-theme=dark] :is(.skip, .mobile-menu-button, .mobile-navigation, .prompt, .copy, .directory-tools input, .directory-tools select, .guide-search input) {
  background: var(--site-surface);
  color: var(--site-ink);
  border-color: var(--site-line);
}
[data-docs-theme=dark] :is(.hero .fine, .hero .arabic-line, .preview figcaption, .product-tour figcaption, .product-tour figcaption span:first-child, .free-label, .cv-benefits p, .connect-existing, .tabbio-section .tabbio-detail, .identity-option p, .hero-access, .hero-explainer, .creator-credit, .creator-handle, .site-footer, .update-label, .source-status, .pack-coverage li, .guide-search p, .guide-link p, .guide-support p, .guide-nav-group a, .breadcrumbs, .breadcrumbs a, .guide-head>p, .guide-body>p, .guide-body ul, .guide-body ol, .guide-body blockquote, .guide-page-contents a, .guide-next>span, .guide-related>span, .guide-source, .guide-all, .about-author-link>span>span) {
  color: var(--site-muted);
}
[data-docs-theme=dark] :is(.agent-name, .creator-handle strong, .benefit-brands, .pack-meta strong, .guide-nav-group>span, .guide-body strong, .guide-code pre, .guide-next, .about-author-link>span>strong) {
  color: var(--site-ink);
}
[data-docs-theme=dark] :is(.step, .free-label, .identity-option, .pack-coverage, .quick-setup, .guide-category, .guide-link, .guide-support, .guide-next, .guide-mobile-contents, .guide-mobile-nav, .guide-mobile-nav>nav, .guide-body blockquote, .guide-body img, .preview>a, .tour-frame) {
  border-color: var(--site-line);
}
[data-docs-theme=dark] :is(.tabbio-detail a, .pack-actions a, .data-preview td a, .guide-body a:not(.button)) { color: var(--site-link); }
[data-docs-theme=dark] :is(.hero-access a, .hero-explainer, .cv-benefits p a) { text-decoration-color: #77776f; }
[data-docs-theme=dark] :is(.button.secondary, .guide-body a.button.secondary) {
  background: var(--site-surface);
  color: var(--site-ink);
  border-color: var(--site-line);
  box-shadow: none;
}
[data-docs-theme=dark] .hero .button {
  background: #f4f4f0;
  border-color: #f4f4f0;
  color: #191918;
  box-shadow: none;
}
[data-docs-theme=dark] :is(.badge, .notice) {
  background: #242030;
  color: #d0c6ec;
  border-color: #3c354e;
}
[data-docs-theme=dark] :is(.tabset button[aria-selected=true], .guide-nav-group a[aria-current=page]) {
  background: var(--site-hover);
  color: var(--site-ink);
  box-shadow: none;
}
[data-docs-theme=dark] :is(.guide-code, .guide-body :not(pre)>code, .data-preview th) {
  background: var(--site-surface);
  color: var(--site-ink);
  border-color: var(--site-line);
}
[data-docs-theme=dark] .guide-code .copy { background: var(--site-hover); border-color: var(--site-line); color: var(--site-ink); }
[data-docs-theme=dark] .data-preview th { color: var(--site-muted); }
[data-docs-theme=dark] .tour-frame { background: var(--site-surface); box-shadow: 0 12px 36px -24px #0008; }
[data-docs-theme=dark] .toast { background: #eeeeea; color: #191918; }
[data-docs-theme=dark] .site-header .language-switch { background: var(--site-surface); border-color: var(--site-line); }
[data-docs-theme=dark] .site-header .language-switch a { color: var(--site-muted); }
[data-docs-theme=dark] .site-header .language-switch a[aria-current=page] { background: var(--site-hover); color: var(--site-ink); border-color: #454542; box-shadow: none; }
[data-docs-theme=dark] :is(.directory-tools input, .guide-search input)::placeholder { color: var(--site-muted); opacity: 1; }

/* Transparent MCP artwork follows the page theme without a tile or border. */
img[src="/brands/mcp-mark.svg"] { background: none; border: 0; border-radius: 0; box-shadow: none; }
[data-docs-theme=dark] img[src="/brands/mcp-mark.svg"] { filter: invert(1); }

/* The original OpenAI SVG supplies its own light and dark artwork. */
html[data-docs-theme=light] img[src="/brands/chatgpt.svg"] { color-scheme: light; }
html[data-docs-theme=dark] img[src="/brands/chatgpt.svg"] { color-scheme: dark; }
.hero .agent-options { display: inline; white-space: nowrap; }
.hero .agent-name { display: inline; vertical-align: baseline; white-space: nowrap; }
.hero .agent-name img { display: inline-block; margin-inline-end: 6px; }
.hero .agent-name img[src="/brands/chatgpt.svg"] { width: 22px; height: 22px; vertical-align: -5px; }
.hero .agent-name img[src="/brands/claude.svg"] { width: 19px; height: 19px; vertical-align: -3px; }
/* Monochrome UAE PASS is explicitly requested for dark backgrounds. */
[data-docs-theme=dark] img[src="/brands/uae-pass-original.png"] { filter: brightness(0) invert(1); }

@media (hover: hover) and (pointer: fine) {
  .docs-theme-toggle:hover, .site-theme-system:hover { background: var(--site-hover); }
  [data-docs-theme=dark] a:not(.button):hover { color: var(--site-link); }
  [data-docs-theme=dark] :is(.copy:hover, .button.secondary:hover, .directory-row:hover, .mobile-navigation a:hover, .guide-nav-group a:hover) { background: var(--site-hover); color: var(--site-ink); }
  [data-docs-theme=dark] :is(.creator-handle:hover strong, .hero-explainer:hover, .guide-page-contents a:hover, .about-author-link:hover strong) { color: var(--site-ink); }
  [data-docs-theme=dark] .hero .button:hover { background: #dddcd6; border-color: #dddcd6; color: #191918; }
  [data-docs-theme=dark] .site-header .language-switch a:not([aria-current]):hover { background: var(--site-hover); color: var(--site-ink); }
}
@media (max-width: 900px) {
  .site-header:not(.docs-header) .header-controls>.docs-theme-toggle { display: none; }
}
@media (max-width: 600px) {
  .docs-header .docs-header-actions>.docs-theme-toggle { display: none; }
}
@media (max-width: 480px) {
  html[data-docs-theme] .docs-header .home :is(.brand-light, .brand-dark) { display: none; }
  html[data-docs-theme] .docs-header .home .brand-compact-light { display: block; width: 32px; height: 24px; }
  html[data-docs-theme] .docs-header .home .brand-compact-dark { display: none; }
  html[data-docs-theme=dark] .docs-header .home .brand-compact-light { display: none; }
  html[data-docs-theme=dark] .docs-header .home .brand-compact-dark { display: block; width: 32px; height: 24px; }
}
@media (max-width: 380px) {
  html[data-docs-theme] .site-header:not(.docs-header) .home :is(.brand-light, .brand-dark) { display: none; }
  html[data-docs-theme] .site-header:not(.docs-header) .home .brand-compact-light { display: block; width: 32px; height: 24px; }
  html[data-docs-theme] .site-header:not(.docs-header) .home .brand-compact-dark { display: none; }
  html[data-docs-theme=dark] .site-header:not(.docs-header) .home .brand-compact-light { display: none; }
  html[data-docs-theme=dark] .site-header:not(.docs-header) .home .brand-compact-dark { display: block; width: 32px; height: 24px; }
}
@media (prefers-reduced-transparency: reduce) {
  html[data-docs-theme] .site-header { background: var(--site-bg); backdrop-filter: none; }
}
@media (forced-colors: active) {
  html[data-docs-theme], html[data-docs-theme] body, html[data-docs-theme] .site-header { background: Canvas; color: CanvasText; }
  .docs-theme-toggle, .site-theme-system { color: ButtonText; border-color: ButtonText; }
  .docs-theme-toggle:focus-visible, .site-theme-system:focus-visible { outline-color: Highlight; }
}

/* Coarse-pointer directory controls keep native zoom and generous tap targets. */
@media(pointer:coarse){
 .directory-tools input,.directory-tools select,.guide-search input{font-size:16px;min-height:44px}
 .data-preview td a,.pack-actions a,.toc a{display:inline-flex;align-items:center;min-height:44px}
}

/* Real paste-only recording, with rounded artwork and system motion preferences. */
.agent-install-demo{width:100%;max-width:600px;margin:20px 0 0}
.agent-demo-frame{overflow:hidden;border-radius:12px;background:var(--site-surface,var(--soft))}
.agent-demo-image{display:block;width:100%;max-width:100%;height:auto;border-radius:12px}
.agent-install-demo figcaption{margin-top:8px;font-size:13px;line-height:1.6;color:var(--site-muted,var(--muted))}

/* Quiet support and review metadata, using the existing site palette. */
.contribution-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 36px;margin-block:28px}
.contribution-grid article{border-block-start:1px solid var(--site-line);padding-block-start:18px;min-width:0}
.contribution-grid h3{font-size:17px;line-height:1.45;margin:0 0 8px}
.contribution-grid p{color:var(--site-muted);font-size:14px;line-height:1.8;margin:0 0 6px}
.contribution-grid a,.contribution-links a{display:inline-flex;align-items:center;min-height:44px;gap:6px;color:var(--site-link);font-size:14px;text-underline-offset:4px}
.contribution-section>.contribution-note{color:var(--site-muted);font-size:13px;line-height:1.8;margin-block:10px}
.contribution-links{display:flex;align-items:center;flex-wrap:wrap;gap:0 24px;margin-block-start:14px}
@media(max-width:600px){.contribution-grid{grid-template-columns:1fr;gap:14px}.contribution-grid h3{font-size:16px}.contribution-links{gap:0 18px}}
.faq-help{margin-top:24px;font-size:14px;line-height:1.75}
.faq-help>a,.guide-source-actions>a{display:inline-flex;align-items:center;min-height:44px;text-underline-offset:4px}
.faq-help>p,.guide-source>p{margin:4px 0 0;color:var(--site-muted);font-size:13px;line-height:1.75}
.guide-source-actions{display:flex;align-items:center;flex-wrap:wrap;gap:0 22px}
.guide-head>.guide-reviewed,.docs-page .guide-head>.guide-reviewed,.page-head>.policy-reviewed{margin-top:14px;font-size:13px;line-height:1.7;color:var(--site-muted)}

/* Adapt Amicro's short, precise feedback without adding component dependencies. */
:root{--site-ease-out:cubic-bezier(.16,1,.3,1)}
:is(.button,.copy,.docs-theme-toggle,.site-theme-system,.docs-search-trigger,.docs-menu-trigger,.mobile-menu-button){transition:background-color 160ms var(--site-ease-out),border-color 160ms var(--site-ease-out),color 160ms var(--site-ease-out),transform 150ms var(--site-ease-out)}
.copy,.skills-overview .copy{inline-size:80px;min-inline-size:80px;max-inline-size:80px;flex:0 0 80px;text-align:center}
:is(.guide-nav-group a,.docs-search-results a,.mobile-navigation a,.docs-mobile-navigation a,.skills-guide-card){transition:background-color 160ms var(--site-ease-out),border-color 160ms var(--site-ease-out),color 160ms var(--site-ease-out)}
:is(a,button,input,select,summary):focus-visible{outline:2px solid var(--site-link);outline-offset:3px}
.docs-search[open],.mobile-navigation:popover-open,.docs-mobile-navigation:popover-open{animation:site-surface-enter 180ms var(--site-ease-out)}
@keyframes site-surface-enter{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(hover:hover) and (pointer:fine){
  .docs-theme-toggle:hover,.site-theme-system:hover{background:var(--site-hover)}
  .faq summary:hover{color:var(--site-link)}
}
@media(prefers-reduced-motion:reduce){
  :is(.button,.copy,.docs-theme-toggle,.site-theme-system,.docs-search-trigger,.docs-menu-trigger,.mobile-menu-button,.guide-nav-group a,.docs-search-results a,.mobile-navigation a,.docs-mobile-navigation a,.skills-guide-card){transition:none!important}
  .docs-search[open],.mobile-navigation:popover-open,.docs-mobile-navigation:popover-open{animation:none!important}
  button:active,.button:active{transform:none!important}
}

/* Copyable research requests remain readable on narrow screens. */
.resource-article .guide-code{direction:inherit}
.resource-article .guide-code pre,.resource-article .guide-code code{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;direction:inherit;text-align:start;font-size:14px;line-height:1.9}
html[lang=ar] .resource-article .guide-code pre[dir],html[lang=ar] .resource-article .guide-code pre[dir] code{direction:rtl;text-align:start;unicode-bidi:plaintext}


/* The language picker shares the header control's quiet outline and round shape. */
.site-header .language-switch,
[data-docs-theme=dark] .site-header .language-switch{
 display:inline-flex;align-items:center;gap:0;padding:0;border:0;border-radius:24px;
 background:transparent;box-shadow:inset 0 0 0 1px var(--site-line);direction:ltr;isolation:isolate;
}
.site-header .language-switch a{
 min-height:44px;min-width:44px;padding:8px 12px;border:0;border-radius:24px;
 font-size:12px;font-weight:500;color:var(--site-muted);background:transparent;box-shadow:none;
}
.site-header .language-switch a[aria-current=page],
[data-docs-theme=dark] .site-header .language-switch a[aria-current=page]{
 color:var(--site-ink);background:var(--site-hover);border:0;box-shadow:none;font-weight:600;
}
@media(hover:hover) and (pointer:fine){
 .site-header .language-switch a:not([aria-current]):hover{background:var(--site-hover);color:var(--site-ink)}
}
@media(forced-colors:active){
 .site-header .language-switch{outline:1px solid ButtonText}
 .site-header .language-switch a[aria-current=page]{background:Highlight;color:HighlightText}
}

/* Supporting agent tip stays compact beside the setup instructions. */
.agent-install-demo{width:min(100%,360px);max-width:360px;margin-block-start:16px}
.agent-install-demo figcaption{font-size:12px}
@media(max-width:600px){.agent-install-demo{width:min(100%,280px);max-width:280px}.agent-demo-frame,.agent-demo-image{border-radius:10px}}
