@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

:root {
    --bg: #f6f7f8;
    --accent: #0b3d2e;
    --accent-soft: #0f5a44;
    --ink: #1a1a1a;
    --muted: #6b6b6b;
    --card: #ffffff;
    --border: #e5e0d8;
    --warning: #c0392b;
    --success: #1f7a3e;
}

.public-body {
    --bg: #0b1420;
    --accent: #2d7dff;
    --accent-soft: #5aa5ff;
    --ink: #e8f1fb;
    --muted: #9fb0c2;
    --card: #101f2e;
    --border: #203245;
    --success: #31c970;
}

.public-body.theme-light {
    --bg: #f6f7f8;
    --accent: #0b3d2e;
    --accent-soft: #0f5a44;
    --ink: #1a1a1a;
    --muted: #6b6b6b;
    --card: #ffffff;
    --border: #e5e0d8;
    --success: #1f7a3e;
    background: linear-gradient(180deg, #f9fbfb 0%, #ffffff 70%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f9fbfb 0%, var(--bg) 60%);
    line-height: 1.6;
    overflow-x: hidden;
}

.public-body {
    background: radial-gradient(circle at top, rgba(45, 125, 255, 0.25), transparent 55%),
        radial-gradient(circle at 20% 20%, rgba(49, 201, 112, 0.15), transparent 45%),
        linear-gradient(180deg, #0b1420 0%, #0f1a26 100%);
}

.public-body.theme-light .site-header {
    background: #3468d2e3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px); 
}

.public-body.theme-light .site-header nav a {
    color: #fff;
    opacity: 0.9;
}

.public-body.theme-light .site-header nav a:hover {
    color: #fff;
    opacity: 1;
}

.public-body.theme-light a {
    color: var(--accent);
}

.public-body.theme-light .logo span {
    color: #fff;
}

.public-body.theme-light .logo img {
    
}

h1, h2, h3 {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-soft);
}

.public-body a {
    color: var(--accent-soft);
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 66px;
}

.site-header nav a {
    margin-left: 16px;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink);
    align-items: center;
    justify-content: center;
}

.menu-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.theme-toggle {
    margin-left: 16px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.08);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.theme-toggle .icon-moon {
    display: none;
}

.public-body.theme-light .theme-toggle {
    background: #f1f4f6;
}

.public-body.theme-light .theme-toggle .icon-sun {
    display: none;
}

.public-body.theme-light .theme-toggle .icon-moon {
    display: block;
}

.public-body .site-header {
    background: rgba(10, 18, 27, 0.88);
    border-bottom: 1px solid rgba(32, 50, 69, 0.8);
    backdrop-filter: blur(10px);
}

.public-body .site-header nav a {
    color: var(--ink);
    opacity: 0.85;
}

.public-body .site-header nav a:hover {
    color: #fff;
    opacity: 1;
}

.hero {
    padding: 60px 0 30px;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.modern-hero {
    background: linear-gradient(120deg, #ffffff 0%, #f0f5f2 100%);
    border-bottom: 1px solid var(--border);
}

.public-body .hero {
    padding: 90px 0 40px;
    text-align: center;
    position: relative;
    z-index: 5;
}

.public-body .modern-hero {
    background: linear-gradient(135deg, rgba(13, 24, 36, 0.9), rgba(15, 25, 38, 0.95));
    position: relative;
    overflow: hidden;
}

.public-body .modern-hero::before,
.public-body .modern-hero::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 125, 255, 0.25), transparent 65%);
    top: -180px;
    right: -140px;
    filter: blur(2px);
}

.public-body .modern-hero::after {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(49, 201, 112, 0.2), transparent 70%);
    top: 140px;
    left: -220px;
}

.hero-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-soft);
    margin-bottom: 12px;
}

.public-body .eyebrow {
    color: rgba(90, 165, 255, 0.85);
}

.hero-stack h1 {
    font-size: clamp(32px, 3.6vw, 48px);
    max-width: 80%;
}

.hero-stack .lead {
    max-width: 640px;
    color: var(--muted);
    font-size: 18px;
}

.panel-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.public-body .panel-card {
    background: linear-gradient(160deg, rgba(16, 31, 46, 0.95), rgba(12, 22, 33, 0.95));
    border: 1px solid rgba(32, 50, 69, 0.8);
    color: var(--ink);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.public-body.theme-light .modern-hero {
    background: linear-gradient(135deg, #ffffff, #f1f6f4);
}

.public-body.theme-light .modern-hero::before,
.public-body.theme-light .modern-hero::after {
    background: radial-gradient(circle, rgba(15, 90, 68, 0.12), transparent 65%);
}

.public-body.theme-light .panel-card {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--ink);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.public-body .panel-card .btn {
    margin-top: 10px;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    width: min(820px, 100%);
    margin-top: 12px;
}

.search-box {
    margin-top: 18px;
    position: relative;
    z-index: 20;
}

.search-box.search-center {
    width: min(680px, 100%);
    margin: 10px auto 0;
}

.search-box input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 16px;
}

.public-body .search-box input {
    background: rgba(12, 22, 33, 0.9);
    color: var(--ink);
    border: 2px solid rgba(90, 165, 255, 0.7);
    padding: 18px 20px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
    font-size: 19px;
    font-weight: 600;
}

.public-body .search-box input::placeholder {
    color: rgba(159, 176, 194, 0.75);
}

.suggestions {
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-top: none;
    display: none;
    max-height: 240px;
    overflow: auto;
    z-index: 60;
}

.public-body .suggestions {
    background: #0f1c2a;
    border: 1px solid rgba(62, 90, 118, 0.7);
}

.public-body .suggestions a {
    color: var(--ink);
}

.suggestions a {
    display: block;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
}

.suggestion-empty {
    padding: 12px 14px;
    color: var(--muted);
}

.filters {
    padding: 20px 0;
    background: #fff;
    border-top: none;
    border-bottom: none;
    margin-top: 40px;
}

.public-body .filters {
    background: rgba(13, 22, 33, 0.9);
    border-top: none;
    border-bottom: none;
    backdrop-filter: blur(6px);
    margin-top: 40px;
}

.filters form {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(170px, 1fr) minmax(230px, 1.35fr) minmax(150px, 1fr) minmax(120px, 0.9fr) minmax(160px, 1fr) auto;
}

.filters input, .filters select, .filters button {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.filters .filter-area-conhecimento {
    grid-column: auto;
}

.filters .filter-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 130px;
}

.filters .filter-submit svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.public-body .filters input,
.public-body .filters select,
.public-body .filters button {
    background: rgba(11, 20, 32, 0.95);
    color: var(--ink);
    border: 1px solid rgba(62, 90, 118, 0.6);
}

.public-body .filters button {
    background: linear-gradient(135deg, rgba(45, 125, 255, 0.9), rgba(49, 201, 112, 0.85));
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.public-body.theme-light .search-box input {
    background: #ffffff;
    color: var(--ink);
    border: 1px solid #dbe3dc;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.public-body.theme-light .search-box input::placeholder {
    color: rgba(26, 26, 26, 0.45);
}

.public-body.theme-light .suggestions {
    background: #ffffff;
    border: 1px solid var(--border);
}

@media (max-width: 900px) {
    .filters form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filters .filter-area-conhecimento {
        grid-column: span 1;
    }

    .filters .filter-submit {
        grid-column: span 2;
    }
}

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

    .filters .filter-submit {
        grid-column: span 1;
    }
}

.public-body.theme-light .suggestions a {
    color: var(--ink);
}

.public-body.theme-light .filters {
    background: #ffffff;
    
    border-bottom: 0px solid var(--border);
    backdrop-filter: none;
}

.public-body.theme-light .filters input,
.public-body.theme-light .filters select {
    background: #ffffff;
    color: var(--ink);
    border: 1px solid #dbe3dc;
    box-shadow: 0 8px 14px rgba(15, 23, 42, 0.06);
}

.public-body.theme-light .filters button {
    background: linear-gradient(135deg, rgba(52, 104, 210, 0.95), rgba(68, 124, 230, 0.9));
    color: #fff;
    box-shadow: 0 10px 16px rgba(15, 23, 42, 0.12);
}

.public-body.theme-light .load-more .btn {
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.12);
}

.cards .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 30px 0 60px;
    justify-content: center;
}

.public-body .cards .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.featured-wrap {
    padding-top: 24px;
}

.featured-card {
    position: relative;
    padding: 60px 50px 30px 40px !important;
    border-radius: 16px;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(49, 201, 112, 0.28);
    background: linear-gradient(135deg, rgba(45, 125, 255, 0.08), rgba(49, 201, 112, 0.08));
}

.featured-card h3 {
    font-size: 24px;
}

.featured-card .description {
    font-size: 17px;
}

.featured-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(49, 201, 112, 0.18);
    color: #0f2f25;
    border: 1px solid rgba(49, 201, 112, 0.4);
}

.public-body .featured-card {
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(62, 90, 118, 0.65);
    background: linear-gradient(135deg, rgba(19, 32, 48, 0.9), rgba(16, 55, 63, 0.92));
}

.public-body.theme-light .featured-card {
    border: 1px solid #dbe3dc;
    box-shadow: 0 16px 26px rgba(15, 23, 42, 0.08);
    background: #fff;
}

.public-body .featured-badge {
    background: rgba(67, 214, 134, 0.2);
    color: #dff8ea;
    border-color: rgba(67, 214, 134, 0.4);
}

.public-body.theme-light .featured-badge {
    background: rgba(49, 201, 112, 0.16);
    color: #0f2f25;
    border-color: rgba(49, 201, 112, 0.35);
}

.load-more {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.load-more .btn {
    padding: 14px 26px;
    font-size: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.public-body .load-more .btn {
    background: #2d7dff;
    border: 1px solid rgba(49, 201, 112, 0.6);
}

.load-more .btn:hover {
    transform: translateY(-2px);
}

.public-body.theme-light .card {
    border: 1px solid #e6ebe7;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.public-body.theme-light .card .btn {
    background: #f1f5f2;
    border: 1px solid #dbe3dc;
    color: #0b3d2e;
    box-shadow: none;
}

.public-body.theme-light .load-more .btn {
    background: #f3f7f5;
    border: 1px solid #dbe3dc;
    color: #0b3d2e;
    box-shadow: none;
}

.public-body .load-more .btn:hover {
    background: #3b8cff;
    color: #fff;
}

.public-body.theme-light .load-more .btn:hover {
    background: #3468d2;
    color: #fff;
}

.load-more-end {
    font-size: 14px;
    color: var(--muted);
}

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

@media (max-width: 640px) {
    .public-body .cards .grid {
        grid-template-columns: 1fr;
    }
}

.public-body .cards .grid {
    padding-top: 40px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.public-body .card {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(32, 50, 69, 0.6);
}

.card .tag {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--accent-soft);
    font-weight: 700;
}

.card .description {
    color: var(--muted);
}

.card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.card-title h3 {
    flex: 1;
}

.card-title .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

.public-body .card .tag {
    color: var(--success);
}

.card .btn {
    align-self: flex-start;
    box-shadow: none;
}

.btn {
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    display: inline-block;
}

.public-body .btn {
    background: linear-gradient(135deg, rgba(45, 125, 255, 0.95), rgba(49, 201, 112, 0.9));
    border: none;
    color: #fff;
    box-shadow: none;
}

.public-body .cards .card .btn:hover {
    background: #2d7dff;
}

.public-body.theme-light .cards .card .btn:hover {
    color: #fff;
}

.btn.secondary {
    background: #ffffff;
    color: var(--ink);
    border: 1px solid var(--border);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn.secondary:hover {
    background: #edf2f7;
    border-color: #d1dbe6;
}

.public-body .btn.secondary {
    background: #ffffff;
    color: #0f1d2b;
    border: 1px solid #d1dbe6;
}

.public-body .btn.secondary:hover {
    background: #edf2f7;
    color: #0f1d2b;
    border-color: #c3d0de;
}

.fade-in {
    animation: fade-up 0.6s ease both;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.public-body .hero-stack > * {
    animation: hero-rise 0.8s ease-out both;
}

.public-body .hero-stack > *:nth-child(2) {
    animation-delay: 0.05s;
}

.public-body .hero-stack > *:nth-child(3) {
    animation-delay: 0.12s;
}

.public-body .hero-stack > *:nth-child(4) {
    animation-delay: 0.18s;
}

.public-body .hero-stack > *:nth-child(5) {
    animation-delay: 0.25s;
}

.quick-terms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.term-chip {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(45, 125, 255, 0.15);
    border: 1px solid rgba(90, 165, 255, 0.4);
    color: var(--ink);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.term-chip:hover {
    background: rgba(49, 201, 112, 0.2);
}

.detail {
    padding: 40px 0;
}

.detail h1 {
    font-size: 2.5em;
}

.publication-labels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 32px;
    margin: 14px 0 20px;
}

.publication-label {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 12px;
}

.label-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
}

.label-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.label-value {
    font-weight: 600;
    color: var(--ink);
}

@media (max-width: 900px) {
    .publication-labels {
        grid-template-columns: 1fr;
    }
}

.detail .abstract {
    margin: 3em 0;
    background: #7675750d;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 20px 40px #0000001f;
}

.detail .tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    margin-top: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail .actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 16px 0;
    flex-wrap: wrap;
}

.meta-authors {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(15, 23, 42, 0.2);
}

.author-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.publication-pdfs {
    margin: 3em 0 20px;
}

.publication-pdf-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.publication-pdf-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 20, 31, 0.7);
    box-shadow: 0 10px 28px rgba(2, 8, 18, 0.4);
    flex-wrap: wrap;
}

.publication-pdf-title {
    font-weight: 600;
    color: #e7eef8;
}

.public-body .publication-pdf-item .btn {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.public-body .publication-pdf-item .btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(16, 63, 133, 0.25);
}

.public-body.theme-light .publication-pdf-item {
    border-color: var(--border);
    background: #fff;
    box-shadow: none;
}

.public-body.theme-light .publication-pdf-title {
    color: var(--ink);
}

.detail .share {
    margin-bottom: 16px;
}

.detail .share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.detail .share.share-top {
    margin: 18px 0 6px;
}

.detail .share a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(32, 50, 69, 0.2);
}

.detail .share svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.detail .share a:hover {
    border-color: rgba(45, 125, 255, 0.6);
    color: var(--accent);
}

.related {
    margin-top: 40px;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 10px;
}

.related-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.related-list svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.detail .rich-text {
    line-height: 1.7;
    font-size: 1.2em;
}

.detail .rich-text ul,
.detail .rich-text ol {
    padding-left: 38px;
    margin: 14px 0 14px 8px;
}

.detail .rich-text li + li {
    margin-top: 6px;
}

.detail .rich-text a {
    color: #1e63d6;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.detail .rich-text img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px 0;
    border-radius: 8px;
}

.help-intro {
    color: var(--muted);
    margin-top: 6px;
}

.help-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.help-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 10px;
}

.help-item h2 {
    font-size: 22px;
    margin: 0;
}

.help-item p {
    color: var(--muted);
}

.help-item .btn {
    width: fit-content;
}

.help-detail-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.help-meta {
    margin-top: 6px;
    color: var(--muted);
}

.public-body .help-item {
    background: rgba(11, 20, 31, 0.78);
    border-color: rgba(62, 90, 118, 0.6);
    box-shadow: 0 18px 34px rgba(2, 8, 18, 0.35);
}

.public-body.theme-light .help-item {
    background: #fff;
    border-color: var(--border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.author-link {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.author-link:hover {
    color: var(--accent);
}

.author-info {
    font-size: 14px;
    color: var(--muted);
    margin-top: 6px;
}

.gallery .grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.gallery {
    margin: 3em 0;
}

.gallery .image-thumb-btn {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery .image-thumb-btn:hover img {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(2, 8, 18, 0.2);
}

@media (max-width: 980px) {
    .gallery .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.video-embed {
    position: relative;
    padding-top: 56.25%;
}

.video-title {
    margin: 0 0 1rem;
    font-weight: 600;
    color: var(--text);
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.auth {
    padding: 40px 0 60px;
}

.auth .container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-center {
    max-width: 420px;
}

.auth form {
    background: #fff;
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

.register-stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.register-step-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    background: #e6edf6;
    color: #0f1d2b;
    border: 1px solid #d1dbe6;
}

.register-step-chip.is-active {
    background: linear-gradient(135deg, #2d7dff, #3468d2);
    color: #fff;
    border-color: transparent;
}

.register-step-chip.is-complete {
    background: #d6f3e3;
    border-color: #9fdbc0;
    color: #1f7a3e;
}

.register-step-note {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.register-step-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.register-step-actions .btn {
    width: auto;
    margin-top: 0;
    flex: 1;
}

.auth-thanks-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: grid;
    gap: 10px;
}

.auth-thanks-card .btn {
    width: fit-content;
    margin-top: 6px;
}

[data-register-form] [hidden] {
    display: none !important;
}

.auth label {
    display: block;
    margin-bottom: 12px;
}

.auth .checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.auth input,
.auth textarea,
.auth select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-top: 6px;
    background: #f1f4f8;
    color: var(--ink);
}

.auth form input,
.auth form textarea,
.auth form select {
    background: #f1f4f8;
}

.auth button {
    width: 100%;
    margin-top: 6px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
}

.form-note {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.field-feedback {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    min-height: 18px;
}

.field-feedback.is-loading {
    color: var(--muted);
}

.field-feedback.is-error {
    color: #c0392b;
}

.field-feedback.is-success {
    color: #1f7a3e;
}

.register-consent {
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
    margin-top: 8px;
}

.register-consent input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
    flex: 0 0 auto;
}

.register-consent a {
    font-weight: 700;
    text-decoration: underline;
}

.required {
    color: #e74c3c;
    margin-left: 4px;
    font-weight: 700;
}

.public-body .auth button {
    background: linear-gradient(135deg, rgba(45, 125, 255, 0.95), rgba(49, 201, 112, 0.9));
    color: #fff;
    border: none;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.35);
}

.public-body .auth button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.4);
}

.admin-body .auth button {
    background: #2d7dff;
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px rgba(45, 125, 255, 0.2);
}

.admin-body .auth button:hover {
    background: #256fe6;
    box-shadow: 0 12px 22px rgba(45, 125, 255, 0.25);
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.public-body .auth form {
    background: rgba(15, 26, 38, 0.95);
    border-color: rgba(62, 90, 118, 0.6);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4);
}

.public-body.theme-light .auth form {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

.public-body .register-step-chip {
    background: rgba(15, 30, 46, 0.65);
    color: var(--ink);
    border-color: rgba(62, 90, 118, 0.55);
}

.public-body.theme-light .register-step-chip {
    background: #eef3ff;
    color: #2c4f8c;
    border-color: #cdd9f3;
}

.public-body .register-step-chip.is-active {
    background: linear-gradient(135deg, #2d7dff, #3468d2);
    color: #fff;
    border-color: transparent;
}

.public-body .register-step-chip.is-complete {
    background: rgba(31, 122, 62, 0.2);
    border-color: rgba(31, 122, 62, 0.45);
    color: #8ddab3;
}

.public-body.theme-light .register-step-chip.is-complete {
    background: #e7f7ee;
    border-color: #b9e3c8;
    color: #1f7a3e;
}

.public-body [data-register-form] .btn.secondary {
    background: #ffffff;
    color: #0f1d2b;
    border: 1px solid #d1dbe6;
    box-shadow: none;
}

.public-body.theme-light [data-register-form] .btn.secondary {
    background: #ffffff;
    color: #0f1d2b;
    border: 1px solid #d1dbe6;
}

.avatar-format-note {
    display: block;
    margin-top: 6px;
}

.public-body .auth-thanks-card {
    background: rgba(15, 26, 38, 0.95);
    border-color: rgba(62, 90, 118, 0.6);
}

.public-body.theme-light .auth-thanks-card {
    background: #ffffff;
    border-color: var(--border);
}

.public-body .auth input,
.public-body .auth textarea,
.public-body .auth select {
    background: rgba(11, 20, 32, 0.9);
    color: var(--ink);
    border: 1px solid rgba(62, 90, 118, 0.7);
}

.public-body.theme-light .auth input,
.public-body.theme-light .auth textarea,
.public-body.theme-light .auth select {
    background: #f1f4f8;
    color: var(--ink);
    border: 1px solid var(--border);
}

.public-body.theme-light .auth input::placeholder {
    color: var(--muted);
}

.public-body .auth input:-webkit-autofill,
.public-body .auth textarea:-webkit-autofill,
.public-body .auth select:-webkit-autofill {
    -webkit-text-fill-color: var(--ink);
    box-shadow: 0 0 0px 1000px rgba(11, 20, 32, 0.9) inset;
}

.public-body.theme-light .auth input:-webkit-autofill,
.public-body.theme-light .auth textarea:-webkit-autofill,
.public-body.theme-light .auth select:-webkit-autofill {
    -webkit-text-fill-color: var(--ink);
    box-shadow: 0 0 0px 1000px #f1f4f8 inset;
}

.admin-body .auth input,
.admin-body .auth textarea,
.admin-body .auth select {
    background: #f1f4f8;
    color: var(--ink);
}

.public-body .auth input::placeholder {
    color: rgba(159, 176, 194, 0.75);
}

.captcha {
    margin: 12px 0;
}

.consent-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.alert {
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 6px;
}

.alert.error {
    background: #fbeaea;
    color: var(--warning);
}

.alert.success {
    background: #e8f6ed;
    color: var(--success);
}

.strength {
    display: inline-block;
    margin-top: 6px;
    font-weight: 600;
}

.site-footer {
    padding: 40px 0 24px;
    background: #fff;
    border-top: 1px solid var(--border);
}

.public-body .site-footer {
    background: rgba(11, 20, 32, 0.92);
    border-top: 1px solid rgba(32, 50, 69, 0.7);
}

.public-body.theme-light .site-footer {
    background: #e9effc;
    border-top: 1px solid #d1dcf3;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--muted);
    margin-top: 8px;
}

.footer-logo {
    font-weight: 900;
    font-size: 18px;
}

.footer-brand-logo {
    display: block;
    margin-top: 10px;
    max-width: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-links h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.footer-links a,
.footer-note {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.public-body .footer-bottom {
    border-top-color: rgba(32, 50, 69, 0.7);
}

.public-body.theme-light .footer-bottom {
    border-top-color: #d1dcf3;
}

.public-body.theme-light .footer-links a,
.public-body.theme-light .footer-note,
.public-body.theme-light .footer-brand p,
.public-body.theme-light .footer-bottom {
    color: #23334d;
}

.public-body.theme-light .footer-links a:hover {
    color: #3468d2;
}

.admin-body {
    background: linear-gradient(135deg, #f4f6f7 0%, #eef2f3 100%);
}

.admin-body {
    background: radial-gradient(circle at top right, rgba(45, 125, 255, 0.08), transparent 45%),
        radial-gradient(circle at 20% 20%, rgba(49, 201, 112, 0.06), transparent 40%),
        linear-gradient(180deg, #f4f7fb 0%, #eef3f7 100%);
}

.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #0f2f25;
    color: #fff;
    padding: 20px;
}

.admin-body .sidebar {
    background: linear-gradient(160deg, #0e1f2e, #12283a);
    border-right: 1px solid rgba(32, 50, 69, 0.35);
}

.sidebar a {
    color: #fff;
    display: block;
    padding: 10px 12px;
    opacity: 0.85;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.admin-body .sidebar nav a:hover,
.admin-body .sidebar nav a:focus-visible {
    opacity: 1;
    color: #ffffff;
    background: rgba(45, 125, 255, 0.22);
}

.sidebar .brand {
    font-weight: 700;
    margin-bottom: 20px;
}

.sidebar img {
    max-width: 210px;
}

.admin-menu-close {
    display: none;
    margin-bottom: 14px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    align-items: center;
    justify-content: center;
}

.admin-menu-close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.admin-main {
    padding: 32px;
}

.admin-modal-body {
    padding: 20px;
}

.admin-footer {
    margin-top: 30px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

.admin-footer .container {
    width: min(1100px, 92%);
}

.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #0f1f2e;
    color: #e8f1fb;
    padding: 12px 16px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.2);
    z-index: 120;
    opacity: 0;
    transform: translateY(-6px);
    animation: toast-in 0.3s ease forwards;
}

.toast-badge {
    background: #2d7dff;
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toast.is-hide {
    animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateY(-6px);
    }
}

.admin-body .admin-main {
    background: transparent;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    margin: 0 -24px 24px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.admin-topbar__right {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.admin-topbar__left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #0f1d2b;
}

.admin-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f4f7fb;
    color: #0f1d2b;
    align-items: center;
    justify-content: center;
}

.admin-menu-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.admin-menu-toggle .icon-close {
    display: none;
}

.admin-body.admin-nav-open .admin-menu-toggle .icon-open {
    display: none;
}

.admin-body.admin-nav-open .admin-menu-toggle .icon-close {
    display: block;
}

.admin-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.admin-body .btn {
    background: linear-gradient(135deg, rgba(45, 125, 255, 0.9), rgba(49, 201, 112, 0.85));
    border: none;
    color: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

.admin-body .btn.secondary {
    background: #ffffff;
    color: #0f1d2b;
    border: 1px solid #d1dbe6;
    box-shadow: none;
}

.admin-body .btn.secondary:hover {
    background: #edf2f7;
    border-color: #c3d0de;
}

.admin-body .btn.danger {
    background: #e74c3c;
}

.admin-body .btn.view {
    background: #2563eb;
}

.admin-body .btn.edit {
    background: #f59e0b;
    color: #0f1d2b;
}

.admin-actions .btn svg {
    width: 20px;
    height: 20px;
    margin-right: 0;
    fill: currentColor;
}

.admin-actions .btn.icon-only {
    padding: 8px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.table-filter {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    max-width: 240px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.dashboard-modern {
    display: grid;
    gap: 16px;
}

.dashboard-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.dashboard-subtitle {
    color: var(--muted);
    max-width: 720px;
    margin-top: 4px;
}

.dashboard-head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-status-cards {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
}

.kpi-card {
    grid-column: span 3;
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
    display: grid;
    gap: 4px;
}

.kpi-card.accent-blue {
    background: linear-gradient(135deg, #eff5ff, #ffffff);
    border-color: #cfe0ff;
}

.kpi-card.accent-emerald {
    background: linear-gradient(135deg, #ebfff5, #ffffff);
    border-color: #c9f1df;
}

.kpi-card.accent-amber {
    background: linear-gradient(135deg, #fff8eb, #ffffff);
    border-color: #f4dfba;
}

.kpi-card.accent-violet {
    background: linear-gradient(135deg, #f4f1ff, #ffffff);
    border-color: #ddd5ff;
}

.kpi-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #60758b;
    font-weight: 700;
}

.kpi-value {
    font-size: 30px;
    line-height: 1;
    color: #0f1d2b;
}

.kpi-note {
    color: var(--muted);
    font-size: 13px;
}

.status-kpi-card {
    grid-column: span 2;
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    display: grid;
    gap: 4px;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.status-kpi-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.09);
}

.status-kpi-card.status-em_revisao {
    border-color: #bfd6ff;
    background: linear-gradient(135deg, #eef5ff, #ffffff);
}

.status-kpi-card.status-pendente_ajustes {
    border-color: #f2d9aa;
    background: linear-gradient(135deg, #fff8ec, #ffffff);
}

.status-kpi-card.status-nao_publicado {
    border-color: #d7dde7;
    background: linear-gradient(135deg, #f6f8fb, #ffffff);
}

.status-kpi-card.status-aprovado {
    border-color: #b5e9cc;
    background: linear-gradient(135deg, #edfff5, #ffffff);
}

.status-kpi-card.status-recusado {
    border-color: #f3c4c4;
    background: linear-gradient(135deg, #fff2f2, #ffffff);
}

.status-kpi-card.status-publicado {
    border-color: #b5e9cc;
    background: linear-gradient(135deg, #e8fff2, #ffffff);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-panel {
    grid-column: span 4;
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.dashboard-panel.panel-large {
    grid-column: span 8;
}

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

.panel-head h2 {
    font-size: 18px;
    margin: 0;
}

.panel-head a {
    font-size: 13px;
    color: #2d7dff;
    font-weight: 700;
}

.panel-empty {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.panel-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #e7edf4;
    border-radius: 10px;
    padding: 10px 12px;
}

.panel-list li strong {
    display: block;
    font-size: 14px;
}

.panel-list li span {
    color: #6a7c8f;
    font-size: 12px;
}

.panel-list.compact li {
    padding: 9px 10px;
}

.list-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #dbe4ee;
    color: #304256;
    background: #f5f8fb;
    white-space: nowrap;
}

.status-tag.status-publicado {
    background: #e8fff2;
    border-color: #b5e9cc;
    color: #1a7343;
}

.status-tag.status-em_revisao {
    background: #eaf2ff;
    border-color: #bfd6ff;
    color: #2557a6;
}

.status-tag.status-pendente_ajustes {
    background: #fff7ea;
    border-color: #f2d9aa;
    color: #8d6117;
}

.status-tag.status-nao_publicado {
    background: #f3f4f6;
    border-color: #d7dde7;
    color: #4b5563;
}

.progress-list {
    display: grid;
    gap: 10px;
}

.progress-row {
    display: grid;
    gap: 6px;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: #334155;
}

.progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e9eff6;
    overflow: hidden;
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, #2d7dff, #31c970);
}

.trend-bars {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.trend-item {
    display: grid;
    justify-items: center;
    gap: 5px;
}

.trend-column {
    width: 100%;
    height: 140px;
    background: #edf2f8;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.trend-column span {
    display: block;
    width: 100%;
    background: linear-gradient(180deg, #2d7dff, #31c970);
    border-radius: 10px;
    min-height: 8px;
}

.trend-item strong {
    font-size: 13px;
    color: #0f1d2b;
}

.trend-item small {
    color: #64788d;
    font-size: 11px;
}

.category-bars {
    display: grid;
    gap: 10px;
}

.category-row {
    display: grid;
    gap: 6px;
}

.category-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: #334155;
}

.summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.summary-list li {
    border: 1px solid #e7edf4;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.summary-list li span {
    color: #64788d;
    font-size: 13px;
}

.summary-list li strong {
    color: #0f1d2b;
    font-size: 16px;
}

.log-date {
    color: #64788d;
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 1280px) {
    .kpi-card {
        grid-column: span 6;
    }

    .status-kpi-card {
        grid-column: span 4;
    }
}

@media (max-width: 1024px) {
    .dashboard-panel,
    .dashboard-panel.panel-large {
        grid-column: span 12;
    }
}

@media (max-width: 720px) {
    .kpi-card {
        grid-column: span 12;
    }

    .status-kpi-card {
        grid-column: span 12;
    }

    .trend-bars {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .panel-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .list-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.metric-card {
    background: #fff;
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.admin-body .metric-card {
    border-color: #dbe4ee;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.admin-main form {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.admin-body .admin-main form {
    border-color: #dbe4ee;
}

.admin-main label {
    display: block;
    margin-bottom: 12px;
}

.pdf-manager {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.pdf-list {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

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

.pdf-list-header,
.pdf-list-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    padding: 10px 12px;
    align-items: center;
}

.pdf-list-header {
    background: #f6f8fb;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.pdf-list-item + .pdf-list-item {
    border-top: 1px solid var(--border);
}

.pdf-title-input {
    font-weight: 600;
    width: 100%;
}

.pdf-date {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

.pdf-remove {
    font-size: 13px;
}

.pdf-empty {
    padding: 12px;
    color: var(--muted);
    font-size: 14px;
}

.pdf-counter {
    font-size: 13px;
    color: var(--muted);
}

.pdf-upload-list {
    display: grid;
    gap: 10px;
    margin: 10px 0;
}

.pdf-upload-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: center;
}

.pdf-limit {
    margin: 6px 0 0;
    font-size: 12px;
    color: #b42318;
}

.image-manager {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.image-list {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.image-list-header,
.image-list-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 12px;
    padding: 10px 12px;
    align-items: center;
}

.image-list-header {
    background: #f6f8fb;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

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

.image-list-item + .image-list-item {
    border-top: 1px solid var(--border);
}

.image-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.image-title-input {
    font-weight: 600;
    width: 100%;
}

.image-date {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

.image-empty {
    padding: 12px;
    color: var(--muted);
    font-size: 14px;
}

.image-counter {
    font-size: 13px;
    color: var(--muted);
}

.image-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.image-limit {
    margin: 6px 0 0;
    font-size: 12px;
    color: #b42318;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 12px;
}

.editor-toolbar .btn {
    padding: 6px 10px;
    font-size: 14px;
}

.editor-surface {
    min-height: 160px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.editor-surface ul,
.editor-surface ol {
    padding-left: 38px;
    margin: 14px 0 14px 8px;
}

.editor-surface li + li {
    margin-top: 6px;
}

.editor-surface img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px 0;
    border-radius: 8px;
}

.editor-surface:focus {
    outline: 2px solid rgba(45, 125, 255, 0.4);
    border-color: rgba(45, 125, 255, 0.6);
}

@media (max-width: 720px) {
    .pdf-list-header,
    .pdf-list-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .pdf-remove {
        justify-content: flex-start;
    }

    .pdf-upload-row {
        grid-template-columns: 1fr;
    }

    .image-list-header,
    .image-list-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .image-upload {
        flex-direction: column;
        align-items: flex-start;
    }
}

.avatar-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.avatar-preview img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.avatar-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.avatar-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.avatar-tabs .btn.secondary {
    background: #ffffff;
    color: #0f1d2b;
    border: 1px solid #d1dbe6;
    box-shadow: none;
}

.avatar-tabs .btn.secondary.is-active,
.avatar-tabs .btn.is-active {
    background: linear-gradient(135deg, #2d7dff, #3468d2);
    color: #fff;
    border-color: transparent;
}

.public-body #register-avatar-modal .upload-card {
    background: #fff;
    color: #0f1d2b;
    border: 1px dashed #d1dbe6;
}

.settings-tabs {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.settings-tab-buttons {
    margin-bottom: 4px;
}

.tab-panels {
    display: block;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}

.message-template-group {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #ffffff;
}

.message-template-group .form-note {
    margin-bottom: 10px;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.avatar-grid.five-col {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.avatar-grid.six-col {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.avatar-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    cursor: pointer;
}

.avatar-item img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.avatar-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.avatar-upload-panel {
    display: grid;
    gap: 16px;
}

.upload-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px dashed var(--border);
    background: #fff;
    cursor: pointer;
}

.upload-card input[type="file"] {
    display: none;
}

.avatar-upload-preview img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}
.category-picker {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #2a2f38;
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
}

.author-pill img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.pill-remove {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.picker-input input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.picker-options {
    display: none;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow: auto;
    border: 1px solid #3a3f46;
    border-radius: 10px;
    padding: 8px;
    background: #2a2f38;
}

.category-picker.is-open .picker-options {
    display: flex;
}

.picker-options button {
    border: none;
    background: #2a2f38;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #f1f5f9;
    width: 100%;
}

.picker-options button:hover {
    background: #343a45;
}

.picker-options button.is-hidden {
    display: none;
}

.admin-main input, .admin-main textarea, .admin-main select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-top: 6px;
}

.admin-main form button[type="submit"] {
    background: #2d7dff;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    box-shadow: 0 12px 22px rgba(45, 125, 255, 0.18);
}

.admin-main form button[type="submit"]:hover {
    background: #256fe6;
}

.admin-main table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.admin-body .admin-main table {
    border-color: #dbe4ee;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.admin-main th, .admin-main td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.admin-list-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.admin-search {
    position: relative;
    width: min(620px, 100%);
    margin: 0 auto;
}

.admin-search::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    opacity: 0.6;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.3-4.3m2.3-5.7a8 8 0 1 1-16 0 8 8 0 0 1 16 0z'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.3-4.3m2.3-5.7a8 8 0 1 1-16 0 8 8 0 0 1 16 0z'/%3E%3C/svg%3E") no-repeat center;
}

.admin-search .table-filter {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px 14px 46px;
    font-size: 17px;
    border-radius: 999px;
    border: 1px solid var(--border);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.admin-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.admin-filters select,
.admin-filters input {
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 14px;
    width: 100%;
}

@media (max-width: 860px) {
    .admin-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .admin-filters {
        grid-template-columns: 1fr;
    }
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
}

.admin-body .admin-item {
    border-color: #dbe4ee;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.admin-item h3 {
    margin-bottom: 6px;
}

.admin-meta {
    color: var(--muted);
    font-size: 14px;
}

.admin-id {
    font-weight: 700;
    color: #1c3b6c;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 12px;
    flex-wrap: wrap;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    opacity: 0.6;
}

.admin-tag {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8f6ed;
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-tag--em_revisao {
    background: #fff4d6;
    color: #b45309;
}

.admin-tag--pendente_ajustes {
    background: #fde2e2;
    color: #b91c1c;
}

.admin-tag--aprovado {
    background: #e8f6ed;
    color: #047857;
}

.admin-tag--recusado {
    background: #fee2e2;
    color: #991b1b;
}

.admin-tag--publicado {
    background: #dcfce7;
    color: #166534;
}

.admin-tag--pending {
    background: #fff4d6;
    color: #b45309;
}

.admin-tag--approved {
    background: #e8f6ed;
    color: #047857;
}

.admin-tag--active {
    background: #dcfce7;
    color: #166534;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn.danger {
    background: #e74c3c;
}

.admin-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.page-btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
}

.page-btn.is-active {
    background: #0f2f25;
    border-color: #0f2f25;
    color: #fff;
}

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

.modal {
    border: none;
    padding: 0;
    background: transparent;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
}

.modal[open],
.modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 100;
    width: 100vw;
    height: 100vh;
}

.modal[open]::backdrop,
.modal::backdrop {
    display: block;
    position: fixed;
    inset: 0;
}

.modal::backdrop {
    background: rgba(15, 23, 42, 0.55);
}

.modal-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    width: min(440px, 92vw);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
}

.modal[open] .modal-card,
.modal.is-open .modal-card {
    margin: auto;
}

.modal-frame {
    width: min(980px, 92vw);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-frame iframe {
    border: none;
    width: 100%;
    height: min(70vh, 700px);
    border-radius: 10px;
    background: #fff;
}

.image-modal-frame {
    width: min(1080px, 94vw);
    padding: 16px;
    gap: 10px;
}

.image-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.image-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.image-modal-body {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.image-modal-body img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
}

.image-nav {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    font-size: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.modal-close {
    align-self: flex-end;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

@media (max-width: 720px) {
    .admin-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.admin-main tbody tr:hover {
    background: #f6faf7;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.danger {
    color: var(--warning);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 30;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 560px;
    width: 100%;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 240px;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        z-index: 40;
    }

    .admin-body.admin-nav-open .sidebar {
        transform: translateX(0);
    }

    .admin-menu-toggle {
        display: inline-flex;
    }

    .admin-menu-close {
        display: inline-flex;
    }

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

    .admin-main {
        padding: 20px;
    }

    .admin-topbar {
        margin: 0 -20px 20px;
    }
}

@media (max-width: 600px) {
    .site-header .container {
        position: relative;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
        background: rgba(10, 18, 27, 0.98);
        border-bottom: 1px solid rgba(32, 50, 69, 0.7);
    }

    .public-body.theme-light .site-nav {
        background: #3468d2;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .public-body.nav-open .site-nav {
        display: flex;
    }

    .detail .actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .admin-topbar__right {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}
