:root {
    color-scheme: dark;
    --bg: #080809;
    --surface: #151518;
    --text: #f4f4f5;
    --muted: #aaaab5;
    --border: #2a2a30;
    --depth: 0 16px 34px -18px #000d, inset 0 1px #ffffff15, inset 0 -1px #000;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 112px; scrollbar-width: thin; scrollbar-color: #48484e #0c0c0e; }
body { background: radial-gradient(ellipse at 85% 0, #ffffff05, transparent 600px), var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; line-height: 1.9; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
img { display: block; }
[hidden] { display: none !important; }
::selection { background: #dadade; color: #080809; }
:focus-visible { outline: 2px solid #eeeef2; outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 300; padding: 12px 20px; background: #fff; color: #111; transform: translateY(-150%); font-size: 12px; }
.skip-link:focus { transform: none; }
.topbar { height: 84px; position: sticky; top: 0; z-index: 100; background: #080809eb; backdrop-filter: blur(18px); border-bottom: 1px solid #ffffff0d; }
.nav-inner { max-width: 1200px; width: calc(100% - 80px); margin: auto; height: 100%; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.brand img { object-fit: contain; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 11px; color: var(--muted); }
.nav-links a { padding-block: 10px; }
.nav-links a:hover { color: #fff; }
.nav-links .nav-action { display: inline-flex; gap: 16px; align-items: center; padding: 10px 18px; border-radius: 9px; color: #f4f4f5; background: linear-gradient(#242427, #18181b); box-shadow: var(--depth); }
.nav-action:hover { background: #2a2a30; }
.page-shell { max-width: 1200px; width: calc(100% - 80px); margin: auto; display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 72px; align-items: start; }
.sidebar { position: sticky; top: 116px; max-height: calc(100svh - 144px); overflow-y: auto; scrollbar-width: thin; padding: 20px 16px 12px 0; }
.contents > summary { font-size: 11px; font-weight: 500; color: #e7e7ed; list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.contents > summary::-webkit-details-marker { display: none; }
.contents > summary svg { width: 12px; height: 12px; transform: rotate(-90deg); }
.contents[open] > summary svg { transform: none; }
.contents nav { display: flex; flex-direction: column; gap: 3px; }
.contents nav a { font-size: 10px; color: var(--muted); padding: 8px 10px; border-radius: 6px; line-height: 1.7; transition: color .15s, background .15s; }
.contents nav a:hover { color: #fff; background: #ffffff04; }
.contents nav a[aria-current] { background: #ffffff09; color: #fff; }
.method-links { display: flex; flex-direction: column; margin: 0 0 10px 11px; padding-left: 10px; border-left: 1px solid #33333b; }
.method-links a { font-size: 9px !important; padding-block: 6px !important; }
.sidebar-footer { margin: 28px 10px 0; padding-top: 22px; border-top: 1px solid var(--border); }
.sidebar-footer p { font-size: 10px; color: #93939e; margin-bottom: 7px; }
.sidebar-footer a { font-size: 9px; display: flex; gap: 12px; align-items: center; color: #d0d0da; }
.sidebar-footer svg { width: 13px; height: 13px; }
main { min-width: 0; padding: 56px 0 36px; }
.guide-hero { display: grid; grid-template-columns: 1fr 140px; gap: 20px; align-items: center; margin-bottom: 38px; min-height: 154px; }
h1 { font-size: 42px; font-weight: 500; letter-spacing: -.03em; line-height: 1.35; margin-bottom: 14px; }
.guide-hero p { color: #aaaab5; font-size: 12px; line-height: 2; max-width: 480px; }
.guide-emblem { position: relative; height: 150px; perspective: 700px; user-select: none; }
.emblem-back, .emblem-front { position: absolute; width: 108px; height: 126px; top: 8px; left: 10px; border-radius: 15px; background: linear-gradient(135deg, #3a3a42, #1e1e24 40%, #121216); box-shadow: 8px 16px 26px #0008, inset 1px 1px #ffffff24; }
.emblem-back { transform: rotateX(12deg) rotateY(-24deg) rotateZ(12deg) translate(12px, -4px); }
.emblem-front { transform: rotateX(12deg) rotateY(-24deg) rotateZ(-9deg); display: grid; place-items: center; }
.emblem-front img { width: 66px; height: 66px; opacity: .8; filter: drop-shadow(4px 6px 3px #0008); }
.search-container { position: relative; z-index: 10; margin-bottom: 28px; }
.search-field { display: flex; align-items: center; min-height: 56px; gap: 14px; border-radius: 10px; padding: 0 17px; background: #161619; box-shadow: var(--depth); outline: 1px solid transparent; transition: outline-color .2s; }
.search-field:focus-within { outline-color: #85858f; }
.search-field > svg { color: #a6a6b2; }
.search-field input { min-width: 0; flex: 1; width: 100%; border: 0; outline: none; background: transparent; color: #eeeef2; font-size: 11px; font-weight: 300; padding-block: 17px; caret-color: #fff; }
.search-field input::placeholder { color: #9999a6; opacity: 1; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; border: 0; color: #c8c8d4; background: #ffffff08; }
.search-field kbd { display: inline-flex; align-items: center; justify-content: center; height: 24px; min-width: 23px; border: 1px solid #38383f; border-radius: 5px; font: inherit; font-size: 12px; color: #9797a4; }
.search-dropdown { position: absolute; inset: calc(100% + 8px) 0 auto; max-height: min(440px, 60svh); overflow-y: auto; background: #1c1c20; border: 1px solid #3b3b43; box-shadow: 0 18px 40px #000c; border-radius: 12px; }
.search-result { display: block; padding: 16px 18px; border-bottom: 1px solid #ffffff08; }
.search-result:last-child { border: 0; }
.search-result:hover, .search-result:focus-visible { background: #ffffff08; outline-offset: -3px; }
.search-result strong { display: block; font-size: 11px; font-weight: 500; margin-bottom: 6px; }
.search-result span { display: block; font-size: 10px; color: #aaaab7; line-height: 1.8; }
.search-empty { padding: 22px 18px; font-size: 11px; color: #b5b5c0; }
.guide-intro { color: #aaaab5; font-size: 12px; line-height: 2; max-width: 73ch; }
.guide-section { margin-top: 60px; scroll-margin-top: 112px; }
h2 { font-size: 24px; font-weight: 500; letter-spacing: -.025em; line-height: 1.5; margin-bottom: 18px; }
h3 { font-size: 14px; font-weight: 500; letter-spacing: -.01em; line-height: 1.7; margin-bottom: 12px; }
.guide-section p { color: #b4b4bf; font-size: 12px; line-height: 2.05; text-wrap: pretty; }
.guide-section p a { color: #dedee6; text-decoration: underline; text-decoration-color: #676771; text-underline-offset: 4px; }
.section-description { margin-top: -7px; margin-bottom: 25px; color: #a3a3af !important; }
.start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.start-grid article { border-top: 1px solid #3c3c44; padding-top: 18px; }
.step-number { display: block; color: #9999a5; font-size: 10px; margin-bottom: 17px; font-variant-numeric: tabular-nums; }
.method-guides { display: flex; flex-direction: column; }
.method-guide { padding: 28px 0 30px; border-top: 1px solid var(--border); scroll-margin-top: 110px; }
.method-guide h3 { font-size: 17px; margin-bottom: 12px; }
.method-guide:last-child { padding-bottom: 0; }
.method-guide:target h3 { color: #fff; text-decoration: underline; text-decoration-color: #9999a5; text-underline-offset: 8px; }
.table-scroll { overflow-x: auto; margin: 25px 0; scrollbar-width: thin; border-radius: 10px; background: linear-gradient(140deg, #1d1d22, #131316); box-shadow: var(--depth); }
table { width: 100%; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-size: 12px; font-weight: 500; padding: 22px 24px 12px; }
th, td { padding: 14px 24px; text-align: left; border-bottom: 1px solid #ffffff08; }
thead th { color: #a6a6b3; font-size: 9px; font-weight: 400; white-space: nowrap; }
tbody th { font-weight: 400; max-width: 250px; min-width: 130px; }
td { color: #c3c3cd; white-space: nowrap; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.primary-action { display: inline-flex; align-items: center; gap: 20px; padding: 14px 22px; background: linear-gradient(#fff, #dedee3); border-radius: 9px; color: #111114; font-size: 11px; font-weight: 500; box-shadow: 0 7px 18px #0006, inset 0 1px #fff, inset 0 -2px #bdbdc4; transition: transform .2s; }
.primary-action:hover { transform: translateY(-2px); }
.about-project { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); scroll-margin-top: 112px; }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 22px; list-style: none; cursor: pointer; font-size: 12px; font-weight: 400; padding: 22px 0; line-height: 1.9; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: #222228; color: #d0d0dc; display: grid; place-items: center; font-family: sans-serif; font-size: 17px; line-height: 1; transition: transform .2s; }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item p { padding: 0 40px 24px 0; }
.guide-footer { border-top: 1px solid var(--border); padding-top: 26px; margin-top: 64px; font-size: 9px; color: #9797a5; line-height: 2; }
.guide-footer > div { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 16px; }
.guide-footer a:hover { color: #fff; }
.back-top { display: inline-block; margin-top: 24px; color: #d1d1da; }
@media (max-width: 1080px) {
    .page-shell { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
    h1 { font-size: 34px; }
    .guide-hero { grid-template-columns: 1fr 110px; }
    .guide-emblem { transform: scale(.8); transform-origin: center; }
    .start-grid { grid-template-columns: 1fr; }
    th, td { padding-inline: 18px; }
}
@media (max-width: 800px) {
    .nav-inner, .page-shell { width: calc(100% - 40px); }
    .page-shell { display: flex; flex-direction: column; gap: 0; }
    .sidebar { position: relative; top: auto; max-height: none; width: 100%; padding: 0; margin-top: 24px; overflow: visible; }
    .contents { background: #151518; border-radius: 10px; box-shadow: var(--depth); }
    .contents > summary { padding: 16px 18px; margin: 0; min-height: 52px; }
    .contents nav { padding: 0 12px 14px; max-height: 50svh; overflow-y: auto; }
    .contents nav a { font-size: 11px; min-height: 36px; }
    .sidebar-footer { display: none; }
    main { width: 100%; padding-top: 32px; }
    .guide-hero { grid-template-columns: 1fr 120px; margin-bottom: 30px; }
    h1 { font-size: 34px; }
    .guide-hero p { font-size: 11px; }
    .guide-emblem { transform: scale(.85); }
    .start-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
    html { scroll-padding-top: 96px; }
    .topbar { height: 72px; }
    .brand { font-size: 10px; gap: 7px; }
    .brand img { width: 24px; height: 25px; }
    .nav-links { gap: 12px; font-size: 10px; }
    .nav-links > a:not(.nav-action) { display: none; }
    .nav-links .nav-action { padding: 10px 12px; font-size: 9px; gap: 8px; }
    .nav-action svg { width: 13px; height: 13px; }
    .guide-hero { grid-template-columns: 1fr 84px; gap: 8px; min-height: 132px; }
    h1 { font-size: 28px; }
    .guide-emblem { transform: scale(.65); transform-origin: left center; }
    .guide-hero p { font-size: 10px; line-height: 2; }
    .search-field { gap: 10px; padding-inline: 14px; }
    .search-field input { font-size: 10px; }
    .search-field kbd { display: none; }
    .guide-intro { font-size: 11px; }
    .guide-section { margin-top: 44px; scroll-margin-top: 94px; }
    h2 { font-size: 21px; }
    .start-grid { grid-template-columns: 1fr; gap: 26px; }
    .guide-section p { font-size: 11px; }
    .method-guide { padding-block: 24px; scroll-margin-top: 94px; }
    .method-guide h3 { font-size: 15px; }
    table { font-size: 10px; }
    th, td { padding: 13px 15px; }
    caption { padding: 18px 15px 10px; }
    .faq-item summary { font-size: 11px; gap: 15px; }
    .faq-item p { padding-right: 10px; }
    .guide-footer { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Shared experimental type roles: wide headings, quieter reading copy. */
.guide-hero p, .guide-intro, .guide-section p { font-size: 16px; line-height: 1.85; }
.nav-links { font-size: 14px; }
.contents nav a, .contents > summary { font-size: 13px; }
.method-links a { font-size: 12px !important; }
.search-field input { font-size: 15px; }
.search-result strong { font-size: 14px; }
.search-result span, .search-empty { font-size: 13px; }
.sidebar-footer p, .sidebar-footer a { font-size: 12px; }
.faq-item summary { font-size: 16px; font-weight: 600; }
table { font-size: 14px; }
thead th { font-size: 12px; }
.primary-action { font-size: 14px; font-weight: 650; }
@media (max-width: 560px) {
    .guide-hero p { font-size: 14px; line-height: 1.7; }
    .guide-intro, .guide-section p { font-size: 15px; }
    .nav-links .nav-action { font-size: 12px; }
    .faq-item summary { font-size: 15px; }
    table { font-size: 13px; }
}

/* Keep supporting controls on the same decelerating motion curve. */
.primary-action, .nav-action, .contents nav a, .search-result { transition: transform .25s cubic-bezier(.22, 1, .36, 1), background-color .2s, color .2s, box-shadow .25s; }
@media (prefers-reduced-motion: reduce) { .primary-action, .nav-action, .contents nav a, .search-result { transition: none; } }
