  :root {
    --templatte-bg: #fffcf6;
    --templatte-surface: #ffffff;
    --templatte-surface-2: #fbf5ec;
    --templatte-surface-3: #f5ece0;
    --templatte-border: #ece1d2;
    --templatte-border-soft: #f1e7d9;
    --templatte-text: #2c2620;
    --templatte-text-muted: #7a6f60;
    --templatte-text-faint: #a8998880;
    --templatte-text-faint-solid: #9c8c7a;
    --templatte-accent: #f2600c;
    --templatte-accent-soft: rgba(242, 96, 12, 0.10);
    --templatte-accent-ink: #ffffff;
    --templatte-warning: #b45f06;
    --templatte-warning-soft: rgba(180, 95, 6, 0.10);
    --templatte-danger: #d63b3b;
    --templatte-danger-soft: rgba(214, 59, 59, 0.09);
    --templatte-success: #3f9142;
    --templatte-success-soft: rgba(63, 145, 66, 0.10);
    --templatte-shadow: 0 12px 28px rgba(80, 50, 20, 0.12);
    --templatte-radius-s: 6px;
    --templatte-radius-m: 10px;
    --templatte-font-sans: "Noto Sans JP", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", system-ui, sans-serif;
    --templatte-font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --templatte-bg: #191410;
      --templatte-surface: #221b15;
      --templatte-surface-2: #2a2119;
      --templatte-surface-3: #33281d;
      --templatte-border: #3c2f22;
      --templatte-border-soft: #2f251b;
      --templatte-text: #f7f0e6;
      --templatte-text-muted: #c2b19c;
      --templatte-text-faint: #8f7c6780;
      --templatte-text-faint-solid: #9c8a74;
      --templatte-accent: #ff8a3d;
      --templatte-accent-soft: rgba(255, 138, 61, 0.14);
      --templatte-accent-ink: #2a1300;
      --templatte-warning: #f2b84b;
      --templatte-warning-soft: rgba(242, 184, 75, 0.12);
      --templatte-danger: #ef6a6a;
      --templatte-danger-soft: rgba(239, 106, 106, 0.12);
      --templatte-success: #8fd97a;
      --templatte-success-soft: rgba(143, 217, 122, 0.12);
      --templatte-shadow: 0 12px 32px rgba(0,0,0,0.4);
    }
  }

  :root[data-theme="dark"] {
    --templatte-bg: #191410; --templatte-surface: #221b15; --templatte-surface-2: #2a2119; --templatte-surface-3: #33281d;
    --templatte-border: #3c2f22; --templatte-border-soft: #2f251b; --templatte-text: #f7f0e6; --templatte-text-muted: #c2b19c; --templatte-text-faint-solid: #9c8a74;
    --templatte-accent: #ff8a3d; --templatte-accent-soft: rgba(255,138,61,0.14); --templatte-accent-ink: #2a1300;
    --templatte-warning: #f2b84b; --templatte-warning-soft: rgba(242,184,75,0.12);
    --templatte-danger: #ef6a6a; --templatte-danger-soft: rgba(239,106,106,0.12);
    --templatte-success: #8fd97a; --templatte-success-soft: rgba(143,217,122,0.12);
    --templatte-shadow: 0 12px 32px rgba(0,0,0,0.4);
  }
  :root[data-theme="light"] {
    --templatte-bg: #fffcf6; --templatte-surface: #ffffff; --templatte-surface-2: #fbf5ec; --templatte-surface-3: #f5ece0;
    --templatte-border: #ece1d2; --templatte-border-soft: #f1e7d9; --templatte-text: #2c2620; --templatte-text-muted: #7a6f60; --templatte-text-faint-solid: #9c8c7a;
    --templatte-accent: #f2600c; --templatte-accent-soft: rgba(242,96,12,0.10); --templatte-accent-ink: #ffffff;
    --templatte-warning: #b45f06; --templatte-warning-soft: rgba(180,95,6,0.10);
    --templatte-danger: #d63b3b; --templatte-danger-soft: rgba(214,59,59,0.09);
    --templatte-success: #3f9142; --templatte-success-soft: rgba(63,145,66,0.10);
    --templatte-shadow: 0 12px 28px rgba(80,50,20,0.12);
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }

  body {
    margin: 0;
    background: var(--templatte-bg);
    color: var(--templatte-text);
    font-family: var(--templatte-font-sans);
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
  }

  #progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: var(--templatte-accent);
    z-index: 60;
    transition: width 80ms linear;
  }

  .layout {
    display: flex;
    align-items: flex-start;
    max-width: 1180px;
    margin: 0 auto;
  }

  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 270px;
    flex: none;
    overflow-y: auto;
    padding: 28px 18px 40px;
    border-right: 1px solid var(--templatte-border);
    background: var(--templatte-surface);
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 20px;
  }
  .brand-logo {
    display: flex;
    align-items: center;
    padding: 1px 6px;
  }
  .brand-name {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.01em;
    line-height: 1;
  }
  .brand-sub {
    display: block;
    font-size: 12px;
    color: var(--templatte-text-faint-solid);
    padding: 0 10px 18px;
  }


  .nav-group { margin-bottom: 4px; }
  .nav-group-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: var(--templatte-text-faint-solid);
    text-transform: uppercase;
    padding: 14px 10px 6px;
  }
  .nav-link {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 7px 10px;
    border-radius: var(--templatte-radius-s);
    color: var(--templatte-text-muted);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
  }
  .nav-link:hover { color: var(--templatte-text); background: var(--templatte-surface-2); }
  .nav-link .num {
    font-family: var(--templatte-font-mono);
    font-size: 11px;
    color: var(--templatte-text-faint-solid);
    flex: none;
    width: 1.4em;
  }
  .nav-link.active {
    color: var(--templatte-accent);
    background: var(--templatte-accent-soft);
    font-weight: 700;
  }
  .nav-link.active .num { color: var(--templatte-accent); }
  .nav-link-primary {
    color: var(--templatte-text);
    font-weight: 700;
  }

  .theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 10px 0;
    padding: 8px 10px;
    border: 1px solid var(--templatte-border);
    border-radius: var(--templatte-radius-s);
    background: var(--templatte-surface-2);
    color: var(--templatte-text-muted);
    font-family: var(--templatte-font-sans);
    font-size: 12.5px;
    cursor: pointer;
    width: calc(100% - 20px);
  }
  .theme-toggle:hover { color: var(--templatte-text); border-color: var(--templatte-text-faint-solid); }
  .theme-toggle svg { flex: none; }

  .nav-toggle { display: none; }

  .content { flex: 1; min-width: 0; padding: 56px 56px 120px; }

  /* ---------- breadcrumb ---------- */
  .breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--templatte-text-muted);
  }
  .breadcrumb-link {
    color: var(--templatte-text-muted);
    text-decoration: none;
  }
  .breadcrumb-link:hover {
    color: var(--templatte-accent);
  }
  .breadcrumb-sep {
    color: var(--templatte-text-faint-solid);
  }
  .breadcrumb-current {
    color: var(--templatte-text);
    font-weight: 600;
  }
  .breadcrumb-dropdown {
    position: relative;
    display: inline-flex;
  }
  .breadcrumb-dropdown summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .breadcrumb-dropdown summary::-webkit-details-marker {
    display: none;
  }
  .breadcrumb-dropdown summary::after {
    content: "▾";
    font-size: 10px;
    color: var(--templatte-text-faint-solid);
  }
  .breadcrumb-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    min-width: 160px;
    background: var(--templatte-surface);
    border: 1px solid var(--templatte-border);
    border-radius: var(--templatte-radius-m);
    box-shadow: var(--templatte-shadow);
    z-index: 20;
  }
  .breadcrumb-menu li + li {
    margin-top: 2px;
  }
  .breadcrumb-menu a {
    display: block;
    padding: 8px 10px;
    border-radius: var(--templatte-radius-s);
    color: var(--templatte-text);
    text-decoration: none;
    font-size: 13px;
  }
  .breadcrumb-menu a:hover {
    background: var(--templatte-accent-soft);
  }
  .breadcrumb-menu a[aria-current="page"] {
    color: var(--templatte-accent);
    font-weight: 600;
  }

  .doc-header { margin-bottom: 56px; padding-bottom: 32px; border-bottom: 1px solid var(--templatte-border); }
  .doc-eyebrow {
    font-family: var(--templatte-font-mono);
    font-size: 12.5px;
    letter-spacing: 0.1em;
    color: var(--templatte-accent);
    text-transform: uppercase;
    margin: 0 0 14px;
  }
  .doc-title {
    margin-bottom: 10px;
    margin-top: 45px;
  }
  .doc-title img {
    width: 90%;
  }
  .doc-store-link {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    margin: 0 0 18px auto;
    padding: 8px 14px;
    border-radius: var(--templatte-radius-s);
    border: 1px solid var(--templatte-accent);
    color: var(--templatte-accent);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.8;
    transition: background 150ms ease, color 150ms ease;
  }
  .doc-store-link:hover {
    background: var(--templatte-accent-soft);
  }
  .doc-store-link.is-disabled {
    border-color: var(--templatte-border);
    color: var(--templatte-text-faint-solid);
    font-weight: 600;
    cursor: default;
  }

  .doc-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0 0 18px;
  }
  .doc-header-actions .doc-store-link,
  .doc-header-actions .doc-store-link.is-disabled {
    margin: 0;
  }

  /* ---------- share widget ---------- */
  .share-widget {
    position: relative;
  }
  .share-btn {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 14px;
    border-radius: var(--templatte-radius-s);
    border: 1px solid var(--templatte-accent);
    background: none;
    color: var(--templatte-accent);
    font-family: var(--templatte-font-sans);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.8;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
  }
  .share-btn:hover,
  .share-btn[aria-expanded="true"] {
    background: var(--templatte-accent-soft);
  }
  .share-btn svg { display: block; }

  .share-menu[hidden] {
    display: none;
  }
  .share-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-width: 170px;
    padding: 6px;
    border-radius: var(--templatte-radius-m);
    border: 1px solid var(--templatte-border);
    background: var(--templatte-surface);
    box-shadow: var(--templatte-shadow);
  }
  .share-menu-item {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-radius: var(--templatte-radius-s);
    background: none;
    color: var(--templatte-text);
    font-family: var(--templatte-font-sans);
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }
  .share-menu-item:hover {
    background: var(--templatte-accent-soft);
    color: var(--templatte-accent);
  }

  .doc-lede {
    font-size: 16.5px;
    color: var(--templatte-text-muted);
    margin: 0;
  }

  /* ---------- guide home / quick start ---------- */
  .guide-home,
  .quick-start {
    max-width: 760px;
    scroll-margin-top: 24px;
  }
  .guide-home {
    margin: 0 0 72px;
  }
  .guide-home-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
  }
  .section-eyebrow {
    margin: 0 0 6px;
    color: var(--templatte-accent);
    font-family: var(--templatte-font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
  }
  .guide-home h2 {
    margin: 0 0 6px;
    font-size: 27px;
    line-height: 1.4;
  }
  .guide-home-heading p:last-child,
  .quick-start-lede {
    margin: 0;
    color: var(--templatte-text-muted);
  }
  .start-button,
  .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 16px;
    border-radius: var(--templatte-radius-s);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
  }
  .start-button {
    flex: none;
    background: var(--templatte-accent);
    color: var(--templatte-accent-ink);
  }
  .start-button:hover { filter: brightness(1.06); }
  .secondary-button {
    border: 1px solid var(--templatte-border);
    color: var(--templatte-text);
    background: var(--templatte-surface);
  }
  .secondary-button:hover { border-color: var(--templatte-accent); color: var(--templatte-accent); }
  .purpose-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .purpose-card {
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    padding: 16px;
    border: 1px solid var(--templatte-border);
    border-radius: var(--templatte-radius-m);
    background: var(--templatte-surface);
    color: var(--templatte-text);
    text-decoration: none;
    transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
  }
  .purpose-card:hover {
    border-color: var(--templatte-accent);
    background: var(--templatte-accent-soft);
    transform: translateY(-1px);
  }
  .purpose-icon {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--templatte-radius-s);
    background: var(--templatte-accent-soft);
    color: var(--templatte-accent);
    font-size: 19px;
  }
  .purpose-card strong { font-size: 15px; }
  .purpose-card > span:last-child {
    color: var(--templatte-text-muted);
    font-size: 13px;
    line-height: 1.55;
  }
  .support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--templatte-border-soft);
  }
  .support-links a { font-size: 13.5px; text-decoration: none; }
  .support-links a::after { content: " →"; }

  .quick-start {
    margin: 0 0 88px;
    padding: 24px;
    border: 1px solid var(--templatte-border);
    border-radius: var(--templatte-radius-m);
    background: var(--templatte-surface);
  }
  .step-list {
    display: grid;
    gap: 0;
    margin: 24px 0;
    padding: 0;
    list-style: none;
  }
  .step-list li {
    position: relative;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    margin: 0;
    padding: 0 0 22px;
  }
  .step-list li:last-child { padding-bottom: 0; }
  .step-list li:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 32px;
    bottom: 0;
    left: 16px;
    width: 1px;
    background: var(--templatte-border);
  }
  .step-number {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--templatte-accent);
    color: var(--templatte-accent-ink);
    font-family: var(--templatte-font-mono);
    font-size: 13px;
    font-weight: 800;
  }
  .step-list strong { display: block; margin: 3px 0 4px; }
  .step-list p { margin: 0; color: var(--templatte-text-muted); font-size: 14px; }
  .quick-start-actions { display: flex; flex-wrap: wrap; gap: 10px; }

  section.chapter { max-width: 700px; margin: 0 0 88px; scroll-margin-top: 24px; }
  section.chapter:last-of-type { margin-bottom: 24px; }

  .chapter-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
  .chapter-kicker .num {
    font-family: var(--templatte-font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--templatte-accent-ink);
    background: var(--templatte-accent);
    border-radius: 5px;
    padding: 3px 8px;
  }
  .chapter-kicker .label { font-size: 12.5px; color: var(--templatte-text-faint-solid); letter-spacing: 0.04em; }

  h2.chapter-title {
    position: relative;
    font-size: 27px;
    font-weight: 800;
    margin: 0 0 24px;
    padding-bottom: 10px;
    letter-spacing: -0.005em;
    text-wrap: balance;
  }
  h2.chapter-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: var(--templatte-accent);
  }
  section.chapter > p:first-of-type { font-size: 16.5px; color: var(--templatte-text-muted); }

  h3 { font-size: 18px; font-weight: 700; margin: 34px 0 12px; padding-top: 4px; }
  section.chapter > h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--templatte-border);
  }
  section.chapter > h3::before {
    content: "";
    flex: none;
    width: 5px;
    height: 1.15em;
    border-radius: 999px;
    background: var(--templatte-accent);
  }
  h4 { font-size: 15px; font-weight: 700; margin: 24px 0 8px; color: var(--templatte-text); }

  p { margin: 0 0 14px; }
  section.chapter p { color: var(--templatte-text); }

  .keyword-mark {
    color: var(--templatte-text);
    font-weight: 700;
    text-decoration-line: underline;
    text-decoration-color: var(--templatte-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }

  ul, ol { margin: 0 0 16px; padding-left: 1.3em; }
  li { margin-bottom: 8px; }
  li:last-child { margin-bottom: 0; }
  li > ul, li > ol { margin-top: 8px; }

  /* 長い説明リストは、カード化せず余白と細い区切りで読み分ける */
  section.chapter > ul {
    display: grid;
    gap: 14px;
    padding: 0;
    list-style: none;
  }
  section.chapter > ul > li {
    position: relative;
    margin: 0;
    padding: 0 0 14px 22px;
    border-bottom: 1px solid var(--templatte-border-soft);
  }
  section.chapter > ul > li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--templatte-accent);
  }
  section.chapter > ul > li:last-child { padding-bottom: 0; border-bottom: 0; }
  section.chapter > ul > li strong:first-child { color: var(--templatte-accent); }

  /* 「項目名: 説明」の一覧は、設定項目としてカードで区切る */
  section.chapter > ul > li:has(> strong:first-child) {
    padding: 13px 15px;
    border: 1px solid var(--templatte-border-soft);
    border-radius: var(--templatte-radius-s);
    background: var(--templatte-surface-2);
  }
  section.chapter > ul > li:has(> strong:first-child)::before { display: none; }
  section.chapter > ul > li:has(> strong:first-child) > strong:first-child {
    display: inline-block;
    margin-right: 0.2em;
  }

  /* 操作手順は番号を軸に縦へ読み進める */
  section.chapter > ol {
    display: grid;
    gap: 22px;
    padding: 0;
    list-style: none;
    counter-reset: chapter-step;
  }
  section.chapter > ol > li {
    position: relative;
    min-height: 34px;
    margin: 0;
    padding: 3px 0 0 48px;
    counter-increment: chapter-step;
  }
  section.chapter > ol > li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 34px;
    bottom: -22px;
    left: 16px;
    width: 1px;
    background: var(--templatte-border);
  }
  section.chapter > ol > li::before {
    content: counter(chapter-step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--templatte-accent);
    color: var(--templatte-accent-ink);
    font-family: var(--templatte-font-mono);
    font-size: 12px;
    font-weight: 800;
  }

  .feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px;
  }
  .feature-grid a {
    display: block;
    padding: 14px;
    border: 1px solid var(--templatte-border);
    border-radius: var(--templatte-radius-m);
    background: var(--templatte-surface-2);
    color: var(--templatte-text);
    text-decoration: none;
  }
  .feature-grid a:hover { border-color: var(--templatte-accent); }
  .feature-grid a:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .feature-grid strong {
    display: block;
    margin-bottom: 3px;
    color: var(--templatte-accent);
  }
  .feature-grid span {
    display: block;
    color: var(--templatte-text-muted);
    font-size: 13px;
    line-height: 1.55;
  }
  .section-note {
    padding: 10px 12px;
    border-radius: var(--templatte-radius-s);
    background: var(--templatte-accent-soft);
    font-size: 14px;
  }

  strong { font-weight: 700; color: var(--templatte-text); }
  a { color: var(--templatte-accent); }

  code {
    font-family: var(--templatte-font-mono);
    font-size: 0.88em;
    background: var(--templatte-surface-2);
    border: 1px solid var(--templatte-border-soft);
    border-radius: 4px;
    padding: 0.1em 0.4em;
  }

  pre.url-block {
    font-family: var(--templatte-font-mono);
    font-size: 14.5px;
    background: var(--templatte-surface-2);
    border: 1px solid var(--templatte-border);
    border-radius: var(--templatte-radius-m);
    padding: 14px 18px;
    overflow-x: auto;
    color: var(--templatte-accent);
    margin: 0 0 16px;
  }

  .callout {
    display: flex; gap: 12px;
    border: 1px solid var(--templatte-border);
    border-left: 3px solid var(--templatte-accent);
    background: var(--templatte-surface-2);
    border-radius: var(--templatte-radius-m);
    padding: 14px 18px;
    margin: 0 0 18px;
    font-size: 14.5px;
  }
  .callout p { margin: 0; color: var(--templatte-text); }
  .callout .icon { flex: none; margin-top: 2px; color: var(--templatte-accent); }
  .callout.warn { border-left-color: var(--templatte-warning); background: var(--templatte-warning-soft); }
  .callout.warn .icon { color: var(--templatte-warning); }
  .callout.danger { border-left-color: var(--templatte-danger); background: var(--templatte-danger-soft); }
  .callout.danger .icon { color: var(--templatte-danger); }
  .callout.note .icon { color: var(--templatte-accent); }

  figure.screenshot { margin: 0 0 20px; }
  figure.screenshot img {
    display: block; width: 100%;
    border: 1px solid var(--templatte-border);
    border-radius: var(--templatte-radius-m);
    box-shadow: var(--templatte-shadow);
    background: var(--templatte-surface-2);
  }
  figure.screenshot figcaption { margin-top: 8px; font-size: 13px; color: var(--templatte-text-faint-solid); }
  .screenshot-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 20px; }
  .screenshot-row figure.screenshot { flex: 1 1 240px; min-width: 0; margin: 0; }

  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 18px; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 18px; }
  @media (max-width: 640px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .guide-home-heading { display: block; }
    .guide-home-heading .start-button { margin-top: 16px; }
    .purpose-grid,
    .feature-grid { grid-template-columns: 1fr; }
    .feature-grid a:last-child:nth-child(odd) { grid-column: auto; }
    .quick-start { padding: 20px 16px; }
  }
  .fact-card {
    border: 1px solid var(--templatte-border);
    border-radius: var(--templatte-radius-m);
    padding: 16px 18px;
    background: var(--templatte-surface);
  }
  .fact-card .fact-title {
    font-family: var(--templatte-font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--templatte-accent);
    margin-bottom: 6px;
  }
  .fact-card p { color: var(--templatte-text-muted); font-size: 14px; margin: 0; }
  .fact-card strong { display: block; font-size: 15px; margin-bottom: 4px; }

  table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14.5px; }
  thead th {
    text-align: left; font-size: 12px; letter-spacing: 0.04em;
    color: var(--templatte-text-faint-solid);
    border-bottom: 1px solid var(--templatte-border);
    padding: 0 10px 8px 0; font-weight: 600;
  }
  tbody td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--templatte-border-soft); vertical-align: top; }
  tbody tr:last-child td { border-bottom: none; }
  table code { white-space: nowrap; }

  .story-card {
    scroll-margin-top: 24px;
    border: 1px solid var(--templatte-border);
    border-radius: var(--templatte-radius-m);
    padding: 18px 20px;
    margin: 0 0 16px;
    background: var(--templatte-surface);
  }
  .story-card .story-role {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--templatte-accent);
    background: var(--templatte-accent-soft);
    border-radius: 999px;
    padding: 3px 12px;
    margin-bottom: 10px;
  }
  .story-card .story-quote { font-size: 15px; color: var(--templatte-text-muted); margin-bottom: 12px; }
  .story-card .story-answer { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
  .story-card .story-answer .arrow { color: var(--templatte-accent); font-weight: 700; flex: none; }

  .chapter-nav {
    display: flex; justify-content: space-between; gap: 16px;
    margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--templatte-border);
  }
  .chapter-nav a {
    flex: 1; text-decoration: none; color: var(--templatte-text-muted);
    border: 1px solid var(--templatte-border); border-radius: var(--templatte-radius-m);
    padding: 12px 16px; font-size: 13.5px; display: block;
    transition: border-color 120ms ease, color 120ms ease;
  }
  .chapter-nav a:hover { border-color: var(--templatte-accent); color: var(--templatte-accent); }
  .chapter-nav a.next { text-align: right; }
  .chapter-nav a .dir { display: block; font-size: 11px; color: var(--templatte-text-faint-solid); margin-bottom: 3px; letter-spacing: 0.04em; }

  @media (max-width: 900px) {
    .layout { display: block; }
    .sidebar {
      position: fixed; inset: 0 30% 0 0; z-index: 50; width: auto;
      transform: translateX(-105%); transition: transform 180ms ease; box-shadow: var(--templatte-shadow);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 45; }
    .sidebar-scrim.open { display: block; }
    .nav-toggle {
      display: flex; align-items: center; gap: 8px;
      position: fixed; top: 14px; left: 14px; z-index: 55;
      background: var(--templatte-surface); color: var(--templatte-text);
      border: 1px solid var(--templatte-border); border-radius: var(--templatte-radius-s);
      padding: 9px 12px; font-size: 13px; font-family: var(--templatte-font-sans);
      box-shadow: var(--templatte-shadow); cursor: pointer;
    }
    .nav-toggle.is-open { display: none; }
    .content { padding: 90px 22px 100px; }
    .doc-title { font-size: 26px; }
  }
