:root {
    --sky: #d5e5f2;
}

html,
body {
    background: var(--sky) !important;
}

.site-header {
    background: var(--sky);
}

.auth-button {
    border-color: #176ebd;
    background: #176ebd;
    color: #fff;
    box-shadow: 0 8px 18px rgba(23, 110, 189, .2);
}

.guest-page {
    min-height: calc(100vh - 64px);
    padding: 14px 20px 30px;
    align-items: start;
}

.guest-teacher.buddy-teacher {
    width: min(760px, 96vw);
    height: min(610px, calc(100vh - 108px));
}

.guest-teacher img,
.teacher-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
}

.page-shell {
    width: min(1120px, calc(100% - 40px));
}

.intro {
    height: 350px;
    padding: 0;
    align-items: center;
}

.teacher-wrap.buddy-teacher {
    position: relative;
    inset: auto;
    width: min(620px, 96vw);
    height: 340px;
}

.intro-copy,
.teacher-note,
.buddy-speech {
    display: none !important;
}

.workspace {
    width: min(1000px, 100%);
    margin: 0 auto;
    padding: 28px 30px;
}

.upload-label {
    color: #183f69;
    font-size: 18px;
    letter-spacing: 0;
    text-transform: none;
}

.drop-field {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    background: #fbfdff;
}

.drop-copy strong {
    font-size: 20px;
}

.drop-copy small {
    font-size: 13px;
}

.upload-actions {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    gap: 12px;
}

.upload-actions .status {
    grid-column: 1 / -1;
    text-align: center;
}

.upload-actions .choose-button {
    grid-column: 2;
    min-width: 210px;
    border: 1px solid #74aee0;
    background: #fff;
    cursor: pointer;
}

.upload-actions .start-button {
    grid-column: 3;
    min-width: 210px;
    background: #ef2437;
    box-shadow: 0 8px 18px rgba(239, 36, 55, .2);
}

@media (max-width: 700px) {
    .site-header {
        width: calc(100% - 24px);
    }

    .brand small {
        display: none;
    }

    .auth-button {
        padding: 9px 11px;
        font-size: 12px;
    }

    .guest-page {
        padding-inline: 6px;
    }

    .guest-teacher.buddy-teacher {
        width: 100%;
        height: min(520px, calc(100vh - 92px));
    }

    .page-shell {
        width: calc(100% - 20px);
    }

    .intro {
        height: 260px;
    }

    .teacher-wrap.buddy-teacher {
        width: 100%;
        height: 255px;
    }

    .workspace {
        padding: 16px;
    }

    .drop-field {
        min-height: 175px;
        padding: 18px 12px;
    }

    .upload-actions {
        grid-template-columns: 1fr;
    }

    .upload-actions .status,
    .upload-actions .choose-button,
    .upload-actions .start-button {
        grid-column: 1;
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .buddy-teacher img {
        animation: none !important;
    }
}
