/* Corpo */
body {
    background-image: url('/__static/cf381e47e67efb024be0da2d/assets/images/shared/bg_optimized.jpg');
    /* Fundo otimizado */
    background-size: cover !important;
    /* Ocupa sempre 100% do viewport */
    background-position: center;
    /* Centraliza a imagem */
    background-attachment: fixed;
    /* Fundo fixo em dispositivos adequados */
    background-repeat: no-repeat;
    /* Evita repetição */
    font-family: Arial, sans-serif;
    /* Fonte padrão */
    overflow: auto;
    /* Restaura o comportamento normal de scroll */
    overflow-x: hidden !important;
    /* Evita scroll horizontal */
    width: 100%;
    margin: 0 !important;
    forced-color-adjust: auto;
}

/* Reserva permanente do espaço da scrollbar no root para evitar "jump"
   de layout quando qualquer modal abre/fecha (SweetAlert em login,
   modais arena em dashboard, etc.). O track fica sempre visível. */
html {
    scrollbar-gutter: stable;
}

/* Padding zero apenas em desktop - mobile controlado por responsive.css */
@media (min-width: 992px) and (orientation: landscape) and (hover: hover), (min-width: 992px) and (orientation: landscape) and (min-height: 541px), (min-width: 1025px) and (orientation: portrait) and (hover: hover), (min-width: 1201px) and (orientation: portrait) {
    body {
        padding: 0 !important;
    }

    #content {
        padding: 0 !important;
    }
}


/* Bloqueia a rolagem principal enquanto modais ou dialogs estiverem abertos, mantendo scrollbar-gutter: stable sem salto de layout. */
body.scroll-lock,
body.scroll-lock.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown),
body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) {
    overflow: visible !important;
    padding-right: 0 !important;
}

html.scroll-lock {
    scrollbar-gutter: stable !important;
    overflow-y: auto !important;
    scrollbar-color: transparent transparent !important;
}

html.scroll-lock body { scrollbar-color: #1A212A #f1f1f1; }
html[data-theme="dark"].scroll-lock body { scrollbar-color: #36495a #131d27; }

body * { scrollbar-width: thin; }

html:has(body.swal2-shown:not(.swal2-toast-shown)) {
    scrollbar-gutter: stable !important;
}

/* Image lightbox: avoid reserving gutter on both edges (it shifts the navbar in Chrome). */
body.post-image-overlay-open.scroll-lock {
    scrollbar-gutter: auto !important;
}


/* Scrollbar com aparência desabilitada (cinza claro) quando scroll está bloqueado */
body.scroll-lock::-webkit-scrollbar-thumb {
    background-color: rgba(200, 200, 200, 0.3) !important;
}

#content {
    margin: 0 !important;
}

/* Alvo do scroll */
.scrollable {
    overflow: auto !important;
    overscroll-behavior: contain !important;
    /* Firefox: deixa só o polegar com cor, trilho transparente */
    scrollbar-width: thin !important;
    scrollbar-color: #1b2027 transparent !important;
    /* Evita salto de layout quando aparece a barra */
    scrollbar-gutter: stable !important;
}

/* WebKit (Chrome/Edge/Safari) */
.scrollable::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

.scrollable::-webkit-scrollbar-track {
    background: transparent !important;
}

.scrollable::-webkit-scrollbar-thumb {
    background-color: #1b2027 !important;
    border-radius: 8px !important;
    /* borda transparente cria “respiro”, parecendo flutuar */
    border: 2px solid transparent !important;
    background-clip: content-box !important;
}

/* Some botões/cantos antigos de scrollbar no WebKit */
.scrollable::-webkit-scrollbar-button {
    display: none !important;
}

.scrollable::-webkit-scrollbar-corner {
    background: transparent !important;
}

/* (Opcional) Mostrar o thumb mais forte só ao interagir */
.scrollable::-webkit-scrollbar-thumb {
    opacity: 0.6 !important;
    transition: opacity .2s !important;
}

.scrollable:hover::-webkit-scrollbar-thumb,
.scrollable:focus-within::-webkit-scrollbar-thumb {
    opacity: 1 !important;
}

.logo {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    background-image: url('/__static/cf381e47e67efb024be0da2d/assets/images/shared/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    margin-right: 8px;
    transition: box-shadow 0.2s;
}


/* Botão Azul LinkMedMe */
.btn-linkmedme {
    width: 100%;
    height: 50px;
    font-size: 1.2rem;
    padding: 8px 16px;
    border-radius: 6px;
    background-color: #9DD0D4;
    color: white !important;
    border-color: #9DD0D4;
    outline: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    /* Transição suave */
}

.btn-linkmedme:hover {
    background-color: #C9E7DE !important;
    border-color: #C9E7DE !important;
}

.btn-linkmedme:active,
.btn-linkmedme:focus {
    background-color: #C9E7DE !important;
    border-color: #C9E7DE !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Botão Verde LinkMedMe */
.btn-green-linkmedme {
    width: 100%;
    height: 50px;
    font-size: 1.2rem;
    padding: 10px 16px !important;
    border-radius: 6px;
    background-color: rgba(11, 153, 94, 1) !important;
    color: white !important;
    border-color: rgba(11, 153, 94, 1) !important;
    outline: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    /* Transição suave */
}

.btn-green-linkmedme:hover,
.btn-green-linkmedme:active,
.btn-green-linkmedme:focus {
    background-color: rgba(11, 153, 94, 0.8) !important;
    border-color: rgba(11, 153, 94, 0.8) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Botão Google */
.btn-google-linkmedme {
    width: 100%;
    height: 50px;
    font-size: 1.2rem;
    padding: 10px 16px !important;
    border-radius: 6px;
    background-color: #4285F4 !important;
    color: #fff !important;
    border: 1px solid #4285F4 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-google-linkmedme:hover {
    background-color: #357ae8 !important;
    border-color: #357ae8 !important;
}

.btn-google-linkmedme i {
    color: #fff !important;
}

button:focus,
input:focus,
[tabindex]:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Social login buttons */
.social-login {
    display: flex;
    gap: 0.5rem;
}

.social-login>* {
    flex: 1 1 0;
    min-width: 0;
}

@media (max-width: 576px) {
    .social-login {
        flex-direction: column !important;
    }

    .social-login>* {
        width: 100% !important;
    }
}

#btn-google-login,
#btn-facebook-login {
    width: 100% !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
    cursor: pointer;
}

/* Google button - white with gray border */
#btn-google-login {
    background-color: #fff !important;
    color: #444 !important;
    border: 1px solid #dadce0 !important;
    position: relative;
    overflow: hidden;
}

#btn-google-login:hover {
    background-color: #f8f9fa !important;
    border-color: #c6c6c6 !important;
}

/* Until the Google SDK has inserted its real hit target, do not display a fake active button. */
#btn-google-login[data-google-ready="0"] {
    pointer-events: none !important;
    cursor: progress !important;
    opacity: .65;
}
#btn-google-login[data-google-ready="1"] {
    opacity: 1;
    touch-action: manipulation;
}
#btn-google-login[data-google-ready="0"]::after,
#btn-google-login[data-google-ready="error"]::after {
    content: 'Preparando Google…';
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #596a73;
    font-size: .82rem;
    font-weight: 600;
}
#btn-google-login[data-google-ready="error"]::after { content: 'Google indisponível'; }
#btn-google-login[data-google-ready="error"] { pointer-events: none !important; opacity: .75; }

/* Facebook button - blue */
#btn-facebook-login,
#btn-facebook-login:active,
#btn-facebook-login:focus {
    background-color: #1877f2 !important;
    color: #fff !important;
    border: none !important;
}

#btn-facebook-login:hover {
    background-color: #166fe5 !important;
}

/* ========================================
   BREADCRUMB NAVIGATION - Estilos compartilhados
   Usado em: question-breadcrumb, study-breadcrumb
   ======================================== */

/* Breadcrumb Row - à esquerda em desktop/tablet */
#question-breadcrumb-row,
#study-breadcrumb-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

/* Breadcrumb nav - à esquerda em desktop/tablet */
#question-breadcrumb-nav,
#study-breadcrumb-nav {
    display: flex;
    justify-content: flex-start;
}

/* Breadcrumb base styles */
.breadcrumb.linkmedme-breadcrumb,
#question-breadcrumb,
#study-breadcrumb {
    background-color: transparent;
    padding-top: 22px !important;
    margin-bottom: 0;
    display: flex;
    justify-content: flex-start;
}

/* Breadcrumb items */
.breadcrumb.linkmedme-breadcrumb .breadcrumb-item,
#question-breadcrumb .breadcrumb-item,
#study-breadcrumb .breadcrumb-item {
    background-color: #fff;
    border-radius: 4px;
    padding: 4px 8px;
    margin-right: 6px;
    cursor: pointer;
    color: #1A212A;
    text-decoration: none;
}

/* Active item */
.breadcrumb.linkmedme-breadcrumb .breadcrumb-item.active,
#question-breadcrumb .breadcrumb-item.active,
#study-breadcrumb .breadcrumb-item.active {
    background-color: var(--brand, #9DD0D4);
    color: #fff;
    cursor: default;
}

.breadcrumb.linkmedme-breadcrumb .breadcrumb-item.active i,
#question-breadcrumb .breadcrumb-item.active i,
#study-breadcrumb .breadcrumb-item.active i {
    color: #fff !important;
}

/* Links and icons inside items - click goes to parent li */
.breadcrumb.linkmedme-breadcrumb .breadcrumb-item a,
.breadcrumb.linkmedme-breadcrumb .breadcrumb-item i,
#question-breadcrumb .breadcrumb-item a,
#question-breadcrumb .breadcrumb-item i,
#study-breadcrumb .breadcrumb-item a,
#study-breadcrumb .breadcrumb-item i {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}

/* Remove default separator */
.breadcrumb.linkmedme-breadcrumb .breadcrumb-item+.breadcrumb-item::before,
#question-breadcrumb .breadcrumb-item+.breadcrumb-item::before,
#study-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    content: none;
}

/* ========================================
   CARDS - Estilos compartilhados para cards de navegação
   Usado em: question-options, question-categories, question-year, study-options
   ======================================== */

/* Card tema base - Desktop */
.card-tema {
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.card-tema:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Cards de opções principais - Desktop (Categorias, Simulados, Aprendizado, Anatomia, Fisiologia) */
#question-options-container .card-tema,
#question-inep-container .card-tema,
#question-provas-container .card-tema,
#question-categories-container .card-tema,
#question-year-container .card-tema,
#study-options-container .card-tema,
#study-options-container .study-option-card,
#anatomy-topics-grid .card-tema,
#physiology-topics-grid .card-tema {
    min-height: 280px;
    max-height: 320px;
    border-radius: 12px;
}

/* Ícones dentro dos cards */
#question-options-container .card-tema .fa-3x,
#question-inep-container .card-tema .fa-3x,
#question-provas-container .card-tema .fa-3x,
#question-categories-container .card-tema .fa-3x,
#question-year-container .card-tema .fa-3x,
#study-options-container .card-tema .fa-3x,
#study-options-container .study-option-card .fa-3x,
#anatomy-topics-grid .card-tema .fa-3x,
#physiology-topics-grid .card-tema .fa-3x {
    pointer-events: none;
}

/* Ícones com cor padrão */
#question-options-container i,
#question-inep-container i,
#question-provas-container i,
#question-categories-container i,
#question-year-container i,
#study-options-container i,
#anatomy-topics-grid i,
#physiology-topics-grid i {
    color: #6c757d !important;
}

/* Quando o feed do dashboard estiver desativado, garantir que os ícones
   nos cards de estudo não recebam hover/efeitos visuais (Categorias/Simulados/Aprendizagem) */
body[data-feed-enabled="0"] .home-study-card .fa-3x,
body[data-feed-enabled="0"] .home-study-card:hover .fa-3x,
body[data-feed-enabled="0"] .home-study-card .fa-3x:hover {
    color: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
    pointer-events: none !important;
}

/* ========================================
   CARDS - Mobile/Celular
   ======================================== */
@media (max-width: 992px) and (orientation: portrait),
(max-width: 768px) {

    /* Margens laterais para containers no mobile */
    #container-card-tema-questao,
    #container-study {
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-top: 0 !important;
    }

    /* Margem para containers de cards */
    #question-options-container,
    #question-inep-container,
    #question-provas-container,
    #question-categories-container,
    #question-year-container,
    #study-options-container,
    #anatomy-topics-grid,
    #physiology-topics-grid {
        padding: 0 4px;
    }

    /* Margem para container de questões */
    #questions-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Tamanho dos cards no mobile - altura flexível para títulos */
    #question-options-container .card-tema,
    #question-inep-container .card-tema,
    #question-provas-container .card-tema,
    #question-categories-container .card-tema,
    #question-year-container .card-tema,
    #study-options-container .card-tema,
    #study-options-container .study-option-card,
    #anatomy-topics-grid .card-tema,
    #physiology-topics-grid .card-tema {
        min-height: 140px;
        max-height: none;
        /* Remove limite para acomodar títulos longos */
        height: auto;
        border-radius: 12px;
    }

    /* Card body flexível */
    #question-options-container .card-tema .card-body,
    #question-inep-container .card-tema .card-body,
    #question-provas-container .card-tema .card-body,
    #question-categories-container .card-tema .card-body,
    #question-year-container .card-tema .card-body,
    #study-options-container .card-tema .card-body,
    #study-options-container .study-option-card .card-body,
    #anatomy-topics-grid .card-tema .card-body,
    #physiology-topics-grid .card-tema .card-body {
        padding: 12px 10px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    /* Ícones menores no mobile */
    #question-options-container .card-tema .fa-3x,
    #question-inep-container .card-tema .fa-3x,
    #question-provas-container .card-tema .fa-3x,
    #question-categories-container .card-tema .fa-3x,
    #question-year-container .card-tema .fa-3x,
    #study-options-container .card-tema .fa-3x,
    #study-options-container .study-option-card .fa-3x,
    #anatomy-topics-grid .card-tema .fa-3x,
    #physiology-topics-grid .card-tema .fa-3x {
        font-size: 1.75rem !important;
        pointer-events: none;
    }

    /* Títulos menores no mobile - com quebra de linha */
    #question-options-container .card-tema .card-title,
    #question-inep-container .card-tema .card-title,
    #question-provas-container .card-tema .card-title,
    #question-categories-container .card-tema .card-title,
    #question-year-container .card-tema .card-title,
    #study-options-container .card-tema .card-title,
    #study-options-container .study-option-card .card-title,
    #anatomy-topics-grid .card-tema .card-title,
    #physiology-topics-grid .card-tema .card-title {
        font-size: 0.85rem !important;
        margin-bottom: 0.25rem !important;
        white-space: normal !important;
        /* Permite quebra de linha */
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.2 !important;
        max-height: none !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        /* Máximo 3 linhas */
        -webkit-box-orient: vertical !important;
        word-break: break-word !important;
    }

    /* Títulos H5 dentro dos cards */
    #question-options-container .card-tema h5,
    #question-inep-container .card-tema h5,
    #question-provas-container .card-tema h5,
    #question-categories-container .card-tema h5,
    #question-year-container .card-tema h5,
    #study-options-container .card-tema h5,
    #study-options-container .study-option-card h5,
    #anatomy-topics-grid .card-tema h5,
    #physiology-topics-grid .card-tema h5 {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        font-size: 0.85rem !important;
        line-height: 1.2 !important;
    }

    /* Botões menores no mobile */
    #question-options-container .card-tema .btn,
    #question-inep-container .card-tema .btn,
    #question-provas-container .card-tema .btn,
    #question-categories-container .card-tema .btn,
    #question-year-container .card-tema .btn,
    #study-options-container .card-tema .btn,
    #study-options-container .study-option-card .btn,
    #anatomy-topics-grid .card-tema .btn,
    #physiology-topics-grid .card-tema .btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    /* Esconder descrição no mobile para economizar espaço */
    #question-options-container .card-tema .card-text,
    #question-inep-container .card-tema .card-text,
    #question-provas-container .card-tema .card-text,
    #question-categories-container .card-tema .card-text,
    #question-year-container .card-tema .card-text,
    #study-options-container .card-tema .card-text,
    #study-options-container .study-option-card .card-text,
    #anatomy-topics-grid .card-tema .card-text,
    #physiology-topics-grid .card-tema .card-text {
        display: none;
    }

    /* Breadcrumb no mobile - centralizado */
    #question-breadcrumb-row,
    #study-breadcrumb-row {
        padding-left: 12px !important;
        padding-right: 12px !important;
        justify-content: center !important;
        margin-bottom: 8px !important;
    }

    #question-breadcrumb-nav,
    #study-breadcrumb-nav {
        display: flex !important;
        justify-content: center !important;
    }

    #question-breadcrumb,
    #study-breadcrumb {
        padding-top: 8px !important;
        margin-bottom: 0 !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* Limitar largura do breadcrumb item no mobile */
    #question-breadcrumb .breadcrumb-item,
    #study-breadcrumb .breadcrumb-item {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Keep modal backdrops visible without a background-color fade. */
.swal2-container { --swal2-backdrop-transition: none; }

/* Shared dialog policy, matching the timed exam's native dialog. */
:root { --linkmedme-modal-backdrop: #1a212a80; --linkmedme-modal-border: #dce7e9; }
body .linkmedme-modal-container.swal2-container {
    display: flex !important; align-items: center !important; justify-content: center !important;
    padding: 24px 16px !important; z-index: 20000 !important;
    transition: none !important; animation: none !important;
    opacity: 1 !important; --swal2-backdrop-transition: none;
}
body .linkmedme-modal-container.swal2-container { background: var(--linkmedme-modal-backdrop) !important; }
body .linkmedme-modal-container:is(.linkmedme-modal-over-parent,.linkmedme-modal-no-backdrop) { background: transparent !important; }
body .swal2-popup.linkmedme-modal {
    border: 1px solid var(--linkmedme-modal-border) !important; border-radius: 16px !important;
    background: #fff !important; color: #1a212a !important; padding: 24px !important;
    box-shadow: 0 16px 48px #1a212a26 !important; text-align: left !important;
    max-width: calc(100vw - 32px) !important; max-height: calc(100dvh - 48px) !important;
    min-height: 0 !important; height: auto !important; margin: 0 !important;
    animation: none !important; transition: none !important; transform: none !important;
    overflow-y: auto !important;
}
body .linkmedme-modal .swal2-title { padding: 0; margin: 0; font-size: 1.2rem; font-weight: 500; line-height: 1.2; text-align: left; color: #1a212a; }
body .linkmedme-modal .swal2-html-container { margin: 12px 0 20px; padding: 0; font-size: 1rem; line-height: 1.6; color: #667081; text-align: left; }
body .linkmedme-modal .swal2-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
body .linkmedme-modal .swal2-actions button { margin: 0; }
body :is(.swal2-popup.linkmedme-modal, .q-dialog, .modal-content, .share-modal, .img-modal, .gamification-modal, .inline-change-confirmation-panel)
:is(.btn, .swal2-confirm, .swal2-cancel, .swal2-deny, .img-modal-btn, .gamification-next, .gamification-prev, .inline-change-confirmation-btn) {
    min-height: 44px !important; padding: 10px 16px !important; border-radius: 10px !important;
    font-size: 1rem !important; font-weight: 600 !important; line-height: 1.5;
    border: 1px solid #9dd0d4 !important; color: #1a212a !important; background: #fff !important;
    transform: none !important; box-shadow: none !important;
    transition: background-color .12s ease !important; touch-action: manipulation;
}
body :is(.linkmedme-modal, .q-dialog, .modal-content, .share-modal, .img-modal, .gamification-modal, .inline-change-confirmation-panel)
:is(.btn, .swal2-confirm, .swal2-cancel, .swal2-deny, .img-modal-btn, .gamification-next, .gamification-prev, .inline-change-confirmation-btn):hover:not(:disabled) { background: #dceff0 !important; color: #1a212a !important; }
body :is(.linkmedme-modal, .q-dialog, .modal-content, .share-modal, .img-modal, .gamification-modal, .inline-change-confirmation-panel)
:is(.btn, .swal2-confirm, .swal2-cancel, .swal2-deny, .img-modal-btn, .gamification-next, .gamification-prev, .inline-change-confirmation-btn):active:not(:disabled) { background: #b5dde0 !important; }
body :is(.linkmedme-modal, .q-dialog, .modal-content, .share-modal, .img-modal, .gamification-modal, .inline-change-confirmation-panel)
:is(.btn, .swal2-confirm, .swal2-cancel, .swal2-deny, .img-modal-btn, .gamification-next, .gamification-prev, .inline-change-confirmation-btn):focus { outline: none !important; box-shadow: none !important; }
body :is(.linkmedme-modal, .q-dialog, .modal-content, .share-modal, .img-modal, .gamification-modal, .inline-change-confirmation-panel)
:is(.btn, .swal2-confirm, .swal2-cancel, .swal2-deny, .img-modal-btn, .gamification-next, .gamification-prev, .inline-change-confirmation-btn):focus-visible { box-shadow: 0 0 0 3px #9dd0d466 !important; }
body :is(.linkmedme-modal, .q-dialog, .modal-content, .share-modal, .img-modal, .gamification-modal, .inline-change-confirmation-panel)
:is(.btn, .swal2-confirm, .swal2-cancel, .swal2-deny, .img-modal-btn, .gamification-next, .gamification-prev, .inline-change-confirmation-btn):disabled { opacity: .55; cursor: not-allowed; }
body :is(.share-modal-overlay, .img-modal-overlay, .gamification-overlay, .notification-publication-modal) {
    background: var(--linkmedme-modal-backdrop) !important; backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important; transition: none !important; animation: none !important;
}
body :is(.share-modal, .img-modal, .gamification-modal, .modal-content, .notification-publication-modal-shell) {
    border: 1px solid var(--linkmedme-modal-border) !important; border-radius: 16px !important;
    background: #fff !important; color: #1a212a !important; box-shadow: 0 16px 48px #1a212a26 !important;
    transition: none !important; animation: none !important; transform: none !important;
    max-height: calc(100dvh - 48px) !important;
}
body :is(.img-modal, .gamification-modal) { padding: 24px !important; }
body .img-modal { width: min(480px, calc(100vw - 32px)) !important; max-width: 480px !important; text-align: left; }
body .img-modal-title { color: #1a212a; font-size: 1.2rem; font-weight: 500; }
body .img-modal-description { color: #667081; font-size: 1rem; line-height: 1.6; }
body :is(.img-modal-overlay, .img-modal).visible { opacity: 1 !important; transform: none !important; }
body .modal-backdrop.show { background: var(--linkmedme-modal-backdrop) !important; opacity: 1 !important; }
body .modal.fade .modal-dialog { transition: none !important; transform: none !important; }
body .modal.show { transition: none !important; z-index: 15000; }
body .modal-backdrop { transition: none !important; z-index: 14999; }

body .share-modal { padding: 24px !important; }
body .modal-content .modal-title { font-size: 1.2rem; font-weight: 500; color: #1a212a; }
body .modal-footer { gap: 8px; }
body .modal-footer .btn { margin: 0 !important; }

/* Legacy alert classes also set focus colors; the shared action policy wins. */
body .swal2-popup.linkmedme-modal .swal2-actions .linkmedme-modal-action { background: #fff !important; border: 1px solid #9dd0d4 !important; color: #1a212a !important; }
body .swal2-popup.linkmedme-modal .swal2-actions .linkmedme-modal-action:hover:not(:disabled) { background: #dceff0 !important; }
body .swal2-popup.linkmedme-modal .swal2-actions .linkmedme-modal-action:active:not(:disabled) { background: #b5dde0 !important; }

body .gamification-actions :is(.gamification-prev, .gamification-next) { width: auto !important; min-width: 44px; height: auto !important; }

/* Standardized confirmation dialogs keep centered copy and consistent actions. */
body .swal2-popup.linkmedme-modal { text-align: center !important; }
body .linkmedme-modal .swal2-title,
body .linkmedme-modal .swal2-html-container { text-align: center !important; }
body .linkmedme-modal .swal2-actions { justify-content: center; }
body .swal2-popup.linkmedme-modal .swal2-actions :is(.swal2-confirm, .swal2-cancel, .swal2-deny) {
    min-height: 44px !important; padding: 10px 16px !important; border: 1px solid #9dd0d4 !important;
    border-radius: 10px !important; background: #fff !important; color: #1a212a !important;
    font-size: 1rem !important; font-weight: 600 !important; opacity: 1;
    box-shadow: none !important; transform: none !important;
}
body .swal2-popup.linkmedme-modal .swal2-actions :is(.swal2-confirm, .swal2-cancel, .swal2-deny):hover:not(:disabled) { background: #dceff0 !important; }

/* Keep standardized modal buttons geometrically stable in every pointer state. */
body :is(.swal2-popup.linkmedme-modal, .q-dialog, .modal-content, .share-modal, .img-modal, .gamification-modal, .inline-change-confirmation-panel)
:is(.btn, .swal2-confirm, .swal2-cancel, .swal2-deny, .img-modal-btn, .gamification-next, .gamification-prev, .inline-change-confirmation-btn) {
    box-sizing: border-box !important;
    position: relative;
    margin-top: 0 !important; margin-bottom: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #9dd0d4 !important;
    transform: none !important;
    translate: none !important;
    scale: none !important;
    filter: none !important;
    box-shadow: none !important;
    transition: background-color .12s ease, color .12s ease !important;
}
body :is(.swal2-popup.linkmedme-modal, .q-dialog, .modal-content, .share-modal, .img-modal, .gamification-modal, .inline-change-confirmation-panel)
:is(.btn, .swal2-confirm, .swal2-cancel, .swal2-deny, .img-modal-btn, .gamification-next, .gamification-prev, .inline-change-confirmation-btn):is(:hover, :active, :focus, :focus-visible) {
    margin-top: 0 !important; margin-bottom: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #9dd0d4 !important;
    transform: none !important;
    translate: none !important; scale: none !important;
    filter: none !important;
}
body :is(.swal2-popup.linkmedme-modal, .q-dialog, .modal-content, .share-modal, .img-modal, .gamification-modal, .inline-change-confirmation-panel)
:is(.btn, .swal2-confirm, .swal2-cancel, .swal2-deny, .img-modal-btn, .gamification-next, .gamification-prev, .inline-change-confirmation-btn):hover:not(:disabled) {
    background: #dceff0 !important; color: #1a212a !important;
}
body :is(.swal2-popup.linkmedme-modal, .q-dialog, .modal-content, .share-modal, .img-modal, .gamification-modal, .inline-change-confirmation-panel)
:is(.btn, .swal2-confirm, .swal2-cancel, .swal2-deny, .img-modal-btn, .gamification-next, .gamification-prev, .inline-change-confirmation-btn):active:not(:disabled) {
    background: #b5dde0 !important;
}
body :is(.swal2-popup.linkmedme-modal, .q-dialog, .modal-content, .share-modal, .img-modal, .gamification-modal, .inline-change-confirmation-panel)
:is(.btn, .swal2-confirm, .swal2-cancel, .swal2-deny, .img-modal-btn, .gamification-next, .gamification-prev, .inline-change-confirmation-btn):focus {
    outline: none !important;
    box-shadow: none !important;
}
body :is(.swal2-popup.linkmedme-modal, .q-dialog, .modal-content, .share-modal, .img-modal, .gamification-modal, .inline-change-confirmation-panel)
:is(.btn, .swal2-confirm, .swal2-cancel, .swal2-deny, .img-modal-btn, .gamification-next, .gamification-prev, .inline-change-confirmation-btn):focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px #9dd0d466 !important;
}

/* Shared SweetAlert confirmation buttons (including arena and study room). */
body .swal2-popup.scrollable .swal2-actions :is(.swal2-confirm, .swal2-cancel, .swal2-deny) {
  box-sizing: border-box !important;
  appearance: none;
  min-height: 44px !important;
  height: auto !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  border: 1px solid #9dd0d4 !important;
  border-radius: 10px !important;
  background: #fff !important;
  background-image: none !important;
  color: #1a212a !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  transform: none !important;
  translate: none !important;
  scale: none !important;
  filter: none !important;
  box-shadow: none !important;
  transition: background-color .15s ease, border-color .15s ease !important;
}
body .swal2-popup.scrollable .swal2-actions :is(.swal2-confirm, .swal2-cancel, .swal2-deny):is(:hover, :active) {
  padding: 10px 16px !important;
  margin: 0 !important;
  border: 1px solid #9dd0d4 !important;
  border-radius: 10px !important;
  background: #dceff0 !important;
  background-image: none !important;
  color: #1a212a !important;
  transform: none !important;
  translate: none !important;
  scale: none !important;
  box-shadow: none !important;
}
body .swal2-popup.scrollable .swal2-actions :is(.swal2-confirm, .swal2-cancel, .swal2-deny):active:not(:disabled) { background: #b5dde0 !important; }
body .swal2-popup.scrollable .swal2-actions :is(.swal2-confirm, .swal2-cancel, .swal2-deny):focus-visible { outline: 2px solid #358e98 !important; outline-offset: 2px !important; }

/* Unified confirmation action contract for every LinkMedMe SweetAlert. */
body .swal2-popup.linkmedme-modal .swal2-actions > :is(button, .swal2-styled, .btn),
body .swal2-popup.scrollable .swal2-actions > :is(button, .swal2-styled, .btn) {
  box-sizing: border-box !important;
  appearance: none !important;
  min-height: 44px !important;
  height: auto !important;
  width: auto !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  border: 1px solid #9dd0d4 !important;
  border-radius: 10px !important;
  background: #fff !important;
  background-image: none !important;
  color: #1a212a !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  opacity: 1;
  transform: none !important;
  translate: none !important;
  scale: none !important;
  filter: none !important;
  box-shadow: none !important;
  transition: background-color .15s ease, border-color .15s ease !important;
}
body .swal2-popup.linkmedme-modal .swal2-actions > :is(button, .swal2-styled, .btn):is(:hover, :active),
body .swal2-popup.scrollable .swal2-actions > :is(button, .swal2-styled, .btn):is(:hover, :active) {
  padding: 10px 16px !important;
  margin: 0 !important;
  border: 1px solid #9dd0d4 !important;
  border-radius: 10px !important;
  background: #dceff0 !important;
  background-image: none !important;
  color: #1a212a !important;
  transform: none !important;
  translate: none !important;
  scale: none !important;
  filter: none !important;
  box-shadow: none !important;
}
body .swal2-popup.linkmedme-modal .swal2-actions > :is(button, .swal2-styled, .btn):active:not(:disabled),
body .swal2-popup.scrollable .swal2-actions > :is(button, .swal2-styled, .btn):active:not(:disabled) { background: #b5dde0 !important; }
body .swal2-popup.linkmedme-modal .swal2-actions > :is(button, .swal2-styled, .btn):focus-visible,
body .swal2-popup.scrollable .swal2-actions > :is(button, .swal2-styled, .btn):focus-visible { outline: 2px solid #358e98 !important; outline-offset: 2px !important; }
body .swal2-popup.linkmedme-modal .swal2-actions > :is(button, .swal2-styled, .btn):disabled { opacity: .55 !important; cursor: not-allowed !important; }
/* Profile photo Cropper: stable stage and no accidental horizontal scrolling. */
body .swal2-popup.profile-photo-crop-modal {
    position: relative;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden !important;
    overflow-y: auto;
}
body .swal2-popup.profile-photo-crop-modal .swal2-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 5;
    width: 36px;
    height: 36px;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}
@media (max-width: 768px) {
    body .swal2-popup.profile-photo-crop-modal .swal2-close {
        top: calc(12px + env(safe-area-inset-top, 0px)) !important;
        right: calc(12px + env(safe-area-inset-right, 0px)) !important;
    }
}
html[data-theme="dark"] body .swal2-popup.profile-photo-crop-modal #sel-photo-perfil-usuario {
    color: #d4e2ec;
}
html[data-theme="dark"] body .swal2-popup.profile-photo-crop-modal #sel-photo-perfil-usuario:hover {
    color: #7cc9d6;
}
html[data-theme="dark"] body .swal2-popup.profile-photo-crop-modal input[type="file"]::file-selector-button {
    background-color: #1f3344;
    border-color: #2f475a;
    color: #eef5f9;
}
html[data-theme="dark"] body .swal2-popup.profile-photo-crop-modal input[type="file"]::file-selector-button:hover {
    background-color: #274054;
    color: #ffffff;
}
body .swal2-popup.profile-photo-crop-modal .swal2-html-container {
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding-bottom: 4px;
    overflow-x: hidden !important;
}
body .swal2-popup.profile-photo-crop-modal #sel-photo-perfil-usuario {
    display: block;
    margin: 0 auto 14px;
    color: #556674;
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
    transition: color 0.15s ease;
}
body .swal2-popup.profile-photo-crop-modal #sel-photo-perfil-usuario:hover {
    color: #2f7d8c;
}
body .swal2-popup.profile-photo-crop-modal .form-control {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
}
body .swal2-popup.profile-photo-crop-modal .swal2-actions {
    margin-top: 18px !important;
    gap: 10px;
}
body .swal2-popup.profile-photo-crop-modal .profile-photo-stage {
    display: none;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: min(320px, 42dvh);
    overflow: hidden;
}
body .swal2-popup.profile-photo-crop-modal .profile-photo-stage.is-loading {
    visibility: hidden;
}
body .swal2-popup.profile-photo-crop-modal .profile-photo-stage .cropper-container {
    max-width: 100%;
    max-height: 100%;
}
@media (max-width: 480px) {
    body .swal2-popup.profile-photo-crop-modal .profile-photo-stage {
        height: min(280px, 36dvh);
    }
}

/* Keep both occupation/institution selectors rounded at all four desktop corners.
   Clip the scroll-list surface and the sticky footer at the same radius. */
body .swal2-popup:is(#occupation-modal, #institution-modal) {
    --lm-selection-corner-radius: 18px;
    border-radius: var(--lm-selection-corner-radius) !important;
    overflow: hidden !important;
    scrollbar-gutter: auto !important;
}
body .swal2-popup:is(#occupation-modal, #institution-modal) > .swal2-html-container {
    border-radius: var(--lm-selection-corner-radius) !important;
    overflow: hidden !important;
}
body .swal2-popup:is(#occupation-modal, #institution-modal) .modal-footer-sticky {
    border-radius: 0 0 var(--lm-selection-corner-radius) var(--lm-selection-corner-radius) !important;
    background-clip: padding-box;
}
body .swal2-popup:is(#occupation-modal, #institution-modal) .modal-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: center;
    gap: 14px 12px;
    padding: 16px 18px !important;
}
body .swal2-popup:is(#occupation-modal, #institution-modal) .modal-header h2 {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    text-align: left;
    font-size: 1.25rem;
    line-height: 1.35;
    overflow-wrap: normal;
    word-break: normal;
}
body .swal2-popup:is(#occupation-modal, #institution-modal) .modal-header .close-modal-btn {
    grid-column: 2;
    grid-row: 1;
    position: static !important;
    justify-self: end;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0 !important;
}
body .swal2-popup:is(#occupation-modal, #institution-modal) .modal-header input {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    width: 100%;
    margin: 0;
}
body .swal2-container.user-config-fullscreen-modal .swal2-popup:is(#occupation-modal, #institution-modal) .modal-header {
    padding-top: calc(16px + env(safe-area-inset-top)) !important;
    padding-left: calc(18px + env(safe-area-inset-left)) !important;
    padding-right: calc(18px + env(safe-area-inset-right)) !important;
}
@media (max-width: 480px) {
    body .swal2-popup:is(#occupation-modal, #institution-modal) .modal-header h2 {
        font-size: 1.125rem;
    }
}

/* Center the pending indicator while each page retains its own button palette. */
body .card-add .actions .a.is-loading,
body #search-results-list button[id^="search-btn-"].is-loading,
body button[id^="people-btn-"].is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: none;
    transition: none;
}
body .card-add .actions .a.is-loading,
body button[id^="people-btn-"].is-loading {
    background: #000 !important;
    border-color: #000 !important;
}
body button.is-loading > .friend-request-spinner {
    position: static;
    width: 18px;
    height: 18px;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, .55);
    border-top-color: #fff;
    border-radius: 50%;
    animation: friendSpin .9s linear infinite;
}
body button.is-loading::before {
    content: none !important;
    display: none !important;
}


/* Mobile dialogs have their final geometry before the first painted frame. */
@media (max-width: 992px), (max-height: 700px) and (pointer: coarse) {
    html { scrollbar-gutter: auto; }
    body .swal2-container.linkmedme-modal-container {
        inset: var(--lm-modal-top, 0px) 0 auto !important;
        width: 100% !important;
        height: var(--lm-modal-height, 100dvh) !important;
        max-height: var(--lm-modal-height, 100dvh) !important;
        padding: 0 !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        overflow: hidden !important;
    }
    body .swal2-container.linkmedme-modal-container .swal2-popup.linkmedme-modal {
        position: relative !important;
        inset: auto !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: calc(20px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left)) !important;
        overflow: hidden !important;
    }
    body .swal2-container.linkmedme-modal-container .linkmedme-modal > .swal2-html-container {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    body .swal2-container.linkmedme-modal-container .linkmedme-modal > :is(.swal2-title, .swal2-icon, .swal2-actions, .swal2-footer) {
        flex-shrink: 0;
    }
    body .swal2-container.linkmedme-modal-container .linkmedme-modal > .swal2-actions {
        margin-top: auto !important;
        padding-top: 16px;
    }
    body .swal2-container.linkmedme-modal-container .linkmedme-modal:is(#occupation-modal, #institution-modal, #category-modal) {
        padding: 0 !important;
    }
    /* Edge-to-edge mobile selectors remain square, like the existing fullscreen layout. */
    body .swal2-container.linkmedme-modal-container .swal2-popup:is(#occupation-modal, #institution-modal) {
        --lm-selection-corner-radius: 0px;
        border-radius: 0 !important;
    }
    body .swal2-container.linkmedme-modal-container .linkmedme-modal:is(#occupation-modal, #institution-modal, #category-modal) > .swal2-html-container {
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body .swal2-container.linkmedme-modal-container .linkmedme-modal .modal-header {
        flex-shrink: 0;
    }
    body .swal2-container.linkmedme-modal-container .linkmedme-modal .card-container-wrapper {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow-y: auto !important;
    }
    body .swal2-container.linkmedme-modal-container .linkmedme-modal .modal-footer-sticky {
        flex-shrink: 0;
    }
}


@media (max-width: 992px) {
    /* The conversation header keeps a full touch target at every phone width. */
    body nav.navbar:is(.messages-active, .conversation-active) #navbar-back-button {
        display: flex !important;
        position: static !important;
        flex: 0 0 44px !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        color: #fff !important;
        overflow: visible !important;
        transform: none !important;
    }
    body nav.navbar:is(.messages-active, .conversation-active) #navbar-user-photo-container {
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
        margin: 0 10px 0 0 !important;
    }
    body nav.navbar:is(.messages-active, .conversation-active) #navbar-user-photo-container img {
        width: 50px !important;
        height: 50px !important;
        margin: 0 !important;
        object-fit: cover;
    }
    body nav.navbar.conversation-active #navbar-conversation-header {
        min-width: 0;
        margin: 0;
        flex: 1 1 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 2px;
    }
    body nav.navbar.conversation-active #navbar-conversation-title {
        display: block;
        max-width: 100%;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body nav.navbar.conversation-active #navbar-conversation-status-right {
        margin: 0;
        font-size: .78rem;
        line-height: 1.2;
    }
    /* Feed owns vertical swipes; use the explicit expand button to inspect a PDF. */
    body .feed-item .doc-viewer-canvas-wrap,
    body .notification-publication-modal .doc-viewer-canvas-wrap {
        max-height: none !important;
        overflow: hidden !important;
        touch-action: pan-y pinch-zoom;
        overscroll-behavior: auto;
    }
    body .feed-item .doc-viewer-canvas,
    body .notification-publication-modal .doc-viewer-canvas {
        pointer-events: none;
    }
    /* The trail starts at the same inset, even after adding more levels. */
    body #container-card-tema-questao #question-breadcrumb-row,
    body #container-study #study-breadcrumb-row {
        justify-content: flex-start !important;
    }
    body #container-card-tema-questao #question-breadcrumb-nav,
    body #container-study #study-breadcrumb-nav,
    body #question-breadcrumb,
    body #study-breadcrumb {
        justify-content: flex-start !important;
        text-align: left !important;
    }
    body #question-breadcrumb,
    body #study-breadcrumb {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100%;
    }
}

/* Preserve the original friend-list header footprint when opening a conversation. */
@media (max-width: 992px) {
    body nav.navbar:is(.messages-active, .conversation-active) {
        box-sizing: border-box;
        height: 92px !important;
        min-height: 92px !important;
        max-height: 92px !important;
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }
    body nav.navbar:is(.messages-active, .conversation-active) > .container-fluid {
        height: 60px;
        min-height: 60px;
        align-items: center;
    }
    body nav.navbar:is(.messages-active, .conversation-active) > .container-fluid > .flex-grow-1 {
        height: 60px;
        min-width: 0;
        align-items: center;
    }
}

/* Publication options: one input surface with an integrated, neutral remove control. */
#case-options .case-option-row {
  position: relative; display: flex; flex-wrap: nowrap; align-items: center;
  width: 100%; min-width: 0; min-height: 48px; margin-bottom: 10px !important;
  border: 1px solid #d5dae1; border-radius: 10px; background: #fff; overflow: hidden;
}
#case-options .case-option-row:focus-within { border-color: #598bc5; box-shadow: 0 0 0 2px #e3edf9; }
#case-options .case-option-row > .input-group-text {
  flex: 0 0 44px; min-height: 46px; justify-content: center;
  border: 0; background: transparent; border-radius: 0; padding: 10px;
}
#case-options .case-option-input {
  width: 0; min-width: 0; flex: 1 1 0%; min-height: 46px;
  padding: 10px 44px 10px 0; margin: 0; border: 0 !important;
  border-radius: 0 !important; background: transparent; box-shadow: none !important; font-size: 16px;
}
#case-options .btn-remove-option {
  position: absolute; right: 0; top: 0; width: 44px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; margin: 0; color: #747d89 !important; background: transparent !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  font-size: 25px; line-height: 1; cursor: pointer;
}
#case-options .btn-remove-option:hover { color: #384454 !important; background: #f3f5f7 !important; }
#case-options .btn-remove-option:focus-visible { outline: 2px solid #598bc5; outline-offset: -4px; }
html[data-theme="dark"] #case-options .case-option-row {
  background: #101b24 !important;
  border-color: #2c4152 !important;
}
html[data-theme="dark"] #case-options .case-option-row:focus-within {
  border-color: #398fa3 !important;
  box-shadow: 0 0 0 2px rgba(57, 143, 163, 0.24) !important;
}
html[data-theme="dark"] #case-options .case-option-row > .input-group-text {
  background: transparent !important;
  border: 0 !important;
  color: #d6e6f0;
}
html[data-theme="dark"] #case-options .case-option-row .form-check-input[type="radio"] {
  background-color: #101b24 !important;
  border-color: #4b6980 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] #case-options .case-option-row .form-check-input[type="radio"]:hover {
  border-color: #7bc4d2 !important;
}
html[data-theme="dark"] #case-options .case-option-row .form-check-input[type="radio"]:checked {
  background-color: #247486 !important;
  border-color: #38a3b8 !important;
}
html[data-theme="dark"] #case-options .case-option-row .form-check-input[type="radio"]:focus {
  border-color: #38a3b8 !important;
  box-shadow: 0 0 0 3px rgba(56, 163, 184, 0.28) !important;
}
html[data-theme="dark"] #case-options .case-option-input {
  background: transparent !important;
  color: #ebf2f6 !important;
}
html[data-theme="dark"] #case-options .btn-remove-option {
  background: #1a2a37 !important;
  border-left: 1px solid #253847 !important;
  color: #f38b97 !important;
}
html[data-theme="dark"] #case-options .btn-remove-option:hover {
  background: rgba(194, 58, 75, .22) !important;
  border-left-color: rgba(235, 106, 122, .45) !important;
  color: #ffb4bd !important;
}
.composer-options-screen { display: none; }
@media (max-width: 992px) {
  .share-modal.editing-publication-options > :not(.composer-options-screen) { display: none !important; }
  .composer-options-screen {
    position: fixed; top: var(--options-top, 0px); left: 0; z-index: 10;
    display: flex; flex-direction: column; width: 100%; height: var(--options-height, 100dvh);
    max-height: var(--options-height, 100dvh); min-height: 0; overflow: hidden;
    background: #fff; color: #263345; outline: none; transition: none; animation: none;
  }
  .composer-options-screen::before {
    content: ""; position: fixed; inset: -50vh 0 -50vh 0; background: #fff;
    pointer-events: none; z-index: -1;
  }
  .composer-options-header {
    display: flex; flex: 0 0 auto; align-items: center; gap: 8px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
    border-bottom: 1px solid #e6e9ed;
  }
  .composer-options-header h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
  .composer-options-back {
    flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0;
    background: transparent; color: #526173; font-size: 26px; border-radius: 8px;
  }
  .composer-options-body {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch; padding: 20px 16px;
  }
  .composer-options-help { color: #667383; font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
  .composer-options-body #case-options { width: 100%; min-width: 0; }
  .composer-options-body #btn-add-option { min-height: 44px; }
  .composer-options-body .case-explanation { min-height: 84px; font-size: 16px; margin-top: 12px; }
  .composer-options-footer {
    display: flex; flex: 0 0 auto; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e6e9ed;
    background: #fff;
  }
  .composer-options-header .composer-options-remove {
    display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px;
    width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid #dc3545;
    border-radius: 8px; background: #dc3545; color: #fff;
    font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
  }
  .composer-options-header .composer-options-remove:hover { background: #bb2d3b; border-color: #b02a37; color: #fff; }
  .composer-options-header .composer-options-remove:active { background: #b02a37; border-color: #a52834; color: #fff; }
  .composer-options-header .composer-options-remove:focus-visible { outline: 3px solid #f1aeb5; outline-offset: 2px; }
  .composer-options-header .composer-options-remove i { font-size: 14px; }
  .composer-options-done { min-height: 44px; min-width: 96px; border-radius: 8px; }
  html[data-theme="dark"] .composer-options-screen,
  html[data-theme="dark"] .composer-options-screen::before {
    background: #15212b !important;
    color: #ebf2f6 !important;
  }
  html[data-theme="dark"] .composer-options-header {
    border-bottom-color: #253847 !important;
  }
  html[data-theme="dark"] .composer-options-back {
    color: #c8dae5 !important;
  }
  html[data-theme="dark"] .composer-options-help {
    color: #9cb3c2 !important;
  }
  html[data-theme="dark"] .composer-options-footer {
    background: #15212b !important;
    border-top-color: #253847 !important;
  }
  /* Full-screen destructive-action confirmation, above the options editor. */
  .composer-options-discard-confirmation {
    position: absolute; inset: 0; z-index: 40; box-sizing: border-box;
    display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0;
    background: #fff; color: #263345; overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .composer-options-confirm-content {
    flex: 1 1 auto; display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; gap: 16px;
    padding: 30px 26px 24px;
  }
  .composer-options-confirm-icon {
    display: grid; place-items: center; width: 72px; height: 72px;
    border-radius: 50%; background: #fff0f1; color: #c92a3b; font-size: 26px;
  }
  .composer-options-confirm-content h2 {
    margin: 0; font-size: clamp(20px, 5vw, 25px); font-weight: 700; line-height: 1.3;
  }
  .composer-options-confirm-content p {
    max-width: 360px; margin: 0; color: #667383; font-size: 15px; line-height: 1.6;
  }
  .composer-options-confirm-actions {
    display: flex; flex: 0 0 auto; align-items: center; gap: 12px;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e6e9ed; background: #fff;
  }
  .composer-options-confirm-actions .btn {
    flex: 1 1 0; min-width: 0; min-height: 48px; border-radius: 10px;
    font-size: 14px; font-weight: 600; white-space: normal;
  }
}
/* The global share-modal .btn rule uses !important on a white background.
   These explicit scoped declarations ensure only destructive actions remain red. */
body #share-post-modal .composer-options-header .composer-options-remove,
body #share-post-modal .composer-options-discard-confirmation .composer-options-discard-accept {
  background: #dc3545 !important; border-color: #dc3545 !important; color: #fff !important;
}
body #share-post-modal .composer-options-header .composer-options-remove:hover,
body #share-post-modal .composer-options-discard-confirmation .composer-options-discard-accept:hover {
  background: #bb2d3b !important; border-color: #b02a37 !important; color: #fff !important;
}
body #share-post-modal .composer-options-header .composer-options-remove:active,
body #share-post-modal .composer-options-discard-confirmation .composer-options-discard-accept:active {
  background: #a52834 !important; border-color: #a52834 !important; color: #fff !important;
}
body #share-post-modal .composer-options-header .composer-options-remove:focus-visible,
body #share-post-modal .composer-options-discard-confirmation .composer-options-discard-accept:focus-visible {
  box-shadow: 0 0 0 3px #f1aeb5 !important;
}

/* Question category is neutral; correct and incorrect answers remain differentiated in the options. */
.badge.question-status.case-status-badge {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  padding: 4px 9px; border: 1px solid #e1e5e9; border-radius: 7px;
  background: #f1f3f5 !important; color: #687482 !important;
  font-size: 12px; font-weight: 600; line-height: 1.35;
  margin-bottom: 12px; /* Space below the category label before question text. */
  box-shadow: none;
}
.badge.question-status.case-status-badge i { color: inherit !important; flex-shrink: 0; }

/* Keep every remove glyph aligned, including dynamically added options. */
#case-options .btn-remove-option { transform: none !important; font-size: 24px !important; }
#case-options .btn-remove-option span { font-size: 24px !important; line-height: 1 !important; }
@media (max-width: 992px) {
  .share-modal-body > #case-options { display: none !important; }
}

.composer-options-preview { display: none; }
@media (max-width: 992px) {
  .composer-options-preview {
    display: block; margin: 16px 0 8px; padding: 14px; min-width: 0;
    border: 1px solid #e0e5eb; border-radius: 12px; background: #f8fafc;
  }
  .composer-options-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
  .composer-options-preview-header strong { font-size: 14px; color: #465567; }
  .composer-options-preview-edit {
    position: static !important; transform: none !important;
    flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 8px;
    border: 0; border-radius: 8px; background: transparent; color: #527da9; font-size: 14px;
  }
  .composer-options-preview-edit:focus-visible { outline: 2px solid #598bc5; outline-offset: 1px; }
  .composer-options-preview-list { list-style: none; margin: 0; padding: 0; }
  .composer-options-preview-list li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 8px 0; }
  .composer-options-preview-letter {
    flex: 0 0 26px; display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%; background: #e9eef4; color: #56677b;
    font-size: 12px; font-weight: 600;
  }
  .composer-options-preview-text { min-width: 0; flex: 1 1 auto; color: #334256; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
  .composer-options-preview-correct { flex: 0 0 auto; margin-top: 3px; color: #43785d; font-size: 11px; }
}

/* One scroll surface and a publish action that stays above Android/iOS keyboards. */
body.modal-open:has(#share-post-modal.composer-mobile-layout:not(.d-none)) #container-feed,
body.modal-open:has(#share-post-modal.composer-mobile-layout:not(.d-none)) #container-profile,
body.modal-open:has(#share-post-modal.composer-mobile-layout:not(.d-none)) #container-search-results,
body.modal-open:has(#share-post-modal.composer-mobile-layout:not(.d-none)) #container-notifications,
body.modal-open:has(#share-post-modal.composer-mobile-layout:not(.d-none)) #container-settings,
body.modal-open:has(#share-post-modal.composer-mobile-layout:not(.d-none)) .navbar-bottom,
body.modal-open:has(#share-post-modal.composer-mobile-layout:not(.d-none)) .header-navbar {
  visibility: hidden !important;
  pointer-events: none !important;
}
#share-post-modal.composer-mobile-layout {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100lvh !important;
  min-height: 100vh !important;
  max-height: none !important;
  padding: 0 !important;
  background: #ffffff !important;
  align-items: stretch !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  /* Allow native swipes through the overlay; the modal body owns scrolling. */
  touch-action: pan-y pinch-zoom;
  transition: none !important;
}
#share-post-modal.composer-mobile-layout::before {
  content: "";
  position: fixed;
  inset: -50vh 0 -50vh 0;
  background: #ffffff;
  pointer-events: none;
  z-index: 0;
}
#share-post-modal.composer-mobile-layout .share-modal {
  position: absolute !important;
  top: var(--composer-top, 0px) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;
  height: var(--composer-height, 100dvh) !important;
  max-height: var(--composer-height, 100dvh) !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
  overflow: hidden !important;
}
#share-post-modal.composer-mobile-layout .share-modal-header {
  flex: 0 0 auto; padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 6px;
  background: #ffffff; z-index: 5;
}
#share-post-modal.composer-mobile-layout .share-modal-header-row {
  display: flex !important; flex-wrap: nowrap; gap: 8px; margin: 0 !important; min-height: 44px;
}
#share-post-modal.composer-mobile-layout .share-modal-close {
  order: 0; flex: 0 0 44px; width: 44px; height: 44px; margin: 0 !important;
  padding: 0; box-shadow: none; font-size: 28px !important;
}
#share-post-modal.composer-mobile-layout .visibility-switch { flex: 1 1 auto; min-width: 0; margin: 0; }
#share-post-modal.composer-mobile-layout #share-post-button {
  flex: 0 0 auto; align-self: center; width: auto !important;
  height: 44px !important; min-height: 44px !important; margin: 0 !important;
  padding: 8px 12px !important; font-size: 14px !important; white-space: nowrap;
}
#share-post-modal.composer-mobile-layout .share-modal-body {
  flex: 1 1 0%; min-height: 0 !important; overflow-y: auto !important; overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch; padding: 8px 16px 28px !important;
  overscroll-behavior-y: contain; scroll-padding-top: 48px; scroll-padding-bottom: 36px;
  touch-action: pan-y; background: #ffffff;
}
#share-post-modal.composer-mobile-layout #share-post-editor,
#share-post-modal.composer-mobile-layout #share-post-input {
  font-size: 16px !important; line-height: 1.5; height: auto !important;
  min-height: 120px; padding-bottom: 28px !important; box-sizing: border-box;
}
#share-post-modal.composer-mobile-layout .share-text-toolbar {
  position: sticky; top: 0; z-index: 4;
  display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding: 4px 0 6px;
  margin: 0 0 8px; background: #ffffff; border: 0; border-bottom: 1px solid #f0f2f5;
}
#share-post-modal.composer-mobile-layout .share-format-btn { flex: 0 0 38px; min-height: 38px; }
#share-post-modal.composer-mobile-layout .share-modal-footer {
  position: static !important; flex: 0 0 auto; display: block !important; margin: 0 !important;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
  background: #ffffff !important; border-top: 1px solid #eef1f5; z-index: 5;
}
#share-post-modal.composer-mobile-layout .share-modal-actions {
  display: grid !important; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: stretch !important; width: 100%; gap: 4px; margin: 0 !important;
}
#share-post-modal.composer-mobile-layout .share-modal-actions .share-action-btn {
  display: flex !important; flex-direction: column; justify-content: center; gap: 4px;
  width: 100%; min-width: 0; min-height: 58px !important; height: auto; margin: 0 !important;
  padding: 6px 2px !important; font-size: 11px !important; line-height: 1.2 !important; white-space: normal;
}
#share-post-modal.composer-mobile-layout .share-modal-actions .share-action-btn i { font-size: 17px; }
#share-post-modal.composer-mobile-layout .share-modal-actions .action-label { font-size: 11px !important; line-height: 1.2; }
#share-post-modal.composer-keyboard-open .share-modal-actions .action-label { display: none; }
#share-post-modal.composer-keyboard-open .share-modal-actions .share-action-btn { min-height: 38px !important; padding: 4px 2px !important; }
#share-post-modal.composer-keyboard-open .share-modal-header { padding-top: 4px; padding-bottom: 4px; }

/* Composer: one scroll surface and stable controls in the visible viewport. */
#share-post-modal:not(.composer-mobile-layout) { padding:24px; background:rgb(15 30 43 / 48%); }
#share-post-modal:not(.composer-mobile-layout) .share-modal {
  display:flex; flex-direction:column; width:min(720px,100%); max-width:720px;
  max-height:min(88dvh,calc(var(--composer-height,100dvh) - 48px));
  border:1px solid #e4eaf0; border-radius:20px; overflow:hidden;
  box-shadow:0 24px 80px rgb(20 42 61 / 22%);
}
#share-post-modal .share-modal-header { border-bottom:1px solid #edf1f5; background:#fff; }
#share-post-modal .share-modal-header,#share-post-modal .share-modal-footer { flex-shrink:0; }
#share-post-modal:not(.composer-mobile-layout) .share-modal-body { min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; padding:20px 24px; }
#share-post-modal:not(.composer-mobile-layout) .share-modal-footer { position:static; border-top:1px solid #edf1f5; background:#fff; }
#share-post-modal .share-modal-close { border-radius:50%; min-width:44px; min-height:44px; }
#share-post-modal .share-action-btn { border-radius:12px; }
#share-post-modal .share-format-btn { border-radius:8px; }
#share-post-modal [contenteditable="true"] { overflow-wrap:anywhere; }
#share-post-modal [aria-busy="true"],#share-post-modal[aria-busy="true"] #share-post-button { cursor:pointer; }
#share-post-modal button:focus-visible { outline:3px solid #99d0dc; outline-offset:3px; }
#share-post-modal.composer-mobile-layout .share-modal-header { box-shadow:0 2px 12px #14354b08; }
#share-post-modal.composer-mobile-layout .share-modal-footer { background:#fff !important; }
#share-post-modal.composer-mobile-layout .share-text-toolbar { scrollbar-width:thin; }
@media (pointer:coarse) {
 .share-modal-overlay,.modal-backdrop { backdrop-filter:none !important; -webkit-backdrop-filter:none !important; }
}
@media (prefers-reduced-motion:reduce) {
 .feed-item,.share-modal,.ranking-detail-item,.arena-restore-skeleton span { animation:none !important; transition:none !important; }
}
#share-post-modal.composer-keyboard-open .share-modal-footer { padding: 4px 8px !important; }
#share-post-modal.composer-keyboard-open #share-post-editor,
#share-post-modal.composer-keyboard-open #share-post-input { min-height: 84px; padding-bottom: 24px !important; }

/* Options use the same compact header while typing; all remaining space scrolls. */
@media (max-width: 992px) {
  .composer-options-header { padding: 6px 12px; min-height: 56px; box-sizing: border-box; gap: 8px; }
  .composer-options-header h2 { flex: 1 1 auto; min-width: 0; font-size: 18px; }
  .composer-options-header .composer-options-done { flex: 0 0 auto; min-width: 88px; min-height: 44px !important; padding: 8px 12px !important; font-size: 14px !important; }
  .composer-options-body { padding: 14px 16px; scroll-padding: 12px; }
  .composer-options-header .composer-options-back { flex-basis: 36px; width: 36px; }
  .composer-options-keyboard-open .composer-options-help { display: none; }
  .composer-options-keyboard-open .composer-options-body { padding-top: 12px; padding-bottom: 16px; }
}

/* On narrow phones keep both header actions together, with discard left of finish. */
@media (max-width: 360px) {
  .composer-options-header { flex-wrap: wrap; }
  .composer-options-header h2 { flex: 1 1 calc(100% - 52px); }
  .composer-options-header .composer-options-remove { margin-left: auto; }
}

/* The formatting bar belongs to the modal frame; only its content scrolls. */
#share-post-modal .share-modal>.share-text-toolbar{position:sticky!important;top:0;flex:0 0 auto;z-index:5;display:flex;align-items:center;gap:6px;margin:0!important;padding:10px 24px!important;border:0;border-bottom:1px solid #e7edf2;border-radius:0!important;background:#fff;box-shadow:0 3px 6px #19354a05;overflow-x:auto;scrollbar-width:thin}
#share-post-modal.composer-mobile-layout .share-modal>.share-text-toolbar{padding:8px 12px!important;gap:5px}
#share-post-modal .share-modal>.share-text-toolbar .share-format-btn{width:38px;height:38px;min-width:38px;border:1px solid #e5edf1;background:#f8fafc;color:#3c5967;box-shadow:none}
#share-post-modal .share-modal>.share-text-toolbar .share-format-btn.active,#share-post-modal .share-modal>.share-text-toolbar .share-format-btn[aria-pressed="true"]{background:#e0f1f4;border-color:#aad5dd;color:#21798c}
.composer-options-preview-list li{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:start;column-gap:10px;row-gap:5px}
.composer-options-preview-list li.is-correct .composer-options-preview-letter{background:#e0f2e9;color:#28734c}
.composer-options-preview-correct{grid-column:2;justify-self:start;display:inline-flex;align-items:center;gap:5px;margin:0;padding:4px 8px;border:1px solid #bfe3cd;border-radius:20px;background:#eaf7ef;color:#28734c;font-size:11px;font-weight:600;line-height:1.2}
/* Search actions share the spacing and typography of preview rows. */
.search-preview-footer{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;width:100%;min-height:54px;padding:16px 20px!important;margin:0;border:0;border-top:1px solid #dfeaf0;border-radius:0 0 14px 14px;background:#f3f9fb;color:#227e91;font-family:inherit;font-weight:600;font-size:14px;line-height:1.5;text-align:center;cursor:pointer}
.search-preview-footer:hover{background:#e7f3f7;color:#185e70}.search-preview-footer:focus-visible{outline:3px solid #8dc5d2;outline-offset:-3px}.search-preview-footer strong{overflow-wrap:anywhere}

/* PDF thumbnail must not capture Android/iOS vertical swipes. */
#share-post-modal .document-preview-pdf,
#share-post-modal .doc-preview-canvas-wrap,
#share-post-modal .doc-preview-canvas {
  touch-action: pan-y;
}

/* TEMPORARY: Facebook sign-in is withheld until mobile OAuth and avatar issues are resolved. */
#btn-facebook-login, #btn-facebook-login.btn-facebook { display: none !important; visibility: hidden !important; }


/* Media previews share the composer's scroll surface. Mixing hidden/visible
   overflow creates a nested scrolling box which consumes wheel gestures. */
#share-post-modal #image-preview {
  overflow: visible !important;
}
#share-post-modal #video-preview {
  overflow: clip !important;
}

/* Mural content filters and flashcards use LinkMedMe's petrol-blue palette on desktop and mobile. */
.feed-content-filter{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;margin:0 0 12px;padding:8px;background:var(--card-bg,#fff);border:1px solid #dce9ec;border-radius:12px;min-width:0;overflow-x:auto;scrollbar-width:none}
.feed-content-filter::-webkit-scrollbar{display:none}
.feed-content-filter button{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:1 1 auto;min-width:0;min-height:42px;padding:8px 10px;border:1px solid #b9d2d9;border-radius:20px;background:#f3f9fa;color:#337c8c;font:inherit;font-size:13.5px;font-weight:600;white-space:nowrap;cursor:pointer;touch-action:manipulation}
.feed-content-filter button i{flex:none;color:inherit!important;pointer-events:none;transition:none!important;filter:none!important;transform:none!important}
.feed-content-filter button:hover:not(:disabled){background:#e5f2f5;border-color:#438694}
.feed-content-filter button[aria-pressed="true"],.feed-content-filter button[aria-pressed="true"]:hover{background:#337c8c;color:#fff;border-color:#337c8c}
.feed-content-filter button:focus-visible{outline:2px solid #337c8c;outline-offset:2px}
.feed-content-filter button:disabled{cursor:pointer;opacity:.7}
.flashcard-category-field{display:flex;flex-direction:column;gap:7px;width:100%;margin:8px 0 10px;font-size:14px;color:inherit}
.flashcard-category-field[hidden]{display:none!important}
.flashcard-category-trigger{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:10px 12px;border:1px solid #b9d2d9;border-radius:10px;background:var(--card-bg,#fff);color:#337c8c;font:inherit;font-size:15px;text-align:left;cursor:pointer;touch-action:manipulation}
.flashcard-category-trigger i{flex:none;color:inherit!important;pointer-events:none}
.flashcard-category-trigger:hover{background:#eff7f8;border-color:#438694}
.flashcard-category-trigger.is-selected{border-color:#438694;background:#f3f9fa}
.flashcard-category-trigger:focus-visible{outline:2px solid #337c8c;outline-offset:2px}
.flashcard-category-badge{display:inline-flex;align-items:center;gap:6px;max-width:100%;margin:0 0 10px;padding:4px 10px;border:1px solid #d2e4e8;border-radius:999px;background:#e9f3f5;color:#337c8c;white-space:normal;font-family:inherit;font-size:.78rem;font-weight:600;line-height:1.3;text-align:left;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}
.flashcard-category-badge:hover{background:#dcedf1;border-color:#9dc8d1}
.flashcard-category-badge:focus-visible{outline:2px solid #337c8c;outline-offset:2px}
.badge-crm-verified{display:inline-flex;align-items:center;justify-content:center;flex:none;width:20px;height:20px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;color:#146444;font-size:17px;line-height:1;vertical-align:-3px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.badge-crm-verified:hover{background:transparent;color:#0f5537}
.badge-crm-verified:focus-visible{outline:2px solid #9dd0d4;outline-offset:2px}
.badge-crm-verified i,.card .badge-crm-verified i{color:inherit!important}
.feed-item .flashcard-category-badge i,.feed-item:hover .flashcard-category-badge i,.feed-item .flashcard-category-badge:hover i{flex:none;color:#337c8c!important;filter:none!important;transition:none!important;transform:none!important;pointer-events:none}
#feed-type-empty{text-align:center;padding:20px;color:#667}

/* Eye preferences button in Mural filter bar */
.feed-content-filter .feed-preferences-trigger{flex:0 0 42px;min-width:42px;width:42px;min-height:42px;padding:8px;margin-left:0}
.feed-content-filter .feed-preferences-trigger.has-active-preferences{background:#e5f2f5;border-color:#337c8c;color:#216473}
@media (max-width: 768px){
  .feed-content-filter .feed-filter-label{display:none!important}
  .feed-content-filter button{gap:0;padding:8px 10px;font-size:0}
  .feed-content-filter button i{font-size:15px}
  .feed-content-filter .feed-preferences-trigger{flex:1 1 auto;width:auto;min-width:0}
}

/* Welcome Modal with mandatory category tags */
body .img-modal-overlay:has(.img-modal--with-tags),body .img-modal-overlay:has(.img-modal-with-tags){overflow:hidden!important}
body .img-modal.img-modal-with-tags,body .img-modal.img-modal--with-tags{width:min(640px,calc(100vw - 24px))!important;max-width:640px!important;max-height:calc(100dvh - 32px)!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;align-items:stretch!important}
body .img-modal.img-modal-with-tags .img-modal-title,body .img-modal.img-modal--with-tags .img-modal-title{flex:0 0 auto;margin:0 0 10px!important;text-align:center}
body .img-modal.img-modal-with-tags .img-modal-image,body .img-modal.img-modal--with-tags .img-modal-image{flex:0 0 auto;width:100%;max-height:175px;overflow:hidden;border-radius:12px;margin:0 0 10px!important}
body .img-modal.img-modal-with-tags .img-modal-image img,body .img-modal.img-modal--with-tags .img-modal-image img{width:100%;max-height:175px;object-fit:cover;display:block;border-radius:12px}
body .img-modal.img-modal-with-tags .img-modal-description,body .img-modal.img-modal--with-tags .img-modal-description{flex:0 0 auto;font-size:.9rem;line-height:1.45;color:#64748b;margin:0 0 10px!important;text-align:left}
.welcome-tags-section{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;width:100%;margin:0 0 14px;text-align:left;overflow:hidden}
.welcome-tags-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;gap:8px;flex-wrap:wrap}
.welcome-tags-title{margin:0;font-size:.96rem;font-weight:600;color:#1e293b}
.welcome-tags-counter{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:.8rem;font-weight:600;background:#e9f5f7;color:#337c8c;border:1px solid #b9d2d9}
.welcome-tags-counter.is-ready,.welcome-tags-counter.is-complete{background:#d9eff2;color:#1d5966;border-color:#337c8c}
.welcome-tags-grid{flex:1 1 auto;min-height:96px;max-height:195px;overflow-y:auto;overflow-x:hidden;padding:10px;border:1px solid #dce9ec;border-radius:12px;background:#f8fbfc}
.welcome-tags-error{flex:0 0 auto;margin:6px 0 0;color:#dc2626;font-size:.84rem;font-weight:600;text-align:center}
@media (max-width: 768px){
  body .img-modal-overlay,body .img-modal-overlay:has(.img-modal--with-tags),body .img-modal-overlay:has(.img-modal-with-tags){padding:0!important;align-items:stretch!important;justify-content:stretch!important}
  body .img-modal,body .img-modal.img-modal-with-tags,body .img-modal.img-modal--with-tags{width:100vw!important;max-width:100vw!important;height:100vh!important;height:100dvh!important;max-height:100vh!important;max-height:100dvh!important;margin:0!important;padding:calc(16px + env(safe-area-inset-top,0px)) 16px calc(16px + env(safe-area-inset-bottom,0px))!important;border-radius:0!important;border:0!important;box-shadow:none!important;display:flex!important;flex-direction:column!important}
  body .img-modal.img-modal-with-tags .img-modal-image,body .img-modal.img-modal--with-tags .img-modal-image{max-height:150px!important}
  body .img-modal.img-modal-with-tags .img-modal-image img,body .img-modal.img-modal--with-tags .img-modal-image img{max-height:150px!important}
  .welcome-tags-section{flex:1 1 0%!important;min-height:120px!important;margin:0 0 12px!important}
  .welcome-tags-grid{flex:1 1 0%!important;max-height:none!important;min-height:100px!important}
  body .img-modal .img-modal-btn,body .img-modal.img-modal-with-tags .img-modal-btn,body .img-modal.img-modal--with-tags .img-modal-btn{width:100%;min-height:44px;margin-top:auto}
}

/* Shared Arena-style multi-select chips inside Welcome Modal & Mural Preferences Modal */
:is(.img-modal, .feed-prefs-modal) .arena-year-multi-grid{display:flex;flex-wrap:wrap;align-content:flex-start;gap:.5rem}
:is(.img-modal, .feed-prefs-modal) .arena-year-chip{display:inline-flex;align-items:center;cursor:pointer;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
:is(.img-modal, .feed-prefs-modal) .arena-year-chip input[type="checkbox"]{display:none}
:is(.img-modal, .feed-prefs-modal) .arena-year-chip span,:is(.img-modal, .feed-prefs-modal) .arena-year-chip:hover span,:is(.img-modal, .feed-prefs-modal) .arena-year-chip:focus-within span,:is(.img-modal, .feed-prefs-modal) .arena-year-chip input[type="checkbox"]:not(:checked)+span{display:inline-flex;align-items:center;gap:.35rem;padding:.45rem .95rem;border-radius:20px;background:#fff;border:1.5px solid #cbd5e1;color:#475569;font-size:.85rem;font-weight:500;box-shadow:none;transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease;user-select:none}
:is(.img-modal, .feed-prefs-modal) .arena-year-chip input[type="checkbox"]:checked+span,:is(.img-modal, .feed-prefs-modal) .arena-year-chip:hover input[type="checkbox"]:checked+span,:is(.img-modal, .feed-prefs-modal) .arena-year-chip.is-selected span{background:#d9eff2;border-color:#337c8c;color:#1d5966;font-weight:500;box-shadow:0 0 8px rgba(51,124,140,.18)}

/* Mural Preferences Modal (Eye Trigger) */
.feed-prefs-modal-overlay{position:fixed;inset:0;z-index:16000;background:var(--linkmedme-modal-backdrop,rgba(15,23,42,.55));display:flex;align-items:center;justify-content:center;padding:16px;opacity:0;transition:opacity .18s ease;overflow:hidden}
.feed-prefs-modal-overlay.show{opacity:1}
.feed-prefs-modal{width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 32px);background:#fff;color:#1a212a;border:1px solid var(--linkmedme-modal-border,#dce9ec);border-radius:16px;box-shadow:0 16px 48px rgba(26,33,42,.18);display:flex;flex-direction:column;overflow:hidden}
.feed-prefs-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e2e8f0}
.feed-prefs-title{margin:0;font-size:1.15rem;font-weight:600;color:#1a212a;display:flex;align-items:center;gap:8px}
.feed-prefs-title i{color:#337c8c}
.feed-prefs-close{width:38px;height:38px;min-width:38px;min-height:38px;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#f1f5f9;border:0;font-size:1.5rem;line-height:1;color:#334155;cursor:pointer;transition:background-color .15s ease}
.feed-prefs-close:hover{background:#e2e8f0;color:#0f172a}
.feed-prefs-body{flex:1 1 0%;min-height:0;padding:18px 20px;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:16px}
.feed-prefs-section{flex:0 0 auto;display:flex;flex-direction:column;gap:8px}
.feed-prefs-section:first-child{flex:1 1 0%;min-height:140px;overflow:hidden}
.feed-prefs-section-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.feed-prefs-section-title{margin:0;font-size:.98rem;font-weight:600;color:#1e293b}
.feed-prefs-counter{font-size:.8rem;font-weight:600;color:#337c8c;background:#e9f5f7;padding:3px 10px;border-radius:999px;border:1px solid #b9d2d9}
.feed-prefs-hint{flex:0 0 auto;margin:0;font-size:.85rem;color:#64748b;line-height:1.45}
.feed-prefs-tags-grid{flex:1 1 0%;min-height:90px;max-height:220px;overflow-y:auto;overflow-x:hidden;padding:10px;border:1px solid #dce9ec;border-radius:12px;background:#f8fbfc}
.feed-prefs-hide-grid{flex:0 0 auto;padding:10px;border:1px solid #dce9ec;border-radius:12px;background:#f8fbfc}
.feed-prefs-error{flex:0 0 auto;margin:0;color:#dc2626;font-size:.85rem;font-weight:500}
.feed-prefs-footer{flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid #e2e8f0;background:#f8fafc}
.feed-prefs-btn-cancel,.feed-prefs-btn-save{min-height:42px;padding:8px 16px;border-radius:10px;font-size:.95rem;font-weight:600;cursor:pointer;transition:background-color .15s ease}
.feed-prefs-btn-cancel{background:#fff;border:1px solid #cbd5e1;color:#475569}
.feed-prefs-btn-cancel:hover:not(:disabled){background:#f1f5f9}
.feed-prefs-btn-save{background:#337c8c;border:1px solid #337c8c;color:#fff}
.feed-prefs-btn-save:hover:not(:disabled){background:#286370}
.feed-prefs-btn-save:disabled,.feed-prefs-btn-cancel:disabled{opacity:.6;cursor:not-allowed}
@media (max-width: 768px){
  .feed-prefs-modal-overlay{padding:0}
  .feed-prefs-modal{width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;border-radius:0;border:0;box-shadow:none}
  .feed-prefs-header{padding:calc(14px + env(safe-area-inset-top,0px)) 16px 14px}
  .feed-prefs-body{padding:14px 16px;gap:14px}
  .feed-prefs-section:first-child{min-height:120px}
  .feed-prefs-tags-grid{max-height:none;min-height:80px}
  .feed-prefs-footer{padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px))}
}




/* Medical, baby, face and symbol emoji picker for the publication composer. */
#share-post-modal .share-modal { position: relative; }
#share-post-modal .share-emoji-toggle {
  flex: 0 0 38px; width: 38px; height: 38px; min-width: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #e5edf1; border-radius: 8px; padding: 0;
  background: #f8fafc; color: #3c5967; font-size: 21px; box-shadow: none;
  cursor: pointer; touch-action: manipulation;
}
#share-post-modal .share-emoji-toggle:hover,
#share-post-modal .share-emoji-toggle[aria-expanded="true"] { background: #e0f1f4; border-color: #aad5dd; color: #21798c; }
#share-post-modal .share-emoji-toggle:focus-visible,
#share-post-modal .share-emoji-picker button:focus-visible,
#share-post-modal .share-emoji-search:focus-visible { outline: 2px solid #21889c; outline-offset: 2px; }
#share-post-modal .share-emoji-picker {
  position: absolute; z-index: 30; right: 12px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 8px;
  width: min(350px, calc(100% - 24px)); padding: 12px;
  background: #fff; border: 1px solid #dae8ed; border-radius: 14px;
  box-shadow: 0 16px 42px #102e3b26; overflow: hidden;
  color: #233e49; font-size: 13px;
}
#share-post-modal .share-emoji-picker[hidden] { display: none !important; }
#share-post-modal .share-emoji-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
#share-post-modal .share-emoji-close { width: 30px; height: 30px; border: 0; border-radius: 8px; background: #f2f6f8; color: #526c77; font-size: 22px; line-height: 1; cursor: pointer; }
#share-post-modal .share-emoji-search { display: block; flex: 0 0 auto; box-sizing: border-box; width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid #dce6eb; border-radius: 9px; background: #fff; color: #263f4c; font: inherit; font-size: 14px; }
#share-post-modal .share-emoji-categories { display: flex; flex: 0 0 auto; gap: 5px; overflow-x: auto; padding: 1px 0 5px; scrollbar-width: thin; }
#share-post-modal .share-emoji-category { flex: 0 0 auto; border: 1px solid #dfebef; border-radius: 999px; padding: 5px 9px; background: #f7fafb; color: #51717f; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
#share-post-modal .share-emoji-category[aria-pressed="true"] { color: #1a7789; background: #e3f3f5; border-color: #a9d7de; font-weight: 600; }
#share-post-modal .share-emoji-grid { display: grid; flex: 1 1 auto; min-height: 0; align-content: start; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2px; }
#share-post-modal .share-emoji-item { display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 42px; padding: 2px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif; font-size: 24px; line-height: 1.2; touch-action: manipulation; }
#share-post-modal .share-emoji-item:hover, #share-post-modal .share-emoji-item:focus-visible { background: #eaf5f7; }
#share-post-modal .share-emoji-empty { grid-column: 1/-1; margin: 8px 4px; color: #657e87; }
@media (max-width: 480px) {
  #share-post-modal .share-emoji-picker { right: 8px; width: calc(100% - 16px); padding: 10px; border-radius: 12px; }
  #share-post-modal .share-emoji-grid { grid-template-columns: repeat(7,minmax(0,1fr)); gap: 2px; }
  #share-post-modal .share-emoji-item { min-height: 40px; font-size: 23px; }
}


/* Categoria permanece disponivel ao lado do seletor de emojis. */
#share-post-modal .share-category-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  flex: 0 0 auto; min-height: 38px; padding: 0 10px;
  border: 1px solid #e5edf1; border-radius: 8px;
  background: #f8fafc; color: #3c5967;
  font: inherit; font-size: 13px; font-weight: 600;
  white-space: nowrap; box-shadow: none; cursor: pointer; touch-action: manipulation;
}
#share-post-modal .share-category-toggle:hover,
#share-post-modal .share-category-toggle[aria-pressed="true"] {
  background: #e0f1f4; border-color: #aad5dd; color: #21798c;
}
#share-post-modal .share-category-toggle:focus-visible {
  outline: 2px solid #21889c; outline-offset: 2px;
}
/* X centralizado, mesmo desenho no desktop e celular. */
#share-post-modal .share-modal-header .share-modal-close {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 40px; width: 40px; min-width: 40px;
  height: 40px; min-height: 40px; padding: 0; margin: 0 !important;
  border: 1px solid #e2e7ed; border-radius: 50%;
  background: #f3f5f7; color: #4b5563;
  box-shadow: none; font-size: 18px !important; line-height: 1;
  transition: background-color .15s ease, border-color .15s ease;
}
#share-post-modal .share-modal-header .share-modal-close:hover {
  background: #e7eff2; border-color: #c8d9df; color: #315f6c;
}
#share-post-modal .share-modal-header .share-modal-close:focus-visible {
  outline: 2px solid #21889c; outline-offset: 2px;
}
@media (max-width: 576px) {
  #share-post-modal .share-category-toggle {
    flex: 0 0 38px; width: 38px; min-width: 38px;
    padding: 0; font-size: 16px;
  }
  #share-post-modal .share-category-toggle .action-label { display: none; }
  #share-post-modal .share-modal-header .share-modal-close {
    flex: 0 0 44px; width: 44px; min-width: 44px;
    height: 44px; min-height: 44px;
  }
}

/* Category uses the same square control as the formatting toolbar. */
#share-post-modal .share-modal > .share-text-toolbar .share-category-toggle {
  flex: 0 0 38px; width: 38px; min-width: 38px; height: 38px;
  min-height: 38px; padding: 0; font-size: 16px; border-radius: 8px;
}
#share-post-modal #btn-select-category i { margin: 0; }
/* O estetoscópio (Clínica Médica) tem cor global própria; no seletor de categoria
   ele segue a cor do botão, como os ícones das outras categorias. */
#share-post-modal .share-category-toggle i.fa-stethoscope,
#share-post-modal .share-category-toggle i.fa-stethoscope:hover {
  color: inherit !important;
}
#share-post-modal #btn-select-category .action-label { display: none; }
#share-post-modal .share-emoji-heading { flex: 0 0 auto; }
#share-post-modal .share-emoji-grid {
  overflow-x: hidden; touch-action: pan-y;
  scrollbar-width: thin; scrollbar-color: #a9cbd3 transparent;
}
#share-post-modal .share-emoji-grid::-webkit-scrollbar { width: 5px; }
#share-post-modal .share-emoji-grid::-webkit-scrollbar-thumb { background: #a9cbd3; border-radius: 5px; }
@media (max-width: 576px), (pointer: coarse) {
  #share-post-modal .share-emoji-categories { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
}
.category-clear-choice { width: 100%; font: inherit; color: inherit; background: #f8fafc; cursor: pointer; }
/* Formatting controls share one state and fit the smallest supported phones. */
#share-post-modal .share-modal > .share-text-toolbar{
  scrollbar-width:none!important;-ms-overflow-style:none;overflow-y:hidden;
}
#share-post-modal .share-modal > .share-text-toolbar::-webkit-scrollbar{display:none;width:0;height:0}
#share-post-modal .share-modal > .share-text-toolbar > button{
  flex:0 0 38px;width:38px;min-width:38px;height:38px;min-height:38px;
  display:inline-flex;align-items:center;justify-content:center;padding:0;
  border:1px solid #e5edf1;border-radius:8px;background:#f8fafc;color:#3c5967;
  transform:none!important;box-shadow:none;transition:background-color .15s,border-color .15s,color .15s;
}
@media(hover:hover){
  #share-post-modal .share-modal > .share-text-toolbar > button:hover,
  #share-post-modal .share-action-btn:hover{
    background:#e0f1f4!important;border-color:#aad5dd!important;color:#21798c!important;transform:none!important;
  }
}
#share-post-modal .share-modal > .share-text-toolbar > button:is(.active,[aria-pressed="true"]){background:#e0f1f4;border-color:#aad5dd;color:#21798c}
@media(max-width:420px){
  #share-post-modal.composer-mobile-layout .share-modal > .share-text-toolbar{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px!important;padding:8px!important;overflow-x:hidden!important}
  #share-post-modal.composer-mobile-layout .share-modal > .share-text-toolbar > button{width:100%!important;min-width:0!important;max-width:100%;font-size:15px;flex-basis:auto}
}
@media(max-width:992px){
  body #share-post-modal .composer-options-header{display:flex;align-items:center;flex-wrap:nowrap!important;gap:6px;padding:8px!important}
  body #share-post-modal .composer-options-header h2{flex:1 1 auto!important;min-width:0;font-size:17px;white-space:nowrap}
  body #share-post-modal .composer-options-header .composer-options-back{width:30px;min-width:30px;flex:0 0 30px}
  body #share-post-modal .composer-options-header .composer-options-remove{flex:0 0 38px;width:38px;min-width:38px;height:42px;min-height:42px!important;padding:8px!important;margin:0}
  body #share-post-modal .composer-options-header .composer-options-done{flex:0 0 auto;min-width:76px;min-height:42px!important;padding:8px!important;font-size:14px!important}
}
.search-flashcard-filter-bar{flex-wrap:wrap;min-width:0}
.search-flashcard-filter-bar .search-inline-filter-input{flex:1 1 230px;min-width:0;max-width:100%;box-sizing:border-box}
.feed-video-sound-choice{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
.feed-video-sound-choice input{width:20px;height:20px;accent-color:#2b7e8c}
.publication-category-badge{display:inline-flex;align-items:center;gap:6px;max-width:100%;white-space:normal;background:#eef7f8;color:#286c79;border:1px solid #c7e2e7;padding:6px 10px;margin:4px 0 12px}
/* Replies keep usable text space even at the deepest nesting on a phone. */
@media(max-width:576px){
  body .feed-item .comment-area .reply-box .comment-box{display:flex;gap:6px!important;width:100%;min-width:0}
  body .feed-item .comment-area .reply-box .comment-box > .comment-avatar{display:none}
  body .feed-item .comment-area .reply-box .comment-box > .flex-grow-1{min-width:0;width:100%}
  body .feed-item .comment-area .reply-box .input-wrapper{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
  body .shared-post-item.feed-item .comment-area .reply-box textarea.reply-input{width:100%;min-width:0;min-height:76px;max-height:220px;overflow-y:auto;font-size:16px!important;line-height:1.5;padding:10px 12px!important;box-sizing:border-box;scroll-margin:90px 0 120px}
  body .feed-item .comment-area .reply-box .reply-send-btn{position:static!important;transform:none!important;min-height:40px;margin-left:auto;padding:8px 14px}
  body .feed-item .comment-area .comment-children{margin-left:10px!important;padding-left:6px!important;min-width:0}
}


/* Compact mural preferences without changing the modal's height. */
.feed-prefs-body{gap:10px;padding:12px 18px}
.feed-prefs-section{gap:5px}
.feed-prefs-section:first-child{min-height:166px}
.feed-prefs-hint{font-size:.78rem;line-height:1.3}
.feed-prefs-tags-filter{flex:0 0 auto;width:100%;min-height:36px;padding:7px 12px;border:1px solid #b9d3d9;border-radius:9px;background:#fff;color:#193647;font:inherit;font-size:.86rem;outline-offset:2px}
.feed-prefs-tags-filter:focus-visible{outline:2px solid #2c8191}
.feed-prefs-tags-grid{min-height:124px;max-height:none;padding:8px;gap:5px!important;align-content:start}
.feed-prefs-modal .arena-year-chip span{padding:7px 10px!important;font-size:.8rem;line-height:1.15;min-height:32px}
.feed-prefs-tags-grid .arena-year-chip[hidden]{display:none!important}
.feed-prefs-filter-empty{color:#566e7d;font-size:.82rem;text-align:center;margin:4px 0 8px;padding:10px}
.feed-prefs-filter-empty[hidden]{display:none}
.feed-prefs-hide-grid{padding:7px;gap:6px!important}
.feed-prefs-footer{padding:10px 16px}
.feed-video-sound-choice{gap:9px;min-height:34px;font-size:.86rem}
.feed-video-sound-choice input[type="checkbox"]{appearance:none;-webkit-appearance:none;position:relative;flex:none;width:19px;height:19px;margin:0;border:2px solid #428c9b;border-radius:5px;background:#fff;cursor:pointer}
.feed-video-sound-choice input[type="checkbox"]:checked{background:#2e8190;border-color:#2e8190}
.feed-video-sound-choice input[type="checkbox"]:checked::after{content:"";position:absolute;left:4px;top:0px;width:6px;height:11px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.feed-video-sound-choice input[type="checkbox"]:focus-visible{outline:3px solid #a4d6df;outline-offset:3px}
.feed-video-prefs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.feed-video-prefs-group{display:flex;flex-direction:column;gap:4px;min-width:0;padding:10px 12px;border:1px solid #d8e7eb;border-radius:12px;background:#f8fbfc}
.feed-video-prefs-group-title{display:flex;align-items:center;gap:7px;margin-bottom:2px;font-size:.84rem;font-weight:700;color:#1d4e5a;line-height:1.25}
.feed-video-prefs-group-title i{flex:none;color:#2e8190;font-size:.86rem}
.feed-video-prefs-group .feed-video-sound-choice{min-height:32px;line-height:1.3;margin:0}
.feed-video-prefs-group .feed-video-sound-choice span{min-width:0;overflow-wrap:break-word}
.feed-video-prefs-group .feed-prefs-hint{margin-top:3px}
#container-configuracoes-usuario .profile-preferences-skel-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#container-configuracoes-usuario .profile-preferences-skel-video-box{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid #e8edf0;border-radius:12px;background:#fafcfd}
@media(max-width:600px){.feed-video-prefs-grid,#container-configuracoes-usuario .profile-preferences-skel-video-grid{grid-template-columns:1fr}.feed-video-prefs-group .feed-video-sound-choice{min-height:38px}}
@media(max-width:768px){.feed-prefs-body{padding:12px 14px;gap:9px}.feed-prefs-tags-grid{min-height:130px}.feed-prefs-modal .arena-year-chip span{min-height:34px}}


/* Mobile composer: 8 formatting actions + divider stay on one horizontal row. */
@media (max-width: 768px) {
  #share-post-modal.composer-mobile-layout .share-modal > .share-text-toolbar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    padding: 7px 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
  }
  #share-post-modal.composer-mobile-layout .share-modal > .share-text-toolbar > button {
    box-sizing: border-box;
    flex: 0 0 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #share-post-modal.composer-mobile-layout .share-modal > .share-text-toolbar > .share-toolbar-divider {
    flex: 0 0 1px !important;
    width: 1px !important;
    height: 28px !important;
    margin: 0 !important;
  }
}
/* Mural chips: hover/selection changes color only, never geometry or font metrics. */
.feed-prefs-modal :is(.feed-prefs-tags-grid,.feed-prefs-hide-grid) > .arena-year-chip {
  flex: 0 0 auto !important;
  max-width: 100%;
  transform: none !important;
  transition: none !important;
}
.feed-prefs-modal :is(.feed-prefs-tags-grid,.feed-prefs-hide-grid) > .arena-year-chip > span,
.feed-prefs-modal :is(.feed-prefs-tags-grid,.feed-prefs-hide-grid) > .arena-year-chip:hover > span,
.feed-prefs-modal :is(.feed-prefs-tags-grid,.feed-prefs-hide-grid) > .arena-year-chip:focus-within > span,
.feed-prefs-modal :is(.feed-prefs-tags-grid,.feed-prefs-hide-grid) > .arena-year-chip input[type="checkbox"]:checked + span {
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  padding: 7px 10px !important;
  border-width: 1.5px !important;
  font-size: .8rem !important;
  font-weight: 500 !important;
  font-stretch: normal !important;
  letter-spacing: 0 !important;
  line-height: 1.15 !important;
  min-height: 32px;
  transform: none !important;
  transition: background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease !important;
  white-space: nowrap;
}

/* UI consistency 20261103 */

/* A compact welcome selector; only its tag area scrolls. */
body .img-modal.img-modal--with-tags .img-modal-image,
body .img-modal.img-modal--with-tags .img-modal-image img { max-height:120px!important; }
body .img-modal.img-modal--with-tags .img-modal-description { font-size:.86rem;line-height:1.4; }
body .img-modal .welcome-tags-section { gap:7px; }
body .img-modal .welcome-tags-header { margin:0;gap:6px; }
body .img-modal .welcome-tags-title { font-size:.88rem; }
body .img-modal .welcome-tags-counter { font-size:.75rem;padding:3px 8px; }
body .img-modal .welcome-tags-filter {
  flex:0 0 auto;width:100%;min-width:0;box-sizing:border-box;min-height:36px;
  padding:7px 11px;border:1px solid #c8dce2;border-radius:9px;
  font:inherit;font-size:.88rem;background:#fff;color:#284e5c;
}
body .img-modal .welcome-tags-filter:focus-visible { outline:2px solid #338799;outline-offset:1px; }
body .img-modal .welcome-tags-grid { gap:6px;padding:9px; }
body .img-modal .welcome-tags-grid .arena-year-chip { position:relative; }
body .img-modal .welcome-tags-grid .arena-year-chip[hidden] { display:none!important; }
body .img-modal .welcome-tags-grid .arena-year-chip span {
  min-height:32px;box-sizing:border-box!important;padding:5px 11px!important;font-size:.8rem!important;font-weight:500!important;
  line-height:1.3!important;border-width:1.5px!important;transform:none!important;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease!important;
}
body .img-modal .welcome-tags-grid .arena-year-chip input[type="checkbox"] {
  display:block!important;position:absolute;width:1px;height:1px;opacity:0;margin:0;
}
body .img-modal .welcome-tags-grid .arena-year-chip:focus-within span {
  outline:2px solid #338799;outline-offset:2px;
}
@media(hover:hover) {
  body .img-modal .welcome-tags-grid .arena-year-chip:hover span {
    background:#eaf5f7;border-color:#8ebdc7;color:#245e6d;
  }
  body .img-modal .welcome-tags-grid .arena-year-chip:hover input:checked+span {
    background:#cee9ee;border-color:#337c8c;color:#1d5966;
  }
}
body .img-modal .welcome-tags-empty { flex:0 0 auto;margin:0;color:#667b85;font-size:.84rem;text-align:center; }
@media(max-width:768px) {
  body .img-modal--bottom-action .img-modal-description { text-align:justify!important;text-justify:inter-word; }
  body .img-modal .welcome-tags-filter { font-size:16px;min-height:40px; }
  body .img-modal .welcome-tags-grid .arena-year-chip span { min-height:38px; }
}

/* Padrao uniforme de botao fechar (X): visual estilo_correto preservando o tamanho natural de cada modal. */
:root { --lmm-close-bg:#f3f5f7;--lmm-close-border:#e2e7ed;--lmm-close-color:#4b5563;--lmm-close-hover-bg:#e7eff2;--lmm-close-hover-border:#c8d9df;--lmm-close-hover-color:#315f6c; }
html[data-theme="dark"] { --lmm-close-bg:#1e2f3d;--lmm-close-border:#2d4354;--lmm-close-color:#c8dae5;--lmm-close-hover-bg:#293f50;--lmm-close-hover-border:#3b586e;--lmm-close-hover-color:#eef6fa; }
body :is(.share-modal-close,.img-modal-close,.feed-prefs-close,.gamification-close,
 .gamification-fullscreen-close,.notification-publication-modal-close,.community-close,
 .arena-modal-close,.arena-edit-modal-close,.store-modal-close,.doc-fullscreen-close,
 .post-image-close,.share-emoji-close,.terms-close-x,.pix-close-btn,.close-btn,
 .close-modal-btn,.swal2-close,.toast-close,.toast-publication-close,.ollama-close,
 .btn-close,.ranking-modal-close,.preview-close,#mini-chat-close-btn,#close-user-config-modal,#close-part-details,.btn-close-details,
 .profile-filter-close,.lm-lang-confirm-close,.lm-public-links-close,.lm-connections-close),
body #share-post-modal .share-modal-header .share-modal-close,
body .notification-publication-modal .notification-publication-modal-header-actions .notification-publication-modal-close {
  box-sizing:border-box;border:1px solid var(--lmm-close-border)!important;border-radius:50%!important;
  background-color:var(--lmm-close-bg)!important;color:var(--lmm-close-color)!important;
  box-shadow:none!important;text-shadow:none!important;opacity:1!important;filter:none!important;
  cursor:pointer!important;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease!important;
}
body :is(.share-modal-close,.img-modal-close,.feed-prefs-close,.gamification-close,
 .gamification-fullscreen-close,.notification-publication-modal-close,.community-close,
 .arena-modal-close,.arena-edit-modal-close,.store-modal-close,.doc-fullscreen-close,
 .post-image-close,.share-emoji-close,.terms-close-x,.pix-close-btn,.close-btn,
 .close-modal-btn,.swal2-close,.toast-close,.toast-publication-close,.ollama-close,
 .btn-close,.ranking-modal-close,.preview-close,#mini-chat-close-btn,#close-user-config-modal,#close-part-details,.btn-close-details,
 .profile-filter-close,.lm-lang-confirm-close,.lm-public-links-close,.lm-connections-close):hover,
body #share-post-modal .share-modal-header .share-modal-close:hover,
body .notification-publication-modal .notification-publication-modal-header-actions .notification-publication-modal-close:hover {
  background-color:var(--lmm-close-hover-bg)!important;border-color:var(--lmm-close-hover-border)!important;color:var(--lmm-close-hover-color)!important;
}
body :is(.share-modal-close,.img-modal-close,.feed-prefs-close,.gamification-close,
 .gamification-fullscreen-close,.community-close,
 .arena-modal-close,.arena-edit-modal-close,.store-modal-close,.doc-fullscreen-close,
 .post-image-close,.share-emoji-close,.terms-close-x,.pix-close-btn,.close-btn,
 .close-modal-btn,.swal2-close,.toast-close,.toast-publication-close,.ollama-close,
 .btn-close,.ranking-modal-close,.preview-close,#mini-chat-close-btn,#close-user-config-modal,#close-part-details,.btn-close-details,
 .profile-filter-close,.lm-lang-confirm-close,.lm-public-links-close,.lm-connections-close):is(*,:hover) {
  transform:none!important;
}
body :is(.img-modal-close,.gamification-close,.profile-filter-close,.lm-lang-confirm-close,.lm-public-links-close,.lm-connections-close) svg path { stroke:var(--lmm-close-color)!important;transition:stroke .16s ease; }
body :is(.img-modal-close,.gamification-close,.profile-filter-close,.lm-lang-confirm-close,.lm-public-links-close,.lm-connections-close):hover svg path { stroke:var(--lmm-close-hover-color)!important; }
body :is(.share-modal-close,.feed-prefs-close,.notification-publication-modal-close,.community-close,
 .arena-modal-close,.arena-edit-modal-close,.store-modal-close,.doc-fullscreen-close,
 .post-image-close,.pix-close-btn,#close-user-config-modal,.btn-close-details,.profile-filter-close,.lm-lang-confirm-close,.lm-public-links-close,.lm-connections-close) i { color:var(--lmm-close-color)!important;transition:color .16s ease; }
body :is(.share-modal-close,.feed-prefs-close,.notification-publication-modal-close,.community-close,
 .arena-modal-close,.arena-edit-modal-close,.store-modal-close,.doc-fullscreen-close,
 .post-image-close,.pix-close-btn,#close-user-config-modal,.btn-close-details,.profile-filter-close,.lm-lang-confirm-close,.lm-public-links-close,.lm-connections-close):hover i { color:var(--lmm-close-hover-color)!important; }
body .btn-close { background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%234b5563'%20stroke-width%3D'2.5'%20stroke-linecap%3D'round'%3E%3Cpath%20d%3D'm6%206%2012%2012M18%206%206%2018'%2F%3E%3C%2Fsvg%3E")!important;background-size:20px;background-position:center;background-repeat:no-repeat; }
body .btn-close:hover { background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23315f6c'%20stroke-width%3D'2.5'%20stroke-linecap%3D'round'%3E%3Cpath%20d%3D'm6%206%2012%2012M18%206%206%2018'%2F%3E%3C%2Fsvg%3E")!important; }

/* Toasts (20261105): compact close button, a little smaller than the modal close controls above. */
body :is(.toast-close,.toast-publication-close) {
  width:30px;min-width:30px;height:30px;min-height:30px;flex:0 0 auto;
  font-size:17px!important;margin-left:8px;
}
@media(pointer:coarse) {
  body :is(.toast-close,.toast-publication-close) { width:36px;min-width:36px;height:36px;min-height:36px; }
}

/* Category tags: identical metrics before/after hover, focus and selection. */
body :is(#welcome-category-tags-grid,#feed-preferences-modal-overlay .feed-prefs-tags-grid,#feed-preferences-modal-overlay .feed-prefs-hide-grid) > .arena-year-chip {
  position:relative;flex:0 0 auto!important;max-width:100%;min-width:0;
  margin:0!important;padding:0!important;border:0!important;transform:none!important;transition:none!important;
  background:transparent!important;box-shadow:none!important;-webkit-tap-highlight-color:transparent;
}
body :is(#welcome-category-tags-grid,#feed-preferences-modal-overlay .feed-prefs-tags-grid,#feed-preferences-modal-overlay .feed-prefs-hide-grid) > .arena-year-chip > span {
  --solid-tag-bg:#fff;--solid-tag-border:#cbd5e1;--solid-tag-color:#475569;
  display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;
  box-sizing:border-box!important;min-width:0;max-width:100%;min-height:32px!important;
  padding:7px 10px!important;border:1.5px solid var(--solid-tag-border)!important;border-radius:20px!important;
  background:var(--solid-tag-bg)!important;color:var(--solid-tag-color)!important;
  font-family:inherit!important;font-size:.8rem!important;font-weight:500!important;font-style:normal!important;
  line-height:1.15!important;letter-spacing:0!important;font-stretch:normal!important;white-space:normal!important;
  text-align:left;text-shadow:none!important;box-shadow:none!important;transform:none!important;
  animation:none!important;transition:none!important;-webkit-tap-highlight-color:transparent;
}
body :is(#welcome-category-tags-grid,#feed-preferences-modal-overlay .feed-prefs-tags-grid,#feed-preferences-modal-overlay .feed-prefs-hide-grid) > .arena-year-chip > span > i {
  display:inline-block!important;width:16px!important;min-width:16px!important;flex:0 0 16px!important;
  margin:0!important;font-size:13px!important;line-height:1!important;text-align:center;color:inherit!important;
  transform:none!important;transition:none!important;animation:none!important;
}
body :is(#welcome-category-tags-grid,#feed-preferences-modal-overlay .feed-prefs-tags-grid,#feed-preferences-modal-overlay .feed-prefs-hide-grid) > .arena-year-chip > input:checked + span {
  --solid-tag-bg:#d9eff2;--solid-tag-border:#337c8c;--solid-tag-color:#1d5966;
}
body :is(#welcome-category-tags-grid,#feed-preferences-modal-overlay .feed-prefs-tags-grid,#feed-preferences-modal-overlay .feed-prefs-hide-grid) > .arena-year-chip:has(:focus-visible) > span {
  outline:2px solid #45899a!important;outline-offset:2px;
}
@media(hover:hover){
  body :is(#welcome-category-tags-grid,#feed-preferences-modal-overlay .feed-prefs-tags-grid,#feed-preferences-modal-overlay .feed-prefs-hide-grid) > .arena-year-chip:hover > input:not(:checked) + span {
    --solid-tag-bg:#eaf5f7;--solid-tag-border:#8ebdc7;--solid-tag-color:#245e6d;
  }
  body :is(#welcome-category-tags-grid,#feed-preferences-modal-overlay .feed-prefs-tags-grid,#feed-preferences-modal-overlay .feed-prefs-hide-grid) > .arena-year-chip:hover > input:checked + span {
    --solid-tag-bg:#cee9ee;--solid-tag-border:#337c8c;--solid-tag-color:#1d5966;
  }
}
@media(pointer:coarse){
  body :is(#welcome-category-tags-grid,#feed-preferences-modal-overlay .feed-prefs-tags-grid,#feed-preferences-modal-overlay .feed-prefs-hide-grid) > .arena-year-chip > span {min-height:38px!important;}
}
body :is(.welcome-tags-grid,.feed-prefs-tags-grid){overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;align-content:flex-start;}

body #welcome-category-tags-grid > .arena-year-chip > span {padding:5px 11px!important;line-height:1.3!important;}

body :is(#welcome-category-tags-grid,#feed-preferences-modal-overlay .feed-prefs-tags-grid) > .arena-year-chip[aria-pressed="true"] > span {
  --solid-tag-bg:#d9eff2;--solid-tag-border:#337c8c;--solid-tag-color:#1d5966;
}
@media(hover:hover){body :is(#welcome-category-tags-grid,#feed-preferences-modal-overlay .feed-prefs-tags-grid) > .arena-year-chip[data-select-all][aria-pressed="false"]:hover > span {
  --solid-tag-bg:#eaf5f7;--solid-tag-border:#8ebdc7;--solid-tag-color:#245e6d;
}}
@media(hover:hover){body :is(#welcome-category-tags-grid,#feed-preferences-modal-overlay .feed-prefs-tags-grid) > .arena-year-chip[data-select-all][aria-pressed="true"]:hover > span {
  --solid-tag-bg:#cee9ee;--solid-tag-border:#337c8c;--solid-tag-color:#1d5966;
}}
body :is(#welcome-category-tags-grid,#feed-preferences-modal-overlay .feed-prefs-tags-grid,#feed-preferences-modal-overlay .feed-prefs-hide-grid) > .arena-year-chip:focus-within:not(:has(:focus-visible)):not(:focus-visible) > span {
  outline:none!important;
}

/* Selection-all: pointer activation does not leave a second focus ring. Keyboard focus stays visible. */
:is(.img-modal,.feed-prefs-modal) .arena-year-chip[data-select-all]:focus:not(:focus-visible){outline:none!important;box-shadow:none!important}
/* Avoid an extra focus ring on the inner label after pointer activation. */
body :is(#welcome-category-tags-grid,#feed-preferences-modal-overlay .feed-prefs-tags-grid) > .arena-year-chip[data-select-all]:focus:not(:focus-visible) > span{outline:none!important;outline-offset:0!important}
/* Preserve a clear focus indicator for keyboard navigation. */
body :is(#welcome-category-tags-grid,#feed-preferences-modal-overlay .feed-prefs-tags-grid) > .arena-year-chip[data-select-all]:focus-visible > span{outline:2px solid #45899a!important;outline-offset:2px!important}

/* The onboarding category modal shares the static surface of Mural Preferences.
   Never recompose or scale the entire dialog when one of its chips changes state. */
body .img-modal-overlay:has(.img-modal--with-tags) {
  z-index:16000!important;
  background:var(--linkmedme-modal-backdrop,rgba(15,23,42,.55))!important;
  opacity:1!important;
  transition:none!important;
}
body .img-modal.img-modal--with-tags {
  box-sizing:border-box;
  background:#fff;
  color:#1a212a;
  border:1px solid var(--linkmedme-modal-border,#dce9ec)!important;
  border-radius:16px!important;
  box-shadow:0 16px 48px rgba(26,33,42,.18)!important;
  opacity:1!important;
  transform:none!important;
  animation:none!important;
  transition:none!important;
}
@media(max-width:768px) {
  body .img-modal.img-modal--with-tags {
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
}

/* ===== Modais de seleção (instituição / ocupação / categoria) - 2026-11-05 =====
   1) Cards estáveis: nada de "pulo" (translateY) ao tocar, passar o mouse ou focar.
   2) Celular/mobile: tela cheia de verdade, sem cantos arredondados em nenhuma camada. */
body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .occupation-card {
  transform: none!important;
  transition: border-color .15s ease, background-color .15s ease!important;
}
body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .occupation-card:is(:hover, :focus, :focus-visible, :active) {
  transform: none!important;
  box-shadow: 0 12px 22px rgba(15, 23, 30, .12)!important;
}
@media (hover: hover) {
  body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .occupation-card:hover { border-color: rgba(49, 130, 147, .55); }
}
@media (hover: none) {
  body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .occupation-card:hover { border-color: rgba(49, 130, 147, .25); }
  body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .occupation-card:active { background-color: #f1f8fa; border-color: rgba(49, 130, 147, .55); }
}
@media (max-width: 992px), (max-height: 700px) and (pointer: coarse) {
  body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) {
    --lm-selection-corner-radius: 0px;
    border-radius: 0!important;
    box-shadow: none!important;
    margin: 0!important;
    width: 100%!important;
    max-width: 100%!important;
    height: var(--app-height, 100dvh)!important;
    min-height: var(--app-height, 100dvh)!important;
    max-height: var(--app-height, 100dvh)!important;
  }
  body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) > .swal2-html-container,
  body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .modal-header,
  body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .card-container-wrapper,
  body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .modal-footer-sticky {
    border-radius: 0!important;
  }
}

/* emoji-rodape-20261105: no celular os emojis abrem presos ao rodapé, sem cobrir o texto. */
#share-post-modal .share-emoji-picker.is-docked {
  position: fixed !important; top: auto !important; left: 0 !important; right: 0 !important;
  width: 100% !important; max-width: none !important; z-index: 2147483000;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  border-radius: 16px 16px 0 0 !important; border-left: 0 !important; border-right: 0 !important; border-bottom: 0 !important;
  box-shadow: 0 -10px 30px rgba(16, 46, 59, .18) !important;
}
#share-post-modal .share-emoji-picker.is-docked .share-emoji-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (max-width: 360px) { #share-post-modal .share-emoji-picker.is-docked .share-emoji-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }

/* foto-config-estavel-20261105: a foto no modal de troca tem o mesmo tamanho, estilo e posição da foto das configurações. */
body .swal2-popup.profile-photo-crop-modal #circle-preview {
  box-sizing: border-box !important; flex: 0 0 auto;
  width: 100px !important; height: 100px !important; min-width: 100px; min-height: 100px;
  margin-top: 20px; margin-right: auto !important; margin-bottom: 16px !important; margin-left: auto !important; padding: 0 !important;
  border: 3px solid #9DD0D4 !important; border-radius: 50% !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1) !important; overflow: hidden !important;
  background: #e8f5f8; contain: layout paint;
}
body .swal2-popup.profile-photo-crop-modal #circle-preview > img {
  display: block !important; width: 100% !important; height: 100% !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important; object-fit: cover !important;
}
#configuracoes-user-photo-container img.user-photo { box-sizing: border-box; object-fit: cover; }

/* mural-prefs-tela-cheia-20261105: Preferências do mural em tela cheia no celular, inclusive deitado. */
@media (max-width: 768px), (max-height: 500px) and (pointer: coarse) {
  html body #feed-preferences-modal-overlay {
    inset: 0 !important; padding: 0 !important;
    align-items: stretch !important; justify-content: stretch !important;
  }
  html body #feed-preferences-modal-overlay .feed-prefs-modal {
    width: 100% !important; max-width: 100% !important;
    height: var(--app-height, 100dvh) !important; max-height: var(--app-height, 100dvh) !important;
    margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  }
  html body #feed-preferences-modal-overlay .feed-prefs-header { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
  html body #feed-preferences-modal-overlay .feed-prefs-footer { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}

/* categoria-borda-20261105: borda suave no modal "Selecione a Categoria" (desktop; no celular segue em tela cheia). */
@media (min-width: 993px) and (min-height: 701px), (min-width: 993px) and (pointer: fine) {
  body .swal2-container .swal2-popup#category-modal > .swal2-html-container {
    box-sizing: border-box;
    border: 1px solid #d3e3e8 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 18px 48px rgba(18, 52, 66, 0.14) !important;
  }
  body .swal2-container .swal2-popup#category-modal > .swal2-html-container .modal-header { border-radius: 17px 17px 0 0 !important; }
  body .swal2-container .swal2-popup#category-modal > .swal2-html-container .modal-footer-sticky { border-radius: 0 0 17px 17px !important; }
}

/* tags-teclado-20261105: na escolha de tags do cadastro, com o teclado aberto, o filtro e as tags
   ocupam a area visivel; imagem, textos e botao voltam quando o teclado fecha. */
body .img-modal-overlay.is-filtering-tags { padding: 0 !important; align-items: stretch !important; overflow: hidden !important; }
body .img-modal.img-modal--with-tags.is-filtering {
  height: 100% !important; min-height: 0 !important; max-height: 100% !important;
  padding-top: 10px !important; padding-bottom: 8px !important; overflow: hidden !important;
}
body .img-modal.img-modal--with-tags.is-filtering :is(.img-modal-title, .img-modal-image, .img-modal-description, .img-modal-btn, .welcome-tags-title) { display: none !important; }
body .img-modal.img-modal--with-tags.is-filtering .welcome-tags-section { flex: 1 1 0% !important; min-height: 0 !important; margin: 0 !important; }
body .img-modal.img-modal--with-tags.is-filtering .welcome-tags-header { justify-content: flex-end; }
body .img-modal.img-modal--with-tags.is-filtering .welcome-tags-grid { flex: 1 1 0% !important; height: auto !important; min-height: 0 !important; max-height: none !important; }

/* mural-prefs-tags-celular-20261105: no celular as tags aparecem todas (sem rolagem dentro de rolagem),
   a busca fica presa no topo enquanto rola as tags e, com o teclado aberto, filtro e tags ocupam a area visivel. */
@media (max-width: 768px), (max-height: 500px) and (pointer: coarse) {
  html body #feed-preferences-modal-overlay .feed-prefs-body { overflow-y: auto !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  html body #feed-preferences-modal-overlay .feed-prefs-section:first-child { flex: 0 0 auto !important; min-height: 0 !important; overflow: visible !important; }
  html body #feed-preferences-modal-overlay .feed-prefs-body { padding-top: 12px !important; }
  html body #feed-preferences-modal-overlay .feed-prefs-tags-filter { position: -webkit-sticky; position: sticky; top: -12px; z-index: 3; box-shadow: none; }
  /* busca-presa-reta-20261106: presa no topo vira barra reta de ponta a ponta; solta, volta ao campo arredondado. */
  html body #feed-preferences-modal-overlay .feed-prefs-tags-filter { transition: border-radius .12s ease, box-shadow .12s ease; }
  html body #feed-preferences-modal-overlay .feed-prefs-tags-filter.is-stuck {
    width: calc(100% + var(--prefs-pad-l, 14px) + var(--prefs-pad-r, 14px)); max-width: none;
    margin-left: calc(-1 * var(--prefs-pad-l, 14px)); margin-right: calc(-1 * var(--prefs-pad-r, 14px));
    padding-left: calc(12px + var(--prefs-pad-l, 14px)); padding-right: calc(12px + var(--prefs-pad-r, 14px));
    border-radius: 0; border-color: transparent transparent #dfeaf0; box-shadow: 0 8px 12px -12px rgba(15, 23, 42, .45);
  }
  html body #feed-preferences-modal-overlay .feed-prefs-tags-grid { flex: 0 0 auto !important; height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; }
  html body #feed-preferences-modal-overlay .feed-prefs-modal.is-filtering { height: 100% !important; min-height: 0 !important; max-height: 100% !important; }
  html body #feed-preferences-modal-overlay .feed-prefs-modal.is-filtering :is(.feed-prefs-footer, .feed-prefs-hint) { display: none !important; }
  html body #feed-preferences-modal-overlay .feed-prefs-modal.is-filtering .feed-prefs-body > .feed-prefs-section:first-child ~ * { display: none !important; }
  html body #feed-preferences-modal-overlay .feed-prefs-modal.is-filtering .feed-prefs-body { overflow: hidden !important; padding-top: 10px !important; padding-bottom: 8px !important; }
  html body #feed-preferences-modal-overlay .feed-prefs-modal.is-filtering .feed-prefs-section:first-child { flex: 1 1 0% !important; overflow: hidden !important; }
  html body #feed-preferences-modal-overlay .feed-prefs-modal.is-filtering .feed-prefs-tags-filter { position: static; box-shadow: none; }
  html body #feed-preferences-modal-overlay .feed-prefs-modal.is-filtering .feed-prefs-tags-grid { flex: 1 1 0% !important; min-height: 0 !important; overflow-y: auto !important; }
}
/* idioma-20261106: seletor de idioma (tela de login, configuracoes do usuario e rodapes) */
.lm-lang-switch{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px;margin-top:10px;font-size:.82rem;color:#64748b}
.lm-lang-switch .fa-globe{font-size:.8rem;opacity:.75}
.lm-lang-switch a,.lm-lang-switch a:hover{color:#64748b;text-decoration:none !important;white-space:nowrap}
.lm-lang-switch a:hover{color:#1a212a;text-decoration:none}
.lm-lang-switch a[aria-current="true"]{color:#1a212a;font-weight:600}
.navbar-bottom .lm-lang-nav .lm-lang-links{display:inline-flex;align-items:center;gap:7px;margin-right:0 !important}
.navbar-bottom .lm-lang-nav .fa-globe{font-size:.78rem;opacity:.75}
.navbar-bottom .lm-lang-nav a{color:#fff !important;text-decoration:none;opacity:.7}
.navbar-bottom .lm-lang-nav .nav-link,.navbar-bottom .lm-lang-nav .nav-link:hover,.navbar-bottom .lm-lang-nav a,.navbar-bottom .lm-lang-nav a:hover{text-decoration:none !important}
.navbar-bottom .lm-lang-nav a:hover{opacity:1}
.navbar-bottom .lm-lang-nav a[aria-current="true"]{opacity:1;font-weight:600}
.lm-language-setting{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 14px;width:100%;max-width:460px;margin:22px auto 0;padding:10px 10px 10px 14px;border:1px solid #dfeaf0;border-radius:12px;background:#f7fbfc;box-sizing:border-box}
.lm-language-label{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:#1a212a;font-size:.95rem}
.lm-language-setting .lm-language-label i.fa-globe{color:#5fa9ae}
.lm-language-options{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:#e6f0f3;flex-wrap:wrap}
.lm-language-options a,.lm-language-options a:hover,.lm-lang-switch a,.lm-lang-links a,.lm-footer-lang a{display:inline-flex;align-items:center;gap:6px}
.lm-lang-switch .lm-lang-flag{display:none !important}
.lm-lang-flag{display:inline-block;width:18px;height:13px;border-radius:3px;object-fit:cover;box-shadow:0 0 0 1px rgba(15,23,42,.12);flex:none}
.lm-language-options a,.lm-language-options a:hover{padding:6px 12px;border-radius:999px;font-size:.85rem;font-weight:600;color:#45607a;text-decoration:none !important;line-height:1.2;white-space:nowrap}
.lm-language-options a:hover{color:#1a212a;background:rgba(255,255,255,.6)}
.lm-language-options a[aria-current="true"]{background:#fff;color:#1a212a;box-shadow:0 1px 3px rgba(16,35,61,.15)}
.lm-lang-confirm-dialog{width:min(410px,calc(100vw - 28px));padding:0;border:0;border-radius:16px;background:#fff;color:#1a2834;box-shadow:0 22px 54px rgba(12,30,44,.24);overflow:hidden}
.lm-lang-confirm-dialog::backdrop{background:rgba(10,25,35,.46)}
.lm-lang-confirm-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px;border-bottom:1px solid #e4edf1}
.lm-lang-confirm-title-wrap{display:inline-flex;align-items:center;gap:9px;min-width:0}
.lm-lang-confirm-title-wrap h2{margin:0;font-size:1.02rem;font-weight:750;color:#132a36}
.lm-lang-confirm-close{width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:#4a6370;font-size:1.35rem;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.lm-lang-confirm-close:hover{background:#eef4f7}
.lm-lang-confirm-body{margin:0;padding:16px 18px;font-size:.92rem;line-height:1.5;color:#3d5563}
.lm-lang-confirm-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:0 18px 18px}
.lm-lang-btn-cancel,.lm-lang-btn-confirm{min-height:38px;padding:8px 16px;border-radius:10px;font-size:.88rem;font-weight:650;cursor:pointer;border:1px solid transparent}
.lm-lang-btn-cancel{background:#f1f5f9;border-color:#d5e1e8;color:#334e5c}
.lm-lang-btn-cancel:hover{background:#e5edf2}
.lm-lang-btn-confirm{background:#2b8293;color:#fff}
.lm-lang-btn-confirm:hover{background:#226c7b}
.lm-lang-btn-confirm:disabled{opacity:.6;cursor:default}
.lm-public-lang,.lm-footer-lang{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px}
.lm-public-lang a,.lm-public-lang a:hover,.lm-footer-lang a,.lm-footer-lang a:hover{text-decoration:none !important;white-space:nowrap}
@media (max-width:400px){.lm-language-setting{justify-content:center}.lm-language-options a{padding:6px 10px}}
/* textos que vem do CSS (content) e nao do HTML */
html[lang="es"] body.index-page.login-modern .social-login::before{content:"o"}
html[lang="en"] body.index-page.login-modern .social-login::before{content:"or"}
html[lang="es"] #btn-google-login[data-google-ready="0"]::after{content:'Cargando Google…'}
html[lang="es"] #btn-google-login[data-google-ready="error"]::after{content:'Google no disponible'}
html[lang="en"] #btn-google-login[data-google-ready="0"]::after{content:'Loading Google…'}
html[lang="en"] #btn-google-login[data-google-ready="error"]::after{content:'Google unavailable'}
/* fim idioma-20261106 */

select.lm-select-open { border-color: #318293 !important; box-shadow: 0 0 0 3px rgba(49, 130, 147, .14) !important; }
.lm-select-popup {
  position: fixed; z-index: 20050; margin: 0; padding: 6px; list-style: none; box-sizing: border-box;
  background: #fff; border: 1px solid #d6e3e8; border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 40, 50, .18);
  overflow-y: auto; overscroll-behavior: contain; font-size: .88rem; line-height: 1.3; color: #192d39; text-align: left;
}
.lm-select-popup.has-search { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.lm-select-search-wrap { position: relative; display: flex; align-items: center; padding: 8px; border-bottom: 1px solid #e6eff3; background: #fafcfd; flex: none; }
.lm-select-search-wrap > i { position: absolute; left: 18px; color: #647d89; font-size: .82rem; pointer-events: none; }
.lm-select-search { width: 100%; min-height: 36px; padding: 6px 10px 6px 30px; border: 1px solid #cbe0e6; border-radius: 9px; background: #fff; color: #192d39; font: inherit; font-size: .86rem; outline: none; box-sizing: border-box; }
.lm-select-search:focus { border-color: #318293; box-shadow: 0 0 0 3px rgba(49, 130, 147, .14); }
.lm-select-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }
.lm-select-empty { padding: 14px 12px; text-align: center; font-size: .84rem; color: #647885; }
.lm-select-popup li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.lm-select-popup li[hidden] { display: none !important; }
.lm-select-popup li.is-active { background: #f1f7f8; }
.lm-select-popup li.is-placeholder { color: #7c8b94; }
.lm-select-popup li[aria-selected="true"] { color: #246d80; font-weight: 650; }
.lm-select-popup li[aria-selected="true"]::after { content: ""; flex: none; width: 6px; height: 11px; margin: -3px 5px 0 0; border: solid #318293; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lm-select-popup li[aria-disabled="true"] { opacity: .5; cursor: default; }

@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait), (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 540px) {
  body .gamification-overlay {
    padding: 0 !important;
    z-index: 20500 !important;
    background: #fff !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }
  body .gamification-modal {
    width: 100vw !important;
    max-width: none !important;
    height: var(--app-height, 100dvh) !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}
body .gamification-fullscreen-image-ovl {
  z-index: 2147483100 !important;
}

.lm-theme-setting{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 14px;width:100%;max-width:460px;margin:12px auto 0;padding:10px 10px 10px 14px;border:1px solid #dfeaf0;border-radius:12px;background:#f7fbfc;box-sizing:border-box}
.lm-theme-label{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:#1a212a;font-size:.95rem}
.lm-theme-label i{color:#2c7d8d}
.lm-theme-options{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:#e6f0f3;flex-wrap:wrap}
.lm-theme-option-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 13px;border:0;border-radius:999px;background:transparent;font-family:inherit;font-size:.85rem;font-weight:600;color:#45607a;line-height:1.2;white-space:nowrap;cursor:pointer;transition:background-color .15s ease,color .15s ease,box-shadow .15s ease}
.lm-theme-option-btn:hover{color:#1a212a;background:rgba(255,255,255,.6)}
.lm-theme-option-btn.is-active{background:#fff;color:#1a212a;box-shadow:0 1px 3px rgba(16,35,61,.15)}
.lm-theme-option-btn:focus-visible{outline:2px solid #2b8293;outline-offset:2px}
html[data-theme="dark"] .lm-theme-setting,
html[data-theme="dark"] .lm-language-setting{background:#182632;border-color:#2a3e4f}
html[data-theme="dark"] .lm-theme-label,
html[data-theme="dark"] .lm-language-label{color:#e6eff5}
html[data-theme="dark"] .lm-theme-options,
html[data-theme="dark"] .lm-language-options{background:#0f1922}
html[data-theme="dark"] .lm-theme-option-btn,
html[data-theme="dark"] .lm-language-options a{color:#a8becb}
html[data-theme="dark"] .lm-theme-option-btn.is-active,
html[data-theme="dark"] .lm-language-options a[aria-current="true"]{background:#247486;color:#ffffff !important}
html[data-theme="dark"] .swal2-popup,
html[data-theme="dark"] .share-modal,
html[data-theme="dark"] .feed-prefs-modal,
html[data-theme="dark"] dialog.profile-post-filters-dialog,
html[data-theme="dark"] .lm-select-popup{background:#15212b !important;border-color:#2a3e4f !important;color:#e4edf2 !important}
html[data-theme="dark"] :is(.swal2-title, .profile-filter-modal-header h2){color:#eef5f9 !important}
html[data-theme="dark"] :is(.swal2-html-container, .feed-prefs-hint){color:#adc1cd !important}
html[data-theme="dark"] :is(.form-control, .form-select, .lm-select-search){background:#0f1922 !important;border-color:#2c4152 !important;color:#e6eff5 !important}

html[data-theme="dark"] {
  --lm-dk-bg: #0e161d;
  --lm-dk-card: #15212b;
  --lm-dk-card-2: #1a2834;
  --lm-dk-border: #253847;
  --lm-dk-text: #e4edf2;
  --lm-dk-muted: #9ab0be;
  --lm-dk-accent: #7bc4d2;
}
html[data-theme="dark"] :is(.shared-post-content, .shared-post-content .lmm-feed-line, .lmm-feed-line, .lmm-feed-list-row, .lmm-feed-list-item, .lmm-list-bullet, .lmm-list-number, .post-author-line, .post-author-line strong, .feed-item .post-text, .feed-item .post-content, .lmm-feed-line strong, .lmm-feed-line b, .lmm-feed-line em, .lmm-feed-list-row strong, .lmm-feed-list-row b, .lmm-feed-list-row em),
html[data-theme="dark"] .shared-post-item.feed-item:is(:not(.notification-feed-item), .notification-feed-item-modal) :is(.shared-post-content, .lmm-feed-line, .lmm-feed-list-row, .lmm-feed-list-item, .lmm-list-bullet, .lmm-list-number) {
  color: var(--lm-dk-text) !important;
}
html[data-theme="dark"] :is(.top-occupation, .text-muted, .feed-item .text-muted, .post-meta, .post-date) {
  color: var(--lm-dk-muted) !important;
}
html[data-theme="dark"] :is(#medical-news-heading, .medical-news-item-title, .medical-news-heading-copy h2) {
  color: var(--lm-dk-text) !important;
}
html[data-theme="dark"] :is(#publication-share-card, .share-post-container, #feed-content-filter, .feed-content-filter, .feed-content-filter-bar, #global-ranking-card, #friends-ranking-card, .ranking-face, #global-user-info, #friends-user-info, .community-online, .community-presence-card, .institutional-summary-card, #ranking-details-left-column, #container-esquerdo .card, #container-direito .card) {
  background-color: var(--lm-dk-card) !important;
  border-color: var(--lm-dk-border) !important;
  color: var(--lm-dk-text) !important;
}
html[data-theme="dark"] :is(#top-ranking-list, #friends-ranking-list) .list-group-item,
html[data-theme="dark"] .community-presence-card :is(li, .list-group-item, a) {
  background-color: transparent !important;
  border-color: var(--lm-dk-border) !important;
  color: var(--lm-dk-text) !important;
}
html[data-theme="dark"] :is(#share-post-textarea, #share-feed-trigger, .share-post-textarea) {
  background-color: var(--lm-dk-card-2) !important;
  border-color: var(--lm-dk-border) !important;
  color: var(--lm-dk-text) !important;
}
html[data-theme="dark"] #feed-content-filter > button:not(.is-active):not([aria-pressed="true"]):not(.active),
html[data-theme="dark"] #medical-news-explore {
  background-color: var(--lm-dk-card-2) !important;
  border-color: var(--lm-dk-border) !important;
  color: var(--lm-dk-accent) !important;
}
html[data-theme="dark"] :is(#medical-news-card .medical-news-more, #ranking-card .btn-ranking-container .btn-questoes-med-ranking, body .btn-ranking-container #top-ranking-details-btn.btn.btn-questoes-med-ranking) {
  background: #1a2c38 !important;
  background-image: none !important;
  border: 0 !important;
  color: #8ad0dd !important;
  box-shadow: none !important;
}
html[data-theme="dark"] :is(#medical-news-card .medical-news-more, #ranking-card .btn-ranking-container .btn-questoes-med-ranking, body .btn-ranking-container #top-ranking-details-btn.btn.btn-questoes-med-ranking):is(:hover, :focus-visible) {
  background: #233b4b !important;
  background-image: none !important;
  border: 0 !important;
  color: #bde8f0 !important;
  text-decoration: none;
}
html[data-theme="dark"] .post-media-grid > .post-media,
html[data-theme="dark"] .post-media {
  background-color: #101a22 !important;
}
html[data-theme="dark"] :is(.ranking-stats-title, .ranking-stat-square__label, .ranking-panel__heading, .ranking-detail-name, .ranking-detail-score span, .q-home-progress-label, .q-section-head h3) {
  color: var(--lm-dk-text) !important;
}
html[data-theme="dark"] :is(.q-card, .q-card-featured) {
  background-color: var(--lm-dk-card) !important;
  border-color: var(--lm-dk-border) !important;
  color: var(--lm-dk-text) !important;
}
html[data-theme="dark"] :is(#container-encontrar-usuarios, #find-users-left-column, #find-users-right-column, #friend-suggestions, .friends-directory-tabs, .friends-directory-search) {
  background-color: var(--lm-dk-card) !important;
  border-color: var(--lm-dk-border) !important;
  color: var(--lm-dk-text) !important;
}
html[data-theme="dark"] #container-encontrar-usuarios { background-color: transparent !important; }
html[data-theme="dark"] :is(#friend-suggestions-title, .search-results-title) { background-color: transparent !important; color: var(--lm-dk-text) !important; }
html[data-theme="dark"] .friends-directory-tab:not(.is-active) { background-color: transparent !important; color: var(--lm-dk-muted) !important; }
html[data-theme="dark"] .friends-directory-tab.is-active { background-color: var(--lm-dk-card-2) !important; color: var(--lm-dk-accent) !important; }
html[data-theme="dark"] .friends-directory-search input { background-color: transparent !important; color: var(--lm-dk-text) !important; }
html[data-theme="dark"] :is(#academy-marketplace-root, .lm-academy-host) { background-color: transparent !important; }
html[data-theme="dark"] :is(.lm-academy-filter-panel, .lm-academy-catalog, .lm-academy-empty, .lm-academy-community-card) {
  background-color: var(--lm-dk-card) !important;
  border-color: var(--lm-dk-border) !important;
  color: var(--lm-dk-text) !important;
}
html[data-theme="dark"] :is(.lm-academy-select, .lm-academy-input) {
  background-color: var(--lm-dk-card-2) !important;
  border-color: var(--lm-dk-border) !important;
  color: var(--lm-dk-text) !important;
}
html[data-theme="dark"] .lm-academy-empty-symbol { background-color: var(--lm-dk-card-2) !important; color: var(--lm-dk-accent) !important; }
html[data-theme="dark"] .lm-academy-btn-outline { background-color: transparent !important; border-color: var(--lm-dk-accent) !important; color: var(--lm-dk-accent) !important; }
html[data-theme="dark"] .lm-academy-hero-copy :is(.lm-academy-eyebrow, .lm-academy-title, .lm-academy-subtitle) { color: #f2f8fb !important; }
html[data-theme="dark"] .lm-academy-hero-copy .lm-academy-btn-primary { background-color: #247486 !important; border-color: #3693a7 !important; color: #ffffff !important; }
html[data-theme="dark"] .lm-academy-hero-copy .lm-academy-btn-primary:hover:not(:disabled) { background-color: #2d899d !important; border-color: #46adc2 !important; color: #ffffff !important; }
html[data-theme="dark"] .ranking-item :is(.ranking-label, .ranking-value, .top-ranking-pos, .friend-ranking-pos),
html[data-theme="dark"] :is(.ranking-item .text-dark, #ranking-title i.text-dark, .ranking-title-line i.text-dark, #ranking-card i.text-dark) { color: #9ab0be !important; }
html[data-theme="dark"] :is(.lm-academy-filter-panel h2, .lm-academy-label, .lm-academy-section-heading h2, .lm-academy-empty h3, .lm-academy-community-card h2, .lm-academy-catalog h2) { color: var(--lm-dk-text) !important; }
html[data-theme="dark"] :is(.lm-academy-empty p, .lm-academy-community-card p, .lm-academy-section-heading p) { color: var(--lm-dk-muted) !important; }
html[data-theme="dark"] #navbar-input-pesquisar { background-color: #1a2834 !important; border-color: var(--lm-dk-border) !important; color: var(--lm-dk-text) !important; }
html[data-theme="dark"] #navbar-input-pesquisar::placeholder { color: var(--lm-dk-muted) !important; }
html[data-theme="dark"] .lm-saved-card-meta-label { color: var(--lm-dk-muted) !important; }
html[data-theme="dark"] .lm-saved-card-pill { background-color: var(--lm-dk-card-2) !important; border-color: var(--lm-dk-border) !important; color: var(--lm-dk-text) !important; }
html[data-theme="dark"] :is(.publication-category-badge, .question-status) { background-color: var(--lm-dk-card-2) !important; border-color: var(--lm-dk-border) !important; color: var(--lm-dk-accent) !important; }

#container-configuracoes-usuario .lm-profile-settings-primary-panel .lm-language-setting + .lm-theme-setting { margin-top: 12px !important; }
html[data-theme="dark"] #container-configuracoes-usuario .lm-profile-settings-nav-link.is-active { background-color: var(--lm-dk-card-2) !important; color: var(--lm-dk-accent) !important; }
html[data-theme="dark"] :is(#lm-profile-about > h2, .profile-biography-head h2, .profile-friends-title h2, .feed-prefs-section-title, #nascimento-usuario-config, #instituicao-usuario-config, #ocupacao-usuario-config, .anki-deck-name, .anki-deck-reveal-label, .anki-deck-position) { color: var(--lm-dk-text) !important; }
html[data-theme="dark"] #lm-user-cover-edit,
html[data-theme="dark"] :is(.lm-profile-settings-edit-btn, .lm-prof-public-toggle, .profile-edit-chip, .profile-post-filter-trigger, .lm-saved-specialty-btn, .flashcard-category-badge, .lm-prof-sum-social, .anki-deck-question-number, .anki-deck-prev, .anki-deck-next, .feed-prefs-counter) { background-color: var(--lm-dk-card-2) !important; border-color: var(--lm-dk-border) !important; color: var(--lm-dk-text) !important; }
html[data-theme="dark"] .anki-deck-viewer :is(.anki-deck-prev, .anki-deck-next):hover:not(:disabled) { background-color: #223545 !important; border-color: #398fa3 !important; color: #ffffff !important; }
html[data-theme="dark"] .lm-profile-settings-delete-btn { background-color: transparent !important; border-color: #7f2a35 !important; color: #ff8a98 !important; }
html[data-theme="dark"] #configuracoes-user-photo-container { background-color: var(--lm-dk-card) !important; border-color: var(--lm-dk-card) !important; }
html[data-theme="dark"] :is(.profile-posts-toolbar, article.card-add, .friend-directory-card, .anki-deck-face) { background-color: var(--lm-dk-card) !important; border-color: var(--lm-dk-border) !important; color: var(--lm-dk-text) !important; }
html[data-theme="dark"] article.card-add .card-media { background-color: var(--lm-dk-card-2) !important; }
html[data-theme="dark"] :is(.feed-prefs-tags-filter, #lm-profile-preferences .feed-prefs-tags-filter) { background-color: #101a22 !important; border-color: #283d4e !important; color: #e4edf2 !important; }
html[data-theme="dark"] body :is(#welcome-category-tags-grid, #feed-preferences-modal-overlay .feed-prefs-tags-grid, #feed-preferences-modal-overlay .feed-prefs-hide-grid, #lm-profile-preferences .feed-prefs-tags-grid, #lm-profile-preferences .feed-prefs-hide-grid) { --solid-tag-bg: #1a2834; --solid-tag-border: #2c4152; --solid-tag-color: #d8e6ee; background: #111c24 !important; background-color: #111c24 !important; border-color: #253847 !important; }
html[data-theme="dark"] body :is(.img-modal, .feed-prefs-modal, #lm-profile-preferences) .arena-year-chip > span { --solid-tag-bg: #1a2834; --solid-tag-border: #2c4152; --solid-tag-color: #d8e6ee; background: #1a2834 !important; background-color: #1a2834 !important; border-color: #2c4152 !important; color: #d8e6ee !important; }
html[data-theme="dark"] body :is(.img-modal, .feed-prefs-modal, #lm-profile-preferences) .arena-year-chip:hover > span { background: #213241 !important; border-color: #365268 !important; color: #eff7fb !important; }
html[data-theme="dark"] body :is(.img-modal, .feed-prefs-modal, #lm-profile-preferences) .arena-year-chip:is(.is-selected, :has(input:checked)) > span { --solid-tag-bg: #247486; --solid-tag-border: #38a3b8; --solid-tag-color: #ffffff; background: #247486 !important; background-color: #247486 !important; border-color: #38a3b8 !important; color: #ffffff !important; }
html[data-theme="dark"] #lm-profile-preferences :is(.feed-prefs-section-title, .feed-prefs-section-heading) { color: #eef5f9 !important; }
html[data-theme="dark"] #lm-profile-preferences :is(.feed-prefs-section-hint, .feed-prefs-counter, .feed-prefs-helper) { color: #9cb3c2 !important; }
html[data-theme="dark"] #lm-profile-preferences .feed-prefs-hide-row { background: #172430 !important; border-color: #263948 !important; color: #dce8f0 !important; }
html[data-theme="dark"] .feed-video-prefs-group { background: #111c24 !important; border-color: #253847 !important; color: #e4edf2 !important; }
html[data-theme="dark"] .feed-video-prefs-group-title { color: #8ad0dd !important; }
html[data-theme="dark"] .feed-video-prefs-group-title i { color: #5eb9ca !important; }
html[data-theme="dark"] .feed-video-sound-choice { color: #dce8f0 !important; }
html[data-theme="dark"] .feed-video-sound-choice input[type="checkbox"] { background: #16232e !important; border-color: #3f7e8d !important; }
html[data-theme="dark"] .feed-video-sound-choice input[type="checkbox"]:checked { background: #2e8190 !important; border-color: #38a3b8 !important; }
html[data-theme="dark"] #container-configuracoes-usuario .profile-preferences-skel-video-box { background: #111c24 !important; border-color: #253847 !important; }
html[data-theme="dark"] .lm-select-popup { background: #15212b !important; border-color: #283d4e !important; color: #e4edf2 !important; box-shadow: 0 18px 40px rgba(0, 0, 0, .45) !important; }
html[data-theme="dark"] .lm-select-popup :is(li, button, .lm-select-option) { color: #dce8f0 !important; background: transparent !important; }
html[data-theme="dark"] .lm-select-popup :is(li:hover, li.is-active, button:hover, .lm-select-option:hover, .lm-select-option.is-active) { background: #1f3344 !important; color: #ffffff !important; }
html[data-theme="dark"] .lm-select-popup :is(li[aria-selected="true"], .lm-select-option.is-selected) { background: rgba(56, 163, 184, 0.18) !important; color: #7fd4e2 !important; }
html[data-theme="dark"] .lm-select-popup :is(li[aria-selected="true"]:hover, li[aria-selected="true"].is-active) { background: rgba(56, 163, 184, 0.28) !important; color: #ffffff !important; }
html[data-theme="dark"] .lm-select-popup li.is-placeholder { color: #869fb0 !important; }
html[data-theme="dark"] .configuracoes-logout-label { color: #fff !important; }
html[data-theme="dark"] .lm-academy-user :is(.lm-academy-header, .lm-academy-tabs, .lm-academy-content, .lm-academy-welcome, .lm-academy-workspace, .lm-academy-review-card, .lm-academy-studio-preview, .lm-academy-fees, .lm-academy-mp-status, .lm-academy-metric, .lm-academy-teaching-banner, .lm-academy-learning-banner, .lm-academy-course-card, .lm-academy-card) { background-color: var(--lm-dk-card) !important; border-color: var(--lm-dk-border) !important; color: var(--lm-dk-text) !important; }
html[data-theme="dark"] .lm-academy-user :is(h2, h3, h4, h5, label, strong, dt, dd, .lm-academy-checklist li) { color: var(--lm-dk-text) !important; }
html[data-theme="dark"] .lm-academy-user .lm-academy-muted { color: var(--lm-dk-muted) !important; }
html[data-theme="dark"] .lm-academy-user :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), textarea, select) { background-color: var(--lm-dk-card-2) !important; border-color: var(--lm-dk-border) !important; color: var(--lm-dk-text) !important; }
html[data-theme="dark"] .lm-academy-user .lm-academy-tabs button:not(.is-active) { background-color: transparent !important; color: var(--lm-dk-muted) !important; }
html[data-theme="dark"] .lm-academy-user .lm-academy-tabs button.is-active { background-color: var(--lm-dk-card-2) !important; color: var(--lm-dk-accent) !important; }
html[data-theme="dark"] .lm-academy-user :is(.lm-academy-button-soft, .lm-academy-button-ghost) { background-color: var(--lm-dk-card-2) !important; border-color: var(--lm-dk-border) !important; color: var(--lm-dk-accent) !important; }
html[data-theme="dark"] .lm-academy-welcome i { background-color: var(--lm-dk-card-2) !important; color: var(--lm-dk-accent) !important; }
html[data-theme="dark"] :is(#create-publication-modal, #share-post-modal) :is(.share-modal-header, .share-text-toolbar, .share-modal-footer) { background-color: var(--lm-dk-card) !important; background: var(--lm-dk-card) !important; border-color: var(--lm-dk-border) !important; color: var(--lm-dk-text) !important; }
html[data-theme="dark"] :is(#create-publication-modal, #share-post-modal) .share-modal-header :is(h2, h3, h4, h5, .share-modal-title) { color: #ffffff !important; }
html[data-theme="dark"] :is(#create-publication-modal, #share-post-modal) #btn-toggle-options { background-color: var(--lm-dk-card-2) !important; border-color: var(--lm-dk-border) !important; color: var(--lm-dk-text) !important; }
html[data-theme="dark"] :is(#create-publication-modal, #share-post-modal) :is(.switch-label, .action-label) { color: var(--lm-dk-text) !important; }
html[data-theme="dark"] :is(#create-publication-modal, #share-post-modal) #share-post-button { background: #247486 !important; border-color: #2f8ca0 !important; color: #ffffff !important; }
html[data-theme="dark"] :is(#create-publication-modal, #share-post-modal) #share-post-button:hover:not(:disabled) { background: #2d899d !important; border-color: #3da3b8 !important; color: #ffffff !important; }
html[data-theme="dark"] #notification-container .notification-item { background-color: transparent !important; border-color: var(--lm-dk-border) !important; color: var(--lm-dk-text) !important; transition: background-color .16s ease; }
html[data-theme="dark"] #notification-container .notification-item[data-unread="1"] { background-color: #182b3a !important; }
html[data-theme="dark"] #notification-container .notification-item:hover,
html[data-theme="dark"] #notification-container .notification-item:focus-visible { background-color: #203546 !important; }
html[data-theme="dark"] #notification-container .notification-item[data-unread="1"]:hover,
html[data-theme="dark"] #notification-container .notification-item[data-unread="1"]:focus-visible { background-color: #253e52 !important; }
html[data-theme="dark"] #notification-container .notification-icon { background-color: #1d303f !important; border: 1px solid #2c4457; color: #8fd3e0 !important; }
html[data-theme="dark"] #notification-container .notification-icon > i.text-success { color: #34d399 !important; }
html[data-theme="dark"] #notification-container :is(.notification-subtitle, .notification-publication, .notification-date, .notification-occupation) { color: var(--lm-dk-muted) !important; }
html[data-theme="dark"] #notification-container .notification-message { color: var(--lm-dk-text) !important; }
html[data-theme="dark"] #question-engine-root .q-screen-title { color: var(--lm-dk-text) !important; }
html[data-theme="dark"] #question-engine-root :is(.q-editions-filter-panel, .q-palette, .q-mock-bar, .q-card-question) { background-color: var(--lm-dk-card) !important; border-color: var(--lm-dk-border) !important; color: var(--lm-dk-text) !important; }
html[data-theme="dark"] #question-engine-root :is(.q-editions-year-input, .btn-outline-secondary) { background-color: var(--lm-dk-card-2) !important; border-color: var(--lm-dk-border) !important; color: var(--lm-dk-text) !important; }
html[data-theme="dark"] #question-engine-root .q-option:not([class*="correct"]):not([class*="wrong"]):not([class*="incorrect"]):not([class*="selected"]):not(.is-void) { background-color: var(--lm-dk-card-2) !important; border-color: var(--lm-dk-border) !important; color: var(--lm-dk-text) !important; }
html[data-theme="dark"] #question-engine-root .q-option.is-void { background-color: rgba(138, 143, 152, 0.08) !important; border-color: var(--lm-dk-border) !important; color: var(--lm-dk-muted) !important; }
html[data-theme="dark"] #question-engine-root .q-option.is-void .q-option-letter { background-color: rgba(138, 143, 152, 0.16) !important; color: var(--lm-dk-muted) !important; }
html[data-theme="dark"] #question-engine-root :is(.q-feedback-note, .q-q-void) { color: var(--lm-dk-muted) !important; }
html[data-theme="dark"] body :is(.share-modal, .img-modal, .gamification-modal, .modal-content, .notification-publication-modal-shell, dialog.lm-lang-confirm-dialog) {
  background: #15212b !important;
  color: #e6eff5 !important;
  border-color: #253847 !important;
  box-shadow: 0 20px 56px rgba(0, 0, 0, .55) !important;
}
html[data-theme="dark"] body .gamification-overlay {
  background: rgba(7, 13, 18, .76) !important;
}
@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait), (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 540px) {
  html[data-theme="dark"] body .gamification-overlay {
    background: #0e161d !important;
  }
}
html[data-theme="dark"] body :is(.img-modal-title, .gamification-title-text, .modal-content .modal-title, .lm-lang-confirm-title-wrap h2, .swal2-popup .swal2-title, .welcome-tags-title) {
  color: #f0f6fa !important;
}
html[data-theme="dark"] body :is(.img-modal-description, .gamification-body, .modal-content .modal-body, .lm-lang-confirm-body, .swal2-popup .swal2-html-container) {
  color: #b8cad6 !important;
}
html[data-theme="dark"] body :is(.modal-content .modal-header:not(.bg-danger), .modal-content .modal-footer, .modal-footer-sticky, .gamification-header, .lm-lang-confirm-head, .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .modal-header, .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .modal-footer-sticky) {
  background: #15212b !important;
  border-color: #253847 !important;
  color: #edf4f8 !important;
}
html[data-theme="dark"] body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) > .swal2-html-container,
html[data-theme="dark"] body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .card-container-wrapper {
  background: #111c25 !important;
  border-color: #253847 !important;
  color: #e6eff5 !important;
}
html[data-theme="dark"] body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .modal-header h2 {
  color: #f0f6fa !important;
}
body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .modal-search-dark {
  padding-left: 38px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23247c89' d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 14px center !important;
  background-size: 14px 14px !important;
}
html[data-theme="dark"] body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .modal-search-dark {
  background-color: #0f1922 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%2363c7d6' d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 14px center !important;
  background-size: 14px 14px !important;
  border-color: #2c4355 !important;
  color: #eef5f9 !important;
  caret-color: #7ad0de !important;
}
html[data-theme="dark"] body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .modal-search-dark:focus {
  background-color: #0f1922 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%237fd4e2' d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 14px center !important;
  background-size: 14px 14px !important;
  border-color: #4aa7b8 !important;
  box-shadow: 0 0 0 3px rgba(74, 167, 184, 0.25) !important;
}
html[data-theme="dark"] body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .modal-search-dark::placeholder {
  color: #8fa6b5 !important;
  opacity: 1 !important;
}
html[data-theme="dark"] body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) :is(.close-modal-btn, .back-modal-btn) {
  background: #1d2f3d !important;
  border: 1px solid #2e4659 !important;
  color: #e4f0f6 !important;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) :is(.close-modal-btn, .back-modal-btn):is(:hover, :focus) {
  background: #284052 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .modal-footer-sticky .modal-footer-count {
  color: #cbdbe6 !important;
}
html[data-theme="dark"] body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .modal-footer-sticky .modal-footer-count strong {
  color: #6bc9d9 !important;
}
html[data-theme="dark"] body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .occupation-card {
  background: #1a2936 !important;
  border-color: #2a4052 !important;
  color: #e6eff5 !important;
}
html[data-theme="dark"] body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .occupation-card h5 {
  color: #edf4f8 !important;
}
html[data-theme="dark"] body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .occupation-card .occupation-icon {
  color: #7ad0de !important;
}
html[data-theme="dark"] body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .occupation-card:is(:hover, :focus, :focus-visible) {
  background: #233747 !important;
  border-color: #3f6d82 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .occupation-card:is(:hover, :focus, :focus-visible) h5 {
  color: #ffffff !important;
}
html[data-theme="dark"] body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .occupation-card:is(:hover, :focus, :focus-visible) .occupation-icon {
  color: #9be4f0 !important;
}
html[data-theme="dark"] body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .occupation-card:is(.selected, .is-selected, .active, [aria-selected="true"]) {
  background: #247486 !important;
  border-color: #38a3b8 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] body .swal2-container .swal2-popup:is(#occupation-modal, #institution-modal, #category-modal) .occupation-card:is(.selected, .is-selected, .active, [aria-selected="true"]) :is(h5, .occupation-icon) {
  color: #ffffff !important;
}
html[data-theme="dark"] body :is(.swal2-popup.linkmedme-modal, .swal2-popup.scrollable, .q-dialog, .modal-content, .share-modal, .img-modal, .gamification-modal, .inline-change-confirmation-panel)
:is(.btn:not(.btn-danger):not(.btn-primary), .swal2-cancel, .swal2-deny, .gamification-prev, .inline-change-confirmation-btn, .linkmedme-modal-action) {
  background: #1b2c39 !important;
  border-color: #315063 !important;
  color: #e8f2f7 !important;
}
html[data-theme="dark"] body :is(.swal2-popup.linkmedme-modal, .swal2-popup.scrollable, .q-dialog, .modal-content, .share-modal, .img-modal, .gamification-modal, .inline-change-confirmation-panel)
:is(.btn:not(.btn-danger):not(.btn-primary), .swal2-cancel, .swal2-deny, .gamification-prev, .inline-change-confirmation-btn, .linkmedme-modal-action):hover:not(:disabled) {
  background: #243949 !important;
  border-color: #426980 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] body :is(.swal2-popup.linkmedme-modal, .swal2-popup.scrollable, .q-dialog, .modal-content, .share-modal, .img-modal, .gamification-modal, .inline-change-confirmation-panel)
:is(.btn:not(.btn-danger):not(.btn-primary), .swal2-cancel, .swal2-deny, .gamification-prev, .inline-change-confirmation-btn, .linkmedme-modal-action):active:not(:disabled) {
  background: #2c4558 !important;
}
html[data-theme="dark"] body :is(.img-modal .img-modal-btn, .gamification-modal .gamification-next, .swal2-popup.linkmedme-modal .swal2-confirm:not(.swal2-confirm-danger), .lm-lang-confirm-dialog .lm-lang-btn-confirm) {
  background: #247486 !important;
  border-color: #2f8ca0 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] body :is(.img-modal .img-modal-btn, .gamification-modal .gamification-next, .swal2-popup.linkmedme-modal .swal2-confirm:not(.swal2-confirm-danger), .lm-lang-confirm-dialog .lm-lang-btn-confirm):hover:not(:disabled) {
  background: #2d899d !important;
  border-color: #3da3b8 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .lm-lang-confirm-dialog .lm-lang-btn-cancel {
  background: #1b2c39 !important;
  border-color: #315063 !important;
  color: #dce8f0 !important;
}
html[data-theme="dark"] .lm-lang-confirm-dialog .lm-lang-btn-cancel:hover {
  background: #243949 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .lm-theme-option-btn:hover,
html[data-theme="dark"] .lm-language-options a:hover {
  background: #1e3140 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .lm-select-search-wrap {
  background: #15212b !important;
  border-bottom-color: #253847 !important;
}
html[data-theme="dark"] .lm-select-search-wrap > i {
  color: #8fa6b5 !important;
}
html[data-theme="dark"] #share-post-modal .share-emoji-picker {
  background: #15212b !important;
  border-color: #283d4e !important;
  color: #e6eff5 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .5) !important;
}
html[data-theme="dark"] #share-post-modal .share-emoji-search {
  background: #0f1922 !important;
  border-color: #2c4152 !important;
  color: #e6eff5 !important;
}
html[data-theme="dark"] #share-post-modal .share-emoji-category {
  background: #1a2936 !important;
  border-color: #2a4052 !important;
  color: #b7ccd8 !important;
}
html[data-theme="dark"] #share-post-modal .share-emoji-category:hover {
  background: #233747 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] #share-post-modal .share-emoji-category[aria-pressed="true"] {
  background: #247486 !important;
  border-color: #38a3b8 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] #share-post-modal .share-emoji-item:hover,
html[data-theme="dark"] #share-post-modal .share-emoji-item:focus-visible {
  background: #223545 !important;
}
html[data-theme="dark"] #share-post-modal .share-emoji-empty {
  color: #9cb3c2 !important;
}
html[data-theme="dark"] .swal2-validation-message {
  background: #1c2c38 !important;
  color: #fca5a5 !important;
}

#container-configuracoes-usuario { transition: opacity .18s ease; }
#container-configuracoes-usuario.lm-view-settling { opacity: 0 !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { #container-configuracoes-usuario { transition: none; } }

.post-image-overlay.is-loading::after { content: ""; position: fixed; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #9dd0d4; animation: lm-ovl-spin .7s linear infinite; pointer-events: none; z-index: 3; }
.post-image-overlay.is-loading .post-image-fullscreen { opacity: .55; transition: opacity .15s ease; }
@keyframes lm-ovl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .post-image-overlay.is-loading::after { animation-duration: 1.6s; } }

html[data-theme="dark"] :is(img[src*="default_perfil_img"], img.is-default-photo) {
  filter: brightness(0.44) contrast(2.6) sepia(1) hue-rotate(161deg) saturate(1.75) !important;
}

.lm-swipe-hint {
  display: none;
}

@media (max-width: 991.98px),
       (max-width: 1024px) and (orientation: portrait),
       (orientation: portrait) and (hover: none) and (pointer: coarse) and (max-width: 1200px),
       (hover: none) and (pointer: coarse) and (orientation: landscape) and (max-height: 540px) {
  .lm-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    width: 100%;
    box-sizing: border-box;
    margin: 4px 0 0;
    padding: 0 2px;
    color: #65828a;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.18s ease;
  }
  .lm-swipe-hint[hidden] {
    display: none !important;
  }
  .lm-swipe-hint.is-inset {
    margin: 4px 0 6px;
    padding: 0 14px;
  }
  .lm-swipe-hint.is-tight-top {
    margin: -6px 0 10px;
  }
  .lm-swipe-hint.is-on-dark {
    color: rgba(255, 255, 255, 0.72);
    padding: 0 12px;
  }
  .lm-swipe-hint i {
    font-size: 0.66rem;
    color: inherit !important;
  }
  .lm-swipe-hint.is-at-end {
    opacity: 0.35;
  }
  html[data-theme="dark"] .lm-swipe-hint {
    color: #8fb0ba;
  }
}
html[data-theme="dark"] {
  --bs-secondary-color: #8fa6b8;
}
html[data-theme="dark"] .badge-crm-verified { color: #34d399 !important; }
html[data-theme="dark"] .badge-crm-verified:hover { color: #6ee7b7 !important; }
html[data-theme="dark"] :is(input, textarea, .form-control)::placeholder {
  color: #8fa6b8 !important;
  opacity: 1 !important;
}
