:root {
    color-scheme: light;
    --primary: #1539a3;
    --primary-hover: #102c7f;
    --primary-soft: rgba(21, 57, 163, 0.07);
    --nav-active-background: rgba(21, 57, 163, 0.1);
    --sidebar-text: #3f4043;
    --sidebar-text-hover: #17181b;
    --sidebar-hover-background: rgba(80, 81, 84, 0.05);
    --sidebar-icon: #9fa0a3;
    --sidebar-chevron: #9fa0a3;
    --sidebar-chevron-hover: #505154;
    --toc-title: #505154;
    --toc-section: #505154;
    --toc-subsection: #707174;
    --primary-border: rgba(21, 57, 163, 0.35);
    --background: #ffffff;
    --surface: #fafafa;
    --text-strong: #17181b;
    --text: #3f4043;
    --text-muted: #707174;
    --border: #e5e5e5;
    --border-soft: #eeeff2;
    --code-background: #f3f4f7;
    --callout-background: #fafafa;
    --callout-border: #e5e5e5;
    --callout-text: #262626;
    --required-text: #b42318;
    --required-background: rgba(240, 68, 56, 0.08);
    --required-border: rgba(240, 68, 56, 0.28);
    --code-block-background: #ffffff;
    --code-block-border: rgba(10, 11, 15, 0.1);
    --code-copy-icon: #9fa0a3;
    --code-copy-icon-hover: #707174;
    --code-text: #1f2328;
    --code-key: #116329;
    --code-value: #0a3069;
    --switch-off: #dfe0e3;
    --radio-border: #9fa0a3;
    --floating-background: #ffffff;
    --font-sans: 'Inter', -apple-system, 'system-ui', 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --primary: #1e4bd4;
        --primary-hover: #2f5ce6;
        --primary-soft: rgba(30, 75, 212, 0.16);
        --nav-active-background: rgba(30, 75, 212, 0.1);
        --sidebar-text: #9fa0a3;
        --sidebar-text-hover: #cecfd3;
        --sidebar-hover-background: rgba(223, 224, 227, 0.05);
        --sidebar-icon: #707174;
        --sidebar-chevron: #505154;
        --sidebar-chevron-hover: #9fa0a3;
        --toc-title: #cecfd3;
        --toc-section: #cecfd3;
        --toc-subsection: #9fa0a3;
        --primary-border: rgba(30, 75, 212, 0.6);
        --background: #000000;
        --surface: rgba(255, 255, 255, 0.06);
        --text-strong: #dfe0e3;
        --text: #cecfd3;
        --text-muted: #9fa0a3;
        --border: #404040;
        --border-soft: #25272a;
        --code-background: rgba(255, 255, 255, 0.08);
        --callout-background: rgba(255, 255, 255, 0.1);
        --callout-border: #404040;
        --callout-text: #d4d4d4;
        --required-text: #fda29b;
        --required-background: rgba(240, 68, 56, 0.14);
        --required-border: rgba(240, 68, 56, 0.4);
        --code-block-background: #0b0c0e;
        --code-block-border: rgba(255, 255, 255, 0.1);
        --code-copy-icon: rgba(255, 255, 255, 0.4);
        --code-copy-icon-hover: rgba(255, 255, 255, 0.6);
        --code-text: #d4d4d4;
        --code-key: #569cd6;
        --code-value: #ce9178;
        --switch-off: #3f4043;
        --radio-border: #707174;
        --floating-background: #16171a;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

strong {
    font-weight: 600;
    color: var(--text-strong);
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    color: var(--text-strong);
    background: var(--code-background);
    border-radius: 6px;
    padding: 2px 6px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--background);
    border-bottom: 1px solid var(--border-soft);
}

.site-header-inner {
    max-width: 1100px;
    height: 64px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-logo img {
    display: block;
    height: 26px;
    width: auto;
}

.site-nav {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.site-nav a {
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover {
    color: var(--text-strong);
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

.page-eyebrow {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.page-title {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text-strong);
}

.page-lead {
    margin-top: 12px;
    font-size: 17px;
    color: var(--text);
}

.deploy-method-switch {
    display: flex;
    gap: 4px;
    width: fit-content;
    margin-top: 20px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.deploy-method-link {
    padding: 5px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 22px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.deploy-method-link:hover {
    color: var(--text-strong);
}

.deploy-method-link.is-active {
    background: var(--floating-background);
    color: var(--text-strong);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(10, 11, 15, 0.08), 0 6px 16px -8px rgba(10, 11, 15, 0.25);
}

.deploy-method-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.step {
    margin-top: 36px;
}

.step-title {
    font-size: 22px;
    line-height: 32px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text-strong);
    margin-bottom: 18px;
}

.sidebar {
    display: none;
}

.sidebar-group-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 6px 12px 6px 16px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--sidebar-text);
    font-family: inherit;
    font-size: 14px;
    line-height: 24px;
    text-align: left;
    cursor: pointer;
}

.sidebar-group-toggle:hover {
    background: var(--sidebar-hover-background);
    color: var(--sidebar-text-hover);
}

.sidebar-group-icon {
    display: flex;
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--sidebar-icon);
}

.sidebar-group-chevron {
    flex-shrink: 0;
    margin-right: -2px;
    color: var(--sidebar-chevron);
    transition: transform 75ms ease;
}

.sidebar-group-toggle:hover .sidebar-group-chevron {
    color: var(--sidebar-chevron-hover);
}

.sidebar-group-toggle[aria-expanded="true"] .sidebar-group-chevron {
    transform: rotate(90deg);
}

.sidebar-group-items {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 1px;
    list-style: none;
}

.sidebar-link {
    display: flex;
    padding: 6px 12px 6px 28px;
    border-radius: 12px;
    color: var(--sidebar-text);
    font-size: 14px;
    line-height: 24px;
    text-decoration: none;
}

.sidebar-link:hover {
    background: var(--sidebar-hover-background);
    color: var(--sidebar-text-hover);
}

.sidebar-link.is-active,
.sidebar-link.is-active:hover {
    background: var(--nav-active-background);
    color: var(--primary);
    text-shadow: -0.2px 0 0 currentColor, 0.2px 0 0 currentColor;
}

.sidebar-group-toggle:focus-visible,
.sidebar-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -1px;
}

.step-title,
.module {
    scroll-margin-top: 96px;
}

.toc {
    display: none;
}

.toc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
    color: var(--toc-title);
}

.toc-list {
    list-style: none;
}

.toc-link {
    display: block;
    padding: 4px 0;
    font-size: 14px;
    line-height: 24px;
    text-decoration: none;
}

.toc-link.is-section {
    font-weight: 500;
    color: var(--toc-section);
}

.toc-link.is-subsection {
    padding-left: 16px;
    color: var(--toc-subsection);
}

.toc-link:hover {
    color: var(--text-strong);
}

.toc-link.is-active,
.toc-link.is-active:hover {
    font-weight: 500;
    color: var(--primary);
    text-shadow: -0.15px 0 0 currentColor, 0.15px 0 0 currentColor;
}

.toc-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.info-callout {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding: 16px 20px;
    border: 1px solid var(--callout-border);
    border-radius: 16px;
    background: var(--callout-background);
    color: var(--callout-text);
    font-size: 14px;
    line-height: 20px;
}

.info-callout-icon {
    flex: none;
}

.info-callout-title {
    font-weight: 500;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding-left: 18px;
}

.checklist li::marker {
    color: var(--text-muted);
}

.module {
    margin-top: 32px;
}

.step-title + .module {
    margin-top: 0;
}

.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.module-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-strong);
}

.module-description {
    margin-top: 6px;
    font-size: 16px;
    line-height: 28px;
}

.module-description code {
    white-space: nowrap;
}

.module-description + .module-description,
.content-list + .module-description,
.choice-list + .module-description,
.code-block + .module-description,
.callout + .module-description {
    margin-top: 14px;
}

.step-intro {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 28px;
}

.content-list {
    margin-top: 8px;
    padding-left: 22px;
    font-size: 16px;
    line-height: 28px;
}

.content-list li {
    margin: 4px 0;
    padding-left: 4px;
}

.content-list li::marker {
    color: var(--text-muted);
}

.content-link {
    font-weight: 600;
    color: var(--text-strong);
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
}

.content-link:hover {
    border-bottom-width: 2px;
}

.guide-section {
    margin-top: 56px;
}

.guide-steps {
    margin-top: 24px;
    list-style: none;
}

.guide-step {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    scroll-margin-top: 96px;
}

.guide-step + .guide-step {
    margin-top: 40px;
}

.guide-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--primary-border);
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.guide-step-title {
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-strong);
}

.guide-step-body {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.guide-step-action {
    margin-top: 14px;
}

.guide-step .content-list {
    list-style-type: disc;
}

.guide-step-image-frame {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border: 0;
    border-radius: 16px;
    background: var(--code-background);
    font: inherit;
    line-height: 0;
    text-align: center;
    cursor: zoom-in;
}

.guide-step-image-frame:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.guide-step-image {
    display: inline-block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(400px, 50vh);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    box-shadow: 0 1px 2px rgba(10, 11, 15, 0.08), 0 12px 28px -14px rgba(10, 11, 15, 0.3);
    vertical-align: top;
    transition: border-color 0.15s ease;
}

.guide-step-image-frame:hover .guide-step-image {
    border-color: var(--primary-border);
}

.image-preview[open] {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-out;
}

.image-preview::backdrop {
    background: rgba(10, 11, 15, 0.82);
    animation: image-preview-fade-in 0.18s ease-out;
}

.image-preview-image {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    max-width: calc(100% - 48px);
    max-height: calc(100% - 48px);
    margin: auto;
    border-radius: 8px;
    cursor: default;
    animation: image-preview-zoom-in 0.18s ease-out;
}

html:has(.image-preview[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

@keyframes image-preview-fade-in {
    from {
        opacity: 0;
    }
}

@keyframes image-preview-zoom-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
}

.disclosure {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    scroll-margin-top: 96px;
}

.disclosure-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 13px;
    color: var(--text-strong);
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    list-style: none;
    cursor: pointer;
}

.disclosure-summary::-webkit-details-marker {
    display: none;
}

.disclosure-summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.disclosure-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.15s ease, color 0.15s ease;
}

.disclosure-summary:hover .disclosure-chevron {
    color: var(--text-strong);
}

.disclosure[open] .disclosure-chevron {
    transform: rotate(180deg);
}

.disclosure-body {
    padding: 0 16px 20px;
}

.disclosure .module-title {
    font-size: 16px;
    line-height: 24px;
}

.setting-list {
    margin-top: 16px;
    border-top: 1px solid var(--border-soft);
}

.setting {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
}

.setting-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.setting-name {
    padding: 0;
    background: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    word-break: break-all;
}

.setting-description {
    margin-top: 4px;
    font-size: 15px;
    line-height: 26px;
}

.setting-where {
    margin-top: 4px;
    font-size: 14px;
    line-height: 22px;
    color: var(--text-muted);
}

.setting-where-label {
    font-weight: 500;
    color: var(--text);
}

.badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
}

.badge.is-required {
    border-color: var(--required-border);
    background: var(--required-background);
    color: var(--required-text);
}

.badge.is-recommended {
    border-color: var(--primary-border);
    background: var(--primary-soft);
    color: var(--primary);
}

.choice-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--background);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.choice.is-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.choice:active {
    transform: scale(0.99);
}

.choice.is-pulsing {
    animation: choice-pulse 0.6s ease-out;
}

@keyframes choice-pulse {
    from {
        box-shadow: 0 0 0 1px var(--primary), 0 0 0 0 color-mix(in srgb, var(--primary) 40%, transparent);
    }
    to {
        box-shadow: 0 0 0 1px var(--primary), 0 0 0 10px color-mix(in srgb, var(--primary) 0%, transparent);
    }
}

.choice input {
    flex-shrink: 0;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    border: 1.5px solid var(--radio-border);
    border-radius: 50%;
    background: var(--background);
    box-shadow: inset 0 0 0 9px var(--background);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.choice input:checked {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 3.5px var(--background);
}

.choice input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (hover: hover) {
    .choice:hover {
        border-color: var(--primary-border);
        box-shadow: 0 1px 2px rgba(10, 11, 15, 0.06), 0 10px 24px -12px color-mix(in srgb, var(--primary) 45%, transparent);
        transform: translateY(-1px);
    }

    .choice.is-selected:hover {
        border-color: var(--primary);
        box-shadow: 0 0 0 1px var(--primary), 0 10px 24px -12px color-mix(in srgb, var(--primary) 45%, transparent);
    }

    .choice:hover input:not(:checked) {
        border-color: var(--primary);
    }

    .choice:active {
        transform: translateY(0) scale(0.99);
    }
}

.choice-text {
    flex: 1;
    min-width: 0;
}

.choice-label {
    display: block;
    font-size: 15px;
    line-height: 24px;
    font-weight: 600;
    color: var(--text-strong);
}

.choice-desc {
    display: block;
    font-size: 14px;
    line-height: 22px;
    color: var(--text-muted);
}

.template-summary {
    position: sticky;
    bottom: 16px;
    z-index: 20;
    margin-top: 20px;
    padding: 12px 16px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--floating-background);
    box-shadow: 0 1px 3px rgba(10, 11, 15, 0.08), 0 18px 40px -16px rgba(10, 11, 15, 0.3);
}

.template-summary-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.template-summary-title {
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    color: var(--text-strong);
}

.template-summary-parts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    list-style: none;
}

.template-part {
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--code-background);
    color: var(--text-strong);
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease;
}

.template-summary .template-summary-actions {
    align-items: stretch;
    margin-top: 12px;
}

.template-summary .primary-btn {
    flex: 2 1 0;
}

.template-summary .secondary-btn {
    flex: 1 1 0;
}

.template-part:hover {
    border-color: var(--primary-border);
}

.template-part:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.template-part.is-changed {
    animation: template-part-change 0.9s ease-out;
}

@keyframes template-part-change {
    0% {
        opacity: 0;
        transform: scale(0.8);
        background: var(--primary);
        color: #ffffff;
    }
    35% {
        opacity: 1;
        transform: scale(1.06);
        background: var(--primary);
        color: #ffffff;
    }
    100% {
        transform: scale(1);
        background: var(--code-background);
        color: var(--text-strong);
    }
}

.switch {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 24px;
}

.switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 999px;
    background: var(--switch-off);
    transition: background-color 0.2s ease, box-shadow 0.15s ease;
}

.slider:before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.switch input:checked + .slider {
    background: var(--primary);
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

@media (hover: hover) {
    .switch:hover .slider {
        box-shadow: 0 0 0 4px var(--primary-soft);
    }
}

.switch:active input + .slider:before {
    transform: scale(0.9);
}

.switch:active input:checked + .slider:before {
    transform: translateX(20px) scale(0.9);
}

.switch input:focus-visible + .slider {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.callout {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid var(--primary-border);
    border-radius: 16px;
    background: var(--primary-soft);
}

.callout-icon {
    display: flex;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}

.callout-body {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.7;
}

.callout-action {
    margin-top: 12px;
}

.generate-wrapper {
    margin-top: 20px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.primary-btn {
    flex: 1 1 240px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.primary-btn:hover {
    background: var(--primary-hover);
}

.primary-btn:active {
    transform: scale(0.98);
}

.primary-btn:disabled {
    cursor: progress;
    opacity: 0.8;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--background);
    color: var(--text-strong);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.secondary-btn:hover {
    border-color: var(--primary-border);
    background: var(--surface);
}

.loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.code-block {
    position: relative;
    margin-top: 20px;
    border: 1px solid var(--code-block-border);
    border-radius: 16px;
    background: var(--code-block-background);
    overflow: hidden;
}

.code-block-fade {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 99px;
    height: 44px;
    border-top-right-radius: 16px;
    background: linear-gradient(to right, transparent 0, color-mix(in srgb, var(--code-block-background) 20%, transparent) 10px, color-mix(in srgb, var(--code-block-background) 50%, transparent) 25px, color-mix(in srgb, var(--code-block-background) 80%, transparent) 35px, var(--code-block-background) 45px);
    pointer-events: none;
}

.code-block-copy {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 6px;
    background: var(--code-block-background);
    color: var(--code-copy-icon);
    cursor: pointer;
}

.code-block-copy:hover {
    color: var(--code-copy-icon-hover);
}

.code-block-copy:hover::after,
.code-block-copy.is-copied::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--text-strong);
    color: var(--background);
    font-size: 12px;
    line-height: 20px;
    font-weight: 500;
    white-space: nowrap;
}

.code-block-copy:focus-visible,
.code-block-expand:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

.code-block-body {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 14px 52px 14px 16px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 24px;
    color: var(--code-text);
}

.code-block-body {
    scrollbar-width: none;
}

.code-block-body::-webkit-scrollbar {
    display: none;
}

.code-block.is-collapsed .code-block-body {
    max-height: 398px;
}

.code-block-body code {
    padding: 0;
    background: none;
    font-size: inherit;
    color: inherit;
}

.code-block-footer {
    display: flex;
    justify-content: center;
    padding-bottom: 14px;
}

.code-block.is-collapsed .code-block-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: flex-end;
    height: 96px;
    background: linear-gradient(to bottom, transparent, var(--code-block-background) 70%);
    pointer-events: none;
}

.code-block-expand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid var(--code-block-border);
    border-radius: 999px;
    background: var(--background);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.code-block-expand:hover {
    color: var(--text-strong);
}

.code-block-expand[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.token-key {
    color: var(--code-key);
}

.token-value {
    color: var(--code-value);
}

@media (max-width: 599px) {
    .choice {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .choice-text {
        flex-basis: calc(100% - 30px);
    }

    .template-summary {
        bottom: 12px;
    }

    .template-summary .template-summary-actions {
        gap: 8px;
    }

    .template-summary .primary-btn,
    .template-summary .secondary-btn {
        padding: 10px 12px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .choice,
    .choice input,
    .slider,
    .slider:before,
    .deploy-method-link,
    .guide-step-image,
    .disclosure-chevron {
        transition: none;
    }

    .choice.is-pulsing,
    .template-part.is-changed,
    .image-preview::backdrop,
    .image-preview-image {
        animation: none;
    }
}

@media (min-width: 768px) {
    .site-header-inner {
        padding: 0 32px;
    }

    .container {
        padding: 56px 24px 96px;
    }

    .page-title {
        font-size: 36px;
    }

    .step {
        margin-top: 40px;
    }

    .step-title {
        font-size: 24px;
    }

    .module-title {
        font-size: 20px;
    }

    .guide-section {
        margin-top: 64px;
    }

    .guide-step {
        column-gap: 16px;
    }

    .guide-step:not(:last-child)::before {
        content: '';
        position: absolute;
        top: 40px;
        bottom: -32px;
        left: 15px;
        width: 2px;
        border-radius: 1px;
        background: var(--border);
    }

    .guide-step-title {
        font-size: 20px;
    }

    .guide-step-body {
        grid-column: 2;
    }

    .guide-step-image-frame {
        padding: 24px;
    }
}

@media (min-width: 1024px) {
    .layout {
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 32px;
        display: grid;
        grid-template-columns: 256px minmax(0, 680px);
        gap: 56px;
    }

    .sidebar {
        display: block;
        position: sticky;
        top: 64px;
        align-self: start;
        padding: 32px 0;
    }

    .container {
        margin: 0;
        padding: 40px 0 96px;
    }
}

@media (min-width: 1280px) {
    .site-header-inner {
        max-width: 1440px;
    }

    .layout {
        max-width: 1440px;
        grid-template-columns: 256px minmax(0, 1fr) 264px;
    }

    .toc {
        display: block;
        position: sticky;
        top: 64px;
        align-self: start;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        padding: 40px 0;
    }
}
