.stylesheet-lab {
    container: stylesheet-lab / inline-size;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    color: #202126;
    background: #fff;
    border: 1px solid #dde2e9;
    border-radius: 5px;
}

.stylesheet-lab__toolbar {
    min-height: 58px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #e3e6eb;
}

.stylesheet-lab__file,
.stylesheet-lab__commands,
.stylesheet-lab__view-switch,
.stylesheet-result-heading,
.stylesheet-guide-heading {
    display: flex;
    align-items: center;
}

.stylesheet-lab__file {
    min-width: 0;
    gap: 10px;
}

.stylesheet-lab__language {
    width: 34px;
    height: 34px;
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    color: #fff;
    background: #9b3f9f;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 750;
}

.stylesheet-lab__file strong,
.stylesheet-lab__file span,
.stylesheet-result-heading strong,
.stylesheet-result-heading span {
    display: block;
}

.stylesheet-lab__file strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stylesheet-lab__file div > span {
    margin-top: 2px;
    overflow: hidden;
    color: #7b8797;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stylesheet-lab__commands {
    margin-left: auto;
    gap: 8px;
}

.stylesheet-lab__commands .btn {
    min-width: 98px;
    min-height: 36px;
    padding: 7px 14px;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0;
    white-space: nowrap;
}

.stylesheet-lab__view-switch {
    display: none;
    padding: 2px;
    gap: 2px;
    background: #f0f3f7;
    border: 1px solid #dce2e9;
    border-radius: 4px;
}

.stylesheet-lab__view-switch button {
    min-width: 62px;
    height: 30px;
    padding: 0 10px;
    color: #637084;
    background: transparent;
    border: 0;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
}

.stylesheet-lab__view-switch button.is-active {
    color: #202126;
    background: #fff;
    box-shadow: 0 1px 4px rgba(32, 33, 38, 0.12);
}

.stylesheet-lab__workspace {
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
}

.stylesheet-code-pane,
.stylesheet-result-pane {
    min-width: 0;
    min-height: 0;
}

.stylesheet-code-pane {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fbfcfe;
    border-right: 1px solid #dce2e9;
}

.stylesheet-code-scaffold {
    padding: 12px 16px 12px 55px;
    flex: 0 0 auto;
    color: #7b8797;
    background: #f2f5f8;
    border-bottom: 1px solid #dfe4ea;
    font-family: "Liberation Mono", Consolas, monospace;
    font-size: 11px;
    line-height: 1.55;
    white-space: nowrap;
}

.stylesheet-code-scaffold > span {
    color: #ba136f;
}

.stylesheet-code-scaffold--footer {
    padding-top: 9px;
    padding-bottom: 9px;
    border-top: 1px solid #dfe4ea;
    border-bottom: 0;
}

.stylesheet-code-scaffold--footer span {
    color: #7b8797;
}

.stylesheet-code-editor {
    display: grid;
    flex: 1 1 auto;
    min-height: 150px;
    overflow: hidden;
    grid-template-columns: 44px minmax(0, 1fr);
}

.stylesheet-code-lines,
.stylesheet-code-highlight,
.stylesheet-code-surface textarea {
    min-height: 0;
    margin: 0;
    padding-top: 16px;
    padding-bottom: 16px;
    border: 0;
    border-radius: 0;
    font-family: "Liberation Mono", Consolas, monospace;
    font-size: 13px;
    line-height: 1.65;
    letter-spacing: 0;
    tab-size: 4;
}

.stylesheet-code-lines {
    padding-right: 10px;
    padding-left: 6px;
    overflow: hidden;
    color: #a2acb9;
    background: #f6f8fb;
    border-right: 1px solid #e2e6ec;
    text-align: right;
    user-select: none;
}

.stylesheet-code-surface {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #fbfcfe;
}

.stylesheet-code-highlight,
.stylesheet-code-surface textarea {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding-right: 18px;
    padding-left: 14px;
    overflow: auto;
    white-space: pre;
}

.stylesheet-code-highlight {
    z-index: 0;
    pointer-events: none;
    color: #263247;
    background: #fbfcfe;
    scrollbar-width: none;
}

.stylesheet-code-highlight::-webkit-scrollbar {
    display: none;
}

.stylesheet-code-highlight code,
.stylesheet-code-highlight code.hljs {
    display: block;
    min-width: max-content;
    padding: 0;
    overflow: visible;
    color: #263247;
    background: transparent;
    font: inherit;
    line-height: inherit;
    white-space: pre;
}

.stylesheet-code-surface textarea {
    z-index: 1;
    resize: none;
    color: transparent;
    background: transparent;
    caret-color: #e81683;
    outline: 0;
    -webkit-text-fill-color: transparent;
}

.stylesheet-code-surface textarea::selection {
    background: rgba(0, 156, 228, 0.2);
    -webkit-text-fill-color: transparent;
}

.stylesheet-code-surface:focus-within {
    background: #fff;
    box-shadow: inset 3px 0 0 #e81683;
}

.stylesheet-code-surface:focus-within .stylesheet-code-highlight {
    background: #fff;
}

.stylesheet-diagnostics {
    max-height: 120px;
    padding: 10px 14px;
    overflow: auto;
    color: #94234d;
    background: #fff3f7;
    border-top: 1px solid #efb8ce;
}

.stylesheet-diagnostics > div {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 8px;
    font-size: 11px;
    line-height: 1.45;
}

.stylesheet-result-pane {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #e9edf2;
}

.stylesheet-result-heading {
    min-height: 52px;
    padding: 9px 13px;
    flex: 0 0 auto;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafc;
    border-bottom: 1px solid #dce2e9;
}

.stylesheet-result-heading div > span {
    color: #e81683;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0;
}

.stylesheet-result-heading strong {
    margin-top: 3px;
    color: #526074;
    font-size: 11px;
    font-weight: 600;
}

.stylesheet-result-format {
    padding: 5px 7px;
    color: #187e65;
    background: #e8f7f1;
    border: 1px solid #bde7d7;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 750;
}

.stylesheet-page-list {
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px;
    overflow: auto;
    align-content: start;
    justify-items: center;
    gap: 18px;
}

.stylesheet-page-list figure {
    width: min(100%, 510px);
    margin: 0;
}

.stylesheet-page-list img {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    border: 1px solid #cbd2db;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(32, 42, 58, 0.14);
}

.stylesheet-page-list figcaption {
    margin-top: 7px;
    color: #748094;
    font-size: 10px;
    text-align: center;
}

.stylesheet-result-empty {
    width: min(100%, 300px);
    min-height: 240px;
    display: grid;
    place-content: center;
    justify-items: center;
    color: #687589;
    text-align: center;
}

.stylesheet-result-empty > span {
    width: 52px;
    height: 52px;
    display: grid;
    margin-bottom: 13px;
    place-items: center;
    color: #e81683;
    background: #fff;
    border: 1px solid #d6dce4;
    border-radius: 50%;
    font-family: "Liberation Mono", Consolas, monospace;
    font-size: 14px;
}

.stylesheet-result-empty strong {
    font-size: 13px;
}

.stylesheet-result-empty p {
    margin: 5px 0 0;
    font-size: 11px;
    line-height: 1.5;
}

.stylesheet-state {
    min-height: 58px;
    display: grid;
    flex: 0 0 auto;
    padding: 8px 12px;
    background: #fff;
    border-top: 1px solid #dce2e9;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stylesheet-state > div {
    min-width: 0;
    padding: 0 9px;
    border-right: 1px solid #e3e6eb;
}

.stylesheet-state > div:last-child {
    border-right: 0;
}

.stylesheet-state span,
.stylesheet-state strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stylesheet-state span {
    color: #8a95a4;
    font-size: 9px;
}

.stylesheet-state strong {
    margin-top: 4px;
    color: #263247;
    font-size: 11px;
}

.stylesheet-lab.is-running .stylesheet-page-list {
    opacity: 0.55;
}

.stylesheet-lesson-list {
    display: grid;
    margin: 19px 0 22px;
    gap: 7px;
}

.stylesheet-lesson-list button {
    min-height: 48px;
    display: grid;
    padding: 8px 10px;
    align-items: center;
    color: #526074;
    background: #fff;
    border: 1px solid #dce2e9;
    border-radius: 5px;
    grid-template-columns: 28px minmax(0, 1fr) 20px;
    text-align: left;
}

.stylesheet-lesson-list button:hover,
.stylesheet-lesson-list button:focus-visible {
    border-color: #e98cbb;
    outline: 0;
}

.stylesheet-lesson-list button.is-active {
    color: #202126;
    background: #fff6fb;
    border-color: #e81683;
    box-shadow: inset 3px 0 0 #e81683;
}

.stylesheet-lesson-list button > span {
    color: #e81683;
    font-size: 10px;
    font-weight: 750;
}

.stylesheet-lesson-list button strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stylesheet-lesson-list button i {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: transparent;
    border: 1px solid #cbd3dd;
    border-radius: 50%;
    font-size: 10px;
    font-style: normal;
}

.stylesheet-lesson-list button.is-complete i {
    background: #2aa37b;
    border-color: #2aa37b;
}

.stylesheet-guide-section {
    padding: 16px 0;
    border-top: 1px solid #e3e6eb;
}

.stylesheet-guide-section h3 {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 0;
}

.stylesheet-guide-heading {
    justify-content: space-between;
    gap: 10px;
}

.stylesheet-snippet-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.stylesheet-snippet-list button,
.stylesheet-text-command {
    min-height: 31px;
    padding: 6px 9px;
    color: #9e145f;
    background: #fff;
    border: 1px solid #eab0cf;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0;
}

.stylesheet-snippet-list button:hover,
.stylesheet-text-command:hover {
    color: #fff;
    background: #c81478;
    border-color: #c81478;
}

.stylesheet-hint {
    margin: 4px 0 0 !important;
    padding: 10px 11px;
    color: #526074 !important;
    background: #f5f8fc;
    border-left: 3px solid #009ce4;
    border-radius: 0 4px 4px 0;
}

.stylesheet-check-list {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 7px;
    list-style: none;
}

.stylesheet-check-list li {
    display: grid;
    align-items: center;
    color: #687589;
    grid-template-columns: 22px minmax(0, 1fr);
}

.stylesheet-check-list li span {
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border: 1px solid #cbd3dd;
    border-radius: 50%;
    font-size: 9px;
}

.stylesheet-check-list li strong {
    font-size: 10px;
    font-weight: 600;
}

.stylesheet-check-list li.is-passed {
    color: #187e65;
}

.stylesheet-check-list li.is-passed span {
    color: #fff;
    background: #2aa37b;
    border-color: #2aa37b;
}

.stylesheet-operation-profile {
    display: grid;
    gap: 7px;
}

.stylesheet-operation-profile > div {
    min-height: 34px;
    display: flex;
    padding: 7px 9px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #687589;
    background: #f6f8fb;
    border: 1px solid #dfe4ea;
    border-radius: 4px;
    font-size: 10px;
}

.stylesheet-operation-profile strong {
    color: #263247;
    font-size: 12px;
}

@container stylesheet-lab (max-width: 760px) {
    .stylesheet-lab__view-switch {
        display: flex;
        margin-left: auto;
    }

    .stylesheet-lab__file div {
        display: none;
    }

    .stylesheet-lab__commands {
        margin-left: 0;
    }

    .stylesheet-lab__commands .btn-outline-primary {
        display: none;
    }

    .stylesheet-lab__workspace {
        display: block;
    }

    .stylesheet-code-pane,
    .stylesheet-result-pane {
        height: 100%;
        border-right: 0;
    }

    .stylesheet-lab.is-code-view .stylesheet-result-pane,
    .stylesheet-lab.is-result-view .stylesheet-code-pane {
        display: none;
    }
}

@container stylesheet-lab (max-width: 500px) {
    .stylesheet-lab__toolbar {
        flex-wrap: wrap;
    }

    .stylesheet-lab__commands {
        width: 100%;
    }

    .stylesheet-lab__commands .btn-primary {
        width: 100%;
    }

    .stylesheet-code-scaffold {
        padding-left: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
