    <style>
        :root {
            --bg-creme: #F8F6F0;
            --text-navy: #0E1A30;
            --primary-navy: #0E1A30;
            --primary-hover: #1A2D4F;
            --color-teal: #2B7075;    
            --color-ocre: #D8973C;    
            --color-burgundy: #8A273A; 
            --muted: #6B7280;
            --card-bg: #ffffff;
            --outline: rgba(14, 26, 48, 0.12);
            --radius: 14px;
            --max-width: 1600px;
        }

        * { box-sizing: border-box; scroll-behavior: smooth; }
        body { margin: 0; font-family: 'Inter', sans-serif; background-color: var(--bg-creme); color: var(--text-navy); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
        a { text-decoration: none; color: inherit; cursor: pointer; }
        .container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

        .page { display: none; animation: fadeIn 0.4s ease-in-out; }
        .page.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

        header { background: rgba(248, 246, 240, 0.95); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(14, 26, 48, 0.04); transition: all 0.3s ease; }
        header.scrolled { box-shadow: 0 4px 20px rgba(14, 26, 48, 0.05); }
        header.scrolled .header-inner { height: 65px; }
        header.scrolled .logo-img { height: 40px; }
        .header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; transition: all 0.3s ease; }
        .brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
        .logo-img { height: 52px; width: auto; object-fit: contain; transition: all 0.3s ease; }
        .brand-text b { font-size: 18px; letter-spacing: 0.5px; }
        .brand-text span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
        
        nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
        .nav-item { position: relative; }
        .nav-link { padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-radius: 8px; transition: all 0.2s ease; display: flex; align-items: center; cursor: pointer; }
        .nav-item:hover .nav-link { color: var(--text-navy); background: rgba(14, 26, 48, 0.04); }
        .nav-item.active .nav-link { color: var(--text-navy); background: rgba(14, 26, 48, 0.06); }
        
        .header-actions { display: flex; align-items: center; gap: 12px; position: relative;}
        .search-btn { background: none; border: none; color: var(--text-navy); font-size: 16px; cursor: pointer; padding: 10px; border-radius: 8px; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; }
        .search-btn:hover { background: rgba(14, 26, 48, 0.04); color: var(--color-ocre); }
        .menu-toggle-btn { display: none; background: none; border: none; color: var(--text-navy); font-size: 20px; cursor: pointer; padding: 10px; border-radius: 8px; transition: all 0.2s; }

        .page-header-top { margin-top: 60px; margin-bottom: 30px; }
        .super-title { color: var(--color-ocre); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; display: inline-block; }
        .page-header-top h2 { font-size: 32px; font-weight: 800; margin: 0 0 12px; color: var(--text-navy); }
        .page-header-top p { font-size: 16px; color: var(--muted); margin: 0; max-width: 800px; line-height: 1.6; }

        .search-filter-wrapper { display: flex; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
        .search-box { flex: 2; position: relative; min-width: 300px; width: 100%; }
        .search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; }
        .search-box input { width: 100%; padding: 16px 16px 16px 44px; border-radius: 12px; border: 1px solid var(--outline); font-family: 'Inter', sans-serif; font-size: 15px; color: var(--text-navy); transition: all 0.3s ease; box-shadow: 0 2px 10px rgba(14, 26, 48, 0.02); }
        .search-box input:focus { outline: none; border-color: var(--color-teal); box-shadow: 0 0 0 4px rgba(43, 112, 117, 0.1); }
        .filter-select { flex: 1; min-width: 200px; padding: 16px; border-radius: 12px; border: 1px solid var(--outline); font-family: 'Inter', sans-serif; font-size: 15px; color: var(--text-navy); background-color: white; cursor: pointer; transition: all 0.3s ease; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }
        .filter-select:focus { outline: none; border-color: var(--color-teal); }
        
        .sys-modal-overlay { position: fixed; inset: 0; background: rgba(14, 26, 48, 0.85); backdrop-filter: blur(8px); z-index: 10005; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; padding: 20px; }
        .sys-modal-overlay.active { display: flex; opacity: 1; }
        .sys-modal-container { background: white; width: 100%; max-width: 400px; border-radius: 16px; padding: 32px 24px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.3); transform: scale(0.95); transition: transform 0.3s ease; max-height: 90vh; overflow-y: auto; }
        .sys-modal-overlay.active .sys-modal-container { transform: scale(1); }
        .sys-modal-title { font-size: 20px; font-weight: 800; color: var(--text-navy); margin: 0 0 12px 0; }
        .sys-modal-msg { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0 0 24px 0; }
        .sys-modal-input-wrapper { display: none; margin-bottom: 24px; position: relative; }
        .sys-modal-input-wrapper input { width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--outline); font-family: 'Inter', sans-serif; font-size: 15px; transition: all 0.2s; color: var(--text-navy); background: #f8fafc; }
        .sys-modal-input-wrapper input:focus { outline: none; border-color: var(--color-burgundy); box-shadow: 0 0 0 4px rgba(138, 39, 58, 0.1); }
        .sys-modal-actions { display: flex; gap: 12px; justify-content: center; }

        .notification-badge { background: #ef4444; color: white; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 10px; margin-left: 6px; display: inline-block; vertical-align: middle; }
        .info-badge { background: var(--color-teal); color: white; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 10px; margin-left: 6px; display: inline-block; vertical-align: middle; }

        .password-wrapper { position: relative; width: 100%; display: flex; align-items: center; }
        .password-toggle { position: absolute; right: 14px; color: var(--muted); cursor: pointer; transition: color 0.2s; font-size: 15px; }
        .password-toggle:hover { color: var(--text-navy); }
        
        /* --- ESTILOS PREMIUM PARA PAINÉIS DE ADMINISTRAÇÃO --- */
        .header-title-block h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--text-navy); }
        .header-title-block p { margin: 4px 0 0 0; font-size: 13px; color: var(--muted); }
        .header-controls-block { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
        
        .filter-input, .filter-select-inline { height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--outline); font-family: 'Inter', sans-serif; font-size: 13px; color: var(--text-navy); background-color: #f8fafc; transition: all 0.2s; }
        .filter-input:focus, .filter-select-inline:focus { border-color: var(--color-teal); outline: none; background: white; box-shadow: 0 0 0 3px rgba(43, 112, 117, 0.1); }
        .filter-select-inline { padding-right: 32px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
        
        .search-wrapper-inline { position: relative; display: flex; align-items: center; }
        .search-wrapper-inline i { position: absolute; left: 12px; color: var(--muted); font-size: 13px; }
        .search-wrapper-inline input { padding-left: 36px; width: 220px; }
        
        .btn-panel { height: 40px; padding: 0 16px; border-radius: 8px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
        .btn-panel-outline { background: white; border: 1px solid var(--outline); color: var(--text-navy); }
        .btn-panel-outline:hover { background: #f8fafc; border-color: var(--color-teal); color: var(--color-teal); }
        .btn-panel-solid { background: var(--color-ocre); border: 1px solid var(--color-ocre); color: white; }
        .btn-panel-solid:hover { background: #e0a34b; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(216, 151, 60, 0.2); }
        
        .bulk-panel { display: none; gap: 8px; align-items: center; background: #e0f2fe; padding: 0 12px; height: 40px; border-radius: 8px; border: 1px solid #bae6fd; animation: fadeIn 0.2s ease; }

        .global-search-overlay { position: fixed; inset: 0; background: rgba(14, 26, 48, 0.8); backdrop-filter: blur(8px); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity 0.3s ease; }
        .global-search-overlay.active { display: flex; opacity: 1; }
        .global-search-container { background: white; width: 100%; max-width: 600px; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.2); transform: translateY(-20px); transition: transform 0.3s ease; display: flex; flex-direction: column; max-height: 90vh; }
        .global-search-overlay.active .global-search-container { transform: translateY(0); }
        .global-search-header { padding: 20px 24px; border-bottom: 1px solid var(--outline); display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
        .global-search-header i { color: var(--muted); font-size: 20px; }
        .global-search-header input { border: none; font-size: 18px; font-family: 'Inter', sans-serif; width: 100%; outline: none; color: var(--text-navy); }
        .global-search-header button { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 20px; transition: color 0.2s; }
        .global-search-header button:hover { color: var(--burgundy); }
        .global-search-results { max-height: 400px; overflow-y: auto; padding: 12px; }
        .search-result-item { padding: 16px; display: flex; align-items: center; gap: 16px; border-radius: 10px; cursor: pointer; transition: background 0.2s; }
        .search-result-item:hover { background: rgba(14, 26, 48, 0.03); }
        .search-result-icon { width: 40px; height: 40px; background: rgba(216, 151, 60, 0.1); color: var(--color-ocre); display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 16px; }
        .search-result-text h4 { margin: 0 0 4px; font-size: 15px; color: var(--text-navy); }
        .search-result-text p { margin: 0; font-size: 13px; color: var(--muted); }

        .modal-ficha .global-search-container { max-width: 700px; background: var(--bg-creme); }
        .modal-ficha .global-search-header { background: var(--primary-navy); color: white; border-bottom: none; }
        .modal-ficha .global-search-header h3 { margin: 0; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
        .modal-ficha .global-search-header button { color: rgba(255,255,255,0.7); }
        .modal-ficha .global-search-header button:hover { color: white; }
        .ficha-body { padding: 30px; overflow-y: auto; flex: 1; }
        .ficha-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
        .ficha-section-title { font-size: 15px; font-weight: 800; color: var(--primary-navy); border-bottom: 2px solid var(--outline); padding-bottom: 8px; margin: 0 0 20px 0; text-transform: uppercase; letter-spacing: 0.5px; }
        .permission-block { background: white; border: 1px solid var(--outline); border-radius: 12px; padding: 16px; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; transition: 0.2s; }
        .permission-block:hover { border-color: var(--color-teal); }
        .permission-block input[type="checkbox"] { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--color-teal); cursor: pointer; }
        .permission-text h4 { margin: 0 0 4px; font-size: 14px; color: var(--text-navy); font-weight: 700; }
        .permission-text p { margin: 0; font-size: 13px; color: var(--muted); }

        .file-upload-wrapper { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--outline); position: relative; }
        .file-upload-preview { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; background: var(--bg-creme); border: 2px solid var(--outline); flex-shrink: 0; }
        .file-upload-btn { background: var(--bg-creme); color: var(--text-navy); padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid var(--outline); transition: all 0.2s; display: inline-block; margin-right: 8px; }
        .file-upload-btn:hover { background: white; border-color: var(--color-teal); color: var(--color-teal); }
        .btn-remove-photo { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: inline-block; }
        .btn-remove-photo:hover { background: #f87171; color: white; border-color: #f87171; }
        input[type="file"] { display: none; }

        /* --- PLATAFORMA DE EDUCAÇÃO ESTILO GRAN CURSOS --- */
        .edu-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; }
        .edu-sidebar { background: white; border-radius: var(--radius); border: 1px solid var(--outline); padding: 16px 0; position: sticky; top: 100px; }
        .edu-sidebar ul { list-style: none; padding: 0; margin: 0; }
        .edu-sidebar li { padding: 14px 24px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 12px; transition: all 0.2s; border-left: 3px solid transparent; }
        .edu-sidebar li:hover { background: rgba(14, 26, 48, 0.02); color: var(--text-navy); }
        .edu-sidebar li.active { background: rgba(43, 112, 117, 0.05); color: var(--color-teal); border-left-color: var(--color-teal); }
        .edu-sidebar li i { width: 20px; text-align: center; font-size: 16px; }
        
        .course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
        .course-card { background: white; border-radius: var(--radius); border: 1px solid var(--outline); overflow: hidden; transition: all 0.3s ease; cursor: pointer; display: flex; flex-direction: column; }
        .course-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(14, 26, 48, 0.08); border-color: var(--color-teal); }
        .course-thumb { height: 160px; position: relative; width: 100%; background: #f1f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
        .course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
        .course-card:hover .course-thumb img { transform: scale(1.05); }
        .course-thumb .overlay-play { position: absolute; inset: 0; background: rgba(14, 26, 48, 0.3); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; color: white; font-size: 40px; }
        .course-card:hover .overlay-play { opacity: 1; }
        .course-progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 6px; background: rgba(255,255,255,0.3); }
        .course-progress-fill { height: 100%; background: var(--color-teal); box-shadow: 0 0 10px var(--color-teal); }
        .course-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
        .course-info h3 { margin: 0 0 8px 0; font-size: 16px; font-weight: 700; color: var(--text-navy); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .course-info p { margin: 0 0 16px 0; font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1; }
        .course-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; border-top: 1px solid var(--outline); padding-top: 16px; margin-top: auto; }

        .public-hero-section { height: calc(100vh - 80px); min-height: 600px; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; }
        .hero-bg { position: absolute; inset: 0; background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=2000&auto=format&fit=crop'); background-size: cover; background-position: center; background-attachment: fixed; z-index: 1; }
        .hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 26, 48, 0.8) 0%, rgba(14, 26, 48, 0.95) 100%); z-index: 2; }
        .hero-content { position: relative; z-index: 10; color: white; padding: 0 24px; max-width: 900px; display: flex; flex-direction: column; align-items: center; }
        .hero-label { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 3px; color: var(--color-ocre); margin-bottom: 16px; display: inline-block; padding: 6px 16px; border-radius: 30px; background: rgba(216, 151, 60, 0.1); border: 1px solid rgba(216, 151, 60, 0.3); }
        .hero-content h1 { font-size: 64px; font-weight: 800; margin: 0 0 24px; letter-spacing: -2px; line-height: 1.1; }
        .hero-content p { font-size: 20px; font-weight: 300; line-height: 1.6; opacity: 0.9; margin-bottom: 48px; max-width: 700px; }
        
        .btn-group { display: flex; gap: 16px; justify-content: center; width: 100%; flex-wrap: wrap; }
        .btn-filled { display: inline-block; background-color: var(--color-ocre); color: white; padding: 14px 36px; border-radius: 12px; font-weight: 700; font-size: 15px; transition: all 0.2s; border: 2px solid var(--color-ocre); text-align: center; cursor: pointer; }
        .btn-filled:hover:not(:disabled) { background-color: #f3ae4e; border-color: #f3ae4e; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(216, 151, 60, 0.25); }
        .btn-filled:disabled { opacity: 0.7; cursor: not-allowed; }
        .btn-outline { display: inline-block; background-color: transparent; color: white; padding: 14px 36px; border-radius: 12px; font-weight: 700; font-size: 15px; transition: all 0.2s; border: 2px solid rgba(255, 255, 255, 0.7); text-align: center; cursor: pointer; }
        .btn-outline:hover:not(:disabled) { background-color: white; color: var(--primary-navy); transform: translateY(-2px); border-color: white; }

        .section-title { margin: 64px 0 32px; text-align: center; }
        .section-title.left { text-align: left; }
        .section-title h2 { font-size: 32px; font-weight: 800; color: var(--text-navy); position: relative; display: inline-block; margin: 0; letter-spacing: -1px; }
        .section-title:not(.left) h2::after { content: ''; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--color-ocre); border-radius: 2px; }
        
        .sobre-apice-section { background: white; padding: 100px 24px; text-align: center; }
        .sobre-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1600px; margin: 60px auto 0; }
        .sobre-card { text-align: center; padding: 40px 20px; }
        .sobre-card i { font-size: 40px; color: var(--color-teal); margin-bottom: 24px; }
        .sobre-card h3 { font-size: 20px; font-weight: 800; color: var(--text-navy); margin: 0 0 16px; }
        .sobre-card p { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0; }

        .bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 40px; }
        .card { background: white; border-radius: var(--radius); padding: 32px; border: 1px solid var(--outline); transition: all 0.3s ease; display: flex; flex-direction: column; gap: 20px; position: relative; cursor: pointer; }
        .card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(14, 26, 48, 0.08); }
        .card-icon { width: 54px; height: 54px; border-radius: 14px; background: rgba(14, 26, 48, 0.03); display: grid; place-items: center; font-size: 24px; overflow: hidden; flex-shrink: 0; }
        .card-icon img { width: 100%; height: 100%; object-fit: cover; }
        .card h3 { margin: 0; font-size: 20px; font-weight: 700; }
        .card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
        .btn-module { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 14px; border: 2px solid var(--outline); transition: all 0.3s; margin-top: auto; text-align: center; cursor: pointer; }
        
        .card-tag { position: absolute; top: 24px; right: 24px; font-size: 10px; text-transform: uppercase; font-weight: 800; padding: 4px 10px; border-radius: 20px; letter-spacing: 0.5px; }
        .tag-ativa { background: #dcfce7; color: #166534; }
        .tag-inativa { background: #fee2e2; color: #dc2626; }
        .tag-externo { background: #dbeafe; color: #1e40af; }

        .news-carousel { display: flex; overflow-x: auto; gap: 20px; padding-bottom: 20px; scroll-snap-type: x mandatory; scrollbar-width: none; margin-bottom: 40px; }
       
/* --- CARROSSEL: OCULTA BARRA DE ROLAGEM --- */
.news-carousel::-webkit-scrollbar { display: none !important; }

/* --- CARROSSEL: BOLINHAS (PAGINAÇÃO) --- */
.carousel-dots-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1; /* Cor da bolinha inativa (Cinza) */
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: #94a3b8;
}

.carousel-dot.active {
    width: 24px; /* Estica a bolinha ativa fazendo ela virar um "tracinho" premium */
    border-radius: 6px;
    background: var(--color-teal); /* Cor da bolinha ativa */
}
        .news-slide { min-width: 85%; max-width: 800px; height: 360px; border-radius: 20px; position: relative; overflow: hidden; scroll-snap-align: center; cursor: pointer; transition: transform 0.3s; }
        .news-slide:hover { transform: scale(0.98); }
        .news-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
        .news-slide:hover img { transform: scale(1.05); }
        .news-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,26,48,0.9) 0%, rgba(14,26,48,0.4) 50%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; color: white; }
        .news-overlay span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--color-ocre); margin-bottom: 8px; }
        .news-overlay h3 { font-size: 24px; font-weight: 700; margin: 0 0 10px; line-height: 1.3; }

        .welcome-banner { background-color: var(--primary-navy); border-radius: 20px; padding: 48px; color: white; display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 80px; position: relative; overflow: hidden; box-shadow: 0 15px 35px rgba(14, 26, 48, 0.15); }
        .welcome-banner::before { content: ''; position: absolute; top: -50px; right: -50px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(216, 151, 60, 0.1) 0%, transparent 70%); z-index: 1; }
        .welcome-text { position: relative; z-index: 2; flex: 1; }
        .welcome-text h2 { font-size: 28px; margin: 0 0 12px; font-weight: 700; }
        .welcome-text p { font-size: 16px; margin: 0; color: rgba(255,255,255,0.7); line-height: 1.6; max-width: 600px; }
        .btn-onboarding { position: relative; z-index: 2; background-color: var(--color-ocre); color: white; padding: 14px 28px; border-radius: 12px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: all 0.2s; box-shadow: 0 8px 20px rgba(216, 151, 60, 0.2); display: inline-block; cursor: pointer; }
        .btn-onboarding:hover { transform: translateY(-2px); background-color: #f3ae4e; box-shadow: 0 12px 28px rgba(216, 151, 60, 0.3); }

        .doc-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 80px; }
        .doc-card { background: white; border: 1px solid var(--outline); border-radius: var(--radius); padding: 24px; display: flex; align-items: center; gap: 20px; transition: all 0.3s ease; cursor: pointer; text-decoration: none; color: inherit; }
        .doc-card:hover { transform: translateX(4px); border-color: var(--color-teal); box-shadow: 0 10px 25px rgba(14, 26, 48, 0.05); background: rgba(43, 112, 117, 0.01); }
        .doc-card-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(138, 39, 58, 0.08); color: var(--color-burgundy); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
        .doc-card-content { flex: 1; }
        .doc-card-title { font-size: 18px; font-weight: 700; margin: 0 0 6px; color: var(--text-navy); }
        .doc-card-desc { font-size: 14px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
        .doc-tags-wrapper { display: flex; gap: 8px; flex-wrap: wrap; }
        .doc-tag { background: var(--bg-creme); color: var(--text-navy); border: 1px solid var(--outline); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; }
        .doc-card-action { color: var(--muted); font-size: 18px; transition: color 0.3s; padding-left: 10px; }
        .doc-card:hover .doc-card-action { color: var(--color-teal); }

        .back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; margin: 40px 0 20px; transition: color 0.2s; }
        .back-link:hover { color: var(--primary-navy); }
        .trail-header h2 { font-size: 32px; font-weight: 800; margin: 0 0 12px; color: var(--text-navy); }
        .trail-header p { font-size: 16px; color: var(--muted); line-height: 1.6; max-width: 800px; margin: 0; }
        .trail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
        .trail-step { background: white; border: 1px solid var(--outline); border-radius: var(--radius); padding: 24px 24px 24px 72px; position: relative; cursor: pointer; transition: all 0.3s ease; display: flex; flex-direction: column; justify-content: center; min-height: 105px; }
        .trail-step:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(14, 26, 48, 0.06); border-color: rgba(216, 151, 60, 0.5); }
        .trail-number { position: absolute; top: 24px; left: 20px; width: 32px; height: 32px; background: rgba(216, 151, 60, 0.15); color: var(--color-ocre); font-weight: 800; font-size: 13px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
        .trail-step h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--text-navy); }
        .trail-step p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
        
        .materials-section { margin-top: 60px; margin-bottom: 60px; }
        .materials-section h3 { font-size: 20px; font-weight: 700; margin: 0 0 20px; color: var(--text-navy); }
        .material-card { background: white; border: 1px solid var(--outline); border-radius: var(--radius); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: all 0.3s ease; width: 100%; margin-bottom: 16px;}
        .material-card:hover { border-color: var(--color-teal); background: rgba(43, 112, 117, 0.02); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(14, 26, 48, 0.04); }
        .material-info { display: flex; flex-direction: column; gap: 6px; }
        .material-tag { display: inline-block; font-size: 10px; text-transform: uppercase; font-weight: 800; padding: 4px 10px; border-radius: 20px; background: rgba(43, 112, 117, 0.1); color: var(--color-teal); width: fit-content; }
        .material-title { font-size: 16px; font-weight: 700; margin: 0; color: var(--text-navy); }
        .material-desc { font-size: 14px; color: var(--muted); margin: 0; }
        .material-icon { font-size: 18px; color: var(--muted); transition: color 0.3s; }
        .material-card:hover .material-icon { color: var(--color-teal); }

        .agenda-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-bottom: 80px; }
        .agenda-events h3 { font-size: 20px; font-weight: 700; color: var(--text-navy); margin: 0 0 20px 0; padding-bottom: 12px; border-bottom: 1px solid var(--outline); }
        .agenda-events h3.mt-4 { margin-top: 40px; }
        .empty-state { background: rgba(14, 26, 48, 0.02); border: 1px dashed var(--outline); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 20px; display: none; }
        .event-card { position: relative; display: flex; background: white; border: 1px solid var(--outline); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; transition: all 0.3s ease; }
        .event-card:hover { transform: translateX(4px); border-color: var(--color-ocre); box-shadow: 0 10px 25px rgba(14, 26, 48, 0.05); }
        .event-date-box { background: var(--bg-creme); min-width: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; border-right: 1px solid var(--outline); color: var(--text-navy); }
        .event-card.past-event .event-date-box { background: rgba(14, 26, 48, 0.03); color: var(--muted); }
        .event-card.past-event .event-date-box .month { color: var(--muted); }
        .event-date-box .month { font-size: 13px; text-transform: uppercase; font-weight: 800; letter-spacing: 1px; color: var(--color-teal); margin-bottom: 4px; }
        .event-date-box .day { font-size: 32px; font-weight: 800; line-height: 1; }
        .event-content { padding: 24px; flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; }
        .event-content h4 { font-size: 18px; font-weight: 700; color: var(--text-navy); margin: 0 0 8px 0; padding-right: 130px; }
        .event-content p { font-size: 14px; color: var(--muted); margin: 0 0 16px 0; line-height: 1.5; padding-right: 130px; }
        .event-footer { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; font-weight: 500; color: var(--text-navy); }
        .event-footer span { display: flex; align-items: center; gap: 6px; }
        .event-footer i { color: var(--muted); }
        .event-location { color: var(--color-teal); text-decoration: none; display: flex; align-items: center; gap: 6px; transition: color 0.2s; }
        .event-location:hover { color: var(--primary-hover); text-decoration: underline; }
        .event-tag { position: absolute; top: 24px; right: 24px; font-size: 10px; font-weight: 800; padding: 6px 12px; border-radius: 20px; background: rgba(43, 112, 117, 0.1); color: var(--color-teal); letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; text-align: center; }
        
        .calendar-widget { background: white; border: 1px solid var(--outline); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; }
        .calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
        .calendar-header select { border: none; font-size: 16px; font-weight: 700; color: var(--text-navy); font-family: 'Inter', sans-serif; cursor: pointer; background: transparent; outline: none; }
        .calendar-nav-btn { background: var(--bg-creme); border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; color: var(--text-navy); transition: background 0.2s; display: flex; align-items: center; justify-content: center; }
        .calendar-nav-btn:hover { background: rgba(14, 26, 48, 0.05); }
        .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; }
        .cal-day-header { font-size: 11px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
        .cal-day { font-size: 13px; font-weight: 600; color: var(--text-navy); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto; cursor: pointer; transition: all 0.2s; border: 2px solid transparent;}
        .cal-day:hover:not(.empty) { background: rgba(14, 26, 48, 0.04); }
        .cal-day.empty { color: transparent; cursor: default; }
        .cal-day.has-event { background: var(--color-ocre); color: white; box-shadow: 0 4px 10px rgba(216, 151, 60, 0.3); }
        .cal-day.has-event.past { background: #e5e7eb; color: #4b5563; box-shadow: none; }
        .cal-day.active-filter { border-color: var(--primary-navy); transform: scale(1.1); box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-navy); }

        #login-container { position: fixed; inset: 0; background: rgba(14, 26, 48, 0.7); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; z-index: 10000; padding: 20px; transition: opacity 0.5s ease; opacity: 0; }
        .login-card { position: relative; z-index: 10; background: white; width: 100%; max-width: 420px; border-radius: 20px; padding: 40px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); text-align: center; transform: translateY(20px); transition: transform 0.4s ease; max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column; }
        #login-container.active { display: flex; opacity: 1; }
        #login-container.active .login-card { transform: translateY(0); }
        
        .login-brand img { height: 45px; max-width: 120px; object-fit: contain; margin-bottom: 16px; }
        .login-brand h2 { font-size: 24px; font-weight: 800; margin: 0 0 8px; color: var(--text-navy); }
        .login-brand p { font-size: 14px; color: var(--muted); margin-bottom: 32px; line-height: 1.5; }
        .form-group-sys { margin-bottom: 20px; text-align: left; }
        .form-group-sys label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
        .form-group-sys input, .form-group-sys select { width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--outline); font-family: 'Inter', sans-serif; font-size: 15px; transition: all 0.2s; color: var(--text-navy); background: #f8fafc; }
        .form-group-sys input:focus, .form-group-sys select:focus { outline: none; border-color: var(--color-ocre); background: white; box-shadow: 0 0 0 4px rgba(216, 151, 60, 0.1); }
        .btn-login { width: 100%; background: var(--color-ocre); color: white; padding: 14px; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
        .btn-login:hover:not(:disabled) { background: #e0a34b; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(216, 151, 60, 0.3); }
        .btn-login:disabled { opacity: 0.7; cursor: not-allowed; }
        #loginErrorMsg, #requestMsg, #forgotMsg, #resetMsg { font-size: 13px; font-weight: 600; margin-top: 15px; display: none; padding: 10px; border-radius: 8px; text-align: center; }
        .login-footer { margin-top: 24px; font-size: 13px; color: var(--muted); line-height: 1.5; }
        .login-footer a { color: var(--color-teal); font-weight: 600; cursor: pointer; transition: color 0.2s; text-decoration: none;}
        .login-footer a:hover { color: var(--primary-hover); text-decoration: underline; }
        .close-login-btn { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 20px; color: var(--muted); cursor: pointer; transition: 0.2s; }
        .close-login-btn:hover { color: var(--burgundy); }

        #epic-loader { position: fixed; inset: 0; background: linear-gradient(135deg, #0E1A30 0%, #070D18 100%); z-index: 200000; display: none; flex-direction: column; align-items: center; justify-content: center; color: white; }
        .epic-pillar { font-size: 80px; color: #D8973C; margin-bottom: 30px; animation: floatGlow 4s ease-in-out infinite; }
        .epic-greetings { font-size: 48px; font-weight: 300; letter-spacing: 2px; opacity: 0; animation: majesticFade 1.5s ease 0.5s forwards; text-align: center; }
        .epic-name { font-weight: 800; color: #D8973C; text-shadow: 0 0 20px rgba(216,151,60,0.5); }
        .epic-desc { font-size: 14px; color: rgba(255,255,255,0.6); opacity: 0; text-transform: uppercase; letter-spacing: 5px; margin-top: 20px; animation: majesticFade 1.5s ease 2s forwards; }
        
        .user-menu-wrapper { position: relative; }
        .user-badge { background: rgba(14, 26, 48, 0.05); padding: 6px 14px 6px 6px; border-radius: 30px; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--outline); cursor: pointer; transition: all 0.2s; user-select: none; }
        .user-badge:hover { background: white; border-color: var(--color-teal); color: var(--color-teal); box-shadow: 0 4px 12px rgba(14, 26, 48, 0.05); }
        .user-badge img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
        .user-badge i { font-size: 10px; color: var(--muted); margin-left: 2px; }
        .user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: white; border-radius: 12px; box-shadow: 0 10px 30px rgba(14, 26, 48, 0.1); border: 1px solid var(--outline); width: 220px; overflow: hidden; display: none; flex-direction: column; z-index: 1001; opacity: 0; transform: translateY(-10px); transition: all 0.2s ease; }
        .user-dropdown.active { display: flex; opacity: 1; transform: translateY(0); }
        .user-dropdown a { padding: 14px 20px; font-size: 14px; font-weight: 500; color: var(--text-navy); display: flex; align-items: center; gap: 10px; cursor: pointer; transition: background 0.2s; }
        .user-dropdown a:hover { background: rgba(14, 26, 48, 0.03); color: var(--color-teal); }
        .dropdown-divider { height: 1px; background: var(--outline); margin: 4px 0; }

        .admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; margin-bottom: 60px; align-items: start; }
        .admin-sidebar { background: white; border-radius: var(--radius); border: 1px solid var(--outline); overflow: hidden; position: sticky; top: 100px; }
        .admin-sidebar button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 20px; text-align: left; background: none; border: none; border-bottom: 1px solid var(--outline); font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; }
        .admin-sidebar button span { display: flex; align-items: center; }
        .admin-sidebar button:last-child { border-bottom: none; }
        .admin-sidebar button:hover { background: rgba(14, 26, 48, 0.02); color: var(--text-navy); }
        .admin-sidebar button.active { background: var(--primary-navy); color: white; border-color: var(--primary-navy); }
        .admin-sidebar button i { width: 20px; margin-right: 8px; text-align: center; }
        
        .admin-tab-content { display: none; animation: fadeIn 0.3s ease; }
        .admin-tab-content.active { display: block; }
        .admin-box { background: white; border: 1px solid var(--outline); border-radius: var(--radius); padding: 30px; margin-bottom: 24px; box-shadow: 0 10px 30px rgba(14, 26, 48, 0.03); }
        .admin-box-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--outline); flex-wrap: wrap; gap: 10px; }
        .admin-box-header h3 { margin: 0; font-size: 18px; color: var(--text-navy); font-weight: 700; }
        .admin-table-wrapper { overflow-x: auto; }
        .admin-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 700px; }
        .admin-table th { padding: 14px 16px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; border-bottom: 2px solid var(--outline); }
        .admin-table td { padding: 16px; font-size: 14px; border-bottom: 1px solid var(--outline); color: var(--text-navy); vertical-align: middle; }
        .admin-table tr:last-child td { border-bottom: none; }
        .admin-user-row, .admin-gerencia-row { cursor: pointer; transition: 0.2s; }
        .admin-user-row:hover, .admin-gerencia-row:hover { background: rgba(14, 26, 48, 0.02); }
        
        .req-checkbox { width: 18px; height: 18px; accent-color: var(--color-teal); cursor: pointer; }

        .btn-sm { padding: 8px 14px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; transition: 0.2s; border: 1px solid transparent; font-family: 'Inter', sans-serif;}
        .btn-approve { background: #dcfce7; color: #166534; border-color: #bbf7d0; } .btn-approve:hover:not(:disabled) { background: #22c55e; color: white; }
        .btn-approve:disabled { opacity: 0.5; cursor: not-allowed; }
        .btn-reject { background: #fee2e2; color: #dc2626; border-color: #fecaca; } .btn-reject:hover { background: #ef4444; color: white; }
        .btn-edit { background: var(--bg-creme); color: var(--text-navy); border-color: var(--outline); } .btn-edit:hover { background: var(--outline); color: var(--color-teal); }
        .status-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
        .status-ativo { background: #dcfce7; color: #166534; }
        .status-inativo { background: #fee2e2; color: #dc2626; }

        .gerencia-header { display: flex; align-items: center; gap: 24px; margin-bottom: 40px; padding: 30px; background: white; border-radius: var(--radius); border: 1px solid var(--outline); }
        .gerencia-header img { width: 80px; height: 80px; border-radius: 16px; object-fit: cover; border: 1px solid var(--outline); }
        .gerencia-header-info h2 { margin: 0 0 8px 0; font-size: 28px; color: var(--text-navy); font-weight: 800; }
        .gerencia-header-info p { margin: 0; color: var(--muted); font-size: 15px; }
        .gerencia-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; margin-bottom: 60px; align-items: start; }
        .gv-sidebar { background: white; border-radius: var(--radius); border: 1px solid var(--outline); overflow: hidden; padding: 20px; }
        .gv-sidebar h4 { margin: 0 0 16px; font-size: 13px; text-transform: uppercase; color: var(--muted); font-weight: 800; }
        .gv-sidebar ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
        .gv-sidebar li { padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--text-navy); border-radius: 8px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: space-between; }
        .gv-sidebar li > div { display: flex; align-items: center; gap: 10px; }
        .gv-sidebar li:hover { background: rgba(14, 26, 48, 0.04); color: var(--color-teal); }
        .gv-tab.active { background: rgba(14, 26, 48, 0.04); color: var(--color-teal); }
        .gv-tab-pane { display: none; animation: fadeIn 0.3s ease; }
        .gv-tab-pane.active { display: block; }
        .gv-content { display: flex; flex-direction: column; gap: 24px; }
        .gv-alert { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 16px 20px; color: #b45309; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 12px; }
        .gv-tasks { background: white; border-radius: var(--radius); border: 1px solid var(--outline); padding: 24px; }
        .gv-tasks h3 { margin: 0 0 16px; font-size: 18px; color: var(--text-navy); }
        .task-item { padding: 16px; border: 1px solid var(--outline); border-radius: 10px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
        .task-item:last-child { margin-bottom: 0; }
        .task-info h4 { margin: 0 0 4px; font-size: 15px; color: var(--text-navy); }
        .task-info p { margin: 0; font-size: 13px; color: var(--muted); }

        .site-footer { background-color: var(--primary-navy); color: white; padding: 60px 0 30px; margin-top: 40px; }
        .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
        .footer-brand p { color: rgba(255, 255, 255, 0.7); font-size: 14px; line-height: 1.6; max-width: 300px; margin-top: 0; }
        .footer-title { font-size: 16px; font-weight: 600; margin: 0 0 20px; color: white; }
        .footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
        .footer-links a { color: rgba(255, 255, 255, 0.7); font-size: 14px; transition: color 0.2s; display: flex; align-items: center; gap: 8px; }
        .footer-links a:hover { color: var(--color-ocre); }
        .footer-credits { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 30px; display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: 13px; color: rgba(255, 255, 255, 0.6); text-align: center; gap: 6px; }

        .admin-search-wrapper { position: relative; width: 100%; max-width: 320px; }
        .admin-search-wrapper i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px;}
        .admin-search-wrapper input { width: 100%; padding: 12px 14px 12px 40px; border-radius: 10px; border: 1px solid var(--outline); font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text-navy); background: #f8fafc; transition: all 0.2s;}
        .admin-search-wrapper input:focus { border-color: var(--color-teal); outline: none; background: white; box-shadow: 0 0 0 3px rgba(43, 112, 117, 0.1);}
        .flex-header-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; width: 100%; justify-content: space-between; margin-bottom: 20px;}
        .flex-group { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

        .placeholder-logo { background:#f1f5f9; display:flex; align-items:center; justify-content:center; width:100%; height:100%; color:var(--color-teal); font-size: 28px; }
        .vinculos-list { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
        .vinculo-tag { background: #f1f5f9; color: var(--text-navy); border: 1px solid var(--outline); font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }

        @media (max-width: 1024px) {
            .hero-content h1 { font-size: 46px; }
            .bento-grid { grid-template-columns: 1fr; }
            .welcome-banner { flex-direction: column; text-align: center; padding: 32px; }
            .ficha-grid { grid-template-columns: 1fr; }
            .admin-layout, .gerencia-layout { grid-template-columns: 1fr; }
        }
        @media (max-width: 900px) {
            .footer-grid { grid-template-columns: 1fr; gap: 32px; }
        }
        @media (max-width: 768px) {
            .header-inner { flex-direction: row; height: 80px; justify-content: space-between; padding: 0 24px; }
            header.scrolled .header-inner { height: 65px; }
            .brand { justify-content: flex-start; width: auto; }
            .menu-toggle-btn { display: inline-flex; }
            
            nav { display: none; position: absolute; top: 80px; left: 0; width: 100%; background: rgba(248, 246, 240, 0.98); backdrop-filter: blur(12px); border-bottom: 1px solid var(--outline); padding: 20px 24px; box-shadow: 0 15px 35px rgba(14, 26, 48, 0.1); z-index: 999; }
            header.scrolled nav { top: 65px; }
            nav.open { display: block; animation: slideDownMenu 0.25s ease-in-out forwards; }
            nav ul { flex-direction: column; gap: 8px; width: 100%; }
            .nav-link { width: 100%; padding: 12px 16px; font-size: 15px; background: rgba(14, 26, 48, 0.02); justify-content: flex-start; }
            
            .header-actions { width: auto; justify-content: flex-end; gap: 6px; }
            .user-badge span, .user-badge i { display: none; }
            .user-badge { padding: 6px; border-radius: 50%; }
            .user-dropdown { right: 20px; }
            
            .public-hero-section { height: auto; padding: 80px 20px; }
            .hero-content h1 { font-size: 38px; }
            .hero-content p { font-size: 16px; }
            .btn-group { flex-direction: column; gap: 12px; }
            .btn-filled, .btn-outline { width: 100%; padding: 12px; }
            .sobre-grid { grid-template-columns: 1fr; }
            .welcome-banner { padding: 24px; }
            .btn-onboarding { width: 100%; text-align: center; }
            .trail-grid { grid-template-columns: 1fr; gap: 16px; }
            .trail-header h2 { font-size: 26px; }
            .material-card { flex-direction: column; text-align: left; align-items: flex-start; gap: 16px; }
            .material-icon { align-self: flex-end; }
            .search-filter-wrapper { flex-direction: column; }
            .search-box { width: 100%; min-width: auto; }
            .filter-select { width: 100%; }
            .doc-card { flex-direction: column; align-items: flex-start; gap: 16px; }
            .doc-card-action { align-self: flex-end; }
            .agenda-layout { grid-template-columns: 1fr; }
            .event-card { flex-direction: column; }
            .event-date-box { border-right: none; border-bottom: 1px solid var(--outline); flex-direction: row; gap: 12px; padding: 12px 20px; justify-content: flex-start; }
            .event-date-box .day { font-size: 24px; }
            .event-date-box .month { margin-bottom: 0; }
            .admin-search-wrapper { max-width: 100%; }
            .search-wrapper-inline input { width: 100%; }
            .edu-layout { grid-template-columns: 1fr; }
        }
        /* ==========================================
       CARDS DO KANBAN ESTRATÉGICO
       ========================================== */
    .kanban-card {
        background: #fff;
        border: 1px solid var(--outline);
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 10px;
        cursor: grab;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        transition: transform 0.1s ease, box-shadow 0.1s ease;
        user-select: none;
    }
    .kanban-card:hover {
        box-shadow: 0 4px 6px rgba(0,0,0,0.08);
        border-color: #cbd5e1;
    }
    .kanban-card:active {
        cursor: grabbing;
        transform: scale(0.98) rotate(1deg);
    }
    .kanban-card h5 {
        margin: 0 0 10px 0;
        font-size: 13px;
        color: var(--text-navy);
        line-height: 1.4;
        font-weight: 600;
    }
    .kanban-card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
        padding-top: 8px;
        border-top: 1px dashed var(--outline);
        font-size: 11px;
    }
    /* Eixos Coloridos */
    .eixo-tag {
        font-size: 10px;
        font-weight: 800;
        padding: 3px 6px;
        border-radius: 4px;
        display: inline-block;
        margin-bottom: 8px;
        text-transform: uppercase;
    }
    .eixo-1 { background: #e0f2fe; color: #1e3a8a; } /* Gestão Locorregional */
    .eixo-2 { background: #dcfce7; color: #166534; } /* Atenção à Saúde */
    .eixo-3 { background: #fef9c3; color: #92400e; } /* Financeiro */
    .eixo-4 { background: #ffedd5; color: #9a3412; } /* Infraestrutura */
    .eixo-5 { background: #f3e8ff; color: #9d174d; } /* Educação/Info */
    .eixo-default { background: #f1f5f9; color: #475569; }

    /* Semáforo de Prazos */
    .deadline-badge {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 3px 6px;
        border-radius: 4px;
        font-weight: 700;
    }
    .dl-green { color: #16a34a; background: #f0fdf4; }
    .dl-yellow { color: #d97706; background: #fffbeb; }
    .dl-red { color: #dc2626; background: #fef2f2; border: 1px solid #fecaca;}
    .dl-gray { color: #64748b; background: #f8fafc; }

    /* Avatar da Lotação Responsável */
    .gerencia-avatar-mini {
        height: 22px;
        border-radius: 4px;
        background: var(--bg-creme);
        color: var(--color-teal);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 10px;
        padding: 0 6px;
        border: 1px solid var(--outline);
    }
    
    /* Efeito visual quando o card está pairando sobre a coluna */
    .kanban-column.drag-over {
        background: rgba(14,26,48,0.06) !important;
        border-color: var(--color-teal) !important;
    }
    /* ==========================================
       DRAWER LATERAL (AGL / AGR)
       ========================================== */
    .drawer-overlay {
        position: fixed; inset: 0; background: rgba(14, 26, 48, 0.4); backdrop-filter: blur(4px);
        z-index: 10050; display: none; opacity: 0; transition: opacity 0.3s ease; justify-content: flex-end;
    }
    .drawer-overlay.active { display: flex; opacity: 1; }
    .drawer-container {
        width: 100%; max-width: 600px; background: var(--bg-creme); height: 100vh;
        transform: translateX(100%); transition: transform 0.3s ease; display: flex; flex-direction: column;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    .drawer-overlay.active .drawer-container { transform: translateX(0); }
    
    .drawer-header { padding: 24px; border-bottom: 1px solid var(--outline); background: white; }
    .drawer-body { padding: 24px; overflow-y: auto; flex: 1; }
    .drawer-footer { padding: 20px 24px; border-top: 1px solid var(--outline); display: flex; gap: 12px; background: white; }
    
    .progress-wrapper { background: white; padding: 16px; border-radius: 12px; border: 1px solid var(--outline); margin-bottom: 20px; }
    .progress-bar-bg { background: #e2e8f0; height: 10px; border-radius: 5px; overflow: hidden; margin-top: 10px; }
    .progress-bar-fill { background: var(--color-teal); height: 100%; width: 0%; transition: width 0.4s ease; }
    
    .chk-list-item { display: flex; align-items: center; gap: 10px; padding: 12px; background: #fff; border: 1px solid var(--outline); border-radius: 8px; margin-bottom: 8px; transition: 0.2s; }
    .chk-list-item:hover { border-color: var(--color-teal); }
    .chk-list-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-teal); cursor: pointer; }
    .chk-add-wrapper { display: flex; gap: 8px; margin-top: 12px; }
    .chk-add-wrapper input { flex: 1; padding: 12px; border-radius: 8px; border: 1px solid var(--outline); font-size: 13px; font-family: 'Inter', sans-serif;}
    /* ==========================================
   GAVETA DE AÇÃO (DRAWER) - ESTILO PREMIUM
========================================== */
.drawer-overlay { position: fixed; inset: 0; background: rgba(14, 26, 48, 0.4); backdrop-filter: blur(4px); z-index: 10005; display: none; justify-content: flex-end; opacity: 0; transition: opacity 0.3s ease; }
.drawer-overlay.active { display: flex; opacity: 1; }
.drawer-container { width: 100%; max-width: 650px; background: white; height: 100vh; box-shadow: -10px 0 40px rgba(0,0,0,0.1); transform: translateX(100%); transition: transform 0.3s ease; display: flex; flex-direction: column; overflow: hidden; }
.drawer-overlay.active .drawer-container { transform: translateX(0); }

.drawer-header { padding: 24px 30px; border-bottom: 1px solid var(--outline); background: var(--bg-creme); display: flex; flex-direction: column; gap: 12px; }
.drawer-header-top { display: flex; justify-content: space-between; align-items: flex-start; }
.drawer-header h3 { margin: 0; font-size: 20px; color: var(--text-navy); font-weight: 800; line-height: 1.3; }
.btn-close-drawer { background: none; border: none; font-size: 24px; color: var(--muted); cursor: pointer; transition: 0.2s; padding: 0; }
.btn-close-drawer:hover { color: var(--color-burgundy); }

.drawer-body { flex: 1; overflow-y: auto; padding: 0; }
.drawer-section { padding: 24px 30px; border-bottom: 1px solid var(--outline); }
.drawer-section-title { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 16px 0; display: flex; align-items: center; gap: 8px; }

/* Grid de Dados */
.drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

/* Atividades / Checklist */
.atividades-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.atividade-item { display: flex; align-items: flex-start; gap: 12px; background: white; border: 1px solid var(--outline); padding: 16px; border-radius: 12px; transition: 0.2s; }
.atividade-item:hover { border-color: var(--color-teal); box-shadow: 0 4px 12px rgba(14,26,48,0.03); }
.atividade-item.concluida { background: #f8fafc; border-color: #e2e8f0; opacity: 0.8; }
.atividade-item.concluida .atividade-texto { text-decoration: line-through; color: var(--muted); }
.atv-check { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-teal); cursor: pointer; }
.atv-content { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.atividade-texto { font-size: 14px; font-weight: 600; color: var(--text-navy); border: none; outline: none; width: 100%; background: transparent; }
.atividade-texto:focus { border-bottom: 1px solid var(--color-teal); }
.atv-select { font-size: 12px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--outline); color: var(--muted); outline: none; }

/* Timeline / Acompanhamentos */
.timeline { display: flex; flex-direction: column; gap: 20px; padding-left: 10px; border-left: 2px solid var(--outline); margin-left: 15px; }
.timeline-item { position: relative; padding-left: 24px; }
.timeline-item::before { content: ''; position: absolute; left: -29px; top: 0; width: 32px; height: 32px; background: white; border-radius: 50%; }
.timeline-avatar { position: absolute; left: -27px; top: 2px; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--outline); z-index: 2; }
.timeline-content { background: #f8fafc; padding: 16px; border-radius: 12px; border: 1px solid var(--outline); }
.timeline-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12px; }
.timeline-autor { font-weight: 700; color: var(--text-navy); }
.timeline-data { color: var(--muted); }
.timeline-texto { font-size: 14px; color: var(--text-navy); margin: 0; line-height: 1.5; }

/* Input Comentário */
.chat-input-wrapper { display: flex; gap: 12px; margin-top: 20px; }
.chat-input-wrapper input { flex: 1; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--outline); font-size: 14px; outline: none; }
.chat-input-wrapper input:focus { border-color: var(--color-teal); }
.chat-input-wrapper button { background: var(--color-teal); color: white; border: none; padding: 0 20px; border-radius: 12px; cursor: pointer; transition: 0.2s; font-weight: 700; }
.chat-input-wrapper button:hover { background: #225a5e; }

.drawer-footer { padding: 20px 30px; border-top: 1px solid var(--outline); background: white; display: flex; justify-content: flex-end; gap: 12px; }
/* ==========================================
           CORREÇÃO DO ESTOURO DE TELA (KANBAN)
           ========================================== */
        /* 1. Impede que a tela estique além do monitor */
        .gv-content, .admin-content-area { 
            min-width: 0; 
        }
        
        #sub-view-kanban {
            width: 100%;
        }

        /* 2. Barra de rolagem horizontal premium para o Kanban */
        #sub-view-kanban::-webkit-scrollbar { 
            height: 12px; 
        }
        #sub-view-kanban::-webkit-scrollbar-track { 
            background: #f1f5f9; 
            border-radius: 8px; 
            border: 1px solid var(--outline);
        }
        #sub-view-kanban::-webkit-scrollbar-thumb { 
            background: #cbd5e1; 
            border-radius: 8px; 
        }
        #sub-view-kanban::-webkit-scrollbar-thumb:hover { 
            background: var(--color-teal); 
        }
      
      
/* ==========================================
   LAYOUT ELEGANTE E BALANCEADO
   ========================================== */
           
        /* 1. O Segredo para o Rodapé grudar no fundo e o branco sumir */
        body {
            display: flex !important;
            flex-direction: column !important;
            min-height: 100vh !important; /* Ocupa exatamente 100% da altura da tela */
        }
       /* O Flex: 1 força o conteúdo a crescer e empurrar o rodapé */
        #app-container, #landing-page {
            flex-direction: column !important;
            flex: 1 !important; 
        }
        /* MÁGICA: Só aplica o Flex elegante QUANDO a tela não estiver escondida pelo JavaScript */
        #landing-page[style*="display: block"], 
        #app-container[style*="display: block"] {
            display: flex !important;
        }
        main.container {
            flex: 1 !important; 
            width: 100%;
            max-width: 1600px !important; /* Largura ideal para não esticar os cards */
            margin: 0 auto !important;
            padding-top: 40px !important; /* Respiro elegante no topo */
            padding-bottom: 40px !important; 
        }

        /* 2. Cabeçalho e Títulos mais limpos */
        header { height: 65px !important; }
        .header-inner { height: 65px !important; }
        .logo-img { height: 38px !important; }
        .page-header-top { margin-top: 0 !important; margin-bottom: 30px !important; }
        .page-header-top h2 { font-size: 26px !important; margin-bottom: 8px !important; }

        /* 3. A MÁGICA CONTRA O "ESTICAMENTO" DOS CARDS */
        .bento-grid { 
            display: grid !important; 
            gap: 24px !important; 
            margin-bottom: 30px !important; 
        }
        
        /* Em telas de computador, força sempre 3 colunas. 
           Assim o card da "Diretoria" ocupa só 1/3 da tela e não estica! */
        @media (min-width: 1024px) {
            .bento-grid { 
                grid-template-columns: repeat(3, 1fr) !important; 
            }
        }

        /* 4. Estética dos Cards (Mais altinhos e elegantes) */
        .card { 
            padding: 24px !important; 
            gap: 12px !important; 
            display: flex; 
            flex-direction: column;
            justify-content: flex-start;
            border-radius: 14px !important;
            box-shadow: 0 4px 15px rgba(14, 26, 48, 0.03) !important;
        }
        .card h3 { font-size: 16px !important; margin: 0 !important; }
        .card p { font-size: 13px !important; line-height: 1.5 !important; margin: 0 !important; flex: 1; }
        .btn-module { margin-top: auto !important; padding: 10px 16px !important; font-size: 13px !important; }

        /* 5. Painéis Internos e Gerência */
        .gerencia-header { padding: 24px !important; margin-bottom: 30px !important; }
        .admin-box, .gv-tasks { padding: 24px !important; border-radius: 12px !important; }

        /* 6. Mantendo o Kanban compacto para não vazar a tela */
        .kanban-column { padding: 12px !important; border-radius: 10px !important; }
        .kanban-card { padding: 12px !important; margin-bottom: 10px !important; }

        /* 7. Rodapé bem resolvido */
        .site-footer { 
            margin-top: 0 !important; 
            padding: 30px 0 !important; 
        }
        /* ==========================================
           TELA CHEIA PARA KANBAN E PAINÉIS (EFEITO CAMALEÃO)
           ========================================== */
           
        main.container:has(#gerencia-view.active),
        main.container:has(#estrategia.active),
        main.container:has(#perfil.active) {
            max-width: 98% !important;
        }

        .gerencia-header, .admin-box, .gv-tasks {
            width: 100% !important;
        }
      /* ==========================================
           UI PREMIUM: HUB EXECUTIVO (SEGURO)
           ========================================== */

        /* 1. DIRETORIA: O Card Supremo 3D */
        #diretoriaGrid .card {
            display: grid !important;
            grid-template-columns: 100px 1fr auto !important;
            grid-template-areas: 
                "icon title tag"
                "icon subtitle tag"
                "icon desc desc"
                "icon vinculos vinculos";
            gap: 4px 24px !important;
            background: linear-gradient(135deg, var(--primary-navy) 0%, #172a4f 100%) !important;
            color: white !important;
            padding: 32px 40px !important;
            border: none !important;
            border-radius: 16px !important;
            box-shadow: 0 20px 40px rgba(14, 26, 48, 0.15) !important;
        }
        #diretoriaGrid .card-icon { 
            grid-area: icon; 
            width: 100px !important; height: 100px !important; 
            border-radius: 16px !important; 
            background: rgba(255,255,255,0.05) !important; 
            border: 1px solid rgba(255,255,255,0.1) !important;
            margin: 0 !important; font-size: 36px !important;
        }
        #diretoriaGrid .card h3 { grid-area: title; color: white !important; font-size: 28px !important; align-self: end; margin:0 !important;}
        #diretoriaGrid .card h4 { grid-area: subtitle; color: var(--color-ocre) !important; font-size: 15px !important; align-self: start; margin: 0 !important; }
        #diretoriaGrid .card p { grid-area: desc; color: rgba(255,255,255,0.7) !important; font-size: 14px !important; margin: 8px 0 0 0 !important; }
        #diretoriaGrid .card-tag { 
            grid-area: tag; position: static !important; align-self: start; 
            background: rgba(216, 151, 60, 0.15) !important; color: var(--color-ocre) !important; border: 1px solid rgba(216, 151, 60, 0.3) !important;
        }

     /* ==========================================
           CARROSSEL HORIZONTAL: CARDS CORRIGIDOS
           ========================================== */
           
        /* 1. Contêiner de Rolagem para Internas e Externas */
        .grid-internas, .grid-externas {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            overflow-x: auto !important;
            gap: 20px !important;
            padding-bottom: 24px !important;
            align-items: stretch !important; /* Faz todos os cards da mesma fila terem a mesma altura final */
        }

        /* 2. O Molde Base: Livres para respirar */
        .grid-internas .card, .grid-externas .card {
            flex: 0 0 auto !important;
            width: 280px !important;  
            min-height: 220px !important; /* Permite crescer se o texto for muito grande */
            height: auto !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: flex-start !important;
            justify-content: flex-start !important;
            padding: 24px 20px !important;
            background: white !important;
            border-radius: 12px !important;
            box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
            transition: transform 0.2s ease, box-shadow 0.2s ease !important;
            position: relative !important; /* Necessário para a tag flutuante */
        }

        .grid-internas .card:hover, .grid-externas .card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(14,26,48,0.08) !important;
        }

        /* 3. Ícones padronizados */
        .grid-internas .card-icon, .grid-externas .card-icon {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 48px !important; 
            height: 48px !important;
            font-size: 20px !important;
            border-radius: 10px !important;
            margin: 0 0 16px 0 !important; 
        }

        /* 4. MÁGICA DA TAG: Flutuando no canto superior direito */
        .grid-internas .card-tag, .grid-externas .card-tag {
            position: absolute !important;
            top: 20px !important;
            right: 20px !important;
            margin: 0 !important;
            font-size: 10px !important;
        }

        /* 5. Textos Livres (Sem cortes bizarros) */
        .grid-internas .card h3, .grid-externas .card h3 {
            font-size: 16px !important;
            font-weight: bold !important;
            margin: 0 0 8px 0 !important;
            line-height: 1.3 !important;
            color: var(--text-navy) !important;
            display: block !important; /* Remove o causador do corte */
        }
        
        /* Libera a descrição que estava escondida */
        .grid-internas .card p, .grid-externas .card p,
        .grid-internas .card h4, .grid-externas .card h4 {
            font-size: 13px !important;
            color: var(--muted) !important;
            margin: 0 !important;
            line-height: 1.4 !important;
            display: block !important; 
        }

        /* 6. A Diferença Visual Sutil */
        .grid-internas .card { border: 1px solid var(--outline) !important; border-top: 4px solid var(--color-teal) !important; }
        .grid-internas .card-icon { background: #f0fdf4 !important; color: var(--color-teal) !important; }

        .grid-externas .card { border: 1px dashed #cbd5e1 !important; border-top: 4px solid var(--color-ocre) !important; }
        .grid-externas .card-icon { background: #fffbeb !important; color: var(--color-ocre) !important; }

        /* 7. Barra de Rolagem Lateral Oculta/Elegante */
        .grid-internas::-webkit-scrollbar, .grid-externas::-webkit-scrollbar { height: 8px; }
        .grid-internas::-webkit-scrollbar-track, .grid-externas::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 8px; }
        .grid-internas::-webkit-scrollbar-thumb, .grid-externas::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
        .grid-internas::-webkit-scrollbar-thumb:hover, .grid-externas::-webkit-scrollbar-thumb:hover { background: var(--color-teal); }
        /* ==========================================
           LÓGICA VISUAL: INATIVAS NO FINAL (CORRIGIDO)
           ========================================== */
           
        /* O "embrulho" inteiro vai pro final da fila */
        .wrapper-inativo {
            order: 99 !important; 
            opacity: 0.65 !important; 
            filter: grayscale(0.8) !important; 
            transition: all 0.3s ease !important;
        }
        
        .wrapper-inativo:hover {
            opacity: 1 !important; 
            filter: grayscale(0) !important;
        }
        
        /* ==========================================
           FASE 2: UX HUB DA GERÊNCIA E NÚCLEOS
           ========================================== */

        /* 1. Ajustes da Nova Barra Lateral Agrupada */
        .gv-sidebar ul { list-style: none; padding: 0; margin: 0; }
        .gv-sidebar .gv-tab { 
            margin-bottom: 4px; 
            border-radius: 8px;
        }

        /* 2. Pílulas de Contexto (Filtros do Kanban) */
        .filtros-contexto-container::-webkit-scrollbar { height: 4px; }
        .filtros-contexto-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
        
        .btn-context {
            background: white;
            border: 1px solid var(--outline);
            color: var(--muted);
            padding: 8px 16px;
            border-radius: 20px; /* Borda bem arredondada estilo "Chip" */
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.02);
        }
        .btn-context:hover {
            border-color: #94a3b8;
            color: var(--text-navy);
            background: #f8fafc;
            transform: translateY(-1px);
        }
        .btn-context.active {
            background: var(--color-teal);
            color: white;
            border-color: var(--color-teal);
            box-shadow: 0 4px 10px rgba(43, 112, 117, 0.25);
        }

        /* 3. Widgets do Novo Dashboard (Visão Geral) */
        .widget-card {
            background: white;
            border: 1px solid var(--outline);
            border-radius: 12px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            box-shadow: 0 4px 15px rgba(0,0,0,0.02);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            position: relative;
            overflow: hidden;
        }
        .widget-card:hover { 
            transform: translateY(-4px); 
            box-shadow: 0 12px 25px rgba(14,26,48,0.06); 
            border-color: var(--color-teal);
        }
        .widget-icon {
            width: 40px; height: 40px; 
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 18px; margin-bottom: 16px;
        }
        .widget-title { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; margin: 0 0 4px 0; letter-spacing: 0.5px; }
        .widget-value { font-size: 32px; font-weight: 800; color: var(--text-navy); margin: 0; line-height: 1; }
        
        /* Barra de progresso para a saúde dos Núcleos */
        .widget-progress-bg { background: #f1f5f9; height: 6px; border-radius: 3px; margin-top: 16px; overflow: hidden; width: 100%; }
        .widget-progress-fill { height: 100%; border-radius: 3px; transition: width 0.8s ease-out; }

       /* ==========================================
           FASE 2: GAVETA SPLIT-VIEW 2.0 (DESIGN PREMIUM)
           ========================================== */

        /* Gaveta Executiva (Mais Larga para 2 Colunas) */
        .drawer-large { width: 1000px !important; max-width: 95vw !important; }

        /* 1. O Cabeçalho Fixo (Hero) */
        .drawer-header-hero {
            background: white; padding: 24px 32px; border-bottom: 1px solid var(--outline);
            position: sticky; top: 0; z-index: 10;
        }
        .hero-title-input {
            width: 100%; font-size: 24px; font-weight: 800; color: var(--text-navy);
            border: none; background: transparent; resize: none;
            padding: 0; margin: 16px 0; line-height: 1.3; outline: none; font-family: inherit;
        }
        .hero-title-input::placeholder { color: #cbd5e1; font-weight: 600; }
        
        .hero-meta-bar { display: flex; gap: 32px; flex-wrap: wrap; }
        .meta-item { display: flex; flex-direction: column; gap: 4px; }
        .meta-item label { font-size: 10px; font-weight: 800; color: var(--muted); text-transform: uppercase; margin: 0; letter-spacing: 0.5px;}
        .meta-select {
            border: 1px solid transparent; background: transparent; font-size: 14px; font-weight: 700; color: var(--color-teal);
            padding: 4px 0; cursor: pointer; outline: none; font-family: inherit;
        }
        .meta-select:hover, .meta-select:focus { border-bottom: 1px dashed var(--color-teal); }

        /* 2. O Corpo Dividido (Split-View) */
        .drawer-split-body {
            display: flex; flex-direction: row; padding: 0; overflow-y: auto; height: calc(100vh - 180px);
        }
        .drawer-col-left { flex: 1; padding: 32px; border-right: 1px solid var(--outline); }
        .drawer-col-right { flex: 1; padding: 32px; background: #fafafa; }
        
        @media (max-width: 768px) {
            .drawer-split-body { flex-direction: column; }
            .drawer-col-left { border-right: none; border-bottom: 1px solid var(--outline); }
        }

        /* 3. Estética "Notion" para Caixas de Texto (A Mágica) */
        .premium-input, .premium-textarea {
            width: 100%; border: 1px solid #e2e8f0; background: #f8fafc;
            border-radius: 8px; padding: 12px 16px; font-family: inherit; font-size: 13px; color: var(--text-navy);
            transition: all 0.2s ease; outline: none; box-sizing: border-box;
        }
        .premium-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
        .premium-input:focus, .premium-textarea:focus {
            background: white; border-color: var(--color-teal); box-shadow: 0 0 0 3px rgba(43, 112, 117, 0.1);
        }

        /* 4. Acordeão (Detalhes Avançados) */
        .advanced-details-accordion {
            background: white; border: 1px solid var(--outline); border-radius: 8px; margin-top: 24px; overflow: hidden; transition: all 0.3s ease;
        }
        .advanced-details-accordion summary {
            padding: 16px; font-weight: 700; font-size: 13px; color: var(--text-navy); cursor: pointer; background: #f8fafc; list-style: none; display: flex; align-items: center; gap: 8px;
        }
        .advanced-details-accordion summary::-webkit-details-marker { display: none; }
        .accordion-content { padding: 20px; border-top: 1px solid var(--outline); display: flex; flex-direction: column; gap: 16px; }

        /* 5. Smart Chips */
        .smart-chips-wrapper {
            display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 1px solid #e2e8f0; padding: 8px 12px; border-radius: 8px; background: #f8fafc; min-height: 44px; transition: all 0.2s ease;
        }
        .smart-chips-wrapper:focus-within { background: white; border-color: var(--color-teal); box-shadow: 0 0 0 3px rgba(43, 112, 117, 0.1); }
        .chips-container { display: flex; flex-wrap: wrap; gap: 6px; }
        .smart-chip {
            background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; padding: 4px 10px 4px 12px; border-radius: 16px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px;
        }
        #chips-nucleos-container .smart-chip { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
        #chips-indicadores-container .smart-chip { background: #fef3c7; color: #92400e; border-color: #fde68a; }
        .chip-remove { background: transparent; border: none; color: inherit; opacity: 0.6; cursor: pointer; font-size: 12px; padding: 0; display: flex; }
        .chip-remove:hover { opacity: 1; color: #dc2626; }
        .chip-input-text, .chip-input-select { border: none; background: transparent; outline: none; flex: 1; min-width: 140px; font-size: 13px; padding: 4px 0; color: var(--text-navy); font-family: inherit; }

        /* 6. Progresso e GESTÃO DE ETAPAS (Micro-Cards) */
        .progress-bar-container { margin-bottom: 24px; background: white; padding: 16px; border-radius: 8px; border: 1px solid var(--outline); box-shadow: 0 2px 5px rgba(0,0,0,0.02);}
        .progress-track { background: #e2e8f0; height: 8px; border-radius: 4px; overflow: hidden; }
        .progress-fill { background: var(--color-teal); height: 100%; width: 0%; transition: width 0.4s ease; }

        .atividades-list-pro { display: flex; flex-direction: column; gap: 12px; }
        .atividade-pro-item {
            background: white; border: 1px solid var(--outline); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: all 0.2s ease; position: relative; box-shadow: 0 2px 6px rgba(0,0,0,0.02);
        }
        .atividade-pro-item:hover { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(14,26,48,0.06); }
        
        .atv-pro-linha1 { display: flex; align-items: flex-start; gap: 12px; }
        .atv-pro-titulo { border: none; background: transparent; font-size: 14px; font-weight: 600; color: var(--text-navy); flex: 1; outline: none; resize: none; font-family: inherit; line-height: 1.4;}
        .atv-pro-titulo:focus { border-bottom: 1px dashed var(--outline); }
        
        .atv-pro-linha2 { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
        
        /* Select de Status Customizado */
        .atv-status-select {
            padding: 4px 12px; border-radius: 16px; font-size: 11px; font-weight: 800; text-transform: uppercase; cursor: pointer; outline: none; font-family: inherit; appearance: none; -webkit-appearance: none; border: 1px solid var(--outline); background: #f8fafc; color: var(--text-navy);
        }
        
        /* Input de Andamento Direto na Etapa */
        .atv-andamento-input {
            flex: 1; min-width: 200px; font-size: 12px; padding: 6px 12px; border-radius: 6px; border: 1px dashed var(--outline); background: #fafafa; color: var(--text-navy); outline: none; font-family: inherit;
        }
        .atv-andamento-input:focus { border-style: solid; border-color: var(--color-teal); background: white; }

        .atv-pro-meta { font-size: 11px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--outline); background: #f8fafc; display: flex; align-items: center; gap: 6px; }
        .atv-pro-select, .atv-pro-date { border: none; background: transparent; outline: none; font-size: 11px; color: var(--text-navy); font-weight: 600; cursor:pointer; font-family: inherit;}

        /* ESTADOS VISUAIS DA ETAPA (MÁGICA DO CSS) */
        .atividade-cancelada { opacity: 0.5; background: #f8fafc; filter: grayscale(1); }
        .atividade-cancelada .atv-pro-titulo { text-decoration: line-through; color: var(--muted); }
        
        .prazo-atrasado { color: #dc2626 !important; font-weight: 800 !important; background: #fef2f2 !important; border-color: #fecaca !important;}
        .prazo-continuo { color: #0369a1 !important; font-weight: 800 !important; background: #e0f2fe !important; border-color: #bae6fd !important;}

        /* 7. Hover Actions */
        .hover-actions-btn { background: transparent; border: none; color: var(--muted); cursor: pointer; font-size: 14px; transition: color 0.2s; padding: 4px;}
        .hover-actions-btn:hover { color: #dc2626; }
        .timeline-item { position: relative; padding-right: 30px; }
        .timeline-actions { position: absolute; top: 0; right: 0; display: none; gap: 4px; background: white; padding: 4px 8px; border-radius: 4px; border: 1px solid var(--outline); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
        .timeline-item:hover .timeline-actions { display: flex; }
        
        /* Correções da Ficha - Scroll de Atividades e Layout */
.atividades-scroll-area {
    display: flex; flex-direction: column; gap: 12px;
    max-height: 400px; /* Limita a altura */
    overflow-y: auto; padding-right: 5px;
}
.atividades-scroll-area::-webkit-scrollbar { width: 6px; }
.atividades-scroll-area::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.atividades-scroll-area .atividade-pro-item {
    background: white; border: 1px solid var(--outline); border-radius: 10px; padding: 16px;
    display: flex; flex-direction: column; gap: 12px; transition: all 0.2s ease;
}
/* Scroll de Atividades */
.atividades-scroll-area {
    display: flex; flex-direction: column; gap: 12px;
    max-height: 400px;
    overflow-y: auto; padding-right: 5px;
}
.atividades-scroll-area::-webkit-scrollbar { width: 6px; }
.atividades-scroll-area::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
/* ==========================================
   CARDS DE ATIVIDADE E HISTÓRICO INTERNO
   ========================================== */
.atividades-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }

.atv-card {
    background: white; border: 1px solid var(--outline); border-radius: 10px; padding: 16px;
    cursor: pointer; transition: all 0.2s ease; display: flex; flex-direction: column; gap: 12px;
    position: relative; box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.atv-card:hover { border-color: var(--color-teal); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(14,26,48,0.06); }

.atv-card-header { display: flex; justify-content: space-between; align-items: center; }
.atv-card-title { font-size: 14px; font-weight: 700; color: var(--text-navy); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.atv-card-footer { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); border-top: 1px dashed var(--outline); padding-top: 12px; margin-top: auto; }

.hist-item { background: #f8fafc; border: 1px solid var(--outline); padding: 10px 12px; border-radius: 8px; position: relative; }
.hist-item-header { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-bottom: 4px; font-weight: 700; text-transform: uppercase; }
.hist-item-text { font-size: 13px; color: var(--text-navy); margin: 0; line-height: 1.4; }
.hist-item-delete { position: absolute; top: 8px; right: 8px; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 12px; display: none;}
.hist-item:hover .hist-item-delete { display: block; color: #dc2626; }

/* ==========================================
   CARDS DAS PASTAS DE TRABALHO (DRIVE MINIMALISTA)
========================================== */
.folder-card-minimal {
    background: white; border: 1px solid var(--outline); border-radius: 12px; padding: 16px;
    display: flex; align-items: center; gap: 16px; cursor: pointer; transition: all 0.2s ease;
    position: relative; box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.folder-card-minimal:hover {
    background: #f8fafc; border-color: #cbd5e1; box-shadow: 0 6px 15px rgba(14,26,48,0.05);
}
.file-icon-minimal {
    font-size: 24px; display: flex; align-items: center; justify-content: center;
}
.file-word { color: #2563eb; }    /* Azul Word/Docs */
.file-excel { color: #16a34a; }   /* Verde Excel/Sheets */
.file-pdf { color: #dc2626; }     /* Vermelho PDF */
.file-image { color: #d97706; }   /* Laranja Imagens */
.file-generic { color: #64748b; } /* Cinza Genérico */
.folder-icon-minimal {
    font-size: 24px; color: #94a3b8; /* Cor cinza clássica de pasta */
    display: flex; align-items: center; justify-content: center;
}
.folder-title-minimal {
    flex: 1; font-size: 14px; font-weight: 600; color: var(--text-navy);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.folder-kebab-btn {
    background: transparent; border: none; color: var(--muted); font-size: 16px;
    padding: 8px 12px; border-radius: 50%; cursor: pointer; transition: 0.2s;
}
.folder-kebab-btn:hover { background: rgba(14,26,48,0.05); color: var(--text-navy); }

/* Menu Flutuante dos 3 pontinhos */
.folder-dropdown-menu {
    position: absolute; top: calc(100% - 10px); right: 16px; background: white;
    border: 1px solid var(--outline); border-radius: 8px; box-shadow: 0 10px 25px rgba(14,26,48,0.15);
    width: 240px; z-index: 100; display: none; flex-direction: column; padding: 8px 0;
}
.folder-dropdown-menu.active { display: flex; animation: fadeIn 0.2s ease; }
.folder-dropdown-item {
    padding: 10px 16px; font-size: 13px; color: var(--text-navy); font-weight: 600;
    display: flex; align-items: center; gap: 10px; cursor: pointer; border: none; background: transparent; width: 100%; text-align: left; transition: 0.2s;
}
.folder-dropdown-item:hover { background: #f1f5f9; color: var(--color-teal); }
.folder-dropdown-item.danger:hover { background: #fef2f2; color: #dc2626; }
.folder-dropdown-divider { height: 1px; background: var(--outline); margin: 4px 0; }

/* Cabeçalho de informações dentro do menu */
.folder-meta-info {
    padding: 12px 16px; background: #f8fafc; font-size: 11px; color: var(--muted);
    border-bottom: 1px solid var(--outline); margin-top: -8px; margin-bottom: 4px; line-height: 1.6;
}

/* ==========================================
   MEGA DASHBOARDS V3 - ULTRA PREMIUM
========================================== */
.mega-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.mega-bento-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(14,26,48,0.08);
    border: 1px solid rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}
.mega-bento-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(14,26,48,0.12);
}
.mega-icon-glow {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px -6px currentcolor;
}
.mega-bento-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mega-bento-value {
    font-size: 46px;
    font-weight: 900;
    color: var(--text-navy);
    line-height: 1.1;
    margin-top: 4px;
    letter-spacing: -1px;
}
.mega-bg-shape {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 140px;
    opacity: 0.04;
    z-index: -1;
    transform: rotate(-15deg);
    transition: transform 0.6s ease;
}
.mega-bento-card:hover .mega-bg-shape {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.08;
}
.mega-chart-container {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 40px -10px rgba(14,26,48,0.08);
    border: 1px solid rgba(255,255,255,0.8);
    transition: box-shadow 0.3s ease;
}
.mega-chart-container:hover {
    box-shadow: 0 15px 40px -10px rgba(14,26,48,0.12);
}

/* ==========================================
   GALERIA DE TEMPLATES E EDITOR DE FERRAMENTAS
========================================== */
.template-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.template-card { border: 1px solid var(--outline); border-radius: 12px; padding: 24px 20px; text-align: center; cursor: pointer; transition: all 0.2s ease; background: white; }
.template-card:hover { border-color: var(--color-teal); transform: translateY(-4px); box-shadow: 0 10px 25px rgba(14,26,48,0.06); }
.template-card-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; }

.fofa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; height: calc(100vh - 160px); }
.fofa-quadrant { display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--outline); overflow: hidden; background: white; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.fofa-header { padding: 14px 20px; font-weight: 800; text-transform: uppercase; font-size: 13px; color: white; display: flex; align-items: center; gap: 10px; letter-spacing: 0.5px;}
.fofa-body { padding: 20px; flex: 1; display: flex; }
.fofa-textarea { flex: 1; width: 100%; border: none; resize: none; outline: none; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text-navy); line-height: 1.6; background: transparent;}
.fofa-textarea::placeholder { color: #cbd5e1; font-weight: 500;}

/* --- VISUALIZAÇÃO SOMENTE LEITURA DAS FERRAMENTAS --- */
.fofa-view-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fofa-view-quadrant { display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--outline); overflow: hidden; background: white; box-shadow: 0 4px 10px rgba(0,0,0,0.02); min-height: 200px; }
.fofa-view-header { padding: 14px 20px; font-weight: 800; text-transform: uppercase; font-size: 13px; color: white; display: flex; align-items: center; gap: 10px; letter-spacing: 0.5px; }
.fofa-view-body { padding: 20px; flex: 1; font-size: 14px; color: var(--text-navy); line-height: 1.6; white-space: pre-wrap; }
.fofa-view-empty { color: var(--muted); font-style: italic; font-size: 13px; }


/* ==========================================
   ESTILOS PREMIUM: FERRAMENTAS DE GESTÃO (PACOTES 1 e 2)
   ========================================== */

/* MATRIZ GUT & BASICO */
.gut-table-wrapper { width: 100%; overflow-x: auto; background: white; border: 1px solid var(--outline); border-radius: 12px; }
.gut-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.gut-table th { background: #f8fafc; padding: 14px; text-align: left; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; border-bottom: 2px solid var(--outline); }
.gut-table td { padding: 12px 14px; border-bottom: 1px solid var(--outline); vertical-align: middle; }
.gut-input-txt { width: 100%; border: 1px solid #e2e8f0; border-radius: 6px; padding: 10px; font-family: 'Inter', sans-serif; font-size: 14px; outline: none; background: #f8fafc; transition: 0.2s; }
.gut-input-txt:focus { background: white; border-color: var(--color-teal); }
.gut-select { border: 1px solid #e2e8f0; border-radius: 6px; padding: 8px; font-weight: 700; font-family: 'Inter', sans-serif; color: var(--text-navy); outline: none; cursor: pointer; }
.gut-score-badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 900; font-size: 16px; color: white; background: var(--muted); transition: background 0.3s; }

/* PLANO 5W2H */
.w2h-container { display: flex; flex-direction: column; gap: 20px; }
.w2h-card { background: white; border: 1px solid var(--outline); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); transition: 0.3s; }
.w2h-card:hover { border-color: var(--color-teal); box-shadow: 0 10px 20px -5px rgba(0,0,0,0.05); }
.w2h-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: #f8fafc; border-bottom: 1px solid var(--outline); }
.w2h-header h4 { margin: 0; font-size: 14px; color: var(--text-navy); display: flex; align-items: center; gap: 8px; }
.w2h-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding: 20px; }
.w2h-field { display: flex; flex-direction: column; gap: 6px; }
.w2h-field label { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; }
.w2h-field input, .w2h-field textarea { width: 100%; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; font-family: 'Inter', sans-serif; font-size: 13px; outline: none; background: #f8fafc; transition: 0.2s; resize: vertical; }
.w2h-field input:focus, .w2h-field textarea:focus { background: white; border-color: var(--color-teal); }
.w2h-field.full-width { grid-column: 1 / -1; }

/* MATRIZ EISENHOWER */
.eisenhower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; height: calc(100vh - 160px); }
.eisenhower-quadrant { display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--outline); overflow: hidden; background: white; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.eisenhower-header { padding: 16px 20px; font-weight: 800; text-transform: uppercase; font-size: 12px; color: white; display: flex; justify-content: space-between; align-items: center; letter-spacing: 0.5px; }
.eisenhower-body { padding: 20px; flex: 1; display: flex; }
.eisenhower-textarea { flex: 1; width: 100%; border: none; resize: none; outline: none; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text-navy); line-height: 1.6; background: transparent; }

.eis-q1 { background: linear-gradient(135deg, #ef4444, #dc2626); }
.eis-q2 { background: linear-gradient(135deg, #10b981, #059669); }
.eis-q3 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.eis-q4 { background: linear-gradient(135deg, #64748b, #475569); }

/* ISHIKAWA */
.ishikawa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ish-box { background: white; border: 1px solid var(--outline); border-radius: 12px; padding: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); }
.ish-box h4 { margin: 0 0 12px; font-size: 14px; color: var(--text-navy); display: flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--outline); padding-bottom: 8px; }

/* ÁRVORE DE PROBLEMAS */
.arvore-container { display: flex; flex-direction: column; gap: 20px; max-width: 800px; margin: 0 auto; }
.arvore-box { border: 2px dashed var(--outline); border-radius: 12px; padding: 20px; background: white; text-align: center; }
.arvore-box.problema { border: 2px solid #dc2626; background: #fef2f2; }
.arvore-box h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* BSC - BALANCED SCORECARD */
.bsc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; height: calc(100vh - 180px); }

/* PESTEL */
.pestel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ==========================================
   MÓDULO: APICE ACADEMY (VITRINE ESTILO NETFLIX/SYMPLA)
========================================== */
.academy-nav { display: flex; gap: 12px; margin-bottom: 30px; border-bottom: 1px solid var(--outline); padding-bottom: 16px; overflow-x: auto; }
.academy-nav-btn { background: transparent; border: none; font-size: 14px; font-weight: 700; color: var(--muted); padding: 8px 16px; border-radius: 20px; cursor: pointer; transition: 0.3s; white-space: nowrap; }
.academy-nav-btn:hover { color: var(--text-navy); background: rgba(14, 26, 48, 0.03); }
.academy-nav-btn.active { background: var(--text-navy); color: white; box-shadow: 0 4px 10px rgba(14, 26, 48, 0.15); }

.academy-hero { background: linear-gradient(135deg, #0e1a30 0%, #1e3a8a 100%); border-radius: 20px; padding: 40px; color: white; display: flex; gap: 30px; align-items: center; margin-bottom: 40px; position: relative; overflow: hidden; box-shadow: 0 15px 35px rgba(14, 26, 48, 0.2); }
.academy-hero::after { content: ''; position: absolute; right: -50px; bottom: -50px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(43, 112, 117, 0.4) 0%, transparent 70%); pointer-events: none; }
.academy-hero-content { flex: 1; z-index: 2; }
.academy-hero-tag { display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; backdrop-filter: blur(4px); }
.academy-hero h2 { font-size: 36px; font-weight: 900; margin: 0 0 12px 0; line-height: 1.1; letter-spacing: -1px; }
.academy-hero p { font-size: 15px; color: rgba(255,255,255,0.8); line-height: 1.6; max-width: 600px; margin: 0 0 24px 0; }
.academy-hero-image { width: 300px; height: 200px; border-radius: 12px; object-fit: cover; box-shadow: 0 10px 25px rgba(0,0,0,0.3); z-index: 2; border: 2px solid rgba(255,255,255,0.1); display: none; }

@media (min-width: 900px) { .academy-hero-image { display: block; } }

.academy-section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; margin-top: 40px; }
.academy-section-header h3 { margin: 0; font-size: 20px; color: var(--text-navy); font-weight: 800; display: flex; align-items: center; gap: 8px; }

.academy-carousel { display: flex; overflow-x: auto; gap: 20px; padding-bottom: 24px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.academy-carousel::-webkit-scrollbar { height: 8px; }
.academy-carousel::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; }

.edu-card { flex: 0 0 300px; background: white; border: 1px solid var(--outline); border-radius: 16px; overflow: hidden; transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; position: relative; display: flex; flex-direction: column; scroll-snap-align: start; }
.edu-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(14, 26, 48, 0.1); border-color: var(--color-teal); }

.edu-card-capa { height: 140px; background: #f1f5f9; position: relative; overflow: hidden; }
.edu-card-capa img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.edu-card:hover .edu-card-capa img { transform: scale(1.05); }
.edu-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(14,26,48,0.8) 100%); }

.mod-badge { position: absolute; top: 12px; left: 12px; font-size: 10px; font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); letter-spacing: 0.5px; z-index: 2; }
.mod-ead { background: linear-gradient(135deg, #0ea5e9, #0284c7); color: white; }
.mod-presencial { background: linear-gradient(135deg, #f59e0b, #b45309); color: white; }
.mod-hibrido { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: white; }

.edu-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.edu-card-tipo { font-size: 11px; font-weight: 700; color: var(--color-teal); text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.5px; }
.edu-card-title { font-size: 16px; font-weight: 800; color: var(--text-navy); margin: 0 0 8px 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.edu-card-gerencia { font-size: 12px; color: var(--muted); margin: 0 0 16px 0; display: flex; align-items: center; gap: 6px; }

.edu-card-footer { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--outline); display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.edu-card-action { color: var(--color-ocre); transition: 0.2s; }
.edu-card:hover .edu-card-action { transform: translateX(4px); }

#playerContainer {
    width: 100% !important;
    height: 400px !important; 
    min-height: 400px !important;
    background: #000 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 20px;
}
#playerContainer iframe {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

/* --- ESTRUTURA DE ÁRVORE / ACORDEÃO DO CURSO --- */
.lms-module-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #1e293b;
}

.lms-module-header {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    background: #172033;
    transition: background 0.2s;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lms-module-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.lms-module-header .module-arrow {
    margin-left: auto;
    font-size: 11px;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

/* Roda a seta para cima quando o módulo estiver aberto */
.lms-module-group.open .lms-module-header .module-arrow {
    transform: rotate(180deg);
}

/* O conteúdo (arquivos) fica oculto por padrão com max-height: 0 */
.lms-module-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background: #0f172a;
}

/* Quando ganha a classe .open, expande suavemente */
.lms-module-group.open .lms-module-content {
    max-height: 1000px; 
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 12px 16px 12px 28px;
    color: #cbd5e1;
    font-size: 13px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: 0.2s;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: white;
}

.playlist-item.active {
    background: rgba(56, 189, 248, 0.1);
    border-left-color: #38bdf8;
    color: #38bdf8;
    font-weight: 600;
}

.playlist-item i {
    margin-right: 10px;
    font-size: 14px;
}

/* ==========================================
   COMMAND CENTER V3 - UI PREMIUM & EDITORIAL
========================================== */

/* 1. HEADER EXECUTIVO */
.cmd-header-exec {
    background: linear-gradient(135deg, #0E1A30 0%, #1A2D4F 100%);
    border-radius: 20px;
    padding: 32px 36px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 16px; /* Puxado mais para cima, eliminando o vão */
    margin-bottom: 32px;
    box-shadow: 0 15px 35px rgba(14, 26, 48, 0.12);
    position: relative;
    overflow: hidden;
}
.cmd-header-exec::after {
    content: '';
    position: absolute; right: -40px; bottom: -40px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(216, 151, 60, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.cmd-badge-exec {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}
.cmd-greeting-box h2 { font-size: 26px; font-weight: 800; margin: 0 0 6px 0; letter-spacing: -0.5px; color: white;}
.cmd-greeting-box p { font-size: 14px; color: rgba(255,255,255,0.7); margin: 0; line-height: 1.4; }

.cmd-btn-primary {
    background-color: var(--color-ocre);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 6px 16px rgba(216, 151, 60, 0.25);
    white-space: nowrap;
    border: 2px solid var(--color-ocre);
    text-decoration: none;
    position: relative;
    z-index: 2;
}
.cmd-btn-primary:hover { background-color: #f3ae4e; border-color: #f3ae4e; transform: translateY(-2px); color: white; }

@media (max-width: 900px) {
    .cmd-header-exec { flex-direction: column; text-align: center; align-items: stretch; padding: 24px; }
    .cmd-btn-primary { width: 100%; justify-content: center; }
}

/* 2. TÍTULOS DE SEÇÃO */
.cmd-section-heading { margin-bottom: 16px; }
.cmd-section-heading h3 { font-size: 16px; font-weight: 800; color: var(--text-navy); margin: 0 0 2px 0; display: flex; align-items: center; gap: 8px; }
.cmd-section-heading span { font-size: 12px; color: var(--muted); }

/* 3. LAYOUT SPLIT (50/50) */
.cmd-bottom-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 60px;
}
@media (max-width: 900px) {
    .cmd-bottom-split-grid { grid-template-columns: 1fr; }
}

/* 4. CARDS DE NAVEGAÇÃO PRINCIPAL */
.cmd-workspace-cards.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 600px) {
    .cmd-workspace-cards.grid-2-cols { grid-template-columns: 1fr; }
}

.cmd-work-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(14, 26, 48, 0.06);
    box-shadow: 0 4px 20px rgba(14, 26, 48, 0.02);
    position: relative;
}
.cmd-work-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-teal);
    box-shadow: 0 12px 30px rgba(14, 26, 48, 0.07);
}
.cmd-work-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.cmd-work-info { flex: 1; }
.cmd-work-info h4 { font-size: 15px; font-weight: 800; color: var(--text-navy); margin: 0 0 2px 0; }
.cmd-work-info p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.4; }
.cmd-work-arrow { font-size: 12px; color: #cbd5e1; margin-left: auto; transition: transform 0.2s, color 0.2s; }
.cmd-work-card:hover .cmd-work-arrow { transform: translateX(4px); color: var(--color-teal); }

/* 5. CARDS DE ACESSO RÁPIDO (CHIPS GIGANTES) */
.cmd-quick-chips-vertical {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.quick-chip-large {
    background: white;
    border: 1px solid rgba(14, 26, 48, 0.06);
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(14, 26, 48, 0.02);
    cursor: pointer;
}
.quick-chip-large:hover {
    transform: translateY(-4px);
    border-color: var(--color-burgundy);
    box-shadow: 0 12px 25px rgba(14, 26, 48, 0.06);
}
.quick-chip-large .chip-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.quick-chip-large .chip-text { flex: 1; }
.quick-chip-large .chip-text h4 { margin: 0 0 4px 0; font-size: 16px; font-weight: 800; color: var(--text-navy); }
.quick-chip-large .chip-text p { margin: 0; font-size: 13px; color: var(--muted); }
.quick-chip-large .chip-arrow { font-size: 14px; color: #cbd5e1; margin-left: auto; transition: color 0.2s; }
.quick-chip-large:hover .chip-arrow { color: var(--color-burgundy); }

/* ==========================================
   AJUSTES DO MURAL INTERNO (CARROSSEL MENOR)
========================================== */
.internal-mural .news-slide {
    height: 220px !important; /* Bem mais fino que os 360px da tela de login */
    min-width: 70%; /* Ocupa 70% da tela para o usuário ver que tem outro card ao lado */
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(14, 26, 48, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
}
.internal-mural .news-overlay {
    padding: 20px; /* Reduz um pouco o espaçamento interno */
}
.internal-mural .news-overlay h3 {
    font-size: 20px; /* Título um pouco menor para caber bonito no card mais fino */
    margin: 0;
}
.internal-mural .news-overlay span {
    margin-bottom: 6px;
}


/* ===== FEEDBACK PILOTO (estilo Orkut / caixa discreta) ===== */
#feedback-piloto-widget {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 10050;
  font-family: 'Inter', sans-serif;
  width: 320px;
  max-width: calc(100vw - 24px);
}
#feedback-piloto-widget.minimized .fp-body { display: none; }
#feedback-piloto-widget.minimized { width: auto; }

.fp-header {
  background: linear-gradient(135deg, #0E1A30 0%, #1A2D4F 100%);
  color: white;
  padding: 12px 14px;
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(14, 26, 48, 0.18);
  user-select: none;
}
#feedback-piloto-widget.minimized .fp-header {
  border-radius: 14px;
}
.fp-header-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fp-header-title span.fp-badge {
  background: rgba(216, 151, 60, 0.25);
  color: #fcd34d;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.fp-toggle-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fp-body {
  background: white;
  border: 1px solid rgba(14, 26, 48, 0.08);
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(14, 26, 48, 0.12);
}
.fp-label {
  font-size: 12px;
  font-weight: 700;
  color: #0E1A30;
  margin: 0 0 10px 0;
}
.fp-faces {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 14px;
}
.fp-face {
  flex: 1;
  background: #f8fafc;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 8px 4px;
  cursor: pointer;
  text-align: center;
  transition: 0.15s;
  font-size: 22px;
  line-height: 1;
}
.fp-face:hover { background: #f1f5f9; }
.fp-face.selected {
  border-color: var(--color-teal, #2B7075);
  background: rgba(43, 112, 117, 0.08);
  transform: scale(1.05);
}
.fp-face small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  margin-top: 4px;
  text-transform: uppercase;
}
.fp-textarea {
  width: 100%;
  min-height: 90px;
  max-height: 140px;
  border: 1px solid rgba(14, 26, 48, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #0E1A30;
  resize: vertical;
  outline: none;
  background: #f8fafc;
  box-sizing: border-box;
}
.fp-textarea:focus {
  border-color: var(--color-teal, #2B7075);
  background: white;
  box-shadow: 0 0 0 3px rgba(43, 112, 117, 0.12);
}
.fp-counter {
  font-size: 11px;
  color: #94a3b8;
  text-align: right;
  margin: 4px 0 12px;
}
.fp-send {
  width: 100%;
  border: none;
  background: var(--color-ocre, #D8973C);
  color: white;
  font-weight: 700;
  font-size: 13px;
  padding: 11px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.15s;
}
.fp-send:hover { filter: brightness(1.05); }
.fp-send:disabled { opacity: 0.6; cursor: not-allowed; }
.fp-msg {
  display: none;
  margin-top: 10px;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: center;
}

/* Só aparece logado */
#app-container:not([style*="display: none"]) ~ #feedback-piloto-widget,
#app-container[style*="display: block"] ~ #feedback-piloto-widget {
  display: block;
}

    </style>