/* css/modules/provas.css */

/* Grid de cards */
.provas-grid {
    display: grid;
    /* Adicionado auto-fit e um clamp para evitar que os cards estiquem infinitamente em ultrawide */
    grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
    gap: 0.875rem;
    margin-top: 1rem;
    justify-content: start; /* Impede que eles se espalhem deixando buracos se a tela for mto larga */
}

@media (max-width: 640px) {
    .provas-page-topbar {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }

    .provas-page-cta {
        width: 100%;
        justify-content: center;
    }

    .provas-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal de cadastro/edição */
/* O HTML já usa as classes de modal do `main.css`, como .modal-overlay, .modal-content, etc.
   Esta seção é para garantir que qualquer estilo específico do módulo de provas seja aplicado.
   Se o `main.css` já cobre o modal, esta seção pode não ser estritamente necessária,
   mas é bom ter como placeholder. */

.prova-card {
    display: flex;
    flex-direction: column;
    border-radius: 0.75rem;
    border-width: 1px;
    transition-property: box-shadow, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    position: relative;
    overflow: hidden;
}

/* Barra de urgência no topo do card */
.prova-urgency-bar {
    height: 3px;
    width: 100%;
    flex-shrink: 0;
}

.prova-urgency-bar--atrasada {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.prova-urgency-bar--hoje {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.prova-urgency-bar--critica {
    background: linear-gradient(90deg, #f97316, #fbbf24);
}

.prova-urgency-bar--normal {
    background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.prova-urgency-bar--realizada {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.prova-card:hover {
    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    border-color: rgba(59, 130, 246, 0.3); /* Cor azul ao passar o mouse */
}

/* Estilos para o formulário dentro do modal, se necessário */
#form-prova {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Garante que o botão de adicionar prova tenha os ícones alinhados */
#btn-add-prova {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.provas-page-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.15rem 1.2rem;
    border-radius: 20px;
    border: 1px solid #252b3b;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(19, 22, 31, 0.96));
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.24);
}

.provas-page-heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.provas-page-subtitle {
    margin: 0;
    max-width: 70ch;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #64748b;
}

.provas-page-cta {
    flex-shrink: 0;
    min-height: 2.75rem;
    padding-inline: 1rem;
    border-radius: 12px;
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    color: #04111f;
    border: none;
    box-shadow: 0 12px 26px rgba(34, 211, 238, 0.18);
}

.provas-page-cta:hover {
    filter: brightness(1.04);
}

.provas-page-note {
    margin-top: 16px;
}

.provas-section-shell {
    border-radius: 18px;
    border: 1px solid #252b3b;
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 30%),
        #13161f;
    padding: 1.1rem 1.1rem 1rem;
}

.provas-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.95rem;
}

.provas-section-copywrap {
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
    min-width: 0;
}

.provas-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #818cf8;
}

.provas-section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.25;
}

.provas-section-copy {
    margin: 0;
    max-width: 70ch;
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.7;
}

.provas-section-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.provas-section-pill {
    display: inline-flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 88px;
    padding: 0.5rem 0.65rem;
    border-radius: 12px;
    border: 1px solid #2e3549;
    background: #0f1117;
    text-align: left;
}

.provas-section-pill-value {
    font-size: 0.88rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.1;
}

.provas-section-pill-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.provas-section-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    border-radius: 16px;
    border: 1px dashed #334155;
    background: rgba(15, 23, 42, 0.46);
    padding: 1rem 1.05rem;
}

.provas-section-empty-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #4338ca;
    background: rgba(26, 16, 80, 0.68);
    color: #c4b5fd;
}

.provas-section-empty-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.35;
}

.provas-section-empty-copy {
    font-size: 0.73rem;
    line-height: 1.7;
    color: #94a3b8;
    max-width: 70ch;
}

.provas-section-empty-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.provas-section-empty-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    border: 1px solid #334155;
    background: #0f1117;
    color: #cbd5e1;
    font-size: 0.63rem;
    font-weight: 700;
}

.provas-history-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.provas-history-card {
    border-radius: 16px;
    border: 1px solid #252b3b;
    background: #13161f;
    padding: 1rem 1.1rem;
}

.provas-history-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.9rem;
}

.provas-history-card-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #f8fafc;
}

.provas-history-card-meta {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    color: #64748b;
}

.provas-history-card-delta {
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
}

.provas-history-card-delta.is-positive {
    color: #4ade80;
}

.provas-history-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-left: 0.2rem;
    padding-left: 0.95rem;
}

.provas-history-timeline::before {
    content: '';
    position: absolute;
    left: 0.58rem;
    top: 0.7rem;
    bottom: 0.7rem;
    width: 2px;
    background: linear-gradient(180deg, #ef4444, #f97316, #22c55e);
}

.provas-history-attempt {
    position: relative;
    display: flex;
    gap: 0.95rem;
}

.provas-history-dot {
    position: relative;
    z-index: 1;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    border: 2px solid #334155;
    background: #0f1117;
    color: #94a3b8;
    flex-shrink: 0;
}

.provas-history-dot.is-danger {
    border-color: #991b1b;
    background: #2d0a0a;
    color: #f87171;
}

.provas-history-dot.is-warning {
    border-color: #c2410c;
    background: #1f1408;
    color: #fb923c;
}

.provas-history-dot.is-success {
    border-color: #166534;
    background: #14290a;
    color: #4ade80;
}

.provas-history-dot.is-reserve {
    border-color: #166534;
    background: #1a2a10;
    color: #86efac;
}

.provas-history-dot.is-info {
    border-color: #4338ca;
    background: #1a1050;
    color: #a5b4fc;
}

.provas-history-dot.is-active {
    border-color: #1d4ed8;
    background: #1a2050;
    color: #93c5fd;
}

.provas-history-body {
    flex: 1;
    min-width: 0;
}

.provas-history-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.provas-history-date {
    font-size: 0.68rem;
    color: #64748b;
}

.provas-history-status {
    margin-top: 0.12rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
}

.provas-history-bars {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    border-radius: 10px;
    border: 1px solid #252b3b;
    background: #0f1117;
    padding: 0.75rem;
}

.provas-history-bar-row {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 0.6rem;
    align-items: center;
}

.provas-history-bar-label {
    font-size: 0.68rem;
    color: #94a3b8;
    text-align: right;
}

.provas-history-bar-track {
    height: 22px;
    border-radius: 6px;
    background: #1e293b;
    overflow: hidden;
}

.provas-history-bar-fill {
    height: 100%;
    min-width: 28px;
    padding-right: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.62rem;
    font-weight: 800;
    color: #fff;
    border-radius: 6px;
}

.provas-history-bar-fill.is-danger { background: #ef4444; }
.provas-history-bar-fill.is-warning { background: #f97316; }
.provas-history-bar-fill.is-success { background: #16a34a; }

.provas-history-helper {
    margin-top: 0.4rem;
    font-size: 0.66rem;
    color: #64748b;
    line-height: 1.5;
}

.provas-history-helper.is-success {
    color: #16a34a;
}

.provas-history-helper.is-danger {
    color: #b45309;
}

.provas-history-summary {
    margin-top: 0.85rem;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    border: 1px solid #14532d;
    background: #0a1f0a;
    font-size: 0.68rem;
    line-height: 1.55;
    color: #4ade80;
}

.provas-history-summary.is-neutral {
    border-color: #334155;
    background: #111827;
    color: #94a3b8;
}

.provas-history-progression {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #252b3b;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
    gap: 0.55rem;
    align-items: end;
}

.provas-history-progression-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.provas-history-progression-score {
    font-size: 0.64rem;
    font-weight: 800;
    color: #cbd5e1;
}

.provas-history-progression-bar {
    width: 100%;
    height: 62px;
    display: flex;
    align-items: flex-end;
}

.provas-history-progression-barfill {
    width: 100%;
    background: linear-gradient(180deg, #60a5fa, #22c55e);
    border-radius: 6px 6px 0 0;
}

.provas-history-progression-label {
    font-size: 0.62rem;
    color: #64748b;
}

.provas-wizard-modal {
    width: min(960px, calc(100vw - 2rem));
    max-width: 960px;
    max-height: min(92vh, 980px);
    margin: 0 auto;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

#modal-prova.modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw;
    min-height: 100vh;
    padding: 1rem;
    margin: 0 !important;
    z-index: 9999 !important;
}

#modal-prova.modal-overlay.flex {
    display: flex !important;
}

#modal-prova .modal-content.provas-wizard-modal {
    width: min(960px, calc(100vw - 2rem));
    max-width: 960px;
    margin: auto !important;
    flex: 0 1 auto;
}

.provas-wizard-shell {
    background: #13161f;
    border: 1px solid #252b3b;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.56);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.provas-wizard-header {
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem 1.5rem 1rem;
    border-bottom: 1px solid #252b3b;
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(19, 22, 31, 0.96));
}

.provas-wizard-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.provas-wizard-kicker {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #818cf8;
}

.provas-wizard-subtitle {
    margin: 0;
    max-width: 56ch;
    font-size: 0.82rem;
    line-height: 1.65;
    color: #64748b;
}

.provas-wizard-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
}

.provas-wizard-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.1rem;
    border-bottom: 1px solid #252b3b;
    background: #10131a;
}

.provas-wizard-progress-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    opacity: 0.62;
    transition: opacity 160ms ease, transform 160ms ease;
}

.provas-wizard-progress-item.is-active,
.provas-wizard-progress-item.is-completed {
    opacity: 1;
}

.provas-wizard-progress-item.is-active {
    transform: translateY(-1px);
}

.provas-wizard-progress-line {
    flex: 1;
    height: 2px;
    border-radius: 999px;
    background: #252b3b;
}

.provas-wizard-progress-item.is-completed + .provas-wizard-progress-line,
.provas-wizard-progress-item.is-active + .provas-wizard-progress-line {
    background: linear-gradient(90deg, #166534, #6366f1);
}

.provas-wizard-progress-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 2px solid #2e3549;
    background: #191d28;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.provas-wizard-progress-item.is-active .provas-wizard-progress-dot {
    border-color: #6366f1;
    background: #1a1d40;
    color: #a5b4fc;
}

.provas-wizard-progress-item.is-completed .provas-wizard-progress-dot {
    border-color: #166534;
    background: #14290a;
    color: #4ade80;
}

.provas-wizard-progress-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.provas-wizard-progress-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #e2e8f0;
}

.provas-wizard-progress-help {
    font-size: 0.67rem;
    color: #64748b;
}

.provas-wizard-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.provas-wizard-step {
    flex: 1;
    padding: 1.4rem 1.5rem 1.25rem;
    overflow-y: auto;
    min-height: 0;
}

.provas-wizard-step-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.provas-wizard-step-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: #f8fafc;
}

.provas-wizard-step-copy {
    margin: 0.35rem 0 0;
    max-width: 58ch;
    font-size: 0.77rem;
    line-height: 1.65;
    color: #64748b;
}

.provas-wizard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.provas-wizard-grid--single {
    grid-template-columns: 1fr;
}

.provas-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.provas-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.provas-label-helper {
    font-size: 0.68rem;
    color: #64748b;
}

.provas-input,
.provas-textarea,
.provas-select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #2e3549;
    background: #080b12;
    color: #e2e8f0;
    padding: 0.72rem 0.85rem;
    font-size: 0.82rem;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.provas-input:focus,
.provas-textarea:focus,
.provas-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.provas-textarea {
    min-height: 88px;
    resize: vertical;
}

.provas-input.input-error,
.provas-textarea.input-error,
.provas-select.input-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

.provas-wizard-callout {
    border-radius: 12px;
    border: 1px solid #1e3080;
    background: #0d1630;
    padding: 0.95rem 1rem;
    font-size: 0.74rem;
    line-height: 1.7;
    color: #93c5fd;
}

.provas-wizard-callout strong {
    color: #60a5fa;
}

.provas-history-detect {
    margin-top: 1rem;
    border-radius: 14px;
    border: 1px solid #d97706;
    background: linear-gradient(180deg, rgba(42, 24, 0, 0.9), rgba(31, 20, 8, 0.78));
    padding: 0.95rem 1rem;
}

.provas-history-detect-head {
    display: flex;
    justify-content: space-between;
    gap: 0.9rem;
    align-items: flex-start;
}

.provas-history-detect-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #fbbf24;
}

.provas-history-detect-copy {
    margin-top: 0.22rem;
    font-size: 0.72rem;
    color: #f59e0b;
    line-height: 1.6;
}

.provas-history-apply-btn {
    border-radius: 999px;
    border: 1px solid #d97706;
    background: #2a1800;
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.55rem 0.85rem;
    white-space: nowrap;
}

.provas-history-mini-list {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.provas-history-mini-item {
    border-radius: 12px;
    border: 1px solid rgba(217, 119, 6, 0.35);
    background: rgba(8, 11, 18, 0.55);
    padding: 0.75rem;
}

.provas-history-mini-title {
    font-size: 0.74rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.45;
}

.provas-history-mini-meta {
    margin-top: 0.22rem;
    font-size: 0.66rem;
    color: #94a3b8;
    line-height: 1.55;
}

.provas-history-mini-badges {
    margin-top: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.provas-history-mini-score {
    font-size: 0.62rem;
    font-weight: 700;
    color: #fbbf24;
}

.provas-overlap-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.95fr);
    gap: 1rem;
    align-items: start;
}

.provas-overlap-card,
.provas-overlap-impact-card {
    border-radius: 16px;
    border: 1px solid #252b3b;
    background: #13161f;
    padding: 1rem 1.1rem;
}

.provas-overlap-kicker,
.provas-overlap-impact-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
}

.provas-overlap-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.provas-overlap-table-wrap {
    overflow-x: auto;
}

.provas-overlap-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 460px;
}

.provas-overlap-table th {
    padding: 0.45rem 0.55rem;
    text-align: center;
    font-size: 0.66rem;
    font-weight: 700;
    color: #94a3b8;
    border-bottom: 1px solid #252b3b;
    white-space: nowrap;
}

.provas-overlap-table th:first-child,
.provas-overlap-table td:first-child {
    text-align: left;
}

.provas-overlap-table td {
    padding: 0.6rem 0.55rem;
    font-size: 0.74rem;
    color: #cbd5e1;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    text-align: center;
    vertical-align: middle;
}

.provas-overlap-subject {
    font-weight: 700;
    color: #f8fafc;
}

.provas-overlap-cell-hit,
.provas-overlap-cell-miss {
    display: inline-flex;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
}

.provas-overlap-cell-hit {
    background: #14290a;
    border: 1px solid #166534;
    color: #4ade80;
}

.provas-overlap-cell-miss {
    background: #0f1117;
    border: 1px solid #334155;
    color: #475569;
}

.provas-overlap-priority-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 800;
    border: 1px solid #334155;
    color: #94a3b8;
    background: #1e293b;
}

.provas-overlap-priority-badge.is-max {
    background: #14290a;
    border-color: #166534;
    color: #4ade80;
}

.provas-overlap-priority-badge.is-mid {
    background: #1e3a5f;
    border-color: #1d4ed8;
    color: #60a5fa;
}

.provas-overlap-priority-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.provas-overlap-priority-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border-radius: 12px;
    padding: 0.85rem 0.9rem;
    border: 1px solid #2e3549;
    background: #191d28;
}

.provas-overlap-priority-item.is-max {
    background: #0a1f0a;
    border-color: #14532d;
}

.provas-overlap-priority-item.is-mid {
    background: #0d1a2e;
    border-color: #1e3a5f;
}

.provas-overlap-priority-item.is-base {
    background: #191d28;
    border-color: #2e3549;
}

.provas-overlap-priority-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
    border: 1px solid #334155;
    color: #94a3b8;
    background: #1e293b;
}

.provas-overlap-priority-item.is-max .provas-overlap-priority-icon {
    background: #14290a;
    border-color: #166534;
    color: #4ade80;
}

.provas-overlap-priority-item.is-mid .provas-overlap-priority-icon {
    background: #1e3a5f;
    border-color: #1d4ed8;
    color: #60a5fa;
}

.provas-overlap-priority-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f8fafc;
}

.provas-overlap-priority-copy {
    margin-top: 0.2rem;
    font-size: 0.68rem;
    line-height: 1.6;
    color: #94a3b8;
}

.provas-overlap-impact-card {
    border-color: #1e3a5f;
    background: #0d1630;
}

.provas-overlap-impact-copy {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.7;
    color: #93c5fd;
}

.provas-overlap-impact-btn {
    margin-top: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 10px;
    border: 1px solid #1d4ed8;
    background: #1e3a5f;
    color: #60a5fa;
    padding: 0.6rem 0.9rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.provas-overlap-impact-btn:hover {
    filter: brightness(1.08);
}

.provas-phase-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.provas-wizard-structure-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
    gap: 1rem;
    align-items: start;
}

.provas-wizard-structure-main,
.provas-wizard-structure-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.provas-wizard-aside-card {
    border-radius: 16px;
    border: 1px solid #252b3b;
    background: #13161f;
    padding: 1rem 1.05rem;
}

.provas-wizard-aside-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}

.provas-wizard-signal-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.provas-wizard-signal {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.74rem;
    line-height: 1.6;
    color: #94a3b8;
}

.provas-wizard-signal-dot {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.provas-wizard-signal-dot.is-success {
    background: #14290a;
    border: 1px solid #166534;
    color: #4ade80;
}

.provas-wizard-signal-dot.is-warning {
    background: #1f1408;
    border: 1px solid #b45309;
    color: #fbbf24;
}

.provas-wizard-signal-dot.is-info {
    background: #1e3a5f;
    border: 1px solid #1d4ed8;
    color: #60a5fa;
}

.provas-wizard-signal-dot.is-accent {
    background: #1a1050;
    border: 1px solid #4338ca;
    color: #a78bfa;
}

.provas-phase-card {
    border-radius: 16px;
    border: 1px solid #2e3549;
    background: #191d28;
    overflow: hidden;
}

.provas-phase-card--discursiva {
    border-color: #4338ca;
    background: rgba(26, 16, 80, 0.34);
}

.provas-phase-card--oral,
.provas-phase-card--pratica {
    border-color: #92400e;
    background: rgba(42, 24, 0, 0.34);
}

.provas-phase-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.provas-phase-title {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
}

.provas-phase-title-main {
    font-size: 0.82rem;
    font-weight: 800;
    color: #e2e8f0;
}

.provas-phase-title-sub {
    font-size: 0.67rem;
    color: #64748b;
}

.provas-phase-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.provas-phase-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.provas-phase-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.provas-phase-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 1.55rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #334155;
    background: #0f1117;
    color: #94a3b8;
    font-size: 0.63rem;
    font-weight: 700;
}

.provas-phase-meta-pill--map {
    border-color: #1d4ed8;
    background: rgba(13, 26, 46, 0.84);
    color: #93c5fd;
}

.provas-phase-meta-pill--discursive {
    border-color: #4338ca;
    background: rgba(26, 16, 80, 0.74);
    color: #c084fc;
}

.provas-phase-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.provas-phase-summary-card {
    border-radius: 12px;
    border: 1px solid #252b3b;
    background: #0f1117;
    padding: 0.75rem 0.8rem;
}

.provas-phase-summary-value {
    font-size: 0.92rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.1;
}

.provas-phase-summary-label {
    margin-top: 0.22rem;
    font-size: 0.62rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.provas-phase-callout {
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid #1e3a5f;
    background: #0d1630;
    color: #93c5fd;
    font-size: 0.72rem;
    line-height: 1.65;
}

.provas-phase-callout.is-discursive {
    border-color: #4338ca;
    background: rgba(26, 16, 80, 0.52);
    color: #c4b5fd;
}

.provas-phase-body {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem;
}

.provas-phase-toolbar {
    display: grid;
    grid-template-columns: 1.3fr 0.75fr 0.85fr;
    gap: 0.75rem;
}

.provas-phase-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    border: 1px solid #4338ca;
    background: rgba(26, 16, 80, 0.5);
    font-size: 0.72rem;
    color: #a5b4fc;
}

.provas-phase-toggle input {
    width: 0.95rem;
    height: 0.95rem;
    accent-color: #818cf8;
}

.provas-discipline-table {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.provas-discipline-search-callout {
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.28);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(13, 27, 46, 0.92));
    color: #cbd5e1;
    font-size: 0.72rem;
    line-height: 1.6;
}

.provas-discipline-search-callout strong {
    color: #93c5fd;
}

.provas-discipline-head,
.provas-discipline-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 88px 88px 28px;
    gap: 0.5rem;
    align-items: center;
}

.provas-discipline-row {
    align-items: start;
}

.provas-discipline-head {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    padding: 0 0.15rem;
}

.provas-discipline-remove {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #450a0a;
    background: #150505;
    color: #f87171;
    font-size: 0.86rem;
    line-height: 1;
}

.provas-discipline-name-cell {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.provas-discipline-shared {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.66rem;
    line-height: 1.55;
    color: #64748b;
}

.provas-discipline-shared-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: 0.12rem 0.52rem;
    border-radius: 999px;
    border: 1px solid #334155;
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.provas-discipline-shared.is-search {
    color: #94a3b8;
}

.provas-discipline-shared.is-linked {
    color: #93c5fd;
}

.provas-discipline-shared.is-match {
    color: #bfdbfe;
}

.provas-discipline-shared.is-new {
    color: #fbbf24;
}

.provas-discipline-shared.is-search .provas-discipline-shared-badge {
    border-color: #334155;
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
}

.provas-discipline-shared.is-linked .provas-discipline-shared-badge,
.provas-discipline-shared.is-match .provas-discipline-shared-badge {
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(30, 58, 138, 0.24);
    color: #93c5fd;
}

.provas-discipline-shared.is-new .provas-discipline-shared-badge {
    border-color: rgba(194, 65, 12, 0.5);
    background: rgba(67, 20, 7, 0.68);
    color: #fdba74;
}

.provas-discipline-shared-copy {
    flex: 1;
    min-width: 180px;
}

.provas-discipline-shared-btn {
    border-radius: 999px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.64rem;
    font-weight: 700;
    padding: 0.28rem 0.65rem;
    white-space: nowrap;
}

.provas-discipline-shared.is-linked .provas-discipline-shared-btn {
    border-color: #1d4ed8;
    background: rgba(30, 58, 95, 0.72);
    color: #93c5fd;
}

.provas-discipline-shared.is-new .provas-discipline-shared-btn {
    border-color: #c2410c;
    background: rgba(67, 20, 7, 0.68);
    color: #fdba74;
}

.provas-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    border-radius: 9px;
    border: 1px dashed #1d4ed8;
    background: transparent;
    color: #60a5fa;
    padding: 0.6rem 0.8rem;
    font-size: 0.73rem;
    font-weight: 700;
}

.provas-link-btn--muted {
    border-color: #2e3549;
    color: #94a3b8;
}

.provas-phase-progress {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.provas-phase-progress-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.67rem;
    color: #64748b;
}

.provas-phase-progress-value {
    font-weight: 700;
    color: #fbbf24;
}

.provas-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.provas-summary-card {
    border-radius: 14px;
    border: 1px solid #2e3549;
    background: #191d28;
    padding: 1rem;
}

.provas-summary-card-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f8fafc;
}

.provas-summary-card-label {
    margin-top: 0.2rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.provas-review-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.provas-review-card {
    border-radius: 14px;
    border: 1px solid #252b3b;
    background: #10131a;
    padding: 1rem;
}

.provas-review-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #f8fafc;
}

.provas-review-meta {
    margin-top: 0.25rem;
    font-size: 0.7rem;
    color: #64748b;
}

.provas-wizard-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem 1.2rem;
    border-top: 1px solid #252b3b;
    background: rgba(8, 11, 18, 0.88);
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

.provas-wizard-footer-note {
    max-width: 44ch;
    font-size: 0.72rem;
    line-height: 1.6;
    color: #64748b;
}

.provas-wizard-footer-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.provas-empty-state {
    min-height: 280px;
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 32%),
        rgba(15, 23, 42, 0.52);
    border-style: dashed;
}

@media (max-width: 900px) {
    .provas-wizard-progress {
        flex-direction: column;
        align-items: stretch;
    }

    .provas-wizard-progress-line {
        width: 2px;
        height: 18px;
        margin-left: 1rem;
    }

    .provas-wizard-grid,
    .provas-summary-grid,
    .provas-phase-toolbar,
    .provas-wizard-structure-layout,
    .provas-phase-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .provas-wizard-modal {
        width: calc(100vw - 1rem);
    }

    .provas-wizard-header,
    .provas-wizard-progress,
    .provas-wizard-step,
    .provas-wizard-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .provas-wizard-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .provas-wizard-footer-actions {
        width: 100%;
        flex-direction: column;
    }

    .provas-wizard-footer-actions button {
        width: 100%;
    }

    .provas-discipline-head,
    .provas-discipline-row {
        grid-template-columns: 1fr;
    }
}

#module-provas {
    --bg: #0b0d13;
    --s1: #13161f;
    --s2: #191d28;
    --s3: #1e2333;
    --b1: #252b3b;
    --b2: #2e3549;
    --tx: #e2e8f0;
    --mu: #64748b;
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    align-self: stretch;
    box-sizing: border-box;
}

#page-content > #module-provas {
    display: block;
    width: 100%;
    min-width: 100%;
    max-width: none;
    align-self: stretch;
}

#module-provas > .provas-page-topbar,
#module-provas > #provas-hud,
#module-provas > #provas-list-container,
#module-provas > .provas-page-note,
#module-provas > .provas-section-shell {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

#module-provas .stb {
    background: var(--s2);
    border: 1px solid var(--b2);
    border-radius: 12px;
    padding: 14px 18px;
}

#module-provas .bdg {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
}

#module-provas .b-ins { background: #1e293b; color: #94a3b8; border: 1px solid #334155; }
#module-provas .b-pre { background: #1e3a5f; color: #93c5fd; border: 1px solid #1d4ed8; }
#module-provas .b-cri { background: #431407; color: #fdba74; border: 1px solid #c2410c; }
#module-provas .b-hoj { background: #312107; color: #fde68a; border: 1px solid #b45309; animation: pulse 1.5s infinite; }
#module-provas .b-agu { background: #1a1f2e; color: #818cf8; border: 1px solid #4338ca; }
#module-provas .b-rec { background: #1a0f30; color: #c084fc; border: 1px solid #7c3aed; }
#module-provas .b-apv { background: #14290a; color: #4ade80; border: 1px solid #166534; }
#module-provas .b-cr  { background: #1a2a10; color: #86efac; border: 1px dashed #166534; }
#module-provas .b-rep { background: #2d0a0a; color: #f87171; border: 1px solid #991b1b; }

#module-provas .ins {
    background: #0d1630;
    border: 1px solid #1e3080;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.73rem;
    color: #93c5fd;
    line-height: 1.7;
}

#module-provas .ins strong {
    color: #60a5fa;
}

#module-provas .cc {
    border-radius: 16px;
    border: 1px solid;
    overflow: hidden;
    transition: all 0.18s;
    cursor: pointer;
}

#module-provas .cc:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

#module-provas .cc-bar {
    height: 3px;
}

#module-provas .cc-body {
    padding: 18px;
}

#module-provas .cc-name {
    font-weight: 800;
    font-size: 0.98rem;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 2px;
}

#module-provas .cc-meta {
    font-size: 0.69rem;
    color: var(--mu);
    margin-bottom: 12px;
    line-height: 1.55;
}

#module-provas .cc-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

#module-provas .cc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    min-height: 1.55rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #334155;
    background: rgba(15, 23, 42, 0.78);
    color: #94a3b8;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#module-provas .cc-pill span[data-lucide] {
    width: 0.78rem;
    height: 0.78rem;
}

#module-provas .cc-pill--map {
    border-color: #1d4ed8;
    background: rgba(30, 58, 95, 0.48);
    color: #93c5fd;
}

#module-provas .cc-pill--success {
    border-color: #166534;
    background: rgba(20, 41, 10, 0.72);
    color: #86efac;
}

#module-provas .cc-pill--warning {
    border-color: #c2410c;
    background: rgba(67, 20, 7, 0.72);
    color: #fdba74;
}

#module-provas .pm {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #2e3549;
    background: rgba(15, 23, 42, 0.56);
}

#module-provas .pm--is-active {
    border-color: rgba(29, 78, 216, 0.45);
    background: rgba(13, 26, 46, 0.72);
}

#module-provas .pm--is-critical {
    border-color: rgba(194, 65, 12, 0.52);
    background: rgba(42, 16, 0, 0.72);
}

#module-provas .pm--is-danger {
    border-color: rgba(153, 27, 27, 0.52);
    background: rgba(45, 10, 10, 0.72);
}

#module-provas .pm--is-waiting {
    border-color: rgba(67, 56, 202, 0.52);
    background: rgba(26, 16, 80, 0.68);
}

#module-provas .pm--is-reserve,
#module-provas .pm--is-approved {
    border-color: rgba(22, 101, 52, 0.55);
    background: rgba(10, 31, 10, 0.76);
}

#module-provas .pm--is-blocked {
    border-color: rgba(71, 85, 105, 0.45);
    background: rgba(15, 23, 42, 0.5);
    opacity: 0.76;
}

#module-provas .pm-dot {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #334155;
    color: #94a3b8;
    background: #0f1117;
}

#module-provas .pm-dot--is-active {
    border-color: #1d4ed8;
    color: #93c5fd;
}

#module-provas .pm-dot--is-critical {
    border-color: #c2410c;
    color: #fdba74;
}

#module-provas .pm-dot--is-danger {
    border-color: #991b1b;
    color: #fca5a5;
}

#module-provas .pm-dot--is-waiting {
    border-color: #4338ca;
    color: #c4b5fd;
}

#module-provas .pm-dot--is-reserve,
#module-provas .pm-dot--is-approved {
    border-color: #166534;
    color: #86efac;
}

#module-provas .pm-dot--is-blocked {
    border-color: #475569;
    color: #64748b;
}

#module-provas .pm-main {
    min-width: 0;
    flex: 1;
}

#module-provas .pm-name-row {
    display: flex;
    justify-content: space-between;
    gap: 0.55rem;
    align-items: flex-start;
}

#module-provas .pm-name {
    font-size: 0.7rem;
    font-weight: 700;
    flex: 1;
    min-width: 0;
    line-height: 1.35;
    color: #e2e8f0;
}

#module-provas .pm-date {
    margin-top: 0.18rem;
    font-size: 0.62rem;
    color: var(--mu);
    line-height: 1.45;
}

#module-provas .pm-state-badge {
    flex-shrink: 0;
    padding: 0.16rem 0.48rem;
    border-radius: 999px;
    border: 1px solid #334155;
    background: #0f1117;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

#module-provas .pm-state-badge--is-active {
    border-color: #1d4ed8;
    color: #93c5fd;
}

#module-provas .pm-state-badge--is-critical {
    border-color: #c2410c;
    color: #fdba74;
}

#module-provas .pm-state-badge--is-danger {
    border-color: #991b1b;
    color: #fca5a5;
}

#module-provas .pm-state-badge--is-waiting {
    border-color: #4338ca;
    color: #c4b5fd;
}

#module-provas .pm-state-badge--is-reserve,
#module-provas .pm-state-badge--is-approved {
    border-color: #166534;
    color: #86efac;
}

#module-provas .pm-state-badge--is-blocked {
    border-color: #475569;
    color: #94a3b8;
}

#module-provas .pm-signal-list {
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

#module-provas .pm-signal {
    display: inline-flex;
    align-items: center;
    min-height: 1.3rem;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    border: 1px solid #334155;
    background: rgba(15, 23, 42, 0.86);
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

#module-provas .pm-signal--result {
    border-color: #166534;
    color: #86efac;
}

#module-provas .pm-signal--notes {
    border-color: #4338ca;
    color: #c4b5fd;
}

#module-provas .pm-signal--conditional {
    border-color: #b45309;
    color: #fbbf24;
}

.concurso-status-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    margin-bottom: 0.9rem;
    align-items: stretch;
}

.concurso-status-main,
.concurso-status-structure {
    padding: 0.95rem 1rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(2, 6, 23, 0.24);
}

.concurso-status-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.45rem;
}

.concurso-status-lead {
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.25;
    color: #f8fafc;
    max-width: 28ch;
}

.concurso-status-support {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #94a3b8;
    max-width: 52ch;
}

.concurso-status-panel--waiting .concurso-status-main {
    background: rgba(49, 46, 129, 0.18);
    border-color: rgba(129, 140, 248, 0.28);
}

.concurso-status-panel--critical .concurso-status-main,
.concurso-status-panel--today .concurso-status-main {
    background: rgba(154, 52, 18, 0.16);
    border-color: rgba(251, 146, 60, 0.26);
}

.concurso-status-panel--overdue .concurso-status-main,
.concurso-status-panel--failed .concurso-status-main {
    background: rgba(127, 29, 29, 0.16);
    border-color: rgba(248, 113, 113, 0.24);
}

.concurso-status-panel--reserve .concurso-status-main,
.concurso-status-panel--approved .concurso-status-main,
.concurso-status-panel--empossado .concurso-status-main {
    background: rgba(20, 83, 45, 0.16);
    border-color: rgba(74, 222, 128, 0.2);
}

#module-provas .pbr {
    height: 4px;
    background: #1e293b;
    border-radius: 99px;
    overflow: hidden;
}

#module-provas .pbf {
    height: 100%;
    border-radius: 99px;
}

#module-provas .cc-icon-btn {
    padding: 5px 8px;
    font-size: 0.62rem;
    background: var(--s2);
    border: 1px solid var(--b2);
    border-radius: 7px;
    color: var(--mu);
    cursor: pointer;
    line-height: 1;
}

#module-provas .cc-cta {
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 5px 12px;
    cursor: pointer;
    border: 1px solid;
    background: var(--s2);
}

#module-provas .cc-cta--map {
    color: #60a5fa;
    background: #1e3a5f;
    border-color: #1d4ed8;
}

#module-provas .cc-cta--detail {
    color: var(--mu);
    background: var(--s2);
    border-color: var(--b1);
}

#module-provas .cc-cta--success {
    color: #4ade80;
    background: #14290a;
    border-color: #166534;
}

#module-provas .cc-cta--danger {
    color: #fca5a5;
    background: #2d0a0a;
    border-color: #991b1b;
}

#module-provas .cc-info-box {
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 12px;
}

#module-provas .cc-info-box--reserve {
    background: #0a1f0a;
    border: 1px solid #14532d;
}

#module-provas .cc-info-box--blocked {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(71, 85, 105, 0.48);
}

#module-provas .cc-inline-note {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(51, 65, 85, 0.78);
    background: rgba(15, 23, 42, 0.56);
    font-size: 0.68rem;
    line-height: 1.55;
    color: #94a3b8;
}

#module-provas .cc-story-strip {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 0.82rem 0.9rem;
    border-radius: 12px;
    border: 1px solid #334155;
    background: rgba(15, 23, 42, 0.58);
}

#module-provas .cc-story-strip.is-active {
    border-color: #1d4ed8;
    background: rgba(13, 26, 46, 0.72);
}

#module-provas .cc-story-strip.is-critical {
    border-color: #c2410c;
    background: rgba(42, 16, 0, 0.72);
}

#module-provas .cc-story-strip.is-success {
    border-color: #166534;
    background: rgba(10, 31, 10, 0.76);
}

#module-provas .cc-story-strip.is-danger {
    border-color: #991b1b;
    background: rgba(45, 10, 10, 0.76);
}

#module-provas .cc-story-strip.is-waiting {
    border-color: #4338ca;
    background: rgba(26, 16, 80, 0.68);
}

#module-provas .cc-story-strip.is-neutral {
    border-color: #334155;
    background: rgba(17, 24, 39, 0.68);
}

#module-provas .cc-story-copy {
    min-width: 0;
}

#module-provas .cc-story-title {
    font-size: 0.74rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.35;
}

#module-provas .cc-story-text {
    margin-top: 0.2rem;
    font-size: 0.67rem;
    line-height: 1.6;
    color: #94a3b8;
}

#module-provas .cc-story-action {
    flex-shrink: 0;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #cbd5e1;
    padding: 0.26rem 0.52rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.78);
}

#module-provas .cc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 10px;
}

.concurso-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.concurso-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.38);
}

.concurso-card--active {
    background: #0d1a2e;
    border-color: #1d4ed8;
}

.concurso-card--critical {
    background: #1a1200;
    border-color: #c2410c;
}

.concurso-card--danger {
    background: #1a0505;
    border-color: #991b1b;
}

.concurso-card--waiting {
    background: #1f1604;
    border-color: #a16207;
}

.concurso-card--reserve,
.concurso-card--approved {
    background: #071a0a;
    border-color: #166534;
}

.concurso-card-bar {
    height: 3px;
    width: 100%;
    flex-shrink: 0;
}

.concurso-card--active .concurso-card-bar {
    background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.concurso-card--critical .concurso-card-bar {
    background: linear-gradient(90deg, #f97316, #fbbf24);
}

.concurso-card--danger .concurso-card-bar {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.concurso-card--waiting .concurso-card-bar {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.concurso-card--reserve .concurso-card-bar,
.concurso-card--approved .concurso-card-bar {
    background: linear-gradient(90deg, #22c55e, #86efac);
}

.concurso-card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.concurso-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.concurso-card-headline {
    min-width: 0;
}

.concurso-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.26rem 0.7rem;
    border-radius: 9999px;
    border: 1px solid;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.concurso-chip--active {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}

.concurso-chip--critical {
    background: rgba(249, 115, 22, 0.14);
    border-color: rgba(249, 115, 22, 0.35);
    color: #fdba74;
}

.concurso-chip--danger {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.32);
    color: #fca5a5;
}

.concurso-chip--waiting {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.32);
    color: #fcd34d;
}

.concurso-chip--reserve,
.concurso-chip--approved {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.32);
    color: #86efac;
}

.concurso-card-title {
    margin: 0 0 0.15rem;
    font-size: 1rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.3;
}

.concurso-card-meta {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.concurso-card-counter {
    flex-shrink: 0;
    padding: 0.38rem 0.68rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.44);
    border: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
}

.concurso-phase-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.concurso-phase {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(2, 6, 23, 0.28);
    transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.concurso-phase:hover {
    transform: translateX(2px);
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.42);
}

.concurso-phase-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.concurso-phase--active .concurso-phase-dot { background: #60a5fa; }
.concurso-phase--critical .concurso-phase-dot { background: #fb923c; }
.concurso-phase--danger .concurso-phase-dot { background: #f87171; }
.concurso-phase--waiting .concurso-phase-dot { background: #fbbf24; }
.concurso-phase--reserve .concurso-phase-dot { background: #34d399; }
.concurso-phase--approved .concurso-phase-dot { background: #4ade80; }
.concurso-phase--failed .concurso-phase-dot { background: #f87171; }

.concurso-phase-main {
    min-width: 0;
}

.concurso-phase-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin-bottom: 0.2rem;
}

.concurso-phase-title {
    min-width: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.35;
}

.concurso-phase-meta {
    font-size: 0.68rem;
    line-height: 1.45;
    color: #64748b;
}

.concurso-phase-status {
    flex-shrink: 0;
    padding: 0.18rem 0.55rem;
    border-radius: 9999px;
    border: 1px solid;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.concurso-phase-status--active {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.concurso-phase-status--critical {
    background: rgba(249, 115, 22, 0.14);
    border-color: rgba(249, 115, 22, 0.3);
    color: #fdba74;
}

.concurso-phase-status--danger,
.concurso-phase-status--failed {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.concurso-phase-status--waiting {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.concurso-phase-status--reserve,
.concurso-phase-status--approved {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.concurso-phase-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.concurso-phase-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.5);
    color: #94a3b8;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.concurso-phase-icon:hover {
    background: rgba(30, 41, 59, 0.78);
    border-color: rgba(148, 163, 184, 0.24);
    color: #e2e8f0;
}

.concurso-structure {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.85rem 0.9rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(2, 6, 23, 0.28);
}

.concurso-structure-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.concurso-structure-head strong {
    font-size: 0.78rem;
    color: #f8fafc;
}

.concurso-structure-bar {
    height: 0.42rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.8);
    overflow: hidden;
}

.concurso-structure-fill {
    height: 100%;
    min-width: 0.32rem;
    border-radius: inherit;
}

.concurso-structure-fill--active {
    background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.concurso-structure-fill--critical {
    background: linear-gradient(90deg, #f97316, #fbbf24);
}

.concurso-structure-fill--danger {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.concurso-structure-fill--waiting {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.concurso-structure-fill--reserve,
.concurso-structure-fill--approved {
    background: linear-gradient(90deg, #22c55e, #86efac);
}

.concurso-structure-caption {
    font-size: 0.68rem;
    line-height: 1.5;
    color: #64748b;
}

.concurso-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding-top: 0.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.concurso-card-footnote {
    flex: 1;
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #94a3b8;
}

.concurso-open-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.55);
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.concurso-open-btn:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.28);
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .concurso-card-header,
    .concurso-card-footer,
    .concurso-phase-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .concurso-phase {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .concurso-phase-actions {
        grid-column: 2;
        justify-content: flex-end;
    }

    .concurso-open-btn {
        width: 100%;
    }
}

/* ─── Drawer de detalhe da prova ─────────────────────────────────────── */

.prova-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    overscroll-behavior: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 220ms ease, visibility 0s linear;
}

.prova-drawer--hidden {
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition-delay: 0s, 220ms;
}

.prova-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    opacity: 1;
    transition: opacity 220ms ease;
    cursor: pointer;
}

.prova-drawer--hidden .prova-drawer-backdrop {
    opacity: 0;
}

.prova-drawer-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 100dvh;
    max-height: 100dvh;
    background: #13161f;
    border-left: 1px solid #252b3b;
    display: flex;
    flex-direction: column;
    min-height: 0;
    transform: translateX(0);
    transition: transform 230ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.prova-drawer--hidden .prova-drawer-panel {
    transform: translateX(calc(100% + 24px));
}

/* Barra de urgência fina no topo do painel */
.prova-drawer-urgency-bar {
    height: 3px;
    width: 100%;
    flex-shrink: 0;
}

.prova-drawer-header {
    flex-shrink: 0;
    border-bottom: 1px solid #252b3b;
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(19, 22, 31, 0.96));
}

.prova-drawer-header-body {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}

.prova-drawer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.3;
    margin: 0 0 0.2rem;
    white-space: normal;
}

.prova-drawer-subtitle {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    white-space: normal;
    line-height: 1.5;
}

.prova-drawer-context {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.prova-drawer-context-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.24rem 0.62rem;
    border-radius: 999px;
    border: 1px solid #334155;
    background: #0f1117;
    color: #94a3b8;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.prova-drawer-context-pill.is-type {
    border-color: #4338ca;
    background: rgba(26, 16, 80, 0.58);
    color: #c4b5fd;
}

.prova-drawer-context-pill.is-map {
    border-color: #1d4ed8;
    background: rgba(13, 26, 46, 0.8);
    color: #93c5fd;
}

.prova-drawer-context-pill.is-warning {
    border-color: #c2410c;
    background: rgba(67, 20, 7, 0.68);
    color: #fdba74;
}

.prova-drawer-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: 2rem;
    padding: 0 0.65rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 150ms, color 150ms, border-color 150ms;
    white-space: nowrap;
}

.prova-drawer-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #f1f5f9;
}

/* Tabs */
.prova-drawer-tabs {
    display: flex;
    flex-shrink: 0;
    border-bottom: 1px solid #252b3b;
    background: rgba(15, 17, 23, 0.92);
    overflow-x: auto;
    scrollbar-width: none;
    padding-inline: 0.45rem;
}

.prova-drawer-tabs::-webkit-scrollbar {
    display: none;
}

.prova-drawer-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    padding: 0.85rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color 150ms, border-color 150ms;
}

.prova-drawer-tab:hover {
    color: #94a3b8;
}

.prova-drawer-tab.active {
    color: #818cf8;
    border-bottom-color: #818cf8;
}

/* Corpo scrollável */
.prova-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-width: thin;
    scrollbar-color: #252b3b transparent;
}

.prova-drawer-body::-webkit-scrollbar {
    width: 5px;
}

.prova-drawer-body::-webkit-scrollbar-track {
    background: transparent;
}

.prova-drawer-body::-webkit-scrollbar-thumb {
    background: #252b3b;
    border-radius: 3px;
}

.prova-drawer-pane {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.prova-drawer-pane[hidden] {
    display: none;
}

/* Seções dentro dos panes */
.drawer-section {
    background: #1a1f2e;
    border: 1px solid #252b3b;
    border-radius: 0.75rem;
    overflow: hidden;
}

.drawer-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    padding: 0.75rem 1rem 0;
    margin: 0 0 0.5rem;
}

.drawer-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(51, 65, 85, 0.72);
}

.drawer-section-body {
    padding: 0 1rem 1rem;
}

/* Grid de info no overview */
.drawer-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.drawer-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.drawer-info-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
}

.drawer-info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
}

/* Countdown grande no overview */
.drawer-countdown {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #0f1117;
    border-radius: 0.5rem;
    border: 1px solid #252b3b;
}

.drawer-countdown-number {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}

.drawer-countdown-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.4;
}

.drawer-overview-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0.85rem;
}

.drawer-overview-head {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.drawer-overview-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.drawer-overview-state {
    border-radius: 12px;
    border: 1px solid #252b3b;
    background: #0f1117;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    justify-content: center;
}

.drawer-overview-state-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.35;
}

.drawer-overview-state-meta {
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.55;
}

.drawer-overview-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.drawer-overview-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.6rem;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    border: 1px solid #334155;
    background: #0f1117;
    color: #94a3b8;
    font-size: 0.64rem;
    font-weight: 700;
}

.drawer-overview-pill--map {
    border-color: #1d4ed8;
    background: rgba(13, 26, 46, 0.84);
    color: #93c5fd;
}

.drawer-overview-pill--success {
    border-color: #166534;
    background: rgba(10, 31, 10, 0.84);
    color: #86efac;
}

.drawer-overview-pill--warning {
    border-color: #b45309;
    background: rgba(49, 33, 7, 0.9);
    color: #fbbf24;
}

.drawer-overview-note {
    margin-top: 0.85rem;
    padding: 0.85rem 0.95rem;
    border-radius: 10px;
    border: 1px solid #1e3a5f;
    background: #0d1630;
    color: #93c5fd;
    font-size: 0.72rem;
    line-height: 1.65;
}

.drawer-overview-guide {
    border-radius: 14px;
    border: 1px solid #334155;
    background: rgba(15, 23, 42, 0.62);
    padding: 0.9rem 0.95rem;
}

.drawer-overview-guide.is-active {
    border-color: #1d4ed8;
    background: rgba(13, 26, 46, 0.74);
}

.drawer-overview-guide.is-info {
    border-color: #4338ca;
    background: rgba(26, 16, 80, 0.66);
}

.drawer-overview-guide.is-success {
    border-color: #166534;
    background: rgba(10, 31, 10, 0.74);
}

.drawer-overview-guide.is-danger {
    border-color: #991b1b;
    background: rgba(45, 10, 10, 0.72);
}

.drawer-overview-guide.is-warning {
    border-color: #c2410c;
    background: rgba(42, 16, 0, 0.72);
}

.drawer-overview-guide-kicker {
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.drawer-overview-guide-title {
    margin-top: 0.22rem;
    font-size: 0.86rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.35;
}

.drawer-overview-guide-copy {
    margin-top: 0.22rem;
    font-size: 0.73rem;
    line-height: 1.65;
    color: #cbd5e1;
}

.drawer-overview-guide-list {
    margin-top: 0.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.drawer-overview-guide-pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.4;
}

.drawer-overview-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
}

.drawer-inline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.45rem;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f1117;
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
}

.drawer-inline-btn--map {
    border-color: #1d4ed8;
    background: #1e3a5f;
    color: #60a5fa;
}

.drawer-inline-btn--result {
    border-color: #4338ca;
    background: #1a1050;
    color: #a78bfa;
}

.drawer-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.drawer-overview-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-radius: 12px;
    border: 1px solid #252b3b;
    background: #0f1117;
    padding: 0.85rem 0.9rem;
}

.drawer-overview-warning {
    padding: 0.8rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #4338ca;
    background: rgba(26, 16, 80, 0.44);
    color: #a5b4fc;
    font-size: 0.72rem;
    line-height: 1.6;
}

.drawer-phase-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.drawer-phase-pill {
    border-radius: 12px;
    border: 1px solid #252b3b;
    background: #0f1117;
    padding: 0.8rem 0.9rem;
}

.drawer-phase-pill.is-current {
    border-color: #1d4ed8;
    background: rgba(13, 26, 46, 0.78);
}

.drawer-phase-pill.is-done {
    border-color: #166534;
    background: rgba(10, 31, 10, 0.72);
}

.drawer-phase-pill.is-blocked {
    border-color: #334155;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0.72;
}

.drawer-phase-pill.is-active {
    border-color: #1d4ed8;
    background: rgba(13, 26, 46, 0.72);
}

.drawer-phase-pill.is-critical {
    border-color: #c2410c;
    background: rgba(42, 16, 0, 0.72);
}

.drawer-phase-pill.is-danger {
    border-color: #991b1b;
    background: rgba(45, 10, 10, 0.72);
}

.drawer-phase-pill.is-waiting {
    border-color: #4338ca;
    background: rgba(26, 16, 80, 0.68);
}

.drawer-phase-pill.is-reserve,
.drawer-phase-pill.is-approved {
    border-color: #166534;
    background: rgba(10, 31, 10, 0.72);
}

.drawer-phase-pill-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.drawer-phase-pill-title {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: #e2e8f0;
}

.drawer-phase-pill-badge {
    font-size: 0.66rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.drawer-phase-pill-meta {
    margin-top: 0.35rem;
    font-size: 0.68rem;
    color: #64748b;
}

.drawer-phase-pill-chips {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.drawer-phase-pill-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.35rem;
    padding: 0.14rem 0.46rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.8);
    color: #cbd5e1;
    font-size: 0.56rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Estagio badge */
.drawer-estagio-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid;
}

/* Select de estágio */
.drawer-estagio-select {
    width: 100%;
    background: #0f1117;
    border: 1px solid #252b3b;
    border-radius: 0.5rem;
    color: #e2e8f0;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.drawer-estagio-select:focus {
    outline: none;
    border-color: #4f46e5;
}

/* Disciplinas */
.drawer-disciplina-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #0f1117;
    border: 1px solid #252b3b;
    border-radius: 0.5rem;
}

.drawer-disciplina-nome {
    font-size: 0.875rem;
    font-weight: 600;
    color: #cbd5e1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawer-disciplina-tipo {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
}

.drawer-disciplina-shared {
    margin-top: 0.24rem;
    font-size: 0.64rem;
    line-height: 1.5;
    color: #64748b;
}

.drawer-disciplina-shared.is-linked {
    color: #93c5fd;
}

.drawer-disciplina-shared.is-new {
    color: #fbbf24;
}

.drawer-disciplina-peso {
    font-size: 0.75rem;
    font-weight: 700;
    color: #818cf8;
    white-space: nowrap;
}

.drawer-disciplina-extra {
    font-size: 0.7rem;
    color: #94a3b8;
    white-space: nowrap;
}

/* Formulário inline de nova disciplina */
.drawer-add-disciplina-form {
    background: #0f1117;
    border: 1px dashed #2e3549;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.drawer-prep-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.drawer-prep-progress {
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.drawer-prep-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.68rem;
    color: #94a3b8;
}

.drawer-prep-note {
    margin-top: 0.85rem;
    padding: 0.8rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #312e81;
    background: #1a1050;
    color: #a5b4fc;
    font-size: 0.72rem;
    line-height: 1.6;
}

.drawer-prep-head {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.drawer-prep-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.24rem;
}

.drawer-prep-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.35;
}

.drawer-prep-meta {
    margin-top: 0.22rem;
    font-size: 0.72rem;
    color: #94a3b8;
}

.drawer-prep-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: 0.24rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.drawer-prep-tag.is-objective {
    border-color: #1d4ed8;
    background: #1e3a5f;
    color: #93c5fd;
}

.drawer-prep-tag.is-discursive {
    border-color: #4338ca;
    background: #1a1050;
    color: #c084fc;
}

.drawer-prep-tag.is-oral {
    border-color: #92400e;
    background: #1a1200;
    color: #fdba74;
}

/* Resultado */
.drawer-resultado-desfecho {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.drawer-resultado-table {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.drawer-resultado-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 84px 84px 78px;
    gap: 0.5rem;
    align-items: center;
}

.drawer-resultado-row--head {
    padding: 0 0.2rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.drawer-resultado-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
}

.drawer-resultado-helper {
    font-size: 0.67rem;
    color: #64748b;
    line-height: 1.5;
}

.drawer-resultado-input {
    padding: 0.58rem 0.7rem;
    text-align: center;
}

.drawer-resultado-static {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid #2e3549;
    background: #0f1117;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
}

.drawer-resultado-static--block {
    width: 100%;
}

.drawer-resultado-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid #4338ca;
    background: #1a1f2e;
    color: #a5b4fc;
    font-size: 0.76rem;
    font-weight: 800;
}

.drawer-resultado-chip--success {
    border-color: #166534;
    background: rgba(20, 41, 10, 0.86);
    color: #4ade80;
}

.drawer-resultado-chip--warning {
    border-color: #b45309;
    background: rgba(49, 33, 7, 0.86);
    color: #fbbf24;
}

.drawer-resultado-chip--danger {
    border-color: #991b1b;
    background: rgba(45, 10, 10, 0.86);
    color: #f87171;
}

.drawer-resultado-warning {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.9rem;
    padding: 0.8rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #450a0a;
    background: #1a0505;
    color: #fca5a5;
    font-size: 0.7rem;
    line-height: 1.6;
}

.drawer-resultado-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.drawer-resultado-summary-card {
    border-radius: 12px;
    border: 1px solid #2e3549;
    background: #0f1117;
    padding: 0.9rem 0.8rem;
}

.drawer-resultado-summary-value {
    font-size: 1rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.1;
}

.drawer-resultado-summary-label {
    margin-top: 0.25rem;
    font-size: 0.65rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.drawer-result-phase-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.drawer-result-phase-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.drawer-result-phase-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.35;
}

.drawer-result-phase-meta {
    margin-top: 0.22rem;
    font-size: 0.72rem;
    color: #94a3b8;
}

.drawer-result-phase-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.drawer-result-phase-tag.is-objective {
    border-color: #1d4ed8;
    background: #1e3a5f;
    color: #93c5fd;
}

.drawer-result-phase-tag.is-discursive {
    border-color: #4338ca;
    background: #1a1050;
    color: #c084fc;
}

.drawer-result-phase-tag.is-oral {
    border-color: #92400e;
    background: #1a1200;
    color: #fdba74;
}

.drawer-result-delta {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.6rem;
    align-items: center;
}

.drawer-result-delta-card {
    border-radius: 10px;
    border: 1px solid #2e3549;
    background: #0f1117;
    padding: 0.7rem 0.75rem;
    text-align: center;
}

.drawer-result-delta-card.is-final {
    border-color: #166534;
    background: #0a1f0a;
}

.drawer-result-delta-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: #f8fafc;
}

.drawer-result-delta-card.is-final .drawer-result-delta-value {
    color: #4ade80;
}

.drawer-result-delta-label {
    margin-top: 0.18rem;
    font-size: 0.62rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.drawer-result-delta-arrow {
    font-size: 0.92rem;
    font-weight: 800;
    color: #4ade80;
}

.drawer-result-recurso-box {
    margin-top: 0.85rem;
    padding: 0.8rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #92400e;
    background: #1a1200;
    color: #fcd34d;
    font-size: 0.72rem;
    line-height: 1.6;
}

.drawer-result-helper-box {
    margin-top: 0.85rem;
    padding: 0.8rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #312e81;
    background: #1a1050;
    color: #a5b4fc;
    font-size: 0.72rem;
    line-height: 1.6;
}

.drawer-discursive-stack {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.drawer-discursive-card {
    border-radius: 12px;
    border: 1px solid #2e3549;
    background: #0f1117;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.drawer-discursive-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.drawer-discursive-grid,
.drawer-resultado-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.drawer-discursive-progress {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.drawer-discursive-progress .pbr {
    flex: 1;
}

.drawer-discursive-progress span {
    font-size: 0.68rem;
    font-weight: 700;
    color: #4ade80;
    white-space: nowrap;
}

.drawer-resultado-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid #252b3b;
    background: #0f1117;
    cursor: pointer;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.drawer-resultado-toggle input {
    width: 1rem;
    height: 1rem;
    accent-color: #818cf8;
}

.drawer-resultado-toggle-state {
    margin-left: auto;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #818cf8;
}

.drawer-desfecho-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.75rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #252b3b;
    background: #0f1117;
    cursor: pointer;
    transition: border-color 150ms, background 150ms;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.drawer-desfecho-btn:hover {
    border-color: #3e4869;
    color: #94a3b8;
}

.drawer-desfecho-btn.selected--aprovado {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
    color: #4ade80;
}

.drawer-desfecho-btn.selected--cadastro_reserva {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    color: #fbbf24;
}

.drawer-desfecho-btn.selected--reprovado {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
}

/* Notas textarea */
.drawer-notas-area {
    width: 100%;
    min-height: 200px;
    background: #0f1117;
    border: 1px solid #252b3b;
    border-radius: 0.5rem;
    color: #e2e8f0;
    padding: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
}

.drawer-notas-area:focus {
    outline: none;
    border-color: #4f46e5;
}

/* Botão salvar aba */
.drawer-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 150ms;
    align-self: flex-end;
}

.drawer-save-btn:hover {
    background: #4338ca;
}

.drawer-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .provas-section-shell {
        padding: 0.95rem 0.9rem 0.9rem;
    }

    .provas-section-header {
        flex-direction: column;
    }

    .provas-section-meta {
        width: 100%;
        justify-content: flex-start;
    }

    .provas-section-pill {
        min-width: 0;
        flex: 1 1 calc(50% - 0.45rem);
    }

    .prova-drawer-panel {
        max-width: 100%;
    }

    .prova-drawer-header-body {
        padding: 1rem 1rem 0.9rem;
        gap: 0.75rem;
    }

    .prova-drawer-title {
        font-size: 1rem;
    }

    .prova-drawer-subtitle {
        font-size: 0.72rem;
        letter-spacing: 0.04em;
    }

    .prova-drawer-tab {
        padding: 0.7rem 0.8rem;
        font-size: 0.74rem;
    }

    .prova-drawer-pane {
        padding: 1rem;
        gap: 1rem;
    }

    .provas-history-card-head,
    .provas-history-detect-head,
    .provas-history-mini-badges {
        flex-direction: column;
        align-items: flex-start;
    }

    .provas-history-mini-list {
        grid-template-columns: 1fr;
    }

    .provas-history-bar-row {
        grid-template-columns: 1fr;
    }

    .provas-history-bar-label {
        text-align: left;
    }

    .provas-overlap-layout {
        grid-template-columns: 1fr;
    }

    .provas-overlap-table {
        min-width: 100%;
    }

    .provas-overlap-priority-item {
        padding: 0.8rem;
    }

    #module-provas .cc-footer {
        flex-direction: column;
        align-items: stretch;
    }

    #module-provas .cc-story-strip {
        flex-direction: column;
    }

    #module-provas .pm-name-row {
        flex-direction: column;
        align-items: flex-start;
    }

    #module-provas .cc-footer .cc-cta {
        width: 100%;
        justify-content: center;
    }

    .drawer-info-grid {
        grid-template-columns: 1fr;
    }

    .drawer-overview-hero,
    .drawer-overview-grid,
    .drawer-prep-form-grid {
        grid-template-columns: 1fr;
    }

    .drawer-overview-actions {
        flex-direction: column;
    }

    .drawer-inline-btn {
        width: 100%;
    }

    .drawer-disciplina-item {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .drawer-disciplina-extra {
        grid-column: 1 / -1;
    }

    .drawer-resultado-row {
        grid-template-columns: minmax(0, 1.3fr) 74px 74px 68px;
    }

    .drawer-resultado-summary-grid,
    .drawer-discursive-grid,
    .drawer-resultado-form-grid {
        grid-template-columns: 1fr;
    }

    .drawer-result-phase-head,
    .drawer-result-delta {
        grid-template-columns: 1fr;
        display: grid;
    }

    .drawer-prep-head {
        flex-direction: column;
    }
}

/* ─── Radar de Disciplinas ─────────────────────────────────────────── */

.provas-radar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.radar-pill {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    border: 1px solid #252b3b;
    background: #1a1f2e;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: border-color 150ms;
}

.radar-pill:hover {
    border-color: #3e4869;
}

.radar-pill-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radar-pill-count {
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
}

.radar-pill-bar {
    height: 2px;
    background: #252b3b;
    border-radius: 1px;
    overflow: hidden;
    margin-top: 0.1rem;
}

.radar-pill-fill {
    height: 100%;
    border-radius: 1px;
    transition: width 400ms ease;
}

.radar-pill--high .radar-pill-count { color: #818cf8; }
.radar-pill--high .radar-pill-fill  { background: linear-gradient(90deg, #6366f1, #818cf8); }
.radar-pill--high { border-color: rgba(99, 102, 241, 0.25); }

.radar-pill--mid .radar-pill-count { color: #60a5fa; }
.radar-pill--mid .radar-pill-fill  { background: linear-gradient(90deg, #2563eb, #60a5fa); }

.radar-pill--low .radar-pill-count { color: #475569; }
.radar-pill--low .radar-pill-fill  { background: #334155; }

/* ─── HUD de Stats ──────────────────────────────────────────────────── */

.provas-hud-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
    .provas-hud-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .provas-hud-grid { grid-template-columns: repeat(2, 1fr); }
}

.phud-stat {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.95rem 0.9rem;
    border-radius: 1rem;
    border: 1px solid;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 17, 23, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.phud-stat-head {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: center;
}

.phud-stat-icon {
    width: 1.1rem;
    height: 1.1rem;
    opacity: 0.9;
    color: var(--phud-color, #f8fafc);
}

.phud-stat-num {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--phud-color, #fff);
}

.phud-stat-label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

/* ─── pcard (novo design de card de prova) ──────────────────────────── */

.pcard {
    border-radius: 0.75rem;
    border-width: 1px;
    border-style: solid;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 150ms, transform 150ms;
    display: flex;
    flex-direction: column;
}

.pcard:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transform: translateY(-1px);
}

.pcard-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.pcard-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.concurso-structure-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.concurso-structure-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 65px; /* Define um tamanho fixo pro cirulo nao esmagar a barra */
    flex-shrink: 0;
}

.concurso-structure-pct {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 9999px;
    border: 2px solid #22c55e;
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    font-size: 0.65rem;
    font-weight: 800;
}

.concurso-structure-track {
    flex: 1; /* A barra ocupa o flex disponivel */
    min-width: 0;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
    position: relative;
    overflow: hidden;
}

.concurso-structure-fill {
    height: 100%;
    border-radius: 999px;
    background: #22c55e;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.concurso-structure-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #86efac;
    text-align: right;
    min-width: 42px; /* Espaço obrigatorio garantido pro "100%" ou "100.0%" caber */
    flex-shrink: 0;
}

.pcard-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pcard-action-btns {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.pcard-iconbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #94a3b8;
    cursor: pointer;
    transition: background 150ms, color 150ms;
}

.pcard-iconbtn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}

.pcard-nome {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pcard-meta {
    font-size: 0.7rem;
    color: #475569;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pcard-countdown {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0.5rem;
    padding: 0.55rem 0.75rem;
    margin-top: 0.1rem;
}

.pcard-ct-num {
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    flex-shrink: 0;
    min-width: 2.25rem;
    text-align: center;
}

.pcard-ct-info {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.pcard-ct-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pcard-ct-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
}

.pcard-ct-tipo {
    font-size: 0.66rem;
    color: #475569;
    font-weight: 500;
}

.pcard-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.15rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pcard-cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.42rem 0.65rem;
    border-radius: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid;
    transition: opacity 150ms;
}

.pcard-cta:hover { opacity: 0.8; }

.pcard-cta--blue {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.pcard-cta--green {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.pcard-done-label {
    font-size: 0.73rem;
    font-weight: 600;
    color: #4ade80;
}

.pcard-detail-hint {
    font-size: 0.68rem;
    color: #334155;
    font-style: italic;
}

/* ════════════════════════════════════════════════════════════════
   MAPA DE ESFORÇO V2 — Painel Visual
   ════════════════════════════════════════════════════════════════ */

/* Header card */
.mapa-v2-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem !important;
}

.mapa-v2-header-body {
    flex: 1;
    min-width: 0;
}

.mapa-v2-preparing-label {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 0.3rem;
}

.mapa-v2-nome {
    font-size: 1.2rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.2;
    margin: 0;
}

.mapa-v2-meta {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.2rem;
}

/* Countdown badge */
.mapa-v2-countdown {
    flex-shrink: 0;
    border-radius: 0.75rem;
    padding: 0.65rem 1.1rem;
    text-align: center;
    min-width: 5.5rem;
    background: linear-gradient(135deg, #7c2d12, #c2410c);
}

.mapa-v2-countdown--warn   { background: linear-gradient(135deg, #78350f, #b45309); }
.mapa-v2-countdown--ok     { background: linear-gradient(135deg, #1e3a5f, #1d4ed8); }
.mapa-v2-countdown--danger { background: linear-gradient(135deg, #7c2d12, #dc2626); }

.mapa-v2-countdown-dias {
    display: block;
    font-size: 2.1rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.mapa-v2-countdown-label {
    display: block;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* Stats row */
.mapa-v2-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
}

@media (max-width: 640px) {
    .mapa-v2-stats-row { grid-template-columns: repeat(2, 1fr); }
}

.mapa-v2-stat-card {
    background: var(--color-surface-2, #191d28);
    border: 1px solid var(--color-border, #2e3549);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: border-color 200ms;
}

.mapa-v2-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #e2e8f0;
    line-height: 1;
}

.mapa-v2-stat-value--blue  { color: #60a5fa; }
.mapa-v2-stat-value--alert { color: #94a3b8; } /* overridden by card modifier */

.mapa-v2-stat-card--danger { border-color: rgba(239, 68, 68, 0.5); }
.mapa-v2-stat-card--danger .mapa-v2-stat-value--alert { color: #f97316; }

.mapa-v2-stat-card--warn   { border-color: rgba(251, 191, 36, 0.4); }
.mapa-v2-stat-card--warn   .mapa-v2-stat-value--alert { color: #fbbf24; }

.mapa-v2-stat-card--ok     { border-color: rgba(74, 222, 128, 0.35); }
.mapa-v2-stat-card--ok     .mapa-v2-stat-value--alert { color: #4ade80; }

.mapa-v2-stat-label {
    font-size: 0.68rem;
    color: #64748b;
}

/* Two-panel layout */
.mapa-v2-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: start;
}

@media (max-width: 860px) {
    .mapa-v2-panels { grid-template-columns: 1fr; }
}

.mapa-v2-panel-title {
    font-size: 0.6rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #475569 !important;
}

/* Discipline card */
.mapa-v2-disc-card {
    background: rgba(11, 13, 19, 0.7);
    border: 1px solid #1e2333;
    border-radius: 0.625rem;
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    transition: border-color 150ms;
}

.mapa-v2-disc-card:hover { border-color: #2e3549; }

.mapa-v2-disc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.mapa-v2-disc-nome {
    font-size: 0.875rem;
    font-weight: 700;
    color: #e2e8f0;
}

.mapa-v2-disc-submeta {
    font-size: 0.67rem;
    color: #64748b;
    margin-top: 0.1rem;
}

/* Priority badge */
.mapa-v2-priority {
    display: inline-flex;
    align-items: center;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 20px;
    border: 1px solid;
    flex-shrink: 0;
    white-space: nowrap;
}

.mapa-v2-priority--alta  { background: rgba(239,68,68,0.12);  color: #f87171; border-color: rgba(239,68,68,0.3); }
.mapa-v2-priority--media { background: rgba(245,158,11,0.12); color: #fbbf24; border-color: rgba(245,158,11,0.3); }
.mapa-v2-priority--ok    { background: rgba(34,197,94,0.1);   color: #4ade80; border-color: rgba(34,197,94,0.25); }

/* Progress row */
.mapa-v2-disc-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
}

.mapa-v2-disc-prog-label { color: #94a3b8; }
.mapa-v2-disc-pct        { font-weight: 700; color: #e2e8f0; }

/* Progress bar */
.mapa-v2-bar-wrap {
    cursor: pointer;
    border-radius: 99px;
}

.mapa-v2-bar-wrap:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.mapa-v2-bar {
    height: 6px;
    background: #1e293b;
    border-radius: 99px;
    overflow: hidden;
}

.mapa-v2-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.2s ease, background 0.2s ease;
}

/* Slider */
.mapa-v2-prog-slider {
    width: 100%;
    margin-top: 0.2rem;
    accent-color: #6366f1;
    cursor: pointer;
}

/* Footer */
.mapa-v2-disc-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #475569;
}

/* Overlap chip */
.mapa-v2-overlap-chip {
    font-size: 0.62rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 0.375rem;
    padding: 3px 8px;
    color: #86efac;
    margin-top: 0.1rem;
}

/* Radar legend */
.mapa-v2-radar-legend {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0.625rem;
    font-size: 0.68rem;
}

.mapa-v2-legend-item--blue  { color: #818cf8; }
.mapa-v2-legend-item--green { color: #4ade80; }

/* Insight box */
.mapa-v2-insight {
    margin-top: 0.75rem;
    font-size: 0.72rem;
    background: rgba(13, 22, 48, 0.8);
    border: 1px solid rgba(30, 48, 128, 0.5);
    border-radius: 0.5rem;
    padding: 0.6rem 0.875rem;
    color: #93c5fd;
    line-height: 1.55;
}

/* Responsive tweaks */
@media (max-width: 480px) {
    .mapa-v2-header { flex-direction: column; }
    .mapa-v2-countdown { align-self: flex-start; }
}

/* ════════════════════════════════════════════════════════════════
   BOTÃO MAPA DO ESFORÇO — card de concurso
   ════════════════════════════════════════════════════════════════ */

#module-provas .cc-cta--mapa-esforco {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #c4b5fd;
    background: rgba(109, 40, 217, 0.14);
    border-color: rgba(124, 58, 237, 0.45);
    transition: background 150ms, border-color 150ms;
}

#module-provas .cc-cta--mapa-esforco:hover {
    background: rgba(109, 40, 217, 0.26);
    border-color: rgba(139, 92, 246, 0.7);
}

/* ════════════════════════════════════════════════════════════════
   MODAL: MAPA DO ESFORÇO POR PROVA  (.mep-*)
   ════════════════════════════════════════════════════════════════ */

.mep-dialog {
    padding: 0;
    border: none;
    border-radius: 20px;
    background: transparent;
    width: min(980px, calc(100vw - 2rem));
    max-height: min(94vh, 860px);
    overflow: visible;
    box-shadow: none;
}

.mep-dialog::backdrop {
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(4px);
}

.mep-shell {
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.10), transparent 38%),
        radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.06), transparent 32%),
        linear-gradient(180deg, #0f1724 0%, #0b0f1a 100%);
    border: 1px solid #1e293b;
    border-radius: 20px;
    overflow: hidden;
    max-height: min(94vh, 860px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #1e293b transparent;
}

/* ── Cabeçalho ── */
.mep-header {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.4rem 1.6rem 1rem;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(10, 15, 30, 0.98), rgba(11, 17, 28, 0.80));
    border-bottom: 1px solid #1a2035;
}

.mep-header-info {
    flex: 1;
    min-width: 0;
}

.mep-eyebrow {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4b6fa8;
    margin-bottom: 0.28rem;
}

.mep-name {
    margin: 0 0 0.2rem;
    font-size: 1.3rem;
    font-weight: 900;
    color: #f1f5f9;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mep-sub {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
}

/* Contador de dias */
.mep-countdown {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 14px;
    border: 1px solid #334155;
    background: rgba(15, 23, 42, 0.6);
    gap: 0.1rem;
}

.mep-countdown--ok {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(13, 26, 60, 0.6);
}

.mep-countdown--warn {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(30, 20, 5, 0.7);
}

.mep-countdown--danger {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(40, 8, 8, 0.7);
    animation: pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.mep-countdown-num {
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
    color: #f8fafc;
}

.mep-countdown--ok    .mep-countdown-num { color: #60a5fa; }
.mep-countdown--warn  .mep-countdown-num { color: #fbbf24; }
.mep-countdown--danger .mep-countdown-num { color: #f97316; }

.mep-countdown-label {
    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
    text-align: center;
}

/* Botão fechar */
.mep-close-btn {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #252b3b;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: background 120ms, color 120ms;
    margin-top: 0.1rem;
}

.mep-close-btn:hover {
    background: #1e293b;
    color: #cbd5e1;
}

/* ── Stats row ── */
.mep-stats-row {
    display: flex;
    gap: 0.6rem;
    padding: 0.9rem 1.6rem;
    border-bottom: 1px solid #131b2b;
    background: rgba(7, 11, 20, 0.4);
    flex-wrap: wrap;
}

.mep-stat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    min-width: 5rem;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    border: 1px solid #1e293b;
    background: rgba(15, 23, 42, 0.58);
}

.mep-stat-card--ok     { border-color: rgba(34, 197, 94, 0.3); }
.mep-stat-card--warn   { border-color: rgba(251, 191, 36, 0.35); }
.mep-stat-card--danger { border-color: rgba(239, 68, 68, 0.35); }

.mep-stat-val {
    font-size: 1rem;
    font-weight: 900;
    color: #f8fafc;
    line-height: 1.1;
}

.mep-stat-card--ok     .mep-stat-val { color: #4ade80; }
.mep-stat-card--warn   .mep-stat-val { color: #fbbf24; }
.mep-stat-card--danger .mep-stat-val { color: #f97316; }

.mep-stat-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
}

/* ── Corpo em 2 colunas ── */
.mep-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    flex: 1;
    min-height: 0;
}

.mep-col-left {
    padding: 1.2rem 1.4rem 1.2rem 1.6rem;
    border-right: 1px solid #131b2b;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #1e293b transparent;
}

.mep-col-right {
    padding: 1.2rem 1.6rem 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.mep-col-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 0.85rem;
}

/* ── Lista de disciplinas ── */
.mep-disc-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.mep-disc-card {
    border-radius: 12px;
    border: 1px solid #1a2338;
    background: rgba(15, 23, 42, 0.5);
    padding: 0.75rem 0.9rem;
    transition: border-color 140ms;
}

.mep-disc-card:hover {
    border-color: #253150;
}

.mep-disc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}

.mep-disc-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #e2e8f0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Prioridade badge */
.mep-disc-priority {
    flex-shrink: 0;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid;
}

.mep-disc-priority--alta {
    color: #fb923c;
    background: rgba(194, 65, 12, 0.15);
    border-color: rgba(194, 65, 12, 0.5);
}

.mep-disc-priority--media {
    color: #fbbf24;
    background: rgba(161, 98, 7, 0.14);
    border-color: rgba(161, 98, 7, 0.45);
}

.mep-disc-priority--ok {
    color: #4ade80;
    background: rgba(22, 101, 52, 0.15);
    border-color: rgba(22, 101, 52, 0.4);
}

.mep-disc-meta {
    font-size: 0.65rem;
    color: #475569;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.mep-disc-badge--unlinked {
    font-size: 0.56rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 99px;
    border: 1px solid rgba(100, 116, 139, 0.4);
    color: #64748b;
    background: rgba(15, 23, 42, 0.5);
}

/* Barras de progresso e peso */
.mep-disc-bars {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mep-disc-bar-row {
    display: grid;
    grid-template-columns: 68px 1fr 34px;
    align-items: center;
    gap: 0.5rem;
}

.mep-disc-bar-label {
    font-size: 0.6rem;
    color: #475569;
    text-align: right;
}

.mep-disc-bar-track {
    height: 6px;
    border-radius: 99px;
    background: #1a2338;
    overflow: hidden;
}

.mep-disc-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease;
}

.mep-disc-bar-fill--cob {
    background: linear-gradient(90deg, #16a34a, #4ade80);
}

.mep-disc-bar-fill--peso {
    background: linear-gradient(90deg, #4338ca, #818cf8);
    opacity: 0.7;
}

.mep-disc-bar-pct {
    font-size: 0.6rem;
    font-weight: 700;
    color: #64748b;
    text-align: right;
}

/* ── Radar ── */
.mep-radar-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.mep-radar-wrap canvas {
    max-width: 100%;
    max-height: 320px;
}

/* Legenda */
.mep-legend {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    font-size: 0.68rem;
    color: #94a3b8;
}

.mep-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.mep-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mep-legend-dot--blue  { background: #6366f1; }
.mep-legend-dot--green { background: #22c55e; }

/* Insight */
.mep-insight {
    font-size: 0.72rem;
    color: #93c5fd;
    background: rgba(13, 22, 48, 0.82);
    border: 1px solid rgba(30, 48, 128, 0.45);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    line-height: 1.55;
    text-align: center;
}

/* ── Abas do Modal ── */
.mep-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem 0;
    border-bottom: 1px solid #131b2b;
    background: rgba(7, 11, 20, 0.4);
}

.mep-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
}

.mep-tab:hover {
    color: #94a3b8;
}

.mep-tab.active {
    color: #f8fafc;
    border-bottom-color: #6366f1;
}

/* ── Panes ── */
.mep-pane {
    display: grid;
    grid-template-columns: 320px 1fr;
}

.mep-pane.hidden {
    display: none !important;
}

/* ── Raio-X do Edital (visão do usuário) ── */
#mep-pane-raiox {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    position: relative;
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent 28%),
        #0f172a;
}

.mep-raiox-header {
    display: none;
}

.mep-raiox-container {
    width: min(100%, 860px);
    max-width: 860px;
    padding: 0;
    display: flex;
    align-items: stretch;
    position: relative;
    margin: 0 auto;
}

.mep-raiox-container.mep-raiox-container--export {
    width: 760px;
    max-width: 760px;
    aspect-ratio: 4 / 5;
    min-height: 950px;
    padding: 1.5rem;
}

.mep-raiox-card {
    width: 100%;
    height: auto;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.32);
    overflow: hidden;
    position: relative;
}

.mep-raiox-container.mep-raiox-container--export .mep-raiox-card {
    height: 100%;
    padding: 1.9rem;
}

.mep-raiox-study-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mep-raiox-study-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mep-raiox-study-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: #7dd3fc;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.mep-raiox-context {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mep-raiox-eyebrow {
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mep-raiox-title {
    margin: 0;
    font-size: clamp(1.3rem, 2.2vw, 1.95rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #f8fafc;
    font-weight: 800;
}

.mep-raiox-subtitle {
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: 600;
}

.mep-raiox-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.mep-raiox-meta-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.mep-raiox-meta-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.mep-raiox-meta-value {
    font-size: 0.95rem;
    line-height: 1.35;
    color: #e2e8f0;
    font-weight: 600;
}

.mep-raiox-meta-helper {
    color: #94a3b8;
    font-size: 0.72rem;
    line-height: 1.5;
}

.mep-raiox-hero {
    padding: 1.15rem 1.2rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(14, 165, 233, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mep-raiox-hero-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #67e8f9;
    margin-bottom: 0.45rem;
}

.mep-raiox-hero-title {
    font-size: 1.1rem;
    line-height: 1.15;
    color: #f8fafc;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.mep-raiox-hero-copy {
    margin-top: 0.42rem;
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.5;
}

.mep-raiox-user-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0.85rem;
}

.mep-raiox-user-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.54);
}

.mep-raiox-user-card.is-focus {
    background: linear-gradient(180deg, rgba(13, 27, 46, 0.96), rgba(15, 23, 42, 0.92));
    border-color: rgba(96, 165, 250, 0.2);
}

.mep-raiox-user-kicker {
    color: #7dd3fc;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mep-raiox-user-title {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.mep-raiox-user-copy {
    color: #cbd5e1;
    font-size: 0.8rem;
    line-height: 1.55;
}

.mep-raiox-user-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.mep-raiox-pill {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    padding: 0.82rem 0.9rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.14);
    min-width: 0;
}

.mep-raiox-pill.is-accent {
    background: rgba(14, 116, 144, 0.24);
    border-color: rgba(103, 232, 249, 0.2);
}

.mep-raiox-pill strong {
    color: #f8fafc;
    font-size: 0.95rem;
    line-height: 1;
}

.mep-raiox-pill span {
    color: #94a3b8;
    font-size: 0.67rem;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
}

.mep-raiox-ranking {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 0;
    flex: 1;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.mep-raiox-ranking-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #94a3b8;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.mep-raiox-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.mep-raiox-row {
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
}

.mep-raiox-row-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
}

.mep-raiox-rank {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 800;
}

.mep-raiox-row-copy {
    min-width: 0;
}

.mep-raiox-label {
    font-size: 0.96rem;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mep-raiox-row-meta {
    margin-top: 0.18rem;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
}

.mep-raiox-row-value {
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
}

.mep-raiox-track {
    width: 100%;
    height: 14px;
    background: rgba(15, 23, 42, 0.88);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.mep-raiox-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        inset -2px 0 10px rgba(0, 0, 0, 0.12),
        0 0 12px rgba(59, 130, 246, 0.12);
    position: relative;
}

.mep-raiox-fill--critical { background: linear-gradient(90deg, #ef4444, #f87171); }
.mep-raiox-fill--high { background: linear-gradient(90deg, #f97316, #fb923c); }
.mep-raiox-fill--medium { background: linear-gradient(90deg, #eab308, #facc15); }
.mep-raiox-fill--low { background: linear-gradient(90deg, #22c55e, #4ade80); }
.mep-raiox-fill--minimal { background: linear-gradient(90deg, #3b82f6, #60a5fa); }

.mep-pareto-row {
    margin: 0.15rem 0 0.3rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mep-pareto-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.8), transparent);
    position: absolute;
    top: 50%;
    left: 0;
}

.mep-pareto-label {
    background: #0f172a;
    padding: 0.28rem 0.82rem;
    font-size: 0.62rem;
    font-weight: 700;
    color: #facc15;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px dashed rgba(234, 179, 8, 0.5);
    border-radius: 12px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 10px rgba(202, 138, 4, 0.2);
}

.mep-raiox-footer {
    margin-top: auto;
    padding: 1rem 1.05rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.mep-raiox-footer-title {
    color: #f8fafc;
    font-size: 0.96rem;
    font-weight: 700;
}

.mep-raiox-footer-copy {
    margin-top: 0.28rem;
    color: #94a3b8;
    font-size: 0.74rem;
    line-height: 1.5;
}

.mep-raiox-container.mep-raiox-container--export .mep-raiox-title {
    font-size: clamp(1.7rem, 2.6vw, 2.45rem);
}

.mep-raiox-container.mep-raiox-container--export .mep-raiox-hero-title {
    font-size: 1.34rem;
}

.mep-raiox-container.mep-raiox-container--export .mep-raiox-pill strong {
    font-size: 1.08rem;
}

.mep-raiox-container.mep-raiox-container--export .mep-raiox-row-value {
    font-size: 1rem;
}

.mep-raiox-container.mep-raiox-container--export .mep-raiox-footer-copy {
    font-size: 0.8rem;
}

@media (max-width: 860px) {
    .mep-raiox-container {
        width: 100%;
        min-height: auto;
        aspect-ratio: auto;
        padding: 0;
    }

    .mep-raiox-card {
        padding: 1.2rem;
        border-radius: 22px;
    }

    .mep-raiox-study-head,
    .mep-raiox-ranking-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .mep-raiox-meta-grid,
    .mep-raiox-user-grid,
    .mep-raiox-user-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    #mep-pane-raiox {
        padding: 1rem;
    }

    .mep-raiox-meta-grid,
    .mep-raiox-user-grid,
    .mep-raiox-user-stats {
        grid-template-columns: 1fr;
    }
}

/* ── Rodapé ── */
.mep-footer-note {
    padding: 0.7rem 1.6rem;
    border-top: 1px solid #131b2b;
    font-size: 0.64rem;
    color: #334155;
    text-align: center;
    background: rgba(7, 11, 20, 0.5);
}

/* ── Responsivo ── */
@media (max-width: 680px) {
    .mep-dialog {
        width: calc(100vw - 1rem);
        max-height: 96vh;
        border-radius: 14px;
    }

    .mep-body {
        grid-template-columns: 1fr;
    }

    .mep-col-left {
        border-right: none;
        border-bottom: 1px solid #131b2b;
        padding: 1rem;
    }

    .mep-col-right {
        padding: 1rem;
    }

    .mep-header {
        padding: 1rem;
    }

    .mep-name {
        font-size: 1.05rem;
    }

    .mep-stats-row {
        padding: 0.75rem 1rem;
    }
}
