.esp-md-demo__bar,
.esp-md-demo__screen {
    padding: clamp(14px, 3vw, 28px);
}

.esp-md-demo__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-block: 12px;
    background: var(--esp-accent-dark);
    color: var(--esp-surface);
}

.esp-md-demo__bar span {
    margin-inline-start: auto;
    font-size: 12px;
    text-align: right;
}

.esp-md-demo__screen {
    display: grid;
    gap: 16px;
    align-content: start;
    font-size: 15px;
}

.esp-md-demo__caption,
.esp-md-demo__proof p,
.esp-md-demo__next p {
    margin: 0;
    color: var(--esp-text);
}

.esp-md-demo__chat,
.esp-md-demo__calendar,
.esp-md-demo__record {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: var(--esp-r1);
    background: var(--esp-surface-warm);
}

.esp-md-demo__chat p {
    justify-self: start;
    max-width: min(88%, 440px);
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--esp-border);
    border-radius: var(--esp-r1);
    background: var(--esp-surface);
}

.esp-md-demo__chat p:nth-child(even) {
    justify-self: end;
    background: var(--esp-accent-soft);
}

.esp-md-demo__chat b,
.esp-md-demo__calendar small {
    display: block;
    font-size: 13px;
}

.esp-md-demo__calendar div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    padding: 10px;
    border-radius: var(--esp-r1);
    color: var(--esp-text);
}

.esp-md-demo__calendar .is-booked {
    background: var(--esp-accent-soft);
    color: var(--esp-ink);
}

.esp-md-demo__calendar time {
    min-width: 44px;
    font-variant-numeric: tabular-nums;
}

.esp-md-demo__record dl {
    margin: 4px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--esp-border);
}

.esp-md-demo__record dt {
    font-weight: 600;
}

.esp-md-demo__record dd {
    margin: 4px 0 0;
}

.esp-md-demo__next,
.esp-md-demo__proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 20px;
}

.esp-md-demo__next {
    justify-content: space-between;
}

.esp-md-demo__next h3 {
    margin: 0 0 4px;
    color: var(--esp-ink);
}

.esp-md-demo__proof {
    padding-top: 16px;
    border-top: 1px solid var(--esp-border);
}

.esp-md-demo__proof strong {
    color: var(--esp-accent-dark);
    font-size: clamp(24px, 4vw, 36px);
    font-family: var(--esp-font-ui);
}

.esp-md-demo__proof p {
    flex: 1 1 240px;
}

@container esp-tour (max-width: 639px) {
    .esp-md-demo .esp-tour__steps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .esp-md-demo .esp-tour__wrap:not(.is-on) .esp-tour__steps,
    .esp-md-demo .esp-tour__steps::before,
    .esp-md-demo .esp-tour__tt small {
        display: none;
    }

    .esp-md-demo .esp-tour__tab {
        width: 100%;
        justify-items: center;
        gap: 6px;
        padding-block: 6px;
        text-align: center;
    }

    .esp-md-demo .esp-tour__tt {
        position: static;
        width: auto;
        height: auto;
        clip: auto;
        white-space: normal;
    }

    .esp-md-demo .esp-tour__tt b {
        font-size: 13px;
    }
}
