:root {
    --azul: #0d8fd1;
    --azul-escuro: #086ea1;
    --azul-medio: #59bfd8;
    --azul-claro: #eaf6fc;
    --amarelo: #f6c105;
    --fundo: #f2f4f7;
    --texto: #1f2937;
    --box: #fdf7df;
    --borda: #e5e7eb;
    --borda-azul: #d9e4ec;
    --verde-claro: #e8f8e5;
    --cabecalho-tabela: #59bfd8;
    --linha-clara: #eef9fd;
    --linha-branca: #ffffff;
    --vermelho: #ef4444;
    --cinza: #6b7280;
    --radius: 5px;
    --radius-sm: 4px;
}

/* =========================================================
   BASE GERAL
========================================================= */
* {
    box-sizing: border-box;
}

body {
    background: var(--fundo);
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--texto);
    font-size: 13px;
    margin: 0;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

label {
    font-size: 12.5px;
}

.form-control,
.form-select,
input,
select,
textarea {
    font-size: 13px;
    border-radius: var(--radius-sm) !important;
}

.container {
    max-width: 1120px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.alert {
    font-size: 13px;
    border-radius: var(--radius) !important;
}

/* =========================================================
   TOPO PÚBLICO E ÁREA DO AUTOR
========================================================= */

.top-header {
    background: #ffffff;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--borda);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand h1 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.brand span,
.brand small {
    font-size: 11.5px;
    color: #4b5563;
}

.btn-login {
    background: var(--amarelo);
    color: #111827;
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    border: none;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-login:hover {
    background: #e5b400;
    color: #111827;
}

.top-author-box {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #ffffff;
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    padding: 5px 12px 5px 5px;
}

.top-author-avatar,
.avatar,
.author-avatar,
.photo-preview,
.photo-preview img,
.info-icon,
.filter-card i {
    border-radius: 50%;
}

.top-author-avatar {
    width: 34px;
    height: 34px;
    background: var(--amarelo);
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
}

.top-author-name {
    font-size: 12.5px;
    font-weight: 800;
    color: #111827;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   MENU AZUL
========================================================= */

.nav-bar {
    min-height: 50px;
    background: var(--azul);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a,
.nav-menu button {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    text-decoration: none;
    padding: 15px 12px;
    font-size: 12.5px;
    font-weight: 600;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
}

.nav-menu a:hover,
.nav-menu a.active,
.nav-menu button:hover {
    background: rgba(255,255,255,.14);
    color: #ffffff;
}

.search-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-area input {
    width: 270px;
    height: 34px;
    border-radius: var(--radius-sm) !important;
    border: 1px solid rgba(255,255,255,.30);
    background: rgba(255,255,255,.10);
    padding: 0 14px;
    color: #ffffff;
    outline: none;
    font-size: 12px;
}

.search-area input::placeholder {
    color: #ebf6fb;
}

.search-area button {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--amarelo);
    color: #111827;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.btn-author-logout {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    background: var(--vermelho);
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 700;
    margin-left: 6px;
}

.btn-author-logout:hover {
    background: #dc2626;
}

/* =========================================================
   PÁGINA INICIAL
========================================================= */

.hero {
    background: #ffffff;
    padding: 48px 0 34px;
    border-bottom: 1px solid var(--borda);
}

.hero h2 {
    font-weight: 800;
    color: #111827;
}

.hero p {
    color: #4b5563;
}

.main-search-box {
    background: var(--azul);
    padding: 18px;
    border-radius: var(--radius);
    max-width: 1000px;
    margin: 28px auto 0;
}

.main-search-box input,
.main-search-box select {
    height: 48px;
    border-radius: var(--radius-sm) !important;
    border: none;
    font-size: 13px;
    padding-left: 14px;
}

.main-search-box input {
    font-size: 17px;
    font-style: italic;
    padding-left: 18px;
}

.main-search-box button {
    height: 48px;
    width: 70px;
    border-radius: var(--radius-sm);
    background: var(--amarelo);
    color: #111827;
    border: none;
    font-size: 22px;
}

.filter-box,
.info-card,
.stats-card {
    background: #ffffff;
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
    overflow: hidden;
}

.info-card {
    border: none;
    height: 100%;
}

.stats-card {
    border: none;
    background: var(--box);
}

.filter-card {
    width: 100%;
    background: #ffffff;
    color: #111827;
    padding: 14px 16px;
    font-weight: 700;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: .2s ease;
}

.filter-card:hover {
    color: var(--azul-escuro);
    background: #fbfdff;
}

.filter-card i,
.info-icon {
    background: var(--amarelo);
    color: #111827;
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.info-icon {
    width: 46px;
    height: 46px;
    font-size: 22px;
    margin-bottom: 14px;
}

.filter-list {
    border-top: 1px solid #edf1f5;
    background: #ffffff;
}

.filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: #374151;
    border-bottom: 1px solid #edf1f5;
    font-size: 12.5px;
}

.filter-row:hover {
    background: var(--azul-claro);
    color: var(--azul-escuro);
}

.filter-row b,
.facet-count,
.badge,
.badge-status,
.badge-area,
.badge-posicao {
    border-radius: var(--radius-sm) !important;
}

.filter-row b {
    background: #eef2f7;
    color: #111827;
    min-width: 25px;
    height: 25px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.filter-empty {
    padding: 12px 14px;
    color: #6b7280;
    font-size: 12.5px;
}

/* =========================================================
   CABEÇALHO DE PÁGINAS INTERNAS
========================================================= */

.page-header {
    background: #ffffff;
    padding: 34px 0;
    border-bottom: 1px solid var(--borda);
}

.page-header h3 {
    color: #111827;
    font-weight: 800;
    margin-bottom: 6px;
    font-size: 26px;
}

.page-header p {
    color: #6b7280;
    margin-bottom: 0;
}

.breadcrumb-line {
    color: var(--azul-escuro);
    font-size: 13px;
    margin-bottom: 8px;
}

/* =========================================================
   BUSCA / REPOSITÓRIO
========================================================= */

.search-box,
.table-card,
.facet-box,
.ranking-card,
.filter-panel,
.info-panel,
.identifier-box,
.metadata-card,
.section-box,
.empty-state,
.public-card,
.author-panel,
.profile-panel,
.author-top-card,
.author-table-card,
.author-summary-card,
.correction-top-card,
.correction-form-card {
    background: #ffffff;
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
    overflow: hidden;
}

.search-box {
    padding: 16px;
    margin-bottom: 18px;
}

.search-box label {
    font-weight: 700;
    font-size: 12px;
    color: #374151;
    margin-bottom: 5px;
}

.search-box input,
.search-box select {
    height: 38px;
    border: 1px solid #d1d5db;
}

.btn-search,
.btn-clean,
.btn-details,
.btn-voltar,
.btn-limpar,
.btn-open-file,
.btn-back,
.btn-main,
.btn-light-soft,
.btn-author-primary,
.btn-author-small,
.btn-author-view,
.btn-author-correct,
.btn-author-light,
.btn-profile-primary,
.btn-profile-light,
.btn-correction-submit,
.btn-correction-light,
.btn-primary-repo,
.btn-submit,
.btn-continuar,
.btn-secondary-repo,
.btn-cancelar {
    border-radius: var(--radius-sm) !important;
}

.btn-search,
.btn-details,
.btn-author-primary,
.btn-profile-primary,
.btn-main,
.btn-primary-repo,
.btn-submit,
.btn-continuar {
    background: var(--azul);
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-search:hover,
.btn-details:hover,
.btn-author-primary:hover,
.btn-profile-primary:hover,
.btn-main:hover,
.btn-primary-repo:hover,
.btn-submit:hover,
.btn-continuar:hover {
    background: var(--azul-escuro);
    color: #ffffff;
}

.btn-clean,
.btn-voltar,
.btn-limpar,
.btn-back,
.btn-light-soft,
.btn-author-light,
.btn-profile-light,
.btn-correction-light,
.btn-secondary-repo,
.btn-cancelar {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-clean:hover,
.btn-voltar:hover,
.btn-limpar:hover,
.btn-back:hover,
.btn-light-soft:hover,
.btn-author-light:hover,
.btn-profile-light:hover,
.btn-correction-light:hover,
.btn-secondary-repo:hover,
.btn-cancelar:hover {
    background: #e5e7eb;
    color: #111827;
}

.result-bar,
.table-title {
    background: var(--cabecalho-tabela);
    color: #ffffff;
    padding: 13px 16px;
    font-weight: 700;
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
}

.table-title {
    margin-bottom: 0;
}

.table-card {
    border-color: #b7dce9;
}

.table-card table,
.ranking-card .table,
.public-card .table,
.file-table,
.author-table,
.author-submission-table,
.author-approved-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.table-card table thead th,
.author-table th,
.author-submission-table th,
.author-approved-table th,
.public-card .table th,
.file-table th {
    background: #f8fafc;
    color: #374151;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 10px;
    border-bottom: 1px solid var(--borda);
    text-align: left;
}

.table-card table tbody td,
.author-table td,
.author-submission-table td,
.author-approved-table td,
.public-card .table td,
.file-table td {
    padding: 11px 10px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    font-size: 12.5px;
}

.item-title {
    color: #0075a8;
    font-weight: 700;
}

.item-title:hover {
    color: var(--azul-escuro);
    text-decoration: underline;
}

.facet-title {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
}

.facet-box {
    margin-bottom: 14px;
}

.facet-head {
    background: #00708b;
    color: #ffffff;
    padding: 12px 14px;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.facet-head:hover {
    background: var(--azul-escuro);
}

.facet-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.facet-list li {
    border-bottom: 1px solid #edf1f5;
}

.facet-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    color: #0f5132;
    font-size: 12.5px;
    gap: 10px;
}

.facet-list a:hover {
    background: #f8fafc;
    color: var(--azul-escuro);
}

.facet-count {
    background: #e5e7eb;
    color: #374151;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    min-width: 25px;
    text-align: center;
}

.pagination .page-link {
    color: var(--azul-escuro);
    font-size: 12.5px;
}

.pagination .active .page-link {
    background: var(--azul);
    border-color: var(--azul);
    color: #ffffff;
}

/* =========================================================
   RANKING
========================================================= */

.ranking-card {
    border: none;
}

.ranking-card-header {
    background: #ffffff;
    padding: 16px 18px;
    border-bottom: 1px solid var(--borda);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ranking-card-header h5 {
    margin: 0;
    font-weight: 800;
    color: #111827;
}

.badge-area {
    background: var(--amarelo);
    color: #111827;
    padding: 5px 11px;
    font-size: 10.5px;
    font-weight: 800;
}

.ranking-card .table thead th {
    background: var(--azul);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border: none;
    padding: 12px;
}

.ranking-card .table tbody td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid #edf1f5;
}

.ranking-card .table tbody tr:hover {
    background: #fbfdff;
}

.badge-posicao {
    background: var(--amarelo);
    color: #111827;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    display: inline-block;
    min-width: 35px;
    text-align: center;
}

.score-final {
    color: var(--azul-escuro);
    font-weight: 800;
}

.info-panel {
    background: var(--box);
    padding: 14px 16px;
    border: 1px solid #f3e9b8;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-panel {
    padding: 16px;
    margin-bottom: 18px;
}

.filter-panel label {
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    font-size: 12.5px;
}

.filter-panel select {
    height: 38px;
    font-size: 12.5px;
}

/* =========================================================
   DETALHES DO DOCUMENTO
========================================================= */

.identifier-box {
    padding: 15px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    border-color: var(--borda-azul);
}

.identifier-box code {
    color: #b91c1c;
    background: #fff5f5;
    padding: 4px 7px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
}

.metadata-card,
.section-box {
    border-color: var(--borda-azul);
    margin-bottom: 24px;
}

.metadata-row {
    display: grid;
    grid-template-columns: 210px 1fr;
    border-bottom: 1px solid #dbeaf2;
}

.metadata-row:last-child {
    border-bottom: none;
}

.metadata-row:nth-child(odd) {
    background: var(--linha-clara);
}

.metadata-row:nth-child(even) {
    background: var(--linha-branca);
}

.metadata-label,
.metadata-value {
    padding: 12px 14px;
    color: #111827;
}

.metadata-label {
    font-weight: 700;
}

.metadata-value {
    line-height: 1.6;
}

.metadata-value a {
    color: var(--azul-escuro);
    font-weight: 600;
}

.section-head {
    background: var(--azul-medio);
    color: #ffffff;
    padding: 13px 16px;
    font-weight: 800;
    font-size: 15px;
}

.btn-open-file {
    background: var(--azul);
    color: #ffffff;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 700;
}

.action-area {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.copyright-box {
    background: var(--azul-medio);
    color: #ffffff;
    padding: 14px 16px;
    margin-top: 28px;
    font-size: 12.5px;
}

.empty-file {
    padding: 18px;
    color: #6b7280;
}

/* =========================================================
   CONTRIBUIÇÃO / EMAIL / OTP / PEDIDO
========================================================= */

.page-wrap {
    max-width: 920px;
    margin: 38px auto;
    padding: 0 16px;
}

.public-card {
    max-width: 100%;
}

.public-card-head,
.contrib-card-header,
.contribuicao-card-header,
.public-auth-card-header,
.auth-card-header {
    background: #ffffff;
    border-bottom: 1px solid var(--borda);
    padding: 18px 20px;
}

.public-card-head h2,
.contrib-card-header h3,
.contribuicao-card-header h3,
.public-auth-card-header h3,
.auth-card-header h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: #111827;
}

.public-card-head p,
.contrib-card-header p,
.contribuicao-card-header p,
.public-auth-card-header p,
.auth-card-header p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.public-card-body,
.contrib-card-body,
.contribuicao-card-body,
.public-auth-card-body,
.auth-card-body {
    padding: 20px;
}

.public-card .form-label,
.contrib-form label,
.contribuicao-form label,
.public-auth-form label,
.auth-form label {
    font-size: 12.5px;
    font-weight: 700;
    color: #374151;
}

.public-card .form-control,
.public-card .form-select {
    min-height: 40px;
}

.btn-main,
.btn-light-soft {
    min-height: 40px;
    padding: 0 18px;
    font-weight: 800;
    font-size: 12.8px;
    border: none;
}

.note-box,
.small-note {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    padding: 11px 13px;
    color: #4b5563;
    font-size: 12.5px;
}

.public-card-body .d-flex.justify-content-end {
    padding-top: 4px;
}

/* =========================================================
   ÁREA DO AUTOR / PAINEL
========================================================= */

.author-shell {
    max-width: 1120px;
    margin: 28px auto;
    padding: 0 16px;
}

.author-header {
    background: #ffffff;
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    margin-bottom: 14px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar,
.author-avatar {
    width: 46px;
    height: 46px;
    background: var(--azul);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    overflow: hidden;
}

.author-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 3px;
}

.author-subtitle {
    color: #6b7280;
    font-size: 12px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.stat-card,
.author-summary-card {
    background: #ffffff;
    border: 1px solid var(--borda);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.stat-label,
.author-summary-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 700;
}

.stat-number,
.author-summary-number {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
}

.content-grid,
.profile-grid,
.author-summary-grid,
.correction-form-grid {
    display: grid;
    gap: 16px;
}

.content-grid {
    grid-template-columns: 1.5fr 0.8fr;
}

.profile-grid {
    grid-template-columns: 0.8fr 1.6fr;
}

.author-summary-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 16px;
}

.correction-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.author-panel-head,
.profile-panel-head,
.author-table-head,
.correction-form-head {
    padding: 15px 16px;
    border-bottom: 1px solid var(--borda);
    background: #f8fafc;
}

.author-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.author-panel-title,
.profile-panel-title {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.author-panel-desc,
.profile-panel-desc,
.author-table-head small,
.correction-form-head small {
    color: #6b7280;
    font-size: 12px;
    margin-top: 3px;
}

.author-panel-body,
.profile-panel-body,
.correction-form-body {
    padding: 16px;
}

.quick-actions {
    display: grid;
    gap: 10px;
}

.quick-actions a {
    border: 1px solid var(--borda);
    padding: 12px;
    border-radius: var(--radius-sm);
    color: #111827;
    font-weight: 700;
    background: #fafafa;
}

.quick-actions a:hover {
    border-color: var(--azul);
    color: var(--azul);
    background: #f0f9ff;
}

.codigo {
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.titulo {
    font-weight: 700;
    color: #111827;
}

.muted,
.author-obs-box {
    color: #6b7280;
    font-size: 11px;
    margin-top: 3px;
}

.badge,
.badge-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    min-height: 24px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-success,
.badge-aprovado {
    background: #dcfce7;
    color: #166534;
}

.badge-info,
.badge-analise {
    background: #e0f2fe;
    color: #075985;
}

.badge-warning,
.badge-reenviado,
.badge-pendente {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger,
.badge-rejeitado {
    background: #fee2e2;
    color: #991b1b;
}

.badge-devolvido {
    background: #eef2ff;
    color: #3730a3;
}

.badge-muted {
    background: #f3f4f6;
    color: #374151;
}

.author-empty,
.author-empty-box,
.empty-state {
    padding: 28px;
    text-align: center;
    color: #6b7280;
}

.author-empty-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
}

.author-empty-text {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 16px;
}

/* =========================================================
   PERFIL DO AUTOR
========================================================= */

.photo-box {
    text-align: center;
}

.photo-preview {
    width: 130px;
    height: 130px;
    background: var(--azul);
    color: #ffffff;
    margin: 0 auto 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 800;
    overflow: hidden;
    border: 4px solid #eef7fc;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-name {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}

.photo-email {
    color: #6b7280;
    font-size: 12px;
    word-break: break-word;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.profile-form-group,
.correction-form-group {
    margin-bottom: 14px;
}

.profile-form-group.full,
.correction-form-full {
    grid-column: 1 / -1;
}

.profile-form-group label,
.correction-form-group label {
    display: block;
    font-weight: 700;
    font-size: 12px;
    color: #374151;
    margin-bottom: 6px;
}

.profile-form-group input,
.profile-form-group textarea,
.correction-form-group .form-control,
.correction-form-group .form-select,
.correction-form-body .form-control,
.correction-form-body .form-select {
    width: 100%;
    border: 1px solid #d1d5db;
    padding: 9px 10px;
    font-size: 13px;
    outline: none;
    background: #ffffff;
}

.profile-form-group input,
.correction-form-group .form-control,
.correction-form-group .form-select {
    min-height: 39px;
}

.profile-form-group input:focus,
.profile-form-group textarea:focus,
.correction-form-group .form-control:focus,
.correction-form-group .form-select:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 2px rgba(13,143,209,0.12);
}

.profile-form-group input[readonly] {
    background: #f9fafb;
    color: #6b7280;
}

.profile-form-group textarea,
.correction-form-body textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.error-text {
    color: #b91c1c;
    font-size: 11px;
    margin-top: 4px;
}

.profile-actions,
.correction-actions,
.author-actions,
.author-approved-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-actions {
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid var(--borda);
    margin-top: 4px;
}

.author-actions {
    justify-content: flex-end;
}

.author-obs-box {
    max-width: 280px;
    line-height: 1.4;
}

/* =========================================================
   SUBMETER DOCUMENTO
========================================================= */

.public-card .nav-tabs {
    border-bottom: 1px solid var(--borda);
}

.public-card .nav-tabs .nav-link {
    color: #374151;
    font-size: 12.5px;
    font-weight: 800;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
    padding: 10px 14px;
}

.public-card .nav-tabs .nav-link.active {
    color: #ffffff;
    background: var(--azul);
    border-color: var(--azul);
}

.public-card .nav-tabs .nav-link:hover {
    border-color: var(--azul-claro);
    color: var(--azul-escuro);
}

.public-card textarea.form-control {
    min-height: 105px;
    resize: vertical;
}

.public-card .form-check-label {
    font-size: 12.5px;
    color: #374151;
    line-height: 1.5;
}

.public-card .btn-outline-danger {
    border-radius: var(--radius-sm) !important;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 10px;
}

.campo-ranking {
    transition: all .2s ease;
}

#btn_adicionar_anexo {
    margin-top: 4px;
}

/* =========================================================
   CORRIGIR SUBMISSÃO
========================================================= */

.correction-page-box,
.author-page-box {
    max-width: 1120px;
    margin: 0 auto;
}

.correction-top-card,
.author-top-card {
    padding: 18px 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.correction-top-card h3,
.author-top-card h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: #111827;
}

.correction-top-card p,
.author-top-card p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.correction-note {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #3730a3;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.correction-note strong {
    display: block;
    margin-bottom: 5px;
    color: #312e81;
}

.correction-file-info {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius);
    padding: 11px 13px;
    font-size: 12.5px;
    color: #475569;
    margin-bottom: 10px;
}

.correction-file-info strong {
    color: #111827;
}

.correction-anexo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.btn-correction-submit {
    min-height: 42px;
    border: none;
    background: #16a34a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    padding: 0 22px;
}

.btn-correction-submit:hover {
    background: #15803d;
    color: #ffffff;
}

/* =========================================================
   FOOTER E RESPONSIVO
========================================================= */

footer {
    background: #ffffff;
    border-top: 1px solid var(--borda);
    color: #777;
}

.footer {
    text-align: center;
    color: #777777;
    font-size: 12px;
    margin: 28px 0;
}

@media (max-width: 900px) {
    .top-header,
    .nav-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .nav-menu {
        flex-wrap: wrap;
    }

    .search-area,
    .search-area input,
    .top-author-box {
        width: 100%;
    }

    .main-search-box .d-flex,
    .public-card .d-flex.justify-content-end,
    .profile-actions,
    .correction-actions,
    .form-actions,
    .contrib-actions,
    .contribuicao-actions,
    .auth-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .main-search-box button,
    .main-search-box select,
    .btn-main,
    .btn-light-soft,
    .btn-correction-submit,
    .btn-correction-light,
    .btn-profile-primary,
    .btn-profile-light,
    .btn-primary-repo,
    .btn-submit,
    .btn-continuar,
    .btn-secondary-repo,
    .btn-cancelar {
        width: 100%;
        max-width: 100% !important;
        text-align: center;
        justify-content: center;
    }

    .ranking-card-header,
    .author-header,
    .author-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .metadata-row,
    .dashboard-grid,
    .content-grid,
    .profile-grid,
    .profile-form-grid,
    .author-summary-grid,
    .correction-form-grid,
    .correction-anexo-row {
        grid-template-columns: 1fr;
    }

    .metadata-label {
        border-bottom: 1px solid #dbeaf2;
        background: rgba(13,143,209,.08);
    }

    .public-card .nav-tabs .nav-item {
        width: 100%;
    }

    .public-card .nav-tabs .nav-link {
        width: 100%;
        text-align: left;
        border-radius: var(--radius-sm) !important;
    }

    .author-actions,
    .author-approved-actions {
        justify-content: flex-start;
    }

    .author-obs-box {
        max-width: 100%;
    }
}

/* =========================================================
   AJUSTE NOVO: BANNER DA PÁGINA INICIAL COM IMAGEM DA UL
========================================================= */
.hero {
    position: relative;
    min-height: 310px;
    display: flex;
    align-items: center;
    background-image:
        linear-gradient(90deg, rgba(5, 36, 74, .72), rgba(5, 36, 74, .38), rgba(255, 255, 255, .40)),
        url('../img/campus-murropue.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 58px 0 44px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, .34);
    letter-spacing: .2px;
}

.hero p {
    color: rgba(255, 255, 255, .95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, .30);
    font-weight: 500;
}

.hero .main-search-box {
    box-shadow: 0 18px 38px rgba(15, 23, 42, .22);
    background: rgba(13, 143, 209, .95);
    backdrop-filter: blur(2px);
}

@media (max-width: 992px) {
    .hero {
        min-height: 280px;
        padding: 48px 0 38px;
        background-position: center center;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .main-search-box form {
        flex-wrap: wrap;
    }

    .main-search-box select {
        max-width: none !important;
        width: 100%;
    }

    .main-search-box button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 250px;
        padding: 42px 0 34px;
        background-image:
            linear-gradient(180deg, rgba(5, 36, 74, .78), rgba(5, 36, 74, .45)),
            url('../img/campus-murropue.jpg');
    }

    .hero h2 {
        font-size: 1.55rem;
        line-height: 1.28;
    }

    .hero p {
        font-size: .95rem;
        line-height: 1.5;
    }

    .main-search-box {
        margin-top: 22px;
        padding: 14px;
    }

    .main-search-box input {
        font-size: 14px;
    }
}

/* =========================================================
   AJUSTE NOVO: LINK PÚBLICO DO AUTOR E CV CIENTÍFICO
========================================================= */
.repo-author-link {
    color: var(--azul-escuro);
    font-weight: 800;
    text-decoration: none;
}

.repo-author-link:hover {
    color: var(--azul);
    text-decoration: underline;
}

.public-author-hero,
.public-author-card,
.public-author-stat {
    background: #ffffff;
    border: 1px solid var(--borda-azul);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.public-author-hero {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 20px;
    align-items: start;
    padding: 22px;
    margin-bottom: 18px;
    border-radius: var(--radius);
}

.public-author-photo,
.public-author-initials {
    width: 112px;
    height: 112px;
    border-radius: 14px;
    border: 1px solid #dbeaf2;
    object-fit: cover;
}

.public-author-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef8ff;
    color: var(--azul-escuro);
    font-size: 34px;
    font-weight: 900;
}

.public-author-label {
    display: inline-flex;
    align-items: center;
    background: #fff7d6;
    color: #7a5a00;
    border: 1px solid #f5d357;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 8px;
}

.public-author-main h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 26px;
    font-weight: 900;
}

.public-author-subinfo,
.public-author-publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 13px;
    color: #4b5563;
    font-size: 12.5px;
    margin-bottom: 8px;
}

.public-author-area {
    color: #111827;
    font-size: 13px;
    margin-top: 8px;
}

.public-author-bio {
    color: #4b5563;
    margin: 12px 0 0;
    line-height: 1.65;
    max-width: 920px;
}

.public-author-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.public-author-links a {
    border: 1px solid #cfe6f2;
    background: #f8fcff;
    color: var(--azul-escuro);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.public-author-links a:hover {
    background: #eef8ff;
}

.public-author-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.public-author-stat {
    border-radius: var(--radius-sm);
    padding: 13px;
}

.public-author-stat span,
.public-author-info-list span,
.public-author-courses span,
.public-author-ranking-score span,
.public-author-ranking-grid span {
    display: block;
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 5px;
}

.public-author-stat strong {
    color: #111827;
    font-size: 24px;
    font-weight: 900;
}

.public-author-card {
    border-radius: var(--radius);
    overflow: hidden;
}

.public-author-card-head {
    background: #f8fbfe;
    border-bottom: 1px solid #dbeaf2;
    padding: 13px 15px;
}

.public-author-card-head h5 {
    margin: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.public-author-card-body {
    padding: 15px;
}

.public-author-publication {
    border-bottom: 1px solid #edf5fa;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.public-author-publication:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.public-author-publication-title {
    display: inline-block;
    color: var(--azul-escuro);
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    margin-bottom: 7px;
}

.public-author-publication-title:hover {
    color: var(--azul);
    text-decoration: underline;
}

.public-author-publication p {
    color: #4b5563;
    line-height: 1.6;
    margin: 8px 0 0;
    font-size: 13px;
}

.public-author-info-list {
    display: grid;
    gap: 10px;
}

.public-author-info-list div {
    border: 1px solid #edf1f5;
    background: #fbfdff;
    border-radius: var(--radius-sm);
    padding: 10px;
}

.public-author-info-list strong,
.public-author-courses b {
    color: #111827;
    font-size: 12.8px;
    line-height: 1.4;
}

.public-author-courses {
    margin-top: 14px;
}

.public-author-courses b {
    display: inline-flex;
    margin: 5px 5px 0 0;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef8ff;
    border: 1px solid #cfe6f2;
}

.public-author-ranking-score {
    border: 1px solid #f3e2a2;
    background: #fff9df;
    border-radius: var(--radius-sm);
    padding: 13px;
    margin-bottom: 10px;
}

.public-author-ranking-score strong {
    color: var(--azul-escuro);
    font-size: 26px;
    font-weight: 900;
}

.public-author-ranking-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.public-author-ranking-grid div {
    border: 1px solid #edf1f5;
    border-radius: var(--radius-sm);
    padding: 9px;
}

.public-author-ranking-grid strong {
    font-size: 13px;
}

.public-author-empty {
    border: 1px dashed #cfe6f2;
    background: #f8fcff;
    color: #4b5563;
    border-radius: var(--radius-sm);
    padding: 14px;
    font-weight: 700;
}

@media (max-width: 992px) {
    .public-author-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .public-author-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .public-author-photo-wrap {
        display: flex;
        justify-content: center;
    }

    .public-author-subinfo,
    .public-author-publication-meta,
    .public-author-links {
        justify-content: center;
    }

    .public-author-stats {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   AJUSTE FINAL: AUMENTO GERAL DAS LETRAS - REPOSITÓRIO PÚBLICO
   Colocado no fim para sobrescrever tamanhos anteriores.
========================================================= */

body {
    font-size: 15px !important;
}

.brand h1 {
    font-size: 17px !important;
}

.brand span,
.brand small {
    font-size: 13px !important;
}

.nav-menu a,
.nav-menu button {
    font-size: 14px !important;
}

.search-area input {
    font-size: 14px !important;
}

.search-area button {
    font-size: 16px !important;
}

.page-header h3 {
    font-size: 31px !important;
}

.page-header p,
.breadcrumb-line {
    font-size: 15px !important;
}

.search-box label,
.filter-panel label,
.public-card .form-label,
.contrib-form label,
.contribuicao-form label,
.public-auth-form label,
.auth-form label {
    font-size: 14px !important;
}

.search-box input,
.search-box select,
.form-control,
.form-select,
input,
select,
textarea {
    font-size: 15px !important;
}

.btn-login,
.btn-search,
.btn-clean,
.btn-details,
.btn-voltar,
.btn-limpar,
.btn-open-file,
.btn-back,
.btn-main,
.btn-light-soft,
.btn-author-primary,
.btn-author-small,
.btn-author-view,
.btn-author-correct,
.btn-author-light,
.btn-profile-primary,
.btn-profile-light,
.btn-correction-submit,
.btn-correction-light,
.btn-primary-repo,
.btn-submit,
.btn-continuar,
.btn-secondary-repo,
.btn-cancelar {
    font-size: 14px !important;
}

.result-bar,
.table-title {
    font-size: 15px !important;
}

.facet-title {
    font-size: 20px !important;
}

.facet-head {
    font-size: 15px !important;
}

.facet-list a,
.filter-row,
.filter-empty {
    font-size: 14px !important;
}

.facet-count,
.filter-row b {
    font-size: 12px !important;
}

.table-card table thead th,
.author-table th,
.author-submission-table th,
.author-approved-table th,
.public-card .table th,
.file-table th {
    font-size: 13px !important;
}

.table-card table tbody td,
.author-table td,
.author-submission-table td,
.author-approved-table td,
.public-card .table td,
.file-table td {
    font-size: 14px !important;
}

.item-title,
.codigo,
.titulo {
    font-size: 15px !important;
}

.badge,
.badge-status,
.badge-area,
.badge-posicao {
    font-size: 12px !important;
}

.pagination .page-link {
    font-size: 14px !important;
}

.footer,
footer {
    font-size: 13px !important;
}


/* =========================================================
   MENU MOBILE DO REPOSITÓRIO
   No telemóvel, o menu horizontal fica oculto e abre pelo botão.
========================================================= */
.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid #dbe2ea;
    background: #ffffff;
    color: var(--azul-escuro);
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    margin-left: 10px;
    transition: .2s;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle.repo-mobile-active {
    background: var(--azul-claro);
    border-color: #b8dff2;
}

@media (max-width: 900px) {
    .top-header {
        min-height: auto !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        padding: 12px 14px !important;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand img {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .brand h1 {
        font-size: 14px !important;
        line-height: 1.2;
    }

    .brand span,
    .brand small {
        font-size: 11px !important;
        line-height: 1.2;
    }

    .top-header > .btn-login,
    .top-author-box {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        flex: 0 0 42px;
        margin-left: auto;
    }

    .nav-bar {
        display: none;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 10px 14px !important;
    }

    .nav-bar.repo-mobile-open {
        display: flex;
    }

    .nav-menu {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap !important;
        gap: 3px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a,
    .nav-menu button {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 13px;
        border-radius: var(--radius-sm);
    }

    .btn-author-logout {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        padding: 12px 13px;
    }

    .search-area {
        width: 100%;
    }

    .search-area input {
        width: 100%;
    }

    .search-area button {
        flex: 0 0 42px;
    }
}

@media (min-width: 901px) {
    .nav-bar {
        display: flex !important;
    }
}

.nav-mobile-admin {
    display: none;
}

@media (max-width: 900px) {
    .nav-mobile-admin {
        display: block;
    }
}

/* =========================================================
   ULVOTA - ÁREA PÚBLICA
========================================================= */
.public-shell { max-width:1120px; margin:0 auto; padding:28px 18px 45px; }
.public-footer { background:#fff; border-top:1px solid var(--borda); color:#6b7280; text-align:center; padding:18px; font-size:12px; }
.public-alert { padding:12px 14px; margin-bottom:15px; border-radius:5px; font-weight:600; }
.public-alert.error { background:#fff1f2; border:1px solid #fecdd3; color:#9f1239; }
.public-alert.success { background:#e8f8ef; border:1px solid #b9e5c8; color:#166534; }
.vote-hero { display:grid; grid-template-columns:1.2fr .8fr; gap:26px; align-items:center; min-height:410px; }
.vote-hero-copy { padding:20px; }
.hero-kicker { display:inline-block; background:var(--amarelo); color:#111827; padding:6px 11px; border-radius:4px; font-weight:800; font-size:11px; text-transform:uppercase; }
.vote-hero h2 { margin:15px 0 10px; font-size:38px; line-height:1.15; color:#0f172a; }
.vote-hero-copy p { color:#4b5563; font-size:16px; line-height:1.7; max-width:610px; }
.access-card,.public-card,.success-card,.ballot-role,.public-result-card { background:#fff; border:1px solid var(--borda); border-radius:8px; box-shadow:0 8px 24px rgba(15,23,42,.07); overflow:hidden; }
.access-card-head,.public-card-head { padding:20px 22px; border-bottom:1px solid var(--borda); }
.access-card-head h3,.public-card-head h2 { margin:0; color:#111827; }
.access-card-head p,.public-card-head p { margin:6px 0 0; color:#6b7280; }
.access-card form { padding:22px; }
.access-card label { display:block; margin-bottom:7px; font-weight:800; color:#374151; }
.access-card input { width:100%; height:52px; border:2px solid #d8e0e8; border-radius:5px!important; padding:0 14px; font-size:17px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; outline:none; margin-bottom:12px; }
.access-card input:focus { border-color:var(--azul); box-shadow:0 0 0 4px rgba(13,143,209,.10); }
.public-primary,.public-secondary { display:inline-flex; align-items:center; justify-content:center; border:none; border-radius:5px; min-height:42px; padding:0 18px; font-weight:800; cursor:pointer; text-decoration:none; }
.public-primary { background:var(--azul); color:#fff; }
.public-primary:hover { background:var(--azul-escuro); color:#fff; }
.public-secondary { background:#f3f4f6; border:1px solid #d1d5db; color:#374151; }
.public-primary.large { min-height:50px; font-size:14px; }
.access-card .public-primary { width:100%; min-height:48px; }
.privacy-note { margin:0 22px 20px; padding:11px; background:#f8fafc; color:#6b7280; border-radius:5px; font-size:12px; }
.public-section { padding:28px 0; }
.section-title h3 { font-size:22px; margin:0 0 16px; }
.steps-grid,.open-sessions-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.steps-grid>div,.open-session,.empty-public { background:#fff; border:1px solid var(--borda); padding:18px; border-radius:7px; }
.steps-grid b { display:flex; width:32px; height:32px; align-items:center; justify-content:center; background:var(--amarelo); border-radius:50%; }
.steps-grid h4,.open-session h4 { margin:12px 0 6px; }
.steps-grid p,.open-session p,.open-session small { color:#6b7280; line-height:1.5; }
.open-session>span { background:#e8f8ef; color:#166534; padding:4px 8px; font-size:10px; font-weight:800; border-radius:12px; }
.narrow-card { max-width:760px; margin:20px auto; }
.public-card-body { padding:22px; }
.identity-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.identity-grid>div { background:#f8fafc; border:1px solid #edf1f5; border-radius:5px; padding:13px; }
.identity-grid .full { grid-column:span 2; }
.identity-grid span,.receipt-meta span { display:block; color:#6b7280; font-size:11px; margin-bottom:5px; }
.identity-grid strong,.receipt-meta strong { color:#111827; }
.confirm-warning { margin-top:16px; padding:12px; background:#fff8dc; border:1px solid #f2df8c; color:#6b5200; }
.public-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; flex-wrap:wrap; }
.public-actions.center { justify-content:center; }
.ballot-header { background:linear-gradient(135deg,#0877aa,#0d8fd1); color:#fff; padding:28px; border-radius:8px; margin-bottom:18px; }
.ballot-header span { color:#dff4ff; font-size:12px; font-weight:700; }
.ballot-header h2 { margin:7px 0; font-size:26px; }
.ballot-header p { margin:0; color:#e7f7ff; }
.ballot-role { margin-bottom:18px; box-shadow:0 2px 12px rgba(15,23,42,.05); }
.ballot-role-head { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:17px 19px; background:#f8fafc; border-bottom:1px solid var(--borda); }
.ballot-role-head h3 { margin:0 0 4px; font-size:18px; }
.ballot-role-head p { margin:0; color:#6b7280; }
.ballot-role-head>span { background:var(--amarelo); padding:6px 10px; border-radius:14px; font-size:11px; font-weight:800; white-space:nowrap; }
.candidate-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; padding:18px; }
.candidate-card { display:flex; align-items:center; gap:12px; border:2px solid #e5e7eb; border-radius:7px; padding:12px; cursor:pointer; transition:.18s; position:relative; }
.candidate-card:hover { border-color:#9ed8ef; background:#fbfdff; }
.candidate-card:has(input:checked) { border-color:var(--azul); background:#eaf6fc; }
.candidate-input { width:18px; height:18px; flex:0 0 auto; }
.candidate-photo { width:58px; height:58px; border-radius:50%; background:#eaf6fc; display:flex; align-items:center; justify-content:center; overflow:hidden; flex:0 0 auto; color:var(--azul-escuro); font-size:20px; font-weight:900; }
.candidate-photo.small { width:42px; height:42px; font-size:15px; }
.candidate-photo img { width:100%; height:100%; object-fit:cover; }
.candidate-info b,.candidate-info small,.candidate-info p { display:block; }
.candidate-info b { color:#111827; margin-bottom:4px; }
.candidate-info small,.candidate-info p { color:#6b7280; font-size:11.5px; line-height:1.4; margin:0; }
.special-options { display:flex; gap:18px; align-items:center; padding:13px 18px; background:#fbfdff; border-top:1px solid #edf1f5; flex-wrap:wrap; }
.special-options label { display:flex; align-items:center; gap:6px; font-weight:700; }
.clear-role { margin-left:auto; border:none; background:transparent; color:var(--azul-escuro); cursor:pointer; font-weight:700; }
.submit-vote-box { background:#fff; border:1px solid var(--borda); border-radius:8px; padding:18px; display:flex; align-items:center; justify-content:space-between; gap:15px; }
.submit-vote-box p { margin:5px 0 0; color:#6b7280; }
.success-card { max-width:720px; margin:25px auto; padding:30px; text-align:center; }
.success-icon { width:70px; height:70px; border-radius:50%; background:#e8f8ef; color:#15803d; display:flex; align-items:center; justify-content:center; font-size:36px; margin:0 auto 15px; }
.success-card h2 { margin:0 0 8px; }
.success-card>p { color:#6b7280; }
.receipt-box { margin:22px auto; max-width:460px; background:#f8fafc; border:2px dashed #a8cadd; padding:17px; }
.receipt-box span,.receipt-box small { display:block; color:#6b7280; }
.receipt-box strong { display:block; font-size:22px; letter-spacing:.08em; margin:7px 0; color:#064f76; }
.receipt-meta { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; text-align:left; }
.receipt-meta>div { background:#f8fafc; padding:12px; border-radius:5px; }
.public-result-card { margin-bottom:16px; }
.public-result-list>div { display:flex; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid #edf1f5; }
.public-result-list .grow { flex:1; }
.public-result-list strong,.public-result-list small { display:block; }
.public-result-list small { color:#6b7280; margin-top:3px; }
.public-badge { padding:5px 10px; border-radius:14px; font-size:11px; font-weight:800; }
.public-badge.success { background:#e8f8ef; color:#166534; }
.public-badge.warning { background:#fff8dc; color:#7c5d00; }

@media(max-width:850px){.vote-hero{grid-template-columns:1fr;min-height:auto}.steps-grid,.open-sessions-grid{grid-template-columns:repeat(2,1fr)}.candidate-grid{grid-template-columns:1fr}}
@media(max-width:600px){.top-header{padding:12px 14px}.brand span{display:none}.nav-bar{overflow-x:auto;padding:0 8px}.nav-menu{min-width:max-content}.public-shell{padding:18px 12px}.vote-hero-copy{padding:5px}.vote-hero h2{font-size:28px}.steps-grid,.open-sessions-grid,.identity-grid,.receipt-meta{grid-template-columns:1fr}.identity-grid .full{grid-column:auto}.ballot-role-head,.submit-vote-box{align-items:flex-start;flex-direction:column}.submit-vote-box .public-primary{width:100%}.public-actions>*{width:100%}.public-actions form,.public-actions form button{width:100%}}
@media print{.top-header,.nav-bar,.public-footer,.public-actions{display:none}.public-shell{padding:0}.success-card{box-shadow:none;border:none}}

/* =========================================================
   ULVOTA - PORTÃO PRINCIPAL EM LARGURA TOTAL
========================================================= */

.vote-hero {
    position: relative;
    isolation: isolate;

    width: 100vw;
    max-width: none;
    min-height: 500px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 26px;

    padding-top: 54px;
    padding-bottom: 54px;
    padding-left: max(24px, calc((100vw - 1120px) / 2));
    padding-right: max(24px, calc((100vw - 1120px) / 2));

    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .10);

    background-image:
        linear-gradient(
            90deg,
            rgba(242, 244, 247, .78) 0%,
            rgba(242, 244, 247, .58) 42%,
            rgba(242, 244, 247, .24) 72%,
            rgba(242, 244, 247, .10) 100%
        ),
        url('../img/campus-bg.png');

    background-size: cover;
    background-position: center 60%;
    background-repeat: no-repeat;
}

.vote-hero-copy,
.vote-hero .access-card {
    position: relative;
    z-index: 1;
}

.vote-hero-copy {
    max-width: 620px;
    padding: 24px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .28);
    backdrop-filter: blur(1px);
}

.vote-hero h2 {
    color: #0f172a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .80);
}

.vote-hero-copy p {
    color: #334155;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .76);
}

.vote-hero .access-card {
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

@media (max-width: 850px) {
    .vote-hero {
        width: 100vw;
        min-height: auto;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 34px 22px;

        background-position: center 56%;
        background-image:
            linear-gradient(
                180deg,
                rgba(242, 244, 247, .74) 0%,
                rgba(242, 244, 247, .50) 50%,
                rgba(242, 244, 247, .72) 100%
            ),
            url('../img/campus-bg.png');
    }

    .vote-hero-copy {
        max-width: 100%;
        padding: 18px;
    }
}

@media (max-width: 600px) {
    .vote-hero {
        min-height: auto;
        margin-bottom: 20px;
        padding: 24px 14px;
        border-radius: 0;
        background-position: center 52%;
    }

    .vote-hero-copy {
        padding: 15px;
        background: rgba(255, 255, 255, .58);
    }

    .vote-hero h2 {
        font-size: 28px;
        line-height: 1.18;
    }
}