body {
    margin: 0;
    background: #fff;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
  }

  :focus-visible {
    outline: 2px solid #171717;
    outline-offset: 3px;
  }

  ::selection {
    background: #d9eee5;
  }

  .docs-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 68px;
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
    font-family: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  }

  .docs-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1320px, calc(100% - 48px));
    min-height: 68px;
    margin-inline: auto;
  }

  .docs-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 9px;
    height: 44px;
    color: #171717;
    font-size: 21px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  .docs-brand img {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    object-fit: contain;
  }

  .docs-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .language-switch {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 3px;
    border: 1px solid #e0e3e1;
    border-radius: 6px;
    background: #f3f6f4;
    white-space: nowrap;
  }

  .language-switch a,
  .language-switch span {
    min-width: 34px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 4px;
    color: #555;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
  }

  .language-switch a:hover {
    color: #171717;
    background: #e9efeb;
  }

  .language-switch [aria-current="page"] {
    color: #171717;
    background: #fff;
    box-shadow: 0 1px 3px rgba(44, 55, 62, 0.1);
  }

  .docs-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding-inline: 16px;
    border: 1px solid #d9dddf;
    border-radius: 999px;
    color: #1f2021;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
  }

  .docs-home-link-short,
  .docs-home-link-icon {
    display: none;
  }

  .docs-home-link:hover,
  .docs-brand:hover {
    color: #000;
  }

  .docs-home-link:hover {
    background: #eff2f3;
  }

  .docs-home-link:focus-visible,
  .docs-brand:focus-visible,
  .language-switch a:focus-visible,
  .oc-release-btn:focus-visible {
    outline: 2px solid #171717;
    outline-offset: 4px;
  }

  .docs-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
    max-width: 1296px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .docs-sidebar {
    position: sticky;
    top: 68px;
    align-self: start;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 48px 20px 48px 0;
    border-right: 1px solid #e8e8e8;
    font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  }

  .docs-sidebar-title {
    margin: 0 0 18px;
    color: #171717;
    font-size: 13px;
    font-weight: 700;
  }

  .docs-sidebar-group {
    margin: 22px 10px 5px;
    color: #757d79;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
  }

  .docs-sidebar-title + .docs-sidebar-group {
    margin-top: 0;
  }

  .docs-sidebar a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
  }

  .docs-sidebar a:hover,
  .docs-sidebar a:focus-visible {
    background: #f3f6f4;
    color: #171717;
  }

  .docs-sidebar .docs-sidebar-sub {
    padding-left: 24px;
    font-size: 13px;
  }

  .opencreator-guide {
    --oc-text: #171717;
    --oc-subtext: #666;
    --oc-muted: #999;
    --oc-border: #e8e8e8;
    --oc-bg: #ffffff;
    --oc-soft: #f7f7f7;
    --oc-primary: #111111;

    min-width: 0;
    max-width: 940px;
    margin: 0;
    padding: 52px 0 100px;
    color: var(--oc-text);
    background: var(--oc-bg);
    font-family:
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      "PingFang SC",
      "Hiragino Sans GB",
      "Microsoft YaHei",
      Arial,
      sans-serif;
    line-height: 1.7;
    box-sizing: border-box;
  }

  .opencreator-guide *,
  .opencreator-guide *::before,
  .opencreator-guide *::after {
    box-sizing: border-box;
  }

  .opencreator-guide h1,
  .opencreator-guide h2,
  .opencreator-guide h3,
  .opencreator-guide p {
    margin-top: 0;
  }

  /* Header */
  .oc-hero {
    margin-bottom: 58px;
  }

  .oc-hero h1 {
    margin-bottom: 16px;
    font-size: 42px;
    line-height: 1.2;
    letter-spacing: 0;
    font-weight: 700;
  }

  .oc-hero-desc {
    max-width: 720px;
    margin-bottom: 28px;
    color: var(--oc-subtext);
    font-size: 17px;
    line-height: 1.8;
  }

  .docs-search {
    max-width: 620px;
    margin-bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  }

  .docs-search label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 650;
  }

  .docs-search input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #cbd1ce;
    border-radius: 6px;
    background: #fff;
    color: #171717;
    font: inherit;
    font-size: 14px;
  }

  .docs-search input:focus {
    border-color: #537966;
    outline: 2px solid #d9eee5;
    outline-offset: 1px;
  }

  .docs-search-results {
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid var(--oc-border);
    border-radius: 6px;
    background: #fff;
  }

  .docs-search-results[hidden] {
    display: none;
  }

  .docs-search-results a {
    display: block;
    padding: 10px 14px;
    color: var(--oc-text);
    text-decoration: none;
  }

  .docs-search-results a + a {
    border-top: 1px solid var(--oc-border);
  }

  .docs-search-results a:hover,
  .docs-search-results a:focus-visible {
    background: #f3f6f4;
  }

  .docs-search-results strong,
  .docs-search-results span {
    display: block;
  }

  .docs-search-results strong {
    font-size: 14px;
  }

  .docs-search-results span,
  .docs-search-empty {
    margin: 3px 0 0;
    color: var(--oc-subtext);
    font-size: 12px;
    line-height: 1.5;
  }

  .docs-search-empty {
    padding: 12px 14px;
  }

  .docs-task-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    max-width: 760px;
    margin: 0 0 26px;
    border-top: 1px solid var(--oc-border);
  }

  .docs-task-nav a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 13px 0;
    border-bottom: 1px solid var(--oc-border);
    color: var(--oc-text);
    text-decoration: none;
  }

  .docs-task-nav a:hover strong,
  .docs-task-nav a:focus-visible strong {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .docs-task-nav strong {
    font-size: 14px;
    line-height: 1.4;
  }

  .docs-task-nav span {
    color: var(--oc-subtext);
    font-size: 12px;
    line-height: 1.5;
  }

  .docs-journey {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
    padding-left: 24px;
  }

  .docs-journey li {
    padding-left: 3px;
  }

  .docs-journey strong {
    display: block;
    font-size: 15px;
  }

  .docs-journey span {
    display: block;
    color: var(--oc-subtext);
    font-size: 14px;
  }

  .docs-journey a {
    color: #286548;
  }

  .docs-next {
    margin: 18px 0 0;
    color: var(--oc-subtext);
    font-size: 14px;
  }

  .docs-next a {
    color: #286548;
    font-weight: 600;
    text-underline-offset: 3px;
  }

  .oc-release-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s ease;
  }

  .oc-release-btn:hover {
    opacity: 0.82;
  }

  .oc-settings-shot {
    margin: 0;
  }

  .oc-settings-shot a {
    display: block;
    overflow: hidden;
    border: 1px solid var(--oc-border);
    border-radius: 8px;
    background: #171717;
  }

  .oc-settings-shot img {
    display: block;
    width: 100%;
    height: auto;
  }

  .oc-settings-shot figcaption {
    margin-top: 10px;
    color: var(--oc-subtext);
    font-size: 13px;
  }

  #proxy .docs-journey,
  #yt-dlp .docs-journey {
    margin-top: 24px;
  }

  .oc-settings-entry-shot {
    max-width: 500px;
    margin-bottom: 22px;
  }

  /* Section */
  .oc-section {
    margin-bottom: 72px;
  }

  .oc-section-title {
    margin-bottom: 10px;
    font-size: 26px;
    line-height: 1.35;
    letter-spacing: 0;
  }

  .oc-section-desc {
    margin-bottom: 28px;
    color: var(--oc-subtext);
    font-size: 15px;
  }

  .oc-inline-note {
    margin: 14px 0 0;
    color: var(--oc-subtext);
    font-size: 14px;
  }

  .oc-inline-note a,
  .oc-guide a,
  .oc-troubleshoot-list a {
    color: #176548;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .oc-guide-shot {
    max-width: 375px;
    margin-bottom: 30px;
  }

  .oc-guide,
  .oc-troubleshoot-list article {
    padding: 22px 0;
    border-top: 1px solid var(--oc-border);
  }

  .oc-guide:last-child,
  .oc-troubleshoot-list article:last-child {
    border-bottom: 1px solid var(--oc-border);
  }

  .oc-guide h3,
  .oc-troubleshoot-list h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.4;
  }

  .oc-guide p,
  .oc-troubleshoot-list p {
    margin: 0;
    color: var(--oc-subtext);
    font-size: 14px;
  }

  .oc-guide ol {
    margin: 16px 0 0;
    padding-left: 22px;
    font-size: 14px;
  }

  .oc-guide li + li {
    margin-top: 8px;
  }

  .oc-troubleshoot-list h3 {
    font-size: 16px;
  }

  .oc-troubleshoot-list code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
  }

  /* Install cards */
  .oc-install-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .oc-install-card {
    padding: 22px;
    border: 1px solid var(--oc-border);
    border-radius: 8px;
    background: #fff;
  }

  .oc-install-card-title {
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 600;
  }

  .oc-install-card p {
    margin-bottom: 0;
    color: var(--oc-subtext);
    font-size: 14px;
  }

  .oc-path {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 9px;
    border-radius: 6px;
    background: var(--oc-soft);
    color: #333;
    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  }

  /* Concept cards */
  .oc-concept-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
  }

  .oc-concept-card {
    padding: 20px;
    border: 1px solid var(--oc-border);
    border-radius: 8px;
    background: #fff;
  }

  .oc-concept-number {
    display: block;
    margin-bottom: 12px;
    color: var(--oc-muted);
    font-size: 12px;
    font-weight: 600;
  }

  .oc-concept-title {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
  }

  .oc-concept-text {
    margin: 0;
    color: var(--oc-subtext);
    font-size: 13px;
    line-height: 1.65;
  }

  /* Example */
  .oc-example {
    margin-top: 24px;
    padding: 24px;
    border-radius: 8px;
    background: #f7f7f7;
  }

  .oc-example-title {
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 600;
  }

  .oc-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .oc-flow-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }

  .oc-flow-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20px;
    flex-shrink: 0;
  }

  .oc-flow-dot {
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: #111;
  }

  .oc-flow-connector {
    width: 1px;
    height: 28px;
    background: #d8d8d8;
  }

  .oc-flow-content {
    padding-bottom: 8px;
  }

  .oc-flow-label {
    color: var(--oc-muted);
    font-size: 12px;
    margin-bottom: 2px;
  }

  .oc-flow-value {
    font-size: 14px;
    font-weight: 500;
  }

  .oc-flow-desc {
    color: var(--oc-subtext);
    font-size: 13px;
  }

  /* Config tables */
  .oc-config-box {
    margin-bottom: 32px;
  }

  .oc-config-title {
    margin-bottom: 8px;
    font-size: 19px;
    font-weight: 600;
  }

  .oc-config-desc {
    margin-bottom: 16px;
    color: var(--oc-subtext);
    font-size: 14px;
  }

  .oc-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--oc-border);
    border-radius: 8px;
  }

  .oc-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 13px;
  }

  .oc-table th {
    padding: 13px 14px;
    background: #f8f8f8;
    color: #555;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--oc-border);
    white-space: nowrap;
  }

  .oc-table td {
    padding: 15px 14px;
    border-bottom: 1px solid var(--oc-border);
    vertical-align: top;
  }

  .oc-table tr:last-child td {
    border-bottom: 0;
  }

  .oc-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
  }

  .oc-code {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 5px;
    background: #f5f5f5;
    color: #333;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    word-break: break-all;
  }

  .oc-quick-table {
    min-width: 900px;
  }

  .oc-quick-table a,
  .oc-provider-link,
  .oc-table a {
    color: #176548;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .oc-quick-table a:hover,
  .oc-provider-link:hover,
  .oc-table a:hover {
    color: #0d442f;
  }

  .oc-provider {
    padding: 28px 0 30px;
    border-top: 1px solid var(--oc-border);
    scroll-margin-top: 90px;
  }

  .oc-provider:last-child {
    border-bottom: 1px solid var(--oc-border);
  }

  .oc-provider-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
  }

  .oc-provider h3 {
    margin: 0 0 4px;
    font-size: 20px;
  }

  .oc-provider-purpose {
    margin: 0;
    color: var(--oc-subtext);
    font-size: 14px;
  }

  .oc-provider-fields {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 0 20px;
    margin: 0;
  }

  .oc-provider-fields dt,
  .oc-provider-fields dd {
    margin: 0;
    padding: 13px 0;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
  }

  .oc-provider-fields dt {
    color: var(--oc-subtext);
  }

  .oc-provider-fields dd {
    min-width: 0;
  }

  .oc-provider-fields dd .oc-code {
    vertical-align: middle;
  }

  .oc-provider-fields dd p {
    margin: 6px 0 0;
    color: var(--oc-subtext);
    font-size: 13px;
  }

  .oc-copy {
    margin-left: 8px;
    padding: 4px 8px;
    border: 1px solid #dce4df;
    border-radius: 5px;
    background: #fff;
    color: #176548;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    vertical-align: middle;
  }

  .oc-copy:hover {
    background: #f3f6f4;
  }

  /* Warning */
  .oc-notice {
    margin: 16px 0;
    padding: 18px 20px;
    border: 1px solid var(--oc-border);
    border-radius: 8px;
    background: #fafafa;
  }

  .oc-notice-title {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
  }

  .oc-notice p {
    margin: 0;
    color: var(--oc-subtext);
    font-size: 13px;
    line-height: 1.7;
  }

  .oc-notice strong {
    color: #222;
  }

  /* Key reminder */
  .oc-key-example {
    margin-top: 16px;
    padding: 18px 20px;
    border-radius: 8px;
    background: #f7f7f7;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.9;
    overflow-x: auto;
  }

  /* Summary */
  .oc-summary {
    padding: 28px;
    border-radius: 8px;
    background: #111;
    color: #fff;
  }

  .oc-summary-title {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
  }

  .oc-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .oc-summary-item {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
  }

  .oc-summary-label {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
  }

  .oc-summary-value {
    font-size: 14px;
    font-weight: 500;
  }

  /* Footer */
  .oc-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--oc-border);
    color: var(--oc-muted);
    font-size: 12px;
    text-align: center;
  }

  /* Responsive */
  @media (max-width: 800px) {
    html {
      scroll-padding-top: 114px;
    }

    .docs-nav,
    .docs-nav-inner {
      min-height: 62px;
    }

    .docs-nav-inner {
      width: calc(100% - 32px);
    }

    .docs-brand {
      height: 38px;
      font-size: 20px;
    }

    .docs-brand img {
      width: 26px;
      height: 26px;
    }

    .docs-layout {
      display: block;
      padding: 0;
    }

    .docs-sidebar {
      top: 62px;
      z-index: 15;
      display: flex;
      align-items: center;
      gap: 2px;
      max-height: none;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 7px 14px;
      border-right: 0;
      border-bottom: 1px solid #e8e8e8;
      background: #fff;
      white-space: nowrap;
      scrollbar-width: thin;
    }

    .docs-sidebar-title,
    .docs-sidebar-group {
      display: none;
    }

    .docs-sidebar a {
      flex: 0 0 auto;
      padding: 7px 10px;
      font-size: 13px;
    }

    .docs-sidebar .docs-sidebar-sub {
      padding-left: 10px;
    }

    .opencreator-guide {
      padding: 40px 18px 72px;
    }

    .oc-install-grid,
    .oc-concept-grid,
    .oc-summary-grid {
      grid-template-columns: 1fr 1fr;
    }

    .oc-section {
      margin-bottom: 52px;
    }
  }

  @media (max-width: 560px) {
    .docs-task-nav {
      grid-template-columns: 1fr;
    }

    .docs-home-link {
      padding-inline: 12px;
    }

    .docs-home-link-full {
      display: none;
    }

    .docs-home-link-short {
      display: inline;
    }

    .oc-settings-entry-shot {
      display: block;
      margin-bottom: 22px;
    }

    .oc-hero h1 {
      font-size: 32px;
    }

    .oc-provider-header {
      display: block;
    }

    .oc-provider-fields {
      grid-template-columns: 1fr;
    }

    .oc-provider-fields dt {
      padding-bottom: 0;
    }

    .oc-provider-fields dd {
      padding-top: 4px;
      border-top: 0;
    }

    .oc-install-grid,
    .oc-concept-grid,
    .oc-summary-grid {
      grid-template-columns: 1fr;
    }

    .oc-hero {
      margin-bottom: 48px;
    }

    .oc-hero-desc {
      font-size: 15px;
    }

    .oc-section-title {
      font-size: 22px;
    }

    .oc-example,
    .oc-summary {
      padding: 20px;
    }
  }

  @media (max-width: 360px) {
    .docs-nav-inner,
    .docs-nav-actions {
      gap: 6px;
    }

    .docs-brand {
      font-size: 17px;
    }

    .docs-brand img {
      width: 24px;
      height: 24px;
    }

    .language-switch a,
    .language-switch span {
      min-width: 30px;
      padding-inline: 4px;
      font-size: 11px;
    }

    .docs-home-link {
      width: 40px;
      padding-inline: 0;
    }

    .docs-home-link-short {
      display: none;
    }

    .docs-home-link-icon {
      display: inline;
      font-size: 20px;
      line-height: 1;
    }
  }
