
        /* CSS Incorporado para funcionamento Offline */
        :root {
            --color-primary: #4f46e5; /* indigo-600 */
            --color-secondary: #7c3aed; /* purple-600 */
            --color-correct: #10b981; /* emerald-500 */
            --color-correct-border: #059669; /* emerald-600 */
            --color-incorrect: #f43f5e; /* rose-500 */
            --color-incorrect-border: #e11d48; /* rose-600 */
            --color-text-dark: #334155; /* slate-700 */
            --color-text-light: #64748b; /* slate-500 */
            --color-bg-light: #f1f5f9; /* slate-100 */
            --color-border: #cbd5e1; /* slate-300 */
        }

        *, *::before, *::after { box-sizing: border-box; }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            background: linear-gradient(to bottom right, #e0f2fe, #e0e7ff);
            color: #1e293b; /* slate-800 */
            padding: 1rem;
        }

        #app-container {
            width: 100%;
            max-width: 64rem; /* max-w-4xl */
            margin: 0 auto;
        }

        .hidden { display: none !important; }

        .main-card {
            background-color: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 1rem; /* rounded-2xl */
            padding: 2rem 2.5rem;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            text-align: center;
        }

        .primary-button {
            background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
            color: white;
            font-weight: bold;
            padding: 0.75rem 1.5rem;
            border-radius: 0.5rem;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
        }
        .primary-button:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
        }

        .secondary-button {
            background-color: #e2e8f0; /* slate-200 */
            color: var(--color-text-dark);
            font-weight: 600;
            padding: 0.75rem 1.5rem;
            border-radius: 0.5rem;
            border: none;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }
        .secondary-button:hover { background-color: #cbd5e1; }
        
        select, input[type="text"] {
            width: 100%;
            max-width: 28rem; /* max-w-md */
            margin: 0 auto;
            padding: 0.75rem;
            border: 1px solid var(--color-border);
            border-radius: 0.5rem;
            background-color: white;
            box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
            font-size: 1rem;
        }

        .option-button {
            width: 100%;
            text-align: left;
            padding: 1rem;
            border: 1px solid var(--color-border);
            border-radius: 0.5rem;
            background-color: rgba(255, 255, 255, 0.8);
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
            transition: all 0.2s ease-in-out;
            cursor: pointer;
            display: flex;
            align-items: center;
            min-height: 3.5rem;
        }
        .option-button:hover:not(:disabled) {
            transform: translateY(-4px);
            box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
            border-color: var(--color-primary);
        }
        .option-button:disabled { cursor: not-allowed; }

        .correct {
            background-color: var(--color-correct) !important;
            color: white !important;
            border-color: var(--color-correct-border) !important;
        }
        .incorrect {
            background-color: var(--color-incorrect) !important;
            color: white !important;
            border-color: var(--color-incorrect-border) !important;
        }

        .feedback-message-container {
            margin-top: 1.5rem;
            text-align: center;
            font-size: 1.125rem;
            font-weight: 600;
            height: 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .feedback-icon {
            display: inline-block;
            margin-right: 0.5rem;
            vertical-align: middle;
        }
        
        .highlight-p1 { background-color: rgba(96, 165, 250, 0.3); padding: 2px 4px; border-radius: 4px; }
        .highlight-p2 { background-color: rgba(52, 211, 153, 0.3); padding: 2px 4px; border-radius: 4px; }
        .highlight-green { background-color: rgba(34, 197, 94, 0.25); padding: 2px 4px; border-radius: 4px; font-weight: 600; color: #166534; }

        .authors-section {
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--color-border);
        }
        .authors-title {
            font-size: 0.875rem;
            color: var(--color-text-light);
            font-weight: 600;
            margin-bottom: 0.5rem;
        }
        .author-name {
            font-size: 0.875rem;
            color: var(--color-text-dark);
            margin: 0.25rem 0;
        }
        
        /* Styles for Instruction Examples */
        .instruction-example-box { margin-top: 1rem; padding: 1rem; font-size: 1rem; background-color: var(--color-bg-light); border-radius: 0.5rem; border: 1px solid #e2e8f0; }
        .instruction-example-box .prompt { background-color: #f8fafc; border: 1px solid #e2e8f0; padding: 1rem; border-radius: 0.5rem; margin-bottom: 1rem; box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.05); text-align: left; }
        .instruction-example-box .prompt .dialog-box { white-space: pre-wrap; text-align: left; background-color: rgba(255,255,255,0.6); padding: 0.75rem; border-radius: 0.375rem; border: 1px solid #e2e8f0; }
        .instruction-example-box .prompt .prompt-title { margin-top: 0.75rem; text-align: center; font-weight: 600; }
        .instruction-example-box .options-grid { display: grid; gap: 0.5rem; font-size: 0.875rem; text-align: left; }
        .instruction-example-box .grid-cols-2 { grid-template-columns: 1fr 1fr; }
        .instruction-example-box .grid-cols-1 { grid-template-columns: 1fr; }

        .example-button, .example-correct {
            width: 100%;
            padding: 1rem;
            border: 1px solid var(--color-border);
            border-radius: 0.5rem;
            background-color: white;
            box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            justify-content: flex-start;
            min-height: 3.5rem;
        }
        .example-correct {
            background-color: var(--color-correct) !important;
            color: white !important;
            border-color: var(--color-correct-border) !important;
        }

        .logo-fallback {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--color-text-dark);
            height: 4.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 1rem;
            background-color: var(--color-bg-light);
            border-radius: 0.5rem;
            border: 1px solid var(--color-border);
        }

        .reference-section {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--color-border);
            font-size: 0.75rem;
            color: var(--color-text-light);
            text-align: left;
        }

        /* --- Estilos do Guia de Categorias --- */
        .guide-fab {
            position: fixed;
            bottom: 1.5rem;
            right: 1.5rem;
            width: 4rem;
            height: 4rem;
            border-radius: 50%;
            background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
            color: white;
            border: none;
            cursor: pointer;
            box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2), 0 4px 6px -2px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            transition: transform 0.2s ease;
        }
        .guide-fab:hover {
            transform: scale(1.1);
        }
        .guide-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1001;
            padding: 1rem;
        }
        .guide-container {
            background-color: white;
            border-radius: 1rem;
            padding: 2rem;
            width: 100%;
            max-width: 50rem;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            text-align: left;
        }
        .guide-close-btn {
            position: sticky;
            top: -1rem;
            float: right;
            background: white;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: -1rem;
            border: none;
            font-size: 2rem;
            cursor: pointer;
            color: var(--color-text-light);
            line-height: 1;
            z-index: 2;
        }
        .guide-tabs {
            display: flex;
            gap: 0.5rem;
            border-bottom: 1px solid var(--color-border);
            margin-bottom: 1.5rem;
        }
        .guide-tab-btn {
            padding: 0.75rem 1.25rem;
            border: none;
            background: none;
            cursor: pointer;
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--color-text-light);
            border-bottom: 3px solid transparent;
            transition: all 0.2s;
        }
        .guide-tab-btn.active {
            color: var(--color-primary);
            border-bottom-color: var(--color-primary);
        }
        .guide-category {
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--color-bg-light);
        }
        .guide-category:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }
        .guide-category h3 {
            font-size: 1.25rem;
            color: var(--color-text-dark);
            margin-top: 0;
            margin-bottom: 0.5rem;
        }
        .guide-category p {
            font-size: 1rem;
            line-height: 1.6;
            color: var(--color-text-light);
            margin: 0;
        }
        .guide-examples {
            margin-top: 1rem;
            padding-left: 1rem;
            border-left: 3px solid #e2e8f0; /* slate-200 */
        }
        .guide-examples-title {
            font-weight: 600;
            color: var(--color-text-dark);
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }
        .guide-example {
            background-color: var(--color-bg-light);
            padding: 0.75rem;
            border-radius: 0.375rem;
            margin-bottom: 0.5rem !important;
            font-style: italic;
            color: var(--color-text-dark) !important;
        }
        .guide-example:last-child {
            margin-bottom: 0 !important;
        }

        /* --- Estilos do Overlay de Senha --- */
        #password-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #e0f2fe 0%, #e0e7ff 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }

        .password-card {
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 1.5rem;
            padding: 3rem;
            width: 100%;
            max-width: 28rem;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
            text-align: center;
        }

        #password-input {
            width: 100%;
            padding: 1rem;
            border: 2px solid #e2e8f0;
            border-radius: 0.75rem;
            font-size: 1.25rem;
            transition: border-color 0.2s;
        }

        #password-input:focus {
            outline: none;
            border-color: var(--color-primary);
        }
    