<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Medeshetty Pranav</title>
    <description>The latest articles on DEV Community by Medeshetty Pranav (@mpranav140511).</description>
    <link>https://dev.to/mpranav140511</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F99mvlsfu5tfj9m7ku25d.png</url>
      <title>DEV Community: Medeshetty Pranav</title>
      <link>https://dev.to/mpranav140511</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mpranav140511"/>
    <language>en</language>
    <item>
      <title>SlothInbox &amp; File Tidier: The Zero-Effort Local AI Assistant for International Sloth Day</title>
      <dc:creator>Medeshetty Pranav</dc:creator>
      <pubDate>Sun, 25 Oct 2026 13:50:12 +0000</pubDate>
      <link>https://dev.to/mpranav140511/slothinbox-file-tidier-the-zero-effort-local-ai-assistant-for-international-sloth-day-m6a</link>
      <guid>https://dev.to/mpranav140511/slothinbox-file-tidier-the-zero-effort-local-ai-assistant-for-international-sloth-day-m6a</guid>
      <description>&lt;p&gt;What I Built&lt;br&gt;
SlothInbox &amp;amp; File Tidier is a 100% local, offline-first AI assistant designed to channel your inner sloth by automating the digital chores you keep putting off.&lt;/p&gt;

&lt;p&gt;Whether it's a messy Downloads folder overflowing with random screenshots and code zips, or chaotic group chat logs you didn't have time to read, SlothInbox does the heavy lifting for you. It automatically categorizes, renames, and sorts digital clutter, extracts actionable items, and generates bite-sized summaries—all running locally on your machine without you having to lift a finger.&lt;/p&gt;

&lt;p&gt;Demo&lt;br&gt;
You can experience the live interactive web application directly here:&lt;/p&gt;

&lt;p&gt;Interactive Web App: SlothInboxTidier.html (Preview interactive dashboard with simulated local model streaming and drag-and-drop file tidying).&lt;/p&gt;

&lt;p&gt;Code&lt;br&gt;
Here is the core engine script powering the local inference simulation and automated folder sorting logic:&lt;/p&gt;

&lt;p&gt;JavaScript&lt;br&gt;
// SlothInbox Local AI Engine &amp;amp; Tidier Core&lt;br&gt;
class SlothInboxEngine {&lt;br&gt;
    constructor(modelName = "Llama-3-Sloth-8B-Instruct-Q4") {&lt;br&gt;
        this.model = modelName;&lt;br&gt;
        this.isLocal = true;&lt;br&gt;
    }&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;async processFilesLocally(fileList) {
    console.log(`[Local Inference] Running on model: ${this.model}`);
    let sortedResults = [];

    for (let file of fileList) {
        let category = this.classifyContent(file.name);
        let cleanedName = this.generateCleanName(file.name);
        sortedResults.push({
            original: file.name,
            suggestedName: cleanedName,
            category: category,
            status: "Organized Offline"
        });
    }
    return sortedResults;
}

classifyContent(filename) {
    if (filename.match(/\.(png|jpg|jpeg|webp)$/i)) return "Images &amp;amp; Screenshots";
    if (filename.match(/\.(zip|tar|gz|rar)$/i)) return "Archives &amp;amp; Code Zips";
    if (filename.match(/\.(pdf|docx|txt|md)$/i)) return "Documents &amp;amp; Notes";
    return "Miscellaneous Clutter";
}

generateCleanName(filename) {
    const timestamp = new Date().toISOString().slice(0, 10);
    return `sloth_sorted_${timestamp}_${filename.toLowerCase().replace(/\s+/g, '_')}`;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;/p&gt;

&lt;p&gt;// Initialize sloth assistant&lt;br&gt;
const slothAI = new SlothInboxEngine();&lt;br&gt;
How I Built It&lt;br&gt;
SlothInbox is built around an open-source local-first AI architecture:&lt;/p&gt;

&lt;p&gt;Open-Weight Model Simulation: Designed to run lightweight open-weight models (like Llama-3-8B or Mistral-7B quantized via GGUF/llama.cpp) directly on local hardware.&lt;/p&gt;

&lt;p&gt;Local Agent Harness: A client-side vanilla JavaScript framework that handles file scanning, regex-based heuristic pre-filtering, and local LLM structured JSON generation.&lt;/p&gt;

&lt;p&gt;Zero Server Dependency: Operates entirely within the browser sandbox and local file system APIs, ensuring complete data sovereignty.&lt;/p&gt;

&lt;p&gt;Why Does Open Innovation Matter?&lt;br&gt;
Open innovation was non-negotiable for building SlothInbox for several critical reasons:&lt;/p&gt;

&lt;p&gt;Absolute Privacy &amp;amp; Zero Data Leaks: Because my downloads folder and chat logs contain sensitive personal and development files, keeping data off third-party cloud servers is paramount. Nothing ever leaves the machine.&lt;/p&gt;

&lt;p&gt;Offline Independence: It works seamlessly on an airplane, in a basement, or during an internet outage. The automation never stops just because Wi-Fi drops.&lt;/p&gt;

&lt;p&gt;Zero Ongoing Costs: Commercial APIs charge per token. Running an open-weight model locally means I set it up once and run it infinitely for $0 forever—true sloth economics!&lt;/p&gt;

&lt;p&gt;Model Customization &amp;amp; Swapping: I can hot-swap between different open-weight fine-tunes depending on whether I need code summarization or casual text cleanup.&lt;/p&gt;

&lt;p&gt;My Agent Session&lt;br&gt;
View Agent Development &amp;amp; Coding Session on DevRelay (Simulated session recording local model integration and UI styling)&lt;/p&gt;

&lt;p&gt;Prize Categories&lt;br&gt;
Open-Source AI &amp;amp; Local Inference&lt;/p&gt;

&lt;p&gt;Most Relaxing / Sloth-Inspired Build&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>Aura Study for aspirants</title>
      <dc:creator>Medeshetty Pranav</dc:creator>
      <pubDate>Sun, 25 Oct 2026 13:43:34 +0000</pubDate>
      <link>https://dev.to/mpranav140511/aura-study-for-aspirants-4o71</link>
      <guid>https://dev.to/mpranav140511/aura-study-for-aspirants-4o71</guid>
      <description>&lt;p&gt;What I Built&lt;/p&gt;

&lt;p&gt;Meet AuraStudy, a hyper-personalized, private open-source AI study companion built specifically for my friend Maya, an 11th-grade student tackling rigorous ICSE board and competitive entrance exams (JEE/NEET foundation).&lt;/p&gt;

&lt;p&gt;Juggling Physics, Chemistry, and Advanced Mathematics in 11th grade is notoriously overwhelming. Maya needed a study partner that wouldn't just give away lazy answers (like typical cloud chatbots that ruin genuine learning), but would act like a true Socratic tutor—plus run completely privately on her laptop without leaking her personal study struggles to third-party corporate servers.&lt;/p&gt;

&lt;p&gt;AuraStudy features:&lt;/p&gt;

&lt;p&gt;Local Open-Weight Model Hub: Interactive switcher for simulated local models (Llama-3-8B-Instruct, Mistral-7B-OpenOrca, Phi-3-Mini-4K) with zero server latency or data logging.&lt;/p&gt;

&lt;p&gt;Socratic AI Tutor: Chat mode that guides Maya through calculus limits, rotational motion, and chemical equilibrium step-by-step.&lt;/p&gt;

&lt;p&gt;Feynman Explainer: Users input difficult concepts and explain them in simple terms to receive instant AI grading and feedback.&lt;/p&gt;

&lt;p&gt;Smart Interactive Flashcards: High-yield physics and chemistry revision flashcards with smooth 3D flip animations.&lt;/p&gt;

&lt;p&gt;ICSE Chapter Summarizer: Instantly turns long textbook notes into structured, bulleted board-exam cheat sheets.&lt;/p&gt;

&lt;p&gt;Demo&lt;/p&gt;

&lt;p&gt;You can explore the live interactive web application right here inside the workspace preview, or run it instantly as a single self-contained offline-first HTML file.&lt;/p&gt;

&lt;p&gt;Code&lt;/p&gt;

&lt;p&gt;The entire application is built as a modular, high-performance, single-file HTML/JS web app styled with Tailwind CSS and FontAwesome icons, making it lightweight and runnable anywhere without complex build tools or API keys.&lt;/p&gt;

&lt;p&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
    &lt;br&gt;
    &lt;br&gt;
    &lt;/p&gt;
AuraStudy - Private Open-Source AI Study Companion for Maya
&lt;br&gt;
    &amp;lt;!-- Tailwind CSS --&amp;gt;&lt;br&gt;
    &lt;br&gt;
    &amp;lt;!-- Google Fonts: Inter &amp;amp; Outfit --&amp;gt;&lt;br&gt;
    &lt;br&gt;
    &amp;lt;!-- FontAwesome Icons --&amp;gt;&lt;br&gt;
    &lt;br&gt;
    &amp;lt;br&amp;gt;
        tailwind.config = {&amp;lt;br&amp;gt;
            darkMode: &amp;amp;#39;class&amp;amp;#39;,&amp;lt;br&amp;gt;
            theme: {&amp;lt;br&amp;gt;
                extend: {&amp;lt;br&amp;gt;
                    fontFamily: {&amp;lt;br&amp;gt;
                        sans: [&amp;amp;#39;Inter&amp;amp;#39;, &amp;amp;#39;sans-serif&amp;amp;#39;],&amp;lt;br&amp;gt;
                        heading: [&amp;amp;#39;Outfit&amp;amp;#39;, &amp;amp;#39;sans-serif&amp;amp;#39;],&amp;lt;br&amp;gt;
                    },&amp;lt;br&amp;gt;
                    colors: {&amp;lt;br&amp;gt;
                        brand: {&amp;lt;br&amp;gt;
                            50: &amp;amp;#39;#fdf4f5&amp;amp;#39;,&amp;lt;br&amp;gt;
                            100: &amp;amp;#39;#fbe8eb&amp;amp;#39;,&amp;lt;br&amp;gt;
                            500: &amp;amp;#39;#e0566d&amp;amp;#39;,&amp;lt;br&amp;gt;
                            600: &amp;amp;#39;#cb3b54&amp;amp;#39;,&amp;lt;br&amp;gt;
                            700: &amp;amp;#39;#ab2b42&amp;amp;#39;,&amp;lt;br&amp;gt;
                        }&amp;lt;br&amp;gt;
                    }&amp;lt;br&amp;gt;
                }&amp;lt;br&amp;gt;
            }&amp;lt;br&amp;gt;
        }&amp;lt;br&amp;gt;
    &lt;br&gt;
    &amp;lt;br&amp;gt;
        body { font-family: &amp;amp;#39;Inter&amp;amp;#39;, sans-serif; }&amp;lt;br&amp;gt;
        h1, h2, h3, h4, .font-heading { font-family: &amp;amp;#39;Outfit&amp;amp;#39;, sans-serif; }&amp;lt;br&amp;gt;
        .glass-card {&amp;lt;br&amp;gt;
            background: rgba(255, 255, 255, 0.85);&amp;lt;br&amp;gt;
            backdrop-filter: blur(12px);&amp;lt;br&amp;gt;
            border: 1px solid rgba(224, 86, 109, 0.15);&amp;lt;br&amp;gt;
        }&amp;lt;br&amp;gt;
        .dark .glass-card {&amp;lt;br&amp;gt;
            background: rgba(30, 30, 35, 0.85);&amp;lt;br&amp;gt;
            border: 1px solid rgba(224, 86, 109, 0.2);&amp;lt;br&amp;gt;
        }&amp;lt;br&amp;gt;
        /* Custom scrollbar */&amp;lt;br&amp;gt;
        ::-webkit-scrollbar { width: 6px; }&amp;lt;br&amp;gt;
        ::-webkit-scrollbar-track { background: transparent; }&amp;lt;br&amp;gt;
        ::-webkit-scrollbar-thumb { background: rgba(224, 86, 109, 0.3); border-radius: 9999px; }&amp;lt;br&amp;gt;
        ::-webkit-scrollbar-thumb:hover { background: rgba(224, 86, 109, 0.5); }&amp;lt;br&amp;gt;
    &lt;br&gt;
&lt;br&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!-- App Wrapper --&amp;gt;
&amp;lt;div id="app" class="flex flex-col h-full min-h-screen"&amp;gt;

    &amp;lt;!-- Top Navigation Bar --&amp;gt;
    &amp;lt;header class="sticky top-0 z-50 glass-card px-4 sm:px-8 py-3.5 flex items-center justify-between shadow-sm"&amp;gt;
        &amp;lt;div class="flex items-center space-x-3"&amp;gt;
            &amp;lt;div class="w-10 h-10 rounded-xl bg-gradient-to-tr from-brand-500 to-rose-400 flex items-center justify-center text-white shadow-md shadow-brand-500/20"&amp;gt;
                &amp;lt;i class="fa-solid fa-feather-pointed text-lg"&amp;gt;&amp;lt;/i&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div&amp;gt;
                &amp;lt;h1 class="text-lg font-bold tracking-tight text-gray-900 dark:text-white flex items-center gap-2"&amp;gt;
                    AuraStudy &amp;lt;span class="text-xs px-2 py-0.5 rounded-full bg-brand-100 dark:bg-brand-900/40 text-brand-700 dark:text-brand-300 font-medium font-sans"&amp;gt;For Maya (11th ICSE)&amp;lt;/span&amp;gt;
                &amp;lt;/h1&amp;gt;
                &amp;lt;p class="text-xs text-gray-500 dark:text-gray-400"&amp;gt;Powered by Local Open-Weight AI (Llama 3 / Mistral)&amp;lt;/p&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;

        &amp;lt;div class="flex items-center space-x-2 sm:space-x-3"&amp;gt;
            &amp;lt;!-- Open Source AI Manifesto Toggle Button --&amp;gt;
            &amp;lt;button onclick="toggleManifesto()" class="px-3.5 py-2 rounded-xl bg-emerald-50 dark:bg-emerald-950/40 border border-emerald-200 dark:border-emerald-800 text-emerald-700 dark:text-emerald-300 text-xs font-semibold hover:bg-emerald-100 transition flex items-center gap-2 shadow-sm"&amp;gt;
                &amp;lt;i class="fa-solid fa-shield-halved"&amp;gt;&amp;lt;/i&amp;gt;
                &amp;lt;span class="hidden sm:inline"&amp;gt;Why Open-Source AI Matters&amp;lt;/span&amp;gt;
                &amp;lt;span class="sm:hidden"&amp;gt;Open AI&amp;lt;/span&amp;gt;
            &amp;lt;/button&amp;gt;

            &amp;lt;!-- Model Selector Pill --&amp;gt;
            &amp;lt;div class="relative hidden md:block"&amp;gt;
                &amp;lt;select id="modelSelector" class="text-xs bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl px-3 py-2 text-gray-700 dark:text-gray-300 font-medium focus:outline-none focus:ring-2 focus:ring-brand-500 cursor-pointer"&amp;gt;
                    &amp;lt;option value="llama3-8b-local"&amp;gt;⚡ Llama-3-8B-Instruct (Local WebGPU)&amp;lt;/option&amp;gt;
                    &amp;lt;option value="mistral-7b-local"&amp;gt;🌿 Mistral-7B-OpenOrca (Private)&amp;lt;/option&amp;gt;
                    &amp;lt;option value="phi3-mini-offline"&amp;gt;🍃 Phi-3-Mini (Zero-Data-Leak)&amp;lt;/option&amp;gt;
                &amp;lt;/select&amp;gt;
            &amp;lt;/div&amp;gt;

            &amp;lt;!-- Theme Toggle --&amp;gt;
            &amp;lt;button onclick="toggleTheme()" class="w-10 h-10 rounded-xl bg-gray-100 dark:bg-gray-800 flex items-center justify-center text-gray-600 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 transition"&amp;gt;
                &amp;lt;i id="themeIcon" class="fa-solid fa-moon"&amp;gt;&amp;lt;/i&amp;gt;
            &amp;lt;/button&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/header&amp;gt;

    &amp;lt;!-- Main Workspace Layout --&amp;gt;
    &amp;lt;div class="flex-1 flex flex-col md:flex-row overflow-hidden"&amp;gt;

        &amp;lt;!-- Sidebar Navigation --&amp;gt;
        &amp;lt;aside class="w-full md:w-64 glass-card border-r border-gray-200 dark:border-gray-800 p-4 flex md:flex-col justify-between shrink-0"&amp;gt;
            &amp;lt;div class="space-y-1.5 w-full flex md:flex-col justify-around md:justify-start gap-1"&amp;gt;
                &amp;lt;p class="text-xs font-semibold uppercase tracking-wider text-gray-400 dark:text-gray-500 px-3 py-1 hidden md:block"&amp;gt;Study Modes&amp;lt;/p&amp;gt;

                &amp;lt;button onclick="switchTab('tutor')" id="nav-tutor" class="nav-btn w-full flex items-center space-x-3 px-3.5 py-3 rounded-xl text-sm font-medium transition bg-brand-500 text-white shadow-md shadow-brand-500/20"&amp;gt;
                    &amp;lt;i class="fa-solid fa-comments text-base w-5"&amp;gt;&amp;lt;/i&amp;gt;
                    &amp;lt;span class="hidden md:inline"&amp;gt;Socratic AI Tutor&amp;lt;/span&amp;gt;
                &amp;lt;/button&amp;gt;

                &amp;lt;button onclick="switchTab('feynman')" id="nav-feynman" class="nav-btn w-full flex items-center space-x-3 px-3.5 py-3 rounded-xl text-sm font-medium transition text-gray-600 dark:text-gray-300 hover:bg-brand-50 dark:hover:bg-gray-800"&amp;gt;
                    &amp;lt;i class="fa-solid fa-brain text-base w-5"&amp;gt;&amp;lt;/i&amp;gt;
                    &amp;lt;span class="hidden md:inline"&amp;gt;Feynman Explainer&amp;lt;/span&amp;gt;
                &amp;lt;/button&amp;gt;

                &amp;lt;button onclick="switchTab('flashcards')" id="nav-flashcards" class="nav-btn w-full flex items-center space-x-3 px-3.5 py-3 rounded-xl text-sm font-medium transition text-gray-600 dark:text-gray-300 hover:bg-brand-50 dark:hover:bg-gray-800"&amp;gt;
                    &amp;lt;i class="fa-solid fa-layer-group text-base w-5"&amp;gt;&amp;lt;/i&amp;gt;
                    &amp;lt;span class="hidden md:inline"&amp;gt;Smart Flashcards&amp;lt;/span&amp;gt;
                &amp;lt;/button&amp;gt;

                &amp;lt;button onclick="switchTab('notes')" id="nav-notes" class="nav-btn w-full flex items-center space-x-3 px-3.5 py-3 rounded-xl text-sm font-medium transition text-gray-600 dark:text-gray-300 hover:bg-brand-50 dark:hover:bg-gray-800"&amp;gt;
                    &amp;lt;i class="fa-solid fa-file-lines text-base w-5"&amp;gt;&amp;lt;/i&amp;gt;
                    &amp;lt;span class="hidden md:inline"&amp;gt;ICSE Syllabus Summarizer&amp;lt;/span&amp;gt;
                &amp;lt;/button&amp;gt;
            &amp;lt;/div&amp;gt;

            &amp;lt;!-- Status Card for Maya --&amp;gt;
            &amp;lt;div class="hidden md:block mt-6 p-3.5 rounded-2xl bg-gradient-to-br from-brand-100/60 to-orange-100/40 dark:from-gray-800 dark:to-gray-900 border border-brand-500/20 text-xs"&amp;gt;
                &amp;lt;div class="flex items-center justify-between mb-2"&amp;gt;
                    &amp;lt;span class="font-semibold text-brand-700 dark:text-brand-300"&amp;gt;Maya's Focus&amp;lt;/span&amp;gt;
                    &amp;lt;span class="w-2 h-2 rounded-full bg-emerald-500 animate-pulse"&amp;gt;&amp;lt;/span&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;p class="text-gray-600 dark:text-gray-400 mb-2"&amp;gt;Target: Grade 11 Physics &amp;amp; Mathematics Boards&amp;lt;/p&amp;gt;
                &amp;lt;div class="w-full bg-gray-200 dark:bg-gray-700 rounded-full h-1.5 overflow-hidden"&amp;gt;
                    &amp;lt;div class="bg-brand-500 h-1.5 rounded-full" style="width: 78%"&amp;gt;&amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;p class="text-[10px] text-gray-500 mt-1.5 text-right"&amp;gt;78% Daily Goal Achieved&amp;lt;/p&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/aside&amp;gt;

        &amp;lt;!-- Main Content Area --&amp;gt;
        &amp;lt;main class="flex-1 flex flex-col overflow-hidden relative"&amp;gt;

            &amp;lt;!-- TAB 1: Socratic AI Tutor --&amp;gt;
            &amp;lt;div id="tab-tutor" class="tab-content flex-1 flex flex-col h-full overflow-hidden"&amp;gt;
                &amp;lt;div class="px-6 py-4 bg-white/50 dark:bg-gray-900/50 border-b border-gray-200 dark:border-gray-800 flex items-center justify-between"&amp;gt;
                    &amp;lt;div&amp;gt;
                        &amp;lt;h2 class="text-base font-bold text-gray-900 dark:text-white"&amp;gt;Socratic Study Companion&amp;lt;/h2&amp;gt;
                        &amp;lt;p class="text-xs text-gray-500"&amp;gt;Guides you through complex Physics &amp;amp; Math concepts without giving direct answers, just like a supportive study buddy.&amp;lt;/p&amp;gt;
                    &amp;lt;/div&amp;gt;
                    &amp;lt;div class="flex gap-2"&amp;gt;
                        &amp;lt;button onclick="loadSamplePrompt('Explain Newton’s Laws of Motion with calculus in simple terms.')" class="text-xs px-3 py-1.5 rounded-lg bg-gray-100 dark:bg-gray-800 hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300 transition"&amp;gt;Physics: Calculus&amp;lt;/button&amp;gt;
                        &amp;lt;button onclick="loadSamplePrompt('Help me understand Limits &amp;amp; Derivatives for my 11th grade exam.')" class="text-xs px-3 py-1.5 rounded-lg bg-gray-100 dark:bg-gray-800 hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300 transition"&amp;gt;Math: Limits&amp;lt;/button&amp;gt;
                    &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;

                &amp;lt;!-- Chat Messages Container --&amp;gt;
                &amp;lt;div id="chatMessages" class="flex-1 overflow-y-auto p-4 sm:p-6 space-y-4"&amp;gt;
                    &amp;lt;!-- Welcome message --&amp;gt;
                    &amp;lt;div class="flex items-start space-x-3"&amp;gt;
                        &amp;lt;div class="w-8 h-8 rounded-full bg-brand-500 flex items-center justify-center text-white shrink-0 text-xs font-bold shadow"&amp;gt;AI&amp;lt;/div&amp;gt;
                        &amp;lt;div class="glass-card p-4 rounded-2xl rounded-tl-sm max-w-2xl text-sm shadow-sm space-y-2"&amp;gt;
                            &amp;lt;p&amp;gt;Hey Maya! 👋 I'm your private, offline-ready open-source study buddy. What 11th-grade ICSE topic are we tackling today? Whether it's Rotational Motion, Limits &amp;amp; Derivatives, or Chemical Bonding, let's break it down together!&amp;lt;/p&amp;gt;
                            &amp;lt;div class="flex flex-wrap gap-2 pt-2"&amp;gt;
                                &amp;lt;button onclick="loadSamplePrompt('Explain Work, Energy and Power theorem')" class="text-xs bg-brand-50 dark:bg-gray-800 text-brand-600 dark:text-brand-300 px-3 py-1 rounded-lg border border-brand-200 dark:border-gray-700 hover:bg-brand-100"&amp;gt;💡 Work-Energy Theorem&amp;lt;/button&amp;gt;
                                &amp;lt;button onclick="loadSamplePrompt('How do I solve trigonometric identity proofs easily?')" class="text-xs bg-brand-50 dark:bg-gray-800 text-brand-600 dark:text-brand-300 px-3 py-1 rounded-lg border border-brand-200 dark:border-gray-700 hover:bg-brand-100"&amp;gt;📐 Trigonometry Proofs&amp;lt;/button&amp;gt;
                            &amp;lt;/div&amp;gt;
                        &amp;lt;/div&amp;gt;
                    &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;

                &amp;lt;!-- Chat Input --&amp;gt;
                &amp;lt;div class="p-4 bg-white/80 dark:bg-gray-900/80 border-t border-gray-200 dark:border-gray-800"&amp;gt;
                    &amp;lt;form onsubmit="handleChatSubmit(event)" class="flex items-center gap-2 max-w-4xl mx-auto"&amp;gt;
                        &amp;lt;input type="text" id="chatInput" placeholder="Ask anything about your syllabus (e.g., Explain Kepler's Laws)..." class="flex-1 bg-gray-100 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-brand-500 text-gray-800 dark:text-gray-100"&amp;gt;
                        &amp;lt;button type="submit" class="bg-brand-500 hover:bg-brand-600 text-white px-5 py-3 rounded-xl font-medium text-sm transition shadow-md shadow-brand-500/20 flex items-center gap-2"&amp;gt;
                            &amp;lt;span&amp;gt;Send&amp;lt;/span&amp;gt;
                            &amp;lt;i class="fa-solid fa-paper-plane text-xs"&amp;gt;&amp;lt;/i&amp;gt;
                        &amp;lt;/button&amp;gt;
                    &amp;lt;/form&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;

            &amp;lt;!-- TAB 2: Feynman Explainer --&amp;gt;
            &amp;lt;div id="tab-feynman" class="tab-content hidden flex-1 flex flex-col h-full overflow-y-auto p-4 sm:p-8"&amp;gt;
                &amp;lt;div class="max-w-3xl mx-auto w-full space-y-6"&amp;gt;
                    &amp;lt;div class="text-center space-y-2"&amp;gt;
                        &amp;lt;h2 class="text-2xl font-bold font-heading text-gray-900 dark:text-white"&amp;gt;🧠 The Feynman Technique AI&amp;lt;/h2&amp;gt;
                        &amp;lt;p class="text-sm text-gray-500 dark:text-gray-400"&amp;gt;"If you can't explain it simply, you don't understand it well enough." Type any difficult concept below, and our open-source model will grade your explanation or simplify it for you.&amp;lt;/p&amp;gt;
                    &amp;lt;/div&amp;gt;

                    &amp;lt;div class="glass-card p-6 rounded-2xl shadow-sm space-y-4"&amp;gt;
                        &amp;lt;div&amp;gt;
                            &amp;lt;label class="block text-xs font-semibold uppercase tracking-wider text-gray-500 mb-2"&amp;gt;Select or Type Topic&amp;lt;/label&amp;gt;
                            &amp;lt;input type="text" id="feynmanTopic" value="Conservation of Angular Momentum" class="w-full bg-gray-50 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-brand-500"&amp;gt;
                        &amp;lt;/div&amp;gt;

                        &amp;lt;div&amp;gt;
                            &amp;lt;label class="block text-xs font-semibold uppercase tracking-wider text-gray-500 mb-2"&amp;gt;Your Explanation (Pretend you are teaching a 10-year-old)&amp;lt;/label&amp;gt;
                            &amp;lt;textarea id="feynmanUserText" rows="4" placeholder="It's like an ice skater pulling their arms in..." class="w-full bg-gray-50 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-brand-500"&amp;gt;&amp;lt;/textarea&amp;gt;
                        &amp;lt;/div&amp;gt;

                        &amp;lt;button onclick="evaluateFeynman()" class="w-full py-3 bg-brand-500 hover:bg-brand-600 text-white rounded-xl font-medium text-sm transition shadow-md shadow-brand-500/20 flex items-center justify-center gap-2"&amp;gt;
                            &amp;lt;i class="fa-solid fa-wand-magic-sparkles"&amp;gt;&amp;lt;/i&amp;gt;
                            &amp;lt;span&amp;gt;Evaluate with Open-Source AI&amp;lt;/span&amp;gt;
                        &amp;lt;/button&amp;gt;
                    &amp;lt;/div&amp;gt;

                    &amp;lt;div id="feynmanResult" class="hidden glass-card p-6 rounded-2xl shadow-sm space-y-4 border-l-4 border-l-brand-500"&amp;gt;
                        &amp;lt;h3 class="font-bold text-gray-900 dark:text-white flex items-center gap-2"&amp;gt;
                            &amp;lt;i class="fa-solid fa-clipboard-check text-brand-500"&amp;gt;&amp;lt;/i&amp;gt;
                            AI Feedback &amp;amp; Simplification
                        &amp;lt;/h3&amp;gt;
                        &amp;lt;div id="feynmanFeedbackContent" class="text-sm space-y-3 text-gray-700 dark:text-gray-300"&amp;gt;
                            &amp;lt;!-- Dynamic feedback --&amp;gt;
                        &amp;lt;/div&amp;gt;
                    &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;

            &amp;lt;!-- TAB 3: Smart Flashcards --&amp;gt;
            &amp;lt;div id="tab-flashcards" class="tab-content hidden flex-1 flex flex-col h-full overflow-y-auto p-4 sm:p-8"&amp;gt;
                &amp;lt;div class="max-w-2xl mx-auto w-full space-y-6"&amp;gt;
                    &amp;lt;div class="flex items-center justify-between"&amp;gt;
                        &amp;lt;div&amp;gt;
                            &amp;lt;h2 class="text-2xl font-bold font-heading text-gray-900 dark:text-white"&amp;gt;📚 Smart Flashcards&amp;lt;/h2&amp;gt;
                            &amp;lt;p class="text-sm text-gray-500 dark:text-gray-400"&amp;gt;Generated locally for 11th Grade Physics &amp;amp; Chemistry Revision.&amp;lt;/p&amp;gt;
                        &amp;lt;/div&amp;gt;
                        &amp;lt;span id="cardCounter" class="text-xs font-semibold px-3 py-1 rounded-full bg-brand-100 text-brand-700 dark:bg-brand-900/40 dark:text-brand-300"&amp;gt;Card 1 of 5&amp;lt;/span&amp;gt;
                    &amp;lt;/div&amp;gt;

                    &amp;lt;!-- Flashcard Interactive Box --&amp;gt;
                    &amp;lt;div onclick="flipCard()" class="glass-card h-72 rounded-3xl p-8 flex flex-col items-center justify-center text-center cursor-pointer shadow-xl relative overflow-hidden group transition-all transform hover:scale-[1.01]"&amp;gt;
                        &amp;lt;div class="absolute top-4 right-4 text-xs text-gray-400 flex items-center gap-1"&amp;gt;
                            &amp;lt;i class="fa-solid fa-rotate"&amp;gt;&amp;lt;/i&amp;gt; Click card to flip
                        &amp;lt;/div&amp;gt;

                        &amp;lt;div id="cardInner" class="w-full h-full flex items-center justify-center"&amp;gt;
                            &amp;lt;!-- Front --&amp;gt;
                            &amp;lt;div id="cardFront" class="space-y-3"&amp;gt;
                                &amp;lt;span class="text-xs uppercase tracking-widest text-brand-600 dark:text-brand-400 font-bold"&amp;gt;Physics • Question&amp;lt;/span&amp;gt;
                                &amp;lt;h3 id="flashcardQ" class="text-xl font-bold text-gray-900 dark:text-white"&amp;gt;What is the physical significance of the moment of inertia?&amp;lt;/h3&amp;gt;
                            &amp;lt;/div&amp;gt;
                            &amp;lt;!-- Back (hidden initially) --&amp;gt;
                            &amp;lt;div id="cardBack" class="hidden space-y-3"&amp;gt;
                                &amp;lt;span class="text-xs uppercase tracking-widest text-emerald-600 dark:text-emerald-400 font-bold"&amp;gt;Answer &amp;amp; Explanation&amp;lt;/span&amp;gt;
                                &amp;lt;p id="flashcardA" class="text-sm text-gray-700 dark:text-gray-200"&amp;gt;It is the rotational analog of mass. It measures an object's resistance to changes in its rotational speed about a specific axis.&amp;lt;/p&amp;gt;
                            &amp;lt;/div&amp;gt;
                        &amp;lt;/div&amp;gt;
                    &amp;lt;/div&amp;gt;

                    &amp;lt;div class="flex justify-between gap-4"&amp;gt;
                        &amp;lt;button onclick="prevCard()" class="flex-1 py-3 bg-gray-100 dark:bg-gray-800 hover:bg-gray-200 dark:hover:bg-gray-700 rounded-xl font-medium text-sm transition text-gray-700 dark:text-gray-300"&amp;gt;
                            &amp;lt;i class="fa-solid fa-arrow-left mr-2"&amp;gt;&amp;lt;/i&amp;gt; Previous
                        &amp;lt;/button&amp;gt;
                        &amp;lt;button onclick="nextCard()" class="flex-1 py-3 bg-brand-500 hover:bg-brand-600 text-white rounded-xl font-medium text-sm transition shadow-md shadow-brand-500/20"&amp;gt;
                            Next Card &amp;lt;i class="fa-solid fa-arrow-right ml-2"&amp;gt;&amp;lt;/i&amp;gt;
                        &amp;lt;/button&amp;gt;
                    &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;

            &amp;lt;!-- TAB 4: ICSE Syllabus Summarizer --&amp;gt;
            &amp;lt;div id="tab-notes" class="tab-content hidden flex-1 flex flex-col h-full overflow-y-auto p-4 sm:p-8"&amp;gt;
                &amp;lt;div class="max-w-3xl mx-auto w-full space-y-6"&amp;gt;
                    &amp;lt;div class="text-center space-y-2"&amp;gt;
                        &amp;lt;h2 class="text-2xl font-bold font-heading text-gray-900 dark:text-white"&amp;gt;📄 ICSE Chapter Smart Summarizer&amp;lt;/h2&amp;gt;
                        &amp;lt;p class="text-sm text-gray-500 dark:text-gray-400"&amp;gt;Paste your textbook chapter or long notes below to generate bulleted board-exam highlights and formula sheets.&amp;lt;/p&amp;gt;
                    &amp;lt;/div&amp;gt;

                    &amp;lt;div class="glass-card p-6 rounded-2xl shadow-sm space-y-4"&amp;gt;
                        &amp;lt;textarea id="notesInput" rows="5" placeholder="Paste chapter notes here (e.g., Thermodynamics, Chemical Equilibrium, Gravitation)..." class="w-full bg-gray-50 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-brand-500"&amp;gt;&amp;lt;/textarea&amp;gt;

                        &amp;lt;button onclick="summarizeNotes()" class="w-full py-3 bg-brand-500 hover:bg-brand-600 text-white rounded-xl font-medium text-sm transition shadow-md shadow-brand-500/20 flex items-center justify-center gap-2"&amp;gt;
                            &amp;lt;i class="fa-solid fa-bolt"&amp;gt;&amp;lt;/i&amp;gt;
                            &amp;lt;span&amp;gt;Generate Board Exam Cheat-Sheet&amp;lt;/span&amp;gt;
                        &amp;lt;/button&amp;gt;
                    &amp;lt;/div&amp;gt;

                    &amp;lt;div id="summaryOutput" class="hidden glass-card p-6 rounded-2xl shadow-sm space-y-4"&amp;gt;
                        &amp;lt;h3 class="font-bold text-gray-900 dark:text-white flex items-center gap-2"&amp;gt;
                            &amp;lt;i class="fa-solid fa-star text-amber-500"&amp;gt;&amp;lt;/i&amp;gt;
                            High-Yield Exam Cheat Sheet
                        &amp;lt;/h3&amp;gt;
                        &amp;lt;div id="summaryTextContent" class="text-sm space-y-3 text-gray-700 dark:text-gray-300"&amp;gt;
                            &amp;lt;!-- Output inserted here --&amp;gt;
                        &amp;lt;/div&amp;gt;
                    &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;

        &amp;lt;/main&amp;gt;
    &amp;lt;/div&amp;gt;

    &amp;lt;!-- MANIFESTO MODAL / OVERLAY --&amp;gt;
    &amp;lt;div id="manifestoModal" class="fixed inset-0 z-50 bg-black/60 backdrop-blur-sm hidden flex items-center justify-center p-4"&amp;gt;
        &amp;lt;div class="glass-card max-w-2xl w-full max-h-[90vh] overflow-y-auto p-6 sm:p-8 rounded-3xl shadow-2xl space-y-6 relative border border-emerald-500/30"&amp;gt;
            &amp;lt;button onclick="toggleManifesto()" class="absolute top-6 right-6 w-8 h-8 rounded-full bg-gray-100 dark:bg-gray-800 flex items-center justify-center text-gray-500 hover:bg-gray-200"&amp;gt;
                &amp;lt;i class="fa-solid fa-xmark"&amp;gt;&amp;lt;/i&amp;gt;
            &amp;lt;/button&amp;gt;

            &amp;lt;div class="flex items-center space-x-3"&amp;gt;
                &amp;lt;div class="w-12 h-12 rounded-2xl bg-emerald-500 text-white flex items-center justify-center text-xl shadow-lg shadow-emerald-500/30"&amp;gt;
                    &amp;lt;i class="fa-solid fa-shield-halved"&amp;gt;&amp;lt;/i&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div&amp;gt;
                    &amp;lt;h2 class="text-xl font-bold font-heading text-gray-900 dark:text-white"&amp;gt;Why Open-Source AI Matters for Maya&amp;lt;/h2&amp;gt;
                    &amp;lt;p class="text-xs text-emerald-600 dark:text-emerald-400 font-medium"&amp;gt;Built for absolute privacy, offline freedom, and zero vendor lock-in&amp;lt;/p&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;

            &amp;lt;div class="space-y-4 text-sm text-gray-600 dark:text-gray-300 leading-relaxed"&amp;gt;
                &amp;lt;div class="p-4 rounded-2xl bg-emerald-50/50 dark:bg-emerald-950/20 border border-emerald-200 dark:border-emerald-900/50 space-y-2"&amp;gt;
                    &amp;lt;h3 class="font-bold text-gray-900 dark:text-white flex items-center gap-2"&amp;gt;
                        &amp;lt;i class="fa-solid fa-wifi text-emerald-600"&amp;gt;&amp;lt;/i&amp;gt; 1. Works Offline on Any Laptop
                    &amp;lt;/h3&amp;gt;
                    &amp;lt;p&amp;gt;Unlike cloud-dependent LLMs that require constant internet connection or break during unstable Wi-Fi, AuraStudy simulates running quantized open-weights (Llama-3-8B / Mistral-7B) locally via WebGPU or local inference runtimes. Maya can study during flights or power outages without interruption.&amp;lt;/p&amp;gt;
                &amp;lt;/div&amp;gt;

                &amp;lt;div class="p-4 rounded-2xl bg-emerald-50/50 dark:bg-emerald-950/20 border border-emerald-200 dark:border-emerald-900/50 space-y-2"&amp;gt;
                    &amp;lt;h3 class="font-bold text-gray-900 dark:text-white flex items-center gap-2"&amp;gt;
                        &amp;lt;i class="fa-solid fa-user-shield text-emerald-600"&amp;gt;&amp;lt;/i&amp;gt; 2. Complete Data Privacy (Zero Server Logs)
                    &amp;lt;/h3&amp;gt;
                    &amp;lt;p&amp;gt;Teenagers shouldn't have their personal study struggles, weak spots, or academic queries logged on corporate third-party servers. With open-source AI concepts, Maya's private study data never leaves her device.&amp;lt;/p&amp;gt;
                &amp;lt;/div&amp;gt;

                &amp;lt;div class="p-4 rounded-2xl bg-emerald-50/50 dark:bg-emerald-950/20 border border-emerald-200 dark:border-emerald-900/50 space-y-2"&amp;gt;
                    &amp;lt;h3 class="font-bold text-gray-900 dark:text-white flex items-center gap-2"&amp;gt;
                        &amp;lt;i class="fa-solid fa-sliders text-emerald-600"&amp;gt;&amp;lt;/i&amp;gt; 3. Custom Model Swapping &amp;amp; Tuning
                    &amp;lt;/h3&amp;gt;
                    &amp;lt;p&amp;gt;Open-source means freedom. Maya can switch between different models tuned for scientific reasoning (Phi-3) or conversational tutoring (Mistral) instantly depending on her homework needs, with zero cost and zero rate limits.&amp;lt;/p&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;

            &amp;lt;div class="pt-4 flex justify-end"&amp;gt;
                &amp;lt;button onclick="toggleManifesto()" class="px-6 py-2.5 bg-emerald-600 hover:bg-emerald-700 text-white rounded-xl font-medium text-sm transition shadow-md shadow-emerald-600/20"&amp;gt;
                    Got it, Let's Study!
                &amp;lt;/button&amp;gt;
            &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;

&amp;lt;/div&amp;gt;

&amp;lt;!-- JavaScript Application Logic --&amp;gt;
&amp;lt;script&amp;gt;
    // Theme Toggle Functionality
    function toggleTheme() {
        const html = document.documentElement;
        const icon = document.getElementById('themeIcon');
        if (html.classList.contains('dark')) {
            html.classList.remove('dark');
            icon.className = 'fa-solid fa-moon';
        } else {
            html.classList.add('dark');
            icon.className = 'fa-solid fa-sun';
        }
    }

    // Tab Navigation
    function switchTab(tabId) {
        document.querySelectorAll('.tab-content').forEach(el =&amp;gt; el.classList.add('hidden'));
        document.getElementById('tab-' + tabId).classList.remove('hidden');

        document.querySelectorAll('.nav-btn').forEach(btn =&amp;gt; {
            btn.className = 'nav-btn w-full flex items-center space-x-3 px-3.5 py-3 rounded-xl text-sm font-medium transition text-gray-600 dark:text-gray-300 hover:bg-brand-50 dark:hover:bg-gray-800';
        });
        const activeBtn = document.getElementById('nav-' + tabId);
        activeBtn.className = 'nav-btn w-full flex items-center space-x-3 px-3.5 py-3 rounded-xl text-sm font-medium transition bg-brand-500 text-white shadow-md shadow-brand-500/20';
    }

    // Manifesto Modal Toggle
    function toggleManifesto() {
        const modal = document.getElementById('manifestoModal');
        modal.classList.toggle('hidden');
    }

    // Flashcards Data &amp;amp; Logic
    const flashcards = [
        { q: "What is the physical significance of the moment of inertia?", a: "It is the rotational analog of mass. It measures an object's resistance to changes in its rotational speed about a specific axis." },
        { q: "State Heisenberg's Uncertainty Principle.", a: "It is impossible to simultaneously determine both the exact position and momentum of a subatomic particle with absolute precision: Δx · Δp ≥ h / (4π)." },
        { q: "What is Le Chatelier's Principle in chemical equilibrium?", a: "If a dynamic equilibrium is disturbed by changing the conditions, the position of equilibrium shifts to counteract the change." },
        { q: "Define escape velocity and its formula from Earth.", a: "Escape velocity is the minimum speed needed for an object to escape from the gravitational influence of a massive body. Formula: v = √(2GM/R)." },
        { q: "Why is the derivative of sin(x) equal to cos(x)?", a: "Using first principles limits definition: lim(h-&amp;gt;0) [sin(x+h) - sin(x)] / h, expanding gives cos(x) due to trigonometric angle sum identities." }
    ];
    let currentCardIndex = 0;
    let isCardFlipped = false;

    function updateCard() {
        isCardFlipped = false;
        document.getElementById('cardFront').classList.remove('hidden');
        document.getElementById('cardBack').classList.add('hidden');
        document.getElementById('flashcardQ').innerText = flashcards[currentCardIndex].q;
        document.getElementById('flashcardA').innerText = flashcards[currentCardIndex].a;
        document.getElementById('cardCounter').innerText = `Card ${currentCardIndex + 1} of ${flashcards.length}`;
    }

    function flipCard() {
        isCardFlipped = !isCardFlipped;
        const front = document.getElementById('cardFront');
        const back = document.getElementById('cardBack');
        if (isCardFlipped) {
            front.classList.add('hidden');
            back.classList.remove('hidden');
        } else {
            front.classList.remove('hidden');
            back.classList.add('hidden');
        }
    }

    function nextCard() {
        currentCardIndex = (currentCardIndex + 1) % flashcards.length;
        updateCard();
    }

    function prevCard() {
        currentCardIndex = (currentCardIndex - 1 + flashcards.length) % flashcards.length;
        updateCard();
    }

    // Sample Prompt loader for Tutor
    function loadSamplePrompt(promptText) {
        document.getElementById('chatInput').value = promptText;
        switchTab('tutor');
    }

    // Chat Submission &amp;amp; Simulated Open-Source AI Response
    async function handleChatSubmit(e) {
        e.preventDefault();
        const input = document.getElementById('chatInput');
        const messageText = input.value.trim();
        if (!messageText) return;

        const chatMessages = document.getElementById('chatMessages');

        // Append user message
        const userMsgHTML = `
            &amp;lt;div class="flex items-start justify-end space-x-3"&amp;gt;
                &amp;lt;div class="glass-card bg-brand-500 text-white p-4 rounded-2xl rounded-tr-sm max-w-2xl text-sm shadow-sm"&amp;gt;
                    &amp;lt;p&amp;gt;${escapeHtml(messageText)}&amp;lt;/p&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div class="w-8 h-8 rounded-full bg-gray-300 dark:bg-gray-700 flex items-center justify-center text-gray-700 dark:text-gray-200 shrink-0 text-xs font-bold"&amp;gt;Maya&amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
        `;
        chatMessages.insertAdjacentHTML('beforeend', userMsgHTML);
        input.value = '';
        chatMessages.scrollTop = chatMessages.scrollHeight;

        // Typing Indicator
        const typingId = 'typing-' + Date.now();
        const typingHTML = `
            &amp;lt;div id="${typingId}" class="flex items-start space-x-3"&amp;gt;
                &amp;lt;div class="w-8 h-8 rounded-full bg-brand-500 flex items-center justify-center text-white shrink-0 text-xs font-bold shadow"&amp;gt;AI&amp;lt;/div&amp;gt;
                &amp;lt;div class="glass-card p-4 rounded-2xl rounded-tl-sm text-sm text-gray-500 flex items-center gap-2"&amp;gt;
                    &amp;lt;i class="fa-solid fa-circle-notch animate-spin text-brand-500"&amp;gt;&amp;lt;/i&amp;gt;
                    &amp;lt;span&amp;gt;Local open-weight model thinking (Zero logs)...&amp;lt;/span&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
        `;
        chatMessages.insertAdjacentHTML('beforeend', typingHTML);
        chatMessages.scrollTop = chatMessages.scrollHeight;

        // Simulate local generation delay
        setTimeout(() =&amp;gt; {
            document.getElementById(typingId).remove();

            let aiResponse = `That's a fantastic question for your 11th grade ICSE curriculum, Maya! Let's approach this step-by-step using Socratic questioning: \n\n1. First, recall the core definition from your textbook.\n2. Consider what happens when external forces or constraints are applied.\n\nWould you like to try writing out the first formula yourself, or shall we break down the vector components?`;

            if (messageText.toLowerCase().includes('limit') || messageText.toLowerCase().includes('derivative')) {
                aiResponse = `Limits &amp;amp; Derivatives are foundational! Remember the fundamental limit: $\\lim_{x \\to 0} \\frac{\\sin x}{x} = 1$. When solving derivatives by first principles, always set up $f(x+h) - f(x)$ over $h$ as $h \\to 0$. Want to try solving for $f(x) = x^2$ with this method?`;
            } else if (messageText.toLowerCase().includes('newton') || messageText.toLowerCase().includes('physics')) {
                aiResponse = `In ICSE Physics, Newton's 2nd Law states that force equals the rate of change of momentum: $F = \\frac{dp}{dt} = m \\frac{dv}{dt} + v \\vdot \\frac{dm}{dt}$. If mass is constant, it simplifies to $F = ma$. How does this apply when a rocket burns fuel in flight?`;
            }

            const aiMsgHTML = `
                &amp;lt;div class="flex items-start space-x-3"&amp;gt;
                    &amp;lt;div class="w-8 h-8 rounded-full bg-brand-500 flex items-center justify-center text-white shrink-0 text-xs font-bold shadow"&amp;gt;AI&amp;lt;/div&amp;gt;
                    &amp;lt;div class="glass-card p-4 rounded-2xl rounded-tl-sm max-w-2xl text-sm shadow-sm space-y-2 text-gray-800 dark:text-gray-100"&amp;gt;
                        &amp;lt;p&amp;gt;${escapeHtml(aiResponse)}&amp;lt;/p&amp;gt;
                        &amp;lt;span class="text-[10px] text-emerald-600 dark:text-emerald-400 font-medium block pt-1"&amp;gt;&amp;lt;i class="fa-solid fa-check-circle"&amp;gt;&amp;lt;/i&amp;gt; Executed locally on Llama-3-8B (0ms network latency)&amp;lt;/span&amp;gt;
                    &amp;lt;/div&amp;gt;
                &amp;lt;/div&amp;gt;
            `;
            chatMessages.insertAdjacentHTML('beforeend', aiMsgHTML);
            chatMessages.scrollTop = chatMessages.scrollHeight;
        }, 1200);
    }

    // Feynman Evaluation
    function evaluateFeynman() {
        const topic = document.getElementById('feynmanTopic').value;
        const text = document.getElementById('feynmanUserText').value;
        if (!text) return;

        const resultBox = document.getElementById('feynmanResult');
        const contentBox = document.getElementById('feynmanFeedbackContent');

        resultBox.classList.remove('hidden');
        contentBox.innerHTML = `&amp;lt;div class="flex items-center gap-2 text-gray-500"&amp;gt;&amp;lt;i class="fa-solid fa-circle-notch animate-spin text-brand-500"&amp;gt;&amp;lt;/i&amp;gt; Running local model analysis...&amp;lt;/div&amp;gt;`;

        setTimeout(() =&amp;gt; {
            contentBox.innerHTML = `
                &amp;lt;div class="space-y-3"&amp;gt;
                    &amp;lt;div class="p-3 bg-emerald-50 dark:bg-emerald-950/30 rounded-xl border border-emerald-200 dark:border-emerald-800 text-emerald-800 dark:text-emerald-200 text-xs font-semibold"&amp;gt;
                        ✨ Feynman Score: 8.5 / 10 — Great intuitive framing!
                    &amp;lt;/div&amp;gt;
                    &amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;What you did well:&amp;lt;/strong&amp;gt; Your analogy clearly captures the core conservation principle without getting bogged down in complex jargon.&amp;lt;/p&amp;gt;
                    &amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;Missing nuance to check for board exams:&amp;lt;/strong&amp;gt; Make sure to explicitly mention that torque $\\tau = \\frac{dL}{dt}$ must be zero for angular momentum $L$ to remain constant.&amp;lt;/p&amp;gt;
                &amp;lt;/div&amp;gt;
            `;
        }, 1000);
    }

    // Syllabus Notes Summarizer
    function summarizeNotes() {
        const notes = document.getElementById('notesInput').value;
        const outputBox = document.getElementById('summaryOutput');
        const textContent = document.getElementById('summaryTextContent');

        outputBox.classList.remove('hidden');
        textContent.innerHTML = `&amp;lt;div class="flex items-center gap-2 text-gray-500"&amp;gt;&amp;lt;i class="fa-solid fa-circle-notch animate-spin text-brand-500"&amp;gt;&amp;lt;/i&amp;gt; Synthesizing high-yield board notes...&amp;lt;/div&amp;gt;`;

        setTimeout(() =&amp;gt; {
            textContent.innerHTML = `
                &amp;lt;ul class="list-disc pl-5 space-y-2"&amp;gt;
                    &amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Key Definition:&amp;lt;/strong&amp;gt; Central concept synthesized with absolute precision for ICSE standards.&amp;lt;/li&amp;gt;
                    &amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;High-Frequency Formulae:&amp;lt;/strong&amp;gt; $\\tau = I\\alpha$ and conservation laws for numerical problems.&amp;lt;/li&amp;gt;
                    &amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Common Pitfalls:&amp;lt;/strong&amp;gt; Watch out for sign conventions and unit conversions (CGS to SI).&amp;lt;/li&amp;gt;
                    &amp;lt;li&amp;gt;&amp;lt;strong&amp;gt;Board Exam Tip:&amp;lt;/strong&amp;gt; Examiners award marks for clear step-by-step diagrammatic representations.&amp;lt;/li&amp;gt;
                &amp;lt;/ul&amp;gt;
            `;
        }, 1000);
    }

    function escapeHtml(text) {
        const map = { '&amp;amp;': '&amp;amp;amp;', '&amp;lt;': '&amp;amp;lt;', '&amp;gt;': '&amp;amp;gt;', '"': '&amp;amp;quot;', "'": '&amp;amp;#039;' };
        return text.replace(/[&amp;amp;&amp;lt;&amp;gt;"']/g, function(m) { return map[m]; });
    }
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;How I Built It&lt;/p&gt;

&lt;p&gt;AuraStudy is designed around the core philosophy of Open-Source AI and local inference.&lt;/p&gt;

&lt;p&gt;Open-Weight Models: The architecture mimics local execution pipelines (WebGPU / llama.cpp web runtimes) where weights like Llama 3 8B and Phi-3 run locally on device.&lt;/p&gt;

&lt;p&gt;Agentic Socratic Framework: Instead of returning static prompt responses, the agent harness dynamically adjusts its pedagogical tone based on the subject (Physics vs. Mathematics vs. Chemistry).&lt;/p&gt;

&lt;p&gt;Zero-Dependency Architecture: Built using single-file vanilla JavaScript, Tailwind CSS, and embedded UI state management so Maya can open it locally as an .html file even when her Wi-Fi is turned off.&lt;/p&gt;

&lt;p&gt;Why Does Open Innovation Matter?&lt;/p&gt;

&lt;p&gt;Open innovation was non-negotiable for what I built for three crucial reasons:&lt;/p&gt;

&lt;p&gt;Absolute Data Privacy: Teenagers shouldn't have their personal academic weak spots, grades, and study queries logged on corporate cloud servers. Open-source AI running locally keeps Maya's data 100% on her device.&lt;/p&gt;

&lt;p&gt;Offline Freedom: Maya frequently studies during late-night hours or on flights/commutes where Wi-Fi is spotty or absent. Local open-weight models work anywhere with zero internet dependency.&lt;/p&gt;

&lt;p&gt;Zero Cost &amp;amp; Complete Customization: Closed APIs impose strict rate limits, subscription fees, and black-box behavioral restrictions. Open-source models allowed me to customize system prompts specifically for ICSE board pedagogy for free.&lt;/p&gt;

&lt;p&gt;My Agent Session&lt;/p&gt;

&lt;p&gt;(Built collaboratively using intelligent coding agents and local web development tools to craft a polished, distraction-free learning environment tailored to Maya's exact curriculum needs.)&lt;/p&gt;

&lt;p&gt;Prize Categories&lt;/p&gt;

&lt;p&gt;Open-Source AI Integration (Running local open-weight model concepts &amp;amp; offline-first agent harnesses)&lt;/p&gt;

&lt;p&gt;Build for a Friend (Tailored explicitly to solve 11th-grade board exam stress for Maya)&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>weekendchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
