#back {

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

}

/* ==========================
   Zones optionnelles
   ========================== */

#title:empty,
#topBar:empty,
#input:empty,
#contextBar:empty,
#directBar:empty {

    display: none;

}

#title {

    background: var(--slot-bg);

    padding: 3px;

}

#topBar {

    background: var(--topbar-bg);

}

#input {

    background: var(--input-bg);

}

#contextBar {

    background: var(--contextbar-bg);

}

#directBar {

    background: var(--directbar-bg);

}

/* ==========================
   Zone centrale
   ========================== */

#main {

    flex: 1;
    min-height: 0;

    display: flex;

    position: relative;

    overflow: hidden;

}

#work {

    flex: 1;
    min-height: 0;

    overflow-x: hidden;
    overflow-y: auto;

    background: var(--work-bg);

}

/* ==========================
   Dialog
   ========================== */

#dialog {

    position: absolute;

    top: 20px;
    right: 20px;
    bottom: 20px;
    left: 20px;

    background: #ffffff;

    border-radius: 10px;

    padding: 10px;

    overflow-x: hidden;
    overflow-y: auto;

    z-index: 100;

}

#dialog[hidden] {

    display: none !important;

}

/* ==========================
   Bas d'écran
   ========================== */

#bottomSlot {

    flex: 0 0 var(--bottom-slot-height);

    height: var(--bottom-slot-height);
    min-height: var(--bottom-slot-height);
    max-height: var(--bottom-slot-height);

    background: var(--slot-bg);

}
