.demo-showcase {
    padding-block-end: clamp(4rem, 7vw, 6rem);
}

.demo-showcase .section-head h2 {
    margin: 0;
}

.demo-showcase .section-head p,
.demo-copy {
    min-width: 0;
    overflow-wrap: anywhere;
}

.demo-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.demo-card {
    display: grid;
    grid-template-columns: clamp(4.5rem, 8vw, 7rem) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(1rem, 2vw, 1.5rem);
    color: var(--text);
    background: linear-gradient(120deg, #1b192d, #101421 80%);
    border: 1px solid #363149;
    border-radius: 16px;
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease;
}

.demo-card:hover,
.demo-card:focus-visible {
    border-color: var(--accent);
}

.demo-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.demo-cover {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid #554466;
    border-radius: 12px;
}

.demo-art {
    display: grid;
    place-items: center;
    background-color: #191929;
    background-image: linear-gradient(35deg, #26173333, #39476355),
        linear-gradient(#d0b4ff0c 1px, transparent 1px),
        linear-gradient(90deg, #d0b4ff0c 1px, transparent 1px);
    background-size: auto, 14px 14px, 14px 14px;
    color: #d6c3ff;
    font: 600 clamp(1.1rem, 2vw, 1.6rem)/1 monospace;
}

.demo-copy h3 {
    margin: 0;
    color: #f2edf9;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.3;
    letter-spacing: -.025em;
}

.demo-copy p {
    margin: .45rem 0 0;
    color: #b2b0c5;
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-line;
}

.demo-open {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .9rem;
    color: #d6c3ff;
    font-size: .875rem;
    font-weight: 600;
}

.demo-open::before {
    content: "";
    border-block: .25rem solid transparent;
    border-left: .4rem solid currentColor;
}

.demo-empty {
    margin: 0;
    padding: 1.25rem 1.4rem;
    border: 1px dashed #45405a;
    border-radius: 14px;
    color: #b2b0c5;
}

.demo-editor-actions {
    flex-wrap: wrap;
    margin-top: 1rem;
}

.demo-editor .panel-title,
.demo-editor .project-select span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.demo-file-help {
    max-width: 70ch;
    color: #c6bdd4;
    line-height: 1.6;
}

.admin-body #admin-navigation > button[data-tab] {
    font-size: .8125rem;
    line-height: 1.35;
}

@media (min-width: 751px) {
    .admin-body .sidebar { overflow-y: auto; }
}

@media (max-width: 750px) {
    .demo-cards { grid-template-columns: minmax(0, 1fr); }
    .demo-card { grid-template-columns: 4.5rem minmax(0, 1fr); }
    .demo-showcase .section-head p { margin-top: .75rem; }
}

@media (max-width: 360px) {
    .demo-card { grid-template-columns: 3.5rem minmax(0, 1fr); gap: .75rem; }
}
