.settings   {
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center
}

/* Mantém o acesso às configurações na extrema direita do cabeçalho. */
.header .tools {
    order:1;
    margin-left:auto
}

.settings img   {
    width:25px;
    height:25px;
    object-fit:contain
}

.settings:focus-visible,.config-panel button:focus-visible,.config-panel input:focus-visible   {
    outline:3px solid #245dff;
    outline-offset:3px
}

.config-backdrop   {
    position:fixed;
    inset:0;
    z-index:1000;
    background:rgba(12,35,45,.58);
    display:flex;
    align-items:stretch;
    justify-content:flex-end;
    padding:0
}

.config-backdrop[hidden]   {
    display:none
}

.config-panel   {
    position:relative;
    width:min(430px,92vw);
    height:100%;
    max-height:100dvh;
    overflow-y:auto;
    background:#fffdf8;
    color:#184f67;
    border-radius:20px 0 0 20px;
    padding:30px 26px;
    box-shadow:0 20px 70px #0004;
    font-family:Arial,Helvetica,sans-serif;
    animation:config-drawer-in .22s ease-out
}

@keyframes config-drawer-in {
    from { transform:translateX(100%); }
    to { transform:translateX(0); }
}

.config-panel h2   {
    margin:0 35px 8px 0;
    font-size:25px;
    line-height:1.2
}

.config-panel p   {
    margin:0 0 20px;
    color:#55727e;
    font-size:15px
}

.config-close   {
    position:absolute;
    right:15px;
    top:12px;
    border:0;
    background:transparent;
    font-size:30px;
    cursor:pointer;
    color:inherit
}

.config-row   {
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:12px;
    padding:15px 0;
    border-top:1px solid #e8d8bd
}

.config-row strong   {
    font-size:16px
}

.config-actions,.config-slider   {
    display:flex;
    align-items:center;
    gap:8px
}

.config-actions button,.config-reset   {
    border:0;
    border-radius:10px;
    padding:10px 15px;
    background:#2a6680;
    color:white;
    font-size:17px;
    font-weight:800;
    cursor:pointer
}

.config-value,.config-slider output   {
    min-width:48px;
    text-align:center;
    font-weight:700
}

.config-slider input   {
    width:125px;
    accent-color:#2a6680
}

.config-select {
    display:flex;
    flex-direction:column;
    gap:6px;
    width:min(100%,280px)
}

.config-select select {
    width:100%;
    border:1px solid #9bb2bb;
    border-radius:9px;
    padding:10px;
    color:#184f67;
    background:#fff;
    font:inherit
}

.voice-samples { display:flex; flex-direction:column; gap:6px; margin-top:6px }
.voice-sample { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:14px }
.voice-sample button { border:0; border-radius:8px; padding:7px 10px; color:#fff; background:#2a6680; cursor:pointer; font-weight:700 }
.config-select progress { width:100%; height:12px; accent-color:#2a6680 }

.config-select small {
    color:#55727e;
    line-height:1.35
}

.config-reset   {
    background:#f39a08;
    width:100%;
    margin-top:15px;
    font-size:15px
}

.communication-header nav   {
    display:flex;
    align-items:center;
    gap:clamp(12px,2vw,28px);
    flex-wrap:wrap
}

.communication-header nav a  {
    color:white;
    text-decoration:none;
    font-weight:700;
    padding:8px 0
}

.communication-header nav a.active,.communication-header nav a:hover  {
    border-bottom:3px solid #f7b52b
}

.communication-header .tools  {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
    min-width:0
}

.communication-header .settings  {
    flex:none
}

.site-footer  {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    flex-wrap:wrap;
    padding:18px 5%;
    background:#24586c;
    color:#fff
}

.site-footer img  {
    width:130px;
    max-height:50px;
    object-fit:contain
}

.site-footer a  {
    color:#fff;
    font-weight:700
}

.tile .picture  {
    font-size:calc(43px * var(--dpm-figure-scale,1))
}

.tile  {
    min-height:calc(125px * var(--dpm-figure-scale,1))
}

.tile>span:last-child  {
    font-size:calc(13px * var(--dpm-figure-scale,1))
}

.hero-art  {
    position:relative;
    isolation:isolate
}

.student  {
    position:absolute;
    right:12%;
    bottom:0
}

.hero-art .blob  {
    z-index:-1
}

@media(max-width:850px)  {
    .communication-header  {
        height:auto;
        min-height:78px;
        padding:12px 16px;
        flex-wrap:wrap
    }

    .communication-header nav  {
        order:3;
        width:100%;
        justify-content:center
    }

    .communication-header .tools  {
        flex:1
    }

    .communication-header .brand  {
        flex:none
    }

}

@media(max-width:560px)  {
    .config-panel  {
        width:min(380px,92vw);
        padding:24px 18px;
        border-radius:18px 0 0 18px
    }

    .config-row  {
        align-items:flex-start;
        flex-direction:column
    }

    .config-slider input  {
        width:min(60vw,240px)
    }

    .communication-header .tools  {
        order:2
    }

    .communication-header nav  {
        order:3
    }

    .site-footer  {
        justify-content:center;
        text-align:center
    }

}
