.teacher-app-guide {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    color: #30234b;
    font-family: inherit;
}
.teacher-app-guide *, .teacher-app-guide *::before, .teacher-app-guide *::after { box-sizing: border-box; }
.workshop-stage > .teacher-app-guide { margin: 24px 0 0; }
.teacher-app-guide-mobile { display: none; }
.teacher-app-guide__toggle {
    display: flex;
    width: min(100%, 286px);
    min-height: var(--control-height-lg, 3rem);
    align-items: center;
    gap: var(--control-gap-lg, .5rem);
    margin-left: auto;
    padding: var(--control-pad-y-md, .6rem) var(--control-pad-x-sm, .75rem);
    border: 1px solid #e0d7ef;
    border-radius: var(--control-radius-row, 1rem);
    background: #fbf9ff;
    color: #573c82;
    font-size: var(--control-font-sm, .8125rem);
    font-weight: var(--control-weight, 800);
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}
.teacher-app-guide__toggle::-webkit-details-marker { display: none; }
.teacher-app-guide__illustration { display: block; flex: 0 0 48px; width: 48px; height: 40px; object-fit: contain; }
.teacher-app-guide__label { flex: 1; min-width: 0; text-align: left; }
.teacher-app-guide__label strong { display: block; color: #38264e; font-size: inherit; line-height: 1.4; letter-spacing: -.02em; word-break: keep-all; }
.teacher-app-guide__toggle:hover { background: #f1ebfc; }
.teacher-app-guide__toggle:focus-visible, .teacher-app-guide__open:focus-visible { outline: 3px solid #8d6bc6; outline-offset: 3px; }
.teacher-app-guide__arrow { color: #8b79a7; font-size: var(--control-font-lg, .9375rem); }
.teacher-app-guide[open] .teacher-app-guide__arrow { transform: rotate(180deg); }
.teacher-app-guide__panel {
    width: min(100%, 360px);
    margin: 8px 0 0 auto;
    padding: 15px;
    border: 1px solid #e7ddf3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(65, 43, 100, .08);
}
.teacher-app-guide__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.teacher-app-guide__head strong { display: block; font-size: 14px; line-height: 1.4; }
.teacher-app-guide__head p { margin: 4px 0 0; color: #756a82; font-size: 12px; line-height: 1.4; }
.teacher-app-guide__open { flex: 0 0 auto; color: #6745a2; font-size: 12px; font-weight: 800; text-decoration: none; }
.teacher-app-guide__open:hover { color: #432772; text-decoration: underline; }
.teacher-app-guide__content { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0ebf5; }
.teacher-app-guide__steps { flex: 1; min-width: 0; }
.teacher-app-guide__steps section + section { margin-top: 12px; }
.teacher-app-guide__steps h3 { margin: 0 0 4px; color: #30234b; font-size: 12px; font-weight: 800; }
.teacher-app-guide__steps p { margin: 0; color: #625772; font-size: 12px; line-height: 1.6; word-break: keep-all; }
.teacher-app-guide__steps p + p { margin-top: 3px; }
.teacher-app-guide__qr { flex: 0 0 108px; margin: 0; text-align: center; }
.teacher-app-guide__qr img { display: block; width: 108px; height: 108px; background: #fff; }
.teacher-app-guide__qr figcaption { margin-top: 4px; color: #756a82; font-size: 11px; }
.home-v6-side-stack .teacher-app-guide__toggle,
.home-v6-side-stack .teacher-app-guide__panel {
    width: 100%;
    margin-left: 0;
}
.teacher-app-guide-mobile .teacher-app-guide__toggle,
.teacher-app-guide-mobile .teacher-app-guide__panel {
    width: min(100%, 24rem);
    margin-left: auto;
}
.home-v6-page .teacher-app-guide__panel {
    border-radius: var(--home-v6-radius-panel, 1.35rem);
}
@media (max-width: 1099px) {
    .teacher-app-guide-mobile { display: block; }
    .home-tasks-mobile .home-tasks-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        margin-bottom: .625rem;
    }
    .home-tasks-mobile .home-tasks-heading > h3 {
        grid-area: 1 / 1;
        justify-self: start;
        display: flex;
        align-items: center;
        min-height: var(--control-height-lg, 3rem);
        margin: 0;
    }
    .home-tasks-mobile .teacher-app-guide-mobile {
        grid-area: 1 / 1;
        width: 100%;
        min-width: 0;
    }
    .home-tasks-mobile .teacher-app-guide__toggle {
        width: min(calc(100% - 4rem), 18rem);
        margin-left: auto;
    }
    .home-tasks-mobile .teacher-app-guide__panel { width: 100%; margin-left: 0; }
    .home-tasks-mobile .teacher-app-guide__steps h3 {
        margin: 0 0 4px;
        font-size: 12px;
        font-weight: 800;
    }
}
@media (max-width: 767px) {
    .teacher-app-guide__qr { display: none; }
}
