:root {
  color-scheme: light;
  --page: #f5f7fb;
  --surface: #ffffff;
  --ink: #161b2c;
  --muted: #6b7280;
  --brand: #2f63e8;
  --brand-dark: #204ec6;
  --line: #e0e7f2;
  --reader-soft: #f3f6fc;
  --shadow: 0 8px 28px rgba(31, 50, 84, 0.045);
  --sticky-offset: 156px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}
button, input, select, textarea { font: inherit; }
img, video { max-width: 100%; }
[hidden], [data-tutorial-archived] { display: none !important; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 18px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
}
.skip-link:focus { color: #ffffff; transform: translateY(0); }

.page-shell, .article-shell, .site-header-inner, .site-footer-inner {
  width: min(1360px, calc(100% - 40px));
  margin-inline: auto;
}
.site-header { position: sticky; top: 0; z-index: 15; padding: 4px 0; background: var(--page); border: 0; }
.site-header-inner {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid #edf0f5;
  border-radius: 18px;
  background: #ffffff;
}
.header-home-link { justify-self: end; color: #66738a; font-size: 14px; text-decoration: none; }
.header-home-link:hover { color: var(--brand); text-decoration: underline; }
.header-actions {
  --header-action-width: 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-width: 0;
  min-height: 80px;
  padding: 4px 0;
  border-radius: 14px;
  background: #3977f3;
}
.header-action-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.header-action-group-left { justify-content: flex-end; }
.header-action-group-right { justify-content: flex-start; }
.header-action-group .header-action { flex: 0 0 var(--header-action-width); width: var(--header-action-width); }
.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  color: #000000;
  background: #f5f6f9;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .header-action:hover {
    color: #000000;
    border-color: #ffffff;
    background: #dbeaff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .8), 0 9px 20px rgba(15, 46, 103, .32);
    transform: translateY(-3px);
  }
}
.header-action:focus-visible {
  color: #000000;
  border-color: #ffffff;
  background: #dbeaff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .8), 0 9px 20px rgba(15, 46, 103, .32);
  transform: translateY(-3px);
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
.header-action:active { color: #000000; border-color: #d5e5ff; background: #c8defb; box-shadow: 0 2px 6px rgba(15, 46, 103, .25); transform: translateY(0); }
.header-action-icon { position: relative; display: block; flex: 0 0 16px; width: 16px; height: 16px; overflow: hidden; }
.header-action-image { display: block; width: 100%; height: 100%; padding: 0; object-fit: contain; }
.header-action-label { flex-shrink: 0; min-width: 0; color: inherit; font-size: 13px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.header-action-shop {
  justify-self: center;
  min-height: 64px;
  padding: 10px 16px;
  gap: 10px;
  border-color: #d9e5f6;
  border-radius: 16px;
  color: #000000;
  background: #edf4ff;
}
.header-action-shop .header-action-icon { flex-basis: 44px; width: 44px; height: 44px; border-radius: 50%; }
.header-action-shop .header-action-label { font-size: 20px; font-weight: 800; }
.header-action-shop .header-action-image {
  position: absolute;
  width: 116.509434%;
  height: 124.056604%;
  max-width: none;
  left: -4.716981%;
  top: -11.320755%;
}
.support-group-dialog, .contact-dialog {
  position: fixed;
  inset: 0;
  width: min(480px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #dce4f1;
  border-radius: 24px;
  color: #23334e;
  background: #f4f7fc;
  box-shadow: 0 24px 80px rgba(17, 34, 63, .28);
  overflow: auto;
  overscroll-behavior: contain;
}
.support-group-dialog:not([open]), .contact-dialog:not([open]) { display: none; }
.support-group-dialog::backdrop, .contact-dialog::backdrop { background: rgba(15, 29, 52, .32); backdrop-filter: blur(3px); }
.support-group-card-heading, .contact-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.support-group-close, .contact-close { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #dce4f1; border-radius: 12px; color: #617492; background: #f4f7fc; font-size: 28px; line-height: 1; cursor: pointer; }
.support-group-close:hover, .contact-close:hover { color: #23334e; background: #e8eef8; }
.support-group-body, .contact-body { padding: 20px; }
.support-group-card, .contact-card { padding: 22px; border: 1px solid #dce4f1; border-radius: 18px; background: #ffffff; }
.support-group-name, .contact-name { flex: 1; min-width: 0; margin: 0; font-size: 18px; font-weight: 800; line-height: 1.5; }
.support-group-message { color: #c62828; font-size: 16px; font-weight: 700; line-height: 1.8; }
.support-group-message p { margin: 0 0 10px; }
.support-group-message p:last-child { margin-bottom: 0; }
.support-group-join { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; margin-top: 24px; padding: 12px 18px; border-radius: 12px; color: #ffffff; background: #2f63e8; font-size: 17px; font-weight: 800; text-decoration: none; }
.support-group-join:hover { color: #ffffff; background: #204ec6; }
.contact-message { margin: 0 0 20px; color: #000000; font-size: 16px; line-height: 1.8; }
.contact-qq-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border: 1px solid #d4e2f4; border-radius: 14px; background: #e5efff; }
.contact-qq { margin: 0; color: #000000; font-size: 16px; }
.contact-qq strong { display: inline-block; font-size: 22px; letter-spacing: .5px; user-select: text; }
.contact-copy { min-width: 88px; min-height: 44px; padding: 8px 16px; border: 1px solid transparent; border-radius: 10px; color: #ffffff; background: #2f63e8; font-weight: 700; cursor: pointer; }
.contact-copy:hover { background: #204ec6; }
.contact-copy:active { background: #173fa8; }
.contact-copy[data-copied] { background: #16704a; }
.contact-copy:disabled { opacity: .7; cursor: wait; }
.contact-copy-status { min-height: 24px; margin: 10px 0 0; color: #4b6079; font-size: 13px; line-height: 1.8; }
.contact-dialog { width: min(640px, calc(100% - 24px)); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 24px; }
.contact-details .contact-message { margin-bottom: 14px; }
.contact-details .contact-qq-row { display: grid; gap: 12px; padding: 14px; }
.contact-qr-link { display: block; justify-self: center; max-width: 100%; border-radius: 12px; }
.contact-qr-image { display: block; width: 240px; max-width: 100%; height: auto; border-radius: 12px; }
@media (max-width: 600px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .contact-qr-image { width: 200px; }
  .contact-body { padding: 14px; }
  .contact-card { padding: 18px; }
}
.directory-shell {
  margin-top: 16px;
  padding: 0;
  margin-bottom: 64px;
  border: 1px solid #edf0f5;
  border-radius: 18px;
  background: #ffffff;
}
.directory-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: stretch; }
.tutorial-sidebar { min-width: 0; padding: 24px 14px; border-right: 1px solid #edf0f5; }
.tutorial-content { min-width: 0; padding: 24px; container-type: inline-size; }
.tutorial-nav {
  position: sticky;
  top: var(--sticky-offset);
  display: grid;
  gap: 8px;
}
.tutorial-tab {
  position: relative;
  display: flex;
  min-height: 58px;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  padding: 15px 18px;
  border: 0;
  border-radius: 10px;
  color: #000000;
  background: transparent;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.tutorial-tab.is-active, .tutorial-tab[aria-current="location"] {
  color: #000000;
  background: #e5efff;
}
.tutorial-tab.is-active::before { position: absolute; content: ""; width: 3px; left: 0; top: 14px; bottom: 14px; border-radius: 3px; background: #a4b3c8; }
.tutorial-tab:not(:last-child)::after { position: absolute; content: ""; height: 1px; left: 16px; right: 16px; bottom: -5px; background: #e6ebf2; pointer-events: none; }
.tutorial-tab:focus-visible {
  color: #000000;
  background: #dbeaff;
  outline: 2px solid #8db5f4;
  outline-offset: 2px;
  box-shadow: 0 7px 16px rgba(39, 77, 138, .2);
  transform: translateY(-3px);
}
@media (hover: hover) and (pointer: fine) {
  .tutorial-tab:hover {
    color: #000000;
    background: #dbeaff;
    box-shadow: 0 0 0 2px rgba(57, 119, 243, .24), 0 7px 16px rgba(39, 77, 138, .2);
    transform: translateY(-3px);
  }
}
.tutorial-tab:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(39, 77, 138, .18); }
.category-brand { flex: 0 0 40px; display: block; width: 40px; height: 40px; padding: 7px; border: 1px solid #e5ebf4; border-radius: 11px; background: #f4f7fb; object-fit: contain; }
.tutorial-tab.is-active .category-brand { background: #ffffff; }
.tutorial-tab:focus-visible .category-brand { background: #ffffff; border-color: #c5d7f4; }
@media (hover: hover) and (pointer: fine) {
  .tutorial-tab:hover .category-brand { background: #ffffff; border-color: #c5d7f4; }
}
.category-toggle { width: 100%; min-height: 48px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 15px; border: 1px solid #d4e2f4; border-radius: 10px; background: #e5efff; color: #000000; font-weight: 750; text-align: left; cursor: pointer; transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.category-toggle:focus-visible { color: #000000; background: #dbeaff; box-shadow: 0 7px 16px rgba(39, 77, 138, .25); transform: translateY(-3px); }
@media (hover: hover) and (pointer: fine) {
  .category-toggle:hover { color: #000000; background: #dbeaff; box-shadow: 0 0 0 2px #bed5ff, 0 7px 16px rgba(39, 77, 138, .25); transform: translateY(-3px); }
}
.category-toggle:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(39, 77, 138, .18); }
.tutorial-panel { min-width: 0; margin-bottom: 36px; scroll-margin-top: var(--sticky-offset); }
[id] { scroll-margin-top: var(--sticky-offset); }
.tutorial-panel:last-child { margin-bottom: 0; }
.prerequisite-card {
  margin-bottom: 22px;
  padding: 12px 20px;
  border: 1px solid #dbe7fd;
  border-radius: 12px;
  color: #4c6283;
  background: #edf4ff;
  font-size: 14px;
}
.prerequisite-card ul { margin: 0; padding-left: 19px; }
.prerequisite-card li + li { margin-top: 3px; }
.prerequisite-card li::marker { color: var(--brand); }

.tutorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tutorial-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.tutorial-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; cursor: pointer; }
.tutorial-card:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(57, 119, 243, .24), 0 12px 26px rgba(47, 99, 232, .2);
  transform: translateY(-3px);
}
@media (hover: hover) and (pointer: fine) {
  .tutorial-card:hover { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(57, 119, 243, .24), 0 12px 26px rgba(47, 99, 232, .2); transform: translateY(-3px); }
}
.tutorial-card:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(47, 99, 232, .16); }
.tutorial-card-link:hover, .tutorial-card-link:focus { color: inherit; }
.tutorial-card-link:focus-visible { outline-offset: -4px; border-radius: 15px; }
.card-cover { flex: 0 0 112px; height: 112px; overflow: hidden; background: #eef5ff; }
.card-cover > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  /* Enhance decorative cover illustrations only; preserve original asset bytes. */
  filter: saturate(1.8) brightness(0.92) contrast(1.18);
}
.card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 18px; padding: 15px; }
.card-copy h2 { margin: 0; color: #183552; font-size: 16px; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; }
.tutorial-card-link:hover h2, .tutorial-card-link:focus-visible h2 { color: var(--brand); }
.card-read-more {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: auto;
  padding: 6px 12px;
  border: 1px solid #b9cdf7;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #edf4ff;
  font-size: 14px;
  font-weight: 750;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.tutorial-card-link:focus-visible .card-read-more { color: #ffffff; border-color: var(--brand); background: var(--brand); box-shadow: 0 4px 10px rgba(47, 99, 232, .25); }
@media (hover: hover) and (pointer: fine) {
  .tutorial-card:hover .card-read-more { color: #ffffff; border-color: var(--brand); background: var(--brand); box-shadow: 0 4px 10px rgba(47, 99, 232, .25); }
}

.site-footer { border-top: 1px solid var(--line); color: #606c80; font-size: 13px; }
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 76px;
  padding-block: 18px;
}
.site-footer p { margin: 0; }
.site-footer a { color: #606c80; }

.article-shell { margin: 28px auto 72px; }
.breadcrumbs { margin: 0 0 20px; color: #606c80; font-size: 14px; overflow-wrap: anywhere; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { margin-right: 10px; color: #a3afbf; content: "/"; }
.breadcrumbs a { color: #5e6e8c; text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.article-card {
  min-width: 0;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.article-category {
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid #e1eafe;
  border-radius: 7px;
  color: var(--brand);
  background: #f1f5ff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.article-header { margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.article-header h1 {
  margin: 16px 0 0;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.article-content { min-width: 0; color: var(--ink); font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.article-content > :first-child { margin-top: 0; }
.article-content > :last-child { margin-bottom: 0; }
.article-content p { margin: 0 0 18px; }
.article-content h2, .article-content h3, .article-content h4 { color: var(--ink); font-weight: 750; line-height: 1.5; }
.article-content h2 { margin: 32px 0 16px; font-size: 25px; }
.article-content h3 { margin: 30px 0 16px; font-size: 21px; }
.article-content h4 { margin: 24px 0 12px; font-size: 18px; }
.article-content a { color: var(--brand); text-underline-offset: 3px; }
.article-content a:hover { color: var(--brand-dark); }
.article-content ul, .article-content ol { padding-left: 25px; }
.article-content li + li { margin-top: 9px; }
.article-content strong { color: #202d45; font-weight: 750; }
.article-content img, .article-content video { display: block; max-width: 100%; height: auto; border-radius: 14px; }
.article-content figure { margin: 26px 0; }
.article-content figcaption { margin: 0 0 12px; color: #596579; font-size: 14px; line-height: 1.75; text-align: left; }
.single-image { width: 100%; max-width: 100%; }
.single-image > a { display: block; }
.tutorial-image { width: 100%; border: 1px solid #e3e8f1; background: #f5f7fb; }
.image-grid { display: grid; gap: 18px; margin-block: 26px; }
.image-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.image-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-content .image-grid figure { min-width: 0; margin: 0; }
.step-caption-title, .step-resource-link { display: block; }
.step-caption-title { color: #344565; font-weight: 650; }
.step-resource-link { margin-top: 5px; font-size: 14px; font-weight: 400; }

.article-content .steps { display: grid; gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.article-content .steps li {
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 60px;
  border: 1px solid #e4ebf8;
  border-radius: 12px;
  background: #f4f7fd;
}
.steps li > span {
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: var(--brand);
  background: #e3ecfe;
  font-size: 14px;
  font-weight: 750;
}
.steps li > a { min-width: 0; }
.article-content .check-list { margin: 22px 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 25px; }
.check-list li::before { position: absolute; left: 0; color: #20846d; font-weight: 800; content: "✓"; }
.article-content .callout {
  margin: 22px 0;
  padding: 16px 19px;
  border: 1px solid #dce7fb;
  border-left: 3px solid #779eea;
  border-radius: 10px;
  color: #365579;
  background: #f1f6ff;
}
.article-content .callout.warning { border-color: #f0dfb6; border-left-color: #dba53c; color: #805e1b; background: #fff9e9; }
.article-content .critical-note { color: #bf3040; font-weight: 750; }
.video-card { margin: 26px 0; }
.video-heading { margin-bottom: 12px; }
.article-content .video-heading h3 { margin: 0; font-size: 19px; }
.video-frame { overflow: hidden; border: 1px solid #dce4f0; border-radius: 14px; background: #101624; }
.video-frame .tutorial-video { display: block; width: 100%; height: auto; border-radius: 0; background: #101624; }
.video-fallback { display: inline-block; margin-top: 11px; font-size: 14px; }

.article-content .codex-flow-title { margin: 0 0 18px; }
.article-content .codex-step-flow { margin: 22px 0 30px; padding: 0; list-style: none; }
.article-content .codex-step-flow > .codex-login-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  margin: 0 0 18px;
  padding: 24px;
  border: 1px solid #e3eaf7;
  border-radius: 16px;
  background: #f4f7fd;
}
.article-content .codex-step-flow > .codex-login-step:nth-child(even) { border-color: #deeee9; background: #f2f9f7; }
.codex-step-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: var(--brand);
  font-size: 16px;
  font-weight: 750;
  line-height: 1;
}
.codex-login-step:nth-child(even) .codex-step-number { background: #22816e; }
.codex-step-content { min-width: 0; }
.article-content .codex-step-content h4 { margin: 2px 0 12px; font-size: 19px; }
.article-content .codex-step-content > p { margin: 0 0 14px; }
.article-content .codex-step-content > :last-child { margin-bottom: 0; }
.article-content .codex-guide-figure { margin: 18px 0 0; }
.codex-guide-figure > a { display: block; }
.article-content .codex-guide-figure img { width: 100%; height: auto; border-radius: 11px; }
code, kbd {
  padding: 2px 6px;
  border: 1px solid #dfe6f2;
  border-radius: 5px;
  color: #344565;
  background: #eff3f9;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
kbd { box-shadow: 0 1px 0 #cfd8e8; }
pre { max-width: 100%; padding: 16px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--reader-soft); }
pre code { padding: 0; border: 0; background: transparent; }
.article-footer { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-size: 14px; font-weight: 650; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

.not-found-shell { width: min(660px, calc(100% - 48px)); margin: 72px auto; }
.not-found-card { padding: clamp(28px, 6vw, 56px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.not-found-code { margin: 0 0 12px; color: var(--brand); font-size: 14px; font-weight: 750; letter-spacing: 0.08em; }
.not-found-card h1 { margin: 0 0 16px; font-size: clamp(26px, 5vw, 36px); line-height: 1.4; }
.not-found-card > p:not(.not-found-code) { margin: 0 0 26px; color: var(--muted); }

@media (max-width: 1100px) {
  .directory-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .tutorial-sidebar { padding-inline: 10px; }
  .tutorial-tab { font-size: 14px; padding-inline: 12px; gap: 10px; }
  .category-brand { flex-basis: 36px; width: 36px; height: 36px; padding: 5px; }
  .tutorial-content { padding: 20px; }
  .tutorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 759px) {
  :root { --sticky-offset: 172px; }
  .header-actions { --header-action-width: 88px; gap: 10px; min-height: 110px; }
  .header-action-group { gap: 6px; }
  .header-action { min-height: 30px; padding: 6px 7px; gap: 4px; }
  .header-action-label { font-size: 11px; }
  .header-action-icon { flex-basis: 14px; width: 14px; height: 14px; }
  .header-action-shop { flex-direction: column; min-height: 92px; padding: 10px 8px; gap: 6px; }
  .header-action-shop .header-action-icon { flex-basis: 40px; width: 40px; height: 40px; }
  .header-action-shop .header-action-label { font-size: 16px; }
}

@media (max-width: 760px) {
  .page-shell, .site-header-inner, .site-footer-inner, .article-shell, .not-found-shell { width: calc(100% - 28px); }
  .site-header { padding-top: 4px; }
  .site-header-inner { padding: 6px; }
  .header-home-link { font-size: 12px; }
  .directory-shell { margin-top: 12px; padding: 0; margin-bottom: 42px; }
  .prerequisite-card { padding: 12px 15px; font-size: 13px; }
  .article-shell { margin-top: 20px; margin-bottom: 42px; }
  .article-card { padding: 23px 20px; border-radius: 18px; }
  .article-header { margin-bottom: 24px; padding-bottom: 22px; }
  .article-header h1 { margin-top: 14px; font-size: 26px; }
  .article-content { font-size: 15px; line-height: 1.85; }
  .article-content h3 { font-size: 20px; }
  .article-content .codex-step-flow > .codex-login-step { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 17px 13px; border-radius: 12px; }
  .codex-step-number { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
  .article-content .codex-step-content h4 { margin-top: 0; font-size: 17px; }
  .article-content .steps li { padding: 13px 13px 13px 51px; }
  .steps li > span { top: 13px; left: 13px; }
  .image-grid-two, .image-grid-three { grid-template-columns: 1fr; }
  .article-content .callout { padding: 13px 15px; }
  .not-found-shell { margin-top: 36px; }
}

@media (max-width: 700px) {
  .directory-layout { grid-template-columns: minmax(0, 1fr); }
  .tutorial-sidebar { border-right: 0; border-bottom: 1px solid #edf0f5; padding: 12px; }
  .tutorial-nav { position: static; }
  .tutorial-sidebar.menu-enhanced .category-toggle { display: flex; }
  .tutorial-sidebar.menu-enhanced .tutorial-nav { display: none; margin-top: 8px; }
  .tutorial-sidebar.menu-open .tutorial-nav { display: grid; }
  .tutorial-tab { min-height: 50px; font-size: 14px; }
  .tutorial-content { padding: 16px 12px; }
  .tutorial-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-cover { flex-basis: 104px; height: 104px; }
}

@media (max-width: 360px) {
  .article-card { padding-inline: 16px; }
  .header-actions { --header-action-width: 80px; gap: 6px; }
  .header-action-label { font-size: 10px; }
  .header-action-icon { flex-basis: 12px; width: 12px; height: 12px; }
  .header-action-shop .header-action-icon { flex-basis: 36px; width: 36px; height: 36px; }
  .header-action-shop .header-action-label { font-size: 15px; }
  .support-group-body, .contact-body { padding: 14px; }
  .support-group-card, .contact-card { padding: 18px; }
  .support-group-name, .contact-name { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .header-action:hover, .header-action:focus-visible,
  .tutorial-tab:hover, .tutorial-tab:focus-visible,
  .category-toggle:hover, .category-toggle:focus-visible,
  .tutorial-card:hover, .tutorial-card:focus-within { transform: none; }
}
