.manual-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.manual-step {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-background);
}

.manual-step-no {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-size: 0.85rem;
    font-weight: bold;
}

.docs-article .manual-step h3,
.docs-article .manual-step p {
    margin: 0;
}

/* Live copies of app components: look the same, but are not clickable */
.manual-demo {
    margin: 1rem 0;
    overflow-x: auto;
    pointer-events: none;
    user-select: none;
}

.manual-step .manual-demo {
    margin: auto 0 0;
}

/* The cover cards size themselves by viewport height; here they get a fixed, compact size */
.manual-demo .cover-select {
    margin-bottom: 0;
    gap: 0.75rem;
}

.manual-demo .cover-select .cover-button {
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
}

.manual-demo .cover-card-icon {
    width: 2.25rem;
    height: 2.25rem;
}

.manual-demo .cover-card-body {
    gap: 0.125rem;
}

.manual-demo .cover-card-name {
    font-size: 0.95rem;
}

.manual-demo .cover-card-sub {
    font-size: 0.8rem;
}

.manual-demo .cover-select .cover-button .check-mark {
    width: 1.5rem;
    height: 1.5rem;
}

.manual-step .cover-select {
    grid-template-columns: minmax(0, 1fr);
}

.docs-article .faq-question {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.docs-article .faq-answer {
    padding: 0 1rem 0.75rem;
    font-size: 0.85rem;
}

.manual-demo--row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.manual-stage {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-background);
    overflow-x: auto;
}

.manual-stage .sidebar {
    flex: none;
    width: var(--sidebar-width);
}

.manual-stage .modal {
    position: static;
    transform: none;
    width: auto;
    max-width: 34rem;
    max-height: none;
    margin: 0 auto;
}

.manual-stage .toast {
    position: relative;
    animation: none;
}

.manual-stage .toast::after {
    width: 100%;
    animation: none;
}

.manual-stage .calendar-day-detail {
    margin-top: 1rem;
}

.manual-demo a {
    color: inherit;
}

.manual-demo .task-links a,
.manual-demo .modal-content a {
    color: var(--color-primary);
}

.manual-split {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin: 1rem 0;
}

.manual-split > .manual-demo {
    margin: 0;
}

.manual-split ul {
    margin-top: 0;
}

.manual-pair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    align-items: start;
}

[data-manual-tabs] .view-tabs {
    width: fit-content;
    max-width: 100%;
}

.manual-tabs-panels [hidden] {
    display: none;
}

.docs-article td .task-chip {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .cover-nav,
    .cover-brand {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .docs-article table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 900px) {
    .docs-body {
        align-items: stretch;
    }

    .manual-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .manual-stage .sidebar {
        width: 100%;
    }
}
