.repet {
    display: flex;
    flex-direction: column;

    min-height: calc(100vh - 70px);

    padding: 5.5rem 1.4rem 1.4rem;
    gap: 1.35rem;

}

/* ================= HEADER ================= */

.repet-header {

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.4rem;

    width: fit-content;
    max-width: 100%;
    padding: 0.9rem 1rem;

    background: var(--color-paper-soft);
    border: 1px solid var(--color-line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);

}

.repet-field {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.repet-header label {
    color: var(--color-ink);
    font-weight: 700;

}

.repet-header select {

    min-height: 2.55rem;
    padding: 0.45rem 2rem 0.45rem 0.75rem;

    background: var(--color-paper-glass-active);
    color: var(--color-ink);

    border: 1.5px solid var(--color-line);
    border-radius: 6px;

    font-weight: 700;
    cursor: pointer;

}

.repet-header select:focus {
    border-color: var(--color-blue-700);
    box-shadow: 0 0 0 4px var(--color-focus);
    outline: 0;
}

/* ================= AUDIO ================= */

.audio-container {

    flex: 0 0 180px;

    display: flex;
    flex-direction: column;

}

.audio-container h2 {

    margin-bottom: 10px;
    color: var(--color-ink);

}

.audio-placeholder {

    flex: 1;

    border: 2px dashed var(--color-line);
    border-radius: 10px;

    background: var(--color-stage);

}

/* ================= PARTITION ================= */

.partition-container {

    flex: 1;

    display: flex;
    flex-direction: column;

    min-height: 0;

}

.partition-container h2 {

    margin-bottom: 10px;
    color: var(--color-ink);

}

.partition-placeholder {

    flex: 1;

    border: 2px dashed var(--color-line);
    border-radius: 10px;

    background: var(--color-stage);

    overflow: auto;

}











/*======================================== General =========================================*/

.focus-button {
    align-self: end;

    min-height: 2.8rem;
    padding: 0.6rem 1.15rem;

    border: 0;
    border-radius: 8px;

    background: var(--color-blue-900);
    color: var(--color-white);

    cursor: pointer;
    font: inherit;
    font-weight: 700;

    box-shadow: var(--shadow-soft);
    transition: background-color 160ms ease, transform 160ms ease;
}

.focus-button:hover {
    background: var(--color-blue-800);
    transform: translateY(-1px);
}


body.focus-mode .audio-container > h2,
body.focus-mode .partition-container > h2 {
    display: none;
}

body.focus-mode .repet {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 5.2rem 0.75rem 0.75rem;
}

body.focus-mode .focus-button {
    display: none;
}

body.focus-mode .partition-container {
    margin-top: 0.75rem;
}

body.focus-mode .partition-placeholder {
    flex: 0 1 auto;
    min-height: 0;
}

.focus-exit-button {
    display: none;

    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 30;

    padding: 0.65rem 1rem;

    border: 0;
    border-radius: 8px;

    background: var(--color-white);
    color: var(--color-ink);

    cursor: pointer;
    font-weight: 700;
    box-shadow: var(--shadow-card);
}

body.focus-mode .focus-exit-button {
    display: block;
}

@media (max-width: 760px) {
    .repet {
        padding: 5rem 0.85rem 1rem;
    }

    .repet-header,
    .repet-field {
        width: 100%;
    }

    .repet-field {
        align-items: stretch;
        flex-direction: column;
    }

    .repet-header select {
        width: 100%;
    }

    body.focus-mode .repet {
        padding-top: 6.2rem;
    }

    .focus-exit-button {
        top: 5.5rem;
        right: 0.85rem;
    }
}
