.dels-ml-auto-mount[hidden] {
    display: none !important;
}

.dels-ml-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    margin: 0 8px;
    color: #0d1b35;
    font-family: inherit;
    line-height: 1;
    vertical-align: middle;
}

.dels-ml-header-controls {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
}

.dels-ml-header-controls-mounted {
    justify-content: flex-end;
    margin-inline: 2px;
}

/* No cabeçalho global v21 os seletores ocupam um bloco próprio. Assim o
   botão da conta não é comprimido nem sobreposto pelos dois selects. */
.dels-header-v21-inner.dels-ml-controls-host > .dels-ml-header-controls-mounted {
    flex: 0 1 286px;
    width: min(286px, 24vw);
}

.dels-header-v21-inner.dels-ml-controls-host > .dels-header-v21-actions.dels-ml-account-host {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
}

.dels-header-v21-inner.dels-ml-controls-host > .dels-header-v21-actions.dels-ml-account-host .dels-header-v21-login {
    width: auto;
}

.dels-ml-pair-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    margin: 0 4px;
    color: #0d1b35;
    font-family: inherit;
    line-height: 1;
    vertical-align: middle;
}

.dels-ml-pair-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: #087fbd;
    font-size: 20px;
    font-weight: 800;
}

.dels-ml-pair-select {
    width: auto;
    min-width: 0;
    max-width: 190px;
    min-height: 36px;
    padding: 5px 26px 5px 8px;
    border: 1px solid #d6deea;
    border-radius: 9px;
    background-color: #fff;
    color: #0d1b35;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.dels-ml-pair-select:focus {
    border-color: #168fd3;
    outline: 2px solid rgba(22, 143, 211, .16);
    outline-offset: 1px;
}

.dels-ml-globe {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    font-size: 0;
}

.dels-ml-globe::before {
    content: "";
    width: 8px;
    height: 16px;
    border-right: 1px solid currentColor;
    border-left: 1px solid currentColor;
    border-radius: 50%;
}

.dels-ml-select {
    width: auto;
    min-width: 0;
    max-width: 155px;
    min-height: 36px;
    padding: 5px 26px 5px 8px;
    border: 1px solid #d6deea;
    border-radius: 9px;
    background-color: #fff;
    color: #0d1b35;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.dels-ml-select:focus {
    border-color: #168fd3;
    outline: 2px solid rgba(22, 143, 211, .16);
    outline-offset: 1px;
}

.dels-ml-elis-string,
.dels-ml-elis-input,
.dels-ml-elis-control {
    font-family: "ELiS Universal", "DELS-ELiS-Beta", "ELiS", sans-serif !important;
    font-weight: 400 !important;
}

.dels-ml-elis-string {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: normal;
    word-break: keep-all;
    text-transform: none !important;
    letter-spacing: normal !important;
    transform: none !important;
}

.dels-ml-elis-interface,
.dels-ml-elis-field {
    font-size: 1em !important;
    line-height: inherit !important;
}

.dels-ml-elis-block {
    display: block;
    width: 100%;
}

.dels-ml-counterpart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #d6e5f2;
    border-radius: 14px;
    background: #f7fbfe;
    box-sizing: border-box;
}

.dels-ml-counterpart-heading {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    gap: 10px;
    border-bottom: 1px solid #d6e5f2;
    padding-bottom: 10px;
}

.dels-ml-counterpart-heading h2 {
    margin: 0;
    color: #0d1b35;
    font-size: 1.15rem;
}

.dels-ml-counterpart-heading span {
    color: #5a6d82;
    font-size: .9rem;
}

.dels-ml-counterpart-representation {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.dels-ml-counterpart-representation .dels-ml-elis-string {
    font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.dels-ml-counterpart-signwriting {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.dels-ml-counterpart-video {
    align-self: center;
    justify-self: start;
    padding: 9px 13px;
    border-radius: 999px;
    background: #168fd3;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.dels-ml-counterpart-empty {
    grid-column: 1 / -1;
    margin: 0;
    color: #64748b;
}

.dels-ml-elis-string .dels-elis-v410-token {
    display: inline-block !important;
    position: relative !important;
    padding: 0 .025em !important;
    margin: 0 .01em !important;
    border: 0 !important;
    border-radius: .12em !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    font-family: "ELiS Universal", "DELS-ELiS-Beta", "ELiS", sans-serif !important;
    font-feature-settings: "liga" 1, "sups" 1, "ss01" 1, "ss02" 1, "ss03" 1 !important;
    font-size: 1em !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.dels-ml-elis-string .dels-elis-v410-token::before,
.dels-ml-elis-string .dels-elis-v410-token::after {
    content: none !important;
    display: none !important;
}

.dels-ml-elis-string .dels-elis-v410-token.pa-token {
    height: .86em !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
    line-height: .86em !important;
    vertical-align: baseline !important;
}

.dels-ml-elis-string .dels-elis-v410-contact.has-contact .dels-elis-v410-token.pa-token {
    height: auto !important;
    padding-bottom: .025em !important;
    overflow: visible !important;
    line-height: 1 !important;
}

.dels-ml-elis-string .dels-elis-v410-token.numero {
    top: 0 !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-feature-settings: normal !important;
    font-size: .76em !important;
    font-weight: 800 !important;
    vertical-align: baseline !important;
}

.dels-ml-elis-string .dels-elis-v410-token.space-token {
    width: .55em !important;
    min-width: .55em !important;
}

.dels-ml-elis-string .dels-elis-v410-token.diacritico {
    top: -.16em !important;
    font-size: .58em !important;
    vertical-align: super !important;
}

.dels-ml-elis-string .dels-elis-v410-contact {
    display: inline-block !important;
    position: relative !important;
    padding-bottom: .18em !important;
    color: inherit !important;
    font-family: "ELiS Universal", "DELS-ELiS-Beta", "ELiS", sans-serif !important;
    line-height: 1 !important;
}

.dels-ml-elis-string .dels-elis-v410-contact.numero-contact {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-feature-settings: normal !important;
    font-weight: 800 !important;
}

.dels-ml-elis-string .dels-elis-v410-contact.diacritico-contact {
    top: -.16em !important;
    font-size: .58em !important;
    vertical-align: super !important;
}

.dels-ml-elis-string .dels-elis-v410-contact.diacritico-contact .dels-elis-v410-token.diacritico {
    top: 0 !important;
    font-size: 1em !important;
    vertical-align: baseline !important;
}

.dels-ml-elis-string .dels-elis-v410-contact.has-contact::after {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: block !important;
    height: .065em !important;
    background: currentColor !important;
}

.dels-ml-elis-string .dels-elis-v410-contact.has-contact.contato-duplo::after {
    background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor) !important;
    background-position: left bottom, right bottom !important;
    background-size: 46% 100%, 46% 100% !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
}

.dels-ml-elis-string .dels-elis-v410-contact.has-contact.contato-intermitente::after {
    background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor) !important;
    background-position: left bottom, center bottom, right bottom !important;
    background-size: 28% 100%, 28% 100%, 28% 100% !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
}

.dels-locale-elis .dels-busca-duas-colunas {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Integração aditiva com o formulário frontal de verbetes. */
.dels-ml-entry-language-block {
    min-width: 0;
}

.dels-ml-entry-language-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dels-ml-entry-language-heading h2 {
    margin-bottom: 7px !important;
}

.dels-ml-entry-core-status {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e9f8ee;
    color: #176b35;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.dels-ml-entry-code-line,
.dels-ml-entry-base-note {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #d9e5ef;
    border-radius: 13px;
    background: #f8fbfe;
}

.dels-ml-entry-code-line code {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: #32465d;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dels-ml-entry-base-note span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #e8f4fc;
    color: #165d8e;
    font-size: 12px;
    font-weight: 700;
}

.dels-ml-entry-language-list {
    display: grid;
    gap: 11px;
    margin-top: 16px;
}

.dels-ml-entry-language-card {
    min-width: 0;
    border: 1px solid #d9e5ef;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.dels-ml-entry-language-card > summary {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    padding: 13px 15px;
    background: #f7fbfe;
    color: #10203a;
    cursor: pointer;
    list-style: none;
}

.dels-ml-entry-language-card > summary::-webkit-details-marker {
    display: none;
}

.dels-ml-entry-language-card > summary::after {
    content: "+";
    flex: 0 0 auto;
    color: #138bcd;
    font-size: 20px;
    font-weight: 900;
}

.dels-ml-entry-language-card[open] > summary::after {
    content: "−";
}

.dels-ml-entry-language-card > summary > span:first-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.dels-ml-entry-language-card > summary small {
    color: #68798c;
}

.dels-ml-entry-language-code {
    min-width: 0;
    max-width: 190px;
    margin-left: auto;
    overflow: hidden;
    color: #66788d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dels-ml-entry-language-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    padding: 15px;
}

.dels-ml-entry-language-grid > label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
    font-weight: 800;
}

.dels-ml-entry-language-grid input,
.dels-ml-entry-language-grid select,
.dels-ml-entry-language-grid textarea {
    width: 100%;
    box-sizing: border-box;
}

.dels-ml-entry-wide {
    grid-column: 1 / -1;
}

.dels-ml-entry-representation-note {
    padding: 10px 12px;
    border-left: 4px solid #1ca4e8;
    background: #eef9ff;
    color: #31566f;
    font-size: 13px;
}

.dels-ml-entry-empty {
    margin: 15px 0 0;
    padding: 12px;
    border-radius: 12px;
    background: #fff8e7;
    color: #725316;
}

/* Compactação progressiva do cabeçalho para tablets e notebooks estreitos. */
@media (max-width: 1280px) {
    .dels-header-v21-inner.dels-ml-controls-host {
        gap: 10px;
    }

    .dels-header-v21-inner.dels-ml-controls-host > .dels-ml-header-controls-mounted {
        flex-basis: 224px;
        width: 224px;
    }

    .dels-ml-header-controls-mounted {
        gap: 2px;
    }

    .dels-ml-header-controls-mounted .dels-ml-switcher,
    .dels-ml-header-controls-mounted .dels-ml-pair-switcher {
        gap: 3px;
        margin: 0 1px;
    }

    .dels-ml-header-controls-mounted .dels-ml-globe,
    .dels-ml-header-controls-mounted .dels-ml-pair-icon {
        display: none;
    }

    .dels-ml-header-controls-mounted .dels-ml-select {
        width: clamp(96px, 10vw, 122px);
        max-width: 122px;
        min-height: 32px;
        padding-block: 4px;
        font-size: 12px;
    }

    .dels-ml-header-controls-mounted .dels-ml-pair-select {
        width: clamp(124px, 13vw, 158px);
        max-width: 158px;
        min-height: 32px;
        padding-block: 4px;
        font-size: 12px;
    }
}

.dels-ml-header-controls-mounted.is-tight .dels-ml-select {
    width: 94px;
    max-width: 94px;
}

.dels-ml-header-controls-mounted.is-tight .dels-ml-pair-select {
    width: 126px;
    max-width: 126px;
}

.dels-ml-header-controls-mounted.is-tight .dels-ml-globe,
.dels-ml-header-controls-mounted.is-tight .dels-ml-pair-icon {
    display: none;
}

@media (max-width: 1100px) and (min-width: 981px) {
    .dels-header-v21-inner.dels-ml-controls-host > .dels-header-v21-brand {
        flex-basis: 190px;
        max-width: 190px;
    }

    .dels-header-v21-inner.dels-ml-controls-host .dels-header-v21-logo {
        width: 170px;
    }

    .dels-header-v21-inner.dels-ml-controls-host > .dels-header-v21-main {
        gap: 8px;
    }

    .dels-header-v21-inner.dels-ml-controls-host .dels-header-v21-nav {
        gap: 6px;
    }

    .dels-header-v21-inner.dels-ml-controls-host .dels-header-v21-nav a,
    .dels-header-v21-inner.dels-ml-controls-host .dels-header-v21-day .dels-palavra-dia-header,
    .dels-header-v21-inner.dels-ml-controls-host .dels-header-v21-day a,
    .dels-header-v21-inner.dels-ml-controls-host .dels-header-v21-day button {
        padding-inline: 10px !important;
        font-size: 12.5px !important;
    }

    .dels-header-v21-inner.dels-ml-controls-host > .dels-ml-header-controls-mounted {
        flex-basis: 194px;
        width: 194px;
    }

    .dels-header-v21-inner.dels-ml-controls-host > .dels-ml-header-controls-mounted .dels-ml-select {
        width: 82px;
        max-width: 82px;
    }

    .dels-header-v21-inner.dels-ml-controls-host > .dels-ml-header-controls-mounted .dels-ml-pair-select {
        width: 106px;
        max-width: 106px;
    }
}

@media (max-width: 980px) {
    .dels-header-v21-inner.dels-ml-controls-host {
        grid-template-areas:
            "brand"
            "menu"
            "selectors"
            "login" !important;
    }

    .dels-header-v21-inner.dels-ml-controls-host > .dels-ml-header-controls-mounted {
        grid-area: selectors;
        width: 100%;
        max-width: 100%;
        justify-content: center;
        flex: none;
    }

    .dels-header-v21-inner.dels-ml-controls-host > .dels-header-v21-actions.dels-ml-account-host {
        grid-area: login !important;
        width: 100%;
    }

    .dels-header-v21-inner.dels-ml-controls-host > .dels-header-v21-actions.dels-ml-account-host .dels-header-v21-login {
        width: 100%;
    }
}

@media (max-width: 782px) {
    .dels-ml-header-controls {
        width: 100%;
        flex-wrap: wrap;
    }

    .dels-ml-switcher {
        width: 100%;
        margin: 6px 0;
    }

    .dels-ml-select {
        flex: 1;
        max-width: none;
    }

    .dels-ml-pair-switcher {
        width: 100%;
        margin: 2px 0 6px;
    }

    .dels-ml-pair-select {
        flex: 1;
        max-width: none;
    }

    .dels-ml-entry-language-heading {
        flex-direction: column;
    }

    .dels-ml-entry-core-status {
        align-self: flex-start;
    }

    .dels-ml-entry-language-grid {
        grid-template-columns: 1fr;
    }

    .dels-ml-entry-wide {
        grid-column: auto;
    }

    .dels-ml-header-controls-mounted {
        width: auto;
        flex-wrap: nowrap;
    }

    .dels-header-v21-inner.dels-ml-controls-host > .dels-ml-header-controls-mounted {
        width: 100%;
    }

    .dels-ml-header-controls-mounted .dels-ml-switcher,
    .dels-ml-header-controls-mounted .dels-ml-pair-switcher {
        width: auto;
        margin: 0 1px;
    }

    .dels-ml-header-controls-mounted .dels-ml-select,
    .dels-ml-header-controls-mounted .dels-ml-pair-select {
        flex: 0 1 auto;
    }
}

@media (max-width: 420px) {
    .dels-header-v21-inner.dels-ml-controls-host > .dels-ml-header-controls-mounted {
        flex-wrap: wrap;
        gap: 6px;
    }

    .dels-header-v21-inner.dels-ml-controls-host > .dels-ml-header-controls-mounted .dels-ml-switcher,
    .dels-header-v21-inner.dels-ml-controls-host > .dels-ml-header-controls-mounted .dels-ml-pair-switcher {
        width: 100%;
        margin: 0;
    }

    .dels-header-v21-inner.dels-ml-controls-host > .dels-ml-header-controls-mounted .dels-ml-select,
    .dels-header-v21-inner.dels-ml-controls-host > .dels-ml-header-controls-mounted .dels-ml-pair-select {
        width: 100%;
        max-width: none;
    }
}

/* O Núcleo Universal é a única camada que desenha contatos e diacríticos.
   Estas regras anulam a decoração do antigo V4.10 quando um texto legado é
   encontrado durante a migração, evitando sublinhado duplo. */
body.dels-elis-core-v2-active .dels-ml-elis-string .dels-elis-v410-contact::after,
body.dels-elis-core-v2-active .dels-ml-elis-string .dels-elis-v410-token::before,
body.dels-elis-core-v2-active .dels-ml-elis-string .dels-elis-v410-token::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

body.dels-elis-core-v2-active .dels-ml-elis-interface,
body.dels-elis-core-v2-active .dels-ml-panel-link[data-dels-elis-semantic] {
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

@media (max-width: 782px) {
    .dels-ml-header-controls-mounted {
        max-width: calc(100vw - 20px) !important;
        gap: 6px !important;
    }

    .dels-ml-header-controls-mounted .dels-ml-switcher,
    .dels-ml-header-controls-mounted .dels-ml-pair-switcher {
        min-width: 0 !important;
        flex: 1 1 0 !important;
    }

    .dels-ml-header-controls-mounted .dels-ml-select,
    .dels-ml-header-controls-mounted .dels-ml-pair-select {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}
