:root {
  color-scheme: light;
  --blue: #1a73e8;
  --blue-dark: #185abc;
  --blue-soft: #e8f0fe;
  --ink: #202124;
  --muted: #5f6368;
  --subtle: #80868b;
  --border: #dadce0;
  --border-soft: #e8eaed;
  --surface: #f8f9fa;
  --surface-blue: #f6f9fe;
  --green: #137333;
  --yellow: #b06000;
  font-family: Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.7; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }

.skip-link { position: fixed; z-index: 100; top: -50px; left: 16px; padding: 9px 14px; border-radius: 4px; background: var(--blue); color: #fff; }
.skip-link:focus { top: 10px; }

.docs-header {
  height: 64px; position: fixed; z-index: 50; inset: 0 0 auto;
  display: flex; align-items: center; gap: 20px; padding: 0 20px;
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,.97);
}
.docs-brand { min-width: 256px; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.docs-brand:hover { text-decoration: none; }
.brand-cube { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; background: var(--blue); color: #fff; }
.brand-cube svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.docs-brand strong, .docs-brand small { display: block; line-height: 1.15; }
.docs-brand strong { font-size: 15px; letter-spacing: -.01em; }
.docs-brand small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.search-trigger { width: min(520px, 42vw); height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px; background: #f1f3f4; color: var(--muted); text-align: left; cursor: pointer; }
.search-trigger:hover { border-color: var(--border); background: #fff; box-shadow: 0 1px 2px rgba(60,64,67,.16); }
.search-trigger span:nth-child(2) { flex: 1; }
kbd { padding: 2px 6px; border: 1px solid #c7c9cc; border-bottom-width: 2px; border-radius: 4px; background: #fff; color: var(--muted); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.header-links { margin-left: auto; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.header-links a { padding: 8px 10px; border-radius: 4px; color: var(--muted); font-size: 12px; }
.header-links a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.header-links .console-link { border: 1px solid var(--blue); color: var(--blue); font-weight: 600; }
.docs-language { height: 34px; position: relative; display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--muted); }
.docs-language select { height: 100%; min-width: 94px; padding: 0 28px 0 11px; border: 0; outline: 0; appearance: none; background: transparent; color: inherit; cursor: pointer; font: inherit; font-size: 12px; }
.docs-language span { position: absolute; right: 10px; pointer-events: none; font-size: 11px; }
.docs-language:hover { border-color: #aeb4bc; color: var(--ink); }
.mobile-nav-button { display: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }

.docs-shell { min-height: 100vh; padding-top: 64px; }
.docs-sidebar {
  width: 280px; position: fixed; z-index: 30; inset: 64px auto 0 0;
  display: flex; flex-direction: column; overflow-y: auto; border-right: 1px solid var(--border); background: #fff;
}
.docs-sidebar > nav { flex: 1; padding: 18px 12px 28px; }
.docs-sidebar section { margin-bottom: 23px; }
.docs-sidebar h2 { margin: 0 12px 7px; color: var(--subtle); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.docs-sidebar section a { min-height: 34px; padding: 6px 12px; display: flex; align-items: center; border-radius: 0 18px 18px 0; color: #3c4043; font-size: 13px; }
.docs-sidebar section a:hover { background: var(--surface); text-decoration: none; }
.docs-sidebar section a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-dark); font-weight: 600; }
.sidebar-footer { padding: 13px 18px 17px; border-top: 1px solid var(--border-soft); }
.sidebar-footer a { padding: 5px 0; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }

.docs-main { margin-left: 280px; display: grid; grid-template-columns: minmax(0, 820px) 180px; justify-content: center; gap: 68px; padding: 50px 42px 100px; }
.markdown-body { min-width: 0; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; color: var(--subtle); font-size: 12px; }
.breadcrumbs a { color: var(--muted); }
.page-eyebrow { margin: 48px 0 5px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .09em; }
.markdown-body h1 { margin: 0; color: #202124; font-size: 42px; line-height: 1.18; letter-spacing: -.035em; }
.page-description { max-width: 720px; margin: 17px 0 8px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.updated { margin: 0; color: var(--subtle); font-size: 11px; }
.markdown-body hr { height: 1px; margin: 34px 0 42px; border: 0; background: var(--border-soft); }
.markdown-body h2 { margin: 48px 0 16px; padding-top: 2px; color: #202124; font-size: 26px; line-height: 1.3; letter-spacing: -.025em; }
.markdown-body h3 { margin: 31px 0 9px; font-size: 18px; line-height: 1.4; }
.markdown-body p { margin: 0 0 17px; }
.markdown-body ul { margin: 0 0 22px; padding-left: 23px; }
.markdown-body li { margin: 7px 0; }
.markdown-body code { padding: 2px 5px; border-radius: 3px; background: #f1f3f4; color: #c5221f; font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.markdown-body pre { margin: 18px 0 26px; padding: 18px 20px; overflow-x: auto; border: 1px solid #303134; border-radius: 6px; background: #202124; color: #e8eaed; }
.markdown-body pre code { padding: 0; background: transparent; color: inherit; font-size: 13px; line-height: 1.7; }

.quick-actions { display: flex; gap: 9px; margin: 28px 0 8px; }
.quick-actions a { min-height: 38px; padding: 0 15px; display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 4px; color: var(--blue); font-size: 13px; font-weight: 600; }
.quick-actions a:hover { background: var(--surface); text-decoration: none; }
.quick-actions .primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.quick-actions .primary:hover { background: var(--blue-dark); }
.workflow-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.workflow-grid a { min-height: 150px; padding: 20px; border: 1px solid var(--border); border-radius: 8px; color: var(--ink); transition: box-shadow .15s, border-color .15s; }
.workflow-grid a:hover { border-color: #b8c7df; box-shadow: 0 2px 7px rgba(60,64,67,.14); text-decoration: none; }
.workflow-grid span { display: block; color: var(--blue); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.workflow-grid strong { display: block; margin: 17px 0 5px; font-size: 16px; }
.workflow-grid p { margin: 0; color: var(--muted); font-size: 12px; }

table { width: 100%; margin: 18px 0 27px; border-spacing: 0; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; font-size: 13px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); text-align: left; vertical-align: top; }
th { background: var(--surface); color: #3c4043; font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.doc-figure { margin: 30px 0 42px; }
.doc-figure a { display: block; overflow: hidden; border: 1px solid #303134; border-radius: 8px; background: #202124; box-shadow: 0 2px 7px rgba(60,64,67,.16); }
.doc-figure img { width: 100%; height: auto; display: block; }
.doc-figure figcaption { margin-top: 9px; color: var(--subtle); font-size: 11px; text-align: center; }

.callout { margin: 25px 0; padding: 15px 17px; border-left: 4px solid var(--blue); border-radius: 0 4px 4px 0; background: var(--surface-blue); }
.callout strong { color: var(--blue-dark); font-size: 13px; }
.callout p { margin: 3px 0 0; color: #4d5d73; font-size: 13px; }
.callout.tip { border-left-color: #1e8e3e; background: #f0f8f2; }
.callout.tip strong { color: var(--green); }
.callout.tip p { color: #45634c; }
.callout.warning { border-left-color: #f9ab00; background: #fef7e0; }
.callout.warning strong { color: var(--yellow); }
.callout.warning p { color: #6e5b33; }

.doc-steps { margin: 20px 0 28px; padding: 0; counter-reset: guide-step; list-style: none; }
.doc-steps li { position: relative; min-height: 78px; margin: 0; padding: 0 0 25px 56px; counter-increment: guide-step; }
.doc-steps li:not(:last-child)::after { content: ""; position: absolute; top: 36px; bottom: 2px; left: 18px; width: 1px; background: var(--border); }
.doc-steps li::before { content: counter(guide-step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; }
.doc-steps strong { display: block; padding-top: 5px; font-size: 15px; }
.doc-steps p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

.check-list { padding-left: 0 !important; list-style: none; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 700; }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 26px; }
.option-grid > div { padding: 17px; border: 1px solid var(--border); border-radius: 6px; }
.option-grid strong { color: var(--blue); font-size: 16px; }
.option-grid p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.definition-list { margin: 18px 0 26px; border-top: 1px solid var(--border); }
.definition-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.definition-list dt { font-weight: 600; }
.definition-list dd { margin: 0; color: var(--muted); }

.next-page { position: relative; min-height: 125px; margin-top: 55px; padding: 21px 64px 21px 22px; display: block; border: 1px solid var(--border); border-radius: 8px; color: var(--ink); }
.next-page:hover { border-color: #9db9df; box-shadow: 0 2px 7px rgba(60,64,67,.12); text-decoration: none; }
.next-page span { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.next-page strong { display: block; margin: 6px 0 2px; font-size: 17px; }
.next-page p { margin: 0; color: var(--muted); font-size: 12px; }
.next-page b { position: absolute; top: 50%; right: 24px; color: var(--blue); font-size: 23px; transform: translateY(-50%); }

.on-this-page { position: sticky; top: 92px; align-self: start; padding-left: 17px; border-left: 1px solid var(--border); }
.on-this-page strong { display: block; margin-bottom: 9px; color: #3c4043; font-size: 11px; }
.on-this-page nav { display: grid; }
.on-this-page a { padding: 4px 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.on-this-page a:hover, .on-this-page a.active { color: var(--blue); text-decoration: none; }
.on-this-page a.sub { padding-left: 10px; }

.search-dialog[hidden] { display: none; }
.search-dialog { position: fixed; z-index: 90; inset: 0; display: grid; place-items: start center; padding-top: 10vh; }
.search-backdrop { position: absolute; inset: 0; border: 0; background: rgba(32,33,36,.52); }
.search-dialog section { width: min(650px, calc(100% - 30px)); position: relative; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 18px 60px rgba(32,33,36,.32); }
.search-dialog label { height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.search-dialog input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 16px; }
.search-results { max-height: 410px; overflow-y: auto; padding: 9px; }
.search-results a { display: block; padding: 12px; border-radius: 6px; color: var(--ink); }
.search-results a:hover, .search-results a.selected { background: var(--surface); text-decoration: none; }
.search-results strong, .search-results span { display: block; }
.search-results strong { font-size: 13px; }
.search-results span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.search-empty { padding: 30px; color: var(--muted); text-align: center; }

@media (max-width: 1180px) {
  .docs-main { grid-template-columns: minmax(0, 800px); }
  .on-this-page { display: none; }
  .header-links a:not(.console-link) { display: none; }
}
@media (max-width: 850px) {
  .docs-header { gap: 10px; padding: 0 12px; }
  .mobile-nav-button { display: block; order: -1; }
  .docs-brand { min-width: 0; }
  .docs-brand small { display: none; }
  .search-trigger { margin-left: auto; width: 44px; justify-content: center; }
  .search-trigger span:nth-child(2), .search-trigger kbd { display: none; }
  .header-links { margin-left: 0; }
  .docs-language select { min-width: 86px; }
  .header-links .console-link { padding: 7px 9px; }
  .docs-sidebar { transform: translateX(-101%); transition: transform .18s ease; box-shadow: 4px 0 18px rgba(60,64,67,.15); }
  body.nav-open .docs-sidebar { transform: translateX(0); }
  .docs-main { margin-left: 0; padding: 38px 28px 80px; }
}
@media (max-width: 600px) {
  .docs-brand strong { font-size: 13px; }
  .header-links .console-link { font-size: 11px; }
  .docs-main { padding: 26px 18px 65px; }
  .page-eyebrow { margin-top: 34px; }
  .markdown-body h1 { font-size: 34px; }
  .page-description { font-size: 16px; }
  .workflow-grid, .option-grid { grid-template-columns: 1fr; }
  .quick-actions { align-items: stretch; flex-direction: column; }
  .quick-actions a { justify-content: center; }
  .definition-list > div { grid-template-columns: 1fr; gap: 3px; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .doc-figure { margin-inline: -6px; }
}
