:root {
  color-scheme: light;
  --ink: #15213a;
  --ink-soft: #52627d;
  --ink-muted: #74829a;
  --paper: #f7f9fc;
  --paper-strong: #ffffff;
  --paper-blue: #eef4ff;
  --night: #0b1222;
  --night-soft: #111d34;
  --line: #dfe6f1;
  --line-strong: #c8d3e4;
  --cyan: #087ea4;
  --blue: #315bd6;
  --violet: #6f4bc2;
  --green: #087b55;
  --amber: #9a5d00;
  --container: 1380px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); line-height: 1.65; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #1aaed0; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 8px 12px; color: #fff; background: var(--night); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.guide-container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.guide-header { position: sticky; z-index: 10; top: 0; color: #eaf1ff; background: rgba(11, 18, 34, .97); border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: 0 8px 26px rgba(15,28,56,.12); }
.guide-header-inner { display: flex; min-height: 72px; align-items: center; gap: 28px; }
.guide-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 210px; color: inherit; line-height: 1.1; }
.guide-brand:hover { text-decoration: none; }
.guide-brand strong, .guide-brand small { display: block; }
.guide-brand strong { font-size: 16px; letter-spacing: -.02em; }
.guide-brand small { margin-top: 4px; color: #aebbd1; font-size: 10px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.guide-mark { display: grid; width: 34px; height: 34px; place-items: center; color: #092143; font-weight: 900; background: linear-gradient(135deg,#fff,#83e0f6 62%,#4f74e6); border: 2px solid rgba(255,255,255,.7); border-radius: 10px; box-shadow: 0 0 20px rgba(83,215,255,.28); }
.guide-top-nav { display: flex; flex: 1; justify-content: flex-end; gap: 22px; font-size: 13px; font-weight: 650; }
.guide-top-nav a { color: #c8d5ea; }
.guide-top-nav a:hover { color: #fff; text-decoration: none; }
.sidebar-toggle { display: none; margin-left: auto; padding: 8px 11px; color: #eaf1ff; background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 7px; cursor: pointer; }
.guide-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 42px; align-items: start; }
.guide-sidebar { position: sticky; top: 96px; max-height: calc(100vh - 112px); padding: 30px 0 36px; overflow-y: auto; }
.guide-search { margin-bottom: 27px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.guide-search label { display: block; margin-bottom: 8px; color: var(--ink-muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.guide-search > div:first-of-type { display: flex; }
.guide-search input { width: 100%; min-width: 0; padding: 8px 10px; color: var(--ink); background: var(--paper-strong); border: 1px solid var(--line-strong); border-radius: 7px 0 0 7px; }
.guide-search button { padding: 8px 10px; color: #fff; background: var(--blue); border: 1px solid var(--blue); border-radius: 0 7px 7px 0; cursor: pointer; }
#search-results { margin-top: 8px; font-size: 12px; }
#search-results:empty { display: none; }
.search-result { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); }
.search-result strong, .search-result small { display: block; }
.search-result small { color: var(--ink-muted); }
.nav-group { margin: 0 0 26px; }
.nav-group h2 { margin: 0 0 7px; color: var(--ink-muted); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.nav-group ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-group a { display: block; padding: 6px 9px; color: var(--ink-soft); border-left: 2px solid transparent; border-radius: 0 6px 6px 0; font-size: 13px; line-height: 1.35; }
.nav-group a:hover { color: var(--blue); background: var(--paper-blue); text-decoration: none; }
.nav-group a.is-current { color: var(--blue); font-weight: 750; background: var(--paper-blue); border-left-color: var(--blue); }
.legacy-note { padding: 14px; color: var(--ink-soft); background: #f0f3f8; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; line-height: 1.5; }
.legacy-note strong { color: var(--ink); }
.legacy-note p { margin: 5px 0 0; }
.guide-main { min-width: 0; padding: 31px 0 70px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 30px; color: var(--ink-muted); font-size: 12px; }
.breadcrumbs strong { color: var(--ink-soft); font-weight: 700; }
.page-heading { display: flex; justify-content: space-between; gap: 28px; margin-bottom: 37px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 10px; color: var(--cyan); font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.025em; }
h1 { max-width: 840px; margin: 0; font-size: clamp(32px,4vw,52px); }
.lead { max-width: 780px; margin: 14px 0 0; color: var(--ink-soft); font-size: 18px; line-height: 1.55; }
.page-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; padding-top: 7px; }
.status { display: inline-flex; padding: 4px 9px; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 850; letter-spacing: .04em; white-space: nowrap; }
.status-supported { background: var(--green); }
.status-partial { background: var(--amber); }
.status-preview { background: var(--violet); }
.status-read-only { color: #fff; background: #4f6689; }
.status-desktop-only, .status-web-only { color: #17304e; background: #c9e7f0; }
.verified { color: var(--ink-muted); font-size: 11px; white-space: nowrap; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 38px; }
.markdown-body { min-width: 0; font-size: 16px; }
.markdown-body > :first-child { margin-top: 0; }
.markdown-body h2 { margin: 45px 0 15px; padding-top: 8px; font-size: 28px; border-top: 1px solid var(--line); }
.markdown-body h3 { margin: 31px 0 11px; font-size: 21px; }
.markdown-body h4 { margin: 25px 0 8px; font-size: 17px; }
.markdown-body p { margin: 0 0 16px; }
.markdown-body ul, .markdown-body ol { margin: 0 0 19px; padding-left: 25px; }
.markdown-body li + li { margin-top: 5px; }
.markdown-body li::marker { color: var(--cyan); }
.markdown-body strong { color: #0f1b32; }
.markdown-body blockquote { margin: 20px 0; padding: 14px 18px; color: #405474; background: var(--paper-blue); border-left: 4px solid var(--cyan); border-radius: 0 8px 8px 0; }
.markdown-body hr { margin: 35px 0; border: 0; border-top: 1px solid var(--line); }
.markdown-body img { max-width: 100%; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 35px rgba(35,58,94,.08); }
.markdown-body figure { margin: 26px 0 30px; }
.markdown-body figure img { display: block; margin-inline: auto; }
.markdown-body figure figcaption { margin-top: 10px; color: var(--ink-muted); font-size: 13px; line-height: 1.5; text-align: center; }
.markdown-body figure.figure-wide img { width: 100%; }
.markdown-body .mermaid-block { margin: 19px 0 23px; padding: 16px; overflow-x: auto; background: var(--paper-strong); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 12px 28px rgba(12,27,55,.1); }
.markdown-body .mermaid-block .mermaid { margin: 0; text-align: center; background: transparent; }
.markdown-body .mermaid-block .mermaid svg { max-width: 100%; height: auto; }
.markdown-body table { width: 100%; margin: 20px 0 25px; border-collapse: collapse; font-size: 14px; }
.markdown-body th, .markdown-body td { padding: 10px 11px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.markdown-body th { color: #203355; background: #eaf0f9; font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.markdown-body tr:nth-child(even) td { background: #fbfcfe; }
.markdown-body code { padding: 2px 5px; color: #263a67; background: #e9eff8; border-radius: 4px; font-size: .9em; }
.code-block { position: relative; margin: 19px 0 23px; }
.code-block pre { margin: 0; padding: 18px 18px 18px; overflow-x: auto; color: #eaf2ff; background: #101a2e; border: 1px solid #243554; border-radius: 9px; box-shadow: 0 12px 28px rgba(12,27,55,.1); }
.code-block code { padding: 0; color: inherit; background: transparent; border-radius: 0; font: 13px/1.65 "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.copy-code { position: absolute; z-index: 1; top: 8px; right: 8px; padding: 4px 8px; color: #c7d7f1; background: #1c2b49; border: 1px solid #435878; border-radius: 5px; cursor: pointer; font-size: 11px; }
.copy-code:hover, .copy-code.is-copied { color: #fff; background: var(--blue); border-color: var(--blue); }
.heading-anchor { display: inline-block; width: 24px; margin-left: -24px; padding-right: 6px; color: #9caac0; opacity: 0; font-size: .8em; text-decoration: none; }
.markdown-body h2:hover .heading-anchor, .markdown-body h3:hover .heading-anchor, .markdown-body h4:hover .heading-anchor, .heading-anchor:focus { opacity: 1; }
.page-toc { position: sticky; top: 104px; align-self: start; padding: 13px 0 13px 17px; border-left: 1px solid var(--line); font-size: 12px; }
.toc-title { margin-bottom: 9px; color: var(--ink-muted); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.page-toc ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.page-toc a { display: block; color: var(--ink-soft); line-height: 1.35; }
.page-toc a:hover { color: var(--blue); }
.page-toc .toc-level-3 { padding-left: 10px; }
.page-footer-nav { display: flex; justify-content: space-between; gap: 15px; margin-top: 56px; padding-top: 19px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.guide-footer { color: #aebbd1; background: var(--night); font-size: 12px; }
.guide-footer .guide-container { display: flex; justify-content: space-between; gap: 18px; padding: 19px 0; }
.guide-footer a { color: #d8e5fb; }

@media (max-width: 1040px) {
  .guide-layout { grid-template-columns: 230px minmax(0,1fr); gap: 28px; }
  .content-layout { display: block; }
  .page-toc { display: none; }
}

@media (max-width: 760px) {
  .guide-container { width: min(100% - 28px, var(--container)); }
  .guide-header-inner { min-height: 64px; gap: 10px; }
  .guide-brand { min-width: 0; }
  .guide-top-nav { display: none; }
  .sidebar-toggle { display: none; }
  .guide-layout { display: block; }
  .guide-sidebar { position: static; max-height: none; padding: 16px 0 0; }
  body.js .guide-top-nav { display: none; }
  body.js .sidebar-toggle { display: block; }
  body.js .guide-sidebar { display: none; }
  body.js .guide-sidebar.is-open { display: block; }
  .guide-main { padding-top: 22px; }
  .page-heading { display: block; margin-bottom: 26px; }
  .page-badges { align-items: flex-start; flex-direction: row; flex-wrap: wrap; margin-top: 16px; }
  h1 { font-size: 34px; }
  .lead { font-size: 16px; }
  .markdown-body { font-size: 15px; }
  .markdown-body table { display: block; overflow-x: auto; white-space: normal; }
  .page-footer-nav, .guide-footer .guide-container { flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #f4f7ff;
    --ink-soft: #aeb8ca;
    --ink-muted: #77849b;
    --paper: #080d1a;
    --paper-strong: #0e1627;
    --paper-blue: #121d32;
    --line: rgba(173, 192, 224, 0.15);
    --line-strong: rgba(173, 192, 224, 0.28);
    --cyan: #52d7ff;
    --blue: #8ea6ff;
    --violet: #aa8cff;
    --green: #6de0b1;
    --amber: #f7c66b;
  }
  .markdown-body strong { color: #eaf1ff; }
  .markdown-body code { color: #c7d9f5; background: #16233d; }
  .markdown-body th { color: #d5e1f5; background: #15233c; }
  .markdown-body tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
  .legacy-note { color: var(--ink-soft); background: #0f1a2e; border-color: var(--line); }
  .nav-group a:hover, .nav-group a.is-current { color: var(--cyan); }
  .guide-search input { color: var(--ink); background: var(--paper-strong); border-color: var(--line-strong); }
  .markdown-body figure img { border-color: var(--line); box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4); }
  .page-toc { border-left-color: var(--line); }
  .mermaid-block { background: var(--paper-strong); border-color: var(--line); }
}
