.cg-root {
    --cg-ink: #243a36;
    --cg-muted: #62756f;
    --cg-line: #dce6e1;
    --cg-green: #25715b;
    --cg-soft: #f2f7f4;
    color: var(--cg-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.75;
    text-align: left;
}
.cg-root *, .cg-root *::before, .cg-root *::after { box-sizing: border-box; }
.cg-root button, .cg-root input, .cg-root select { font: inherit; }
.cg-root button, .cg-root a { -webkit-tap-highlight-color: transparent; }
.cg-root button:focus-visible, .cg-root a:focus-visible, .cg-root input:focus-visible, .cg-root select:focus-visible,
.cg-directory-entry:focus-visible, .cg-inspector-entry:focus-visible { outline: 3px solid #79b9a5; outline-offset: 3px; }
.sidebar-header .sidebar-brand { font-size: 19px; gap: 7px; white-space: nowrap; flex-shrink: 0; }
.cg-directory-entry { margin-left: auto; padding: 5px 4px; border-radius: 6px; color: #28644f; background: #eef5f1; text-decoration: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
.cg-inspector-entry { display: flex; justify-content: flex-end; flex-shrink: 0; padding: 6px 12px; color: #557568; background: #fff; border-bottom: 1px solid #e6ece8; text-decoration: none; font-size: 12px; font-weight: 500; cursor: pointer; }
.cg-inspector-entry[hidden] { display: none; }
.cg-inspector-entry:hover { color: #27644f; background: #f7faf8; }
.floating-inspector.cg-has-guide { grid-template-rows: auto auto minmax(0, 1fr); }
.cg-panel { position: fixed; z-index: 3600; top: 76px; right: 344px; width: 404px; height: min(740px, calc(100dvh - 104px)); min-height: 280px; min-width: 310px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); display: flex; flex-direction: column; overflow: hidden; resize: both; border: 1px solid #d5e0d9; border-radius: 14px; background: #fff; box-shadow: 0 18px 56px #263d3426, 0 3px 12px #263d3410; }
.cg-panel[hidden] { display: none; }
.cg-panel-header { display: flex; align-items: center; flex: 0 0 auto; gap: 12px; min-height: 51px; padding: 12px 16px; border-bottom: 1px solid var(--cg-line); }
.cg-panel .cg-panel-header { cursor: grab; touch-action: none; user-select: none; }
.cg-panel-header strong { margin-right: auto; font-size: 15px; }
.cg-close { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #567167; border-radius: 6px; font-size: 25px !important; line-height: 1; cursor: pointer; }
.cg-close:hover { background: var(--cg-soft); }
.cg-text-link { color: var(--cg-muted); text-decoration: none; font-size: 12px; white-space: nowrap; }
.cg-layout { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.cg-navigation { padding: 14px 18px 8px; flex-shrink: 0; border-bottom: 1px solid var(--cg-line); }
.cg-search-label { display: block; color: var(--cg-muted); font-size: 11px; font-weight: 500; }
.cg-search { display: block; width: 100%; height: 39px; margin-top: 4px; padding: 7px 11px; color: var(--cg-ink); background: #fff; border: 1px solid #cad9d1; border-radius: 7px; font-size: 13px !important; }
.cg-search::placeholder { color: #7b8d84; }
.cg-category-select { width: 100%; padding: 5px 8px; margin-top: 9px; border: 1px solid var(--cg-line); border-radius: 6px; color: #50675c; background: #fbfcfb; font-size: 12px !important; }
.cg-tabs { display: flex; gap: 15px; padding-top: 9px; }
.cg-tabs button { padding: 5px 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--cg-muted); font-size: 12px; cursor: pointer; }
.cg-tabs button[aria-pressed="true"] { color: var(--cg-green); border-bottom-color: var(--cg-green); font-weight: 700; }
.cg-result-count { margin: 7px 0 0; color: #7a8c82; font-size: 11px; }
.cg-content { min-width: 0; min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; padding: 18px; scrollbar-width: thin; }
.cg-content:focus { outline: none; }
.cg-content h1, .cg-content h2, .cg-content h3, .cg-content p { overflow-wrap: anywhere; }
.cg-content h1 { margin: 3px 0 0; color: var(--cg-ink); font-size: 25px; line-height: 1.35; letter-spacing: -.03em; }
.cg-content h2 { margin: 0 0 13px; font-size: 16px; font-weight: 650; }
.cg-back { border: 0; padding: 0; background: none; color: var(--cg-muted); font-size: 12px !important; cursor: pointer; }
.cg-back:hover, .cg-text-link:hover { color: var(--cg-green); }
.cg-article-heading { display: flex; align-items: center; gap: 16px; padding: 22px 0 15px; }
.cg-preview { display: block; width: 84px; height: 60px; flex: 0 0 auto; object-fit: contain; background: #f7f9f8; border-radius: 8px; }
.cg-eyebrow { margin: 0; font-size: 11px; color: var(--cg-muted); letter-spacing: .04em; }
.cg-purpose { margin: 0 0 25px; color: #526b5e; line-height: 1.9; }
.cg-section { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--cg-line); }
.cg-section-number { margin-right: 9px; font-size: 11px; font-weight: 500; color: #8aa292; font-variant-numeric: tabular-nums; }
.cg-article-nav { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 20px; }
.cg-article-jump { padding: 4px 9px; border: 1px solid var(--cg-line); border-radius: 6px; background: #fff; color: var(--cg-green); font-size: 12px !important; cursor: pointer; }
.cg-article-jump:hover { background: var(--cg-soft); }
.cg-section { scroll-margin-top: 14px; }
.cg-section h2:focus-visible, .cg-feature h3:focus-visible { outline: 2px solid #79b9a5; outline-offset: 5px; border-radius: 2px; }
.cg-feature-nav { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 22px; }
.cg-feature-nav .cg-article-jump { text-align: left; }
.cg-feature { padding: 15px 0; border-bottom: 1px dashed var(--cg-line); }
.cg-feature { scroll-margin-top: 14px; }
.cg-feature:first-of-type { padding-top: 0; }
.cg-feature:last-child { padding-bottom: 0; border-bottom: 0; }
.cg-feature h3 { margin: 0 0 6px; font-size: 15px; font-weight: 650; color: var(--cg-ink); }
.cg-feature p { margin: 0; color: #526b5e; line-height: 1.9; }
.cg-steps { list-style: none; margin: 0; padding: 0; counter-reset: cg-step; }
.cg-steps li { position: relative; padding-left: 31px; margin: 0 0 15px; counter-increment: cg-step; }
.cg-steps li::before { content: counter(cg-step); display: grid; place-items: center; position: absolute; top: 2px; left: 0; width: 21px; height: 21px; border-radius: 50%; background: #edf4ef; color: #527e64; font-size: 11px; }
.cg-connection { padding: 13px; margin-bottom: 10px; border: 1px solid #e1eae4; border-left: 3px solid #86b197; border-radius: 0 8px 8px 0; background: #f7faf8; }
.cg-connection p { margin: 8px 0 0; line-height: 1.85; }
.cg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cg-chip { border: 1px solid #cadfd1; border-radius: 5px; background: #fff; padding: 3px 7px; color: #2e6c48; font-size: 12px !important; cursor: pointer; }
.cg-chip:hover { background: #e5f1e8; }
.cg-more-connections { padding-top: 14px; }
.cg-more-connections h3 { margin: 0 0 7px; font-size: 14px; }
.cg-more-connections p { margin: 0 0 12px; color: var(--cg-muted); font-size: 13px; }
.cg-tips { padding-left: 18px; color: #5d6e60; }
.cg-tips li { padding-left: 4px; margin-bottom: 11px; }
.cg-document-link { display: inline-block; padding: 25px 0 12px; font-size: 12px; color: var(--cg-muted); }
.cg-component-list { display: grid; gap: 9px; }
.cg-component-card { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 11px; border: 1px solid #e0e8e2; border-radius: 9px; background: #fff; text-align: left; cursor: pointer; color: var(--cg-ink); transition: border-color .15s, background .15s; }
.cg-component-card:hover { border-color: #9dbca8; background: #fafdfa; }
.cg-component-card .cg-preview { width: 64px; height: 48px; }
.cg-card-text { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.cg-card-text strong { font-size: 14px; }
.cg-card-text small { color: #7a8e80; font-size: 11px; }
.cg-card-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #607267; font-size: 12px; line-height: 1.7; margin-top: 4px; }
.cg-card-arrow { font-size: 24px; color: #7b9985; }
.cg-experiment-card { padding: 16px; margin-bottom: 12px; background: #fbfcf9; border: 1px solid #e2e7d9; border-radius: 9px; }
.cg-experiment-card h3 { margin: 0; font-size: 15px; line-height: 1.6; }
.cg-experiment-card p { margin: 9px 0; color: #627365; font-size: 12px; }
.cg-experiment-card small { display: block; color: #7b887a; font-size: 11px; }
.cg-example-link { display: inline-block; margin-top: 12px; font-size: 12px; color: #346c4c; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cg-empty { padding: 25px 12px; color: var(--cg-muted); line-height: 1.9; }
.cg-button { display: inline-block; padding: 7px 12px; border: 1px solid #c8dbcf; border-radius: 6px; background: #f6faf6; text-decoration: none; color: #316447; cursor: pointer; }
.cg-navigation-note { margin-top: 26px; color: var(--cg-muted); font-size: 12px; line-height: 1.9; }
@media (max-width: 1199px) { .cg-panel { right: 24px; } }
@media (max-width: 759px) {
    .cg-panel { left: 10px !important; right: 10px !important; top: 10px !important; width: auto !important; height: calc(100dvh - 20px) !important; max-height: none; min-width: 0; resize: none; }
    .cg-panel-header { padding: 10px 14px; }
    .cg-panel-header strong { font-size: 14px; }
    .cg-navigation { padding: 11px 14px 6px; }
    .cg-content { padding: 15px; }
    .cg-search, .cg-category-select { font-size: 16px !important; }
}
.component-guide-page { margin: 0; background: #f5f8f5; color: #243a36; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
.cg-site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px max(24px, calc((100vw - 1140px)/2)); border-bottom: 1px solid #e0e7df; background: #fff; }
.cg-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 650; color: #243a36; text-decoration: none; white-space: nowrap; }
.cg-site-header nav { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.cg-site-header nav a { text-decoration: none; color: #506958; }
.cg-editor-link { padding: 8px 14px; border: 1px solid #c3d8c8; border-radius: 7px; background: #f4f9f5; }
.component-guide-page .cg-root { max-width: 1140px; margin: 36px auto 70px; padding: 0 20px; }
.component-guide-page .cg-panel-header { display: none; }
.component-guide-page .cg-layout { flex-direction: row; align-items: flex-start; gap: 38px; }
.component-guide-page .cg-navigation { width: 248px; flex: 0 0 248px; position: sticky; top: 24px; border: 0; padding: 12px 0; }
.component-guide-page .cg-content { overflow: visible; padding: 0; }
.component-guide-page .cg-directory-heading { margin: 0 0 28px; }
.component-guide-page .cg-directory-heading h1 { font-size: 32px; margin: 8px 0 12px; }
.component-guide-page .cg-directory-heading > p:last-child { color: #62776a; margin: 0; }
.component-guide-page .cg-component-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.component-guide-page .cg-component-card { min-height: 124px; padding: 14px; }
.component-guide-page .cg-component-card .cg-preview { width: 72px; height: 56px; }
.component-guide-page .cg-card-text strong { font-size: 15px; }
.component-guide-page .cg-article-heading { padding-top: 30px; }
.component-guide-page .cg-article-heading h1 { font-size: 34px; }
.component-guide-page .cg-purpose { font-size: 16px; max-width: 680px; }
.component-guide-page .cg-section { padding-top: 28px; margin-top: 28px; }
.component-guide-page .cg-section h2 { font-size: 19px; }
.component-guide-page .cg-feature h3 { font-size: 16px; }
.component-guide-page .cg-steps { max-width: 690px; }
.component-guide-page .cg-connection { padding: 18px; }
.cg-noscript { max-width: 900px; margin: 48px auto; }
@media (max-width: 900px) {
    .component-guide-page .cg-root { margin-top: 24px; }
    .component-guide-page .cg-layout { gap: 24px; }
    .component-guide-page .cg-navigation { width: 205px; flex-basis: 205px; }
    .component-guide-page .cg-component-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .cg-site-header { padding: 16px; }
    .cg-brand { font-size: 13px; gap: 7px; }
    .cg-site-header nav { gap: 0; }
    .cg-site-header nav > a:first-child { display: none; }
    .cg-editor-link { padding: 7px; font-size: 11px; }
    .component-guide-page .cg-root { padding: 0 16px; }
    .component-guide-page .cg-layout { display: block; }
    .component-guide-page .cg-navigation { width: 100%; position: static; padding: 0 0 22px; }
    .cg-navigation-note { display: none; }
    .component-guide-page .cg-directory-heading h1 { font-size: 26px; }
    .component-guide-page .cg-article-heading h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .cg-root * { transition: none !important; } }
