/* Tema escuro Radar */
:root {
    --radar-primary: #001C72;
    --radar-primary-hover: #002a9e;
    --radar-primary-rgb: 0, 28, 114;
    --radar-bg: #050819;
    --radar-bg-elevated: #0e1638;
    --radar-bg-sidebar: #000f3d;
    --radar-border-subtle: #1e2a52;
    --radar-text-main: #e8ecff;
    --radar-text-muted: #a8b4e8;
    --radar-heading: #ffffff;
    /* Destaque (ciano): harmoniza com hovers/linha ativa da aprovaÃ§Ã£o de horas, distinto do azul primÃ¡rio */
    --radar-accent-line: rgb(110, 223, 246);
    --radar-accent-rgb: 110, 223, 246;
    --radar-card-radius: 0.75rem;
    --radar-table-radius: 0.65rem;
}

.radar-body {
    background-color: var(--radar-bg);
    color: var(--radar-text-main);
    font-weight: 400;
    overflow-x: hidden;
}

/* Bootstrap Icons sÃ³ em botÃµes: brancos (labels, badges, tÃ­tulos etc. usam cor semÃ¢ntica / herdada) */
.radar-body .btn i.bi,
.login-page-body .btn i.bi {
    color: #ffffff !important;
}

/* Garantir contraste: todo texto na Ã¡rea principal legÃ­vel */
.radar-main,
.radar-main p,
.radar-main li,
.radar-main dd,
.radar-main td,
.radar-main th,
.radar-main label,
.radar-main .form-label,
.radar-main .card-subtitle,
.radar-main .navbar-text {
    color: var(--radar-text-main);
}

.radar-main .text-muted,
.radar-main .card-subtitle.text-muted,
.radar-main .form-text,
.radar-main thead th {
    color: var(--radar-text-muted) !important;
}

.radar-layout {
    min-height: 100vh;
    min-width: 0;
}

.radar-sidebar {
    flex-shrink: 0;
    width: 250px;
    max-width: 250px;
    background: var(--radar-bg-sidebar);
    color: var(--radar-text-main);
    padding: 1.5rem 1rem;
    border-right: 1px solid var(--radar-border-subtle);
}

.radar-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--radar-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 1.1rem;
}

.radar-logo-text {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.radar-logo-img {
    height: 32px;
    width: auto;
}

.radar-sidebar-toggle {
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--radar-border-subtle) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--radar-text-main) !important;
    border-radius: 0.5rem;
    padding: 0;
}

.radar-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.radar-sidebar-toggle .bi {
    color: inherit !important;
}

.radar-layout.radar-sidebar-collapsed .radar-sidebar {
    width: 76px;
    max-width: 76px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.radar-layout.radar-sidebar-collapsed .radar-logo {
    justify-content: center;
}

.radar-layout.radar-sidebar-collapsed .radar-logo-img {
    display: none;
}

.radar-layout.radar-sidebar-collapsed .radar-section-title,
.radar-layout.radar-sidebar-collapsed .radar-sidebar-footer .small {
    display: none;
}

.radar-layout.radar-sidebar-collapsed .radar-nav-link {
    justify-content: center;
    font-size: 0;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

.radar-layout.radar-sidebar-collapsed .radar-nav-link i {
    margin-right: 0 !important;
    font-size: 1.05rem;
}

.radar-section-title {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--radar-text-muted);
    margin-bottom: 0.35rem;
}

.radar-nav {
    margin-bottom: 0.5rem;
}

.radar-nav-link {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.6rem;
    border-radius: 0.45rem;
    color: var(--radar-text-muted);
    font-size: 0.92rem;
}

.radar-nav-link i {
    font-size: 1rem;
}

.radar-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.radar-nav-link.active {
    background-color: var(--radar-primary);
    color: #ffffff;
}

.radar-sidebar-footer {
    border-top: 1px solid var(--radar-border-subtle);
}

.radar-main {
    background-color: var(--radar-bg);
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: hidden;
}

main.container-fluid {
    max-width: 1600px;
    min-width: 0;
    padding-top: 2.5rem !important;
    padding-bottom: 2rem !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

/* Ãrea de conteÃºdo: espaÃ§amento e tÃ­tulos legÃ­veis */
.radar-main main h1,
.radar-main main h2,
.radar-main main h3,
.radar-main main h4,
.radar-main main h5,
.radar-main main h6 {
    color: var(--radar-heading) !important;
    font-weight: 600;
}

.radar-main main .card-title {
    color: var(--radar-heading) !important;
}

/* Bloco de cabeÃ§alho da pÃ¡gina (tÃ­tulo + descriÃ§Ã£o) */
.radar-page-header {
    margin-bottom: 1.5rem;
}

.radar-page-header h1,
.radar-page-header h2 {
    margin-bottom: 0.25rem;
}

.radar-page-header p {
    margin-bottom: 0;
}

/* CabeÃ§alho: bloco de aÃ§Ãµes Ã  direita; ordem no DOM = esquerdaâ†’direita (Ãºltimo = mais Ã  direita, ex.: Voltar) */
.radar-page-header .radar-page-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    flex-shrink: 0;
}

/* BotÃµes agrupados sem wrapper __actions (ex.: div.d-flex gap-2): mantÃ©m alinhamento Ã  direita ao quebrar linha */
.radar-page-header > .d-flex:where(:has(.btn), :has(.dropdown)) {
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    flex-shrink: 0;
}

/* BotÃ£o Ãºnico como filho direto do cabeÃ§alho (ex.: â€œNova alocaÃ§Ã£oâ€) */
.radar-page-header.d-flex > a.btn {
    margin-left: auto;
    flex-shrink: 0;
}

/* Rodapé de formulário: ações alinhadas à direita da área de conteúdo */
.radar-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

/* Botões de ação com largura uniforme (toolbars, modais, formulários) */
.radar-btn-toolbar .btn:not(.btn-icon-action),
.radar-form-actions .btn:not(.btn-icon-action),
.radar-modal-footer-actions .btn:not(.btn-icon-action),
.radar-form-panel__footer .btn:not(.btn-icon-action),
.radar-page-header__actions .btn:not(.btn-icon-action) {
    min-width: 8.5rem;
    min-height: 2.375rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.radar-btn-toolbar .btn-sm:not(.btn-icon-action),
.radar-form-actions .btn-sm:not(.btn-icon-action),
.radar-modal-footer-actions .btn-sm:not(.btn-icon-action),
.radar-form-panel__footer .btn-sm:not(.btn-icon-action),
.radar-page-header__actions .btn-sm:not(.btn-icon-action) {
    min-width: 8.5rem;
    min-height: 2rem;
}

/* Modais: ações alinhadas à esquerda — Salvar primeiro, Cancelar depois (padrão GestãoCursos) */
.modal-footer.radar-modal-footer-actions,
.radar-modal .modal-footer.radar-modal-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    flex-direction: row;
}

.radar-modal-footer-actions .btn-primary,
.radar-modal-footer-actions button[type="submit"]:not([data-bs-dismiss]) {
    order: 1;
}

.radar-modal-footer-actions .btn-secondary,
.radar-modal-footer-actions [data-bs-dismiss] {
    order: 2;
}

/* Modal no tema escuro — painel lateral (entra pela direita) */
.radar-modal .modal-content {
    background-color: var(--radar-bg-elevated);
    border-color: var(--radar-border-subtle);
    color: var(--radar-text-main);
}

.radar-modal .modal-header,
.radar-modal .modal-footer {
    border-color: var(--radar-border-subtle);
}

.radar-modal .modal-title {
    color: var(--radar-heading);
    font-weight: 600;
    font-size: 1.05rem;
}

.radar-modal .modal-dialog {
    margin: 0 0 0 auto;
    max-width: min(100%, 34rem);
    height: 100vh;
    transform: translateX(110%);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.22s ease;
}

.radar-modal.fade.show .modal-dialog,
.radar-modal.show .modal-dialog {
    transform: translateX(0);
    opacity: 1;
}

.radar-modal.fade:not(.show) .modal-dialog {
    transform: translateX(110%);
    opacity: 0;
}

.radar-modal .modal-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    border-radius: 0;
    border-left: 1px solid var(--radar-border-subtle);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
}

.radar-modal .modal-content > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.radar-modal .modal-header,
.radar-modal .modal-footer {
    flex-shrink: 0;
}

.radar-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.radar-topbar {
    background-color: var(--radar-bg-elevated);
    border-bottom: 1px solid var(--radar-border-subtle);
}

.radar-topbar-title {
    font-weight: 600;
    font-size: 1rem;
}

.radar-topbar-subtitle {
    font-size: 0.8rem;
}

/* Tipografia e links */
a {
    color: var(--radar-primary);
}

a:hover {
    color: #3f63ff;
}

.text-primary {
    color: var(--radar-primary) !important;
}

/* TÃ­tulos de pÃ¡gina: branco para contraste no fundo escuro */
.radar-main main .text-primary.h1,
.radar-main main .text-primary.h2,
.radar-main main .text-primary.h3,
.radar-main main h1.text-primary,
.radar-main main h2.text-primary,
.radar-main main h3.text-primary {
    color: var(--radar-heading) !important;
}

.text-muted {
    color: var(--radar-text-muted) !important;
}

/* Listas de definiÃ§Ã£o e conteÃºdo secundÃ¡rio */
.radar-main dl.row dt {
    color: var(--radar-text-muted);
    font-weight: 500;
}

.radar-main dl.row dd {
    color: var(--radar-text-main);
}

/* Cards: visual fluido e amigÃ¡vel */
.card {
    background-color: var(--radar-bg-elevated);
    color: var(--radar-text-main);
    border: 1px solid var(--radar-border-subtle);
    border-radius: var(--radar-card-radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.card-body {
    padding: 1.25rem 1.5rem;
}

.card .card-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: var(--radar-text-muted) !important;
}

.card .card-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--radar-heading) !important;
    margin-bottom: 0;
}

/* Tabelas: container arredondado e cÃ©lulas mais confortÃ¡veis */
.radar-main .table-responsive {
    border-radius: var(--radar-table-radius);
    overflow: hidden;
    border: 1px solid var(--radar-border-subtle);
    background-color: var(--radar-bg-elevated);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, 0.06);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    --bs-table-striped-color: var(--radar-text-main);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.06);
    --bs-table-hover-color: var(--radar-text-main);

    color: var(--radar-text-main);
    background-color: transparent;
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.06);
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.table thead th {
    color: var(--radar-text-muted) !important;
    border-bottom-color: var(--radar-border-subtle);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.85rem 1rem;
}

.table tbody td {
    color: var(--radar-text-main);
    font-size: 0.95rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.table-hover tbody .allocation-group-detail-collapse.show .allocation-group-inner-table tbody tr:hover > td {
    background-color: rgba(255, 255, 255, 0.06);
}

.table-hover tbody tr.allocation-group-summary-row.is-active > td {
    background-color: rgba(110, 223, 246, 0.14);
}

/* Coluna de aÃ§Ãµes: mantÃ©m botÃµes e forms na mesma linha (evita quebra e sobreposiÃ§Ã£o) */
.radar-main .table tbody td.text-end,
.radar-main .table thead th.text-end {
    white-space: nowrap;
    vertical-align: middle;
}

.radar-main .table tbody td.text-end form.d-inline {
    display: inline-flex !important;
    align-items: center;
    vertical-align: middle;
}

.form-label,
.radar-main label {
    color: var(--radar-text-muted) !important;
    font-weight: 500;
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
}

.form-control,
.form-select {
    background-color: rgba(10, 20, 50, 0.6);
    border: 1px solid var(--radar-border-subtle);
    color: #ffffff !important;
    caret-color: #ffffff;
    border-radius: 0.75rem;
    padding: 0.6rem 1rem;
    font-size: 0.98rem;
    min-height: 2.75rem;
}

.form-check-input {
    background-color: rgba(10, 20, 50, 0.6);
    border: 1px solid var(--radar-border-subtle);
    color: #ffffff !important;
    caret-color: #ffffff;
    border-radius: 0.35rem;
}

.form-check-label {
    color: var(--radar-text-main) !important;
}

.form-control:disabled,
.form-select:disabled {
    background-color: rgba(10, 20, 50, 0.45) !important;
    border-color: var(--radar-border-subtle) !important;
    color: var(--radar-text-muted) !important;
    -webkit-text-fill-color: var(--radar-text-muted);
    opacity: 1;
    cursor: not-allowed;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.form-control[readonly],
.form-select[readonly] {
    background-color: rgba(10, 20, 50, 0.45) !important;
    border-color: var(--radar-border-subtle) !important;
    color: var(--radar-text-muted) !important;
    -webkit-text-fill-color: var(--radar-text-muted);
    opacity: 1;
    cursor: default;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    background-color: #050e2a;
    border-color: var(--radar-primary);
    box-shadow: 0 0 0 0.15rem rgba(0, 28, 114, 0.4);
}

.form-control::placeholder {
    color: var(--radar-text-muted);
}

/* Melhor comportamento de inputs de data e selects no tema escuro */
.radar-body {
    color-scheme: dark;
}

.form-select option {
    background-color: #050819;
    color: #ffffff;
}

/* Texto dentro do campo date em alguns navegadores */
input[type="date"].form-control,
input[type="datetime-local"].form-control {
    color: #ffffff !important;
}

/* Alertas: texto legÃ­vel no tema escuro */
.radar-main .alert {
    border-radius: 0.5rem;
}

.radar-main .alert-success { background-color: rgba(25, 135, 84, 0.25); border-color: rgba(25, 135, 84, 0.5); color: #b8e0ce; }
.radar-main .alert-danger,
.radar-main .alert-error { background-color: rgba(220, 53, 69, 0.2); border-color: rgba(220, 53, 69, 0.5); color: #f5c2c7; }
.radar-main .alert-warning { background-color: rgba(255, 193, 7, 0.15); border-color: rgba(255, 193, 7, 0.4); color: #e8e0b8; }
.radar-main .alert-info { background-color: rgba(13, 202, 240, 0.15); border-color: rgba(13, 202, 240, 0.4); color: #b8e8f0; }

/* BotÃµes: todos com fundo sÃ³lido */
.btn-primary,
.page-link,
.list-group-item.active {
    background-color: var(--radar-primary) !important;
    border-color: var(--radar-primary) !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: var(--radar-primary-hover) !important;
    border-color: var(--radar-primary-hover) !important;
    color: #ffffff !important;
}

.btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
}

.btn-secondary:hover {
    background-color: #5c636a !important;
    border-color: #565e64 !important;
    color: #ffffff !important;
}

.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
}

.btn-danger:hover {
    background-color: #bb2d3b !important;
    border-color: #b02a37 !important;
    color: #ffffff !important;
}

.btn-warning {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #050819 !important;
}

.btn-warning:hover {
    background-color: #ffca2c !important;
    border-color: #ffc720 !important;
    color: #050819 !important;
}

.btn-success {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: #ffffff !important;
}

.btn-success:hover {
    background-color: #157347 !important;
    border-color: #146c43 !important;
    color: #ffffff !important;
}

.btn-outline-primary {
    background-color: var(--radar-primary) !important;
    border-color: var(--radar-primary) !important;
    color: #ffffff !important;
}

.btn-outline-primary:hover {
    background-color: #002a9e !important;
    border-color: #002a9e !important;
    color: #ffffff !important;
}

.btn-outline-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
}

.btn-outline-secondary:hover {
    background-color: #5c636a !important;
    border-color: #565e64 !important;
    color: #ffffff !important;
}

.btn-outline-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
}

.btn-outline-danger:hover {
    background-color: #bb2d3b !important;
    border-color: #b02a37 !important;
    color: #ffffff !important;
}

.btn-outline-warning {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #050819 !important;
}

.btn-outline-warning:hover {
    background-color: #ffca2c !important;
    border-color: #ffc720 !important;
    color: #050819 !important;
}

.btn-info,
.btn-outline-info {
    background-color: #0dcaf0 !important;
    border-color: #0dcaf0 !important;
    color: #050819 !important;
    font-weight: 600;
}

.btn-info:hover,
.btn-outline-info:hover {
    background-color: #31d2f2 !important;
    border-color: #31d2f2 !important;
    color: #050819 !important;
}

.login-page-body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.login-split {
    display: flex;
    min-height: 100vh;
}

.login-form-side {
    flex: 0 0 50%;
    min-height: 100vh;
    background: linear-gradient(160deg, #050819 0%, #0c1230 50%, #000f3d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-logo-img {
    height: 40px;
    width: auto;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.login-subtitle {
    color: var(--radar-text-muted);
    margin-bottom: 2rem;
}

.login-page-body .text-muted,
.login-page-body .form-text {
    color: var(--radar-text-muted) !important;
}

.login-form-side .form-check {
    padding-left: 1.75em;
}

.login-form-side .form-check-label {
    color: var(--radar-text-muted) !important;
    font-weight: 500;
}

.login-form-side .form-check-input:checked {
    background-color: var(--radar-primary);
    border-color: var(--radar-primary);
}

.login-form .letter-spacing-wide {
    letter-spacing: 0.35em;
}

.login-form .form-label {
    color: var(--radar-text-muted);
    font-weight: 500;
}

.login-form .form-control {
    background-color: rgba(10, 20, 50, 0.6);
    border: 1px solid var(--radar-border-subtle);
    color: #ffffff !important;
    border-radius: 0.5rem;
    padding: 0.6rem 0.85rem;
}

.login-form .form-control::placeholder {
    color: var(--radar-text-muted);
}

.login-form .input-group-text {
    background-color: rgba(10, 20, 50, 0.8);
    border: 1px solid var(--radar-border-subtle);
    border-right: none;
    color: var(--radar-text-muted);
    border-radius: 0.5rem 0 0 0.5rem;
}

.login-form .input-group .form-control {
    border-radius: 0 0.5rem 0.5rem 0;
    border-left: none;
}

.login-form .input-group:focus-within .input-group-text,
.login-form .input-group:focus-within .form-control {
    border-color: var(--radar-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 28, 114, 0.25);
}

.btn-login {
    background-color: var(--radar-primary) !important;
    border-color: var(--radar-primary) !important;
    font-weight: 600;
    border-radius: 0.5rem;
}

.btn-login:hover {
    background-color: #002a9e !important;
    border-color: #002a9e !important;
}

.login-hint {
    color: var(--radar-text-muted);
}

.login-hint strong {
    color: var(--radar-text-main);
}

.login-page-link,
.login-page-link:visited,
.login-page-link:hover,
.login-page-link:focus,
.login-page-link:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

.login-page-link:hover,
.login-page-link:focus {
    opacity: 0.9;
}

.login-form-side .alert {
    border-radius: 0.5rem;
}

.login-form-side .alert-danger,
.login-form-side .alert-error {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
    color: #f5c2c7;
}

.login-form-side .alert-success {
    background-color: rgba(25, 135, 84, 0.25);
    border-color: rgba(25, 135, 84, 0.5);
    color: #b8e0ce;
}

/* Toasts globais no canto superior direito (fundo sÃ³lido) */
.radar-toast {
    background-color: var(--radar-bg-elevated);
    color: var(--radar-text-main);
    border-radius: 0.6rem;
    border: 1px solid var(--radar-border-subtle);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    font-size: 0.9rem;
}

.radar-toast-success {
    background-color: #198754;
    border: 1px solid #157347;
    border-left-width: 3px;
    border-left-color: #146c43;
    color: #ffffff;
}

.radar-toast-danger {
    background-color: #dc3545;
    border: 1px solid #b02a37;
    border-left-width: 3px;
    border-left-color: #a52834;
    color: #ffffff;
}

.radar-toast-warning {
    background-color: #ffc107;
    border: 1px solid #e0a800;
    border-left-width: 3px;
    border-left-color: #cc9a06;
    color: #212529;
}

.radar-toast-info {
    background-color: #0dcaf0;
    border: 1px solid #0aa2c0;
    border-left-width: 3px;
    border-left-color: #0997b5;
    color: #055160;
}

.radar-toast-success .btn-close-white,
.radar-toast-danger .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.radar-toast-warning .btn-close-white,
.radar-toast-info .btn-close-white {
    filter: none;
    opacity: 0.55;
}

#radar-toast-container .toast.text-bg-primary {
    background-color: var(--radar-primary) !important;
    color: #ffffff !important;
}

/* Stack Ãºnico (#radar-toast-container): mÃºltiplos toasts em coluna sem encavalamento */
.radar-toast-stack {
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    width: auto;
    max-width: min(420px, calc(100vw - 1.5rem));
    z-index: 1090;
    pointer-events: none;
}

.radar-toast-stack > .toast {
    pointer-events: auto;
    margin-bottom: 0 !important;
    width: 100%;
    max-width: 100%;
}

/* BotÃµes em envio: spinner e trava no primeiro clique */
.btn .spinner-border-sm {
    vertical-align: middle;
}
.btn:disabled {
    cursor: not-allowed;
    pointer-events: none;
}

/* Botões — padrão Itera360Pro (tamanho, ícones e conforto de clique) */
.btn {
    padding: 0.55rem 1.05rem;
    border-radius: 0.65rem;
}

.btn-sm {
    padding: 0.35rem 0.8rem;
    border-radius: 0.55rem;
    font-size: 0.86rem;
}

.btn.btn-icon-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0;
    line-height: 1 !important;
    box-sizing: border-box;
}

.btn.btn-icon-action:not(.btn-sm):not(.w-100) {
    padding: 0.5rem !important;
    min-width: 2.5rem;
    min-height: 2.5rem;
}

.btn-sm.btn-icon-action:not(.w-100) {
    padding: 0.4rem !important;
    min-width: 2.25rem;
    min-height: 2.25rem;
}

.btn.btn-icon-action .bi {
    font-size: 1.0625rem;
    line-height: 1;
    flex-shrink: 0;
}

.btn.btn-icon-action .bi::before {
    vertical-align: 0;
    line-height: 1;
}

.btn.btn-icon-action.w-100 {
    min-height: 2.75rem;
    padding: 0.55rem 1rem !important;
}

/* Avatar do profissional (formulário e exibição) */
.radar-avatar-wrap {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}
.radar-avatar-preview,
.radar-avatar-placeholder {
    width: 120px;
    height: 120px;
    object-fit: cover;
}
.radar-avatar-placeholder {
    background: var(--radar-bg-elevated);
    border: 2px dashed var(--radar-border-subtle);
}
.radar-avatar-list {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}
.radar-avatar-list-wrap {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.radar-avatar-list-fallback {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    object-fit: unset;
}
.radar-avatar-view {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
}

.radar-avatar-view-wrap {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.radar-avatar-view-fallback {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1;
    object-fit: unset;
}

.radar-apps-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 0.5rem;
    border: 1px solid var(--radar-border-subtle) !important;
    background: var(--radar-bg-elevated) !important;
    color: var(--radar-text-main) !important;
    font-size: 1.05rem;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.radar-apps-menu-btn:hover,
.radar-apps-menu-btn:focus,
.radar-apps-menu-btn:active,
.radar-apps-menu-btn.show {
    border-color: rgba(110, 223, 246, 0.55) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--radar-text-main) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24) !important;
}

.radar-apps-menu-btn::after {
    display: none;
}

.radar-apps-menu {
    min-width: 11rem;
}

.radar-account-menu-btn {
    min-height: 36px;
    padding: 0.35rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid var(--radar-border-subtle) !important;
    background: var(--radar-bg-elevated) !important;
    color: var(--radar-text-main) !important;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.1;
    gap: 0.45rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.radar-account-menu-btn:hover,
.radar-account-menu-btn:focus,
.radar-account-menu-btn:active,
.radar-account-menu-btn.show {
    border-color: rgba(110, 223, 246, 0.55) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--radar-text-main) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24) !important;
}

.radar-account-menu-btn::after {
    margin-left: 0.2rem;
    vertical-align: 0.08em;
}

.radar-account-menu-btn__avatar {
    width: 26px;
    height: 26px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.radar-account-menu-avatar-fallback {
    font-size: 0.62rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

.radar-account-menu-btn__icon {
    font-size: 1.05rem;
}

.radar-account-menu-btn__label {
    line-height: 1.1;
}

.radar-td-ellipsis {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-image-side {
    flex: 0 0 50%;
    min-height: 100vh;
    background-color: #001C72;
    background-image: url('/static/img/login.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 991.98px) {
    .login-split {
        flex-direction: column;
    }
    .login-form-side,
    .login-image-side {
        flex: 1 1 auto;
        min-height: 50vh;
    }
}

.radar-confirm-panel.offcanvas {
    width: min(100%, 26rem);
    background-color: var(--radar-bg-elevated);
    border-left: 1px solid var(--radar-border-subtle);
    color: var(--radar-text-main);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
}

.radar-confirm-panel .offcanvas-header {
    border-color: var(--radar-border-subtle) !important;
}

.radar-confirm-panel .offcanvas-title {
    color: var(--radar-heading);
    font-weight: 600;
    font-size: 1.05rem;
}

.radar-confirm-panel__message {
    color: var(--radar-text-main);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.radar-confirm-panel .offcanvas-body {
    padding: 1.25rem 1.35rem;
    min-height: 12rem;
}

.radar-confirm-panel__actions .btn {
    min-width: 6.5rem;
}

/* FormulÃ¡rios em painel lateral (ex.: usuÃ¡rios): desliza da direita, mais largo que confirmaÃ§Ã£o */
.radar-form-panel.offcanvas {
    width: min(100%, 42rem);
    background-color: var(--radar-bg-elevated);
    border-left: 1px solid var(--radar-border-subtle);
    color: var(--radar-text-main);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
}

.radar-form-panel--50.offcanvas {
    width: min(100%, 50vw);
}

.radar-form-panel--60.offcanvas {
    width: min(100%, 60vw);
}

.radar-form-panel .offcanvas-header {
    border-color: var(--radar-border-subtle) !important;
}

.radar-form-panel .offcanvas-title {
    color: var(--radar-heading);
    font-weight: 600;
    font-size: 1.05rem;
}

.radar-form-panel__mount {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.radar-form-panel__mount > form.radar-form-panel__form,
.radar-form-panel__mount > .radar-form-panel__form {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.radar-form-panel__form-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.5rem 1rem 1rem;
}

.radar-form-panel__footer {
    border-color: var(--radar-border-subtle) !important;
    background-color: var(--radar-bg-elevated);
}

/* Fallback de espacamento dos botoes no rodape do painel */
.radar-form-panel__footer > .d-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.radar-form-panel__footer .btn + .btn {
    margin-left: 0.5rem;
}

.radar-main .dropdown-menu {
    background-color: var(--radar-bg-elevated);
    border-color: var(--radar-border-subtle);
}

.radar-main .dropdown-item {
    color: var(--radar-text-main);
}

.radar-main .dropdown-item:hover,
.radar-main .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.radar-main .dropdown-divider {
    border-color: var(--radar-border-subtle);
}

/* Frentes — estrutura visual igual turmas (GestãoCursos) */
.turma-detalhe-page {
    width: 100%;
    max-width: 100%;
}

.evaluation-profile-header {
    border-radius: var(--radar-card-radius);
    overflow: hidden;
    border: 1px solid var(--radar-border-subtle);
    background: var(--radar-bg-elevated);
    border-left-width: 4px;
}

.evaluation-profile-header--tier-neutral {
    border-left-color: rgba(var(--radar-accent-rgb), 0.45);
}

.evaluation-profile-header__label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--radar-text-muted);
    margin-bottom: 0.25rem;
}

.evaluation-profile-header__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--radar-text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--radar-border-subtle);
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
}

.evaluation-profile-header__chip .bi {
    font-size: 0.9em;
    opacity: 0.9;
}

.evaluation-fact-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background-color: rgba(var(--radar-primary-rgb), 0.35);
    color: var(--radar-text-main);
    font-size: 0.95rem;
}

.turma-detalhe-hero,
.turma-detalhe-hub {
    width: 100%;
}

.turma-detalhe-hero__inner {
    padding: 1.35rem 1.5rem 1.5rem;
}

@media (min-width: 992px) {
    .turma-detalhe-hero__inner {
        padding: 1.5rem 1.75rem 1.65rem;
    }
}

.turma-detalhe-hero__icon {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.turma-detalhe-hero__lead {
    font-size: 0.95rem;
    color: var(--radar-text-muted);
    line-height: 1.5;
}

.turma-detalhe-stat-card {
    padding: 1rem 1.15rem;
    border: 1px solid var(--radar-border-subtle);
    border-radius: var(--radar-card-radius);
    background: rgba(255, 255, 255, 0.03);
    min-height: 100%;
}

.turma-detalhe-stat-card__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--radar-text-muted);
    margin-bottom: 0.45rem;
}

.turma-detalhe-stat-card__value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--radar-heading);
    line-height: 1.35;
    word-break: break-word;
}

@media (min-width: 992px) {
    .turma-detalhe-stat-card__value {
        font-size: 1.15rem;
    }
}

.turma-detalhe-chips {
    border-top: 1px solid var(--radar-border-subtle);
}

.turma-detalhe-chips .evaluation-profile-header__chip {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

/* Turma — topo unificado (detalhe) */
.turma-topo {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.1rem 1.15rem 1.2rem;
    border-radius: calc(var(--radar-card-radius) + 0.15rem);
    border: 1px solid rgba(var(--radar-accent-rgb), 0.18);
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(var(--frente-hero-accent-rgb), 0.14), transparent 55%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(var(--radar-primary-rgb), 0.28), transparent 50%),
        linear-gradient(165deg, rgba(14, 22, 56, 0.98) 0%, rgba(8, 12, 32, 0.98) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 12px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.turma-topo::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--frente-hero-accent) 90%, #fff 10%) 0%,
        rgba(var(--frente-hero-accent-rgb), 0.35) 45%,
        transparent 100%
    );
    pointer-events: none;
}

.turma-topo__header {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.turma-topo__identidade {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.turma-topo__icone-wrap {
    position: relative;
    flex-shrink: 0;
    line-height: 0;
}

.turma-topo__icone-anel {
    position: absolute;
    inset: -0.3rem;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(var(--frente-hero-accent-rgb), 0.2) 0%, transparent 72%);
    border: 2px solid rgba(var(--frente-hero-accent-rgb), 0.3);
    pointer-events: none;
}

.turma-topo__icone {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.1rem;
    height: 4.1rem;
    border-radius: 50%;
    font-size: 1.45rem;
    color: var(--frente-hero-accent);
    background: linear-gradient(
        145deg,
        rgba(var(--radar-primary-rgb), 0.55) 0%,
        rgba(var(--frente-hero-accent-rgb), 0.12) 100%
    );
    box-shadow:
        0 0 0 3px rgba(var(--frente-hero-accent-rgb), 0.4),
        0 10px 24px rgba(0, 0, 0, 0.32);
}

.turma-topo__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.turma-topo__nome {
    margin: 0 0 0.25rem;
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--radar-heading);
}

.turma-topo__curso {
    font-size: 0.92rem;
    color: var(--radar-text-muted);
    line-height: 1.45;
}

.turma-topo__corpo {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.turma-topo__painel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0.5rem;
}

.turma-topo__stat {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0.65rem 0.7rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.035);
    color: inherit;
    text-align: left;
    overflow: hidden;
}

button.turma-topo__stat {
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

button.turma-topo__stat:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--frente-hero-accent-rgb), 0.4);
    background: rgba(255, 255, 255, 0.055);
}

.turma-topo__stat-cabeca {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.turma-topo__stat-rotulo {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--radar-text-muted);
}

.turma-topo__stat-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 0.4rem;
    font-size: 0.72rem;
    color: var(--frente-hero-accent);
    background: rgba(var(--frente-hero-accent-rgb), 0.12);
    border: 1px solid rgba(var(--frente-hero-accent-rgb), 0.22);
}

.turma-topo__stat-valor {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--radar-heading);
}

.turma-topo__stat-extra {
    font-size: 0.68rem;
    color: var(--radar-text-muted);
}

.turma-topo__modulo {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(var(--frente-hero-accent-rgb), 0.22);
    background: rgba(var(--frente-hero-accent-rgb), 0.06);
}

.turma-topo__modulo-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 0.55rem;
    font-size: 0.95rem;
    color: var(--frente-hero-accent);
    background: rgba(var(--frente-hero-accent-rgb), 0.12);
    border: 1px solid rgba(var(--frente-hero-accent-rgb), 0.22);
}

.turma-topo__modulo-rotulo {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--radar-text-muted);
}

.turma-topo__modulo-texto {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--radar-heading);
}

.radar-page-header .radar-page-header__actions form {
    display: inline-flex;
}

/* Frente — hero do detalhe (visual moderno) */
.frente-detalhe-hero {
    --frente-hero-accent: var(--radar-accent-line);
    --frente-hero-accent-rgb: var(--radar-accent-rgb);
    position: relative;
}
.frente-detalhe-hero--tranquilo {
    --frente-hero-accent: rgb(34, 197, 94);
    --frente-hero-accent-rgb: 34, 197, 94;
}
.frente-detalhe-hero--atencao {
    --frente-hero-accent: rgb(251, 191, 36);
    --frente-hero-accent-rgb: 251, 191, 36;
}
.frente-detalhe-hero--critico {
    --frente-hero-accent: rgb(248, 113, 113);
    --frente-hero-accent-rgb: 248, 113, 113;
}
.frente-detalhe-hero::before {
    content: none;
}
.frente-detalhe-hero::after {
    content: none;
}
.frente-detalhe-hero__inner {
    position: relative;
    z-index: 1;
    padding: 0;
}
@media (min-width: 992px) {
    .frente-detalhe-hero__inner {
        padding: 0;
    }
}
.frente-detalhe-hero__showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    align-items: stretch;
}
@media (min-width: 768px) {
    .frente-detalhe-hero__showcase {
        gap: 0.9rem;
    }
}
@media (min-width: 992px) {
    .frente-detalhe-hero__showcase {
        grid-template-columns: minmax(0, 1fr) minmax(18rem, 22.5rem);
        gap: 1rem;
        align-items: stretch;
    }
}

/* Frente — topo unificado (resumo + termômetro) */
.frente-topo {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.1rem 1.15rem 1.2rem;
    border-radius: calc(var(--radar-card-radius) + 0.15rem);
    border: 1px solid rgba(var(--radar-accent-rgb), 0.18);
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(var(--frente-hero-accent-rgb), 0.14), transparent 55%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(var(--radar-primary-rgb), 0.28), transparent 50%),
        linear-gradient(165deg, rgba(14, 22, 56, 0.98) 0%, rgba(8, 12, 32, 0.98) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 12px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.frente-topo::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--frente-hero-accent) 90%, #fff 10%) 0%,
        rgba(var(--frente-hero-accent-rgb), 0.35) 45%,
        transparent 100%
    );
    pointer-events: none;
}

/* Cabeçalho: identidade + ações */
.frente-topo__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.frente-topo__identidade {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}
.frente-topo__avatar-wrap {
    position: relative;
    flex-shrink: 0;
    line-height: 0;
}
.frente-topo__avatar-anel {
    position: absolute;
    inset: -0.3rem;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(var(--frente-hero-accent-rgb), 0.2) 0%, transparent 72%);
    border: 2px solid rgba(var(--frente-hero-accent-rgb), 0.3);
    pointer-events: none;
}
.frente-topo__avatar-wrap .frente-avatar,
.frente-topo__avatar.frente-avatar--xl {
    position: relative;
    z-index: 1;
    width: 4.1rem;
    height: 4.1rem;
    font-size: 1.2rem;
    box-shadow: 0 0 0 3px rgba(var(--frente-hero-accent-rgb), 0.4), 0 10px 24px rgba(0, 0, 0, 0.32);
}
.frente-topo__avatar-wrap .frente-avatar--img,
.frente-topo__avatar.frente-avatar--img {
    width: 4.1rem;
    height: 4.1rem;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(var(--frente-hero-accent-rgb), 0.45);
}
.frente-topo__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.frente-topo__nome {
    margin: 0.3rem 0 0.25rem;
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--radar-heading);
}
.frente-topo__sub {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.95rem;
    font-size: 0.75rem;
    color: var(--radar-text-muted);
}
.frente-topo__sub-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.frente-topo__sub-item .bi {
    color: var(--frente-hero-accent);
    font-size: 0.82rem;
}
/* Corpo em duas colunas: operação à esquerda, risco à direita */
.frente-topo__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}
@media (min-width: 992px) {
    .frente-topo__grid {
        grid-template-columns: minmax(0, 1fr) minmax(19rem, 23rem);
        gap: 1.1rem;
    }
}
.frente-topo__principal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}
.frente-topo__lateral {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 0;
}
.frente-topo__termometro-alvo {
    min-width: 0;
}

/* Painel de decisão (cards de estatística) */
.frente-topo__painel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0.5rem;
}
.frente-topo__stat {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0.65rem 0.7rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.035);
    color: inherit;
    text-align: left;
    overflow: hidden;
}
button.frente-topo__stat {
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
button.frente-topo__stat:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--frente-hero-accent-rgb), 0.4);
    background: rgba(255, 255, 255, 0.055);
}
.frente-topo__stat-cabeca {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}
.frente-topo__stat-rotulo {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--radar-text-muted);
}
.frente-topo__stat-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    flex-shrink: 0;
    border-radius: 0.45rem;
    font-size: 0.82rem;
    color: var(--frente-hero-accent);
    background: rgba(var(--frente-hero-accent-rgb), 0.12);
}
.frente-topo__stat-valor {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.05;
    color: var(--radar-heading);
}
.frente-topo__stat-extra {
    font-size: 0.66rem;
    line-height: 1.3;
    color: var(--radar-text-muted);
}
.frente-topo__stat-trilha {
    height: 0.28rem;
    margin-top: 0.15rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.frente-topo__stat-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3dd68c, #22c55e);
    transition: width 0.35s ease;
}
.frente-topo__stat--negativo {
    border-color: rgba(248, 113, 113, 0.32);
    background: rgba(248, 113, 113, 0.08);
}
.frente-topo__stat--negativo .frente-topo__stat-valor {
    color: #fca5a5;
}
.frente-topo__stat--negativo .frente-topo__stat-icone {
    color: #f87171;
    background: rgba(248, 113, 113, 0.14);
}
.frente-topo__stat--alerta {
    border-color: rgba(251, 191, 36, 0.32);
    background: rgba(251, 191, 36, 0.08);
}
.frente-topo__stat--alerta .frente-topo__stat-valor {
    color: #fcd34d;
}
.frente-topo__stat--alerta .frente-topo__stat-icone {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.14);
}
.frente-topo__stat--ok .frente-topo__stat-valor {
    font-size: 1rem;
    padding-top: 0.2rem;
}
.frente-topo__stat--ok .frente-topo__stat-icone {
    color: #3dd68c;
    background: rgba(61, 214, 140, 0.14);
}
.frente-topo__stat-avatares {
    display: flex;
    margin-top: 0.12rem;
}
.frente-topo__stat-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: -0.4rem;
    border-radius: 50%;
    font-size: 0.56rem;
    font-weight: 700;
    color: var(--radar-heading);
    background: linear-gradient(145deg, rgba(var(--frente-hero-accent-rgb), 0.35), rgba(var(--radar-primary-rgb), 0.55));
    border: 2px solid rgba(8, 12, 32, 0.9);
}
.frente-topo__stat-avatar:first-child {
    margin-left: 0;
}
.frente-topo__stat-avatar--mais {
    background: rgba(255, 255, 255, 0.12);
}
.frente-topo__risco {
    --frente-topo-risco-cor: var(--frente-hero-accent);
    --frente-topo-risco-rgb: var(--frente-hero-accent-rgb);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.frente-topo__risco--tranquilo {
    --frente-topo-risco-cor: rgb(34, 197, 94);
    --frente-topo-risco-rgb: 34, 197, 94;
}
.frente-topo__risco--atencao {
    --frente-topo-risco-cor: rgb(251, 191, 36);
    --frente-topo-risco-rgb: 251, 191, 36;
}
.frente-topo__risco--critico {
    --frente-topo-risco-cor: rgb(248, 113, 113);
    --frente-topo-risco-rgb: 248, 113, 113;
}
.frente-topo__risco-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.frente-topo__risco-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--frente-topo-risco-cor);
    background: rgba(var(--frente-topo-risco-rgb), 0.14);
    border: 1px solid rgba(var(--frente-topo-risco-rgb), 0.3);
}
.frente-topo__risco-corpo {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}
.frente-topo__anel {
    --ring-size: 5.5rem;
    width: var(--ring-size);
    height: var(--ring-size);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(
        from 225deg,
        var(--frente-topo-risco-cor) calc(var(--frente-termometro-nivel) * 1%),
        rgba(255, 255, 255, 0.08) 0
    );
    box-shadow: 0 0 28px rgba(var(--frente-topo-risco-rgb), 0.3);
}
.frente-topo__anel-inner {
    width: calc(var(--ring-size) - 16px);
    height: calc(var(--ring-size) - 16px);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 32, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.frente-topo__anel-valor {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--radar-heading);
    line-height: 1;
}
.frente-topo__risco-modo {
    font-size: 0.68rem;
    color: var(--radar-text-muted);
}
.frente-topo__risco-mensagem {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--radar-heading);
}
.frente-topo__risco-extra {
    margin-top: 0.3rem;
    font-size: 0.74rem;
    color: var(--radar-text-muted);
}
.frente-topo__escala {
    margin-top: 0.5rem;
}
.frente-topo__escala-trilha {
    position: relative;
    height: 0.45rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgb(34, 197, 94) 0%, rgb(34, 197, 94) 33.33%, rgb(251, 191, 36) 33.33%, rgb(251, 191, 36) 66.66%, rgb(248, 113, 113) 66.66%, rgb(248, 113, 113) 100%);
}
.frente-topo__escala-marcador {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--frente-topo-risco-cor);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(var(--frente-topo-risco-rgb), 0.3);
    transition: left 0.35s ease;
}
.frente-topo__escala-legenda {
    display: flex;
    justify-content: space-between;
    margin-top: 0.3rem;
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--radar-text-muted);
}
.frente-topo__comparativo {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
}
@media (min-width: 576px) {
    .frente-topo__comparativo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.frente-topo__comparativo-head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    font-size: 0.7rem;
    color: var(--radar-text-muted);
}
.frente-topo__comparativo-head strong {
    color: var(--radar-heading);
}
.frente-topo__comparativo-trilha {
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.frente-topo__comparativo-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    transition: width 0.35s ease;
}
.frente-topo__comparativo-fill--tempo {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.7), #60a5fa);
}
.frente-topo__comparativo-fill--tarefas {
    background: linear-gradient(90deg, #3dd68c, #22c55e);
}
.frente-topo__comparativo-fill--atraso {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.frente-topo__metricas-rapidas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
}
.frente-topo__metrica-rapida {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.08rem;
    padding: 0.4rem 0.25rem;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}
.frente-topo__metrica-rapida-valor {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--radar-heading);
    line-height: 1.1;
}
.frente-topo__metrica-rapida-rotulo {
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--radar-text-muted);
    line-height: 1.2;
}
.frente-topo__alertas {
    padding: 0.55rem 0.6rem;
    border-radius: 0.55rem;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.28);
}
.frente-topo__risco--tranquilo .frente-topo__alertas {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.28);
}
.frente-topo__alertas-titulo {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fca5a5;
    margin-bottom: 0.35rem;
}
.frente-topo__alerta-item {
    font-size: 0.76rem;
    line-height: 1.4;
    color: var(--radar-text-main);
    padding-left: 0.85rem;
    position: relative;
}
.frente-topo__alerta-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #f87171;
}
.frente-topo__secao-titulo {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--frente-hero-accent);
}
.frente-topo__secao-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}
.frente-topo__secao-dica,
.frente-topo__secao-dica-fixa {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--radar-text-muted);
}
.frente-topo__linha-tempo-trilha {
    position: relative;
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}
.frente-topo__linha-tempo-progresso {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(var(--frente-hero-accent-rgb), 0.35), var(--frente-hero-accent));
}
.frente-topo__linha-tempo-marcador {
    position: absolute;
    top: 50%;
    width: 0.65rem;
    height: 0.65rem;
    margin-left: -0.325rem;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--frente-hero-accent);
}
.frente-topo__linha-tempo-legenda {
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
    margin-top: 0.45rem;
    font-size: 0.7rem;
    color: var(--radar-text-muted);
}
.frente-topo__pipeline-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
}
.frente-topo__pipeline-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.45rem 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.03);
    border-top-width: 3px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
    color: inherit;
}
.frente-topo__pipeline-col:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.055);
}
.frente-topo__pipeline-col--pendente { border-top-color: #94a3b8; }
.frente-topo__pipeline-col--fazendo { border-top-color: #60a5fa; }
.frente-topo__pipeline-col--impedimento { border-top-color: #f59e0b; }
.frente-topo__pipeline-col--pronto { border-top-color: #3dd68c; }
.frente-topo__pipeline-valor {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--radar-heading);
}
.frente-topo__pipeline-rotulo {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--radar-text-muted);
    text-align: center;
}
.frente-topo__vazio {
    margin-top: 0.55rem;
    font-size: 0.76rem;
    color: var(--radar-text-muted);
}
.frente-topo__kpis-lista {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.frente-topo__kpi {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 0.15rem 0.5rem;
    width: 100%;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.025);
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.frente-topo__kpi-nome {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--radar-heading);
}
.frente-topo__kpi-trilha {
    grid-column: 1 / -1;
    height: 0.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.frente-topo__kpi-preenchimento {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, rgba(var(--frente-hero-accent-rgb), 0.5), var(--frente-hero-accent));
}
.frente-topo__kpi-progresso {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--frente-hero-accent);
}
.frente-topo__kpi-sem-meta {
    font-size: 0.65rem;
    color: var(--radar-text-muted);
}
.frente-topo__narrativa {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}
@media (min-width: 768px) {
    .frente-topo__narrativa {
        grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    }
}
.frente-topo__narrativa-card {
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
}
.frente-topo__narrativa-card--objetivo {
    border-left: 3px solid var(--frente-hero-accent);
    background: linear-gradient(135deg, rgba(var(--frente-hero-accent-rgb), 0.08), rgba(255, 255, 255, 0.02));
}
.frente-topo__narrativa-cabecalho {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}
.frente-topo__narrativa-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 0.4rem;
    color: var(--frente-hero-accent);
    background: rgba(var(--frente-hero-accent-rgb), 0.14);
}
.frente-topo__narrativa-titulo {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--radar-heading);
}
.frente-topo__narrativa-texto {
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--radar-text-main);
    white-space: pre-wrap;
}
@media (max-width: 575.98px) {
    .frente-topo__identidade {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .frente-topo__meta {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .frente-topo__sub {
        justify-content: center;
    }
    .frente-topo__risco-corpo {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .frente-topo__pipeline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .frente-topo__painel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.frente-detalhe-hero__card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 1.05rem 1.1rem;
    border-radius: calc(var(--radar-card-radius) + 0.15rem);
    border: 1px solid rgba(var(--radar-accent-rgb), 0.18);
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(var(--frente-hero-accent-rgb), 0.12), transparent 55%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(var(--radar-primary-rgb), 0.28), transparent 50%),
        linear-gradient(165deg, rgba(14, 22, 56, 0.98) 0%, rgba(8, 12, 32, 0.98) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 12px 40px rgba(0, 0, 0, 0.3);
}
.frente-detalhe-hero__termometro-col .frente-termometro {
    min-height: 100%;
}
.frente-detalhe-hero__card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--frente-hero-accent) 90%, #fff 10%) 0%,
        rgba(var(--frente-hero-accent-rgb), 0.15) 100%
    );
    pointer-events: none;
}
.frente-detalhe-hero__card::after {
    content: "";
    position: absolute;
    top: -25%;
    left: -6%;
    width: 40%;
    height: 75%;
    background: radial-gradient(
        ellipse at 30% 40%,
        rgba(var(--frente-hero-accent-rgb), 0.14) 0%,
        transparent 68%
    );
    pointer-events: none;
}
.frente-detalhe-hero__card--basico {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.frente-detalhe-hero__card--basico::before,
.frente-detalhe-hero__card--basico::after {
    content: none;
}

/* Resumo da frente — painel didático */
.frente-resumo {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    padding: 1rem 1.05rem;
    border-radius: calc(var(--radar-card-radius) + 0.15rem);
    border: 1px solid rgba(var(--radar-accent-rgb), 0.18);
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(var(--frente-hero-accent-rgb), 0.12), transparent 55%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(var(--radar-primary-rgb), 0.28), transparent 50%),
        linear-gradient(165deg, rgba(14, 22, 56, 0.98) 0%, rgba(8, 12, 32, 0.98) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 12px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.frente-resumo::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--frente-hero-accent) 90%, #fff 10%) 0%,
        rgba(var(--frente-hero-accent-rgb), 0.15) 100%
    );
    pointer-events: none;
}
.frente-resumo > * + * {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}
.frente-resumo__cabecalho {
    position: relative;
    z-index: 1;
}
.frente-resumo__identidade {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}
.frente-resumo__avatar-wrap {
    position: relative;
    flex-shrink: 0;
    line-height: 0;
}
.frente-resumo__avatar-anel {
    position: absolute;
    inset: -0.28rem;
    border-radius: 50%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(var(--frente-hero-accent-rgb), 0.2) 0%,
        rgba(var(--frente-hero-accent-rgb), 0.04) 55%,
        transparent 72%
    );
    border: 2px solid rgba(var(--frente-hero-accent-rgb), 0.3);
    box-shadow: 0 0 24px rgba(var(--frente-hero-accent-rgb), 0.16);
    pointer-events: none;
}
.frente-resumo__avatar-wrap .frente-avatar,
.frente-resumo__avatar.frente-avatar--xl {
    position: relative;
    z-index: 1;
    width: 3.75rem;
    height: 3.75rem;
    font-size: 1.1rem;
    box-shadow:
        0 0 0 3px rgba(var(--frente-hero-accent-rgb), 0.4),
        0 10px 24px rgba(0, 0, 0, 0.32);
}
.frente-resumo__avatar-wrap .frente-avatar--img,
.frente-resumo__avatar.frente-avatar--img {
    display: block;
    width: 3.75rem;
    height: 3.75rem;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(var(--frente-hero-accent-rgb), 0.45);
}
.frente-resumo__meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.frente-resumo__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}
.frente-resumo__meta-linha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.4rem;
    font-size: 0.78rem;
    color: var(--radar-text-main);
    line-height: 1.35;
}
.frente-resumo__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.frente-resumo__meta-item .bi {
    color: var(--frente-hero-accent);
    font-size: 0.85rem;
}
.frente-resumo__meta-sep {
    color: var(--radar-text-muted);
    opacity: 0.65;
}
.frente-resumo__secao-titulo {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--frente-hero-accent);
}
.frente-resumo__secao-topo,
.frente-resumo__cronograma-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}
.frente-resumo__secao-dica {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--radar-text-muted);
}
.frente-resumo__cronograma-prazo {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--radar-text-main);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.frente-resumo__cronograma-prazo--atraso {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.12);
}
.frente-resumo__cronograma-prazo--hoje {
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.12);
}
.frente-resumo__linha-tempo-trilha {
    position: relative;
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: visible;
}
.frente-resumo__linha-tempo-progresso {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        rgba(var(--frente-hero-accent-rgb), 0.35) 0%,
        var(--frente-hero-accent) 100%
    );
    transition: width 0.35s ease;
}
.frente-resumo__linha-tempo-marcador {
    position: absolute;
    top: 50%;
    width: 0.65rem;
    height: 0.65rem;
    margin-left: -0.325rem;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--frente-hero-accent);
    box-shadow: 0 0 0 3px rgba(var(--frente-hero-accent-rgb), 0.25);
    transition: left 0.35s ease;
}
.frente-resumo__linha-tempo-legenda {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.35rem;
    margin-top: 0.45rem;
    font-size: 0.7rem;
    color: var(--radar-text-muted);
}
.frente-resumo__linha-tempo-legenda span:first-child {
    text-align: left;
}
.frente-resumo__linha-tempo-legenda span:last-child {
    text-align: right;
}
.frente-resumo__linha-tempo-hoje {
    font-weight: 700;
    color: var(--radar-text-main);
    text-align: center;
    white-space: nowrap;
}
.frente-resumo__datas-avulsas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.frente-resumo__data-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--radar-text-main);
    padding: 0.35rem 0.55rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.frente-resumo__data-chip .bi {
    color: var(--frente-hero-accent);
}
.frente-resumo__pipeline-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
}
.frente-resumo__pipeline-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    padding: 0.5rem 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.03);
    border-top-width: 3px;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.frente-resumo__pipeline-col:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.12);
}
.frente-resumo__pipeline-col--pendente { border-top-color: #94a3b8; }
.frente-resumo__pipeline-col--fazendo { border-top-color: #60a5fa; }
.frente-resumo__pipeline-col--impedimento { border-top-color: #f59e0b; }
.frente-resumo__pipeline-col--pronto { border-top-color: #3dd68c; }
.frente-resumo__pipeline-valor {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--radar-heading);
    line-height: 1;
    letter-spacing: -0.02em;
}
.frente-resumo__pipeline-rotulo {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--radar-text-muted);
    text-align: center;
    line-height: 1.2;
}
.frente-resumo__entrega {
    margin-top: 0.55rem;
}
.frente-resumo__entrega-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    color: var(--radar-text-muted);
}
.frente-resumo__entrega-cabecalho strong {
    font-size: 0.82rem;
    color: var(--radar-heading);
}
.frente-resumo__entrega-trilha {
    height: 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.frente-resumo__entrega-preenchimento {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3dd68c 0%, #22c55e 100%);
    transition: width 0.35s ease;
}
.frente-resumo__vazio {
    font-size: 0.76rem;
    color: var(--radar-text-muted);
    line-height: 1.45;
}
.frente-resumo__atalhos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
}
.frente-resumo__atalho {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--radar-text-main);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.frente-resumo__atalho:hover {
    background: rgba(var(--frente-hero-accent-rgb), 0.1);
    border-color: rgba(var(--frente-hero-accent-rgb), 0.28);
    color: var(--radar-heading);
}
.frente-resumo__atalho .bi {
    color: var(--frente-hero-accent);
    font-size: 0.9rem;
}
.frente-resumo__atalho-contagem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--radar-heading);
    background: rgba(255, 255, 255, 0.08);
}
.frente-resumo__kpis {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.frente-resumo__kpis-lista {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.frente-resumo__kpi {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 0.15rem 0.5rem;
    align-items: center;
    width: 100%;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.025);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.frente-resumo__kpi:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(var(--frente-hero-accent-rgb), 0.22);
}
.frente-resumo__kpi-nome {
    grid-column: 1;
    grid-row: 1;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--radar-heading);
}
.frente-resumo__kpi-progresso {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--frente-hero-accent);
}
.frente-resumo__kpi-sem-meta {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.65rem;
    color: var(--radar-text-muted);
    white-space: nowrap;
}
.frente-resumo__kpi-trilha {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 0.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.frente-resumo__kpi-preenchimento {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(var(--frente-hero-accent-rgb), 0.5) 0%, var(--frente-hero-accent) 100%);
}
.frente-resumo__kpi--mais {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--radar-text-muted);
}
.frente-resumo__objetivo-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.65rem 0.7rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--frente-hero-accent);
    background:
        linear-gradient(135deg, rgba(var(--frente-hero-accent-rgb), 0.08) 0%, rgba(255, 255, 255, 0.02) 55%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}
.frente-resumo__objetivo-cabecalho {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.frente-resumo__objetivo-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.45rem;
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--frente-hero-accent);
    background: rgba(var(--frente-hero-accent-rgb), 0.14);
    border: 1px solid rgba(var(--frente-hero-accent-rgb), 0.24);
}
.frente-resumo__objetivo-titulo {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--radar-heading);
}
.frente-resumo__objetivo-texto {
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--radar-text-main);
    white-space: pre-wrap;
}
.frente-resumo__contexto {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}
@media (min-width: 768px) {
    .frente-resumo {
        padding: 1.05rem 1.15rem;
    }
    .frente-resumo__avatar-wrap .frente-avatar,
    .frente-resumo__avatar.frente-avatar--xl,
    .frente-resumo__avatar-wrap .frente-avatar--img,
    .frente-resumo__avatar.frente-avatar--img {
        width: 4.25rem;
        height: 4.25rem;
        font-size: 1.2rem;
    }
    .frente-resumo__contexto {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .frente-resumo__contexto-item:only-child {
        grid-column: 1 / -1;
    }
}
.frente-resumo__contexto-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}
.frente-resumo__contexto-rotulo {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--radar-heading);
}
.frente-resumo__contexto-rotulo .bi {
    color: var(--frente-hero-accent);
}
.frente-resumo__contexto-texto {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--radar-text-main);
    white-space: pre-wrap;
}
@media (max-width: 575.98px) {
    .frente-resumo__identidade {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .frente-resumo__meta-linha {
        justify-content: center;
    }
    .frente-resumo__pipeline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .frente-resumo__atalhos {
        grid-template-columns: 1fr;
    }
    .frente-resumo__linha-tempo-legenda {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .frente-resumo__linha-tempo-legenda span:first-child,
    .frente-resumo__linha-tempo-legenda span:last-child {
        text-align: center;
    }
}

.frente-info__topo {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.65rem;
}
.frente-info__status-badge {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
}
.frente-info__identidade {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    padding: 0.55rem 0.6rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.frente-detalhe-hero__avatar-col {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.frente-detalhe-hero__avatar-wrap {
    position: relative;
    flex-shrink: 0;
    line-height: 0;
}
.frente-detalhe-hero__avatar-ring {
    position: absolute;
    inset: -0.3rem;
    border-radius: 50%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(var(--frente-hero-accent-rgb), 0.2) 0%,
        rgba(var(--frente-hero-accent-rgb), 0.04) 55%,
        transparent 72%
    );
    border: 2px solid rgba(var(--frente-hero-accent-rgb), 0.3);
    box-shadow: 0 0 28px rgba(var(--frente-hero-accent-rgb), 0.18);
    pointer-events: none;
}
.frente-detalhe-hero__avatar-wrap .frente-avatar,
.frente-detalhe-hero__avatar.frente-avatar--xl {
    position: relative;
    z-index: 1;
    width: 4.25rem;
    height: 4.25rem;
    font-size: 1.2rem;
    box-shadow:
        0 0 0 3px rgba(var(--frente-hero-accent-rgb), 0.4),
        0 12px 28px rgba(0, 0, 0, 0.35);
}
.frente-detalhe-hero__avatar-wrap .frente-avatar--img,
.frente-detalhe-hero__avatar.frente-avatar--img {
    display: block;
    width: 4.25rem;
    height: 4.25rem;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border-width: 3px;
    border-color: rgba(var(--frente-hero-accent-rgb), 0.45);
}
.frente-info__meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}
.frente-info__nome {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--radar-heading);
    line-height: 1.25;
}
.frente-info__chips {
    row-gap: 0.35rem !important;
}
.frente-info__papel {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--radar-text-main);
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.frente-info__papel .bi {
    color: var(--frente-hero-accent);
    font-size: 0.82rem;
}
.frente-info__campos {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.75rem;
    margin: 0;
    padding: 0.55rem 0.6rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.frente-info__campo {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}
.frente-info__campo dt {
    margin: 0;
    font-size: 0.64rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--radar-text-muted);
    line-height: 1.2;
}
.frente-info__campo dd {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--radar-text-main);
    line-height: 1.3;
}
.frente-info__texto-bloco {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.55rem 0.6rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.frente-info__texto-rotulo {
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--radar-text-muted);
}
.frente-info__texto {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--radar-text-main);
    white-space: pre-wrap;
}
.frente-info__periodo-resumo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.35rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--radar-text-main);
    line-height: 1.35;
}
.frente-info__periodo-resumo .bi-calendar3 {
    color: var(--frente-hero-accent);
    flex-shrink: 0;
}
.frente-info__periodo-seta {
    color: var(--radar-text-muted);
    font-size: 0.95rem;
}

/* Legado — grid de métricas removido do detalhe; mantido para compatibilidade */
.frente-info__metricas {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    flex: 1 1 auto;
}
@media (min-width: 992px) {
    .frente-info__metricas {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.frente-info__metrica {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.55rem 0.6rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 0;
    min-height: 100%;
}
.frente-info__metrica--criador {
    border-color: rgba(var(--frente-hero-accent-rgb), 0.22);
    background: rgba(var(--frente-hero-accent-rgb), 0.06);
}
.frente-info__metrica-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.45rem;
    flex-shrink: 0;
    font-size: 0.82rem;
    color: var(--frente-hero-accent);
    background: rgba(var(--frente-hero-accent-rgb), 0.12);
    border: 1px solid rgba(var(--frente-hero-accent-rgb), 0.22);
}
.frente-info__metrica-icone--criador {
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
}
.frente-info__metrica-corpo {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}
.frente-info__metrica-valor {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--radar-heading);
    line-height: 1.1;
}
.frente-info__metrica-rotulo {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--radar-text-main);
}
.frente-info__metrica-detalhe {
    font-size: 0.62rem;
    color: var(--radar-text-muted);
    line-height: 1.25;
}
.frente-info__notas {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.65rem 0.7rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.frente-info__notas-titulo {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--frente-hero-accent);
}
.frente-info__notas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
}
@media (min-width: 768px) {
    .frente-detalhe-hero__card {
        padding: 1.05rem 1.1rem;
    }
    .frente-detalhe-hero__avatar-ring {
        inset: -0.35rem;
    }
    .frente-detalhe-hero__avatar-wrap .frente-avatar,
    .frente-detalhe-hero__avatar.frente-avatar--xl,
    .frente-detalhe-hero__avatar-wrap .frente-avatar--img,
    .frente-detalhe-hero__avatar.frente-avatar--img {
        width: 4.5rem;
        height: 4.5rem;
        font-size: 1.3rem;
    }
}
@media (min-width: 992px) {
    .frente-detalhe-hero__avatar-wrap .frente-avatar,
    .frente-detalhe-hero__avatar.frente-avatar--xl,
    .frente-detalhe-hero__avatar-wrap .frente-avatar--img,
    .frente-detalhe-hero__avatar.frente-avatar--img {
        width: 4.75rem;
        height: 4.75rem;
        font-size: 1.35rem;
    }
}
.frente-info__nota {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}
.frente-info__nota-cabecalho {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--radar-heading);
}
.frente-info__nota-cabecalho .bi {
    color: var(--frente-hero-accent);
    font-size: 0.85rem;
}
.frente-info__texto {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--radar-text-main);
    white-space: pre-wrap;
}
.frente-detalhe-hero__badge-prioridade,
.frente-resumo__badge-prioridade,
.frente-topo__badge-prioridade {
    font-weight: 600;
    border: 1px solid transparent;
    backdrop-filter: blur(6px);
}
.frente-detalhe-hero__badge-prioridade--baixa,
.frente-resumo__badge-prioridade--baixa,
.frente-topo__badge-prioridade--baixa {
    color: #cbd5e1;
    background: rgba(100, 116, 139, 0.35);
    border-color: rgba(148, 163, 184, 0.4);
}
.frente-detalhe-hero__badge-prioridade--media,
.frente-resumo__badge-prioridade--media,
.frente-topo__badge-prioridade--media {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.45);
}
.frente-detalhe-hero__badge-prioridade--alta,
.frente-resumo__badge-prioridade--alta,
.frente-topo__badge-prioridade--alta {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.45);
}
@media (max-width: 767.98px) {
    .frente-info__identidade {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .frente-info__meta {
        align-items: center;
    }
    .frente-info__chips {
        justify-content: center;
    }
    .frente-info__periodo-resumo {
        justify-content: center;
    }
}

/* Legado bento — mantido para compatibilidade em outros contextos */
.frente-detalhe-hero__bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.5rem;
}
.frente-detalhe-hero__tile {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    min-width: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.frente-detalhe-hero__tile:hover {
    border-color: rgba(var(--radar-accent-rgb), 0.28);
    background: rgba(255, 255, 255, 0.045);
}
.frente-detalhe-hero__tile-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    flex-shrink: 0;
    background: rgba(var(--radar-accent-rgb), 0.12);
    border: 1px solid rgba(var(--radar-accent-rgb), 0.22);
}
.frente-detalhe-hero__tile--metric {
    grid-column: span 4;
    flex-direction: row;
    align-items: center;
}
.frente-detalhe-hero__tile--periodo,
.frente-detalhe-hero__tile--criador {
    grid-column: span 6;
    align-items: center;
}
.frente-detalhe-hero__tile--expand {
    grid-column: span 12;
}
@media (min-width: 768px) {
    .frente-detalhe-hero__tile--metric {
        grid-column: span 4;
    }
    .frente-detalhe-hero__tile--periodo,
    .frente-detalhe-hero__tile--criador {
        grid-column: span 6;
    }
    .frente-detalhe-hero__tile--periodo.frente-detalhe-hero__tile--expand,
    .frente-detalhe-hero__tile--criador.frente-detalhe-hero__tile--expand {
        grid-column: span 12;
    }
}
@media (min-width: 992px) {
    .frente-detalhe-hero__tile--metric {
        grid-column: span 2;
    }
    .frente-detalhe-hero__tile--periodo {
        grid-column: span 4;
    }
    .frente-detalhe-hero__tile--criador {
        grid-column: span 2;
    }
    .frente-detalhe-hero__tile--periodo.frente-detalhe-hero__tile--expand {
        grid-column: span 6;
    }
    .frente-detalhe-hero__tile--criador.frente-detalhe-hero__tile--expand {
        grid-column: span 6;
    }
    .frente-detalhe-hero__tile--texto {
        grid-column: span 6;
    }
    .frente-detalhe-hero__tile--texto.frente-detalhe-hero__tile--full {
        grid-column: span 12;
    }
}
.frente-detalhe-hero__tile--texto {
    grid-column: span 12;
    flex-direction: column;
    gap: 0.35rem;
}
.frente-detalhe-hero__tile-icon {
    font-size: 1.05rem;
    color: var(--radar-accent-line);
    line-height: 1;
}
.frente-detalhe-hero__tile-body {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}
.frente-detalhe-hero__tile-valor {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--radar-heading);
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.frente-detalhe-hero__tile-rotulo {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--radar-text-muted);
}
@media (max-width: 767.98px) {
    .frente-detalhe-hero__tile--metric,
    .frente-detalhe-hero__tile--periodo,
    .frente-detalhe-hero__tile--criador,
    .frente-detalhe-hero__tile--texto {
        grid-column: span 12;
    }
}

/* Frente — termômetro de risco */
.frente-termometro {
    --frente-termometro-cor: var(--frente-hero-accent, var(--radar-accent-line));
    --frente-termometro-cor-rgb: var(--frente-hero-accent-rgb, var(--radar-accent-rgb));
    --frente-termometro-nivel: 0;
    --frente-termometro-ring: 6.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: calc(var(--radar-card-radius) + 0.15rem);
    background:
        radial-gradient(ellipse 90% 55% at 50% 0%, rgba(var(--frente-termometro-cor-rgb), 0.16), transparent 62%),
        linear-gradient(180deg, rgba(14, 22, 56, 0.98) 0%, rgba(8, 12, 32, 0.98) 100%);
    border: 1px solid rgba(var(--frente-termometro-cor-rgb), 0.28);
    box-shadow:
        0 0 0 1px rgba(var(--frente-termometro-cor-rgb), 0.1) inset,
        0 14px 40px rgba(var(--frente-termometro-cor-rgb), 0.14);
    min-width: 0;
    height: 100%;
}
.frente-termometro--destaque {
    gap: 0.85rem;
    padding: 1.05rem 1.1rem;
}
.frente-termometro--tranquilo {
    --frente-termometro-cor: rgb(34, 197, 94);
    --frente-termometro-cor-rgb: 34, 197, 94;
}
.frente-termometro--atencao {
    --frente-termometro-cor: rgb(251, 191, 36);
    --frente-termometro-cor-rgb: 251, 191, 36;
}
.frente-termometro--critico {
    --frente-termometro-cor: rgb(248, 113, 113);
    --frente-termometro-cor-rgb: 248, 113, 113;
}
.frente-termometro__topo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}
.frente-termometro__topo-texto {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.frente-termometro__titulo {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--radar-heading);
    line-height: 1.2;
}
.frente-termometro__modo {
    font-size: 0.68rem;
    color: var(--radar-text-muted);
    line-height: 1.3;
}
.frente-termometro__situacao-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--frente-termometro-cor);
    background: rgba(var(--frente-termometro-cor-rgb), 0.14);
    border: 1px solid rgba(var(--frente-termometro-cor-rgb), 0.32);
    white-space: nowrap;
}
.frente-termometro__escala {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.frente-termometro__escala-trilha {
    position: relative;
    height: 0.6rem;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgb(34, 197, 94) 0%,
        rgb(34, 197, 94) 33.33%,
        rgb(251, 191, 36) 33.33%,
        rgb(251, 191, 36) 66.66%,
        rgb(248, 113, 113) 66.66%,
        rgb(248, 113, 113) 100%
    );
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.frente-termometro__escala-marcador {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background: var(--frente-termometro-cor);
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 3px rgba(var(--frente-termometro-cor-rgb), 0.25);
}
.frente-termometro__escala-legenda {
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--radar-text-muted);
}
.frente-termometro__escala-legenda span:nth-child(1) { color: rgb(74, 222, 128); }
.frente-termometro__escala-legenda span:nth-child(2) { color: rgb(251, 191, 36); }
.frente-termometro__escala-legenda span:nth-child(3) { color: rgb(248, 113, 113); }
.frente-termometro__painel-principal {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 0.65rem 0.7rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.frente-termometro__ring-wrap {
    flex-shrink: 0;
}
.frente-termometro__ring {
    --ring-size: var(--frente-termometro-ring);
    width: var(--ring-size);
    height: var(--ring-size);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(
        from 225deg,
        var(--frente-termometro-cor) calc(var(--frente-termometro-nivel) * 1%),
        rgba(255, 255, 255, 0.08) 0
    );
    box-shadow:
        0 0 36px rgba(var(--frente-termometro-cor-rgb), 0.35),
        0 0 0 4px rgba(var(--frente-termometro-cor-rgb), 0.1);
}
.frente-termometro__ring-inner {
    width: calc(var(--ring-size) - 18px);
    height: calc(var(--ring-size) - 18px);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 32, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.frente-termometro__ring-valor {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--frente-termometro-cor);
    line-height: 1;
    letter-spacing: -0.03em;
}
.frente-termometro__ring-rotulo {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--radar-text-muted);
    margin-top: 0.12rem;
}
.frente-termometro__resumo {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}
.frente-termometro__mensagem {
    font-size: 0.78rem;
    color: var(--radar-text-main);
    line-height: 1.45;
}
.frente-termometro__previsao,
.frente-termometro__prazo {
    font-size: 0.72rem;
    color: var(--radar-text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    line-height: 1.35;
}
.frente-termometro__previsao .bi,
.frente-termometro__prazo .bi {
    color: var(--frente-termometro-cor);
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.frente-termometro__previsao strong,
.frente-termometro__prazo strong {
    color: var(--radar-heading);
}
.frente-termometro__prazo--atraso {
    color: rgb(248, 113, 113);
}
.frente-termometro__prazo--atraso strong {
    color: rgb(248, 113, 113);
}
.frente-termometro__prazo--hoje {
    color: rgb(251, 191, 36);
}
.frente-termometro__comparativo {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.65rem 0.7rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.frente-termometro__barra-item {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}
.frente-termometro__barra-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.68rem;
    color: var(--radar-text-muted);
}
.frente-termometro__barra-head strong {
    font-size: 0.76rem;
    color: var(--radar-heading);
}
.frente-termometro__barra-trilha {
    height: 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}
.frente-termometro__barra-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: rgba(var(--frente-termometro-cor-rgb), 0.85);
    transition: width 0.35s ease;
}
.frente-termometro__barra-fill--tempo {
    background: rgba(148, 163, 184, 0.75);
}
.frente-termometro__barra-fill--tarefas {
    background: rgb(34, 197, 94);
}
.frente-termometro__barra-fill--atraso {
    background: rgb(251, 191, 36);
}
.frente-termometro__metricas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    flex: 1 1 auto;
}
.frente-termometro__metrica {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.55rem 0.6rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 0;
}
.frente-termometro__metrica--destaque {
    border-color: rgba(var(--frente-termometro-cor-rgb), 0.28);
    background: rgba(var(--frente-termometro-cor-rgb), 0.08);
}
.frente-termometro__metrica-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.45rem;
    flex-shrink: 0;
    font-size: 0.82rem;
    color: var(--frente-termometro-cor);
    background: rgba(var(--frente-termometro-cor-rgb), 0.12);
    border: 1px solid rgba(var(--frente-termometro-cor-rgb), 0.22);
}
.frente-termometro__metrica-corpo {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}
.frente-termometro__metrica-valor {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--radar-heading);
    line-height: 1.1;
}
.frente-termometro__metrica-rotulo {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--radar-text-main);
}
.frente-termometro__metrica-detalhe {
    font-size: 0.62rem;
    color: var(--radar-text-muted);
    line-height: 1.25;
}
.frente-termometro__alertas-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.6rem 0.65rem;
    border-radius: 0.65rem;
    background: rgba(var(--frente-termometro-cor-rgb), 0.06);
    border: 1px solid rgba(var(--frente-termometro-cor-rgb), 0.16);
}
.frente-termometro__alertas-titulo {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--frente-termometro-cor);
}
.frente-termometro__alertas {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.frente-termometro__alerta {
    display: flex;
    align-items: flex-start;
    gap: 0.15rem;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--radar-text-main);
}
.frente-termometro__alerta .bi {
    color: var(--frente-termometro-cor);
    font-size: 1.1rem;
    line-height: 1;
    margin-top: -0.05rem;
}
@media (max-width: 767.98px) {
    .frente-termometro__painel-principal {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .frente-termometro__resumo {
        text-align: center;
        align-items: center;
    }
    .frente-termometro__previsao,
    .frente-termometro__prazo {
        justify-content: center;
    }
}
@media (min-width: 992px) {
    .frente-termometro--destaque {
        --frente-termometro-ring: 7rem;
    }
}

/* Avatar da frente */
.frente-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    user-select: none;
    border: 1px solid transparent;
}
.frente-avatar--img {
    display: inline-block;
    padding: 0;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid var(--radar-border-subtle);
}
.frente-avatar--sm {
    width: 2rem;
    height: 2rem;
    font-size: 0.72rem;
}
.frente-avatar--md {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.82rem;
}
.frente-avatar--lg {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1rem;
}
.frente-avatar--xl {
    width: 3.75rem;
    height: 3.75rem;
    font-size: 1.1rem;
}
.frente-avatar-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.frente-avatar-upload__preview-wrap {
    flex-shrink: 0;
}
.frente-avatar-upload__preview {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.15rem;
}
.frente-avatar-upload__campos {
    flex: 1 1 12rem;
}
.frente-avatar--tom-0 {
    color: #9ae6ff;
    background: rgba(56, 189, 248, 0.22);
    border-color: rgba(56, 189, 248, 0.45);
}
.frente-avatar--tom-1 {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.45);
}
.frente-avatar--tom-2 {
    color: #86efac;
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.42);
}
.frente-avatar--tom-3 {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.45);
}
.frente-avatar--tom-4 {
    color: #fda4af;
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.42);
}
.frente-avatar--tom-5 {
    color: #5eead4;
    background: rgba(20, 184, 166, 0.2);
    border-color: rgba(20, 184, 166, 0.42);
}
.frente-avatar--tom-6 {
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.22);
    border-color: rgba(99, 102, 241, 0.45);
}
.frente-avatar--tom-7 {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.2);
    border-color: rgba(249, 115, 22, 0.42);
}
.frente-avatar-inline {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}
.frente-avatar-inline__texto {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    min-width: 0;
}
.frente-avatar-inline__link,
.frente-avatar-inline__nome {
    color: var(--radar-text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.frente-avatar-inline__link:hover {
    color: var(--radar-accent-line);
}
.frente-avatar-inline--inativa .frente-avatar {
    opacity: 0.72;
}
.frente-avatar-inline--inativa .frente-avatar-inline__link,
.frente-avatar-inline--inativa .frente-avatar-inline__nome {
    color: var(--radar-text-muted);
}

.turma-detalhe-hub-shell {
    position: relative;
    width: 100%;
    margin-top: 0.25rem;
}

.turma-detalhe-tabs-float {
    position: relative;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.15rem;
    margin-bottom: -1.15rem;
}

.turma-detalhe-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    border: none;
    list-style: none;
}

.turma-detalhe-tabs .nav-item {
    margin: 0;
}

.turma-detalhe-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    border: 1px solid var(--radar-border-subtle);
    border-radius: 999px;
    background-color: var(--radar-bg-elevated);
    color: var(--radar-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        background-color 0.18s ease;
}

.turma-detalhe-tabs .nav-link:hover {
    color: var(--radar-heading);
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(110, 223, 246, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.turma-detalhe-tabs .nav-link.active {
    color: #ffffff;
    background-color: var(--radar-primary);
    border-color: var(--radar-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(var(--radar-primary-rgb), 0.45);
}

.turma-detalhe-tabs .nav-link.active:hover {
    color: #ffffff;
    background-color: var(--radar-primary-hover);
    border-color: var(--radar-primary-hover);
}

.turma-detalhe-tab-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2em 0.55em;
}

.turma-detalhe-tabs .nav-link.active .turma-detalhe-tab-badge {
    background-color: #ffffff;
    color: var(--radar-primary);
}

.turma-detalhe-tabs .nav-link:not(.active) .turma-detalhe-tab-badge {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--radar-heading);
}

.turma-detalhe-hub {
    position: relative;
    z-index: 1;
    border: 1px solid var(--radar-border-subtle);
    border-radius: var(--radar-card-radius);
    background: var(--radar-bg-elevated);
    overflow: visible;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    padding-top: 1.65rem;
}

.turma-detalhe-hub__panels,
.turma-detalhe-hub__panels > .tab-pane,
.turma-aba-panel {
    overflow: visible;
}

.turma-detalhe-hub__panels > .tab-pane {
    padding: 0;
}

.turma-aba-panel {
    padding: 1.35rem 1.25rem 1.6rem;
}

@media (min-width: 768px) {
    .turma-aba-panel {
        padding: 1.5rem 1.75rem 1.85rem;
    }
}

.turma-aba-intro {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.35rem;
}

.turma-aba-intro__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: var(--radar-heading);
}

.turma-aba-intro__text {
    margin: 0;
    color: var(--radar-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.turma-aba-intro > div:first-child {
    flex: 1 1 12rem;
    min-width: 0;
}

.turma-aba-intro__acoes {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.turma-aba-intro__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.15rem;
    border-radius: var(--radar-card-radius);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    min-height: 4.15rem;
    box-sizing: border-box;
}

.turma-aba-intro__kpi {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.85rem 1.15rem;
    min-width: 7rem;
    min-height: 4.15rem;
    box-sizing: border-box;
    text-align: right;
}

.allocation-hub-kpi {
    border: 1px solid var(--radar-border-subtle);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radar-card-radius);
}

.allocation-hub-kpi-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: var(--radar-text-muted);
}

.allocation-hub-kpi-value {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--radar-heading);
}

/* Linha do tempo — acompanhamento de turmas */
.turma-acomp-aba .turma-aba-intro {
    margin-bottom: 1.15rem;
}

.turma-acomp-aba .turma-aba-intro__kpi {
    border-color: rgba(96, 165, 250, 0.22);
    background: linear-gradient(
        145deg,
        rgba(var(--radar-primary-rgb), 0.24) 0%,
        rgba(14, 22, 56, 0.78) 100%
    );
    box-shadow: 0 4px 16px rgba(0, 8, 40, 0.2);
}

.turma-acomp-aba .allocation-hub-kpi-value {
    color: var(--radar-accent-line);
}

.turma-acomp-timeline {
    position: relative;
    padding: 0.75rem 0 0.5rem;
}

.turma-acomp-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(
        180deg,
        rgba(var(--radar-accent-rgb), 0.55) 0%,
        rgba(var(--radar-primary-rgb), 0.35) 35%,
        rgba(var(--radar-primary-rgb), 0.2) 100%
    );
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(var(--radar-accent-rgb), 0.2);
}

.turma-acomp-timeline__dia {
    position: relative;
    margin-bottom: 2rem;
}

.turma-acomp-timeline__dia:last-child {
    margin-bottom: 0;
}

.turma-acomp-timeline__dia-marca {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: fit-content;
    max-width: calc(100% - 2rem);
    margin: 0 auto 1.25rem;
    padding: 0.6rem 1.1rem 0.6rem 0.65rem;
    border: 1px solid rgba(var(--radar-accent-rgb), 0.28);
    border-radius: 999px;
    background: linear-gradient(
        135deg,
        rgba(var(--radar-primary-rgb), 0.45) 0%,
        rgba(14, 22, 56, 0.95) 100%
    );
    box-shadow:
        0 6px 20px rgba(0, 8, 40, 0.28),
        inset 0 1px 0 rgba(var(--radar-accent-rgb), 0.1);
}

.turma-acomp-timeline__dia-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 0.95rem;
    color: #fff;
    background: var(--radar-primary);
    border: 2px solid rgba(var(--radar-accent-rgb), 0.45);
    box-shadow: 0 0 0 3px rgba(var(--radar-primary-rgb), 0.35);
}

.turma-acomp-timeline__dia-textos {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    text-align: left;
}

.turma-acomp-timeline__dia-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--radar-heading);
    line-height: 1.25;
}

.turma-acomp-timeline__dia-qtd {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--radar-accent-line);
    font-weight: 600;
}

.turma-acomp-timeline__itens {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.turma-acomp-timeline__item {
    position: relative;
    width: calc(50% - 1.5rem);
    box-sizing: border-box;
}

.turma-acomp-timeline__item--esquerda {
    align-self: flex-start;
    padding-right: 0.5rem;
}

.turma-acomp-timeline__item--direita {
    align-self: flex-end;
    padding-left: 0.5rem;
}

.turma-acomp-timeline__item::after {
    content: "";
    position: absolute;
    top: 1.35rem;
    width: 1rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(var(--radar-accent-rgb), 0.5), rgba(var(--radar-primary-rgb), 0.25));
}

.turma-acomp-timeline__item--esquerda::after {
    right: -1.15rem;
}

.turma-acomp-timeline__item--direita::after {
    left: -1.15rem;
}

.turma-acomp-timeline__item::before {
    content: "";
    position: absolute;
    top: 1.1rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 2px solid var(--radar-accent-line);
    background: var(--radar-bg-elevated);
    box-shadow: 0 0 0 4px rgba(var(--radar-primary-rgb), 0.35);
    z-index: 1;
}

.turma-acomp-timeline__item--esquerda::before {
    right: -1.65rem;
}

.turma-acomp-timeline__item--direita::before {
    left: -1.65rem;
}

.turma-acomp-timeline__card {
    position: relative;
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: var(--radar-card-radius);
    background: linear-gradient(
        145deg,
        rgba(var(--radar-primary-rgb), 0.2) 0%,
        rgba(14, 22, 56, 0.82) 100%
    );
    box-shadow: 0 6px 20px rgba(0, 8, 40, 0.24);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.turma-acomp-timeline__card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--radar-accent-rgb), 0.35);
    box-shadow: 0 10px 28px rgba(0, 8, 40, 0.32);
}

.turma-acomp-timeline__card-accent {
    width: 4px;
    flex-shrink: 0;
    background: linear-gradient(
        180deg,
        var(--radar-accent-line) 0%,
        var(--radar-primary) 100%
    );
}

.turma-acomp-timeline__card-corpo {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.9rem 1rem 1rem;
}

.turma-acomp-timeline__card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.turma-acomp-timeline__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.turma-acomp-timeline__tipo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.45rem;
    font-size: 0.82rem;
    color: var(--radar-accent-line);
    background: rgba(var(--radar-accent-rgb), 0.12);
    border: 1px solid rgba(var(--radar-accent-rgb), 0.2);
}

.turma-acomp-timeline__hora {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--radar-heading);
    background: rgba(var(--radar-primary-rgb), 0.35);
    border: 1px solid rgba(96, 165, 250, 0.22);
}

.turma-acomp-timeline__acoes {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.turma-acomp-timeline__acoes form {
    display: inline-block;
    vertical-align: middle;
}

.turma-acomp-timeline__texto {
    color: var(--radar-heading);
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .turma-acomp-timeline::before {
        left: 0.85rem;
        transform: none;
    }

    .turma-acomp-timeline__dia-marca {
        margin-left: 0;
        margin-right: auto;
        border-radius: var(--radar-card-radius);
        max-width: 100%;
    }

    .turma-acomp-timeline__item {
        width: calc(100% - 2rem);
        margin-left: 2rem;
        padding: 0;
    }

    .turma-acomp-timeline__item--esquerda,
    .turma-acomp-timeline__item--direita {
        align-self: stretch;
    }

    .turma-acomp-timeline__item::before {
        left: -1.55rem !important;
        right: auto !important;
    }

    .turma-acomp-timeline__item::after {
        display: none;
    }
}

/* Lista de alunos — detalhe da turma */
.turma-aluno-lista {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--radar-border-subtle);
    border-radius: var(--radar-card-radius);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.turma-aluno-linha {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--radar-border-subtle);
    transition: background-color 0.15s ease;
}

.turma-aluno-linha:last-child {
    border-bottom: none;
}

.turma-aluno-linha:hover {
    background: rgba(255, 255, 255, 0.03);
}

.turma-aluno-linha__indice {
    flex-shrink: 0;
    width: 1.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--radar-text-muted);
    text-align: center;
}

.turma-aluno-linha__avatar {
    flex-shrink: 0;
}

.turma-aluno-linha__corpo {
    flex: 1 1 auto;
    min-width: 0;
}

.turma-aluno-linha__nome {
    font-weight: 600;
    color: var(--radar-heading);
    line-height: 1.35;
}

/* Avaliação por aluno — cores */
.turma-aluno-avaliacao--atencao,
.turma-aluno-acomp-opcao--atencao .turma-aluno-acomp-opcao__dot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.turma-aluno-avaliacao--medio,
.turma-aluno-acomp-opcao--medio .turma-aluno-acomp-opcao__dot {
    background: linear-gradient(135deg, #facc15, #eab308);
    color: #1f2937;
}

.turma-aluno-avaliacao--dentro_esperado,
.turma-aluno-acomp-opcao--dentro_esperado .turma-aluno-acomp-opcao__dot {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.turma-aluno-avaliacao--destaque,
.turma-aluno-acomp-opcao--destaque .turma-aluno-acomp-opcao__dot {
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: #fff;
}

.turma-aluno-avaliacao--sem {
    background: linear-gradient(135deg, #64748b, #475569);
    color: #fff;
}

.turma-aluno-acomp-btn {
    color: #fff;
    border-color: #22c55e;
    background: #22c55e;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.turma-aluno-acomp-btn:hover,
.turma-aluno-acomp-btn:focus-visible {
    color: #fff;
    border-color: #16a34a;
    background: #16a34a;
}

.turma-aluno-acomp-opcoes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (min-width: 576px) {
    .turma-aluno-acomp-opcoes {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.turma-aluno-acomp-opcao {
    margin: 0;
    cursor: pointer;
}

.turma-aluno-acomp-opcao__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.turma-aluno-acomp-opcao__surface {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.4rem;
    border-radius: var(--radar-card-radius);
    border: 1px solid var(--radar-border-subtle);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.turma-aluno-acomp-opcao__dot {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
}

.turma-aluno-acomp-opcao__input:checked + .turma-aluno-acomp-opcao__surface {
    border-color: rgba(110, 223, 246, 0.55);
    background: rgba(110, 223, 246, 0.08);
}

.turma-aluno-acomp-opcao__input:focus-visible + .turma-aluno-acomp-opcao__surface {
    outline: 2px solid rgba(110, 223, 246, 0.55);
    outline-offset: 2px;
}

.turma-aluno-acomp-historico__titulo {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--radar-text-muted);
    margin-bottom: 0.75rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--radar-border-subtle);
}

.turma-aluno-acomp-historico__lista {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.turma-aluno-acomp-historico__item {
    padding: 0.75rem 0.85rem;
    border-radius: var(--radar-card-radius);
    border: 1px solid var(--radar-border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.turma-aluno-acomp-historico__item-topo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.turma-aluno-acomp-historico__periodo {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--radar-heading);
}

.turma-aluno-acomp-historico__badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

.turma-aluno-acomp-historico__texto {
    font-size: 0.88rem;
    color: var(--radar-text-muted);
    line-height: 1.45;
    white-space: pre-wrap;
}

.turma-aluno-acomp-historico__texto--vazio {
    font-style: italic;
    opacity: 0.75;
}

.turma-aluno-acomp-historico__acoes {
    margin-top: 0.5rem;
}

.turma-aluno-acomp-historico__acoes form {
    margin: 0;
}

.turma-acomp-modal__data {
    max-width: 14rem;
}

.turma-aluno-linha__acoes {
    flex-shrink: 0;
    margin-left: auto;
}

.turma-aluno-linha__acoes form {
    margin: 0;
}

@media (max-width: 575.98px) {
    .turma-aluno-linha {
        flex-wrap: wrap;
        padding: 0.85rem 0.9rem;
    }

    .turma-aluno-linha__acoes {
        width: 100%;
        margin-left: calc(1.65rem + 0.75rem + 2rem);
        padding-top: 0.25rem;
    }
}

/* Badge de período — listagem de turmas */
.turma-periodo-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35em 0.6em;
    border-radius: 0.35rem;
    white-space: nowrap;
}

.turma-periodo-badge--andamento { background-color: #0d6efd; color: #fff; }
.turma-periodo-badge--futura { background-color: #6f42c1; color: #fff; }
.turma-periodo-badge--encerrada { background-color: #198754; color: #fff; }
.turma-periodo-badge--planejada { background-color: #fd7e14; color: #212529; }
.turma-periodo-badge--neutro { background-color: #6c757d; color: #fff; }

@media (max-width: 575.98px) {
    .turma-detalhe-tabs-float {
        margin-bottom: -0.85rem;
    }

    .turma-detalhe-tabs .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .turma-detalhe-hub {
        padding-top: 1.35rem;
    }
}

.frente-field-hint {
    font-size: 0.78rem;
    line-height: 1.4;
    margin-top: 0.35rem;
}

.frente-readonly-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 0.75rem;
    background: rgba(10, 20, 50, 0.6);
    border: 1px solid var(--radar-border-subtle);
    color: var(--radar-text-main);
    min-height: 2.75rem;
    font-size: 0.98rem;
}

.frente-criador-field {
    background: rgba(var(--radar-primary-rgb), 0.12);
    border-color: rgba(var(--radar-primary-rgb), 0.35);
}

.frente-criador-field i {
    color: var(--radar-accent-line);
    font-size: 1rem;
    flex-shrink: 0;
}

.frente-callout {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radar-card-radius);
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.frente-callout--info {
    background: rgba(13, 110, 253, 0.08);
    border-color: rgba(13, 110, 253, 0.25);
}

.frente-callout--tip {
    background: rgba(110, 223, 246, 0.08);
    border-color: rgba(110, 223, 246, 0.22);
}

.frente-callout__icon {
    flex-shrink: 0;
    color: var(--radar-accent-line);
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.frente-callout__title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--radar-heading);
    margin-bottom: 0.15rem;
}

.frente-callout__text {
    font-size: 0.8125rem;
    color: var(--radar-text-muted);
    line-height: 1.45;
}

.frente-papel-legend {
    margin-bottom: 0.5rem;
}

.frente-papel-card {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--radar-border-subtle);
    height: 100%;
}

.frente-papel-card i {
    color: var(--radar-accent-line);
    font-size: 1rem;
    margin-top: 0.1rem;
}

.frente-papel-card strong {
    display: block;
    font-size: 0.8125rem;
    color: var(--radar-heading);
}

.frente-papel-card span {
    display: block;
    font-size: 0.75rem;
    color: var(--radar-text-muted);
}

.frente-membros-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.frente-membros-busca-box {
    border: 1px solid var(--radar-border-subtle);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radar-card-radius);
    border-left: 3px solid var(--radar-primary);
}

.frente-membros-search {
    width: 100%;
}

.frente-membros-busca-box .input-group-text.frente-membros-busca-icon {
    background: rgba(var(--radar-primary-rgb), 0.12);
    border-color: var(--radar-border-subtle);
    color: var(--radar-primary);
    font-weight: 600;
    min-height: 2.75rem;
}

.frente-membros-busca-box .form-control {
    min-height: 2.75rem;
}

.frente-membros-busca-box .input-group:focus-within .input-group-text.frente-membros-busca-icon {
    background: rgba(var(--radar-primary-rgb), 0.18);
    border-color: var(--radar-primary);
    color: var(--radar-primary);
}

.frente-membros-busca-box .input-group:focus-within .form-control {
    border-color: var(--radar-primary);
}

.frente-member-card--criador {
    border-color: rgba(var(--radar-primary-rgb), 0.35);
    background: rgba(var(--radar-primary-rgb), 0.06);
}

.frente-papel-badge--criador {
    background: rgba(var(--radar-primary-rgb), 0.2);
    color: #9ecbff;
    border: 1px solid rgba(var(--radar-primary-rgb), 0.35);
}

.frente-member-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    height: 100%;
    border-radius: var(--radar-card-radius);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--radar-border-subtle);
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.frente-member-card:hover {
    border-color: rgba(110, 223, 246, 0.35);
    transform: translateY(-1px);
}

.frente-member-card__avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--radar-primary), rgba(110, 223, 246, 0.4));
    color: #fff;
    flex-shrink: 0;
}

.frente-papel-badge--editor { background-color: #0d6efd; }
.frente-papel-badge--leitor { background-color: #6c757d; }

.frente-kpi-display__icon {
    color: var(--radar-accent-line);
    font-size: 1.1rem;
}

.frente-kpi-display__metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.frente-kpi-metric {
    padding: 0.45rem 0.6rem;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.04);
}

.frente-kpi-metric__label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--radar-text-muted);
}

.frente-kpi-metric__value {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--radar-heading);
}

.frente-kpi-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.frente-kpi-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--radar-border-subtle);
    border-radius: var(--radar-card-radius);
    border-left: 3px solid var(--radar-accent-line);
    padding: 0.85rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.frente-kpi-row--guia-expandida {
    border-left-color: var(--radar-primary);
    box-shadow: 0 0 0 1px rgba(var(--radar-primary-rgb), 0.1);
}

.frente-kpi-row:focus-within {
    border-color: rgba(110, 223, 246, 0.45);
    box-shadow: 0 0 0 1px rgba(110, 223, 246, 0.12);
}

.frente-kpi-row__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.frente-kpi-row--guia-expandida .frente-kpi-row__head {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--radar-border-subtle);
}

.frente-kpi-row__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.35rem;
    border-radius: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(110, 223, 246, 0.12);
    color: var(--radar-accent-line);
}

.frente-kpi-row__title {
    font-weight: 500;
    min-width: 0;
}

.frente-kpi-toggle-guia {
    white-space: nowrap;
}

.frente-kpi-guia {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.frente-kpi-guia__passo {
    padding: 0.85rem 0.95rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.frente-kpi-guia__passo--meta {
    border-color: rgba(var(--radar-primary-rgb), 0.2);
    background: rgba(var(--radar-primary-rgb), 0.04);
}

.frente-kpi-guia__pergunta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.frente-kpi-guia__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    background: var(--radar-primary);
    color: #fff;
}

.frente-kpi-guia__titulo {
    display: block;
    font-size: 0.9rem;
    color: var(--radar-heading);
    margin-bottom: 0.2rem;
}

.frente-kpi-guia__texto {
    font-size: 0.8125rem;
    color: var(--radar-text-muted);
    line-height: 1.45;
}

.frente-kpi-guia__checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.frente-kpi-guia__checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--radar-text-muted);
    line-height: 1.4;
}

.frente-kpi-guia__checklist li i {
    color: var(--radar-accent-line);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.frente-kpi-guia__exemplos {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.frente-kpi-guia__exemplo {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--radar-border-subtle);
    font-size: 0.8125rem;
    color: var(--radar-text-muted);
    line-height: 1.4;
}

.frente-kpi-guia__exemplo-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--radar-accent-line);
}

.frente-kpi-empty-guia {
    padding: 1rem 1.1rem;
    border-radius: var(--radar-card-radius);
    border: 1px dashed rgba(var(--radar-primary-rgb), 0.35);
    background: rgba(var(--radar-primary-rgb), 0.05);
}

.frente-kpi-empty-guia__title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--radar-heading);
    margin-bottom: 0.65rem;
}

.frente-kpi-guia-resumo li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.8125rem;
    color: var(--radar-text-muted);
    line-height: 1.45;
    padding: 0.25rem 0;
}

.frente-kpi-guia-resumo__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(var(--radar-primary-rgb), 0.25);
    color: #9ecbff;
}

.frente-kpi-display {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--radar-border-subtle);
    border-radius: var(--radar-card-radius);
    border-left: 3px solid var(--radar-accent-line);
}

.frente-kpi-progress__bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.08);
}

.frente-kpi-progress__bar .progress-bar {
    background-color: var(--radar-accent-line);
    transition: width 0.4s ease;
}

.frente-membros-wrap {
    max-height: 28rem;
    overflow-y: auto;
}

.frente-membros-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: sticky;
    top: 0;
    background: var(--radar-bg-elevated);
    z-index: 1;
}

.frente-team-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.frente-team-list-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--radar-border-subtle);
}

.frente-team-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.frente-status-badge--planejamento { background-color: #6c757d; }
.frente-status-badge--em_andamento { background-color: #0d6efd; }
.frente-status-badge--pausada { background-color: #fd7e14; }
.frente-status-badge--concluida { background-color: #198754; }
.frente-status-badge--arquivada { background-color: #495057; }

.frente-empty-state {
    border: 1px dashed var(--radar-border-subtle);
    border-radius: var(--radar-card-radius);
    background: rgba(255, 255, 255, 0.02);
}

.frente-empty-state__icon {
    font-size: 2rem;
    color: var(--radar-text-muted);
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.frente-empty-state__title {
    font-weight: 600;
    color: var(--radar-text-main);
}

.frente-empty-state__text {
    font-size: 0.8125rem;
    color: var(--radar-text-muted);
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1199.98px) {
    .frente-membros-wrap {
        max-height: none;
    }
}

/* Frente — Kanban de tarefas */
.turma-kanban__board {
    align-items: stretch;
}
.turma-kanban-col {
    display: flex;
    flex-direction: column;
    min-height: 18rem;
    border: 1px solid var(--radar-border-subtle);
    border-radius: var(--radar-card-radius);
    background: rgba(255, 255, 255, 0.02);
}
.turma-kanban-col__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.turma-kanban-col__titulo {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--radar-heading);
}
.turma-kanban-col--pendente .turma-kanban-col__titulo { color: #94a3b8; }
.turma-kanban-col--fazendo .turma-kanban-col__titulo { color: #60a5fa; }
.turma-kanban-col--impedimento .turma-kanban-col__titulo { color: #f59e0b; }
.turma-kanban-col--pronto .turma-kanban-col__titulo { color: #3dd68c; }
.turma-kanban-col__contagem {
    background: rgba(255, 255, 255, 0.08);
    color: var(--radar-text-muted);
}
.turma-kanban-col__lista {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem;
    min-height: 10rem;
    transition: background-color 0.15s ease;
}
.turma-kanban-col__lista--over {
    background: rgba(var(--radar-primary-rgb), 0.08);
    outline: 1px dashed rgba(var(--radar-primary-rgb), 0.35);
    outline-offset: -4px;
    border-radius: 0 0 var(--radar-card-radius) var(--radar-card-radius);
}
.turma-kanban-col__vazio {
    margin: 0;
    padding: 0 1rem 1rem;
    font-size: 0.82rem;
    color: var(--radar-text-muted);
    text-align: center;
}
.turma-kanban-card {
    position: relative;
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}
.turma-kanban-card__accent {
    width: 4px;
    flex-shrink: 0;
    background: #64748b;
}
.turma-kanban-card--prioridade-baixa .turma-kanban-card__accent { background: #64748b; }
.turma-kanban-card--prioridade-media .turma-kanban-card__accent { background: #f59e0b; }
.turma-kanban-card--prioridade-alta .turma-kanban-card__accent { background: #ef4444; }
.turma-kanban-col--impedimento .turma-kanban-card__accent { background: #f59e0b; }
.turma-kanban-card__conteudo {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.85rem 0.9rem 0.75rem;
}
.turma-kanban-card__topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}
.turma-kanban-card__prioridade {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.turma-kanban-card__prioridade--baixa {
    color: #cbd5e1;
    background: rgba(100, 116, 139, 0.25);
    border: 1px solid rgba(100, 116, 139, 0.45);
}
.turma-kanban-card__prioridade--media {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.22);
    border: 1px solid rgba(245, 158, 11, 0.5);
}
.turma-kanban-card__prioridade--alta {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.22);
    border: 1px solid rgba(239, 68, 68, 0.55);
}
.turma-kanban-card__arrastar {
    color: var(--radar-text-muted);
    opacity: 0.65;
    cursor: grab;
}
.turma-kanban-card__texto {
    color: var(--radar-text-main);
    font-size: 0.92rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.turma-kanban-card__kpi {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
    font-size: 0.74rem;
    color: var(--radar-accent-line);
}
.turma-kanban-card__impedimento {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.45rem;
    font-size: 0.76rem;
    line-height: 1.4;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.turma-kanban-card__resultado {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.45rem;
    font-size: 0.76rem;
    line-height: 1.4;
    color: #86efac;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.turma-kanban-card__impedimento--vazio {
    color: var(--radar-text-muted);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}
.turma-kanban-card__datas {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.55rem;
}
.turma-kanban-card__data {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    color: var(--radar-text-muted);
}
.turma-kanban-card__data--prazo {
    color: #fcd34d;
}
.turma-kanban-card__data--conclusao {
    color: #3dd68c;
}
.turma-kanban-card__autor,
.turma-kanban-card__alteracao {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
    font-size: 0.74rem;
    color: var(--radar-text-muted);
}
.frente-tarefa-modal-conclusao__valor {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
}

/* Modal de tarefa — conteúdo interno (shell = .radar-modal padrão) */
.frente-tarefa-form-section + .frente-tarefa-opcionais-card {
    margin-top: 1rem;
}
.frente-tarefa-field-card {
    padding: 0.85rem 1rem;
    border-radius: var(--radar-card-radius);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--radar-border-subtle);
}
.frente-tarefa-field-card__label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--radar-text-muted);
}
.frente-tarefa-field-card__label i {
    color: var(--radar-accent-line);
    font-size: 0.95rem;
}
.frente-tarefa-descricao-input {
    min-height: 7rem;
    resize: vertical;
    line-height: 1.55;
}
.frente-tarefa-prioridade-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}
.frente-tarefa-prioridade-opt {
    margin: 0;
    cursor: pointer;
}
.frente-tarefa-prioridade-opt__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.frente-tarefa-prioridade-opt__surface {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 3.85rem;
    padding: 0.5rem 0.35rem;
    border-radius: 0.65rem;
    border: 1px solid var(--radar-border-subtle);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--radar-text-muted);
    transition: border-color 0.18s ease, background 0.18s ease;
}
.frente-tarefa-prioridade-opt__surface i {
    font-size: 1.1rem;
}
.frente-tarefa-prioridade-opt:hover .frente-tarefa-prioridade-opt__surface {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}
.frente-tarefa-prioridade-opt__input:focus-visible + .frente-tarefa-prioridade-opt__surface {
    outline: 2px solid rgba(var(--radar-accent-rgb), 0.75);
    outline-offset: 2px;
}
.frente-tarefa-prioridade-opt--baixa .frente-tarefa-prioridade-opt__input:checked + .frente-tarefa-prioridade-opt__surface {
    color: #cbd5e1;
    background: rgba(100, 116, 139, 0.28);
    border-color: rgba(148, 163, 184, 0.55);
}
.frente-tarefa-prioridade-opt--media .frente-tarefa-prioridade-opt__input:checked + .frente-tarefa-prioridade-opt__surface {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
}
.frente-tarefa-prioridade-opt--alta .frente-tarefa-prioridade-opt__input:checked + .frente-tarefa-prioridade-opt__surface {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}
.frente-tarefa-opcionais-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem 0.95rem;
    border: 1px dashed var(--radar-border-subtle);
    border-radius: var(--radar-card-radius);
    background: rgba(255, 255, 255, 0.02);
    color: var(--radar-text-main);
    text-align: left;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.frente-tarefa-opcionais-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(var(--radar-accent-rgb), 0.45);
}
.frente-tarefa-opcionais-card[aria-expanded="true"] {
    border-style: solid;
    border-color: var(--radar-border-subtle);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
}
.frente-tarefa-opcionais-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.55rem;
    flex-shrink: 0;
    color: var(--radar-accent-line);
    background: rgba(var(--radar-accent-rgb), 0.12);
    border: 1px solid rgba(var(--radar-accent-rgb), 0.28);
}
.frente-tarefa-opcionais-card__texto {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.35;
    color: var(--radar-text-main);
}
.frente-tarefa-opcionais-card__texto small {
    font-weight: 400;
    font-size: 0.76rem;
}
.frente-tarefa-opcionais-toggle__icon {
    transition: transform 0.2s ease;
    color: var(--radar-text-muted);
    font-size: 0.95rem;
}
.frente-tarefa-opcionais-card[aria-expanded="true"] .frente-tarefa-opcionais-toggle__icon {
    transform: rotate(180deg);
}
.frente-tarefa-opcionais-panel {
    padding: 0.95rem;
    border: 1px solid var(--radar-border-subtle);
    border-top: none;
    border-radius: 0 0 var(--radar-card-radius) var(--radar-card-radius);
    background: rgba(255, 255, 255, 0.015);
}
.frente-tarefa-mini-card {
    padding: 0.8rem;
    border-radius: 0.65rem;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid var(--radar-border-subtle);
    height: 100%;
}
.frente-tarefa-mini-card__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--radar-text-muted);
}
.frente-tarefa-mini-card__label i {
    color: var(--radar-accent-line);
}
.frente-tarefa-equipe-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.frente-tarefa-equipe-person {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.5rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--radar-border-subtle);
}
.frente-tarefa-equipe-person__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--radar-accent-line);
    background: rgba(var(--radar-accent-rgb), 0.12);
    border: 1px solid rgba(var(--radar-accent-rgb), 0.3);
}
.frente-tarefa-equipe-person__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}
.frente-tarefa-equipe-person__nome {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--radar-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.frente-tarefa-equipe-person__papel {
    font-size: 0.72rem;
    color: var(--radar-text-muted);
}
.frente-tarefa-alert-card {
    padding: 0.95rem 1rem;
    border-radius: var(--radar-card-radius);
    border: 1px solid transparent;
}
.frente-tarefa-alert-card__label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.frente-tarefa-alert-card__valor {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 0.7rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--radar-border-subtle);
    color: var(--radar-text-main);
}
.frente-tarefa-alert-card__hint {
    margin-top: 0.5rem;
    font-size: 0.76rem;
    color: var(--radar-text-muted);
}
.frente-tarefa-alert-card--impedimento {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.35);
}
.frente-tarefa-alert-card--impedimento .frente-tarefa-alert-card__label {
    color: #fcd34d;
}
.frente-tarefa-alert-card--conclusao {
    background: rgba(61, 214, 140, 0.08);
    border-color: rgba(61, 214, 140, 0.35);
}
.frente-tarefa-alert-card--conclusao .frente-tarefa-alert-card__label {
    color: #3dd68c;
}
.frente-tarefa-alert-card--conclusao .frente-tarefa-alert-card__valor {
    color: #3dd68c;
    border-color: rgba(61, 214, 140, 0.25);
}
@media (max-width: 575.98px) {
    .frente-tarefa-prioridade-opt__surface {
        min-height: 3.4rem;
        font-size: 0.76rem;
    }
}
.frente-tarefa-equipe__chip {
    background: rgba(var(--radar-primary-rgb), 0.18);
    color: var(--radar-text-main);
    border: 1px solid rgba(var(--radar-primary-rgb), 0.3);
    font-weight: 500;
    font-size: 0.75rem;
}
.turma-kanban-card__rodape {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.turma-kanban-card--editavel {
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) {
    .turma-kanban-card--editavel:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        transform: translateY(-1px);
    }
}
.turma-kanban-card--arrastando {
    opacity: 0.45;
}
.turma-kanban-card--ghost {
    min-height: 4.5rem;
    border: 1px dashed rgba(var(--radar-primary-rgb), 0.45);
    background: rgba(var(--radar-primary-rgb), 0.08);
    box-shadow: none;
}
/* Card de ocorrência futura de rotina: a tarefa ainda não existe */
.turma-kanban-card--prevista {
    opacity: 0.55;
    border-style: dashed;
    box-shadow: none;
    cursor: default;
}
.turma-kanban-card--prevista .turma-kanban-card__accent {
    opacity: 0.6;
}
.turma-kanban-card__prevista-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--radar-text-muted);
    border: 1px dashed rgba(255, 255, 255, 0.25);
}
.turma-kanban-card__prevista-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--radar-text-muted);
    font-style: italic;
}
.turma-kanban-vazio {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--radar-text-muted);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radar-card-radius);
}
.turma-kanban-vazio__icone {
    display: block;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    opacity: 0.55;
}

@media (max-width: 575.98px) {
    .radar-modal .modal-dialog {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0;
        height: 100%;
        max-height: none;
    }

    .radar-modal .modal-content {
        min-height: 100dvh;
        border-radius: 0;
        border-left: none;
    }
}

/* ============================================================
   Recursos de IA: toolbar Markdown, refinamento de texto e chat
   ============================================================ */

/* --- Toolbar de formatação Markdown --- */
.radar-md-toolbar {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.radar-md-toolbar .btn {
    --bs-btn-padding-y: 0.18rem;
    --bs-btn-padding-x: 0.45rem;
    line-height: 1.1;
}

.radar-md-toolbar .btn.active {
    background: rgba(var(--radar-accent-rgb), 0.18);
    border-color: rgba(var(--radar-accent-rgb), 0.55);
}

/* --- Painel de pré-visualização Markdown --- */
.radar-md-preview {
    border: 1px solid var(--radar-border-subtle);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.65rem 0.8rem;
    min-height: 6rem;
}

/* --- Render de Markdown (campos exibidos e preview) --- */
.radar-markdown h1,
.radar-markdown h2,
.radar-markdown h3,
.radar-markdown h4,
.radar-markdown h5,
.radar-markdown h6 {
    color: var(--radar-heading);
    font-size: 1.02rem;
    font-weight: 650;
    margin: 0.45rem 0 0.25rem;
    line-height: 1.3;
}

.radar-markdown p {
    margin: 0.2rem 0 0.45rem;
}

.radar-markdown ul,
.radar-markdown ol {
    margin: 0.25rem 0 0.45rem 1.1rem;
    padding: 0;
}

.radar-markdown blockquote {
    border-left: 3px solid rgba(var(--radar-accent-rgb), 0.55);
    margin: 0.35rem 0;
    padding: 0.15rem 0.65rem;
    color: var(--radar-text-muted);
}

.radar-markdown code {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.3rem;
    padding: 0.05rem 0.3rem;
    color: var(--radar-text-main);
}

.radar-markdown pre {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--radar-border-subtle);
    border-radius: 0.5rem;
    padding: 0.55rem 0.7rem;
    margin: 0.35rem 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.radar-markdown table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.35rem 0 0.5rem;
}

.radar-markdown th,
.radar-markdown td {
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--radar-border-subtle);
    text-align: left;
    vertical-align: top;
    font-size: 0.86rem;
}

.radar-markdown thead th {
    background: rgba(var(--radar-accent-rgb), 0.08);
    color: var(--radar-heading);
}

.radar-markdown a {
    color: var(--radar-accent-line);
}

.radar-markdown > :last-child {
    margin-bottom: 0;
}

/* --- Modal do editor de prompts (admin) --- */
.radar-modal--half-viewport .modal-dialog {
    width: min(60vw, 1000px) !important;
    max-width: min(60vw, 1000px) !important;
}

@media (max-width: 991.98px) {
    .radar-modal--half-viewport .modal-dialog {
        width: 94vw !important;
        max-width: 94vw !important;
    }
}

#modalPromptTextarea {
    min-height: 46vh;
    font-size: 0.84rem;
    line-height: 1.45;
}

#modalPromptTextarea.modal-prompt-textarea--grupo {
    min-height: 56vh;
}

/* --- Chat IA (Assistente Radar) --- */
.radar-chat-ia-fab {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 999px;
    border: 1px solid var(--radar-border-subtle);
    background: linear-gradient(145deg, var(--radar-primary), #15308f);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    z-index: 1035;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.radar-chat-ia-fab:hover,
.radar-chat-ia-fab:focus-visible {
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.42);
    filter: brightness(1.08);
}

.radar-chat-ia-fab.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

.radar-chat-ia-modal .modal-body {
    display: flex;
    flex-direction: column;
    min-height: 420px;
    gap: 0.35rem;
    padding: 1rem 1rem 0.9rem;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(var(--radar-accent-rgb), 0.06), transparent 45%),
        radial-gradient(120% 120% at 100% 100%, rgba(24, 52, 150, 0.08), transparent 50%);
}

.radar-chat-ia-dialog {
    width: 42vw !important;
    max-width: 42vw !important;
    min-width: 520px;
}

.radar-chat-ia-modal {
    border: 1px solid rgba(var(--radar-accent-rgb), 0.24);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(var(--radar-accent-rgb), 0.08) inset;
}

.radar-chat-ia-modal .modal-header {
    border-bottom: 1px solid rgba(var(--radar-accent-rgb), 0.2);
    background: linear-gradient(120deg, rgba(11, 24, 79, 0.95), rgba(23, 47, 131, 0.92));
    padding: 0.85rem 1rem;
}

.radar-chat-ia-modal .modal-title {
    letter-spacing: 0.15px;
    font-weight: 650;
}

.radar-chat-ia-modal .modal-footer {
    border-top: 1px solid var(--radar-border-subtle);
    background: rgba(7, 14, 46, 0.6);
    padding: 0.7rem 1rem;
}

@media (max-width: 1200px) {
    .radar-chat-ia-dialog {
        width: 65vw !important;
        max-width: 65vw !important;
    }
}

@media (max-width: 900px) {
    .radar-chat-ia-dialog {
        width: 90vw !important;
        max-width: 90vw !important;
        min-width: 0;
    }
}

.radar-chat-ia-contextos {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radar-chat-ia-contextos-toggle {
    width: 100%;
    border: 1px solid var(--radar-border-subtle);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--radar-text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.62rem 0.78rem;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.radar-chat-ia-contextos-toggle__rotulo {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.radar-chat-ia-contextos-toggle__meta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
}

.radar-chat-ia-contextos-toggle__ativo {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--radar-accent-rgb), 0.45);
    background: rgba(var(--radar-accent-rgb), 0.14);
    color: var(--radar-text-main);
    white-space: nowrap;
}

.radar-chat-ia-contextos-toggle.has-selection .radar-chat-ia-contextos-toggle__rotulo {
    font-size: 0.82rem;
    color: var(--radar-text-muted);
    font-weight: 500;
}

.radar-chat-ia-contextos-toggle.has-selection .radar-chat-ia-contextos-toggle__ativo {
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radar-chat-ia-contextos-toggle:hover,
.radar-chat-ia-contextos-toggle:focus-visible,
.radar-chat-ia-contextos-toggle.is-expanded {
    border-color: rgba(var(--radar-accent-rgb), 0.6);
    background: rgba(var(--radar-accent-rgb), 0.1);
}

.radar-chat-ia-contextos-toggle[aria-expanded="true"] .radar-chat-ia-contextos-toggle__icone {
    transform: rotate(180deg);
}

.radar-chat-ia-contextos-toggle__icone {
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.radar-chat-ia-contextos-lista {
    display: grid;
    gap: 0.45rem;
}

.radar-chat-ia-contexto-btn {
    text-align: left;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--radar-border-subtle);
    color: var(--radar-text-main);
    border-radius: 0.75rem;
    padding: 0.62rem 0.78rem;
    transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.radar-chat-ia-contexto-btn:hover,
.radar-chat-ia-contexto-btn:focus-visible,
.radar-chat-ia-contexto-btn.is-active {
    border-color: rgba(var(--radar-accent-rgb), 0.6);
    background: rgba(var(--radar-accent-rgb), 0.12);
    box-shadow: 0 8px 20px rgba(19, 45, 128, 0.32);
    transform: translateY(-1px);
    color: var(--radar-text-main);
}

.radar-chat-ia-contexto-btn__titulo {
    display: block;
    font-weight: 600;
}

.radar-chat-ia-contexto-btn__subtitulo {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.76rem;
    color: var(--radar-text-muted);
}

.radar-chat-ia-perguntas {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.radar-chat-ia-perguntas-toggle {
    width: 100%;
    border: 1px solid var(--radar-border-subtle);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--radar-text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.78rem;
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.radar-chat-ia-perguntas-toggle__rotulo {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.radar-chat-ia-perguntas-toggle__meta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
}

.radar-chat-ia-perguntas-toggle__badge {
    flex-shrink: 0;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid rgba(var(--radar-accent-rgb), 0.5);
    background: rgba(var(--radar-accent-rgb), 0.18);
    color: var(--radar-text-main);
}

.radar-chat-ia-perguntas-toggle:hover,
.radar-chat-ia-perguntas-toggle:focus-visible,
.radar-chat-ia-perguntas-toggle.is-expanded {
    border-color: rgba(var(--radar-accent-rgb), 0.6);
    background: rgba(var(--radar-accent-rgb), 0.1);
}

.radar-chat-ia-perguntas-toggle[aria-expanded="true"] .radar-chat-ia-perguntas-toggle__icone {
    transform: rotate(180deg);
}

.radar-chat-ia-perguntas-toggle__icone {
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.radar-chat-ia-perguntas-lista {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.7rem;
    border: 1px solid rgba(var(--radar-accent-rgb), 0.22);
    border-radius: 0.85rem;
    background: linear-gradient(165deg, rgba(var(--radar-accent-rgb), 0.1), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.radar-chat-ia-perguntas-lista__dica {
    font-size: 0.74rem;
    color: var(--radar-text-muted);
}

.radar-chat-ia-perguntas-lista__itens {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.radar-chat-ia-pergunta-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-align: left;
    border: 1px solid var(--radar-border-subtle);
    border-radius: 0.75rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    color: var(--radar-text-main);
    padding: 0.62rem 0.72rem;
    font-size: 0.84rem;
    line-height: 1.35;
    transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.radar-chat-ia-pergunta-btn__num {
    flex-shrink: 0;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
    border: 1px solid rgba(var(--radar-accent-rgb), 0.45);
    background: rgba(var(--radar-accent-rgb), 0.16);
    color: var(--radar-text-main);
}

.radar-chat-ia-pergunta-btn__texto {
    flex: 1;
    min-width: 0;
}

.radar-chat-ia-pergunta-btn__seta {
    flex-shrink: 0;
    font-size: 1.15rem;
    opacity: 0.45;
    transition: transform 0.14s ease, opacity 0.14s ease;
}

.radar-chat-ia-pergunta-btn:hover:not(:disabled),
.radar-chat-ia-pergunta-btn:focus-visible:not(:disabled) {
    border-color: rgba(var(--radar-accent-rgb), 0.6);
    background: rgba(var(--radar-accent-rgb), 0.14);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(19, 45, 128, 0.22);
    color: var(--radar-text-main);
}

.radar-chat-ia-pergunta-btn:hover:not(:disabled) .radar-chat-ia-pergunta-btn__seta,
.radar-chat-ia-pergunta-btn:focus-visible:not(:disabled) .radar-chat-ia-pergunta-btn__seta {
    opacity: 1;
    transform: translateX(2px);
}

.radar-chat-ia-pergunta-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.radar-chat-ia-frente-busca {
    position: relative;
}

.radar-chat-ia-frente-sugestoes {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 0.25rem);
    max-height: 220px;
    overflow: auto;
    margin: 0;
    padding: 0.25rem;
    border: 1px solid var(--radar-border-subtle);
    border-radius: 0.55rem;
    background: var(--radar-bg-elevated);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.radar-chat-ia-frente-sugestao {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--radar-text-main);
    padding: 0.45rem 0.55rem;
    border-radius: 0.4rem;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.radar-chat-ia-frente-sugestao:hover,
.radar-chat-ia-frente-sugestao:focus-visible {
    background: rgba(var(--radar-accent-rgb), 0.12);
    color: var(--radar-text-main);
}

.radar-chat-ia-frente-sugestoes li.text-muted .radar-chat-ia-frente-sugestao {
    cursor: default;
    color: var(--radar-text-muted);
}

.radar-chat-ia-frente-selecionada-grupo .form-control[readonly] {
    color: var(--radar-text-main);
    background-color: rgba(255, 255, 255, 0.06);
    cursor: default;
}

.radar-chat-ia-frente-limpar {
    flex-shrink: 0;
}

.radar-chat-ia-mensagens {
    flex: 1;
    min-width: 0;
    min-height: 220px;
    overflow: auto;
    overflow-x: hidden;
    border: 1px solid var(--radar-border-subtle);
    border-radius: 0.9rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.015));
    padding: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.radar-chat-ia-vazio {
    color: var(--radar-text-muted);
    text-align: center;
    padding: 1.5rem 1rem;
}

.radar-chat-ia-msg-row {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
}

.radar-chat-ia-msg-row--user {
    justify-content: flex-end;
}

.radar-chat-ia-msg-row--user .radar-chat-ia-avatar {
    order: 2;
}

.radar-chat-ia-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    flex: 0 0 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--radar-border-subtle);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.radar-chat-ia-avatar--assistant {
    background: linear-gradient(145deg, rgba(35, 71, 189, 0.95), rgba(17, 35, 111, 0.95));
}

.radar-chat-ia-avatar--user {
    background: linear-gradient(145deg, rgba(var(--radar-accent-rgb), 0.35), rgba(29, 80, 206, 0.3));
}

.radar-chat-ia-avatar__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.radar-chat-ia-avatar__fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2px;
}

.radar-chat-ia-avatar__fallback.is-visible {
    display: inline-flex;
}

.radar-chat-ia-msg {
    max-width: 90%;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
    border-radius: 0.78rem;
    padding: 0.62rem 0.8rem;
    border: 1px solid var(--radar-border-subtle);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.radar-chat-ia-msg--user {
    background: linear-gradient(155deg, rgba(0, 28, 114, 0.46), rgba(23, 60, 190, 0.34));
    border-color: rgba(var(--radar-accent-rgb), 0.28);
}

.radar-chat-ia-msg--assistant {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.radar-chat-ia-msg--digitando {
    opacity: 0.95;
}

.radar-chat-ia-typing {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.1rem;
}

.radar-chat-ia-typing__dot {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: rgba(var(--radar-accent-rgb), 0.85);
    animation: radarChatIaTyping 1.1s infinite ease-in-out;
}

.radar-chat-ia-typing__dot:nth-child(2) {
    animation-delay: 0.15s;
}

.radar-chat-ia-typing__dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes radarChatIaTyping {
    0%, 100% { transform: translateY(0); opacity: 0.45; }
    50% { transform: translateY(-3px); opacity: 1; }
}

.radar-chat-ia-msg__autor {
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--radar-text-muted);
    margin-bottom: 0.2rem;
}

.radar-chat-ia-msg__texto {
    display: block;
    max-width: 100%;
    min-width: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    color: var(--radar-text-main);
}

.radar-chat-ia-msg__texto * {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.radar-chat-ia-msg__texto br {
    line-height: 1.35;
}

.radar-chat-ia-md-h1,
.radar-chat-ia-md-h2,
.radar-chat-ia-md-h3 {
    color: var(--radar-heading);
    margin: 0.35rem 0;
    line-height: 1.25;
}

.radar-chat-ia-md-inline {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.3rem;
    padding: 0.05rem 0.3rem;
}

.radar-chat-ia-md-pre {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--radar-border-subtle);
    border-radius: 0.5rem;
    padding: 0.55rem 0.7rem;
    margin: 0.35rem 0;
    max-width: 100%;
    box-sizing: border-box;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.radar-chat-ia-md-pre code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.radar-chat-ia-md-list {
    margin: 0.25rem 0 0.35rem 1rem;
    padding: 0;
}

.radar-chat-ia-msg__texto p {
    margin: 0.2rem 0 0.4rem;
}

.radar-chat-ia-md-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 0.3rem 0 0.5rem;
    border: 1px solid var(--radar-border-subtle);
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.02);
}

.radar-chat-ia-md-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 340px;
}

.radar-chat-ia-md-table th,
.radar-chat-ia-md-table td {
    padding: 0.42rem 0.52rem;
    border-bottom: 1px solid var(--radar-border-subtle);
    text-align: left;
    vertical-align: top;
    font-size: 0.84rem;
    color: var(--radar-text-main);
    white-space: normal;
}

.radar-chat-ia-md-table thead th {
    background: rgba(var(--radar-accent-rgb), 0.08);
    color: var(--radar-heading);
    font-weight: 650;
}

.radar-chat-ia-md-table tbody tr:last-child td {
    border-bottom: 0;
}

.radar-chat-ia-admin-box {
    border: 1px solid var(--radar-border-subtle);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.55rem 0.7rem;
}

.radar-chat-ia-admin-box > summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--radar-text-main);
}

.radar-chat-ia-admin-box__meta {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    color: var(--radar-text-muted);
    font-size: 0.82rem;
}

.radar-chat-ia-admin-box__pre {
    max-height: 200px;
    overflow: auto;
    margin: 0;
    border: 1px solid var(--radar-border-subtle);
    border-radius: 0.55rem;
    background: rgba(0, 0, 0, 0.22);
    color: var(--radar-text-main);
    padding: 0.55rem 0.65rem;
    font-size: 0.76rem;
    line-height: 1.4;
}

.radar-chat-ia-aviso-validacao {
    color: var(--radar-text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.radar-chat-ia-form-row {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
}

#radar-chat-ia-form .form-control {
    flex: 1;
    min-width: 0;
    border-radius: 0.75rem;
    border-color: rgba(var(--radar-accent-rgb), 0.22);
    background: rgba(255, 255, 255, 0.04);
    min-height: 2.55rem;
}

#radar-chat-ia-form .form-control:focus {
    border-color: rgba(var(--radar-accent-rgb), 0.65);
    box-shadow: 0 0 0 0.18rem rgba(var(--radar-accent-rgb), 0.2);
    background: rgba(255, 255, 255, 0.06);
}

#radar-chat-ia-enviar {
    flex-shrink: 0;
    border-radius: 0.75rem;
    padding: 0 1rem;
    font-weight: 600;
    box-shadow: 0 10px 22px rgba(19, 45, 128, 0.3);
}

/* ===== Dashboard do usuário ===== */
.dash-secao-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.dash-secao-head__titulo {
    margin-bottom: 0.15rem;
    color: var(--radar-heading);
}
.dash-secao-head__sub {
    font-size: 0.85rem;
}

/* Cards de frente (reusa as cores/variáveis de .frente-topo__risco--*) */
.dash-frente-card {
    display: flex;
    flex-direction: column;
    gap: var(--dash-gap-sm);
    padding: 0.9rem 1rem;
    min-height: 100%;
}
.dash-frente-card__rodape-card {
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--dash-gap-xs);
    padding-top: var(--dash-gap-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.dash-frente-card__rodape-card .dash-frente-card__comparativo {
    margin-bottom: 0;
}
.dash-frente-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.dash-frente-card__identidade {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}
.dash-frente-card__led-ativo {
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--dash-pulso-cor);
    box-shadow: 0 0 0 0 rgba(var(--dash-pulso-rgb), 0.5);
    animation: dash-frente-led-pulso 1.8s ease-in-out infinite;
}
@keyframes dash-frente-led-pulso {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(var(--dash-pulso-rgb), 0.45);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 0 0.35rem rgba(var(--dash-pulso-rgb), 0);
        opacity: 0.88;
    }
}
@media (prefers-reduced-motion: reduce) {
    .dash-frente-card__led-ativo {
        animation: none;
    }
}
.dash-frente-card__anel .frente-topo__anel-inner {
    position: relative;
    display: block;
    padding: 0;
    overflow: hidden;
}
.dash-frente-card__anel-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: block;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(var(--frente-topo-risco-rgb), 0.72);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.14),
        0 6px 18px rgba(0, 0, 0, 0.28),
        0 0 22px rgba(var(--frente-topo-risco-rgb), 0.38);
    line-height: 0;
}
/* Reflexo estilo iPhone — corte diagonal seco e mais sutil */
.dash-frente-card__anel-avatar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 100% 38%, 0 56%);
    background: linear-gradient(
        158deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.18) 100%
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
    pointer-events: none;
}
.dash-frente-card__anel-avatar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 2;
    clip-path: polygon(0 56%, 100% 38%, 100% 100%, 0 100%);
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.02) 0%,
        rgba(0, 0, 0, 0.08) 100%
    );
    pointer-events: none;
}
.dash-frente-card__icone-pausa {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.62);
    color: #fef08a;
    font-size: 1.45rem;
    line-height: 1;
    box-shadow:
        0 0 0 2px rgba(254, 240, 138, 0.35),
        0 4px 14px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    animation: dash-frente-icone-pausa-pulso 1.7s ease-in-out infinite;
}
.dash-frente-card__icone-pausa .bi {
    display: block;
    margin-left: 0.06rem;
}
@keyframes dash-frente-icone-pausa-pulso {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        box-shadow:
            0 0 0 2px rgba(254, 240, 138, 0.4),
            0 0 0 0 rgba(254, 240, 138, 0.45);
    }
    50% {
        opacity: 0.82;
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow:
            0 0 0 2px rgba(254, 240, 138, 0.55),
            0 0 0 0.65rem rgba(254, 240, 138, 0);
    }
}
.dash-frente-card--parada .dash-frente-card__icone-pausa {
    color: #fecaca;
    background: rgba(69, 10, 10, 0.72);
    box-shadow:
        0 0 0 2px rgba(248, 113, 113, 0.45),
        0 4px 14px rgba(0, 0, 0, 0.35);
}
@media (prefers-reduced-motion: reduce) {
    .dash-frente-card__icone-pausa {
        animation: none;
    }
}
.dash-frente-card__anel .frente-avatar {
    width: calc(var(--ring-size) * 0.74);
    height: calc(var(--ring-size) * 0.74);
    font-size: calc(var(--ring-size) * 0.2);
    flex-shrink: 0;
    border: none;
    box-shadow: none;
}
.dash-frente-card__anel .frente-avatar--img {
    display: block;
    border: none;
}
.dash-frente-card__anel .frente-topo__anel-valor {
    position: absolute;
    bottom: 0.72rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    flex-shrink: 0;
    line-height: 1;
    margin: 0;
    font-weight: 800;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.92);
    pointer-events: none;
}
.dash-frente-card__nome {
    font-weight: 700;
    color: var(--radar-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 575.98px) {
    .dash-frente-card__nome {
        font-size: 0.875rem;
    }
}
.dash-frente-card__identidade:hover .dash-frente-card__nome {
    color: var(--frente-topo-risco-cor);
}
.dash-frente-card__risco {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}
.dash-frente-card__termometro {
    display: flex;
    justify-content: center;
    width: 100%;
}
.dash-frente-card__anel {
    --ring-size: 15rem;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
}
.dash-frente-card__anel-pulso {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: conic-gradient(
        from 0deg,
        rgba(255, 255, 255, 0) 0deg,
        rgba(255, 255, 255, 0) 255deg,
        rgba(255, 255, 255, 0.55) 288deg,
        rgba(255, 255, 255, 0.9) 300deg,
        rgba(255, 255, 255, 0.55) 312deg,
        rgba(255, 255, 255, 0) 345deg,
        rgba(255, 255, 255, 0) 360deg
    );
    animation: dash-anel-pulso-girar 2.4s linear infinite;
    -webkit-mask: radial-gradient(
        farthest-side,
        transparent calc(100% - 9px),
        #000 calc(100% - 8px)
    );
    mask: radial-gradient(
        farthest-side,
        transparent calc(100% - 9px),
        #000 calc(100% - 8px)
    );
}
.dash-frente-card--parada .dash-frente-card__anel-pulso {
    animation-duration: 4.8s;
    opacity: 0.55;
}
@keyframes dash-anel-pulso-girar {
    to {
        transform: rotate(360deg);
    }
}
.dash-frente-card__anel .frente-topo__anel-inner {
    position: relative;
    z-index: 4;
}
.dash-frente-card__anel .frente-topo__anel-valor {
    font-size: 1.55rem;
}
.dash-frente-card__risco-detalhes {
    width: 100%;
}
.dash-frente-card .frente-topo__escala-trilha {
    overflow: visible;
}
.dash-frente-card .frente-topo__escala-marcador {
    z-index: 2;
}
.dash-frente-card .frente-topo__escala-legenda {
    font-size: 0.42rem;
    font-weight: 400;
}
@media (prefers-reduced-motion: reduce) {
    .dash-frente-card__anel-pulso {
        animation: none;
        opacity: 0;
    }
}
.dash-frente-card__mensagem {
    margin-top: 0.65rem;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--radar-text-muted);
    text-align: center;
}

.dash-frente-card__radar-insight {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: 0.55rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.5rem;
    border-left: 3px solid var(--radar-accent-line);
    background: rgba(var(--radar-primary-rgb), 0.22);
    text-align: left;
}

.dash-frente-card__radar-insight--tranquilo {
    border-left-color: rgb(34, 197, 94);
}

.dash-frente-card__radar-insight--atencao {
    border-left-color: rgb(251, 191, 36);
}

.dash-frente-card__radar-insight--critico {
    border-left-color: rgb(248, 113, 113);
}

.dash-frente-card__radar-insight-icone {
    flex-shrink: 0;
    color: var(--radar-accent-line);
    font-size: 0.9rem;
    line-height: 1.35;
}

.dash-frente-card__radar-insight-texto {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(248, 250, 252, 0.92);
}

.dash-frente-card__radar-insight-rotulo {
    color: #a5f3fc;
    font-weight: 700;
}

.dash-frente-card__comparativo-unico {
    grid-column: 1 / -1;
}
.dash-frente-card__head-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}
.dash-frente-oculta {
    display: none !important;
}
.dash-frente-card__atividade {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
}
.dash-frente-card__atividade-ponto {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    flex-shrink: 0;
}
.dash-frente-card__atividade--parada {
    color: var(--radar-text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.dash-frente-card__atividade--parada .dash-frente-card__atividade-ponto {
    background: #64748b;
}
/* Dashboard — tokens de layout e atividade */
:root {
    --dash-atividade-cor: #60a5fa;
    --dash-atividade-rgb: 96, 165, 250;
    --dash-pulso-cor: #22c55e;
    --dash-pulso-rgb: 34, 197, 94;
    --dash-gap-xs: clamp(0.35rem, 0.55vh, 0.5rem);
    --dash-gap-sm: clamp(0.5rem, 0.8vh, 0.7rem);
    --dash-gap-md: clamp(0.65rem, 1vw, 0.95rem);
    --dash-gap-lg: clamp(0.85rem, 1.2vw, 1.2rem);
    --dash-tv-coluna-largura: clamp(16rem, 18vw, 22rem);
    --dash-tv-sidebar-largura: var(--dash-tv-coluna-largura);
    --dash-superficie-borda: rgba(96, 165, 250, 0.2);
    --dash-superficie-borda-forte: rgba(var(--radar-primary-rgb), 0.48);
    --dash-superficie-fundo: linear-gradient(
        165deg,
        rgba(var(--radar-primary-rgb), 0.3) 0%,
        rgba(14, 22, 56, 0.92) 52%,
        rgba(5, 8, 25, 0.97) 100%
    );
    --dash-card-fundo: linear-gradient(
        145deg,
        rgba(var(--radar-primary-rgb), 0.22) 0%,
        rgba(14, 22, 56, 0.78) 100%
    );
    --dash-card-borda: rgba(96, 165, 250, 0.18);
    --dash-card-sombra: 0 4px 16px rgba(0, 10, 50, 0.32);
    --dash-secao-divisor: rgba(96, 165, 250, 0.14);
}

/* Card de tarefa em execução: pulsa para sinalizar atividade */
.dash-tarefa-card--ativa,
.dash-tv-tarefa-card.dash-tarefa-card--ativa {
    position: relative;
    border-color: rgba(var(--dash-pulso-rgb), 0.42);
}
.dash-tarefa-card--ativa .turma-kanban-card__accent,
.dash-tv-tarefa-card .turma-kanban-card__accent {
    position: relative;
    z-index: 2;
    flex: 0 0 4px;
    width: 4px;
    align-self: stretch;
    min-height: auto;
}
.dash-tarefa-card--ativa .turma-kanban-card__conteudo,
.dash-tv-tarefa-card.dash-tarefa-card--ativa .dash-tv-tarefa-card__conteudo {
    position: relative;
    isolation: isolate;
    z-index: 1;
}
.dash-tarefa-card--ativa .turma-kanban-card__conteudo::before,
.dash-tv-tarefa-card.dash-tarefa-card--ativa .dash-tv-tarefa-card__conteudo::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    animation: dash-card-pulso-anel 2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .dash-tarefa-card--ativa .turma-kanban-card__conteudo::before,
    .dash-tv-tarefa-card.dash-tarefa-card--ativa .dash-tv-tarefa-card__conteudo::before {
        animation: none;
    }
}
@keyframes dash-card-pulso-anel {
    0%, 100% {
        box-shadow:
            inset 0 0 0 1px rgba(var(--dash-pulso-rgb), 0.12),
            inset 0 0 10px rgba(var(--dash-pulso-rgb), 0.04);
    }
    50% {
        box-shadow:
            inset 0 0 0 2px rgba(var(--dash-pulso-rgb), 0.42),
            inset 0 0 18px rgba(var(--dash-pulso-rgb), 0.16);
    }
}

.dash-frente-card__rodape {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.74rem;
    color: var(--radar-text-muted);
}
.dash-frente-card__impedimentos {
    color: #f59e0b;
}

/* Estado vazio */
.dash-vazio {
    padding: 2rem 1.25rem;
    border-radius: var(--radar-card-radius);
    border: 1px dashed var(--radar-border-subtle);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}
.dash-vazio__icone {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--radar-text-muted);
}

/* Colunas de tarefas por prioridade */
.dash-tarefas-col {
    --dash-prioridade-cor: #64748b;
    --dash-prioridade-rgb: 100, 116, 139;
    display: flex;
    flex-direction: column;
    min-height: 14rem;
    height: 100%;
    border: 1px solid var(--radar-border-subtle);
    border-top: 3px solid rgba(var(--dash-prioridade-rgb), 0.7);
    border-radius: var(--radar-card-radius);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.85rem 0.85rem 1rem;
}
.dash-tarefas-col--alta {
    --dash-prioridade-cor: #ef4444;
    --dash-prioridade-rgb: 239, 68, 68;
}
.dash-tarefas-col--media {
    --dash-prioridade-cor: #f59e0b;
    --dash-prioridade-rgb: 245, 158, 11;
}
.dash-tarefas-col--baixa {
    --dash-prioridade-cor: #64748b;
    --dash-prioridade-rgb: 100, 116, 139;
}
.dash-tarefas-col__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.dash-tarefas-col__titulo {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dash-prioridade-cor);
}
.dash-tarefas-col__ponto {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--dash-prioridade-cor);
    box-shadow: 0 0 0 3px rgba(var(--dash-prioridade-rgb), 0.2);
}
.dash-tarefas-col__contagem {
    background: rgba(var(--dash-prioridade-rgb), 0.16);
    color: var(--dash-prioridade-cor);
}
.dash-tarefas-col__lista {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: var(--dash-gap-sm);
}
.dash-tarefas-col__vazio {
    margin: auto 0;
    padding: 1rem 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--radar-text-muted);
}
.dash-tarefa-card {
    cursor: default;
}
.dash-tarefa-card__frente {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--radar-text-muted);
}
.dash-tarefa-card__frente:hover {
    color: var(--radar-heading);
}
.dash-tarefa-card__status {
    flex-shrink: 0;
    font-size: 0.64rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: var(--radar-text-muted);
}
.dash-tarefa-card__status--fazendo {
    background: rgba(96, 165, 250, 0.16);
    color: #60a5fa;
}
.dash-tarefa-card__status--impedimento {
    background: rgba(245, 158, 11, 0.16);
    color: #f59e0b;
}
.dash-tarefa-card__prazo--vencido {
    color: #f87171;
    font-weight: 700;
}

/* Cards do painel Fazendo (dashboard normal e TV) */
.dash-tv-tarefa-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-shrink: 0;
    width: 100%;
    min-height: 0;
    padding: 0;
    border-radius: var(--radar-card-radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}
.dash-tv-tarefa-card .turma-kanban-card__accent {
    border-radius: 0;
}
.dash-tv-tarefa-card__conteudo {
    flex: 1 1 auto;
    min-width: 0;
    padding: var(--dash-gap-sm);
    border-radius: 0 var(--radar-card-radius) var(--radar-card-radius) 0;
}
.dash-tv-tarefas-ativas__lista > .dash-tv-tarefa-card {
    flex-shrink: 0;
}
.dash-tv-tarefas-ativas__lista {
    padding: 0.2rem 0.15rem 0.3rem 0.15rem;
}
.dash-tarefa-card--ativa.turma-kanban-card {
    overflow: hidden;
}

/* Dashboard — turmas e alunos */
.dash-turma-card {
    border: 1px solid var(--radar-border-subtle);
    border-radius: var(--radar-card-radius);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.dash-turma-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}
.dash-turma-card__titulo {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    font-weight: 600;
    color: var(--radar-heading);
    line-height: 1.3;
}
.dash-turma-card__titulo:hover {
    color: var(--bs-primary);
}
.dash-turma-card__icone {
    color: var(--bs-primary);
    flex-shrink: 0;
}
.dash-turma-card__curso {
    font-size: 0.86rem;
    line-height: 1.35;
}
.dash-turma-card__modulo {
    color: var(--radar-text-muted);
    margin-bottom: 0;
}
.dash-turma-card__metricas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    font-size: 0.78rem;
    color: var(--radar-text-muted);
}
.dash-turma-card__metrica i {
    margin-right: 0.2rem;
}
.dash-turma-card__avaliacoes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}
.dash-turma-card__avaliacao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}
.dash-alunos-lista {
    border: 1px solid var(--radar-border-subtle);
    border-radius: var(--radar-card-radius);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}
.dash-aluno-item {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid var(--radar-border-subtle);
    transition: background-color 0.15s ease;
}
.dash-aluno-item:hover {
    background: rgba(255, 255, 255, 0.03);
}
.dash-aluno-item:last-child {
    border-bottom: none;
}
.dash-aluno-item__posicao {
    width: 1.35rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--radar-text-muted);
}
.dash-aluno-item__meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}
.dash-aluno-item__turma {
    color: var(--radar-text-muted);
}
.dash-aluno-item__turma:hover {
    color: var(--bs-primary);
}
.dash-aluno-item__sep {
    opacity: 0.55;
}
.dash-aluno-item__badge {
    font-size: 0.68rem;
    font-weight: 600;
    border: none;
}

/* Dashboard — interessados por origem (sidebar) */
.dash-interessados-origem-card {
    border: 1px solid var(--radar-border-subtle);
    border-radius: var(--radar-card-radius);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.dash-interessados-origem-card:hover {
    border-color: rgba(var(--bs-primary-rgb), 0.35);
    box-shadow: 0 6px 18px rgba(0, 8, 40, 0.18);
    transform: translateY(-1px);
}
.dash-interessados-origem-card__link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.95rem 1rem 1rem;
    min-height: 100%;
    color: inherit;
}
.dash-interessados-origem-card__link:hover {
    color: inherit;
}
.dash-interessados-origem-card__quantidade {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--radar-heading);
}
.dash-interessados-origem-card__rotulo {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--radar-heading);
}
.dash-interessados-origem-card--sidebar .dash-interessados-origem-card__link {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.7rem;
}
.dash-interessados-origem-card--sidebar .dash-interessados-origem-card__quantidade {
    flex-shrink: 0;
    min-width: 2.1rem;
    font-size: 1.15rem;
    text-align: center;
}
.dash-interessados-origem-card--sidebar .dash-interessados-origem-card__textos {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.dash-interessados-origem-card--sidebar .dash-interessados-origem-card__rotulo {
    font-size: 0.8rem;
    line-height: 1.25;
}
.dash-interessados-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: var(--dash-gap-md) calc(var(--dash-gap-md) + 0.1rem) !important;
}
.dash-interessados-sidebar__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: var(--dash-gap-sm);
    padding-bottom: var(--dash-gap-sm);
    border-bottom: 1px solid var(--dash-secao-divisor);
    flex-shrink: 0;
}
.dash-interessados-sidebar__titulo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--radar-heading);
}
.dash-interessados-sidebar__sub {
    font-size: 0.72rem;
    line-height: 1.3;
    margin-top: 0.15rem;
}
.dash-interessados-sidebar__acoes {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.dash-interessados-sidebar__total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6ee7b7;
    background: rgba(110, 231, 183, 0.12);
    border: 1px solid rgba(110, 231, 183, 0.28);
}
.dash-interessados-sidebar__lista {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.dash-interessados-sidebar__vazio {
    font-size: 0.78rem;
    line-height: 1.4;
}
.dash-sidebar-direita {
    display: flex;
    flex-direction: column;
    gap: var(--dash-gap-lg);
    min-width: 0;
}

.dash-secao--turmas {
    margin-top: 0;
}
.dash-secao--interessados {
    margin-top: 0;
}
.dash-secao--alunos {
    margin-top: 0;
}

/* Dashboard — visual aprimorado (somente fora da tela cheia) */
body:not(.dash-tela-cheia) .dash-conteudo {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "sidebar"
        "corpo";
    gap: var(--dash-gap-lg);
    align-items: start;
}
body:not(.dash-tela-cheia) .dash-sidebar-direita {
    grid-area: sidebar;
}
body:not(.dash-tela-cheia) .dash-tv-corpo {
    grid-area: corpo;
    display: flex;
    flex-direction: column;
    gap: var(--dash-gap-lg);
    min-width: 0;
}
body:not(.dash-tela-cheia) .dash-tv-corpo > .dash-secao {
    margin-bottom: 0 !important;
}
body:not(.dash-tela-cheia) .dash-frentes-grid,
body:not(.dash-tela-cheia) .dash-tarefas-grid,
body:not(.dash-tela-cheia) .dash-turmas-grid {
    --bs-gutter-x: var(--dash-gap-md);
    --bs-gutter-y: var(--dash-gap-md);
}
body:not(.dash-tela-cheia) .dash-conteudo .dash-secao {
    margin-bottom: 0 !important;
    padding: var(--dash-gap-lg) calc(var(--dash-gap-lg) + 0.15rem) calc(var(--dash-gap-lg) + 0.2rem);
    border-radius: calc(var(--radar-card-radius) + 2px);
    border: 1px solid var(--dash-superficie-borda);
    background: var(--dash-superficie-fundo);
    box-shadow:
        0 8px 28px rgba(0, 8, 40, 0.3),
        inset 0 1px 0 rgba(var(--radar-accent-rgb), 0.07);
}
body:not(.dash-tela-cheia) .dash-secao-head {
    padding-bottom: var(--dash-gap-sm);
    margin-bottom: var(--dash-gap-md);
    border-bottom: 1px solid var(--dash-secao-divisor);
}
body:not(.dash-tela-cheia) .dash-secao-head__icone {
    flex-shrink: 0;
    font-size: 1.05rem;
    color: var(--radar-accent-line);
    opacity: 0.95;
}
body:not(.dash-tela-cheia) .dash-secao--turmas .dash-secao-head__icone {
    color: #93c5fd;
}
body:not(.dash-tela-cheia) .dash-secao--interessados .dash-secao-head__icone,
body:not(.dash-tela-cheia) .dash-interessados-sidebar .dash-secao-head__icone {
    color: #6ee7b7;
}
body:not(.dash-tela-cheia) .dash-secao--tarefas .dash-secao-head__icone {
    color: var(--dash-pulso-cor);
}
body:not(.dash-tela-cheia) .dash-secao--alunos .dash-secao-head__icone {
    color: #7dd3fc;
}
body:not(.dash-tela-cheia) .dash-contador {
    background: rgba(var(--radar-primary-rgb), 0.35);
    border-color: var(--dash-superficie-borda);
    box-shadow: inset 0 1px 0 rgba(var(--radar-accent-rgb), 0.08);
}
body:not(.dash-tela-cheia) .dash-frente-card.frente-topo__risco {
    padding: 1.05rem 1.15rem 1.1rem;
    border-radius: var(--radar-card-radius);
    border: 1px solid rgba(var(--frente-topo-risco-rgb), 0.32);
    border-left: 4px solid rgba(var(--frente-topo-risco-rgb), 0.9);
    background: linear-gradient(
        145deg,
        rgba(var(--frente-topo-risco-rgb), 0.14) 0%,
        rgba(var(--radar-primary-rgb), 0.14) 42%,
        rgba(14, 22, 56, 0.72) 100%
    );
    box-shadow:
        0 6px 22px rgba(0, 8, 40, 0.28),
        inset 0 1px 0 rgba(var(--radar-accent-rgb), 0.06);
}
body:not(.dash-tela-cheia) .dash-frente-card__rodape-card {
    border-top-color: var(--dash-secao-divisor);
    padding-top: 0.65rem;
}
body:not(.dash-tela-cheia) .dash-frente-card .frente-topo__risco-badge {
    font-size: 0.64rem;
    padding: 0.18rem 0.45rem;
}
body:not(.dash-tela-cheia) .dash-tarefas-grid {
    align-items: stretch;
}
body:not(.dash-tela-cheia) .dash-tarefas-grid__col {
    display: flex;
    min-width: 0;
}
body:not(.dash-tela-cheia) .dash-secao-head__titulo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
body:not(.dash-tela-cheia) .dash-tarefas-col {
    background: var(--dash-card-fundo);
    border-color: rgba(var(--dash-prioridade-rgb), 0.28);
    border-top-width: 4px;
    box-shadow: var(--dash-card-sombra);
    flex: 1 1 auto;
    width: 100%;
    min-height: 14rem;
    max-height: 30rem;
}
body:not(.dash-tela-cheia) .dash-tarefas-col__lista {
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
    padding: 0.2rem 0.15rem 0.3rem;
}
body:not(.dash-tela-cheia) .dash-tarefas-col__head {
    padding-bottom: 0.55rem;
    margin-bottom: 0.15rem;
    border-bottom: 1px solid var(--dash-secao-divisor);
}
body:not(.dash-tela-cheia) .dash-tarefas-col .turma-kanban-card {
    background: var(--dash-card-fundo);
    border-color: var(--dash-card-borda);
    box-shadow: 0 2px 10px rgba(0, 8, 40, 0.26);
    overflow: hidden;
    width: 100%;
    flex-shrink: 0;
}
body:not(.dash-tela-cheia) .dash-tarefas-col .turma-kanban-card__accent {
    flex: 0 0 4px;
    width: 4px;
    align-self: stretch;
    border-radius: 0;
}
body:not(.dash-tela-cheia) .dash-tarefas-col .turma-kanban-card__conteudo {
    padding: var(--dash-gap-sm);
    border-radius: 0 var(--radar-card-radius) var(--radar-card-radius) 0;
}
body:not(.dash-tela-cheia) .dash-tarefa-card--ativa {
    border-color: rgba(var(--dash-pulso-rgb), 0.42);
}
body:not(.dash-tela-cheia) .dash-turma-card {
    background: linear-gradient(
        145deg,
        rgba(var(--radar-primary-rgb), 0.24) 0%,
        rgba(14, 22, 56, 0.78) 100%
    );
    border-color: var(--dash-card-borda);
    box-shadow: var(--dash-card-sombra);
}
body:not(.dash-tela-cheia) .dash-alunos-lista {
    background: rgba(var(--radar-primary-rgb), 0.14);
    border-color: var(--dash-superficie-borda);
    box-shadow: inset 0 1px 0 rgba(var(--radar-accent-rgb), 0.06);
}
body:not(.dash-tela-cheia) .dash-aluno-item:nth-child(odd) {
    background: rgba(var(--radar-primary-rgb), 0.1);
}
body:not(.dash-tela-cheia) .dash-aluno-item:hover {
    background: rgba(96, 165, 250, 0.1);
}
body:not(.dash-tela-cheia) .dash-vazio {
    padding: 2.25rem 1.5rem;
    background: rgba(var(--radar-primary-rgb), 0.12);
    border-color: var(--dash-superficie-borda);
    border-style: solid;
}
body:not(.dash-tela-cheia) .dash-aluno-item {
    padding: 0.65rem 1rem;
}

/* Responsável no card do kanban */
.turma-kanban-card__autor--responsavel {
    color: var(--radar-heading);
    font-weight: 600;
}

/* Cabeçalho da dashboard (ações: atualizado em + tela cheia) */
.dash-pagina__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.dash-pagina__acoes {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.dash-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(8, 12, 32, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    color: var(--radar-text-muted);
    white-space: nowrap;
}
.dash-status-pill__icone {
    color: #22c55e;
}
.dash-contador {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radar-card-radius);
    border: 1px solid var(--radar-border-subtle);
    background: rgba(255, 255, 255, 0.02);
}
.dash-contador__valor {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    color: var(--radar-heading);
}
.dash-contador__rotulo {
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.25;
    color: var(--radar-text-muted);
}

/* Barra de status do modo TV (visível apenas em tela cheia) */
.dash-tv-bar {
    display: none;
}
body.dash-tela-cheia .dash-tv-bar {
    display: block;
    position: fixed;
    right: clamp(0.75rem, 1.4vw, 2rem);
    bottom: clamp(0.6rem, 1.2vh, 1.5rem);
    z-index: 1080;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
body.dash-tela-cheia .dash-tv-bar.dash-tv-bar--oculta {
    opacity: 0;
    transform: translateY(0.75rem);
    pointer-events: none;
}
body.dash-tela-cheia .dash-tv-info {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(8, 12, 32, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    font-size: clamp(0.78rem, 0.85vw, 1.15rem);
    color: var(--radar-text-muted);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.dash-tv-info__icone {
    color: #22c55e;
}
.dash-tv-info__hora {
    font-weight: 800;
    color: var(--radar-heading);
    letter-spacing: 0.03em;
}
.dash-tv-info__sep {
    width: 1px;
    height: 1em;
    background: rgba(255, 255, 255, 0.18);
}
.dash-tv-info__progresso {
    --dash-prox-pct: 0;
    position: relative;
    flex-shrink: 0;
    width: 1.15em;
    height: 1.15em;
    border-radius: 50%;
    background: conic-gradient(
        #22c55e calc(var(--dash-prox-pct) * 1%),
        rgba(255, 255, 255, 0.14) 0
    );
}
.dash-tv-info__progresso::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: rgba(8, 12, 32, 0.92);
}
.dash-tv-info__fonte-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: var(--radar-heading);
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
}
.dash-tv-info__fonte-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}
.dash-tv-info__fonte-btn:disabled {
    opacity: 0.4;
    cursor: default;
}
.dash-tv-info__config-btn {
    padding: 0.1rem 0.45rem;
    font-size: 0.95em;
    line-height: 1;
}
.dash-tv-info__config-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}
.dash-tv-info__tela-cheia-btn[aria-pressed="true"],
.dash-tv-info__tela-cheia-btn:hover {
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.35);
}

/* Painel de configuração de frentes (modo TV) */
.dash-tv-config-painel {
    display: none;
}
body.dash-tela-cheia .dash-tv-config-painel {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.65rem);
    z-index: 1;
    width: min(22rem, calc(100vw - 2rem));
    max-height: min(24rem, 50vh);
    padding: 0.85rem 1rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 12, 32, 0.94);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    color: var(--radar-text-muted);
    font-size: clamp(0.78rem, 0.85vw, 1rem);
}
body.dash-tela-cheia .dash-tv-config-painel[hidden] {
    display: none !important;
}
.dash-tv-config-painel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.dash-tv-config-painel__titulo {
    margin: 0;
    font-size: 0.95em;
    font-weight: 700;
    color: var(--radar-heading);
}
.dash-tv-config-painel__fechar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--radar-text-muted);
    cursor: pointer;
}
.dash-tv-config-painel__fechar:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--radar-heading);
}
.dash-tv-config-painel__dica {
    margin: 0 0 0.5rem;
    font-size: 0.82em;
    line-height: 1.4;
}
.dash-tv-config-painel__acoes-topo {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    font-size: 0.82em;
}
.dash-tv-config-painel__link {
    padding: 0;
    border: none;
    background: none;
    color: #60a5fa;
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.dash-tv-config-painel__link:hover {
    color: #93c5fd;
}
.dash-tv-config-painel__sep {
    opacity: 0.45;
}
.dash-tv-config-painel__lista {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    padding-right: 0.15rem;
}
.dash-tv-config-painel__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.45rem;
    border-radius: 0.45rem;
    cursor: pointer;
    user-select: none;
}
.dash-tv-config-painel__item:hover {
    background: rgba(255, 255, 255, 0.06);
}
.dash-tv-config-painel__item-nome {
    color: var(--radar-heading);
    line-height: 1.3;
}
.dash-tv-config-painel__vazio {
    margin: 0;
    font-size: 0.85em;
    color: var(--radar-text-muted);
}
.dash-tv-config-painel__erro {
    margin: 0 0 0.65rem;
    font-size: 0.82em;
    color: #f87171;
}
.dash-tv-config-painel__rodape {
    display: flex;
    justify-content: flex-end;
}

/* ===== Modo tela cheia (TV) ===== */
body.dash-tv-popup {
    margin: 0;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    background-color: var(--radar-bg);
    color: var(--radar-text-main);
}
body.dash-tv-popup .dash-pagina {
    flex: 1 1 auto;
    min-height: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: clamp(0.75rem, 1.4vw, 2rem);
    box-sizing: border-box;
}
body.dash-tv-popup .dash-conteudo {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--dash-tv-sidebar-largura);
    grid-template-rows: minmax(0, 1fr);
    gap: var(--dash-gap-md);
    overflow: hidden;
}
body.dash-tv-popup .dash-secao--turmas,
body.dash-tv-popup .dash-secao--alunos {
    display: none !important;
}
body.dash-tv-popup .dash-tv-bar {
    display: block;
}
.dash-tv-info__fechar-btn {
    color: #f87171;
}
.dash-tv-info__fechar-btn:hover {
    color: #fca5a5;
}

body.dash-tela-cheia .radar-sidebar,
body.dash-tela-cheia .radar-topbar,
body.dash-tela-cheia .radar-chat-ia-fab,
body.dash-tela-cheia .dash-ocultar-tela-cheia,
body.dash-tela-cheia .dash-pagina__header,
body.dash-tela-cheia .dash-secao-head {
    display: none !important;
}
body.dash-tela-cheia .radar-main main {
    height: 100vh;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: clamp(0.75rem, 1.4vw, 2rem);
}
body.dash-tela-cheia .dash-pagina {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
body.dash-tela-cheia .dash-conteudo {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--dash-tv-sidebar-largura);
    grid-template-rows: minmax(0, 1fr);
    gap: var(--dash-gap-md);
    overflow: hidden;
}
body.dash-tela-cheia .dash-tv-corpo {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    container-type: inline-size;
    container-name: dash-frentes-area;
}
body:not(.dash-tela-cheia) .dash-tv-tarefas-ativas {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-height: min(22rem, 42vh);
    padding: var(--dash-gap-md) calc(var(--dash-gap-md) + 0.1rem);
    border-radius: calc(var(--radar-card-radius) + 2px);
    border: 1px solid var(--dash-superficie-borda);
    background: var(--dash-superficie-fundo);
    box-shadow:
        0 8px 28px rgba(0, 8, 40, 0.3),
        inset 0 1px 0 rgba(var(--radar-accent-rgb), 0.07);
}
body:not(.dash-tela-cheia) .dash-sidebar-direita .dash-interessados-sidebar {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(24rem, 40vh);
    border-radius: calc(var(--radar-card-radius) + 2px);
    border: 1px solid var(--dash-superficie-borda);
    background: var(--dash-superficie-fundo);
    box-shadow:
        0 8px 28px rgba(0, 8, 40, 0.3),
        inset 0 1px 0 rgba(var(--radar-accent-rgb), 0.07);
}
body:not(.dash-tela-cheia) .dash-tv-tarefas-ativas__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--dash-gap-sm);
    margin-bottom: var(--dash-gap-sm);
    padding-bottom: var(--dash-gap-sm);
    border-bottom: 1px solid var(--dash-secao-divisor);
    flex-shrink: 0;
}
body:not(.dash-tela-cheia) .dash-tv-tarefas-ativas__titulo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dash-pulso-cor);
}
body:not(.dash-tela-cheia) .dash-tv-tarefas-ativas__contagem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dash-pulso-cor);
    background: rgba(var(--dash-pulso-rgb), 0.12);
    border: 1px solid rgba(var(--dash-pulso-rgb), 0.28);
}
body:not(.dash-tela-cheia) .dash-tv-tarefas-ativas__lista {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--dash-gap-sm);
    padding-right: 0.1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
body:not(.dash-tela-cheia) .dash-tv-tarefa-card.dash-tarefa-card--ativa {
    border-color: rgba(var(--dash-pulso-rgb), 0.42);
}
body:not(.dash-tela-cheia) .dash-tv-tarefa-card {
    background: var(--dash-card-fundo);
    border-color: var(--dash-card-borda);
    box-shadow: 0 2px 10px rgba(0, 8, 40, 0.26);
}
body:not(.dash-tela-cheia) .dash-tv-tarefa-card__frente {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
    margin-bottom: var(--dash-gap-xs);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--radar-text-muted);
}
body:not(.dash-tela-cheia) .dash-tv-tarefa-card__descricao {
    font-size: 0.84rem;
    line-height: 1.35;
    color: var(--radar-heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body:not(.dash-tela-cheia) .dash-tv-tarefa-card__rodape {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--dash-gap-xs) var(--dash-gap-sm);
    margin-top: var(--dash-gap-xs);
    font-size: 0.72rem;
    color: var(--radar-text-muted);
}
body:not(.dash-tela-cheia) .dash-tv-tarefas-ativas__vazio {
    margin: auto 0;
    padding: 0.85rem 0.5rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--radar-text-muted);
}

@media (min-width: 1200px) {
    body:not(.dash-tela-cheia) .dash-conteudo {
        grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem);
        grid-template-areas: "corpo sidebar";
    }
    body:not(.dash-tela-cheia) .dash-sidebar-direita {
        position: sticky;
        top: 1rem;
        align-self: start;
        max-height: calc(100vh - 2rem);
        overflow: hidden;
    }
    body:not(.dash-tela-cheia) .dash-sidebar-direita .dash-tv-tarefas-ativas {
        flex: 0 1 auto;
        max-height: min(18rem, 38vh);
    }
    body:not(.dash-tela-cheia) .dash-sidebar-direita .dash-interessados-sidebar {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
    }
}

body.dash-tela-cheia .dash-sidebar-direita {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--dash-gap-md);
    overflow: hidden;
}

body.dash-tela-cheia .dash-tv-tarefas-ativas {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: var(--dash-gap-md);
    border-radius: clamp(0.7rem, 1vw, 1rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.035) 48%,
        rgba(255, 255, 255, 0.02) 100%
    );
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body.dash-tela-cheia .dash-tv-tarefas-ativas__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--dash-gap-sm);
    margin-bottom: var(--dash-gap-sm);
    padding-bottom: var(--dash-gap-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    flex-shrink: 0;
}
body.dash-tela-cheia .dash-tv-tarefas-ativas__titulo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: clamp(0.78rem, 1.1vw, 0.95rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dash-pulso-cor);
}
body.dash-tela-cheia .dash-tv-tarefas-ativas__contagem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dash-pulso-cor);
    background: rgba(var(--dash-pulso-rgb), 0.12);
    border: 1px solid rgba(var(--dash-pulso-rgb), 0.28);
}
body.dash-tela-cheia .dash-tv-tarefas-ativas__lista {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: visible;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--dash-gap-sm);
    padding: 0.25rem 0.2rem 0.35rem 0.12rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
body.dash-tela-cheia .dash-tv-tarefa-card {
    border-radius: 0.55rem;
}
body.dash-tela-cheia .dash-tv-tarefa-card .turma-kanban-card__accent {
    border-radius: 0;
}
body.dash-tela-cheia .dash-tv-tarefa-card__conteudo {
    padding: clamp(0.5rem, 0.85vw, 0.75rem);
    border-radius: 0 0.55rem 0.55rem 0;
}
body.dash-tela-cheia .dash-tv-tarefa-card.dash-tarefa-card--ativa {
    border-color: rgba(var(--dash-pulso-rgb), 0.42);
}
body.dash-tela-cheia .dash-tv-tarefa-card__frente {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
    margin-bottom: var(--dash-gap-xs);
    font-size: calc(clamp(0.68rem, 0.9vw, 0.8rem) * var(--dash-tv-fonte, 1));
    font-weight: 600;
    color: var(--radar-text-muted);
}
body.dash-tela-cheia .dash-tv-tarefa-card__frente:hover {
    color: var(--radar-heading);
}
body.dash-tela-cheia .dash-tv-tarefa-card__descricao {
    font-size: calc(clamp(0.72rem, 0.95vw, 0.9rem) * var(--dash-tv-fonte, 1));
    line-height: 1.35;
    color: var(--radar-heading);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.dash-tela-cheia .dash-tv-tarefa-card__rodape {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--dash-gap-xs) var(--dash-gap-sm);
    margin-top: var(--dash-gap-xs);
    font-size: calc(clamp(0.64rem, 0.85vw, 0.74rem) * var(--dash-tv-fonte, 1));
    color: var(--radar-text-muted);
}
body.dash-tela-cheia .dash-tv-tarefa-card__responsavel {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}
body.dash-tela-cheia .dash-tv-tarefa-card__prazo {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    color: var(--radar-text-muted);
}
body.dash-tela-cheia .dash-tv-tarefa-card__prazo--vencido {
    color: #fca5a5;
}
body.dash-tela-cheia .dash-tv-tarefas-ativas__vazio {
    margin: auto 0;
    padding: 1rem 0.5rem;
    text-align: center;
    font-size: clamp(0.72rem, 1vw, 0.85rem);
    color: var(--radar-text-muted);
}

/* Interessados — tela cheia: cards visuais abaixo do Fazendo, canto inferior direito */
body.dash-tela-cheia .dash-interessados-sidebar {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    padding: clamp(0.55rem, 0.9vw, 0.75rem) !important;
    border-radius: clamp(0.7rem, 1vw, 1rem);
    border: 1px solid rgba(110, 231, 183, 0.22);
    background: linear-gradient(
        165deg,
        rgba(110, 231, 183, 0.1) 0%,
        rgba(255, 255, 255, 0.03) 52%,
        rgba(255, 255, 255, 0.02) 100%
    );
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(110, 231, 183, 0.12);
}
body.dash-tela-cheia .dash-interessados-sidebar__head,
body.dash-tela-cheia .dash-interessados-sidebar__vazio {
    display: none;
}
body.dash-tela-cheia .dash-interessados-sidebar:not(:has(.dash-interessados-origem-card)) {
    display: none;
}
body.dash-tela-cheia .dash-interessados-sidebar__lista {
    display: flex;
    flex-direction: column;
    gap: clamp(0.35rem, 0.55vw, 0.5rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    max-height: min(22vh, 14rem);
    flex-shrink: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
body.dash-tela-cheia .dash-interessados-origem-card {
    border-radius: clamp(0.55rem, 0.85vw, 0.75rem);
    border: 1px solid rgba(110, 231, 183, 0.28);
    background: linear-gradient(
        160deg,
        rgba(110, 231, 183, 0.16) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body.dash-tela-cheia .dash-interessados-origem-card:hover {
    border-color: rgba(110, 231, 183, 0.45);
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body.dash-tela-cheia .dash-interessados-origem-card--sidebar .dash-interessados-origem-card__link {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: clamp(0.2rem, 0.45vw, 0.35rem);
    padding: clamp(0.45rem, 0.75vw, 0.6rem) clamp(0.5rem, 0.8vw, 0.75rem);
    min-height: clamp(3.4rem, 6vh, 4.2rem);
    width: 100%;
}
body.dash-tela-cheia .dash-interessados-origem-card--sidebar .dash-interessados-origem-card__textos {
    align-items: center;
    width: 100%;
}
body.dash-tela-cheia .dash-interessados-origem-card__rotulo {
    font-size: calc(clamp(0.62rem, 0.88vw, 0.76rem) * var(--dash-tv-fonte, 1));
    font-weight: 600;
    line-height: 1.2;
    color: var(--radar-heading);
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.dash-tela-cheia .dash-interessados-origem-card__quantidade {
    font-size: calc(clamp(1.35rem, 2.4vw, 2rem) * var(--dash-tv-fonte, 1));
    font-weight: 800;
    line-height: 1;
    color: #6ee7b7;
    min-width: 0;
    text-shadow: 0 0 18px rgba(110, 231, 183, 0.35);
}

/* Cards de frente além do limite: só aparecem em tela cheia */
.dash-frente-extra {
    display: none;
}

/* Frentes: em tela cheia ocupam a tela inteira, com o máximo de cards que couber */
body.dash-tela-cheia .dash-secao--tarefas {
    display: none !important;
}
body.dash-tela-cheia .dash-frente-extra {
    display: block;
}
body.dash-tela-cheia .dash-secao--frentes {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
body.dash-tela-cheia .dash-frentes-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr));
    grid-auto-rows: auto;
    align-content: start;
    align-items: stretch;
    gap: var(--dash-gap-md);
    margin: 0;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}
body.dash-tela-cheia .dash-frentes-grid > [class*="col-"] {
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
body.dash-tela-cheia .dash-frente-card {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    gap: var(--dash-gap-sm);
    padding: clamp(0.65rem, 1vw, 1.15rem);
    border-radius: clamp(0.65rem, 0.9vw, 1rem);
    border-width: 2px;
    background: linear-gradient(160deg, rgba(var(--frente-topo-risco-rgb), 0.07), rgba(255, 255, 255, 0.02) 45%);
    border-color: rgba(var(--frente-topo-risco-rgb), 0.28);
}
body.dash-tela-cheia .dash-vazio {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Tarefas: 3 colunas preenchendo o restante da altura, com rolagem interna */
body.dash-tela-cheia .dash-secao--tarefas {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
body.dash-tela-cheia .dash-tarefas-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    align-items: stretch;
    --bs-gutter-x: clamp(0.75rem, 1.2vw, 1.5rem);
    --bs-gutter-y: 0;
}
body.dash-tela-cheia .dash-tarefas-grid__col {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    height: 100%;
    min-height: 0;
    min-width: 0;
}
body.dash-tela-cheia .dash-tarefas-col {
    height: 100%;
    min-height: 0;
    padding: clamp(0.7rem, 1.1vw, 1.5rem);
    border-radius: clamp(0.7rem, 1vw, 1.25rem);
    border-top-width: 4px;
}
body.dash-tela-cheia .dash-tarefas-col__lista {
    overflow-y: auto;
    min-height: 0;
    gap: clamp(0.6rem, 1vh, 1rem);
    scrollbar-width: none;
}
body.dash-tela-cheia .dash-tarefas-col__lista::-webkit-scrollbar {
    display: none;
}
body.dash-tela-cheia .dash-tarefa-card {
    border-radius: clamp(0.55rem, 0.7vw, 0.9rem);
}
body.dash-tela-cheia .turma-kanban-card__conteudo {
    padding: clamp(0.85rem, 1vw, 1.4rem);
}

/* Sem interação na TV: remove indicações de clique */
body.dash-tela-cheia .dash-frente-card__identidade,
body.dash-tela-cheia .dash-frente-card__anel-avatar,
body.dash-tela-cheia .dash-tarefa-card__frente,
body.dash-tela-cheia .dash-tv-tarefa-card__frente {
    pointer-events: none;
}

/* Tela cheia: termômetro à esquerda, conteúdo à direita */
body.dash-tela-cheia .dash-frente-card__risco {
    display: contents;
}
body.dash-tela-cheia .dash-frente-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    column-gap: clamp(0.65rem, 1vw, 1.2rem);
    row-gap: var(--dash-gap-xs);
    align-items: stretch;
}
body.dash-tela-cheia .dash-frente-card__termometro {
    grid-column: 1;
    grid-row: 1 / -1;
    order: unset;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    flex-shrink: 0;
    margin-right: clamp(0.25rem, 0.4vw, 0.5rem);
}
body.dash-tela-cheia .dash-frente-card__head {
    grid-column: 2;
    grid-row: 1;
    order: unset;
}
body.dash-tela-cheia .dash-frente-card__risco-detalhes {
    grid-column: 2;
    grid-row: 2;
    order: unset;
    width: auto;
}
body.dash-tela-cheia .dash-frente-card__rodape-card {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    margin-top: 0;
}
body.dash-tela-cheia .dash-frente-card__mensagem {
    text-align: left;
    font-size: calc(clamp(0.68rem, 0.82vw, 1.1rem) * var(--dash-tv-fonte, 1));
    font-weight: 400;
    margin-top: clamp(0.55rem, 0.8vh, 0.9rem);
}

/* Tipografia fluida para leitura à distância de TV */
body.dash-tela-cheia .dash-frente-card__anel .frente-topo__anel-inner {
    padding: 0;
}
body.dash-tela-cheia .dash-frente-card__anel .frente-topo__anel-valor {
    font-size: calc(clamp(0.95rem, 1.35vw, 1.85rem) * var(--dash-tv-fonte, 1));
    bottom: calc(0.48rem * var(--dash-tv-fonte, 1));
}
body.dash-tela-cheia .dash-frente-card__nome {
    font-size: calc(clamp(0.88rem, 1.1vw, 1.55rem) * var(--dash-tv-fonte, 1));
    font-weight: 400;
    line-height: 1.25;
    /* Permite quebrar em até 2 linhas antes de aplicar reticências */
    white-space: normal;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.dash-tela-cheia .dash-frente-card__led-ativo {
    width: calc(clamp(0.5rem, 0.65vw, 0.75rem) * var(--dash-tv-fonte, 1));
    height: calc(clamp(0.5rem, 0.65vw, 0.75rem) * var(--dash-tv-fonte, 1));
}
body.dash-tela-cheia .dash-frente-card__anel {
    --ring-size: calc(clamp(7.5rem, 10.5vw, 13.5rem) * var(--dash-tv-fonte, 1));
}
body.dash-tela-cheia .frente-topo__risco-badge {
    font-size: calc(clamp(0.58rem, 0.68vw, 0.88rem) * var(--dash-tv-fonte, 1));
    font-weight: 400;
    padding: 0.14rem 0.4rem;
}
/* Frente parada em tela cheia: card inteiro em destaque vermelho */
body.dash-tela-cheia .dash-frente-card--parada {
    --frente-topo-risco-cor: rgb(248, 113, 113);
    --frente-topo-risco-rgb: 248, 113, 113;
}
/* Todos os textos do card parado em vermelho */
body.dash-tela-cheia .dash-frente-card--parada .dash-frente-card__nome,
body.dash-tela-cheia .dash-frente-card--parada .frente-topo__anel-valor,
body.dash-tela-cheia .dash-frente-card--parada .frente-topo__escala-legenda,
body.dash-tela-cheia .dash-frente-card--parada .dash-frente-card__mensagem,
body.dash-tela-cheia .dash-frente-card--parada .frente-topo__comparativo-head,
body.dash-tela-cheia .dash-frente-card--parada .frente-topo__comparativo-head strong,
body.dash-tela-cheia .dash-frente-card--parada .dash-frente-card__rodape,
body.dash-tela-cheia .dash-frente-card--parada .dash-frente-card__rodape span {
    color: var(--frente-topo-risco-cor);
}
body.dash-tela-cheia .frente-topo__comparativo-head {
    font-size: calc(clamp(0.65rem, 0.75vw, 1.05rem) * var(--dash-tv-fonte, 1));
}
body.dash-tela-cheia .frente-topo__comparativo-trilha {
    height: clamp(0.35rem, 0.6vh, 0.6rem);
}
body.dash-tela-cheia .frente-topo__escala-trilha {
    height: clamp(0.45rem, 0.8vh, 0.75rem);
}
body.dash-tela-cheia .frente-topo__escala-marcador {
    width: clamp(1rem, 1.3vw, 1.6rem);
    height: clamp(1rem, 1.3vw, 1.6rem);
    border-width: 3px;
}
body.dash-tela-cheia .dash-frente-card .frente-topo__escala-legenda {
    font-size: calc(clamp(0.38rem, 0.45vw, 0.55rem) * var(--dash-tv-fonte, 1));
    font-weight: 400;
}
body.dash-tela-cheia .dash-frente-card__rodape-card {
    margin-top: auto;
    flex-shrink: 0;
    padding-top: clamp(0.45rem, 0.8vh, 0.85rem);
}
body.dash-tela-cheia .dash-frente-card__rodape {
    font-size: calc(clamp(0.8rem, 1vw, 1.4rem) * var(--dash-tv-fonte, 1));
}
body.dash-tela-cheia .dash-frente-card__atividade {
    font-size: calc(clamp(0.72rem, 0.9vw, 1.25rem) * var(--dash-tv-fonte, 1));
    padding: 0.25rem 0.7rem;
}
body.dash-tela-cheia .dash-frente-card__atividade-ponto {
    width: clamp(0.55rem, 0.7vw, 1rem);
    height: clamp(0.55rem, 0.7vw, 1rem);
}
body.dash-tela-cheia .dash-tarefas-col__titulo {
    font-size: calc(clamp(1.1rem, 1.3vw, 1.9rem) * var(--dash-tv-fonte, 1));
}
body.dash-tela-cheia .dash-tarefas-col__ponto {
    width: clamp(0.55rem, 0.7vw, 0.95rem);
    height: clamp(0.55rem, 0.7vw, 0.95rem);
}
body.dash-tela-cheia .dash-tarefas-col__contagem {
    font-size: calc(clamp(0.78rem, 0.9vw, 1.3rem) * var(--dash-tv-fonte, 1));
}
body.dash-tela-cheia .turma-kanban-card__texto {
    font-size: calc(clamp(1rem, 1.2vw, 1.75rem) * var(--dash-tv-fonte, 1));
    line-height: 1.4;
}
body.dash-tela-cheia .dash-tarefa-card__frente {
    font-size: calc(clamp(0.8rem, 1vw, 1.4rem) * var(--dash-tv-fonte, 1));
}
body.dash-tela-cheia .dash-tarefa-card__status {
    font-size: calc(clamp(0.7rem, 0.85vw, 1.2rem) * var(--dash-tv-fonte, 1));
}
body.dash-tela-cheia .turma-kanban-card__data,
body.dash-tela-cheia .turma-kanban-card__impedimento {
    font-size: calc(clamp(0.8rem, 1vw, 1.4rem) * var(--dash-tv-fonte, 1));
}
body.dash-tela-cheia .dash-tarefas-col__vazio {
    font-size: calc(clamp(0.9rem, 1.1vw, 1.5rem) * var(--dash-tv-fonte, 1));
}

/* Muitas frentes na tela: versão compacta dos cards */
body.dash-tela-cheia .dash-frentes-grid--compacta .dash-frente-card {
    padding: clamp(0.5rem, 0.75vw, 0.85rem);
    gap: var(--dash-gap-xs);
}
body.dash-tela-cheia .dash-frentes-grid--compacta .dash-frente-card__anel .frente-topo__anel-valor {
    font-size: calc(clamp(0.82rem, 1vw, 1.35rem) * var(--dash-tv-fonte, 1));
    bottom: calc(0.34rem * var(--dash-tv-fonte, 1));
}
body.dash-tela-cheia .dash-frentes-grid--compacta .dash-frente-card__nome {
    font-size: calc(clamp(0.82rem, 0.95vw, 1.25rem) * var(--dash-tv-fonte, 1));
    font-weight: 400;
}
body.dash-tela-cheia .dash-frentes-grid--compacta .dash-frente-card__anel {
    --ring-size: calc(clamp(6.25rem, 8.5vw, 10rem) * var(--dash-tv-fonte, 1));
}
body.dash-tela-cheia .dash-frentes-grid--compacta .dash-frente-card__mensagem {
    display: none;
}
body.dash-tela-cheia .dash-frentes-grid--compacta .turma-kanban-card__texto {
    font-size: calc(clamp(0.78rem, 0.9vw, 1.2rem) * var(--dash-tv-fonte, 1));
}
body.dash-tela-cheia .dash-frentes-grid--compacta .dash-frente-card__rodape {
    font-size: calc(clamp(0.72rem, 0.85vw, 1.15rem) * var(--dash-tv-fonte, 1));
}

/* Colunas de frentes conforme a largura disponível (desconta a lateral de tarefas) */
@container dash-frentes-area (min-width: 28rem) {
    body.dash-tela-cheia .dash-frentes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@container dash-frentes-area (min-width: 42rem) {
    body.dash-tela-cheia .dash-frentes-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@container dash-frentes-area (min-width: 56rem) {
    body.dash-tela-cheia .dash-frentes-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* TV estreita: lateral de tarefas abaixo das frentes */
@media (max-width: 1180px) {
    body.dash-tela-cheia .dash-conteudo,
    body.dash-tv-popup .dash-conteudo {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
    }
    body.dash-tela-cheia .dash-tv-corpo {
        grid-column: 1;
        grid-row: 1;
    }
    body.dash-tela-cheia .dash-sidebar-direita {
        grid-column: 1;
        grid-row: 2;
        max-height: clamp(14rem, 32vh, 22rem);
    }
    body.dash-tela-cheia .dash-sidebar-direita .dash-tv-tarefas-ativas {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
    }
    body.dash-tela-cheia .dash-interessados-sidebar {
        flex: 0 0 auto;
        min-height: 0;
        overflow: hidden;
    }
    body.dash-tela-cheia .dash-interessados-sidebar__lista {
        max-height: min(10rem, 22vh);
    }
}

/* Dashboard normal — telas menores */
@media (max-width: 767px) {
    body:not(.dash-tela-cheia) .dash-conteudo {
        grid-template-areas:
            "sidebar"
            "corpo";
    }
    body:not(.dash-tela-cheia) .dash-conteudo .dash-secao {
        padding: var(--dash-gap-md);
    }
    body:not(.dash-tela-cheia) .dash-secao-head {
        align-items: flex-start;
    }
    body:not(.dash-tela-cheia) .dash-frente-card.frente-topo__risco {
        padding: 0.85rem 0.9rem;
    }
    body:not(.dash-tela-cheia) .dash-tarefas-col {
        min-height: auto;
        max-height: none;
        padding: 0.75rem;
    }
    body:not(.dash-tela-cheia) .dash-contador {
        padding: 0.45rem 0.65rem;
    }
    body:not(.dash-tela-cheia) .dash-tv-tarefas-ativas {
        max-height: min(18rem, 38vh);
    }
    body:not(.dash-tela-cheia) .dash-pagina__header {
        align-items: flex-start;
    }
    body:not(.dash-tela-cheia) .dash-pagina__acoes {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    body:not(.dash-tela-cheia) .dash-tv-tarefas-ativas {
        max-height: min(20rem, 36vh);
    }
}

/* Em telas estreitas (tela cheia em monitor vertical), empilha os cards com rolagem */
@media (max-width: 991px) {
    body.dash-tela-cheia .radar-main main {
        overflow-y: auto;
    }
    body.dash-tela-cheia .dash-secao--frentes {
        flex: 0 0 auto;
    }
    body.dash-tela-cheia .dash-frentes-grid {
        flex: 0 1 auto;
        overflow: visible;
        grid-auto-rows: auto;
        align-content: start;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
    }
    body.dash-tela-cheia .dash-frentes-grid > [class*="col-"] {
        display: flex;
        flex-direction: column;
    }
    body.dash-tela-cheia .dash-frente-card {
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
    }
}

/* ===== Kanban Minhas tarefas ===== */
.turma-kanban-card__frente {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
    max-width: 100%;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--radar-text-muted);
    text-decoration: none;
}
.turma-kanban-card__frente:hover,
.turma-kanban-card__frente:focus-visible {
    color: var(--radar-accent-line);
    text-decoration: underline;
}
.turma-kanban-card__frente span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Leads — Conteúdos ===== */
.lead-conteudo-grupo {
    padding: 1rem 1.1rem 0.5rem;
    border: 1px solid var(--radar-border, rgba(255, 255, 255, 0.12));
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
}
.lead-conteudo-grupo__titulo {
    color: var(--radar-heading, inherit);
    font-weight: 600;
}
.lead-conteudo-versoes-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.lead-conteudo-versao-card {
    margin-bottom: 0;
}
.lead-conteudo-versao-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.lead-conteudo-versao-card__nome {
    color: var(--radar-heading);
}
.lead-conteudo-versao-card__link {
    color: var(--bs-primary);
    text-decoration: none;
}
.lead-conteudo-versao-card__link:hover {
    color: var(--radar-primary-hover, var(--bs-primary));
    text-decoration: underline;
}
.lead-conteudo-versao-mensagem {
    white-space: pre-wrap;
    word-break: break-word;
    margin-top: 0.35rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid var(--radar-border-subtle);
    background: rgba(255, 255, 255, 0.03);
    color: var(--radar-text-main);
}
.lead-conteudo-imagem-upload {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
}
.lead-conteudo-imagem-upload__preview-wrap {
    flex: 0 0 auto;
    min-width: 120px;
    max-width: 220px;
}
.lead-conteudo-imagem-preview {
    display: block;
    max-width: 100%;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.375rem;
    border: 1px solid var(--radar-border, rgba(255, 255, 255, 0.12));
    background: rgba(0, 0, 0, 0.15);
}
.lead-conteudo-imagem-upload__campos {
    flex: 1 1 220px;
}
.lead-conteudo-imagem-upload__placeholder {
    padding: 1.5rem 0.75rem;
    text-align: center;
    border: 1px dashed var(--radar-border, rgba(255, 255, 255, 0.12));
    border-radius: 0.375rem;
}

/* Atendimentos Site — tokens compartilhados (listagem + detalhe) */
.atendimento-site-page,
.atendimento-site-listagem {
    --atendimento-site-radius: calc(var(--radar-card-radius) + 0.15rem);
    --atendimento-site-accent: var(--radar-accent-line);
    --atendimento-site-accent-rgb: var(--radar-accent-rgb);
    --atendimento-site-ok-rgb: 34, 197, 94;
    --atendimento-site-alerta-rgb: 251, 191, 36;
    --atendimento-site-perigo-rgb: 248, 113, 113;
}

.atendimento-site-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--atendimento-site-accent);
}

.atendimento-site-pulse {
    color: var(--atendimento-site-accent);
    font-weight: 600;
}

.atendimento-site-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(var(--radar-accent-rgb), 0.18);
    border-radius: var(--atendimento-site-radius);
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(var(--atendimento-site-accent-rgb), 0.12), transparent 55%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(var(--radar-primary-rgb), 0.24), transparent 50%),
        linear-gradient(165deg, rgba(14, 22, 56, 0.98) 0%, rgba(8, 12, 32, 0.98) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 12px 40px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.atendimento-site-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--atendimento-site-accent) 90%, #fff 10%) 0%,
        rgba(var(--atendimento-site-accent-rgb), 0.35) 45%,
        transparent 100%
    );
    pointer-events: none;
}

.atendimento-site-hero__identidade {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    width: 100%;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.atendimento-site-hero__avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    flex: 0 0 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--radar-heading);
    background: linear-gradient(
        145deg,
        rgba(var(--radar-primary-rgb), 0.95) 0%,
        rgba(var(--radar-primary-rgb), 0.72) 100%
    );
    border: 2px solid rgba(var(--atendimento-site-accent-rgb), 0.42);
    box-shadow:
        0 0 0 3px rgba(var(--atendimento-site-accent-rgb), 0.18),
        0 8px 20px rgba(0, 0, 0, 0.28);
}

.atendimento-site-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

.atendimento-site-hero__nome {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    line-height: 1.25;
    color: var(--radar-heading);
}

.atendimento-site-hero__contato {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

.atendimento-site-hero__contato-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: var(--radar-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.atendimento-site-hero__contato-link .bi {
    color: var(--atendimento-site-accent);
}

.atendimento-site-hero__contato-link:hover,
.atendimento-site-hero__contato-link:focus-visible {
    color: var(--radar-text-main);
}

.atendimento-site-hero__telefone-grupo {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.atendimento-site-whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    flex-shrink: 0;
    border-radius: 999px;
    color: #6ee7b7;
    background: rgba(37, 211, 102, 0.14);
    border: 1px solid rgba(37, 211, 102, 0.32);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.atendimento-site-whatsapp-link:hover,
.atendimento-site-whatsapp-link:focus-visible {
    color: #9cf0cb;
    background: rgba(37, 211, 102, 0.24);
    border-color: rgba(37, 211, 102, 0.48);
    transform: translateY(-1px);
}

.atendimento-site-whatsapp-link .bi {
    font-size: 1rem;
    line-height: 1;
}

.atendimento-site-badge {
    font-weight: 600;
    border: 1px solid transparent;
    font-size: 0.78rem;
    padding: 0.35em 0.55em;
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}

/* Inscrição na turma nesta sessão */
.atendimento-site-badge--inscrito {
    background: rgba(var(--atendimento-site-ok-rgb), 0.16);
    color: rgb(134, 239, 172);
    border-color: rgba(var(--atendimento-site-ok-rgb), 0.38);
}

.atendimento-site-badge--nao-inscrito {
    background: rgba(var(--atendimento-site-alerta-rgb), 0.14);
    color: rgb(253, 224, 71);
    border-color: rgba(var(--atendimento-site-alerta-rgb), 0.35);
}

/* Situação inicial no chat (contexto do visitante) */
.atendimento-site-badge--situacao-novo,
.atendimento-site-badge--situacao-outro {
    background: rgba(255, 255, 255, 0.07);
    color: var(--radar-text-muted);
    border-color: var(--radar-border-subtle);
}

.atendimento-site-badge--situacao-lead_chat {
    background: rgba(var(--atendimento-site-accent-rgb), 0.14);
    color: var(--atendimento-site-accent);
    border-color: rgba(var(--atendimento-site-accent-rgb), 0.32);
}

.atendimento-site-badge--situacao-ja_inscrito_turma {
    background: rgba(var(--radar-primary-rgb), 0.28);
    color: #c8d4ff;
    border-color: rgba(var(--atendimento-site-accent-rgb), 0.22);
}

.atendimento-site-badge--situacao-turma_antiga {
    background: rgba(var(--atendimento-site-perigo-rgb), 0.12);
    color: rgb(252, 165, 165);
    border-color: rgba(var(--atendimento-site-perigo-rgb), 0.28);
}

/* Fallback legado (detalhe) */
.atendimento-site-badge--situacao {
    background: rgba(var(--radar-primary-rgb), 0.22);
    color: var(--radar-text-main);
    border-color: rgba(var(--radar-primary-rgb), 0.38);
}

.atendimento-site-badge--live {
    background: rgba(var(--atendimento-site-accent-rgb), 0.12);
    color: var(--atendimento-site-accent);
    border-color: rgba(var(--atendimento-site-accent-rgb), 0.28);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.atendimento-site-live-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--atendimento-site-accent);
    box-shadow: 0 0 0 0 rgba(var(--atendimento-site-accent-rgb), 0.55);
    animation: atendimento-site-pulse 1.8s ease-out infinite;
}

@keyframes atendimento-site-pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--atendimento-site-accent-rgb), 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(var(--atendimento-site-accent-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--atendimento-site-accent-rgb), 0); }
}

.atendimento-site-hero__painel-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    width: 100%;
}

@media (min-width: 768px) {
    .atendimento-site-hero__painel-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.65rem;
    }
}

.atendimento-site-stat {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-height: 5.5rem;
    padding: 0.65rem 0.7rem 0.7rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.035);
    min-width: 0;
}

.atendimento-site-stat--ok {
    border-color: rgba(var(--atendimento-site-accent-rgb), 0.22);
    background: rgba(var(--atendimento-site-accent-rgb), 0.06);
}

.atendimento-site-stat--neutro {
    border-color: rgba(255, 255, 255, 0.06);
}

.atendimento-site-stat__cabeca {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.atendimento-site-stat__rotulo {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--radar-text-muted);
    line-height: 1.25;
}

.atendimento-site-stat__icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    flex-shrink: 0;
    border-radius: 0.45rem;
    font-size: 0.82rem;
    color: var(--atendimento-site-accent);
    background: rgba(var(--atendimento-site-accent-rgb), 0.12);
}

.atendimento-site-stat__valor {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--radar-heading);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atendimento-site-stat__extra {
    font-size: 0.66rem;
    line-height: 1.3;
    color: var(--radar-text-muted);
    margin-top: auto;
}

.atendimento-site-layout {
    align-items: flex-start;
}

.atendimento-site-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 992px) {
    .atendimento-site-sidebar {
        position: sticky;
        top: 1rem;
    }
}

.atendimento-site-panel {
    border: 1px solid var(--radar-border-subtle);
    border-radius: var(--atendimento-site-radius);
    background: var(--radar-bg-elevated);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.03) inset,
        0 8px 24px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.atendimento-site-panel--chat {
    display: flex;
    flex-direction: column;
    min-height: min(78vh, 760px);
}

.atendimento-site-panel__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
}

.atendimento-site-panel__header--compact {
    padding: 0.9rem 1rem;
}

.atendimento-site-panel__titulo {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--radar-heading);
}

.atendimento-site-panel__titulo .bi {
    color: var(--atendimento-site-accent);
}

.atendimento-site-panel__subtitulo {
    font-size: 0.82rem;
    color: var(--radar-text-muted);
}

.atendimento-site-panel__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: var(--radar-text-muted);
}

.atendimento-site-panel__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.atendimento-site-panel__meta-item .bi {
    color: var(--atendimento-site-accent);
}

.atendimento-site-panel__body {
    padding: 1rem;
}

.atendimento-site-panel--chat .atendimento-site-panel__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0.85rem;
}

.atendimento-site-chat {
    flex: 1;
    min-height: 320px;
    max-height: none;
    height: 100%;
}

.atendimento-site-chat-vazio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 220px;
    color: var(--radar-text-muted);
    text-align: center;
}

.atendimento-site-chat-vazio i {
    font-size: 2rem;
    color: var(--atendimento-site-accent);
    opacity: 0.65;
}

.atendimento-site-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.atendimento-site-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.atendimento-site-info-item__rotulo {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--radar-text-muted);
}

.atendimento-site-info-item__valor {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--radar-text-main);
    word-break: break-word;
}

.atendimento-site-info-item__valor a {
    color: var(--radar-accent-line);
    text-decoration: none;
    font-weight: 600;
}

.atendimento-site-info-item__valor a:hover,
.atendimento-site-info-item__valor a:focus-visible {
    color: var(--radar-text-main);
    text-decoration: underline;
}

.atendimento-site-info-item__valor code {
    color: var(--radar-text-main);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--radar-border-subtle);
    padding: 0.1rem 0.35rem;
    border-radius: 0.35rem;
}

.atendimento-site-alerta {
    color: rgb(251, 191, 36);
}

.atendimento-site-tags__rotulo,
.atendimento-site-nota__rotulo {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--radar-text-muted);
    margin-bottom: 0.4rem;
}

.atendimento-site-tags__lista {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.atendimento-site-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(var(--atendimento-site-accent-rgb), 0.12);
    color: var(--atendimento-site-accent);
    border: 1px solid rgba(var(--atendimento-site-accent-rgb), 0.28);
}

.atendimento-site-nota {
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px dashed rgba(var(--atendimento-site-accent-rgb), 0.28);
    background: rgba(var(--radar-primary-rgb), 0.18);
}

.atendimento-site-nota__rotulo .bi {
    color: var(--atendimento-site-accent);
}

.atendimento-site-nota__texto {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--radar-text-main);
    white-space: pre-wrap;
}

.atendimento-site-form .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.atendimento-site-status {
    font-weight: 600;
    border: 1px solid transparent;
    font-size: 0.78rem;
    padding: 0.35em 0.55em;
}

/* Acompanhamento interno no Radar */
.atendimento-site-status--novo {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--radar-text-muted) !important;
    border-color: var(--radar-border-subtle) !important;
}

.atendimento-site-status--em_analise {
    background: rgba(var(--atendimento-site-accent-rgb), 0.18) !important;
    color: var(--atendimento-site-accent) !important;
    border-color: rgba(var(--atendimento-site-accent-rgb), 0.35) !important;
}

.atendimento-site-status--aguardando_retorno {
    background: rgba(var(--atendimento-site-alerta-rgb), 0.16) !important;
    color: rgb(253, 224, 71) !important;
    border-color: rgba(var(--atendimento-site-alerta-rgb), 0.38) !important;
}

.atendimento-site-status--concluido {
    background: rgba(var(--atendimento-site-ok-rgb), 0.16) !important;
    color: rgb(134, 239, 172) !important;
    border-color: rgba(var(--atendimento-site-ok-rgb), 0.38) !important;
}

/* Atendimento — topo alinhado à frente + hub */
.atendimento-topo__contato-link {
    color: inherit;
    text-decoration: none;
}

.atendimento-topo__contato-link:hover,
.atendimento-topo__contato-link:focus-visible {
    color: var(--frente-hero-accent);
    text-decoration: underline;
}

.atendimento-topo__whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    color: #6ee7b7;
    background: rgba(37, 211, 102, 0.14);
    border: 1px solid rgba(37, 211, 102, 0.32);
    text-decoration: none;
    vertical-align: middle;
    transition: background 0.15s ease, transform 0.15s ease;
}

.atendimento-topo__whatsapp-link:hover,
.atendimento-topo__whatsapp-link:focus-visible {
    color: #9cf0cb;
    background: rgba(37, 211, 102, 0.24);
    transform: translateY(-1px);
}

.atendimento-topo__timeline-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.55rem;
}

.atendimento-topo__timeline-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.6rem 0.7rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
}

.atendimento-topo__timeline-rotulo {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--radar-text-muted);
}

.atendimento-topo__timeline-valor {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--radar-heading);
}

.atendimento-topo__acoes-lista {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.atendimento-topo__acao-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.62rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--radar-text-main);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

button.atendimento-topo__acao-btn {
    cursor: pointer;
}

.atendimento-topo__acao-btn:hover,
.atendimento-topo__acao-btn:focus-visible {
    color: var(--radar-heading);
    border-color: rgba(var(--frente-hero-accent-rgb), 0.35);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.atendimento-topo__acao-btn .bi {
    color: var(--frente-hero-accent);
    font-size: 1rem;
}

.atendimento-topo__acao-btn--whatsapp .bi {
    color: #6ee7b7;
}

.atendimento-topo__acao-btn--whatsapp:hover,
.atendimento-topo__acao-btn--whatsapp:focus-visible {
    border-color: rgba(37, 211, 102, 0.35);
}

.atendimento-site-page .atendimento-site-chat {
    min-height: min(58vh, 620px);
    max-height: min(68vh, 720px);
}

.atendimento-site-conversa-layout {
    align-items: stretch;
}

.atendimento-site-panel--historico {
    display: flex;
    flex-direction: column;
    min-height: min(58vh, 620px);
    max-height: min(68vh, 720px);
}

.atendimento-site-panel--historico .atendimento-site-panel__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.atendimento-site-panel--historico .atendimento-site-panel__body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.atendimento-site-historico--sidebar {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-top: 0.25rem;
    border-top: none;
}

.atendimento-site-historico--sidebar .atendimento-site-historico__lista {
    gap: 0.65rem;
}

.atendimento-site-historico--sidebar .atendimento-site-historico__item {
    padding: 0.7rem 0.8rem;
}

.atendimento-site-historico--sidebar .atendimento-site-historico__nota {
    padding: 0.5rem 0.6rem;
}

.atendimento-site-historico--sidebar .atendimento-site-historico__vazio {
    flex: 1;
    justify-content: center;
    min-height: 12rem;
}

.turma-aba-panel--sem-intro {
    padding-top: 0.25rem;
}

@media (max-width: 991.98px) {
    .atendimento-site-panel--historico {
        min-height: auto;
        max-height: none;
    }

    .atendimento-site-historico--sidebar {
        max-height: 28rem;
    }
}

.atendimento-site-page .turma-aba-intro__kpi .allocation-hub-kpi-value {
    font-size: 1.05rem;
    line-height: 1.2;
    word-break: break-word;
}

.atendimento-site-historico {
    border-top: 1px solid var(--radar-border-subtle);
    padding-top: 1.25rem;
}

.atendimento-site-historico__cabeca {
    margin-bottom: 1rem;
}

.atendimento-site-historico__titulo {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--radar-text-main);
}

.atendimento-site-historico__titulo .bi {
    color: var(--atendimento-site-accent);
}

.atendimento-site-historico__subtitulo {
    font-size: 0.82rem;
    color: var(--radar-text-muted);
}

.atendimento-site-historico__lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.atendimento-site-historico__item {
    padding: 0.85rem 1rem;
    border: 1px solid var(--radar-border-subtle);
    border-radius: calc(var(--atendimento-site-radius) - 0.15rem);
    background: rgba(var(--radar-primary-rgb), 0.12);
}

.atendimento-site-historico__item-cabeca {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.65rem;
}

.atendimento-site-historico__acoes {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.atendimento-site-historico__excluir {
    --bs-btn-padding-y: 0.15rem;
    --bs-btn-padding-x: 0.4rem;
    line-height: 1;
}

.atendimento-site-historico__excluir .bi {
    font-size: 0.82rem;
}

.atendimento-site-historico__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
    font-size: 0.82rem;
    color: var(--radar-text-muted);
}

.atendimento-site-historico__meta time {
    font-weight: 600;
    color: var(--radar-text-main);
}

.atendimento-site-historico__autor {
    color: var(--radar-text-muted);
}

.atendimento-site-historico__detalhes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    margin: 0 0 0.65rem;
}

.atendimento-site-historico__detalhe {
    margin: 0;
}

.atendimento-site-historico__detalhe dt {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--radar-text-muted);
    margin-bottom: 0.1rem;
}

.atendimento-site-historico__detalhe dd {
    margin: 0;
    font-size: 0.88rem;
    color: var(--radar-text-main);
}

.atendimento-site-historico__nota {
    margin-top: 0.35rem;
}

.atendimento-site-historico__vazio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px dashed var(--radar-border-subtle);
    border-radius: calc(var(--atendimento-site-radius) - 0.15rem);
    color: var(--radar-text-muted);
    font-size: 0.88rem;
}

.atendimento-site-historico__vazio i {
    font-size: 1.5rem;
    color: var(--atendimento-site-accent);
    opacity: 0.65;
}

/* Interessados — listagem e status */
.interessados-listagem,
.interessado-detalhe-page {
    --atendimento-site-ok-rgb: 34, 197, 94;
    --atendimento-site-alerta-rgb: 251, 191, 36;
    --atendimento-site-perigo-rgb: 248, 113, 113;
    --atendimento-site-accent-rgb: var(--radar-accent-rgb);
}

.interessados-listagem-resumo__painel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .interessados-listagem-resumo__painel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.interessados-listagem-resumo__stat {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: var(--radar-card-radius);
    border: 1px solid var(--radar-border-subtle);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    min-height: 5.5rem;
}

.interessados-listagem-resumo__stat--ok {
    border-color: rgba(var(--atendimento-site-ok-rgb), 0.28);
    background: linear-gradient(145deg, rgba(var(--atendimento-site-ok-rgb), 0.1), rgba(255, 255, 255, 0.02));
}

.interessados-listagem-resumo__stat--destaque {
    border-color: rgba(var(--atendimento-site-accent-rgb), 0.3);
    background: linear-gradient(145deg, rgba(var(--atendimento-site-accent-rgb), 0.12), rgba(255, 255, 255, 0.02));
}

.interessados-listagem-resumo__icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.65rem;
    font-size: 1.1rem;
    color: var(--radar-heading);
    background: rgba(255, 255, 255, 0.08);
}

.interessados-listagem-resumo__stat--ok .interessados-listagem-resumo__icone {
    color: rgb(134, 239, 172);
    background: rgba(var(--atendimento-site-ok-rgb), 0.16);
}

.interessados-listagem-resumo__stat--destaque .interessados-listagem-resumo__icone {
    color: var(--radar-accent-line);
    background: rgba(var(--atendimento-site-accent-rgb), 0.16);
}

.interessados-listagem-resumo__conteudo {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.interessados-listagem-resumo__valor {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--radar-heading);
}

.interessados-listagem-resumo__rotulo {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--radar-heading);
}

.interessados-listagem-resumo__extra {
    font-size: 0.76rem;
    color: var(--radar-text-muted);
}

.interessados-col-telefone {
    width: 11rem;
    white-space: nowrap;
}

.interessados-col-selecao,
.interessados-td-selecao {
    width: 2.5rem;
    padding-left: 0.5rem;
    padding-right: 0.25rem;
    vertical-align: middle;
}

.interessados-exclusao-massa {
    border-color: rgba(220, 38, 38, 0.2);
    background: rgba(220, 38, 38, 0.04);
}

.interessados-exclusao-massa .card-body {
    min-height: 2.75rem;
}

.interessados-td-telefone {
    white-space: nowrap;
}

.interessados-telefone-texto {
    margin-right: 0.2rem;
}

.interessados-col-tri-select,
.interessados-td-tri-select {
    min-width: 8.5rem;
    width: 8.5rem;
}

.interessados-tri-select {
    min-width: 7.75rem;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 0.55rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.interessados-tri-select--pendente {
    border-color: rgba(100, 116, 139, 0.45);
    background: rgba(100, 116, 139, 0.12);
    color: var(--radar-heading);
}

.interessados-tri-select--sim {
    border-color: rgba(var(--atendimento-site-ok-rgb), 0.5);
    background: rgba(var(--atendimento-site-ok-rgb), 0.14);
    color: rgb(134, 239, 172);
}

.interessados-tri-select--nao {
    border-color: rgba(var(--atendimento-site-perigo-rgb), 0.45);
    background: rgba(var(--atendimento-site-perigo-rgb), 0.12);
    color: rgb(252, 165, 165);
}

.interessados-tri-select--salvando {
    opacity: 0.65;
}

.interessados-tri-select:focus {
    box-shadow: 0 0 0 0.15rem rgba(var(--atendimento-site-accent-rgb), 0.25);
}

.interessado-periodo-badge {
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.35em 0.55em;
    border: 1px solid transparent;
}

.interessado-periodo-badge--manha {
    background: rgba(253, 224, 71, 0.16) !important;
    color: rgb(253, 224, 71) !important;
    border-color: rgba(253, 224, 71, 0.35) !important;
}

.interessado-periodo-badge--tarde {
    background: rgba(251, 146, 60, 0.16) !important;
    color: rgb(253, 186, 116) !important;
    border-color: rgba(251, 146, 60, 0.35) !important;
}

.interessado-periodo-badge--noturno {
    background: rgba(129, 140, 248, 0.16) !important;
    color: rgb(165, 180, 252) !important;
    border-color: rgba(129, 140, 248, 0.35) !important;
}

.interessado-periodo-badge--online {
    background: rgba(var(--atendimento-site-accent-rgb), 0.18) !important;
    color: var(--atendimento-site-accent) !important;
    border-color: rgba(var(--atendimento-site-accent-rgb), 0.35) !important;
}

.interessado-periodo-badge--neutro {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--radar-text-muted) !important;
    border-color: var(--radar-border-subtle) !important;
}

.interessados-th-sort {
    color: inherit;
}

.interessados-th-sort:hover,
.interessados-th-sort:focus-visible {
    color: var(--frente-hero-accent);
}

.interessado-status {
    border: 1px solid transparent;
    font-size: 0.78rem;
    padding: 0.35em 0.55em;
}

.interessado-status--novo {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--radar-text-muted) !important;
    border-color: var(--radar-border-subtle) !important;
}

.interessado-status--em_contato,
.interessado-status--em_acompanhamento {
    background: rgba(var(--atendimento-site-accent-rgb), 0.18) !important;
    color: var(--atendimento-site-accent) !important;
    border-color: rgba(var(--atendimento-site-accent-rgb), 0.35) !important;
}

.interessado-status--aguardando_retorno,
.interessado-status--aguardando_teste,
.interessado-status--aguardando_matricula {
    background: rgba(var(--atendimento-site-alerta-rgb), 0.16) !important;
    color: rgb(253, 224, 71) !important;
    border-color: rgba(var(--atendimento-site-alerta-rgb), 0.38) !important;
}

.interessado-status--aprovado_teste {
    background: rgba(var(--atendimento-site-ok-rgb), 0.16) !important;
    color: rgb(134, 239, 172) !important;
    border-color: rgba(var(--atendimento-site-ok-rgb), 0.38) !important;
}

.interessado-status--reprovado_teste {
    background: rgba(248, 113, 113, 0.14) !important;
    color: rgb(252, 165, 165) !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
}

.interessado-status--virou_aluno {
    background: rgba(var(--atendimento-site-ok-rgb), 0.16) !important;
    color: rgb(134, 239, 172) !important;
    border-color: rgba(var(--atendimento-site-ok-rgb), 0.38) !important;
}

.interessado-status--nao_virou_aluno {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--radar-text-muted) !important;
    border-color: var(--radar-border-subtle) !important;
}

.interessado-status--desistiu {
    background: rgba(248, 113, 113, 0.14) !important;
    color: rgb(252, 165, 165) !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
}

/* Interessados — detalhe */
.interessado-detalhe-hero .frente-detalhe-hero__inner {
    padding-bottom: 0.25rem;
}

.interessado-topo .frente-topo__nome,
.interessado-topo .frente-topo__secao-titulo,
.interessado-topo .frente-topo__secao-dica,
.interessado-topo .frente-topo__secao-dica-fixa,
.interessado-topo .badge {
    font-weight: 400;
}

.interessado-topo__header {
    align-items: flex-start;
}

.interessado-topo__acoes-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

.interessado-topo__acao-btn {
    width: auto;
    min-width: 7.5rem;
    font-weight: 500;
    padding: 0.7rem 1rem;
}

@media (min-width: 768px) {
    .interessado-topo__acoes-header {
        margin-left: auto;
        justify-content: flex-end;
    }
}

.interessado-topo__paineis {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-top: 1rem;
}

.interessado-topo__grupo-titulo {
    margin: 0 0 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--radar-text-muted);
}

.interessado-topo__painel {
    gap: 0.75rem;
}

.interessado-topo__painel--captacao {
    grid-template-columns: 1fr;
}

.interessado-topo__painel--funil {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .interessado-topo__painel--captacao {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .interessado-topo__painel--funil {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .interessado-topo__painel--funil {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1400px) {
    .interessado-topo__painel--funil {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.interessado-topo__stat {
    gap: 0.45rem;
    min-height: 6.5rem;
    padding: 0.95rem 1rem 1rem;
    border-radius: 0.85rem;
    border-color: rgba(255, 255, 255, 0.09);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}

.interessado-topo__stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 0.85rem 0.85rem 0 0;
    background: rgba(var(--atendimento-site-accent-rgb), 0.35);
    opacity: 0.65;
}

.interessado-topo__stat.frente-topo__stat--ok::before {
    background: rgb(var(--atendimento-site-ok-rgb));
    opacity: 0.85;
}

.interessado-topo__stat.frente-topo__stat--alerta::before {
    background: rgb(var(--atendimento-site-perigo-rgb));
    opacity: 0.85;
}

.interessado-topo .frente-topo__stat-rotulo {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.interessado-topo .frente-topo__stat-icone {
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
    border-radius: 0.55rem;
}

.interessado-topo .frente-topo__stat-valor {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
    word-break: break-word;
}

.interessado-topo .frente-topo__stat-extra {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.74rem;
    line-height: 1.35;
    margin-top: auto;
}

.interessado-topo__stat-linha {
    display: block;
}

.interessado-topo__stat-link {
    display: inline-block;
    margin-top: 0.15rem;
    font-size: 0.74rem;
    font-weight: 500;
}

.interessado-topo__badge {
    font-weight: 400;
    font-size: 0.78rem;
    padding: 0.35em 0.55em;
    border: 1px solid transparent;
}

.interessado-topo__badge--ok {
    background: rgba(var(--atendimento-site-ok-rgb), 0.16) !important;
    color: rgb(134, 239, 172) !important;
    border-color: rgba(var(--atendimento-site-ok-rgb), 0.38) !important;
}

.interessado-topo__badge--neutro {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--radar-text-muted) !important;
    border-color: var(--radar-border-subtle) !important;
}

.interessado-topo__badge--alerta {
    background: rgba(248, 113, 113, 0.14) !important;
    color: rgb(252, 165, 165) !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
}

.interessado-status-form__form {
    margin-top: 1rem;
}

.interessado-status-form__rodape {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--radar-border-subtle);
}

.interessado-virou-opcoes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.interessado-virou-opcao {
    position: relative;
    flex: 1 1 0;
    min-width: 5.5rem;
    margin: 0;
    cursor: pointer;
}

.interessado-virou-opcao input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.interessado-virou-opcao span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radar-card-radius);
    border: 1px solid var(--radar-border-subtle);
    background: rgba(255, 255, 255, 0.03);
    color: var(--radar-text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.interessado-virou-opcao:hover span {
    border-color: rgba(var(--atendimento-site-accent-rgb), 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.interessado-virou-opcao--pendente input:checked + span {
    background: rgb(100, 116, 139);
    color: #fff;
    border-color: rgb(100, 116, 139);
    box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.28);
}

.interessado-virou-opcao--sim input:checked + span {
    background: rgb(var(--atendimento-site-ok-rgb));
    color: #fff;
    border-color: rgb(var(--atendimento-site-ok-rgb));
    box-shadow: 0 0 0 2px rgba(var(--atendimento-site-ok-rgb), 0.32);
}

.interessado-virou-opcao--nao input:checked + span {
    background: rgb(var(--atendimento-site-perigo-rgb));
    color: #fff;
    border-color: rgb(var(--atendimento-site-perigo-rgb));
    box-shadow: 0 0 0 2px rgba(var(--atendimento-site-perigo-rgb), 0.3);
}

.interessado-virou-opcao input:focus-visible + span {
    outline: 2px solid rgba(var(--atendimento-site-accent-rgb), 0.55);
    outline-offset: 2px;
}

.interessado-desistiu-card .frente-tarefa-field-card__label {
    margin-bottom: 0.75rem;
}

.interessado-desistiu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 1rem 1.05rem;
    border-radius: var(--radar-card-radius);
    border: 2px dashed rgba(var(--atendimento-site-perigo-rgb), 0.28);
    background: rgba(var(--atendimento-site-perigo-rgb), 0.06);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.interessado-desistiu-toggle:hover {
    border-color: rgba(var(--atendimento-site-perigo-rgb), 0.45);
    background: rgba(var(--atendimento-site-perigo-rgb), 0.1);
}

.interessado-desistiu-toggle:has(input:checked) {
    background: rgb(var(--atendimento-site-perigo-rgb));
    border-color: rgb(var(--atendimento-site-perigo-rgb));
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(var(--atendimento-site-perigo-rgb), 0.22);
}

.interessado-desistiu-toggle__cabeca {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.interessado-desistiu-toggle input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.interessado-desistiu-toggle__checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.4rem;
    border: 2px solid rgba(var(--atendimento-site-perigo-rgb), 0.55);
    background: rgba(255, 255, 255, 0.08);
    color: transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.interessado-desistiu-toggle__icone-check {
    font-size: 1rem;
    line-height: 1;
}

.interessado-desistiu-toggle:has(input:checked) .interessado-desistiu-toggle__checkbox {
    background: #fff;
    border-color: #fff;
    color: rgb(var(--atendimento-site-perigo-rgb));
}

.interessado-desistiu-toggle__texto {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgb(252, 165, 165);
}

.interessado-desistiu-toggle__icone-alerta {
    font-size: 1.05rem;
    opacity: 0.9;
}

.interessado-desistiu-toggle:has(input:checked) .interessado-desistiu-toggle__texto,
.interessado-desistiu-toggle:has(input:checked) .interessado-desistiu-toggle__icone-alerta {
    color: #fff;
}

.interessado-desistiu-toggle__dica {
    padding-left: 2.4rem;
    font-size: 0.8rem;
    color: rgba(252, 165, 165, 0.85);
}

.interessado-desistiu-toggle:has(input:checked) .interessado-desistiu-toggle__dica {
    color: rgba(255, 255, 255, 0.88);
}

/* Aptidão — listagem de resultados */
.aptidao-listagem {
    --atendimento-site-ok-rgb: 34, 197, 94;
    --atendimento-site-perigo-rgb: 248, 113, 113;
    --atendimento-site-accent-rgb: var(--radar-accent-rgb);
    --aptidao-logica-rgb: 96, 165, 250;
    --aptidao-conteudo-rgb: 251, 191, 36;
}

.aptidao-resumo__stat--reprovado {
    border-color: rgba(var(--atendimento-site-perigo-rgb), 0.28);
    background: linear-gradient(145deg, rgba(var(--atendimento-site-perigo-rgb), 0.1), rgba(255, 255, 255, 0.02));
}

.aptidao-resumo__stat--reprovado .interessados-listagem-resumo__icone {
    color: rgb(252, 165, 165);
    background: rgba(var(--atendimento-site-perigo-rgb), 0.16);
}

.aptidao-resultados-card {
    border: 1px solid var(--radar-border-subtle);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.aptidao-filtro-badge {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 999px;
    color: var(--radar-heading);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--radar-border-subtle);
}

.aptidao-filtro-badge--quiz {
    border-color: rgba(var(--atendimento-site-accent-rgb), 0.28);
    background: rgba(var(--atendimento-site-accent-rgb), 0.1);
}

.aptidao-filtro-badge--data {
    border-color: rgba(var(--aptidao-conteudo-rgb), 0.28);
    background: rgba(var(--aptidao-conteudo-rgb), 0.1);
}

.aptidao-tabela-card {
    border: 1px solid var(--radar-border-subtle);
    overflow: hidden;
}

.aptidao-tabela thead th {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--radar-text-muted);
    border-bottom-width: 1px;
    white-space: nowrap;
    vertical-align: middle;
}

/* Cabeçalhos agrupados */
.aptidao-tabela__grupo th {
    padding: 0.55rem 0.5rem 0.45rem;
    border-bottom: none;
}

.aptidao-grupo-th {
    position: relative;
}

.aptidao-grupo-th__inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.45rem 0.75rem;
    border-radius: 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.aptidao-grupo-th__inner--end {
    justify-content: flex-end;
}

.aptidao-grupo-th--identificacao .aptidao-grupo-th__inner {
    color: var(--radar-heading);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--radar-border-subtle);
}

.aptidao-grupo-th--logica .aptidao-grupo-th__inner {
    color: rgb(191, 219, 254);
    background: rgba(var(--aptidao-logica-rgb), 0.22);
    border: 1px solid rgba(var(--aptidao-logica-rgb), 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.aptidao-grupo-th--conteudo .aptidao-grupo-th__inner {
    color: rgb(254, 240, 138);
    background: rgba(var(--aptidao-conteudo-rgb), 0.22);
    border: 1px solid rgba(var(--aptidao-conteudo-rgb), 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.aptidao-grupo-th--resultado .aptidao-grupo-th__inner {
    color: rgb(134, 239, 172);
    background: rgba(var(--atendimento-site-ok-rgb), 0.18);
    border: 1px solid rgba(var(--atendimento-site-ok-rgb), 0.38);
}

.aptidao-grupo-th--logica,
.aptidao-grupo-th--conteudo,
.aptidao-grupo-th--resultado {
    background: transparent;
}

/* Sub-cabeçalhos das colunas */
.aptidao-tabela__cols th {
    padding-top: 0.5rem;
    padding-bottom: 0.65rem;
    border-top: none;
}

.aptidao-col-th--logica {
    color: rgb(147, 197, 253) !important;
    background: rgba(var(--aptidao-logica-rgb), 0.1);
}

.aptidao-col-th--conteudo {
    color: rgb(253, 224, 71) !important;
    background: rgba(var(--aptidao-conteudo-rgb), 0.1);
}

.aptidao-col-th--resultado {
    color: rgb(134, 239, 172) !important;
    background: rgba(var(--atendimento-site-ok-rgb), 0.08);
}

.aptidao-col-th--avisado {
    color: var(--radar-heading) !important;
    background: rgba(255, 255, 255, 0.05);
    min-width: 5.5rem;
}

.aptidao-td-avisado {
    min-width: 5.5rem;
    vertical-align: middle;
}

.aptidao-avisado-check {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    cursor: pointer;
}

.aptidao-avisado-check--salvando {
    opacity: 0.55;
    cursor: wait;
}

.aptidao-td-avisado .form-check-input:checked {
    background-color: rgb(34, 197, 94);
    border-color: rgb(34, 197, 94);
}

/* Separadores verticais entre grupos */
.aptidao-grupo-inicio {
    border-left: 2px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: -1px 0 0 rgba(0, 0, 0, 0.15);
}

.aptidao-col-th--logica.aptidao-grupo-inicio {
    border-left-color: rgba(var(--aptidao-logica-rgb), 0.55) !important;
}

.aptidao-col-th--conteudo.aptidao-grupo-inicio {
    border-left-color: rgba(var(--aptidao-conteudo-rgb), 0.55) !important;
}

.aptidao-col-th--resultado.aptidao-grupo-inicio {
    border-left-color: rgba(var(--atendimento-site-ok-rgb), 0.45) !important;
}

.aptidao-td-logica.aptidao-grupo-inicio {
    border-left-color: rgba(var(--aptidao-logica-rgb), 0.4) !important;
}

.aptidao-td-conteudo.aptidao-grupo-inicio {
    border-left-color: rgba(var(--aptidao-conteudo-rgb), 0.4) !important;
}

.aptidao-td-final.aptidao-grupo-inicio {
    border-left-color: rgba(var(--atendimento-site-ok-rgb), 0.35) !important;
}

.aptidao-grupo-fim {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.aptidao-tabela tbody tr.aptidao-row {
    transition: background-color 0.15s ease;
}

.aptidao-tabela tbody tr.aptidao-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.aptidao-td-nome {
    font-weight: 600;
    max-width: 12rem;
}

.aptidao-td-email {
    max-width: 14rem;
    color: var(--radar-text-muted);
    font-size: 0.9rem;
}

.aptidao-td-telefone {
    min-width: 9rem;
}

.aptidao-telefone-texto {
    margin-right: 0.25rem;
}

.aptidao-td-data {
    font-size: 0.88rem;
    color: var(--radar-text-muted);
}

.aptidao-td-num {
    font-variant-numeric: tabular-nums;
    font-size: 0.9rem;
}

.aptidao-td-logica {
    background: rgba(var(--aptidao-logica-rgb), 0.09);
}

.aptidao-td-conteudo {
    background: rgba(var(--aptidao-conteudo-rgb), 0.1);
}

.aptidao-td-final {
    min-width: 5.5rem;
    background: rgba(var(--atendimento-site-ok-rgb), 0.05);
}

.aptidao-pct-chip {
    display: inline-block;
    min-width: 3.25rem;
    padding: 0.15rem 0.45rem;
    border-radius: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.aptidao-pct-chip--logica {
    color: rgb(147, 197, 253);
    background: rgba(var(--aptidao-logica-rgb), 0.14);
}

.aptidao-pct-chip--conteudo {
    color: rgb(253, 224, 71);
    background: rgba(var(--aptidao-conteudo-rgb), 0.14);
}

.aptidao-pct-final {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4em 0.7em;
    border-radius: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.aptidao-pct-final--aprovado {
    background-color: rgba(var(--atendimento-site-ok-rgb), 0.9) !important;
    color: #fff !important;
    box-shadow: 0 0 0 1px rgba(var(--atendimento-site-ok-rgb), 0.35);
}

.aptidao-pct-final--reprovado {
    background-color: rgba(var(--atendimento-site-perigo-rgb), 0.88) !important;
    color: #fff !important;
    box-shadow: 0 0 0 1px rgba(var(--atendimento-site-perigo-rgb), 0.35);
}

/* ============================================================
   Tabelas compactas — padrão Radar (telas < 1400px)
   Use .radar-tabela-compacta no wrapper da listagem.
   .radar-col-compact-extra — oculta no compacto
   .radar-col-compact-only — visível só no compacto (ex.: botão olho)
   ============================================================ */
.radar-col-compact-only {
    display: none;
}

.radar-detalhe-compact-btn {
    --bs-btn-padding-y: 0.2rem;
    --bs-btn-padding-x: 0.45rem;
    line-height: 1;
}

.radar-detalhe-modal--detalhe-compacto .modal-dialog {
    max-width: min(100%, 32rem);
}

.radar-detalhe-modal__grade {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    margin: 0;
}

.radar-detalhe-modal__campo {
    min-width: 0;
}

.radar-detalhe-modal__rotulo {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--radar-text-muted);
    margin-bottom: 0.15rem;
}

.radar-detalhe-modal__valor {
    font-size: 0.92rem;
    color: var(--radar-heading);
    word-break: break-word;
}

.radar-detalhe-modal__secao {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--radar-border-subtle);
}

.radar-detalhe-modal__secao-titulo {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--radar-heading);
    margin-bottom: 0.65rem;
}

@media (max-width: 1399.98px) {
    .radar-tabela-compacta .radar-col-compact-extra {
        display: none !important;
    }

    .radar-tabela-compacta .radar-col-compact-only {
        display: table-cell !important;
    }

    .radar-tabela-compacta .radar-col-compact-acoes-extra {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .radar-detalhe-modal__grade {
        grid-template-columns: 1fr;
    }
}

.aptidao-col-compact-only {
    display: none;
}

.aptidao-detalhe-meta__rotulo {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--radar-text-muted);
    margin-bottom: 0.15rem;
}

.aptidao-detalhe-meta__valor {
    font-size: 0.92rem;
    color: var(--radar-heading);
}

.aptidao-detalhe-bloco {
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    border: 1px solid var(--radar-border-subtle);
    margin-bottom: 0.75rem;
}

.aptidao-detalhe-bloco--logica {
    background: rgba(var(--aptidao-logica-rgb), 0.1);
    border-color: rgba(var(--aptidao-logica-rgb), 0.35);
}

.aptidao-detalhe-bloco--conteudo {
    background: rgba(var(--aptidao-conteudo-rgb), 0.1);
    border-color: rgba(var(--aptidao-conteudo-rgb), 0.35);
}

.aptidao-detalhe-bloco__titulo {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.65rem;
    color: var(--radar-heading);
}

.aptidao-detalhe-nota__rotulo {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--radar-text-muted);
    margin-bottom: 0.2rem;
}

.aptidao-detalhe-nota__valor {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--radar-heading);
}

.aptidao-detalhe-final .aptidao-pct-final {
    font-size: 1rem;
    padding: 0.45rem 0.85rem;
}

/* Layout compacto da tabela Aptidão */
@media (max-width: 1399.98px) {
    .aptidao-listagem.radar-tabela-compacta .aptidao-tabela__grupo {
        display: none;
    }

    .aptidao-listagem.radar-tabela-compacta .aptidao-td-final.aptidao-grupo-inicio {
        border-left: none !important;
        box-shadow: none;
    }

    .aptidao-listagem .aptidao-td-nome {
        max-width: 9rem;
    }

    .aptidao-listagem .aptidao-td-email {
        max-width: 11rem;
    }

    .aptidao-listagem .aptidao-td-telefone {
        min-width: 7.5rem;
    }

    .aptidao-listagem .aptidao-td-data {
        font-size: 0.82rem;
    }

    .aptidao-listagem.radar-tabela-compacta .aptidao-td-detalhes {
        width: 3rem;
        vertical-align: middle;
    }
}

/* Interessados — layout compacto da tabela */
@media (max-width: 1399.98px) {
    .interessados-listagem.radar-tabela-compacta .interessados-td-nome {
        max-width: 10rem;
    }

    .interessados-listagem.radar-tabela-compacta .interessados-td-email {
        max-width: 12rem;
    }

    .interessados-listagem.radar-tabela-compacta .interessados-td-detalhes {
        width: 3rem;
        vertical-align: middle;
    }

    .interessados-listagem.radar-tabela-compacta .interessados-td-acoes {
        white-space: nowrap;
    }
}

@media (max-width: 991.98px) {
    .aptidao-tabela-card .table-responsive {
        max-height: 70vh;
    }

    .aptidao-filtros-ativos {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .interessado-virou-opcao {
        flex: 1 1 calc(50% - 0.25rem);
    }
}

/* Aptidão — abas e sugestão de equipes */
.aptidao-tabs {
    border-bottom-color: var(--radar-border-subtle);
    gap: 0.25rem;
}

.aptidao-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--radar-text-muted);
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 0.5rem 0.5rem 0 0;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.aptidao-tabs .nav-link:hover {
    color: var(--radar-heading);
    background: rgba(255, 255, 255, 0.04);
}

.aptidao-tabs .nav-link.active {
    color: var(--radar-heading);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--radar-border-subtle);
}

.aptidao-equipes-config {
    border: 1px solid var(--radar-border-subtle);
}

.aptidao-equipes-resumo {
    padding: 0.25rem 0;
}

.aptidao-equipe-aviso {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgb(253, 224, 71);
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.aptidao-equipe-card {
    height: 100%;
    border-radius: 0.75rem;
    border: 1px solid var(--radar-border-subtle);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    overflow: hidden;
}

.aptidao-equipe-card__cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aptidao-equipe-card__titulo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--radar-heading);
}

.aptidao-equipe-card__media {
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 0.35em 0.65em;
    border-radius: 999px;
}

.aptidao-equipe-card__membros {
    padding: 0.5rem 0;
}

.aptidao-equipe-membro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.aptidao-equipe-membro:last-child {
    border-bottom: none;
}

.aptidao-equipe-membro__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.aptidao-equipe-membro__nome {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--radar-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aptidao-equipe-membro__email {
    font-size: 0.78rem;
    color: var(--radar-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aptidao-equipe-membro__pct {
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 0.2rem 0.5rem;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--radar-heading);
}

.aptidao-equipe-card--0 {
    border-top: 3px solid rgb(248, 113, 113);
}

.aptidao-equipe-card--0 .aptidao-equipe-card__cabecalho {
    background: rgba(248, 113, 113, 0.1);
}

.aptidao-equipe-card--0 .aptidao-equipe-card__media {
    background: rgba(248, 113, 113, 0.2);
    color: rgb(252, 165, 165);
}

.aptidao-equipe-card--1 {
    border-top: 3px solid rgb(96, 165, 250);
}

.aptidao-equipe-card--1 .aptidao-equipe-card__cabecalho {
    background: rgba(96, 165, 250, 0.1);
}

.aptidao-equipe-card--1 .aptidao-equipe-card__media {
    background: rgba(96, 165, 250, 0.2);
    color: rgb(147, 197, 253);
}

.aptidao-equipe-card--2 {
    border-top: 3px solid rgb(74, 222, 128);
}

.aptidao-equipe-card--2 .aptidao-equipe-card__cabecalho {
    background: rgba(74, 222, 128, 0.1);
}

.aptidao-equipe-card--2 .aptidao-equipe-card__media {
    background: rgba(74, 222, 128, 0.2);
    color: rgb(134, 239, 172);
}

.aptidao-equipe-card--3 {
    border-top: 3px solid rgb(250, 204, 21);
}

.aptidao-equipe-card--3 .aptidao-equipe-card__cabecalho {
    background: rgba(250, 204, 21, 0.1);
}

.aptidao-equipe-card--3 .aptidao-equipe-card__media {
    background: rgba(250, 204, 21, 0.2);
    color: rgb(253, 224, 71);
}

.aptidao-equipe-card--4 {
    border-top: 3px solid rgb(192, 132, 252);
}

.aptidao-equipe-card--4 .aptidao-equipe-card__cabecalho {
    background: rgba(192, 132, 252, 0.1);
}

.aptidao-equipe-card--4 .aptidao-equipe-card__media {
    background: rgba(192, 132, 252, 0.2);
    color: rgb(216, 180, 254);
}

.aptidao-equipe-card--5 {
    border-top: 3px solid rgb(251, 146, 60);
}

.aptidao-equipe-card--5 .aptidao-equipe-card__cabecalho {
    background: rgba(251, 146, 60, 0.1);
}

.aptidao-equipe-card--5 .aptidao-equipe-card__media {
    background: rgba(251, 146, 60, 0.2);
    color: rgb(253, 186, 116);
}

/* Interessados — modal de origens ativas */
.radar-modal--origens .modal-dialog {
    max-width: min(100%, 28rem);
}

.radar-modal--origens .modal-header {
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem 1rem;
}

.radar-modal--origens .modal-body {
    padding: 1rem 1.25rem 1.35rem;
}

.radar-modal--origens .modal-footer {
    padding: 0.85rem 1.25rem 1.1rem;
}

.interessado-origens-modal__dica {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.55rem;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--radar-text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--radar-border-subtle);
}

.interessado-origens-modal__lista {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.interessado-origens-modal__item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin: 0;
    padding: 0.8rem 0.9rem;
    border-radius: 0.6rem;
    border: 1px solid var(--radar-border-subtle);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.interessado-origens-modal__item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.interessado-origens-modal__item:has(.interessado-origens-modal__check:checked) {
    background: rgba(var(--radar-accent-rgb), 0.08);
    border-color: rgba(var(--radar-accent-rgb), 0.28);
}

.interessado-origens-modal__check {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0.15rem 0 0;
    flex-shrink: 0;
    cursor: pointer;
}

.interessado-origens-modal__texto {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.interessado-origens-modal__titulo {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--radar-heading);
}

.interessado-origens-modal__codigo {
    font-size: 0.76rem;
    line-height: 1.3;
    color: var(--radar-text-muted);
    word-break: break-word;
}

