* {
    box-sizing: border-box;
}


[hidden] {
    display: none !important;
}


body {
    margin: 0;
    min-height: 100vh;

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #f4f6f8;
    color: #1f2933;
}


.app {
    width: min(760px, 92%);
    margin: 0 auto;
    padding: 40px 0 60px;
}


.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;

    margin-bottom: 28px;
}


.app-header h1 {
    margin: 0 0 8px;

    font-size: clamp(
        2rem,
        5vw,
        2.7rem
    );

    line-height: 1.1;
}


.app-header p {
    margin: 0;

    color: #52606d;
    font-size: 1.05rem;
    line-height: 1.6;
}


.logout-button {
    flex: 0 0 auto;
    white-space: nowrap;
}


.card {
    margin-bottom: 18px;
    padding: 24px;

    background: white;

    border: 1px solid #dfe3e8;
    border-radius: 14px;

    box-shadow:
        0 2px 6px
        rgba(0, 0, 0, 0.04);
}


.card h2 {
    margin-top: 0;
    margin-bottom: 20px;

    font-size: 1.2rem;
}


.login-card .button {
    width: 100%;
    margin-top: 16px;
}


label {
    display: block;

    margin-top: 18px;
    margin-bottom: 7px;

    font-weight: 600;
}


select,
textarea,
input {
    width: 100%;

    padding: 12px 14px;

    font: inherit;

    color: inherit;

    background: white;

    border: 1px solid #cbd2d9;
    border-radius: 9px;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


textarea {
    min-height: 150px;
    resize: vertical;

    line-height: 1.5;
}


select:focus,
textarea:focus,
input:focus {
    border-color: #4a77c9;

    box-shadow:
        0 0 0 3px
        rgba(74, 119, 201, 0.15);
}


.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


.experiment-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}


.button {
    padding: 11px 18px;

    font: inherit;
    font-weight: 600;

    border: none;
    border-radius: 9px;

    cursor: pointer;

    transition:
        transform 0.1s ease,
        opacity 0.15s ease,
        background 0.15s ease;
}


.button:hover:not(:disabled) {
    transform: translateY(-1px);
}


.button:active:not(:disabled) {
    transform: translateY(0);
}


.button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}


.button.primary {
    background: #315fa8;
    color: white;
}


.button.primary:hover:not(:disabled) {
    background: #284f8c;
}


.button.secondary {
    background: #e8edf3;
    color: #263442;
}


.button.secondary:hover:not(:disabled) {
    background: #dce3ea;
}


.button.danger {
    background: #c23b3b;
    color: white;
}


.button.danger:hover:not(:disabled) {
    background: #a83232;
}


.button.success {
    width: 100%;

    background: #257a4b;
    color: white;

    font-size: 1.05rem;
}


.button.success:hover:not(:disabled) {
    background: #1f663f;
}


.status,
.experiment-info {
    margin-bottom: 0;

    padding: 11px 13px;

    background: #f4f6f8;

    border-radius: 8px;

    color: #52606d;
}


audio {
    width: 100%;
    margin-top: 18px;
}


.send-card {
    margin-top: 26px;
}

.attachment-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.attachment-option input {
    width: auto;
}

#continueWithoutAudioButton {
    margin-top: 12px;
}


@media (max-width: 600px) {

    .app {
        width: 94%;
        padding-top: 24px;
    }


    .card {
        padding: 18px;
    }


    .app-header {
        gap: 12px;
    }


    .logout-button {
        padding-inline: 12px;
    }


    .experiment-row {
        grid-template-columns: 1fr;
    }


    .experiment-row .button {
        width: 100%;
    }


    .button-row {
        display: grid;
        grid-template-columns: 1fr;
    }


    .button-row .button {
        width: 100%;
    }
}

.send-destination {
    margin-bottom: 12px;
    font-weight: 600;
}

.api-key-help {
    margin-top: 12px;
    color: #52606d;
}

.api-key-help summary {
    cursor: pointer;
}

