[DTPS-36] Initial implementation of most changes
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 4347077..eb4a70e 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -20,7 +20,7 @@
 To get Power+ up and running locally, you'll need git and node installed on your system.

 

 ```bash

-git clone https://github.com/jottocraft/dtps.git dtps

+git clone https://bitbucket.org/jottocraft/dtps.git

 cd dtps

 npm install

 npm start

diff --git a/README.md b/README.md
index 56e8731..cf093ae 100644
--- a/README.md
+++ b/README.md
@@ -4,8 +4,6 @@
 

 <a href="https://github.com/jottocraft/dtps/releases/latest"><img src="https://img.shields.io/github/release/jottocraft/dtps.svg" /></a>

 <a href="https://powerplus.app"><img src="https://img.shields.io/website/https/powerplus.app.svg?label=server%20status" /></a>

-<a href="https://github.com/jottocraft/dtps/actions?query=workflow%3Adeploy"><img src="https://github.com/jottocraft/dtps/workflows/deploy/badge.svg" /></a>

-<a href="https://github.com/jottocraft/dtps/actions?query=workflow%3Adev"><img src="https://github.com/jottocraft/dtps/workflows/dev/badge.svg" /></a>

 

 For users looking to install Power+, visit the Power+ website by clicking <a href="https://powerplus.app/?install=true">here</a>

 

@@ -15,8 +13,8 @@
 

 - [Source code](https://bitbucket.org/jottocraft/dtps)

 - [Issue tracker](https://jottocraft.atlassian.net/jira/software/c/projects/DTPS/issues)

-- [Developer Documentation](https://powerplus.app/docs)

+- [Developer documentation](https://powerplus.app/docs)

 

 <br /><br /><br /><br /><br /><br />

 

-(c) 2018-2022 jottocraft &nbsp;&nbsp; [license](https://github.com/jottocraft/dtps/blob/main/LICENSE)

+(c) 2018-2022 jottocraft &nbsp;&nbsp; [license](https://bitbucket.org/jottocraft/dtps/src/main/LICENSE)

diff --git a/build.js b/build.js
index 9806168..a47a030 100644
--- a/build.js
+++ b/build.js
@@ -71,11 +71,16 @@
 function copyStatic() {

     console.log("\n[2/3] Copying static files...");

 

-    //Make build folder if it doesn't already exist

+    //Make build and Fluid UI folders they doesn't already exist

     mkdirp.sync("build");

+    mkdirp.sync(path.join("build", "fluid"));

 

     //Copy dtps.css

-    fs.copyFileSync("dtps.css", "build/dtps.css");

+    fs.copyFileSync("ui/dtps.css", "build/dtps.css");

+

+    //Copy Fluid UI

+    fs.copyFileSync("ui/fluid.css", "build/fluid/fluid.css");

+    fs.copyFileSync("ui/fluid.js", "build/fluid/fluid.js");

 

     //Write CNAME

     fs.writeFileSync(path.join("build", "CNAME"), dev ? "dev.dtps.jottocraft.com" : "powerplus.app", "utf8");

diff --git a/dev.js b/dev.js
index 5cb6f24..8c9ca26 100644
--- a/dev.js
+++ b/dev.js
@@ -26,9 +26,13 @@
 //Serve scripts
 app.use('/scripts', express.static('scripts'));
 
-//Serve root-level scripts
+//Serve root-level script
 app.use('/init.js', express.static('init.js'));
-app.use('/dtps.css', express.static('dtps.css'));
+
+//Serve UI files
+app.use('/dtps.css', express.static('ui/dtps.css'));
+app.use('/fluid/fluid.css', express.static('ui/fluid.css'));
+app.use('/fluid/fluid.js', express.static('ui/fluid.js'));
 
 //Serve www
 app.use('/', express.static('www'));
diff --git a/docs/README.md b/docs/README.md
index faef171..789a14e 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -1,6 +1,5 @@
 This website includes reference documentation for the latest version of Power+

 

 ### Resources

-- [GitHub](https://github.com/jottocraft/dtps)

-- [Contributing](https://github.com/jottocraft/dtps/blob/main/CONTRIBUTING.md)

-- [Power+ website](https://powerplus.app)
\ No newline at end of file
+- [Source code](https://bitbucket.org/jottocraft/dtps)

+- [Issue tracker](https://jottocraft.atlassian.net/jira/software/c/projects/DTPS/issues)
\ No newline at end of file
diff --git a/package.json b/package.json
index f87e0e2..e3b6a8e 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,7 @@
   },

   "repository": {

     "type": "git",

-    "url": "git+https://github.com/jottocraft/dtps.git"

+    "url": "git+https://bitbucket.org/jottocraft/dtps.git"

   },

   "keywords": [

     "canvas-lms",

@@ -21,7 +21,7 @@
   "author": "jottocraft",

   "license": "MIT",

   "bugs": {

-    "url": "https://github.com/jottocraft/dtps/issues"

+    "url": "https://jottocraft.atlassian.net/browse/DTPS"

   },

   "homepage": "https://powerplus.app",

   "main": "server.js",

diff --git a/scripts/assignments.js b/scripts/assignments.js
index 3556d16..3ead29f 100644
--- a/scripts/assignments.js
+++ b/scripts/assignments.js
@@ -69,8 +69,10 @@
 dtps.renderAssignmentScore = function (assignment) {

     var scoreHTML = "";

 

+    const useRubricGrades = dtpsLMS.useRubricGrades instanceof Array ? dtpsLMS.useRubricGrades.includes(dtps.classes[assignment.class].id) : dtpsLMS.useRubricGrades;

+

     //Use rubric score over points score if possible

-    if (dtpsLMS.useRubricGrades && assignment.rubric) {

+    if (useRubricGrades && assignment.rubric) {

         var rubricHTML = [];

 

         assignment.rubric.forEach(rubricItem => {

@@ -85,7 +87,7 @@
 

         if (rubricHTML.length) scoreHTML = `<div class="dtpsRubricScore">${rubricHTML.join("")}</div>`;

 

-    } else if (!dtpsLMS.useRubricGrades && (assignment.grade || (assignment.grade == 0))) {

+    } else if (!useRubricGrades && (assignment.grade || (assignment.grade == 0))) {

         scoreHTML = /*html*/`

             <div class="assignmentGrade">

                 <div class="grade">${Number(assignment.grade.toFixed(2))}</div>

@@ -1051,7 +1053,7 @@
             gradedAssignments++;

 

             assignmentHTML += /*html*/`

-                <div onclick="dtps.assignment('${assignment.id}', ${classNum})" class="gradebookAssignment card">

+                <div onclick="dtps.assignment('${assignment.id}', ${classNum})" class="gradebookAssignment">

                     <h5>

                         ${assignment.title}

 

@@ -1146,7 +1148,14 @@
 }

 

 fluid.externalScreens.gradebook = (courseID) => {

-    dtps.gradebook(courseID);

+    const courseLMSGradebookAllowed = dtpsLMS.lmsGradebookAllowlist ? dtpsLMS.lmsGradebookAllowlist.includes(courseID) : true;

+    if (dtpsLMS.gradebook && courseLMSGradebookAllowed && !((dtps.env == "dev") && (fluid.get("pref-debuggingGenericGradebook") == "true"))) {

+        //Handle LMS gradebook

+        dtps.showLMSGradebook(courseID);

+    } else if (dtpsLMS.genericGradebook || ((dtps.env == "dev") && (fluid.get("pref-debuggingGenericGradebook") == "true"))) {

+        //Generic gradebook script

+        dtps.gradebook(courseID);

+    }

 }

 

 //Type definitions

diff --git a/scripts/core.js b/scripts/core.js
index ce89d8b..370f561 100644
--- a/scripts/core.js
+++ b/scripts/core.js
@@ -23,6 +23,7 @@
  * @property {string} baseURL The base URL that DTPS is being loaded from

  * @property {boolean} unstable This is true if loading an unstable version of DTPS

  * @property {boolean} gradebookExpanded True if gradebook details (Show more...) is open. Used in the generic gradebook and may be used in custom gradebook implementations.

+ * @property {boolean} reloadPending True if the user has made changes that require a reload

  * @property {string|undefined} popup Popup to show when loaded. Either undefined (no popup), "firstrun", or "changelog". 

  * @property {User} user Current user, fetched with dtps.init

  * @property {number|string} selectedClass The selected class number, or "dash" if the dashboard is selected. Set when the first screen is loaded in dtps.init.

@@ -43,6 +44,7 @@
     baseURL: window.dtpsBaseURL || "https://powerplus.app",

     unstable: window.dtpsBaseURL !== "https://powerplus.app",

     gradebookExpanded: false,

+    reloadPending: false,

     updates: [],

     dashboardItems: [

         {

@@ -75,7 +77,6 @@
         allowWhatIfGrades: true,

         canvasRequestSpacing: 25,

         debugClassID: "1455",

-        dtechCurrentTerm: "S1",

         gradeCalculationEnabled: true,

         loadingAlert: false,

         remoteUpdate: {

@@ -83,9 +84,7 @@
             html: null,

             host: null,

             active: false

-        },

-        showVideoMeetingButton: false,

-        angryOnRubricError: 0

+        }

     }

 };

 

@@ -187,7 +186,7 @@
  * @param {...*} msg The debugging messages to log

  */

 dtps.log = function () {

-    if (dtps.env == "dev") console.log("[DTPS]", ...arguments);

+    console.log("[DTPS]", ...arguments);

 }

 

 

@@ -226,6 +225,7 @@
             <h5>${dtpsLMS.gradebook ? "Manage your coursework and grades" : "Manage your coursework"}</h5>

             <p>Power+ organizes all of your coursework so you can easily see what you need to do next. The dashboard shows upcoming assignments, recent grades, and announcements.

             ${dtpsLMS.gradebook ? `Power+ includes a gradebook designed for ${dtpsLMS.name} to help you understand your grades.` : ``}</p>

+            ${dtpsLMS.dtech ? `<p style="color: var(--text);"><b>As of June 2022, d.tech CBL features are no longer actively updated. If you'd like to use these potentially obsolete features, you must opt-in by clicking "Settings" at the top-right corner and selecting the "CBL" item in the sidebar.</b></p>` : ``}

         </div>

 

         ${dtpsLMS.isDemoLMS ? /*html*/`

@@ -303,11 +303,7 @@
         //dtao/nearest-color is used for finding the nearest class color

         jQuery.getScript("https://cdn.jottocraft.com/nearest-color.dtao.js", () => {

             //Fluid UI for core UI elements

-            if (window.localStorage.getItem("pref-debuggingLocalFluidUI") == "true") {

-                jQuery.getScript('http://localhost:1222/dev/fluid.js', resolve);

-            } else {

-                jQuery.getScript('https://cdn.jottocraft.com/fluid/build/v5/latest/fluid.js', resolve);

-            }

+            jQuery.getScript(dtps.baseURL + "/fluid/fluid.js", resolve);

         });

     });

 }

@@ -319,7 +315,7 @@
     jQuery("<link/>", {

         rel: "stylesheet",

         type: "text/css",

-        href: window.localStorage.getItem("pref-debuggingLocalFluidUI") == "true" ? "http://localhost:1222/dev/fluid.css" : "https://cdn.jottocraft.com/fluid/build/v5/latest/fluid.css",

+        href: dtps.baseURL + "/fluid/fluid.css",

         class: "dtpsHeadItem"

     }).appendTo("head");

 

@@ -534,7 +530,8 @@
         dtps.classes.forEach(course => {

             course.color = course.color ? nearestCourseColor(course.color).value : "gray";

 

-            if (dtpsLMS.calculateGrade && dtps.remoteConfig.gradeCalculationEnabled) {

+            const classGradeCalcAllowed = dtpsLMS.gradeCalculationAllowlist ? dtpsLMS.gradeCalculationAllowlist.includes(course.id) : true;

+            if (dtpsLMS.calculateGrade && classGradeCalcAllowed && dtps.remoteConfig.gradeCalculationEnabled) {

                 //This LMS/Institution supports grade calculation, show loading indicator for grade

                 //Grade will be calculated once assignments are fetched

 

@@ -552,14 +549,7 @@
         fluid.screens.search = dtps.baseURL + "/scripts/search.js";

         fluid.screens.pages = dtps.baseURL + "/scripts/pages-discussions.js";

         fluid.screens.discussions = dtps.baseURL + "/scripts/pages-discussions.js";

-

-        if (dtpsLMS.gradebook && !((dtps.env == "dev") && (fluid.get("pref-debuggingGenericGradebook") == "true"))) {

-            //Handle LMS gradebook

-            fluid.screens.gradebook = dtps.showLMSGradebook;

-        } else if (dtpsLMS.genericGradebook || ((dtps.env == "dev") && (fluid.get("pref-debuggingGenericGradebook") == "true"))) {

-            //Generic gradebook script

-            fluid.screens.gradebook = dtps.baseURL + "/scripts/assignments.js";

-        }

+        fluid.screens.gradebook = dtps.baseURL + "/scripts/assignments.js";

 

         //Begin fetching class assignments

         var fetchedAnnouncements = [];

@@ -568,7 +558,7 @@
                 return new Promise((resolve, reject) => {

                     if (dtpsLMS.institutionSpecific && dtpsLMS.updateAssignments) {

                         //Using an institution-specific script, make any nessasary changes and return updated assignments

-                        dtpsLMS.updateAssignments(rawAssignments).then(updatedAssignments => {

+                        dtpsLMS.updateAssignments(rawAssignments, course).then(updatedAssignments => {

                             resolve(updatedAssignments);

                         }).catch(reject);

                     } else {

@@ -604,7 +594,8 @@
                 if (dtps.updates.length > 15) dtps.updates.length = 15;

 

                 //Calculate class grade if supported

-                if (dtpsLMS.calculateGrade && dtps.remoteConfig.gradeCalculationEnabled) {

+                const classGradeCalcAllowed = dtpsLMS.gradeCalculationAllowlist ? dtpsLMS.gradeCalculationAllowlist.includes(course.id) : true;

+                if (dtpsLMS.calculateGrade && classGradeCalcAllowed && dtps.remoteConfig.gradeCalculationEnabled) {

                     let gradeCalcResults = dtpsLMS.calculateGrade(course, assignments);

 

                     if (gradeCalcResults) {

@@ -968,7 +959,8 @@
         }

 

         //Show gradebook if the LMS and the class supports it, otherwise, hide it

-        if ((dtpsLMS.genericGradebook || dtpsLMS.gradebook) && dtps.classes[classNum].hasGradebook) {

+        const courseLMSGradebookAllowed = dtpsLMS.lmsGradebookAllowlist ? dtpsLMS.lmsGradebookAllowlist.includes(dtps.classes[classNum].id) : true;

+        if ((dtpsLMS.genericGradebook || (dtpsLMS.gradebook && courseLMSGradebookAllowed)) && dtps.classes[classNum].hasGradebook) {

             $(".btns .btn.grades").show();

         } else {

             $(".btns .btn.grades").hide();

@@ -1269,10 +1261,10 @@
 }

 

 /**

- * Shows a warning telling the user that they must reload for setting changes to take effect

+ * Enables the reload warning when the user exists settings

  */

 dtps.settingsReloadWarning = function () {

-    $("#settingsReloadWarning").show();

+    dtps.reloadPending = true;

 }

 

 /**

@@ -1281,13 +1273,13 @@
 dtps.renderGradesInSettings = function () {

     //Render d.tech dangerous CBL settings

     if (dtpsLMS.dtech) {

-        $("#classCBLChex").html(dtps.classes.map(course => {    

+        $("#classCBLChex").html(dtps.classes.map(course => {

             return (

                 `<div>

-                <div onclick="fluid.set('pref-enabledCBLFor${course.id}')" class="checkbox pref-enabledCBLFor${course.id}"><i class="fluid-icon">check</i></div>

-                <div class="label">${course.name}</div>

-              </div><br />`

-            )

+                    <div onclick="fluid.set('pref-enabledCBLFor${course.id}'); dtps.settingsReloadWarning();" class="checkbox pref-enabledCBLFor${course.id}"><i class="fluid-icon">check</i></div>

+                    <div class="label">${course.name}</div>

+                </div><br />`

+            );

         }));

     }

 

@@ -1506,6 +1498,10 @@
           </div>

 

           <div class="items" style="float: right;">

+            <div style="font-size: 14px;" class="navitem" onclick="window.open('https://jottocraft.atlassian.net/secure/CreateIssueDetails!init.jspa?pid=10009&issuetype=10005')">

+                <i style="font-size: 18px;" class="fluid-icon">bug_report</i>

+                <span>Report a bug</span>

+            </div>

             <div class="navitem" onclick="dtps.settings();">

                 <i class="fluid-icon">settings</i>

                 <span>Settings</span>

@@ -1575,7 +1571,7 @@
                 </button>

                 <button init="true" onclick="fluid.screen('gradebook', dtps.classes[dtps.selectedClass].id);" class="btn grades">

                     <i class="fluid-icon">assessment</i>

-                    ${dtpsLMS.gradebook ? "Grades" : "Gradebook"}

+                    Gradebook

                 </button>

             </div>

           </div>

@@ -1770,6 +1766,21 @@
         }

     });

 

+    /**

+     * A callback for blocking Fluid UI card closes

+     */

+    dtps.closeScreen = function () {

+        if (dtps.reloadPending) {

+            jQuery("body").addClass("requiredModal");

+            fluid.alert("Reload required", "Some of the settings you've changed require a reload to take effect.", "refresh", [

+                { name: "Reload Power+", icon: "refresh", action: () => window.location.reload() }

+            ], "var(--theme)");

+            return true;

+        }

+

+        return false;

+    }

+

     //Render settings card

     var baseHost = new URL(dtps.baseURL).hostname;

     jQuery(".card.settingsCard").html(/*html*/`

@@ -1817,8 +1828,6 @@
         <div style="min-height: 100%" class="content">

             <div class="abtpage settings">

                 <h5><b>Settings</b></h5>

-

-                <p style="display: none;" id="settingsReloadWarning">You need to reload for the changes you've made to take effect</p>

                 

                 <br />

                 <p>Sidebar</p>

@@ -1826,13 +1835,6 @@
                 <div onclick="fluid.set('pref-hideGrades');" class="switch pref-hideGrades"><span class="head"></span></div>

                 <div class="label"><i class="fluid-icon">visibility_off</i> Hide class grades</div>

 

-                ${dtpsLMS.dtech && !dtps.user.parent ? /*html*/`

-                        <br /><br />

-                        <div onclick="fluid.set('pref-autoGroupClasses'); dtps.settingsReloadWarning();" class="switch pref-autoGroupClasses active"><span class="head"></span></div>

-                        <div class="label"><i class="fluid-icon">sort</i> Automatically group and sort classes</div>

-                    ` : ""

-        }

-

                 <br /><br />

                 <p>Classes</p>

 

@@ -1899,7 +1901,7 @@
                 

                 <br />

                 

-                <div onclick="fluid.set('pref-dangerousCBL');" class="switch pref-dangerousCBL"><span class="head"></span></div>

+                <div onclick="fluid.set('pref-dangerousCBL'); dtps.settingsReloadWarning();" class="switch pref-dangerousCBL"><span class="head"></span></div>

                 <div class="label"><i class="fluid-icon">functions</i> Allow CBL features (updated Spring 2022)</div>

 

                 <br /><br /><br />

@@ -1985,17 +1987,6 @@
                    <br />

                    <div onclick="fluid.set('pref-debuggingGenericGradebook')" class="switch pref-debuggingGenericGradebook"><span class="head"></span></div>

                    <div class="label">Always use the generic gradebook</div>

-

-                   <br /><br />

-                   <div onclick="fluid.set('pref-debuggingLocalFluidUI')" class="switch pref-debuggingLocalFluidUI"><span class="head"></span></div>

-                   <div class="label">Use local Fluid UI</div>

-

-                   <br /><br />

-

-                   <br /><br />

-                   <input type="date" />

-                   <br /><br />

-                   <input type="color" />

                 </div>

                 <div style="display: none;" class="abtpage experiments">

                     <h5><b>Experiments</b></h5>

@@ -2082,9 +2073,11 @@
                 ${dtps.env == "dev" ? `` : `<p style="cursor: pointer; color: var(--secText, gray)" onclick="$('.advancedOptions').show(); $(this).hide();" class="advOp">Show advanced options</p>`}

 

                 <div style="text-align: center; padding: 50px 0px;">

-                    <img style="height: 45px; margin-right: 20px; vertical-align: middle;" src="https://cdn.jottocraft.com/images/footerImage.png" />

-                    <h5 style="display: inline-block; vertical-align: middle;">jottocraft</h5>

-                    <p>(c) jottocraft 2018-2022 &nbsp;&nbsp;<a href="https://github.com/jottocraft/dtps">source code</a>&nbsp;&nbsp;<a href="https://github.com/jottocraft/dtps/blob/main/LICENSE">license</a></p>

+                    <a href="https://jottocraft.com">

+                        <img style="height: 38px; margin-right: 10px; vertical-align: middle;" src="https://cdn.jottocraft.com/images/footerImage.png" />

+                        <h5 style="display: inline-block; vertical-align: middle; color: var(--text);">jottocraft</h5>

+                    </a>

+                    <p>(c) jottocraft 2018-2022. This project is <a href="https://jottocraft.com/oss">open source</a>.

                 </div>

             </div>

         </div>

@@ -2124,8 +2117,10 @@
  * @property {string} source URL to the LMS integration's source code

  * @property {boolean} [dtech] True if this LMS is d.tech

  * @property {boolean} [institutionSpecific] True if the LMS is designed for a specific institution instead of a broader LMS

- * @property {boolean} [preferRubricGrades] True if DTPS should prefer rubric grades for assignments

+ * @property {boolean|string[]} [useRubricGrades] True if DTPS should use rubric grades for assignments. If an array is provided, only assignments whose class ID is in the array will use rubric grades.

  * @property {boolean} [genericGradebook] True if DTPS should show the generic gradebook. Ignored if dtpsLMS.gradebook defined.

+ * @property {string[]} [gradeCalculationAllowlist] An array of class IDs that will use dtpsLMS.calculateGrade, if provided. All other classes will bypass dtpsLMS.calculateGrade and instead use the default LMS grade.

+ * @property {string[]} [lmsGradebookAllowlist] An array of class IDs that will use dtpsLMS.gradebook, if provided. All other classes will bypass dtpsLMS.gradebook and instead use the generic gradebook if enabled.

  */

 

 /**

@@ -2283,6 +2278,7 @@
 * @description [OPTIONAL, INSTITUTION ONLY] This function can be implemented by institution-specific scripts to loop through and override assignment data returned by the LMS.

 * @kind function

 * @param {Assignment[]} assignments Original assignments array

+* @param {Class} course The class that the assignment is in

 * @return {Promise<Assignment[]>} A promise that resolves to the updated assignments array

 */

 

diff --git a/scripts/lms/canvas.js b/scripts/lms/canvas.js
index 2c548e4..13cfae7 100644
--- a/scripts/lms/canvas.js
+++ b/scripts/lms/canvas.js
@@ -16,7 +16,7 @@
     description: "Power+ integration for Canvas LMS",

     url: "https://www.instructure.com/canvas/",

     logo: "https://i.imgur.com/rGjNVoc.png",

-    source: "https://github.com/jottocraft/dtps/blob/main/scripts/lms/canvas.js",

+    source: "https://bitbucket.org/jottocraft/dtps/src/main/scripts/lms/canvas.js",

     genericGradebook: true

 };

 

@@ -253,11 +253,6 @@
                                     }

                                 });

                             }

-

-                            if ((matches !== Object.keys(submission.rubric_assessment).length) && (dtps.remoteConfig.angryOnRubricError >= 1)) {

-                                dtpsAssignment.error = "Power+ found a rubric assessment but could not find its associated rubric data. One or more rubric/outcome assessments may be unavailable for this assignment.";

-                                if (dtpsLMS.dtech && (dtps.remoteConfig.angryOnRubricError == 2)) dtpsAssignment.error += " Please see the class grades tab for more information.";

-                            }

                         }

 

                         //Check for turned in, late, missing, gradedAt, and feedback

@@ -476,10 +471,6 @@
                         url: "/courses/" + classID + "/users/" + student.id

                     });

                 });

-                var dtechMatch = section.name.match(/[0-9](?=\(A)/);

-                if (dtpsLMS.dtech && dtechMatch) {

-                    section.name = dtechMatch[0] == 7 ? "@d.tech" : "Period " + dtechMatch[0];

-                }

                 sections.push({

                     title: section.name,

                     id: section.id,

diff --git a/scripts/lms/demo.js b/scripts/lms/demo.js
index 846b95f..83953b8 100644
--- a/scripts/lms/demo.js
+++ b/scripts/lms/demo.js
@@ -16,7 +16,7 @@
     description: "All content in this LMS is not real and is for demonstration purposes only",

     url: "https://powerplus.app",

     logo: "https://powerplus.app/logo.png",

-    source: "https://github.com/jottocraft/dtps/blob/main/scripts/lms/demo.js",

+    source: "https://bitbucket.org/jottocraft/dtps/src/main/scripts/lms/demo.js",

     genericGradebook: false,

     useRubricGrades: true,

     isDemoLMS: true

diff --git a/scripts/lms/dtech.js b/scripts/lms/dtech.js
index 0581420..d7fa1c3 100644
--- a/scripts/lms/dtech.js
+++ b/scripts/lms/dtech.js
@@ -10,18 +10,28 @@
 

 //Load Canvas integration

 jQuery.getScript(window.dtpsBaseURL + "/scripts/lms/canvas.js", function () {

+    //Get global dangerous CBL preference

+    const dangerousCBLEnabled = window.localStorage.getItem("pref-dangerousCBL") == "true";

+

+    //This array should be used for checking if CBL should be used

+    //dangerousCBL doesn't need to be checked since it is already checked before classes are added here

+    const consentedCBLCourses = [];

+

     //Add d.tech-specific items to dtpsLMS

     dtpsLMS.name = "d.tech";

     dtpsLMS.legalName = "Canvas LMS, Design Tech High School, or Instructure Inc";

     dtpsLMS.description = "Power+ integration for Canvas LMS, customized for d.tech";

     dtpsLMS.logo = "https://i.imgur.com/efGrLq3.png";

-    dtpsLMS.source = "https://github.com/jottocraft/dtps/blob/main/scripts/lms/dtech.js";

-    dtpsLMS.useRubricGrades = true;

+    dtpsLMS.source = "https://bitbucket.org/jottocraft/dtps/src/main/scripts/lms/dtech.js";

+    dtpsLMS.useRubricGrades = consentedCBLCourses;

+    dtpsLMS.gradeCalculationAllowlist = consentedCBLCourses;

+    dtpsLMS.lmsGradebookAllowlist = consentedCBLCourses;

     dtpsLMS.institutionSpecific = true;

-    dtpsLMS.genericGradebook = false;

+    dtpsLMS.genericGradebook = true;

     dtpsLMS.dtech = true;

 

     //Check if due date is usual

+    //TODO: [DTPS-39] Generalize unusual assignment due dates

     dtpsLMS.isUsualDueDate = function (date) {

         var date = new Date(date);

 

@@ -38,15 +48,16 @@
 

     //Update assignments

     //This is for customizing rubric names and colors to match d.tech CBL

-    dtpsLMS.updateAssignments = function (rawAssignments) {

+    dtpsLMS.updateAssignments = function (rawAssignments, course) {

         return new Promise((resolve, reject) => {

             var updatedAssignments = rawAssignments.map(assignment => {

+                //Skip if CBL is not enabled for this course

+                if (!consentedCBLCourses.includes(course.id)) return assignment;

+

                 //Check if assignment has rubric

                 if (assignment.rubric) {

                     //Update assignment rubric

                     assignment.rubric.forEach(rubricItem => {

-                        rubricItem.scoreName = shortenDtechRubricScoreName(rubricItem.scoreName);

-

                         if (rubricItem.score !== undefined) {

                             rubricItem.color = dtechRubricColor(rubricItem.score);

                         }

@@ -66,163 +77,31 @@
         return new Promise((resolve, reject) => {

             var tmpNewArray = [];

             classes.forEach((course, i) => {

-                //Fitler out outdated courses

-                if (course.endDate && (new Date() > new Date(course.endDate))) return;

-                if (course.termEndDate && (new Date() > new Date(course.termEndDate))) return;

-

-                //Get course period

-                var matches = course.period.match(/[0-9](?=\(A)/);

-                if (matches && matches[0]) {

-                    course.period = matches[0] == "7" ? 0 : Number(matches[0]);

-                } else if (/(exploration)|(april 2021)/gi.test(course.name)) {

-                    course.period = (/PM/g.test(course.name) || /afternoon/gi.test(course.name)) ? 12 : 11;

-

-                    //Remove old intersession courses

-                    var startDate = new Date(course.startDate);

-                    if ((startDate.getFullYear() == 2020) && (startDate.getMonth() == 9)) return;

-

-                    //Automatically detect AM/PM exploration and set the class name accordingly

-                    if (/AM/g.test(course.name) || /morning/gi.test(course.name)) course.subject = "Morning Exploration";

-                    if (/PM/g.test(course.name) || /afternoon/gi.test(course.name)) course.subject = "Afternoon Exploration";

-                } else {

-                    course.period = Infinity;

-                }

-

-                //Get course cycle

-                if (!dtps.user.parent && (window.localStorage.getItem("pref-autoGroupClasses") !== "false")) {

-                    if (false && (course.term == "S1")) {

-                        course.group = "Semester 1";

-                    } else if ((course.period >= 1) && (course.period <= 3)) {

-                        course.group = "Cycle 1/3";

-                    } else if ((course.period >= 4) && (course.period <= 6)) {

-                        course.group = "Cycle 2/4";

-                    } else if ((course.period == 11) || (course.period == 12)) {

-                        course.group = "Intersession";

-                        course.term = "int";

-                    }

-                }

-

-                //Check if course is ineligible for videoMeetingURL

-                if (!dtps.remoteConfig.showVideoMeetingButton || dtps.user.parent || !course.homepage || !course.group || (course.group == "Semester 1")) {

-                    course.videoMeetingURL = null;

-                }

-

-                //Add course icon

-                if (course.id == dtps.remoteConfig.debugClassID) {

-                    course.icon = "bug_report";

-                } else if (/Game/gi.test(course.subject)) {

-                    course.icon = "games";

-                } else if (/Architecture/gi.test(course.subject)) {

-                    course.icon = "architecture";

-                } else if (/History/gi.test(course.subject)) {

-                    course.icon = "history_edu";

-                } else if (/Biology/gi.test(course.subject)) {

-                    course.icon = "biotech";

-                } else if (/Physics|Science|Chemistry/gi.test(course.subject)) {

-                    course.icon = "science";

-                } else if (/Math|Algebra|Geometry|Calculus|Statistics/gi.test(course.subject)) {

-                    course.icon = "calculate";

-                } else if (/Engineering|DRG/gi.test(course.subject)) {

-                    course.icon = "engineering";

-                } else if (/((d|design)(\.| |-)?lab)|Prototyping/gi.test(course.subject)) {

-                    course.icon = "design_services";

-                } else if (/Exploration/gi.test(course.subject)) {

-                    course.icon = "explore";

-                } else if (/@d.?tech/gi.test(course.subject)) {

-                    course.icon = "supervisor_account";

-                } else if (/English/gi.test(course.subject)) {

-                    course.icon = "description";

-                } else if (/Model( |-|)(United Nations|UN)/gi.test(course.subject)) {

-                    course.icon = "public";

-                } else if (/Spanish|Language/gi.test(course.subject)) {

-                    course.icon = "translate";

-                } else if (/Government/gi.test(course.subject)) {

-                    course.icon = "gavel";

-                } else if (/(Koi|Live)( |-|)Stream/gi.test(course.subject)) {

-                    course.icon = "live_tv";

-                } else if (/Film/gi.test(course.subject)) {

-                    course.icon = "camera_roll";

-                } else if (/Leadership/gi.test(course.subject)) {

-                    course.icon = "stars";

-                } else if (/Athletics/gi.test(course.subject)) {

-                    course.icon = "sports_handball";

-                } else if (/Beyond/gi.test(course.subject)) {

-                    course.icon = "school";

-                }

+                //Fitler out outdated courses [TODO: [DTPS-38] generalize]

+                //if (course.endDate && (new Date() > new Date(course.endDate))) return;

+                //if (course.termEndDate && (new Date() > new Date(course.termEndDate))) return;

 

                 //Add course to list

                 tmpNewArray.push(course);

+

+                //Add course to CBL-enabled list

+                if (dangerousCBLEnabled && (fluid.get("pref-enabledCBLFor" + course.id) == "true")) {

+                    consentedCBLCourses.push(course.id);

+                }

             });

             classes = tmpNewArray;

 

-            //Automatically sort and group classes if enabled

-            if (!dtps.user.parent && (window.localStorage.getItem("pref-autoGroupClasses") !== "false")) {

-                classes.sort((a, b) => {

-                    /*var termA = a.term == "20-21" ? 1 : a.term == "S2" ? 2 : a.term == "int" ? 3 : 4;

-                    var termB = b.term == "20-21" ? 1 : b.term == "S2" ? 2 : b.term == "int" ? 3 : 4;

-                    return termA - termB;*/

-                    return a.period - b.period;

-                });

-            }

-

             resolve(classes);

         });

     }

 

-    //Fetch videoMeetingURL for a class

-    dtpsLMS.fetchMeetingURL = function (classID) {

-        return new Promise((resolve, reject) => {

-            var course = dtps.classes.find(course => course.id == classID);

-

-            if (course.homepage && (course.term == dtps.remoteConfig.dtechCurrentTerm)) {

-                dtpsLMS.fetchHomepage(classID).then(homepage => {

-                    //get zoom link

-                    var meetingURL = null;

-                    var matches = 0;

-                    for (var i = 0; i < $(homepage).find("a").length; i++) {

-                        var link = $($(homepage).find("a")[i]);

-                        if (link.children("img").attr("alt") && link.children("img").attr("alt").toUpperCase().includes("ZOOM BUTTON") && link.attr("href")) {

-                            //Button labelled as zoom button

-                            meetingURL = link.attr("href");

-                        } else if (link.attr("href") && link.attr("href").includes("zoom.us")) {

-                            //Button link goes to a zoom meeting, only use this if there is no other zoom link

-                            //if (!meetingURL) meetingURL = link.attr("href");

-                        }

-                    }

-

-                    if (matches > 1) {

-                        //Multiple zoom links found

-                        meetingURL = null;

-                    }

-

-                    resolve(meetingURL);

-                });

-            }

-        })

-    }

-

     //Run d.tech grade calculation algorithm (defined below)

     dtpsLMS.calculateGrade = function (course, assignments) {

-        var formula = null;

+        //If the user has not consented to dangerous CBL for this course, don't calculate

+        if (!consentedCBLCourses.includes(course.id)) return;

 

-        //Get d.tech grade calculation formula

-        if (dtps.remoteConfig.dtechCurrentTerm === course.term) {

-            //use current term if available

-            formula = "2020-DASH-LT";

-        } else if (!dtps.remoteConfig.dtechCurrentTerm && ((course.term === "S1") || (course.term === "S2"))) {

-            //use s1/s2 as defaults if current term is unset

-            formula = "2020-DASH-LT";

-        } else if (String(course.id).includes(dtps.remoteConfig.debugClassID)) {

-            //Always use grade calc on debug class

-            formula = "2020-DASH-LT";

-        }

-

-        //If there is no grade calculation formula, don't run grade calc

-        if (!formula) return;

-

-        if (assignments.find(a => a.error)) {

-            if (dtps.remoteConfig.angryOnRubricError == 1) return;

-        }

+        //The unique identifier for the CBL formula

+        const formula = "2020-DASH-LT";

 

         //Run d.tech grade calculation

         var dtechResults = dtechGradeCalc.run(assignments, formula);

@@ -241,16 +120,6 @@
 

     //Local functions & variables, not part of the dtpsLMS specification ----------------------------------------------

 

-    //Shortens rubric name for d.tech CBL rubrics

-    var shortenDtechRubricScoreName = function (rating) {

-        if (String(rating).toUpperCase().includes("PIONEERING")) return "Pioneering";

-        if (String(rating).toUpperCase().includes("PROFICIENT")) return "Proficient";

-        if (String(rating).toUpperCase().includes("DEVELOPING")) return "Developing";

-        if (String(rating).toUpperCase().includes("EMERGING")) return "Emerging";

-        if (!String(rating).includes(" ") && (String(rating).length <= 20)) return rating;

-        return "";

-    }

-

     //Get score color from rubric percentage

     var dtechRubricColor = function (score) {

         if (score > 4.0) return "#20D684";

diff --git a/dtps.css b/ui/dtps.css
similarity index 97%
rename from dtps.css
rename to ui/dtps.css
index 48d0128..2df8563 100644
--- a/dtps.css
+++ b/ui/dtps.css
@@ -1,1192 +1,1204 @@
-/*

-Power+ CSS

-(c) jottocraft 2018-2022

-*/

-

-[data-theme-image] .sidebar {

-    background-color: transparent;

-}

-

-[data-theme-type=light] {

-    --theme: #ccac56 !important;

-    --themeText: #ffffff !important;

-}

-

-[data-theme-type=dark] {

-    --theme: #cc9e54 !important;

-    --themeText: #261900 !important;

-}

-

-body:not(.ugShow) .assessmentWrapper.ungraded {

-    display: none;

-}

-

-.ugFilterSubmitted:not(.ugFilterUpcoming) .assessmentWrapper.ungraded:not(.ugSubmitted) {

-    display: none;

-}

-

-.ugFilterUpcoming:not(.ugFilterSubmitted) .assessmentWrapper.ungraded:not(.ugUpcoming) {

-    display: none;

-}

-

-.ugFilterUpcoming.ugFilterSubmitted .assessmentWrapper.ungraded:not(.ugUpcoming):not(.ugSubmitted) {

-    display: none;

-}

-

-.alternateFont {

-    --titleFont: BlinkMacSystemFont,-apple-system,Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif;

-    --textFont: BlinkMacSystemFont,-apple-system,Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif;

-}

-

-.dashboardItem {

-    text-align: center;

-    padding: 20px;

-    border-radius: 10px;

-    border: 2px solid var(--elements);

-    background: var(--cards);

-    cursor: move;

-    margin: 10px;

-    user-select: none; 

-    display: flex;

-    flex-direction: column;

-    justify-content: center;

-}

-

-.dashboardColumn {

-    vertical-align: top;

-    display: inline-block;

-    width: calc(50% - 20px);

-    margin: 0px 5px;

-    min-height: 100px;

-    padding-bottom: 100px;

-    padding-top: 25px;

-}

-

-.dashboardItem h5 span {

-    font-size: 20px;

-    font-weight: bold;

-    vertical-align: middle;

-}

-

-.dashboardItem i {

-    vertical-align: middle;

-}

-

-.welcomeSection {

-    margin: 50px 0px;

-}

-

-.welcomeSection h5 {

-    font-weight: bold;

-    font-size: 22px;

-    margin: 0px;

-    vertical-align: middle;

-    display: inline-block;

-}

-

-.welcomeSection i {

-    vertical-align: middle;

-    margin-right: 5px;

-}

-

-.welcomeSection p {

-    color: var(--lightText);

-}

-

-.dtpsSubmissionComment {

-    margin: 32px 12px;

-}

-

-.dtpsSubmissionComment img {

-    width: 34px;

-    border-radius: 50%;

-    vertical-align: middle;

-}

-

-.dtpsSubmissionComment h5 {

-    display: inline-block;

-    vertical-align: middle;

-    margin-left: 5px;

-    font-size: 17px;

-    color: var(--lightText);

-}

-

-.dtpsAssignmentRubricItem {

-    margin: 32px 12px;

-    padding: 20px;

-    border-radius: 15px;

-    box-shadow: var(--lightShadow);

-    background: var(--elements);

-}

-

-.dtpsAssignmentRubricItem:nth-child(1), .dtpsSubmissionComment:nth-child(1) {

-    margin-top: 12px;

-}

-

-.dtpsAssignmentRubricItem h5 {

-    font-size: 20px;

-    margin: 0px;

-    margin-bottom: 10px;

-    white-space: nowrap;

-    overflow: hidden;

-    text-overflow: ellipsis;

-}

-

-.dtpsAssignmentRubricItem .score p {

-    display: inline-block;

-    margin: 0px;

-}

-

-.dtpsAssignmentRubricItem .score .scoreName {

-    font-size: 16px;

-    vertical-align: middle;

-    font-weight: bold;

-}

-

-.dtpsAssignmentRubricItem .score .points {

-    float: right;

-    vertical-align: middle;

-    display: inline-block;

-}

-

-.dtpsAssignmentRubricItem .score .points .earned {

-    font-size: 22px;

-    font-weight: bold;

-}

-

-.dtpsAssignmentRubricItem .score .points .possible {

-    opacity: 0.5;

-    font-size: 12px;

-    vertical-align: bottom;

-}

-

-.dtpsRubricScore {

-    height: 24px;

-    display: inline-block;

-}

-

-.dtpsRubricScore div {

-    display: inline-block;

-    font-size: 14px;

-    height: 24px;

-    line-height: 24px;

-    font-weight: bold;

-}

-

-.discussionHeader {

-    margin: 12px 0px;

-    margin-bottom: 20px;

-}

-

-.discussionHeader h5 {

-    display: inline-block; 

-    vertical-align: middle;

-    color: var(--lightText);

-    font-size: 18px;

-    margin: 0px;

-}

-

-.discussionHeader img {

-    width: 28px;

-    vertical-align: middle;

-    border-radius: 50%;

-    margin-right: 5px;

-}

-

-.discussionHeader i {

-    color: var(--secText);

-    vertical-align: middle;

-    margin-left: 20px;

-    font-size: 16px;

-}

-

-.discussionHeader span {

-    color: var(--secText);

-    vertical-align: middle;

-    margin-left: 5px;

-    font-size: 14px;

-}

-

-.discussionFooter {

-    margin-top: 22px;

-}

-

-.discussionReply {

-    border-left: 2px solid var(--elementHover);

-    padding: 10px 0px;

-    padding-left: 30px;

-}

-

-.discussionReply h5 {

-    font-size: 18px;

-    color: var(--lightText);

-}

-

-.dash .colorBar {

-    width: 7px;

-    height: calc(100% - 32px);

-    position: absolute;

-    top: 16px;

-    left: 14px;

-    border-radius: 10px;

-    display: block !important;

-}

-

-.dash .colorBar {

-    background: var(--classColor);

-}

-

-.colorBar {

-    display: none;

-}

-

-.announcement .className {

-    color: var(--classColor);

-    font-weight: bold;

-    font-size: 16px;

-}

-

-.assessmentWrapper.dropped span.assessmentTitle, .assessmentWrapper.dropped .editableScore:not(.focused) {

-    opacity: 0.4;

-}

-

-.assessmentWrapper.dropped span.assessmentTitle {

-    text-decoration: line-through;

-}

-

-.assessmentWrapper span.assessmentTitle {

-    transition: opacity 0.2s;

-}

-

-.recentGrade.card {

-    padding: 20px;

-    cursor: pointer;

-}

-

-.recentGrade h5 {

-    color: var(--classColor);

-    display: flex;

-    justify-content: space-between;

-    margin: 0px;

-    font-size: 18px;

-}

-

-.recentGrade h5 span {

-    font-weight: bold;

-    display: inline-block;

-    overflow: hidden;

-    white-space: nowrap;

-    text-overflow: ellipsis;

-}

-

-.recentGrade p {

-    margin: 0px;

-    margin-top: 7px;

-    color: var(--secText);

-}

-

-.numFont {

-    font-family: Cascadia Code,Consolas,Andale Mono WT,Andale Mono,Lucida Console,Lucida Sans Typewriter,DejaVu Sans Mono,Bitstream Vera Sans Mono,Liberation Mono,Nimbus Mono L,Monaco,Courier New,Courier,monospace !important;

-}

-

-.classContent .card.collapsed {

-    padding: 10px 20px;

-}

-

-.classContent .card.collapsed h4 {

-    font-size: 18px !important;

-    font-weight: normal !important;

-}

-

-.classContent .card.collapsed h4 i {

-    margin-top: -3px;

-}

-

-.classContent .card.collapsed .moduleContents {

-    display: none;

-}

-

-.classGradeCircle {

-    display: inline-block;

-    text-align: right;

-    float: right;

-    vertical-align: middle;

-}

-

-.classGradeCircle .percentage {

-    color: var(--lightText);

-    font-size: 20px;

-    font-weight: bold;

-    vertical-align: middle;

-    width: 200px;

-    text-align: center;

-    display: inline-block;

-}

-

-.classGradeCircle .letter {

-    color: var(--classColor);

-    font-weight: bold;

-    font-size: 40px;

-    vertical-align: middle;

-    width: 200px;

-    text-align: center;

-    display: inline-block;

-}

-

-.gradeStat {

-    height: 60px; 

-    line-height: 60px;

-    color: var(--lightText); 

-    font-size: 24px; 

-    margin: 0px;

-}

-

-.smallStat {

-    height: 40px; 

-    line-height: 40px;

-    color: var(--secText); 

-    font-size: 20px; 

-    margin: 5px 0px;

-}

-

-.gradeStat .numFont, .smallStat .numFont {

-    display: inline-block; 

-    width: 200px; 

-    text-align: center; 

-    height: 60px; 

-    line-height: 60px; 

-    border-radius: 50%; 

-    float: right; 

-    vertical-align: middle; 

-    font-size: 26px; 

-    color: var(--text); 

-    font-weight: bold;

-}

-

-.smallStat .numFont {

-    height: 40px; 

-    line-height: 40px;

-    font-size: 18px; 

-    color: var(--lightText);

-}

-

-.numFont.fraction {

-    font-size: 0px;

-}

-

-.numFont .earned {

-    font-weight: bold;

-    font-size: 14px;

-}

-

-.numFont .total {

-    color: var(--secText);

-    font-size: 12px;

-}

-

-.gradeTitle {

-    margin-bottom: 10px; 

-    margin-top: 0px; 

-    font-weight: bold;

-    font-size: 32px;

-}

-

-.infoChip {

-    vertical-align: middle;

-    margin: 0px 3px;

-    display: inline-block;

-    font-size: 14px;

-    height: 20px;

-    line-height: 20px;

-	color: var(--lightText);

-}

-

-.infoChip:nth-child(1) {

-    margin-left: 0px;

-}

-

-.assignmentChip {

-    padding: 5px 10px;

-    display: inline-block;

-    border-radius: 20px;

-    line-height: 24px;

-    margin: 0px 2px;

-    color: var(--lightText);

-    vertical-align: middle;

-}

-

-.assignmentChip i {

-    vertical-align: middle;

-}

-

-.assignmentChip span {

-    margin-left: 7px;

-    vertical-align: middle;

-}

-

-.progressBar {

-    padding: 5px;

-    background-color: var(--elements);

-    border-radius: 12px;

-    height: 30px;

-    margin: 10px 5px;

-    cursor: pointer;

-}

-

-.progressLabel {

-    position: absolute;

-    z-index: 5;

-    color: var(--themeText);

-}

-

-.progressBar .progress {

-    height: 32px;

-    background-color: var(--theme);

-    margin: -6px;

-    border-radius: 12px;

-    position: absolute;

-}

-

-.progressBar.big {

-    height: 50px;

-    padding: 10px;

-}

-

-.progressBar.big .progressLabel {

-    height: 32px;

-    line-height: 32px;

-    font-size: 18px;

-}

-

-.progressBar.big .progress {

-    height: 42px;

-}

-

-.infoChip i {

-    vertical-align: middle;

-    font-size: 18px;

-}

-

-.announcement:not(.open) {

-    max-height: 200px;

-}

-

-.announcement {

-    overflow: hidden;

-}

-

-.classContent .assignmentPicker .btn.active {

-    background: var(--elementHover) !important;

-    color: var(--elementText) !important;

-}

-

-[data-theme-type=dark] .sidebar .item:not(.active) {

-    filter: brightness(1.2) !important;

-}

-

-.sidebar .item .grade {

-    text-align: center;

-    font-size: 18px;

-    font-family: var(--textFont);

-    font-weight: bold;

-    margin: 0px;

-}

-

-.sidebar .item .grade.letter, .sidebar .item .grade .letter {

-    font-size: 18px;

-    width: 32px;

-    vertical-align: middle;

-    display: inline-block;

-}

-

-.sidebar .item .grade.percentage, .sidebar .item .grade .percentage {

-    font-size: 14px;

-    min-width: 32px;

-    vertical-align: middle;

-    display: inline-block;

-}

-

-.sidebar .item .grade.percentage.large, .sidebar .item .grade .percentage.large {

-    font-size: 12px;

-}

-

-.sidebar .item .grade .percentSymbol {

-    font-size: 10px;

-}

-

-.sidebar .item .grade:hover .letter, .sidebar .item .grade:not(:hover) .percentage {

-    display: none;

-}

-

-.hidegrades .sidebar .item .grade {

-    visibility: hidden !important;

-    width: 5px;

-}

-

-.class:not(.main):not(.active) {

-    color: var(--classColor);

-}

-

-.class:not(.main).active {

-    background-color: var(--classColor) !important;

-    color: white !important;

-}

-

-.classContent .card {

-    margin: 12px 20px;

-    text-align: left;

-    border-radius: 25px;

-}

-

-.spinner {

-    width: 40px;

-    height: 40px;

-    margin: 40px auto;

-    background-color: var(--secText);

-    border-radius: 100%;

-    -webkit-animation: sk-scaleout 1.0s infinite ease-in-out;

-    animation: sk-scaleout 1.0s infinite ease-in-out;

-}

-

-@-webkit-keyframes sk-scaleout {

-    0% {

-        -webkit-transform: scale(0)

-    }

-

-    100% {

-        -webkit-transform: scale(1.0);

-        opacity: 0;

-    }

-}

-

-@keyframes sk-scaleout {

-    0% {

-        -webkit-transform: scale(0);

-        transform: scale(0);

-    }

-

-    100% {

-        -webkit-transform: scale(1.0);

-        transform: scale(1.0);

-        opacity: 0;

-    }

-}

-

-.assignment .weighted {

-    color: var(--secText);

-    font-size: 14px;

-}

-

-.assignment .weighted i {

-    font-size: 16px !important;

-    margin-top: -3px;

-}

-

-.assignment {

-    cursor: pointer;

-    padding: 15px 18px;

-    position: relative;

-    border-radius: var(--cardRadius);

-    border: 2px solid transparent;

-    transition: border 0.2s, background-color 0.2s;

-    user-select: none;

-}

-

-.assignment:hover {

-    background-color: var(--elements);

-    border-color: var(--highlight);

-}

-

-.classContent .assignment h5 {

-    margin: 0px;

-    margin-top: 6px;

-    font-size: 1rem !important;

-    min-height: 20px;

-    white-space: nowrap; 

-    overflow: hidden;

-    display: flex;

-    justify-content: space-between;

-}

-

-.classContent .assignment h5 .status {

-    flex-shrink: 0;

-}

-

-.classContent .card.assignment h4 {

-    font-size: 18px;

-    margin: 0px !important;

-    white-space: nowrap;

-    height: 24px;

-    line-height: 24px;

-    display: flex;

-    justify-content: space-between;

-}

-

-.classContent .card.assignment span {

-    overflow: hidden;

-    text-overflow: ellipsis;

-}

-

-.assignment .statusIcon {

-    float: right;

-    font-size: 16px;

-    vertical-align: middle;

-}

-

-.assignmentGrade {

-    white-space: nowrap;

-    overflow: hidden;

-    font-size: 0px;

-    display: inline-block;

-    vertical-align: middle;

-}

-

-.assignmentGrade div {

-    display: inline-block;

-}

-

-.assignmentGrade .grade {

-    font-weight: bold;

-    font-size: 18px;

-    color: var(--text);

-    vertical-align: bottom;

-}

-

-.assignmentGrade .value {

-    font-size: 14px;

-    color: var(--secText);

-    vertical-align: bottom;

-    margin-left: 2px;

-}

-

-.assignmentGrade:not(:hover) .letter, .assignmentGrade:not(:hover) .percentage {

-    display: none;

-}

-

-.assignmentGrade:hover .grade, .assignmentGrade:hover .value {

-    display: none;

-}

-

-.assignmentGrade .letter {

-    font-size: 20px;

-    font-weight: bold;

-    color: var(--text);

-    vertical-align: middle;

-}

-

-.assignmentGrade .percentage {

-    font-size: 14px;

-    color: var(--secText);

-    margin-left: 4px;

-    vertical-align: middle;

-}

-

-.gradebookAssignment {

-    padding: 15px;

-    border-radius: 5px;

-    cursor: pointer;

-}

-

-.gradebookAssignment h5 {

-    margin: 0px;

-    font-size: 18px;

-    height: 20px;

-    white-space: nowrap;

-    overflow: hidden;

-}

-

-.gradebookAssignment .stats div {

-    display: inline-block;

-    vertical-align: middle;

-}

-

-.gradebookAssignment .stats {

-    float: right;

-    text-align: right;

-}

-

-.gradebookAssignment .gradebookLetter {

-    font-weight: bold;

-    font-size: 24px;

-    width: 50px;

-    text-align: center;

-    margin-right: 15px;

-}

-

-.gradebookAssignment .gradebookScore {

-    font-weight: bold;

-    font-size: 20px;

-    width: 80px;

-    text-align: right;

-}

-

-.gradebookAssignment .gradebookValue {

-    color: var(--secText);

-    font-size: 16px;

-    width: 70px;

-    margin-right: 10px;

-    text-align: left;

-}

-

-.gradebookAssignment .gradebookPercentage {

-    color: var(--lightText);

-    font-size: 18px;

-    width: 60px;

-    text-align: center;

-}

-

-.card.module h4 {

-    margin: 0px 2px; 

-    font-size: 24px; 

-    font-weight: bold;

-}

-

-.card.module h4 i {

-    cursor: pointer; 

-    vertical-align: middle; 

-    color: var(--lightText);

-}

-

-.moduleItem {

-    color: var(--lightText); 

-    padding:5px;

-    font-size:14px;

-    border-radius:15px;

-    margin:5px 0; 

-    cursor: pointer;

-}

-

-.moduleItem i {

-    vertical-align: middle; 

-    margin-right: 4px;

-    font-size: 20px;

-}

-

-.dash .assignment {

-    padding-left: 34px;

-}

-

-.dash .weighted {

-    color: var(--classColor) !important;

-    opacity: 0.7;

-}

-

-/* FullCalendar Fluid UI CSS cutomizations v5.3.2 */

-#calendar .fc-toolbar-title {

-    font-size: 32px !important;

-}

-

-#calendar .fc-button-primary {

-    background: none;

-    box-shadow: none;

-    border: none;

-    color: var(--text);

-}

-

-#calendar td, #calendar th, #calendar .fc-scrollgrid {

-    border: none;

-}

-

-#calendar a {

-    color: var(--text);

-}

-

-#calendar .fc-event-time {

-    display: none;

-}

-

-#calendar .fc-toolbar.fc-header-toolbar {

-    margin-bottom: 10px;

-}

-

-#calendar .fc-h-event {

-    border: 1px solid transparent;

-    cursor: pointer;

-}

-

-#calendar .fc-event-title i {

-    color: #c44848; 

-    font-size: 12px; 

-    vertical-align: middle; 

-}

-

-#calendar .fc-daygrid-day {

-    border-radius: 5px;

-    transition: background-color 0.4s;

-    cursor: pointer;

-}

-

-#calendar .fc-daygrid-day:hover {

-    background-color: var(--elements);

-}

-

-#calendar .fc-daygrid-day.active {

-    background-color: var(--elementHover);

-}

-

-#calendar .fc-event-title span {

-    vertical-align: middle; 

-}

-

-#calendar .fc-daygrid-day.fc-day-today {

-    background-color: var(--theme);

-}

-

-#calendar.dateSelected .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {

-    border-radius: 50%;

-    background-color: var(--theme);

-}

-

-#calendar.dateSelected .fc-daygrid-day.fc-day-today {

-    background-color: transparent;

-}

-

-#calendar .fc-daygrid-day.fc-day-today a {

-    color: var(--themeText);

-}

-

-#calendar .fc-scroller-liquid-absolute, #calendar .fc-view-harness-active>.fc-view {

-    position: relative;

-}

-

-#calendar .fc-view-harness {

-    height: auto !important;

-}

-

-#calendar .fc-col-header, #calendar .fc-daygrid-body, #calendar .fc-daygrid-body>table {

-    width: 100% !important; 

-}

-

-#calendar .fc-h-event .fc-event-title {

-    font-size: 12px;

-}

-

-.headerArea {

-    margin: 10px 20px;

-    width: auto;

-    height: 250px;

-}

-

-#dtpsUnstable {

-    position: absolute; 

-    color: #ff4e4e;

-    cursor: auto;

-}

-

-@media(max-width: 1700px) {

-    #dtpsUnstable {

-        top: 55px;

-        right: 5px;

-    }

-}

-

-#headText {

-    transition: color 0.2s;

-    white-space: nowrap;

-    max-width: 95%;

-    text-align: center;

-    overflow: hidden;

-    text-overflow: ellipsis;

-}

-

-#headText span {

-    font-weight: bold;

-    vertical-align: middle;

-}

-

-#headText i {

-    margin-right: 5px;

-    vertical-align: middle;

-    font-size: 36px;

-}

-

-.gradeSummaryShowHide {

-    margin-top: 40px;

-    margin-bottom: 20px;

-    cursor: pointer;

-    text-align: center;

-}

-

-.gradeSummaryShowHide i, .gradeSummaryShowHide span {

-    vertical-align: middle;

-}

-

-.gradeSummaryShowHide i {

-    margin-right: 5px;

-}

-

-#classGradeMore {

-    margin: 0px 20px;

-    padding: 20px;

-}

-

-.block.status .bottom {

-    font-size: 18px;

-}

-

-.block .previousGrade {

-    font-size: 14px;

-    opacity: 0.5;

-    position: absolute;

-    top: 40px;

-}

-

-.fixedGradeSummary #gradeSummary {

-    left: 275px;

-    border-radius: 0px 0px 20px 20px;

-    padding: 20px;

-    position: fixed;

-    top: 60px;

-    z-index: 98;

-    width: calc(100% - 275px);

-    margin: 0px !important;

-    background: var(--acrylic);

-    backdrop-filter: blur(20px);

-    box-shadow: var(--cardShadow);

-}

-

-.block.status {

-    min-height: 120px !important;

-}

-

-.block.status .main {

-    font-size: 28px !important;

-}

-

-.block.status .bottom {

-    font-size: 14px !important;

-}

-

-.block i {

-    font-size: 20px !important;

-}

-

-body.collapsedSidebar .fixedGradeSummary #gradeSummary {

-    left: 72px;

-    width: calc(100% - 72px);

-}

-

-.classContent.fixedGradeSummary {

-    padding-top: 130px;

-}

-

-.block .showActualGrades {

-    font-size: 14px;

-    position: absolute;

-    top: 40px;

-    color: var(--secText);

-    cursor: pointer;

-}

-

-#classGradeMore .table tr.active {

-    background-color: var(--classColor); 

-}

-

-#classGradeMore .table tr.active, #classGradeMore .table tr.active * {

-    color: white;

-    font-weight: bold;

-}

-

-#classGradeMore.whatIf .table tr.active {

-    background-color: var(--elements); 

-}

-

-#classGradeMore.whatIf .table tr.active, #classGradeMore.whatIf .table tr.active * {

-    color: var(--classColor);

-}

-

-.editableScore {

-    outline: none;

-    font-size: 20px; 

-    vertical-align: middle; 

-    display: inline-block;

-    padding: 2px 5px;

-    border-radius: 5px;

-    margin-right: 5px; 

-    transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;

-    border: 2px solid transparent;

-    width: 45px;

-    text-align: center;

-}

-

-.editableScore.modified, .editableScore.focused, .editableScore:hover {

-    background-color: var(--inputColor);

-    border-color: var(--elements);

-}

-

-.teacherName {

-    color: var(--text);

-    font-size: 18px;

-}

-

-.teacherImage {

-    margin-right: 4px;

-    height: 32px; 

-    width: 32px;

-    border-radius: 50%;

-    background-position: center;

-    background-repeat: no-repeat;

-    background-size: cover;

-    background-color: var(--elements);

-    vertical-align: middle;

-}

-

-#dtpsFixedSearch {

-    position: fixed; 

-    left: calc(50% - 250px);

-    margin: 0px;

-}

-

-#dtpsSearchResults {

-    position: fixed;

-    z-index: 100;

-    width: 500px;

-    top: 70px;

-    left: calc(50% - 250px);

-    box-shadow: 0px 0px 20px rgb(0 0 0 / 0.5);

-    border: 2px solid var(--elements);

-}

-

-#dtpsSearchResults h5 {

-    margin-top: 0px;

-}

-

-#dtpsSearchResults h5 i {

-    vertical-align: middle;

-}

-

-#dtpsSearchResults h5 span {

-    font-size: 18px;

-    font-weight: bold;

-    vertical-align: middle;

-}

-

-#settingsReloadWarning {

-    background: var(--elements);

-    border-radius: var(--elementRadius);

-    padding: 15px 18px;

-    box-shadow: var(--elementShadow);

-    margin: 24px 0px;

-}

-

-.card.searchResult {

-    padding: 15px 18px;

-    position: relative;

-    border-radius: var(--cardRadius);

-    border: 2px solid transparent;

-    cursor: pointer;

-    transition: border 0.2s, background-color 0.2s;

-    user-select: none;

-}

-

-.card.searchResult h4 {

-    font-size: 20px;

-    margin: 0px !important;

-    white-space: nowrap;

-    overflow: hidden;

-    text-overflow: ellipsis;

-    height: 24px;

-    line-height: 24px;

-    font-weight: bold;

-}

-

-.card.searchResult h5 {

-    margin: 0px;

-}

-

-.card.searchResult .highlight {

-    font-weight: bold;

-    background-color: var(--theme);

-    color: var(--themeText);

-}

-

-.card.searchResult .highlight i {

-    color: var(--themeText) !important;

-    font-weight: bold !important;

-}

-

-.card.searchResult .statusIcon {

-    font-size: 18px;

-    color: var(--secText);

-}

-

-.searchResult.mixedClasses .colorBar {

-    width: 7px;

-    height: calc(100% - 32px);

-    position: absolute;

-    top: 16px;

-    left: 14px;

-    border-radius: 10px;

-    display: block !important;

-}

-

-.searchResult.mixedClasses .colorBar {

-    background: var(--classColor);

-}

-

-.searchResult.mixedClasses {

-    padding-left: 34px;

-}

-

-.searchResult:hover {

-    background-color: var(--elements);

-    border-color: var(--highlight);

-}

-

-#searchFilterContainer {

-    width: 400px;

-    display: inline-block;

-    vertical-align: top;

-}

-

-#searchFilterContainer .card {

-    margin-right: 10px;

-}

-

-#searchResultsContainer.withFilters {

-    margin-left: 0px;

-    width: calc(100% - 410px);

-    display: inline-block;

-}

-

-#searchResultsContainer.withFilters .card {

-    margin-left: 10px;

-}

-

-#searchFilterContainer .card h5 {

-    margin-top: 0px;

-    font-weight: bold;

-}

-

-#searchFilterContainer .card h5 span {

-    vertical-align: middle;

-    font-weight: bold;

-}

-

-#searchFilterContainer .card h5 i {

-    vertical-align: middle;

-    margin-right: 3px;

-}

-

-#searchFilterContainer .card .checkContainer {

-    margin: 10px 0px;

-}

-

-.fixedSearchFilters #searchFilterContainer .card {

-    top: 60px;

-    position: fixed;

-    width: 370px;

-}

-

-/*Theme image styling*/

-[data-theme-image] .headerArea .content {

-    background: none;

-}

-

-[data-theme-image] .headerArea img {

-    display: none !important;

-}

-

-:not([data-theme-image]) .headerArea:not(.classImage) h1 {

-    text-shadow: none;

+/*
+Power+ CSS
+(c) jottocraft 2018-2022
+*/
+
+body.requiredModal .card.alert .footer {
+    margin-top: 25px;
+}
+
+body.requiredModal .card.alert .fluid-icon.close {
+    display: none;
+}
+
+body.requiredModal .card.alert .footer .btn {
+    width: 100%;
+}
+
+body.requiredModal {
+    pointer-events: none;
+}
+
+body.requiredModal .card.alert {
+    pointer-events: auto;
+}
+
+[data-theme-image] .sidebar {
+    background-color: transparent;
+}
+
+[data-theme-type=light] {
+    --theme: #ccac56 !important;
+    --themeText: #ffffff !important;
+}
+
+[data-theme-type=dark] {
+    --theme: #cc9e54 !important;
+    --themeText: #261900 !important;
+}
+
+body:not(.ugShow) .assessmentWrapper.ungraded {
+    display: none;
+}
+
+.ugFilterSubmitted:not(.ugFilterUpcoming) .assessmentWrapper.ungraded:not(.ugSubmitted) {
+    display: none;
+}
+
+.ugFilterUpcoming:not(.ugFilterSubmitted) .assessmentWrapper.ungraded:not(.ugUpcoming) {
+    display: none;
+}
+
+.ugFilterUpcoming.ugFilterSubmitted .assessmentWrapper.ungraded:not(.ugUpcoming):not(.ugSubmitted) {
+    display: none;
+}
+
+.alternateFont {
+    --titleFont: BlinkMacSystemFont,-apple-system,Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
+    --textFont: BlinkMacSystemFont,-apple-system,Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
+}
+
+.dashboardItem {
+    text-align: center;
+    padding: 20px;
+    border-radius: 10px;
+    border: 2px solid var(--elements);
+    background: var(--cards);
+    cursor: move;
+    margin: 10px;
+    user-select: none; 
+    display: flex;
+    flex-direction: column;
+    justify-content: center;
+}
+
+.dashboardColumn {
+    vertical-align: top;
+    display: inline-block;
+    width: calc(50% - 20px);
+    margin: 0px 5px;
+    min-height: 100px;
+    padding-bottom: 100px;
+    padding-top: 25px;
+}
+
+.dashboardItem h5 span {
+    font-size: 20px;
+    font-weight: bold;
+    vertical-align: middle;
+}
+
+.dashboardItem i {
+    vertical-align: middle;
+}
+
+.welcomeSection {
+    margin: 50px 0px;
+}
+
+.welcomeSection h5 {
+    font-weight: bold;
+    font-size: 22px;
+    margin: 0px;
+    vertical-align: middle;
+    display: inline-block;
+}
+
+.welcomeSection i {
+    vertical-align: middle;
+    margin-right: 5px;
+}
+
+.welcomeSection p {
+    color: var(--lightText);
+}
+
+.dtpsSubmissionComment {
+    margin: 32px 12px;
+}
+
+.dtpsSubmissionComment img {
+    width: 34px;
+    border-radius: 50%;
+    vertical-align: middle;
+}
+
+.dtpsSubmissionComment h5 {
+    display: inline-block;
+    vertical-align: middle;
+    margin-left: 5px;
+    font-size: 17px;
+    color: var(--lightText);
+}
+
+.dtpsAssignmentRubricItem {
+    margin: 32px 12px;
+    padding: 20px;
+    border-radius: 15px;
+    box-shadow: var(--lightShadow);
+    background: var(--elements);
+}
+
+.dtpsAssignmentRubricItem:nth-child(1), .dtpsSubmissionComment:nth-child(1) {
+    margin-top: 12px;
+}
+
+.dtpsAssignmentRubricItem h5 {
+    font-size: 20px;
+    margin: 0px;
+    margin-bottom: 10px;
+    white-space: nowrap;
+    overflow: hidden;
+    text-overflow: ellipsis;
+}
+
+.dtpsAssignmentRubricItem .score p {
+    display: inline-block;
+    margin: 0px;
+}
+
+.dtpsAssignmentRubricItem .score .scoreName {
+    font-size: 16px;
+    vertical-align: middle;
+    font-weight: bold;
+}
+
+.dtpsAssignmentRubricItem .score .points {
+    float: right;
+    vertical-align: middle;
+    display: inline-block;
+}
+
+.dtpsAssignmentRubricItem .score .points .earned {
+    font-size: 22px;
+    font-weight: bold;
+}
+
+.dtpsAssignmentRubricItem .score .points .possible {
+    opacity: 0.5;
+    font-size: 12px;
+    vertical-align: bottom;
+}
+
+.dtpsRubricScore {
+    height: 24px;
+    display: inline-block;
+}
+
+.dtpsRubricScore div {
+    display: inline-block;
+    font-size: 14px;
+    height: 24px;
+    line-height: 24px;
+    font-weight: bold;
+}
+
+.discussionHeader {
+    margin: 12px 0px;
+    margin-bottom: 20px;
+}
+
+.discussionHeader h5 {
+    display: inline-block; 
+    vertical-align: middle;
+    color: var(--lightText);
+    font-size: 18px;
+    margin: 0px;
+}
+
+.discussionHeader img {
+    width: 28px;
+    vertical-align: middle;
+    border-radius: 50%;
+    margin-right: 5px;
+}
+
+.discussionHeader i {
+    color: var(--secText);
+    vertical-align: middle;
+    margin-left: 20px;
+    font-size: 16px;
+}
+
+.discussionHeader span {
+    color: var(--secText);
+    vertical-align: middle;
+    margin-left: 5px;
+    font-size: 14px;
+}
+
+.discussionFooter {
+    margin-top: 22px;
+}
+
+.discussionReply {
+    border-left: 2px solid var(--elementHover);
+    padding: 10px 0px;
+    padding-left: 30px;
+}
+
+.discussionReply h5 {
+    font-size: 18px;
+    color: var(--lightText);
+}
+
+.dash .colorBar {
+    width: 7px;
+    height: calc(100% - 32px);
+    position: absolute;
+    top: 16px;
+    left: 14px;
+    border-radius: 10px;
+    display: block !important;
+}
+
+.dash .colorBar {
+    background: var(--classColor);
+}
+
+.colorBar {
+    display: none;
+}
+
+.announcement .className {
+    color: var(--classColor);
+    font-weight: bold;
+    font-size: 16px;
+}
+
+.assessmentWrapper.dropped span.assessmentTitle, .assessmentWrapper.dropped .editableScore:not(.focused) {
+    opacity: 0.4;
+}
+
+.assessmentWrapper.dropped span.assessmentTitle {
+    text-decoration: line-through;
+}
+
+.assessmentWrapper span.assessmentTitle {
+    transition: opacity 0.2s;
+}
+
+.recentGrade.card {
+    padding: 20px;
+    cursor: pointer;
+}
+
+.recentGrade h5 {
+    color: var(--classColor);
+    display: flex;
+    justify-content: space-between;
+    margin: 0px;
+    font-size: 18px;
+}
+
+.recentGrade h5 span {
+    font-weight: bold;
+    display: inline-block;
+    overflow: hidden;
+    white-space: nowrap;
+    text-overflow: ellipsis;
+}
+
+.recentGrade p {
+    margin: 0px;
+    margin-top: 7px;
+    color: var(--secText);
+}
+
+.numFont {
+    font-family: Cascadia Code,Consolas,Andale Mono WT,Andale Mono,Lucida Console,Lucida Sans Typewriter,DejaVu Sans Mono,Bitstream Vera Sans Mono,Liberation Mono,Nimbus Mono L,Monaco,Courier New,Courier,monospace !important;
+}
+
+.classContent .card.collapsed {
+    padding: 10px 20px;
+}
+
+.classContent .card.collapsed h4 {
+    font-size: 18px !important;
+    font-weight: normal !important;
+}
+
+.classContent .card.collapsed h4 i {
+    margin-top: -3px;
+}
+
+.classContent .card.collapsed .moduleContents {
+    display: none;
+}
+
+.classGradeCircle {
+    display: inline-block;
+    text-align: right;
+    float: right;
+    vertical-align: middle;
+}
+
+.classGradeCircle .percentage {
+    color: var(--lightText);
+    font-size: 20px;
+    font-weight: bold;
+    vertical-align: middle;
+    width: 200px;
+    text-align: center;
+    display: inline-block;
+}
+
+.classGradeCircle .letter {
+    color: var(--classColor);
+    font-weight: bold;
+    font-size: 40px;
+    vertical-align: middle;
+    width: 200px;
+    text-align: center;
+    display: inline-block;
+}
+
+.gradeStat {
+    height: 60px; 
+    line-height: 60px;
+    color: var(--lightText); 
+    font-size: 24px; 
+    margin: 0px;
+}
+
+.smallStat {
+    height: 40px; 
+    line-height: 40px;
+    color: var(--secText); 
+    font-size: 20px; 
+    margin: 5px 0px;
+}
+
+.gradeStat .numFont, .smallStat .numFont {
+    display: inline-block; 
+    width: 200px; 
+    text-align: center; 
+    height: 60px; 
+    line-height: 60px; 
+    border-radius: 50%; 
+    float: right; 
+    vertical-align: middle; 
+    font-size: 26px; 
+    color: var(--text); 
+    font-weight: bold;
+}
+
+.smallStat .numFont {
+    height: 40px; 
+    line-height: 40px;
+    font-size: 18px; 
+    color: var(--lightText);
+}
+
+.numFont.fraction {
+    font-size: 0px;
+}
+
+.numFont .earned {
+    font-weight: bold;
+    font-size: 14px;
+}
+
+.numFont .total {
+    color: var(--secText);
+    font-size: 12px;
+}
+
+.gradeTitle {
+    margin-bottom: 10px; 
+    margin-top: 0px; 
+    font-weight: bold;
+    font-size: 32px;
+}
+
+.infoChip {
+    vertical-align: middle;
+    margin: 0px 3px;
+    display: inline-block;
+    font-size: 14px;
+    height: 20px;
+    line-height: 20px;
+	color: var(--lightText);
+}
+
+.infoChip:nth-child(1) {
+    margin-left: 0px;
+}
+
+.assignmentChip {
+    padding: 5px 10px;
+    display: inline-block;
+    border-radius: 20px;
+    line-height: 24px;
+    margin: 0px 2px;
+    color: var(--lightText);
+    vertical-align: middle;
+}
+
+.assignmentChip i {
+    vertical-align: middle;
+}
+
+.assignmentChip span {
+    margin-left: 7px;
+    vertical-align: middle;
+}
+
+.progressBar {
+    padding: 5px;
+    background-color: var(--elements);
+    border-radius: 12px;
+    height: 30px;
+    margin: 10px 5px;
+    cursor: pointer;
+}
+
+.progressLabel {
+    position: absolute;
+    z-index: 5;
+    color: var(--themeText);
+}
+
+.progressBar .progress {
+    height: 32px;
+    background-color: var(--theme);
+    margin: -6px;
+    border-radius: 12px;
+    position: absolute;
+}
+
+.progressBar.big {
+    height: 50px;
+    padding: 10px;
+}
+
+.progressBar.big .progressLabel {
+    height: 32px;
+    line-height: 32px;
+    font-size: 18px;
+}
+
+.progressBar.big .progress {
+    height: 42px;
+}
+
+.infoChip i {
+    vertical-align: middle;
+    font-size: 18px;
+}
+
+.announcement:not(.open) {
+    max-height: 200px;
+}
+
+.announcement {
+    overflow: hidden;
+}
+
+.classContent .assignmentPicker .btn.active {
+    background: var(--elementHover) !important;
+    color: var(--elementText) !important;
+}
+
+[data-theme-type=dark] .sidebar .item:not(.active) {
+    filter: brightness(1.2) !important;
+}
+
+.sidebar .item .grade {
+    text-align: center;
+    font-size: 18px;
+    font-family: var(--textFont);
+    font-weight: bold;
+    margin: 0px;
+}
+
+.sidebar .item .grade.letter, .sidebar .item .grade .letter {
+    font-size: 18px;
+    width: 32px;
+    vertical-align: middle;
+    display: inline-block;
+}
+
+.sidebar .item .grade.percentage, .sidebar .item .grade .percentage {
+    font-size: 14px;
+    min-width: 32px;
+    vertical-align: middle;
+    display: inline-block;
+}
+
+.sidebar .item .grade.percentage.large, .sidebar .item .grade .percentage.large {
+    font-size: 12px;
+}
+
+.sidebar .item .grade .percentSymbol {
+    font-size: 10px;
+}
+
+.sidebar .item .grade:hover .letter, .sidebar .item .grade:not(:hover) .percentage {
+    display: none;
+}
+
+.hidegrades .sidebar .item .grade {
+    visibility: hidden !important;
+    width: 5px;
+}
+
+.class:not(.main):not(.active) {
+    color: var(--classColor);
+}
+
+.class:not(.main).active {
+    background-color: var(--classColor) !important;
+    color: white !important;
+}
+
+.classContent .card {
+    margin: 12px 20px;
+    text-align: left;
+    border-radius: 25px;
+}
+
+.spinner {
+    width: 40px;
+    height: 40px;
+    margin: 40px auto;
+    background-color: var(--secText);
+    border-radius: 100%;
+    -webkit-animation: sk-scaleout 1.0s infinite ease-in-out;
+    animation: sk-scaleout 1.0s infinite ease-in-out;
+}
+
+@-webkit-keyframes sk-scaleout {
+    0% {
+        -webkit-transform: scale(0)
+    }
+
+    100% {
+        -webkit-transform: scale(1.0);
+        opacity: 0;
+    }
+}
+
+@keyframes sk-scaleout {
+    0% {
+        -webkit-transform: scale(0);
+        transform: scale(0);
+    }
+
+    100% {
+        -webkit-transform: scale(1.0);
+        transform: scale(1.0);
+        opacity: 0;
+    }
+}
+
+.assignment .weighted {
+    color: var(--secText);
+    font-size: 14px;
+}
+
+.assignment .weighted i {
+    font-size: 16px !important;
+    margin-top: -3px;
+}
+
+.assignment {
+    cursor: pointer;
+    padding: 15px 18px;
+    position: relative;
+    border-radius: var(--cardRadius);
+    border: 2px solid transparent;
+    transition: border 0.2s, background-color 0.2s;
+    user-select: none;
+}
+
+.assignment:hover {
+    background-color: var(--elements);
+    border-color: var(--highlight);
+}
+
+.classContent .assignment h5 {
+    margin: 0px;
+    margin-top: 6px;
+    font-size: 1rem !important;
+    min-height: 20px;
+    white-space: nowrap; 
+    overflow: hidden;
+    display: flex;
+    justify-content: space-between;
+}
+
+.classContent .assignment h5 .status {
+    flex-shrink: 0;
+}
+
+.classContent .card.assignment h4 {
+    font-size: 18px;
+    margin: 0px !important;
+    white-space: nowrap;
+    height: 24px;
+    line-height: 24px;
+    display: flex;
+    justify-content: space-between;
+}
+
+.classContent .card.assignment span {
+    overflow: hidden;
+    text-overflow: ellipsis;
+}
+
+.assignment .statusIcon {
+    float: right;
+    font-size: 16px;
+    vertical-align: middle;
+}
+
+.assignmentGrade {
+    white-space: nowrap;
+    overflow: hidden;
+    font-size: 0px;
+    display: inline-block;
+    vertical-align: middle;
+}
+
+.assignmentGrade div {
+    display: inline-block;
+}
+
+.assignmentGrade .grade {
+    font-weight: bold;
+    font-size: 18px;
+    color: var(--text);
+    vertical-align: bottom;
+}
+
+.assignmentGrade .value {
+    font-size: 14px;
+    color: var(--secText);
+    vertical-align: bottom;
+    margin-left: 2px;
+}
+
+.assignmentGrade:not(:hover) .letter, .assignmentGrade:not(:hover) .percentage {
+    display: none;
+}
+
+.assignmentGrade:hover .grade, .assignmentGrade:hover .value {
+    display: none;
+}
+
+.assignmentGrade .letter {
+    font-size: 20px;
+    font-weight: bold;
+    color: var(--text);
+    vertical-align: middle;
+}
+
+.assignmentGrade .percentage {
+    font-size: 14px;
+    color: var(--secText);
+    margin-left: 4px;
+    vertical-align: middle;
+}
+
+.gradebookAssignment {
+    padding: 0px 32px;
+    border-radius: 5px;
+    cursor: pointer;
+}
+
+.gradebookAssignment h5 {
+    margin: 0px;
+    font-size: 18px;
+    height: 54px;
+    white-space: nowrap;
+    overflow: hidden;
+}
+
+.gradebookAssignment .stats div {
+    display: inline-block;
+    vertical-align: middle;
+}
+
+.gradebookAssignment .stats {
+    float: right;
+    text-align: right;
+}
+
+.gradebookAssignment .gradebookLetter {
+    font-weight: bold;
+    font-size: 24px;
+    width: 50px;
+    text-align: center;
+    margin-right: 15px;
+}
+
+.gradebookAssignment .gradebookScore {
+    font-weight: bold;
+    font-size: 20px;
+    width: 80px;
+    text-align: right;
+}
+
+.gradebookAssignment .gradebookValue {
+    color: var(--secText);
+    font-size: 16px;
+    width: 70px;
+    margin-right: 10px;
+    text-align: left;
+}
+
+.gradebookAssignment .gradebookPercentage {
+    color: var(--lightText);
+    font-size: 18px;
+    width: 60px;
+    text-align: center;
+}
+
+.card.module h4 {
+    margin: 0px 2px; 
+    font-size: 24px; 
+    font-weight: bold;
+}
+
+.card.module h4 i {
+    cursor: pointer; 
+    vertical-align: middle; 
+    color: var(--lightText);
+}
+
+.moduleItem {
+    color: var(--lightText); 
+    padding:5px;
+    font-size:14px;
+    border-radius:15px;
+    margin:5px 0; 
+    cursor: pointer;
+}
+
+.moduleItem i {
+    vertical-align: middle; 
+    margin-right: 4px;
+    font-size: 20px;
+}
+
+.dash .assignment {
+    padding-left: 34px;
+}
+
+.dash .weighted {
+    color: var(--classColor) !important;
+    opacity: 0.7;
+}
+
+/* FullCalendar Fluid UI CSS cutomizations v5.3.2 */
+#calendar .fc-toolbar-title {
+    font-size: 32px !important;
+}
+
+#calendar .fc-button-primary {
+    background: none;
+    box-shadow: none;
+    border: none;
+    color: var(--text);
+}
+
+#calendar td, #calendar th, #calendar .fc-scrollgrid {
+    border: none;
+}
+
+#calendar a {
+    color: var(--text);
+}
+
+#calendar .fc-event-time {
+    display: none;
+}
+
+#calendar .fc-toolbar.fc-header-toolbar {
+    margin-bottom: 10px;
+}
+
+#calendar .fc-h-event {
+    border: 1px solid transparent;
+    cursor: pointer;
+}
+
+#calendar .fc-event-title i {
+    color: #c44848; 
+    font-size: 12px; 
+    vertical-align: middle; 
+}
+
+#calendar .fc-daygrid-day {
+    border-radius: 5px;
+    transition: background-color 0.4s;
+    cursor: pointer;
+}
+
+#calendar .fc-daygrid-day:hover {
+    background-color: var(--elements);
+}
+
+#calendar .fc-daygrid-day.active {
+    background-color: var(--elementHover);
+}
+
+#calendar .fc-event-title span {
+    vertical-align: middle; 
+}
+
+#calendar .fc-daygrid-day.fc-day-today {
+    background-color: var(--theme);
+}
+
+#calendar.dateSelected .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
+    border-radius: 50%;
+    background-color: var(--theme);
+}
+
+#calendar.dateSelected .fc-daygrid-day.fc-day-today {
+    background-color: transparent;
+}
+
+#calendar .fc-daygrid-day.fc-day-today a {
+    color: var(--themeText);
+}
+
+#calendar .fc-scroller-liquid-absolute, #calendar .fc-view-harness-active>.fc-view {
+    position: relative;
+}
+
+#calendar .fc-view-harness {
+    height: auto !important;
+}
+
+#calendar .fc-col-header, #calendar .fc-daygrid-body, #calendar .fc-daygrid-body>table {
+    width: 100% !important; 
+}
+
+#calendar .fc-h-event .fc-event-title {
+    font-size: 12px;
+}
+
+.headerArea {
+    margin: 10px 20px;
+    width: auto;
+    height: 250px;
+}
+
+#dtpsUnstable {
+    position: absolute; 
+    color: #ff4e4e;
+    cursor: auto;
+}
+
+@media(max-width: 1700px) {
+    #dtpsUnstable {
+        top: 55px;
+        right: 5px;
+    }
+}
+
+#headText {
+    transition: color 0.2s;
+    white-space: nowrap;
+    max-width: 95%;
+    text-align: center;
+    overflow: hidden;
+    text-overflow: ellipsis;
+}
+
+#headText span {
+    font-weight: bold;
+    vertical-align: middle;
+}
+
+#headText i {
+    margin-right: 5px;
+    vertical-align: middle;
+    font-size: 36px;
+}
+
+.gradeSummaryShowHide {
+    margin-top: 40px;
+    margin-bottom: 20px;
+    cursor: pointer;
+    text-align: center;
+}
+
+.gradeSummaryShowHide i, .gradeSummaryShowHide span {
+    vertical-align: middle;
+}
+
+.gradeSummaryShowHide i {
+    margin-right: 5px;
+}
+
+#classGradeMore {
+    margin: 0px 20px;
+    padding: 20px;
+}
+
+.block.status .bottom {
+    font-size: 18px;
+}
+
+.block .previousGrade {
+    font-size: 14px;
+    opacity: 0.5;
+    position: absolute;
+    top: 40px;
+}
+
+.fixedGradeSummary #gradeSummary {
+    left: 275px;
+    border-radius: 0px 0px 20px 20px;
+    padding: 20px;
+    position: fixed;
+    top: 60px;
+    z-index: 98;
+    width: calc(100% - 275px);
+    margin: 0px !important;
+    background: var(--acrylic);
+    backdrop-filter: blur(20px);
+    box-shadow: var(--cardShadow);
+}
+
+.block.status {
+    min-height: 120px !important;
+}
+
+.block.status .main {
+    font-size: 28px !important;
+}
+
+.block.status .bottom {
+    font-size: 14px !important;
+}
+
+.block i {
+    font-size: 20px !important;
+}
+
+body.collapsedSidebar .fixedGradeSummary #gradeSummary {
+    left: 72px;
+    width: calc(100% - 72px);
+}
+
+.classContent.fixedGradeSummary {
+    padding-top: 130px;
+}
+
+.block .showActualGrades {
+    font-size: 14px;
+    position: absolute;
+    top: 40px;
+    color: var(--secText);
+    cursor: pointer;
+}
+
+#classGradeMore .table tr.active {
+    background-color: var(--classColor); 
+}
+
+#classGradeMore .table tr.active, #classGradeMore .table tr.active * {
+    color: white;
+    font-weight: bold;
+}
+
+#classGradeMore.whatIf .table tr.active {
+    background-color: var(--elements); 
+}
+
+#classGradeMore.whatIf .table tr.active, #classGradeMore.whatIf .table tr.active * {
+    color: var(--classColor);
+}
+
+.editableScore {
+    outline: none;
+    font-size: 20px; 
+    vertical-align: middle; 
+    display: inline-block;
+    padding: 2px 5px;
+    border-radius: 5px;
+    margin-right: 5px; 
+    transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
+    border: 2px solid transparent;
+    width: 45px;
+    text-align: center;
+}
+
+.editableScore.modified, .editableScore.focused, .editableScore:hover {
+    background-color: var(--inputColor);
+    border-color: var(--elements);
+}
+
+.teacherName {
+    color: var(--text);
+    font-size: 18px;
+}
+
+.teacherImage {
+    margin-right: 4px;
+    height: 32px; 
+    width: 32px;
+    border-radius: 50%;
+    background-position: center;
+    background-repeat: no-repeat;
+    background-size: cover;
+    background-color: var(--elements);
+    vertical-align: middle;
+}
+
+#dtpsFixedSearch {
+    position: fixed; 
+    left: calc(50% - 250px);
+    margin: 0px;
+}
+
+#dtpsSearchResults {
+    position: fixed;
+    z-index: 100;
+    width: 500px;
+    top: 70px;
+    left: calc(50% - 250px);
+    box-shadow: 0px 0px 20px rgb(0 0 0 / 0.5);
+    border: 2px solid var(--elements);
+}
+
+#dtpsSearchResults h5 {
+    margin-top: 0px;
+}
+
+#dtpsSearchResults h5 i {
+    vertical-align: middle;
+}
+
+#dtpsSearchResults h5 span {
+    font-size: 18px;
+    font-weight: bold;
+    vertical-align: middle;
+}
+
+.card.searchResult {
+    padding: 15px 18px;
+    position: relative;
+    border-radius: var(--cardRadius);
+    border: 2px solid transparent;
+    cursor: pointer;
+    transition: border 0.2s, background-color 0.2s;
+    user-select: none;
+}
+
+.card.searchResult h4 {
+    font-size: 20px;
+    margin: 0px !important;
+    white-space: nowrap;
+    overflow: hidden;
+    text-overflow: ellipsis;
+    height: 24px;
+    line-height: 24px;
+    font-weight: bold;
+}
+
+.card.searchResult h5 {
+    margin: 0px;
+}
+
+.card.searchResult .highlight {
+    font-weight: bold;
+    background-color: var(--theme);
+    color: var(--themeText);
+}
+
+.card.searchResult .highlight i {
+    color: var(--themeText) !important;
+    font-weight: bold !important;
+}
+
+.card.searchResult .statusIcon {
+    font-size: 18px;
+    color: var(--secText);
+}
+
+.searchResult.mixedClasses .colorBar {
+    width: 7px;
+    height: calc(100% - 32px);
+    position: absolute;
+    top: 16px;
+    left: 14px;
+    border-radius: 10px;
+    display: block !important;
+}
+
+.searchResult.mixedClasses .colorBar {
+    background: var(--classColor);
+}
+
+.searchResult.mixedClasses {
+    padding-left: 34px;
+}
+
+.searchResult:hover {
+    background-color: var(--elements);
+    border-color: var(--highlight);
+}
+
+#searchFilterContainer {
+    width: 400px;
+    display: inline-block;
+    vertical-align: top;
+}
+
+#searchFilterContainer .card {
+    margin-right: 10px;
+}
+
+#searchResultsContainer.withFilters {
+    margin-left: 0px;
+    width: calc(100% - 410px);
+    display: inline-block;
+}
+
+#searchResultsContainer.withFilters .card {
+    margin-left: 10px;
+}
+
+#searchFilterContainer .card h5 {
+    margin-top: 0px;
+    font-weight: bold;
+}
+
+#searchFilterContainer .card h5 span {
+    vertical-align: middle;
+    font-weight: bold;
+}
+
+#searchFilterContainer .card h5 i {
+    vertical-align: middle;
+    margin-right: 3px;
+}
+
+#searchFilterContainer .card .checkContainer {
+    margin: 10px 0px;
+}
+
+.fixedSearchFilters #searchFilterContainer .card {
+    top: 60px;
+    position: fixed;
+    width: 370px;
+}
+
+/*Theme image styling*/
+[data-theme-image] .headerArea .content {
+    background: none;
+}
+
+[data-theme-image] .headerArea img {
+    display: none !important;
+}
+
+:not([data-theme-image]) .headerArea:not(.classImage) h1 {
+    text-shadow: none;
 }
\ No newline at end of file
diff --git a/ui/fluid.css b/ui/fluid.css
new file mode 100644
index 0000000..40517c0
--- /dev/null
+++ b/ui/fluid.css
@@ -0,0 +1,2433 @@
+/*!
+Fluid UI Elements v5.0.0-dep
+Made by jottocraft 2017-2021
+All code in this repository is in the public domain (https://github.com/jottocraft/fluid-old/blob/master/LICENSE)
+*/
+
+/* Table of contents
+ -------------------------------------------------- 
+ - Variables & Included Themes
+ - Core Styles, Fonts, & Icons
+ - Acrylic
+ - Buttons
+ - Lists & Context menus
+ - Code
+ - Input (Text, textareas, etc.)
+ - Switches & Sliders
+ - Navigation
+ - Toasts & Alerts
+ - Cards (and profile menu)
+ - Blocks
+ - Layout
+ - Sections / Headers
+ - Progress
+ - Splash screens
+ - Helpers
+ - Miscellaneous
+ */
+
+/* Variables
+ --------------------------------------------------  */
+
+/* Core Styles */
+
+@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
+
+:root {
+  --elementRadius: 15px;
+  --elementShadow: 0 10px 30px rgba(0, 0, 0, 0.17);
+  --lightShadow: 0 2px 3px rgba(0, 0, 0, 0.17);
+  --cardRadius: 15px;
+  --titleFont: "Public Sans",BlinkMacSystemFont,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
+  --textFont: "Public Sans",BlinkMacSystemFont,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
+  --icons: "Material Icons Extended", "Material Icons", "Material Icons Outlined", "Material Icons Round", "Material Icons Sharp";
+  --links: #039be5;
+}
+
+/* Light theme */
+[data-theme=light][data-theme-type=light], [data-theme-type=light] {
+  --background: white;
+
+  --text: #333;
+  --lightText: #565656;
+  --secText: #929292;
+
+  --elements: #ececec;
+  --elementText: #404040;
+  --elementHover: #dddddd;
+  --switchHead: white;
+
+  --inputColor: #f5f5f5;
+    
+  --navbar: #ffffffe6;
+  --sidebar: #f0f0f0;
+  --sidebarActive: #e0e0e0;
+  --sidenav: #fbfbfb;
+  --sidenavActive: #f5f5f5;
+
+  --cards: #ffffff;
+  --content: #ffffff;
+  --cardShadow: 0 0px 20px rgb(0 0 0 / 0.1);
+  --lightShadow: 0 0px 4px rgba(0, 0, 0, 0.14);
+  
+  --theme: #3396e6;
+  --themeText: white;
+
+  --highlight: #0000000d;
+  --acrylic: rgb(236 236 236 / 86%);
+  --mediumAcrylic: rgb(236 236 236 / 50%);
+  --lightAcrylic: rgb(255 255 255 / 40%);
+  --acrylicBorder: #2d2d2d3d;
+  --backgroundTint: #ffffffe6;
+
+  --themeSelectorColor: none;
+  color-scheme: light;
+}
+
+/* Dark theme */
+[data-theme=dark][data-theme-type=dark], [data-theme-type=dark] {
+  --background: #121212;
+
+  --text: #efefef;
+  --lightText: #c4c4c4;
+  --secText: #808080;
+
+  --elements: #2b2b2b;
+  --elementText: white;
+  --elementHover: #3c3c3c;
+  --switchHead: #cccccc;
+  
+  --inputColor: #1b1b1b;
+
+  --navbar: #232323f2;
+  --sidebar: #1d1d1d;
+  --sidebarActive: #292929;
+  --sidenav: #1d1d1d;
+  --sidenavActive: #212121;
+
+  --cards: #191919;
+  --content: #1b1b1b;
+  --cardShadow: 0 0px 30px rgb(0 0 0 / 0.2);
+  --lightShadow: 0 0px 5px rgb(0 0 0 / 0.3);
+
+  --theme: #133e61;
+  --themeText: #f1f9ff;
+
+  --highlight: #ffffff12;
+  --acrylic: rgb(27 27 27 / 86%);
+  --mediumAcrylic: rgb(27 27 27 / 50%);
+  --lightAcrylic: rgb(37 37 37 / 40%);
+  --acrylicBorder: #ffffff14;
+  --backgroundTint: #121212e6;
+
+  --themeSelectorColor: none;
+  color-scheme: dark;
+}
+
+/* Midnight theme */
+[data-theme=midnight][data-theme-type=dark] {
+  --background: #000000;
+
+  --text: #ffffff;
+  --lightText: #c3c3c3;
+  --secText: #6b6b6b;
+
+  --elements: #1f1f1f;
+  --elementText: #f7f7f7;
+  --elementHover: #333333;
+  --switchHead: #f7f7f7;
+
+  --inputColor: #151515;
+
+  --navbar: #0a0a0a;
+  --sidebar: #131313;
+  --sidebarActive: #212121;
+  --sidenav: #101010;
+  --sidenavActive: #131313;
+
+  --cards: #0c0c0c;
+  --content: #131313;
+
+  --theme: #0c2940;
+  --themeText: #ffffff;
+
+  --highlight: #ffffff1a;
+  --acrylic: rgb(10 10 10 / 86%);
+  --mediumAcrylic: rgb(6 6 6 / 50%);
+  --lightAcrylic: rgb(6 6 6 / 40%);
+  --acrylicBorder: #ffffff14;
+  --backgroundTint: #000000e6;
+}
+
+/* Background images */
+[data-theme-image] body {
+  background: linear-gradient(var(--backgroundTint), var(--backgroundTint)), var(--themeImage), var(--background);
+  background-position: center; 
+  background-repeat: no-repeat;
+  background-size: cover;
+  background-attachment: fixed;
+}
+
+body.themeImage i, body.themeImage p,
+body.themeImage .label, body.themeImage li,
+body.themeImage h1, body.themeImage h2, body.themeImage h3, body.themeImage h4, body.themeImage h5, body.themeImage h6 {
+  text-shadow: 2px 2px 20px var(--background);
+}
+
+body.themeImage i, body.themeImage p,
+body.themeImage .label, body.themeImage li {
+  font-weight: 500;
+}
+
+body.themeImage input:not(.filled):not([type=submit]):not([type=color]):not([type=range]):not([type=file]):not([type=checkbox]):not([type=button]):not([type=radio]):not([type=reset]), 
+body.themeImage button.outline, body.themeImage textarea, body.themeImage .block:not(.clickable):not(.card), body.themeImage code {
+  backdrop-filter: blur(20px) !important;
+  background: var(--lightAcrylic) !important;
+}
+
+body.themeImage input:not(.filled):not(:focus):not([type=submit]):not([type=color]):not([type=range]):not([type=file]):not([type=checkbox]):not([type=button]):not([type=radio]):not([type=reset]), 
+body.themeImage button.outline:not(:hover), body.themeImage textarea:not(:focus) {
+  border-color: var(--acrylicBorder) !important;
+}
+
+body.themeImage .btn *, body.themeImage .acrylicMaterial, body.themeImage .acrylicMaterial *, body.themeImage input *, body.themeImage .inputIcon,
+body.themeImage .card *, body.themeImage .block *, body.themeImage .sidebar *, body.themeImage .sidenav *, body.themeImage .alert *,
+body.themeImage .list .item.active * {
+  text-shadow: none !important;
+}
+
+body.themeImage .sidebar {
+  background: var(--mediumAcrylic) !important;
+}
+
+/* Core Styles & Fonts
+--------------------------------------------------  */
+
+body {
+  margin: 0;
+  background-color: var(--background);
+  color: var(--text);
+}
+
+.container {
+  position: relative;
+  display: block;
+  max-width: 1400px;
+  margin: 0px auto;
+  padding: 20px;
+}
+
+body:not(.hasNavbar) .container {
+  margin-top: 50px
+}
+
+.card.container {
+  margin-top: inherit !important;
+}
+
+/* Content scaling
+[0, 600] Phone 
+(600, 1200) Tablet, <= 900px hides sidebar
+[1200, +infinity) Desktop
+*/
+@media (max-width: 600px) {
+  .container {
+    width: 100%;
+  }
+}
+
+@media (min-width: 600px) {
+  .container {
+    width: 90%;
+  }
+}
+
+@media (min-width: 1200px) {
+  .container {
+    width: 80%;
+  }
+}
+
+body.hasSidebar {
+  padding-left: 275px;
+}
+
+body.hasNavbar {
+  padding-top: 70px;
+}
+
+body.hasSidebar.collapsedSidebar {
+  padding-left: 72px;
+}
+
+* {
+  -webkit-box-sizing: border-box;
+  -moz-box-sizing: border-box;
+  box-sizing: border-box;
+}
+
+.row {
+  margin-bottom: 20px;
+}
+
+/* Title Font Styling */
+
+h1, h2, h3, h4, h5 {
+  font-family: var(--titleFont);
+  font-weight: normal;
+}
+
+/* Font sizing and margins */
+
+h1, h2, h3, h4, h5, h6 {
+  line-height: 110%;
+}
+
+@media (max-width: 600px) {
+  h1 {
+    font-size: 38px;
+    font-weight: 700;
+    margin: 28px 0px;
+  }
+  
+  h2 {
+    font-size: 32px;
+    font-weight: 700;
+    margin: 24px 0px;
+  }
+  
+  h3 {
+    font-size: 28px;
+    font-weight: 600;
+    margin: 20px 0px;
+  }
+  
+  h4 {
+    font-size: 26px;
+    font-weight: 500;
+    margin: 16px 0px;
+  }
+  
+  h5 {
+    font-size: 22px;
+    font-weight: 500;
+    margin: 14px 0px;
+  }
+  
+  h6 {
+    font-size: 20px;
+    font-weight: 500;
+    margin: 12px 0px;
+  }
+}
+
+@media (min-width: 600px) {
+  h1 {
+    font-size: 42px;
+    font-weight: 700;
+    margin: 28px 0px;
+  }
+  
+  h2 {
+    font-size: 34px;
+    font-weight: 700;
+    margin: 24px 0px;
+  }
+  
+  h3 {
+    font-size: 30px;
+    font-weight: 600;
+    margin: 20px 0px;
+  }
+  
+  h4 {
+    font-size: 26px;
+    font-weight: 500;
+    margin: 16px 0px;
+  }
+  
+  h5 {
+    font-size: 22px;
+    font-weight: 500;
+    margin: 14px 0px;
+  }
+  
+  h6 {
+    font-size: 18px;
+    font-weight: 500;
+    margin: 12px 0px;
+  }
+}
+
+@media (min-width: 1200px) {
+  h1 {
+    font-size: 46px;
+    font-weight: 700;
+    margin: 28px 0px;
+  }
+  
+  h2 {
+    font-size: 38px;
+    font-weight: 700;
+    margin: 24px 0px;
+  }
+  
+  h3 {
+    font-size: 32px;
+    font-weight: 600;
+    margin: 20px 0px;
+  }
+  
+  h4 {
+    font-size: 28px;
+    font-weight: 500;
+    margin: 16px 0px;
+  }
+  
+  h5 {
+    font-size: 24px;
+    font-weight: 500;
+    margin: 14px 0px;
+  }
+  
+  h6 {
+    font-size: 20px;
+    font-weight: 500;
+    margin: 12px 0px;
+  }
+}
+
+/* Text Font Styling */
+
+p, button, a, input, body, html, textarea {
+  font-family: var(--textFont);
+  font-weight: normal;
+}
+
+/* Icons */
+
+.fluid-icon {
+  font-family: var(--icons);
+  font-weight: normal;
+  font-style: normal;
+  font-size: 24px;
+  text-align: center;
+  line-height: 1;
+  letter-spacing: normal;
+  text-transform: none;
+  display: inline-block;
+  white-space: nowrap;
+  word-wrap: normal;
+  direction: ltr;
+  -webkit-font-smoothing: antialiased;
+  user-select: none;
+}
+
+p .fluid-icon {
+  vertical-align: middle;
+  font-size: 20px;
+  margin: 0px 2px;
+}
+
+img.emoji {
+  height: 1em;
+  width: auto;
+  display: inline-block;
+  vertical-align: middle;
+}
+
+/* Blur & Page wrapper */
+
+#fluidUIOverlay {
+  position: fixed;
+  top: 0px;
+  left: 0px;
+  width: 100%;
+  height: 100vh;
+  z-index: 999;
+  backdrop-filter: blur(32px);
+  background-blend-mode: multiply;
+  background-color: var(--lightAcrylic);
+  transition: background-color 0.2s, backdrop-filter 0.2s;
+  animation: fadeOutOverlay 0.2s;
+  opacity: 0;
+  padding: 50px 0px;
+}
+
+#fluidUIOverlay.noBlur {
+  filter: opacity(0) !important;
+}
+
+#fluidUIOverlay > * {
+  position: relative;
+}
+
+#fluidUIOverlay.hidden {
+  display: none;
+}
+
+#fluidUIOverlay.visible {
+  display: block;
+  animation: fadeInOverlay 0.2s;
+  opacity: 1;
+}
+
+@keyframes fadeInOverlay {
+  from {opacity: 0;}
+  to {opacity: 1;}
+}
+
+@keyframes fadeOutOverlay {
+  to {opacity: 0;}
+  from {opacity: 1;}
+}
+
+body.disableOverflow {
+  overflow: hidden;
+  padding-right: var(--scrollbarWidth, 0px);
+}
+
+.blur, .blur * {
+  cursor: default !important;
+  -webkit-touch-callout: none;
+  -webkit-user-select: none;
+  -khtml-user-select: none;
+  -moz-user-select: none;
+  -ms-user-select: none;
+  user-select: none;
+}
+
+.blur * {
+  pointer-events: none !important;
+}
+
+.blur {
+  filter: blur(30px);
+}
+
+/* Links */
+
+a {
+  text-decoration: none;
+  color: var(--links);
+}
+
+.WorkflowRunLogsScroll::-webkit-scrollbar {
+  width: 12px
+}
+
+.WorkflowRunLogsScroll::-webkit-scrollbar-thumb {
+  background-color: var(--color-auto-gray-6);
+  border: 3px solid var(--color-bg-canvas-inverse);
+  border-radius: 6px
+}
+
+[data-color-mode=dark] .WorkflowRunLogsScroll::-webkit-scrollbar-thumb {
+  background-color: var(--color-scale-gray-6)
+}
+
+@media (prefers-color-scheme: dark) {
+  [data-color-mode=auto] .WorkflowRunLogsScroll::-webkit-scrollbar-thumb {
+      background-color:var(--color-scale-gray-6)
+  }
+}
+
+[data-color-mode=dark] .WorkflowRunLogsScroll::-webkit-scrollbar-thumb {
+  border-color: var(--color-bg-canvas-inset)
+}
+
+@media (prefers-color-scheme: dark) {
+  [data-color-mode=auto] .WorkflowRunLogsScroll::-webkit-scrollbar-thumb {
+      border-color:var(--color-bg-canvas-inset)
+  }
+}
+
+/* Acrylic
+Elements that use the acrylic texture will have their background and text colors defined here
+--------------------------------------------------  */
+.acrylicMaterial {
+  backdrop-filter: blur(20px);
+  -webkit-backdrop-filter: blur(20px);
+  background-blend-mode: exclusion;
+  background: var(--acrylic);
+  border: solid 1px #ffffff03;
+}
+
+button.acrylicMaterial:hover {
+  background: var(--acrylicDisabled, var(--elements));
+}
+
+body.sampleBgImage {
+  background-image: url("https://i.imgur.com/d8gklDZ.jpg");
+  background-position: center; 
+  background-repeat: no-repeat;
+  background-size: cover;
+  background-attachment: fixed;
+}
+
+/* Buttons
+--------------------------------------------------  */
+
+button, select {
+  font-family: var(--textFont);
+  cursor: pointer;
+  border: none;
+  outline: none;
+  padding: 8px 22px;
+  text-align: center;
+  border-radius: var(--elementRadius);
+  text-decoration: none;
+  display: inline-block;
+  font-size: 16px;
+  transition: background-color 0.2s, border 0.2s;
+  color: var(--elementText);
+  user-select: none;
+  vertical-align: middle;
+  margin: 2px 5px;
+  font-weight: bold;
+  letter-spacing: 0.9px;
+  background-color: var(--elements);
+  border: 2px solid transparent;
+}
+
+button:disabled {
+  opacity: 0.5;
+  cursor: auto !important;
+}
+
+button.outline, select.outline {
+  background-color: inherit;
+  border: 2px solid var(--elements);
+  color: var(--elementText);
+}
+
+button.primary {
+  background-color: var(--theme);
+  color: var(--themeText);
+  border-color: transparent;
+}
+
+button:focus {
+  outline: 0;
+}
+
+button i, select i {
+  display: inline-block;
+  vertical-align: middle;
+  margin-top: -10px;
+  margin-bottom: -7px;
+  margin-right: 5px;
+  font-size: 26px;
+  line-height: inherit;
+}
+
+button:not(.active):not(.outline):not(.primary):hover:not(:disabled) {
+  background-color: var(--elementHover);
+  border-color: var(--highlight);
+}
+
+button.outline:not(.active):hover:not(:disabled) {
+  border-color: var(--elementHover);
+}
+
+button.primary:not(.active):hover:not(:disabled) {
+  border-color: var(--highlight);
+}
+
+button.disabled {
+  filter: blur(0.5px) !important;
+  cursor: normal !important;
+}
+
+button.active {
+  box-shadow: var(--elementShadow);
+  background-color: var(--theme);
+  border-color: var(--highlight) !important;
+  color: var(--themeText);
+}
+
+
+button.small, select.small {
+  padding: 8px 12px;
+  font-size: 14px;
+}
+
+.btns {
+  width: auto;
+  display: inline-block;
+  padding: 5px;
+  border-radius: var(--elementRadius);
+  margin-left: 5px;
+  background-color: var(--elements);
+}
+
+.btns button:not(.active) {
+  background-color: transparent !important;
+  border-color: transparent !important;
+}
+
+.btns button {
+  margin: 0;
+  transition: background-color 0.2s, border 0.2s, color 0.2s, box-shadow 0.2s;
+}
+
+/* Small button row */
+
+.btns.small {
+  padding: 0px;
+  border-radius: 20px;
+}
+
+.btns.small button {
+  border-radius: 20px;
+  padding: 10px 20px;
+  font-size: 14px;
+}
+
+.btns.small button i {
+  font-size: 22px;
+  margin-right: 2px;
+}
+
+@media (max-width: 550px) {
+  button, select {
+    width: 100%;
+    margin: 5px 2px !important;
+  }
+}
+
+/* Theme selector */
+.themeSelectionUI {
+  height: 500px;
+  border-radius: var(--elementRadius);
+  padding: 10px;
+}
+
+.themeSelectionUI:not(.flat) {
+  background-color: var(--content);
+  box-shadow: var(--lightShadow);
+}
+
+.themeSelectionUI .themeCustomization {
+  width: calc(100% - 250px);
+  display: inline-block;
+  vertical-align: top;
+}
+
+.themeSelectionUI .themeCustomization h5 span, .themeSelectionUI .themeCustomization h5 i {
+  vertical-align: middle;
+}
+
+.themeSelectionUI .themeCustomization h5 span {
+  font-size: 20px;
+}
+
+.themeSelectionUI .themeCustomization h5 i {
+  font-size: 24px;
+}
+
+.themeSelectionUI .themeOptions {
+  margin-right: 25px;
+  width: 220px;
+  max-height: 100%;
+  overflow: auto;
+  display: inline-block;
+  vertical-align: top;
+}
+
+.themeSelectionUI .themeOptions .divider {
+  margin: 15px 10px;
+  width: auto;
+}
+
+.themeSelectionUI .themeOptions .themeSelection {
+  cursor: pointer;
+  padding: 10px;
+  margin: 5px;
+  border-radius: var(--elementRadius);
+  border: 2px solid transparent;
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  color: var(--themeSelectorColor);
+}
+
+.themeSelectionUI .themeOptions.noSelectorColors .themeSelection {
+  --themeSelectorColor: none !important;
+}
+
+.themeSelectionUI .themeOptions .themeSelection.active {
+  box-shadow: var(--lightShadow);
+  font-weight: bold;
+  border-color: var(--highlight);
+  background: var(--themeSelectBg, var(--background));
+  color: var(--themeSelectText, var(--text));
+}
+
+.themeSelectionUI .themeOptions .themeSelection span {
+  vertical-align: middle;
+}
+
+.themeSelectionUI .themeOptions .themeSelection i {
+  vertical-align: middle;
+}
+
+/* Lists & Context Menus
+--------------------------------------------------  */
+
+.list .item i {
+  display: inline-block;
+  vertical-align: middle;
+  margin-top: -10px;
+  margin-bottom: -10px;
+  margin-right: 7px;
+  font-size: 26px;
+  line-height: inherit;
+}
+
+.list .item.disabled {
+  filter: blur(0.5px);
+  cursor: normal;
+}
+
+.list {
+  border-radius: var(--cardRadius);
+  padding: 3px;
+}
+
+.list .item {
+  cursor: pointer;
+  font-weight: bold;
+  letter-spacing: 0.9px;
+  padding: 15px 10px;
+  border-radius: var(--cardRadius);
+  transition: background-color 0.2s;
+  margin: 3px 0px;
+  user-select: none;
+}
+
+.list .item.active {
+  background-color: var(--theme);
+  color: var(--themeText);
+  box-shadow: var(--elementShadow);
+}
+
+/* Code
+--------------------------------------------------  */
+
+code {
+  display: block;
+  font-family: monospace, monospace !important;
+  font-size: 16px;
+  padding: 20px;
+  box-shadow: var(--lightShadow) !important;
+  overflow: auto;
+  border-radius: var(--cardRadius);
+  background: var(--content);
+}
+
+code * {
+  font-family: monospace, monospace !important;
+}
+
+/* desert scheme ported from vim to google prettify */
+
+code .nocode {
+  background-color: none;
+  color: var(--text);
+}
+
+code .str {
+  color: #ffa0a0
+}
+
+/* string  - pink */
+
+code .kwd {
+  color: #f0e68c
+}
+
+code .com {
+  color: #87ceeb
+}
+
+/* comment - skyblue */
+
+code .typ {
+  color: #98fb98
+}
+
+/* type    - lightgreen */
+
+code .lit {
+  color: #cd5c5c
+}
+
+/* literal - darkred */
+
+code .pun {
+  color: var(--text)
+}
+
+/* punctuation */
+
+code .pln {
+  color: var(--text)
+}
+
+/* plaintext */
+
+code .tag {
+  color: #f0e68c
+}
+
+/* html/xml tag    - lightyellow */
+
+code .atn {
+  color: #bdb76b
+}
+
+/* attribute name  - khaki */
+
+code .atv {
+  color: #ffa0a0
+}
+
+/* attribute value - pink */
+
+code .dec {
+  color: #98fb98
+}
+
+/* decimal         - lightgreen */
+
+/* stackoverflow code formatting for light themes */
+
+[data-theme-type=light] code .nocode {
+  background-color: none;
+  color: var(--text);
+}
+
+[data-theme-type=light] code .str {
+  color: #7D2727
+}
+
+/* string  - pink */
+
+[data-theme-type=light] code .kwd {
+  color: #101094
+}
+
+[data-theme-type=light] code .com {
+  color: #858C93
+}
+
+/* comment - skyblue */
+
+[data-theme-type=light] code .typ {
+  color: #2B91AF
+}
+
+/* type    - lightgreen */
+
+[data-theme-type=light] code .lit {
+  color: #7D2727
+}
+
+/* literal - darkred */
+
+[data-theme-type=light] code .pun {
+  color: var(--text)
+}
+
+/* punctuation */
+
+[data-theme-type=light] code .pln {
+  color: var(--text)
+}
+
+/* plaintext */
+
+[data-theme-type=light] code .tag {
+  color: #7D2727
+}
+
+/* html/xml tag    - lightyellow */
+
+[data-theme-type=light] code .atn {
+  color: #E64320
+}
+
+/* attribute name  - khaki */
+
+[data-theme-type=light] code .atv {
+  color: #0F74BD
+}
+
+/* attribute value - pink */
+
+[data-theme-type=light] code .dec {
+  color: #101094
+}
+
+/* decimal         - lightgreen */
+
+/* Input
+--------------------------------------------------  */
+
+input:not([type=submit]):not([type=color]):not([type=range]):not([type=file]):not([type=checkbox]):not([type=button]):not([type=radio]):not([type=reset]), textarea {
+  width: 380px;
+  margin-bottom: 30px;
+  border-radius: var(--elementRadius);
+  padding: 0px 10px;
+  border: none;
+  outline: none;
+  height: 44px;
+  margin-bottom: 20px;
+  transition: border 0.2s, box-shadow 0.2s;
+  color: var(--text);
+  border: 2px solid var(--elements);
+  background: inherit;
+}
+
+input:not([type=submit]):not([type=color]):not([type=range]):not([type=file]):not([type=checkbox]):not([type=button]):not([type=radio]):not([type=reset]):disabled, textarea:disabled {
+  opacity: 0.5;
+  background: var(--elementHover) !important;
+}
+
+input:not([type=submit]):not([type=color]):not([type=range]):not([type=file]):not([type=checkbox]):not([type=button]):not([type=radio]):not([type=reset]).filled {
+  background-color: var(--inputColor);
+}
+
+input:not([type=submit]):not([type=color]):not([type=range]):not([type=file]):not([type=checkbox]):not([type=button]):not([type=radio]):not([type=reset]):not(.filled):focus, textarea:not(.filled):focus {
+  border-color: var(--theme);
+}
+
+input:not([type=submit]):not([type=color]):not([type=range]):not([type=file]):not([type=checkbox]):not([type=button]):not([type=radio]):not([type=reset]).filled:not(.noshadow):focus, textarea.filled:not(.noshadow):focus {
+  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
+}
+
+input:not([type=color]):not([type=range]):not([type=submit]):not([type=file]):not([type=checkbox]):not([type=button]):not([type=radio]):not([type=reset]).shadow, textarea.shadow {
+  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
+}
+
+body.light input:not([type=color]):not([type=range]):not([type=submit]):not([type=file]):not([type=checkbox]):not([type=button]):not([type=radio]):not([type=reset]).shadow, body.light textarea.shadow {
+  background-color: white;
+}
+
+input::placeholder, textarea::placeholder {
+  color: var(--secText);
+}
+
+@media (max-width: 550px) {
+  input:not([type=submit]):not([type=color]):not([type=range]):not([type=file]):not([type=checkbox]):not([type=button]):not([type=radio]):not([type=reset]), textarea {
+    width: 100%;
+  }
+}
+
+input.inputIcon {
+  padding-left: 38px !important;
+}
+
+i.inputIcon {
+  position: absolute;
+  z-index: 2;
+  padding: 12px;
+  font-size: 20px;
+}
+
+textarea {
+  width: 100%;
+  height: 50px;
+  margin: 0;
+  -webkit-box-sizing: border-box;
+  -moz-box-sizing: border-box;
+  box-sizing: border-box;
+  padding: 15px;
+  overflow: hidden;
+}
+
+/* Switches
+--------------------------------------------------  */
+
+.switch {
+  border-radius: var(--elementRadius);
+  display: inline-block;
+  width: 50px;
+  height: 25px;
+  cursor: pointer;
+  vertical-align: middle;
+  transition: background-color 0.2s;
+  box-shadow: none;
+  background-color: var(--elements);
+  user-select: none;
+}
+
+.switch .head {
+  transition: background-color 0.2s, margin 0.2s;
+  border-radius: var(--elementRadius);
+  display: inline-block;
+  background-color: var(--switchHead);
+  width: 20px;
+  height: 20px;
+  margin: 2.5px;
+  position: absolute;
+}
+
+.switch.active .head {
+  margin-left: 27.5px;
+  background-color: var(--themeText);
+  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.17);
+}
+
+.switch.active {
+  background-color: var(--theme);
+}
+
+.label {
+  line-height: 25px;
+  height: 25px;
+  display: inline-block;
+  vertical-align: middle;
+  margin-left: 15px;
+}
+
+.label i {
+  vertical-align: middle;
+  font-size: 26px;
+  margin-right: 2px;
+}
+
+.slider {
+  -webkit-appearance: none;
+  height: 10px;
+  outline: none;
+  border-radius: calc(var(--elementRadius) - 5px);
+  min-width: 200px;
+  background-color: var(--elements);
+}
+
+.slider::-webkit-slider-thumb {
+  -webkit-appearance: none;
+  appearance: none;
+  width: 10px;
+  height: 22px;
+  background: var(--theme);
+  cursor: pointer;
+  border-radius: calc(var(--elementRadius) - 5px);
+}
+
+.slider::-moz-range-thumb {
+  width: 25px;
+  height: 25px;
+  background: var(--theme);
+  cursor: pointer;
+  border-radius: calc(var(--elementRadius) - 5px);
+}
+
+.checkbox {
+  border-radius: 3px;
+  display: inline-block;
+  width: 25px;
+  height: 25px;
+  cursor: pointer;
+  vertical-align: middle;
+  transition: background-color 0.2s;
+  box-shadow: none;
+  background-color: var(--elements);
+  text-align: center;
+  user-select: none;
+}
+
+.checkbox.active {
+  background-color: var(--theme);
+}
+
+.checkbox:not(.active) i {
+  display: none;
+}
+
+.checkbox.active i {
+  font-size: 20px;
+  line-height: 24px;
+  color: var(--themeText);
+}
+
+.radio > div {
+  margin: 10px 0px;
+}
+
+.radio .checkbox {
+  border-radius: 50%;
+  user-select: none;
+}
+
+.radio .checkbox.active .circle {
+  display: block;
+  width: 10px;
+  height: 10px;
+  background-color: var(--themeText);
+  margin: 7.5px;
+  border-radius: 50%;
+}
+
+/* Navigation (sidebars / navbars)
+--------------------------------------------------  */
+
+.directory span {
+  vertical-align: middle;
+  padding: 4px 10px;
+  border-radius: var(--elementRadius);
+  cursor: pointer;
+  font-size: 18px;
+}
+
+.directory span.active {
+  font-weight: bold;
+}
+
+.directory span:hover {
+  background-color: var(--elements);
+}
+
+.directory i {
+  vertical-align: middle;
+  margin: 0px 2px;
+}
+
+.sidebar .title {
+  text-align: center; 
+  margin-top: 10px;
+}
+
+.sidebar .title img {
+  width: 36px; 
+  margin-right: 7px; 
+  vertical-align: middle;
+}
+
+.sidebar .title h4 {
+  color: var(--text); 
+  display: inline-block; 
+  font-weight: bold;
+  font-size: 28px; 
+  vertical-align: middle; 
+  margin: 0px;
+}
+
+.sidebar .title p {
+  margin: 7px 0px 0px 10px;
+}
+
+body.hasNavbar .sidebar .title {
+  display: none;
+}
+
+.sidebar {
+  height: 100vh;
+  width: 275px;
+  position: fixed;
+  top: 0px;
+  left: 0px;
+  padding: 25px 0px 42px 0px;
+  z-index: 98;
+  transition: width 0.2s;
+  display: flex;
+  flex-direction: column;
+  background-color: var(--acrylic);
+}
+
+body.hasNavbar .sidebar {
+  top: 60px;
+  height: calc(100vh - 60px);
+  border-top: none;
+}
+
+:not([data-theme-image]) body.hasNavbar .sidebar {
+  background-color: var(--background);
+}
+
+body.hasNavbar .sidebar .items {
+  margin-top: 0px;
+}
+
+.sidebar .items {
+  text-align: center;
+  margin-top: 32px;
+  height: 100%;
+  overflow: auto;
+  position: relative;
+}
+
+.sidebar .item {
+  padding: 5px 10px;
+  margin: 6px 10px;
+  text-align: left;
+  font-size: 16px;
+  cursor: pointer;
+  border-radius: calc(var(--elementRadius) - 2px);
+  white-space: nowrap;
+  overflow: hidden;
+  user-select: none;
+}
+
+.sidebar .item.footer {
+  color: var(--lightText);
+  position: absolute;
+  bottom: 0px;
+  display: block;
+}
+
+body.collapsedSidebar .sidebar .item.footer {
+  width: calc(100% - 20px);
+}
+
+.sidebar .item.main {
+  padding: 10px 15px;
+  padding-left: 10px;
+  font-size: 18px;
+}
+
+.sidebar .item.main i {
+  font-size: 24px;
+}
+
+.sidebar .item i, .sidebar .item .label {
+  vertical-align: middle;
+}
+
+.sidebar .item .label {
+  margin: 0px;
+}
+
+.sidebar .item i {
+  margin-left: 5px;
+  margin-right: 4px;
+  font-size: 22px;
+}
+
+.sidebar .item {
+  color: var(--text);
+  transition: background-color 0.2s;
+}
+
+.sidebar .item.active {
+  background-color: var(--sidebarActive);
+}
+
+.sidebar .item.active .label {
+  font-weight: bold;
+}
+
+.sidebar .group {
+  padding: 5px 10px;
+  margin: 15px 10px;
+  text-align: left;
+  font-size: 16px;
+  transition: background-color 0.2s;
+  border-radius: var(--elementRadius);
+}
+
+.sidebar .group .name {
+ margin: 0px;
+ padding-left: 0px;
+ user-select: none;
+}
+
+.sidebar .group:not(.open) .name i::before {
+  content: "keyboard_arrow_down";
+} 
+
+.sidebar .group:not(.open) .items {
+  display: none;
+}
+
+.sidebar .group.open {
+  background: var(--cards);
+  box-shadow: var(--lightShadow);
+  border-radius: var(--elementRadius);
+}
+
+.sidebar .group.open .name * {
+  font-weight: bold;
+}
+
+.sidebar .group.open .name {
+  margin-bottom: 4px;
+}
+
+.sidebar .group .items {
+  margin-top: 10px;
+}
+
+.sidebar .group .items .item {
+  margin: 0px;
+  padding-left: 0px;
+}
+
+.sidebar .group.open .name i::before {
+  content: "keyboard_arrow_up";
+} 
+
+.sidebar .collapse {
+  width: 100%;
+  position: absolute;
+  bottom: 0px;
+  height: 40px;
+  text-align: right;
+  padding-right: 10px;
+  cursor: pointer;
+}
+
+.sidebar .collapse i {
+  height: 40px;
+  line-height: 40px;
+}
+
+.sidebar .collapse i::before {
+  content: "keyboard_arrow_left";
+}
+
+body.collapsedSidebar .sidebar .collapse i::before {
+  content: "keyboard_arrow_right";
+}
+
+body.hasSidebar.collapsedSidebar .sidebar .collapse {
+  padding: 0px;
+  text-align: center;
+}
+
+.sidebar .divider {
+  background-color: transparent;
+  margin: 15px 0;
+}
+
+body.collapsedSidebar .sidebar .title img {
+  margin: 0px;
+}
+
+body.collapsedSidebar .sidebar {
+  width: 72px;
+  text-align: center;
+}
+
+body.collapsedSidebar .sidebar .item .label, body.collapsedSidebar .sidebar .title *:not(img) {
+  display: none;
+}
+
+body.collapsedSidebar .sidebar .item.main {
+  padding-top: 10px;
+  padding-bottom: 10px;
+}
+
+body.collapsedSidebar .sidebar .item {
+  text-align: center;
+  padding: 5px 0px;
+}
+
+.nav.links {
+  background-color: var(--listColor);
+  display: inline-block;
+  padding: 0px 2px;
+  border-radius: 20px;
+  border: 1px solid var(--acrylic10);
+}
+
+.nav.links a {
+  color: var(--lightText);
+  margin: 10px 10px;
+  font-size: 16px;
+  line-height: 22px;
+  height: 22px;
+  display: inline-block;
+  vertical-align: middle;
+}
+
+.nav.links i {
+  vertical-align: middle;
+  margin: 0px 4px;
+  font-size: 22px;
+}
+
+body.hasSidebar .navbar .logo {
+  margin-left: 7px;
+}
+
+.navbar {
+  position: fixed;
+  top: 0px;
+  left: 0px;
+  width: 100%;
+  height: 60px;
+  padding: 10px;
+  z-index: 99;
+  border-top: none !important;
+  border-left: none !important;
+  border-right: none !important;
+  background-color: var(--navbar);
+  box-shadow: var(--lightShadow);
+  backdrop-filter: blur(20px);
+}
+
+body.disableOverflow .navbar {
+  padding-right: calc(10px + var(--scrollbarWidth, 0px));
+}
+
+.navbar.acrylicMaterial {
+  box-shadow: none;
+}
+
+.navbar .profile {
+  float: right;
+  display: inline-block;
+}
+
+.navbar .profile .profileImage {
+  height: 40px;
+  width: 40px;
+  text-align: center;
+  border-radius: 50%;
+  cursor: pointer;
+  box-shadow: var(--lightShadow);
+  background-position: center;
+  background-repeat: no-repeat;
+  background-size: 40px;
+  background-color: var(--elements);
+  border: 2px solid transparent;
+}
+
+.navbar .profile .profileImage:hover {
+  border-color: #ffffff33;
+}
+
+.navbar .profile .profileImage i {
+  font-size: 28px;
+  height: 36px;
+  line-height: 36px;
+}
+
+.navbar .logo img {
+  height: 32px;
+  width: 32px;
+  margin: 3.5px;
+  vertical-align: middle;
+  margin-right: 10px;
+}
+
+.navbar h4 {
+  display: inline-block;
+  vertical-align: middle;
+  margin-top: 0px;
+  margin-bottom: 0px;
+  font-size: 24px;
+  font-weight: bold;
+}
+
+.navbar .items {
+  display: inline-block;
+  margin-left: 20px;
+  vertical-align: middle;
+}
+
+.navbar .logo {
+  display: inline-block;
+  overflow: hidden;
+  margin-right: 32px;
+  vertical-align: middle;
+}
+
+.navbar .navitem {
+  display: inline-block;
+  cursor: pointer;
+  padding: 0px 10px;
+  height: 32px;
+  line-height: 32px;
+  margin: 2px 4px;
+  color: var(--secText);
+  transition: color 0.2s;
+  user-select: none;
+}
+
+.navbar .navitem.active {
+  color: var(--text);
+}
+
+.navbar .navitem.active span, .navbar .navitem.active i {
+  font-weight: bold;
+  text-shadow: var(--lightShadow);
+}
+
+.navbar .navitem i {
+  vertical-align: middle;
+  margin-right: 2px;
+  font-size: 24px;
+}
+
+.navbar .navitem span {
+  vertical-align: middle;
+  font-size: 14px;
+}
+
+/* Toasts & Alerts
+--------------------------------------------------  */
+
+.toast {
+  position: fixed;
+  right: 15px;
+  top: 15px;
+  padding: 15px;
+  background-color: var(--cards);
+  border: 2px solid var(--elements);
+  border-radius: 10px;
+  width: 400px;
+  z-index: 88;
+  box-shadow: var(--cardShadow);
+}
+
+.toast div {
+  display: inline-block;
+  vertical-align: top;
+}
+
+.toast h5 {
+  margin: 0px;
+  font-weight: bold;
+  font-size: 22px;
+}
+
+.toast p {
+  margin-top: 10px;
+  margin-bottom: 0px;
+}
+
+.toast i {
+  vertical-align: top;
+  margin-right: 10px;
+}
+
+.toast i.close, .card.alert i.close {
+  float: right;
+  cursor: pointer;
+  font-size: 18px;
+  margin-top: 4px;
+}
+
+.alert:not(.card).info {
+  background: #6997c761;
+}
+
+.alert:not(.card).warning {
+  background: #d8c27e61;
+}
+
+.alert:not(.card).error {
+  background: #d8777761;
+}
+
+.alert:not(.card).success {
+  background: #73ca9161;
+}
+
+body.dark .alert:not(.card) {
+  border: 2px solid #ffffff33;
+}
+
+[data-theme-type=light] .alert:not(.card) {
+  border: 2px solid #00000033;
+}
+
+.alert:not(.card) {
+  padding: 10px 15px;
+  border-radius: var(--cardRadius);
+  margin: 20px 0px;
+  background: var(--acrylic);
+}
+
+.alert:not(.card) .header h5 {
+  font-size: 20px;
+  font-weight: bold;
+  line-height: 24px;
+  height: 24px;
+}
+
+.alert:not(.card) .header i {
+  vertical-align: middle;
+  margin-right: 5px;
+}
+
+.card.alert {
+  position: fixed !important;
+  top: 20vh;
+  width: 500px;
+  left: calc(50% - 250px);
+  z-index: 88;
+}
+
+.card.alert .body {
+  max-height: 300px;
+  overflow: auto;
+}
+
+.card.alert h5 {
+  display: inline-block;
+  vertical-align: middle;
+  margin-top: 0px;
+  margin-bottom: 20px;
+}
+
+.card.alert h5 {
+  font-size: 24px;
+  font-weight: bold;
+}
+
+.card.alert>i {
+  margin-right: 5px;
+  vertical-align: middle;
+  margin-bottom: 20px;
+}
+
+.card.alert .footer {
+  margin: -15px;
+  margin-top: 50px;
+  text-align: right;
+}
+
+/* Cards (and profile menu)
+--------------------------------------------------  */
+
+.card:not(.focus) {
+  position: relative;
+}
+
+.card.close {
+  display: none;
+}
+
+.card:not(.alert) i.close {
+  position: absolute;
+  right: 0;
+  cursor: pointer;
+  top: 0;
+  margin: 25px;
+}
+
+.card {
+  border-radius: calc(var(--cardRadius) + 5px);
+  padding: 30px;
+  box-shadow: var(--cardShadow);
+}
+
+.card:not(.withnav) {
+  background-color: var(--cards);
+}
+
+.card.focus {
+  max-height: 100%;
+  overflow: auto;
+}
+
+@media (max-width: 1000px) {
+  .card.focus {
+    position: fixed !important;
+    top: 0px !important;
+    left: 0px !important;
+    width: 100% !important;
+    height: 100vh !important;
+    max-height: 100vh !important;
+    max-width: 100% !important;
+    border-radius: 0px !important;
+    margin-left: 0px !important;
+  }
+  .card.focus .sidenav {
+    border-radius: 0px !important;
+    height: 100vh !important;
+  }
+}
+
+.card.withnav .content {
+  padding: 20px;
+  padding-left: 20px;
+  margin-left: 240px;
+  background-color: var(--cards);
+  min-height: 100%;
+}
+
+.card.withnav {
+  padding: 0px;
+  overflow: hidden;
+}
+
+.card.container:not(.withnav) {
+  padding: 30px !important;
+}
+
+.card.profileMenu.close {
+  display: none;
+}
+
+.card.profileMenu {
+  position: fixed !important;
+  width: 400px;
+  right: 10px;
+  top: 70px !important;
+  z-index: 1000;
+  display: none;
+  border: 2px solid var(--elements);
+}
+
+.card.profileMenu .person .profileImage {
+  border-radius: 50%;
+  height: 40px;
+  width: 40px;
+  text-align: center;
+  box-shadow: var(--cardShadow);
+  position: fixed;
+  top: 10px;
+  right: 10px;
+  background-position: center;
+  background-repeat: no-repeat;
+  background-size: cover;
+  background-color: var(--elements);
+}
+
+.card.profileMenu .person .profileImage i {
+  font-size: 28px;
+  height: 40px;
+  line-height: 40px;
+}
+
+.card.profileMenu .person .info {
+  display: inline-block;
+  vertical-align: middle;
+}
+
+.card.profileMenu .person .info .name {
+  font-weight: bold;
+  margin: 0px;
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+}
+
+.card.profileMenu .person .info * {
+  margin-bottom: 0px;
+}
+
+.card.profileMenu .divider {
+  margin: 10px 0px;
+}
+
+.card.profileMenu .actions {
+  margin-top: 32px;
+}
+
+.card.profileMenu .actions .item {
+  padding: 5px 0px;
+  margin: 5px 0px;
+  cursor: pointer;
+}
+
+.card.profileMenu .actions .item span {
+  vertical-align: middle;
+  margin: 0px;
+}
+
+.card.profileMenu .actions .item i {
+  vertical-align: middle;
+  margin-right: 5px;
+}
+
+.card.profileMenu .actions .item i {
+  vertical-align: middle;
+  margin-right: 5px;
+}
+
+
+/* Sidenav
+--------------------------------------------------  */
+
+.sidenav {
+  width: 240px;
+  height: 100%;
+  display: inline-block;
+  float: left;
+  border-top-left-radius: calc(var(--cardRadius) + 6px);
+  border-bottom-left-radius: calc(var(--cardRadius) + 6px);
+  border-right: none !important;
+  background-color: var(--sidenav);
+}
+
+.sidenav .title {
+  padding: 20px;
+  padding-top: 32px;
+  height: 135px;
+}
+
+.sidenav .title h5 {
+  font-size: 22px;
+  height: 40px;
+  margin: 0;
+  line-height: 40px;
+}
+
+.sidenav .title p {
+  margin: 0px;
+}
+
+.sidenav .item {
+  cursor: pointer;
+  transition: filter 0.2s;
+  height: 55px;
+  line-height: 55px;
+  padding-left: 25px;
+  font-weight: bold;
+  letter-spacing: 0.9px;
+  user-select: none;
+}
+
+.card .sidenav .item:not(.active) {
+  color: var(--text);
+  filter: opacity(0.3);
+}
+ 
+.card .sidenav .item.active {
+   background: var(--sidenavActive);
+   border-color: var(--highlight);
+ }
+
+.sidenav .item i {
+  margin-right: 15px;
+  vertical-align: middle;
+  font-size: 26px;
+}
+
+/* Blocks
+--------------------------------------------------  */
+.block {
+  display: inline-block;
+  border-radius: var(--elementRadius);
+  padding: 20px;
+  position: relative;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  background: var(--blocks);
+}
+
+.block.card {
+  z-index: 7;
+}
+
+.block.clickable {
+  background: var(--elements);
+  cursor: pointer;
+  padding: 18px;
+  border: 2px solid transparent;
+  transition: background-color 0.2s, border-color 0.2s;
+  user-select: none;
+}
+
+.block.clickable button {
+  display: none;
+}
+
+.block.clickable:hover {
+  border-color: var(--highlight);
+  background: var(--elementHover);
+}
+
+.grid.flex .block {
+  margin: 5px;
+}
+
+.block i {
+  vertical-align: middle;
+}
+
+.block > * {
+  margin-left: 0px;
+  margin-right: 0px;
+}
+
+.block > *:first-child {
+  margin-top: 0px;
+}
+
+.block > *:last-child {
+  margin-bottom: 0px;
+}
+
+/* STATUS BLOCKS */
+
+.block.status {
+  min-height: 150px;
+}
+
+.block.status .main {
+  font-size: 34px;
+  font-weight: bold;
+}
+
+.block.status .bottom {
+  position: absolute; 
+  bottom: 20px;
+  left: 20px;
+}
+
+/* INFO BLOCKS */
+
+.block.info {
+  min-height: 100px;
+}
+
+.block.info .status .main {
+  display: inline-block;
+  font-size: 34px;
+  line-height: 46px;
+  width: 46px;
+  height: 46px;
+  border-radius: 50%;
+  font-weight: bold;
+}
+
+.block.info .status .info {
+  font-size: 18px;
+}
+
+.block.info .status {
+  display: inline-block;
+  vertical-align: middle;
+  width: 50px;
+  text-align: center;
+  margin-right: 10px;
+}
+
+.block.info .content {
+  display: inline-block;
+  vertical-align: middle;
+  height: 100%;
+  max-width: calc(100% - 70px);
+  overflow: hidden;
+  text-overflow: ellipsis;
+}
+
+/* IMAGE BLOCKS */
+
+.block.image {
+  min-height: 300px;
+  width: 340px;
+}
+
+.block.image .status {
+  position: relative;
+}
+
+.block.image .status .image {
+  display: block;
+  height: 200px;
+  width: 100%;
+  border-radius: 10px;
+  box-shadow: var(--lightShadow);
+  background-image: var(--image);
+  background-position: center;
+  background-repeat: no-repeat;
+  background-size: cover;
+}
+
+.block.image .status i {
+  position: absolute;
+  z-index: 3;
+  left: 10px;
+  top: 10px;
+  font-size: 24px;
+  padding: 5px;
+  border-radius: 7px;
+}
+
+
+/* Layout
+--------------------------------------------------  */
+.grid.samesize {
+  display: grid;
+  grid-template-columns: repeat(auto-fit, minmax(var(--size, 200px), 1fr));
+  grid-gap: 10px;
+}
+
+.grid.fixed {
+  display: grid;
+  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
+  grid-gap: 10px;
+}
+
+.grid.fixed .item {
+  height: min-content;
+}
+
+@media (max-width: 600px) {
+  .grid.fixed {
+    grid-template-columns: 1fr;
+  }
+}
+
+.grid.flex {
+  display: flex;
+  margin: -5px;
+  flex-flow: row wrap;
+}
+
+.grid.flex .item, .grid.flex .block {
+  flex-basis: var(--size, 200px);
+  flex-grow: 1;
+  margin: 5px;
+}
+
+table.table {
+  width: 100%;
+  border-collapse: collapse;
+}
+
+table.table thead th {
+  border: none;
+}
+
+table.table th, table.table td {
+  border-top: 1px solid var(--elements);
+  padding: 10px;
+}
+
+table.table tbody tr:first-child:not(.active) th, table.table tbody tr:first-child:not(.active) td {
+  border-top: 2px solid var(--elements);
+}
+
+table.table th, table.table td {
+  text-align: left;
+}
+
+table.table tr {
+  transition: background-color 0.2s;
+}
+
+table.table tr.active {
+  background-color: var(--theme);
+  color: var(--themeText);
+}
+
+table.table tr.active * {
+  color: var(--themeText);
+}
+
+table.table tr.active * {
+  border-color: transparent;
+}
+
+table.table tr.active + tr * {
+  border-color: transparent;
+}
+
+table.table tr *:first-child {
+  border-radius: 10px 0px 0px 10px;
+}
+
+table.table tr *:last-child {
+  border-radius: 0px 10px 10px 0px;
+}
+
+/* Sections / Headers
+--------------------------------------------------  */
+.headerArea {
+  position: relative;
+  overflow: hidden;
+  width: 100%;
+  height: 400px;
+  border-radius: var(--cardRadius);
+}
+
+.headerArea img {
+  width: 100%;
+  height: 100%;
+  object-fit: cover;
+  box-shadow: var(--lightShadow);
+  position: absolute;
+}
+
+.headerArea .content {
+  display: flex;
+  flex-direction: column;
+  justify-content: center;
+  align-items: center;
+  position: absolute;
+  width: 100%;
+  height: 100%;
+  top: 0px;
+  left: 0px;
+  background: var(--backgroundTint);
+}
+
+.headerArea .content p {
+  display: inline-block;
+  vertical-align: middle;
+  margin: 20px 10px;
+  color: var(--lightText);
+}
+
+.headerArea .content p span {
+  font-size: 16px;
+  font-weight: bold;
+  vertical-align: middle;
+  text-shadow: 2px 2px 20px var(--background);
+  display: inline-block;
+}
+
+.headerArea .content p i {
+  margin: 0px;
+}
+
+.headerArea .content .btns {
+  background: transparent;
+}
+
+.headerArea .content .btns button {
+  color: var(--text) !important;
+}
+
+.headerArea .content .btns button.active {
+  background: var(--background) !important;
+}
+
+.headerArea h1 {
+  margin: 0px;
+  text-shadow: 2px 2px 20px var(--background);
+}
+
+.section {
+  border-radius: var(--cardRadius);
+  margin-top: 20px;
+}
+
+.section > .header i {
+  font-size: 38px;
+  margin-left: 5px;
+  margin-right: 10px;
+  vertical-align: middle;
+}
+
+.section > .header h1, .section > .header h2, .section > .header h3, .section > .header h4, .section > .header h5, .section > .header h6 {
+  display: inline-block;
+  vertical-align: middle;
+  margin: 0px;
+}
+
+.section > .header {
+  text-align: center;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+  padding: 40px 20px;
+}
+
+@media (max-width: 550px) {
+  .section > .header i {
+    display: block;
+  }
+  .section > .header h1, .section > .header h2, .section > .header h3, .section > .header h4, .section > .header h5 {
+    margin-top: 0px;
+  }
+}
+
+/* Progress & Shimmer
+--------------------------------------------------  */
+
+.progress {
+  position: relative;
+  width: 600px;
+  height: 5px;
+  overflow: hidden;
+  border-radius: 12px;
+  background: var(--elements);
+}
+
+.progress .bar {
+  position: absolute;
+  height: 5px;
+  background: var(--theme);
+  transition: width 0.2s;
+}
+
+.progress .indeterminate {
+position:absolute;
+background: var(--theme);
+height:5px; 
+animation: indeterminate 1.4s infinite;
+animation-timing-function: linear;
+}
+
+@keyframes indeterminate {
+ 0% { 
+   width: 5%;
+   left: -15%;
+ }
+ 100% {
+   width: 100%;
+   left: 110%;
+  }
+}
+
+.shimmer, .shimmerParent > * {
+  animation: shimmer 2s infinite;
+  animation-timing-function: linear;
+  background: linear-gradient(to right, var(--elements) 4%, var(--elementHover) 25%, var(--elements) 36%);
+  opacity: 0.5;
+  background-size: 1000px 100%;
+  border-radius: 7px;
+  content: none;
+  color: transparent !important;
+  user-select: none;
+}
+
+@keyframes shimmer {
+  0% {
+    background-position: -1000px;
+  }
+  100% {
+    background-position: 1000px;
+  }
+}
+
+.loadingScreen {
+  text-align: center;
+}
+
+.loadingScreen img {
+  height: 98px;
+  margin-right: 22px;
+  vertical-align: middle;
+}
+
+.loadingScreen h1 {
+  font-size: 68px;
+  display: inline-block;
+  vertical-align: middle;
+}
+
+.loadingScreen .progress {
+  max-width: 600px;
+  width: calc(100% - 40px);
+  margin-top: 75px;
+  display: inline-block;
+}
+
+.loadingScreen p {
+  color: var(--lightText);
+  margin-top: 24px;
+}
+
+/* Splash Screens (Basically all of the code managed in JS)
+--------------------------------------------------  */
+
+.splashScreen {
+  display: none;
+  position: fixed;
+  z-index: 800;
+  top: 0px;
+  left: 0px;
+  width: 100%;
+  height: 100vh;
+  background: var(--background);
+  padding: 100px;
+  overflow: auto;
+}
+
+/* Helpers
+--------------------------------------------------  */
+
+/* Shorthand floats & alignments */
+
+.oneline {
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+}
+
+.center {
+  text-align: center;
+}
+
+.left {
+  float: left !important;
+}
+
+.right {
+  float: right !important;
+}
+
+.align {
+  display: inline-block;
+  vertical-align: middle;
+}
+
+.hidden {
+  display: none !important;
+}
+
+@media (max-width: 550px) {
+  .desktop {
+    display: none;
+  }
+}
+
+@media (min-width: 550px) {
+  .mobile {
+    display: none;
+  }
+}
+
+/* Miscellaneous
+--------------------------------------------------  */
+
+/* Badges (previously .beta.notice) */
+
+.badge {
+  font-size: 14px;
+  line-height: 14px;
+  vertical-align: middle;
+  background-color: var(--elementHover);
+  color: var(--elementText);
+  padding: 6px;
+  border-radius: 10px;
+  display: inline-block;
+  margin: 0 5px;
+}
+
+/* Dividers */
+
+.divider {
+  width: 100%;
+  margin: 0 10px;
+  background-color: var(--elements);
+  height: 3px;
+  border-radius: 100px;
+}
+
+/* SweetAlert dark theme */
+
+body.dark .swal-icon--success:after, body.dark .swal-icon--success:before, body.dark .swal-icon--success__hide-corners {
+  background: var(--elements) !important;
+}
+
+body.dark .swal-title, body.dark .swal-text {
+  color: var(--elementText);
+}
+
+body.dark .swal-modal {
+  background-color: var(--elements);
+}
+
+body.pizzapizza {
+  --background: #fb651b;
+  --text: black;
+  --cards: #fb651b;
+  --theme: #ff9865;
+  --themeText: #ffffff;
+  --backgroundTint: #fb651bb3;
+}
+
+/* Thank you for using Fluid UI :) */
\ No newline at end of file
diff --git a/ui/fluid.js b/ui/fluid.js
new file mode 100644
index 0000000..6754ddf
--- /dev/null
+++ b/ui/fluid.js
@@ -0,0 +1,1059 @@
+/**
+ * @file Fluid UI JavaScript Modules
+ * @author jottocraft
+ * @version v5.0.0-dep
+ * 
+ * @copyright Made by jottocraft 2017-2021. All code in this repository is in the public domain (https://github.com/jottocraft/fluid-old/blob/master/LICENSE).
+ * @license unlicense
+ */
+
+/**
+ * Global Fluid UI object.
+ * All global Fluid UI functions and variables are stored in this object.
+ * 
+ * @global
+ * @namespace fluid
+ * @property {object} screens Fluid UI screens object containing functions for local screens and URLs for external screens
+ * @property {object} externalScreens Contains all of the functions for external screens, which are added to this object as needed
+ * @property {string[]} includedThemes The list of color theme IDs included in this version of Fluid UI. This should NOT be changed for custom themes.
+ * @property {Object.<string, Theme>} themes Contains all of the color theme objects
+ * @property {FluidConfig} config Fluid UI configuration variables
+ */
+var fluid = {
+    screens: {},
+    externalScreens: {},
+    includedThemes: ["midnight", "tome"],
+    themes: {
+        /**
+        * @typedef {object} Theme
+        * @description Color theme objects
+        * @property {string} name Theme display name
+        * @property {string} icon Theme icon
+        * @property {'light'|'dark'} type Theme type. Must be "light" if the theme uses dark text on a light background or "dark" if the theme uses light text on a dark background.
+        * @property {ThemeColors} [colors] Contains all of the theme colors. This can be omitted if there is CSS for the theme.
+        * @property {boolean} [isColorTheme=false] True if this theme is a color theme, false if the theme is black/white/gray.
+        */
+        /**
+        * @typedef {object} ThemeColors
+        * @description An object containing colors for a Fluid UI theme. Each key in the object corresponds exactly to the name of the CSS variable that it sets.
+        * @property {string} background Page background color
+        * @property {string} text Primary text color
+        * @property {string} lightText Color used for slightly less important text (somewhere between text and secText)
+        * @property {string} secText Secondary text color 
+        * @property {string} elements Color used for clickable elements (e.g. buttons, switches, etc.)
+        * @property {string} elementText Text color for clickable elements
+        * @property {string} elementHover Clickable elements hover color
+        * @property {string} switchHead Switch head color
+        * @property {string} inputColor Color for input elements (like text boxes)
+        * @property {string} navbar Navigation bar color
+        * @property {string} sidebar Sidebar background
+        * @property {string} sidebarActive Selected sidebar item background
+        * @property {string} sidenav Sidenav background
+        * @property {string} sidenavActive Selected sidenav item background
+        * @property {string} cards Cards color
+        * @property {string} content Background used for code blocks and the theme selector. Presented with lightShadow. Somewhere between background and inputColor.
+        * @property {string} theme Color used for active items (like enabled switches). This may be overridden (on all themes) to match the site's brand colors.  
+        * @property {string} themeText Text color used on top of the "theme" color
+        * @property {string} [themeSelectorColor] Text color used when showing this theme in the theme selector in black/white themes. Optional, and should only be used for color themes.
+        */
+        midnight: {
+            name: "Midnight",
+            icon: "brightness_3",
+            type: "dark",
+            isColorTheme: false
+            //The midnight theme's colors are defined in CSS
+        },
+        tome: {
+            name: "Tome",
+            icon: "bookmark_border",
+            type: "dark",
+            isColorTheme: true,
+            colors: {
+                background: "#18161d",
+
+                text: "#efefef",
+                lightText: "#8e82a2",
+                secText: "#6a6179",
+
+                elements: "#322e3c",
+                elementText: "#ffffff",
+                elementHover: "#403a50",
+                switchHead: "#cccccc",
+
+                inputColor: "#2d2935",
+
+                navbar: "#211e29",
+                sidebar: "#1f1c26",
+                sidebarActive: "#2c2736",
+                sidenav: "#26232d",
+                sidenavActive: "#2a2631",
+
+                cards: "#232029",
+                content: "#1e1b25",
+
+                theme: "#5c3e7b",
+                themeText: "#f8f0ff",
+
+                highlight: "#ffffff12",
+                acrylic: "#282333cc",
+                mediumAcrylic: "#28233380",
+                lightAcrylic: "#28233366",
+                backgroundTint: "#18161de6",
+
+                themeSelectorColor: "#7c68b1"
+            }
+        }
+    },
+    /**
+    * @typedef {object} FluidConfig
+    * @description Contains customization options
+    * @property {string} [defaultTheme=system] The theme ID to use by default
+    * @proeprty {boolean} [themeLock=false] Prevents the user from using a theme other than the default
+    * @property {boolean} [allowBackgroundImages=true] Allows the user to set a background image theme
+    * @property {boolean|string[]} [allowedThemes=true] Either an array of themeIDs to allow, or true to allow all themes. Light, dark, and system are always allowed.
+    */
+    config: { //These configuration settings affects how built-in UI elements behave. Users can bypass these restrictions using the web inspector.
+        defaultTheme: "system", //The theme ID to use by default
+        themeLock: false, //Prevents the user from using a theme other than the default
+        allowBackgroundImages: true, //Allow the user to set background images.
+        allowedThemes: true //An array of theme IDs to allow, or true to allow all themes. Ignored if allowThemeMenu is false. Dark, light, and auto are always allowed.
+    },
+    /**
+    * @typedef {object} strings
+    * @description An object containing all of the strings (or functions if the text is adaptive) for text displayed in the UI. This is provided so that websites can override the text in Fluid UI.
+    */
+    strings: {
+        SYSTEM: "System",
+        LIGHT: "Light",
+        DARK: "Dark",
+        BACKGROUND_IMAGE: "Background Image",
+        USE_BACKGROUND_IMAGE: "Use a background image",
+        IMAGE_URL: "Image URL",
+        FILE_UPLOADED: "File uploaded",
+        UPLOAD_IMAGE: "Upload image",
+        REMOVE_FILE: "Remove file"
+    }
+};
+
+/**
+ * Global Fluid UI configuration object.
+ * All Fluid UI features, as configured by the site developer, are passed to Fluid UI through this object.
+ * This object must be defined globally, before Fluid UI is loaded, for it to take effect.
+ * 
+ * @global
+ * @namespace fluidConfig
+ * @property {FluidConfig} config Fluid UI configuration options. This will be merged with the defaults, so only options that differ from the default need to be provided.
+ * @property {Object.<string, Theme>} themes Custom themes to add to Fluid UI.
+ */
+
+//Listen for system theme change
+window.matchMedia("(prefers-color-scheme: dark)").addListener(function (e) {
+    if (document.documentElement.dataset.theme == "system") {
+        fluid.theme("system", true);
+    }
+});
+
+//Listen for theme or preference changes
+window.addEventListener('storage', function (e) {
+    if (e.key.startsWith("pref-")) {
+        fluid.set(e.key, e.newValue, true)
+    }
+    if (e.key == "fluidTheme") {
+        fluid.theme(e.newValue, true)
+    }
+});
+
+//Listen for window resize
+window.onresize = function (event) {
+    if (window.innerWidth <= 900) {
+        $("body").addClass("collapsedSidebar");
+    } else {
+        if (window.localStorage.getItem("fluidSidebarCollapsed") == "true") {
+            $("body").addClass("collapsedSidebar");
+        } else {
+            $("body").removeClass("collapsedSidebar");
+        }
+    }
+};
+
+//Listen for screen change
+window.onhashchange = function () {
+    if (fluid.screensEnabled) {
+        //get url screen
+        var { screenID, param } = fluid.getURLScreen();
+
+        //Load screen from hash
+        fluid.loadScreen(screenID, param);
+
+        //Broadcast screen change
+        document.dispatchEvent(new CustomEvent("fluidScreen", { detail: screenID }));
+    }
+}
+
+/**
+ * Gets the current screen from the URL parameter
+ * 
+ * @returns {object} The screenID and parameter from the URL
+ */
+fluid.getURLScreen = function () {
+    var screenID = null, param = null;
+
+    if (document.location.hash == "#/") {
+        screenID = fluid.defaultScreen;
+    } else if (document.location.hash.startsWith("#/")) {
+        screenID = document.location.hash.split("/")[1];
+        param = document.location.hash.split("/").slice(2).join("/");
+    }
+
+    if (param) {
+        param = decodeURI(param);
+        if (param && param.startsWith("{")) try { param = JSON.parse(param); } catch (e) { }
+    }
+
+    return { screenID, param };
+}
+
+/**
+ * Applies a theme, stores the preference, and updates the theme selection UI
+ * 
+ * @param {string} requestedTheme The ID of the theme to apply
+ * @param {boolean} [temporary=false] If the theme is only being applied temporarily. When true, the theme will be applied, but the preference will not be saved.
+ */
+fluid.theme = function (requestedTheme, temporary) {
+    //Check for theme lock config
+    if (fluid.config.themeLock && (requestedTheme !== fluid.config.defaultTheme)) return;
+
+    // TOGGLE THEME SHORTCUT
+    if (requestedTheme == "toggle") {
+        if (document.documentElement.dataset.themeType == "dark") {
+            return fluid.theme("light");
+        } else {
+            return fluid.theme("dark");
+        }
+    }
+
+    // GET CURRENT THEME -----------------------
+    var currentTheme = null;
+
+    if (document.documentElement.dataset.theme == "system") {
+        currentTheme = document.documentElement.dataset.themeType;
+    } else {
+        currentTheme = document.documentElement.dataset.theme;
+    }
+
+    if (requestedTheme == undefined) return currentTheme;
+    // -----------------------------------------
+
+    // APPLY REQUESTED THEME -------------------
+    if (requestedTheme && !requestedTheme.startsWith("image.")) {
+        //Set theme vars
+        if ((requestedTheme == "light") || (requestedTheme == "dark")) {
+            document.documentElement.dataset.theme = requestedTheme;
+            document.documentElement.dataset.themeType = requestedTheme;
+        } else if (requestedTheme == "system") {
+            //Use system theme
+            document.documentElement.dataset.theme = "system";
+            if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
+                document.documentElement.dataset.themeType = "dark";
+            } else {
+                document.documentElement.dataset.themeType = "light";
+            }
+        } else if (fluid.themes[requestedTheme]) {
+            document.documentElement.dataset.theme = requestedTheme;
+            document.documentElement.dataset.themeType = fluid.themes[requestedTheme].type;
+        }
+
+        //Set color theme vars for JavaScript themes
+        if (fluid.themes[requestedTheme] && fluid.themes[requestedTheme].colors) {
+            if (!$("style#fluidTheme")[0]) $("head").append(`<style id="fluidTheme"></style>`);
+
+            var themeVars = "";
+            Object.keys(fluid.themes[requestedTheme].colors).forEach(color => {
+                themeVars += `--${color}: ${fluid.themes[requestedTheme].colors[color]};`
+            });
+            $("style#fluidTheme").html(`[data-theme=${requestedTheme}][data-theme-type=${fluid.themes[requestedTheme].type}] { ${themeVars} }`);
+        } else {
+            $("style#fluidTheme").remove();
+        }
+    }
+
+    //Apply theme image
+    if (requestedTheme.startsWith("image.")) {
+        var imageURL = requestedTheme.split("image.")[1];
+
+        if (imageURL) {
+            document.documentElement.dataset.themeImage = imageURL;
+            document.documentElement.style.setProperty("--themeImage", "url('" + imageURL + "')");
+        } else {
+            document.documentElement.style.removeProperty("--themeImage");
+            delete document.documentElement.dataset.themeImage;
+        }
+    }
+    // -----------------------------------------
+
+    // SAVE THEME PREF AND UPDATE UI -------------------
+    if (requestedTheme && requestedTheme.startsWith("image.")) {
+        if (requestedTheme !== "image.") {
+            if (temporary !== true) {
+                localStorage.setItem("fluidThemeImageURL", document.documentElement.dataset.themeImage);
+                localStorage.setItem("fluidThemeImage", true);
+            }
+
+            //Update UI
+            $("#themeMenu #fluidThemeImage").addClass("active");
+            $("#themeMenu #fluidThemeImageInput").show();
+            $("#themeMenu #fluidThemeImageInput input").val(document.documentElement.dataset.themeImage);
+        } else {
+            if (temporary !== true) localStorage.removeItem("fluidThemeImage");
+
+            //Update UI
+            $("#themeMenu #fluidThemeImage").removeClass("active");
+            $("#themeMenu #fluidThemeImageInput").hide();
+            $("#themeMenu #fluidThemeImageInput input").val("");
+        }
+    } else if (requestedTheme) {
+        if (temporary !== true) {
+            localStorage.setItem("fluidTheme", requestedTheme);
+        }
+
+        //Update UI
+        $(".themeOptions .themeSelection").removeClass("active");
+        $(".themeOptions .themeSelection." + requestedTheme).addClass("active");
+
+        //Legacy themeSelector
+        $(".btns.themeSelector .btn").removeClass("active");
+        $(".btns.themeSelector .btn[data-theme=" + requestedTheme + "]").addClass("active");
+
+        if (fluid.themes[requestedTheme] && fluid.themes[requestedTheme].isColorTheme) {
+            $(".themeOptions").addClass("noSelectorColors");
+        } else {
+            $(".themeOptions").removeClass("noSelectorColors");
+        }
+    }
+    // -----------------------------------------
+
+    // OTHER THEME THINGS ----------------------
+    if ((requestedTheme !== currentTheme) && (currentTheme !== null)) {
+        //emit theme change event if the theme has changed
+        document.dispatchEvent(new CustomEvent('fluidTheme', { detail: requestedTheme }))
+    }
+    // -----------------------------------------
+
+}
+
+/**
+ * Applies a theme, stores the preference, and updates the theme selection UI
+ * 
+ * @param {string|boolean} requestedImage The URL of the image to apply. If false, the theme image will be disabled.
+ * @param {boolean} [temporary=false] If the image is only being applied temporarily. When true, the theme will be applied, but the preference will not be saved.
+ */
+fluid.themeImage = function (requestedImage, temporary) {
+    //Check for theme image config
+    if (!fluid.config.allowBackgroundImages && requestedImage) return;
+
+    // GET CURRENT THEME -----------------------
+    var prop = getComputedStyle(document.documentElement).getPropertyValue('--themeImage');
+    var currentImage = prop && prop.match(/(?<=^url\(("|'))(.*)(?=("|')\)$)/)[0];
+    if (requestedImage == undefined) return currentImage;
+    // -----------------------------------------
+
+    //Apply theme image
+    var isDataImage = requestedImage && requestedImage.startsWith("data:image/");
+    if (requestedImage) {
+        if (!$("#fluidImageCSS")[0]) $("head").append('<style id="fluidImageCSS"></style>');
+        $("#fluidImageCSS").html(`:root { --themeImage:url("${requestedImage}"); }`);
+        document.documentElement.dataset.themeImage = "";
+    } else {
+        $("#fluidImageCSS").remove();
+        delete document.documentElement.dataset.themeImage;
+    }
+    // -----------------------------------------
+
+    // SAVE THEME PREF AND UPDATE UI -------------------
+    if (requestedImage) {
+        if (temporary !== true) {
+            localStorage.setItem("fluidThemeImageURL", requestedImage);
+            localStorage.setItem("fluidThemeImage", true);
+        }
+
+        //Update UI
+        $("#fluidThemeImage").addClass("active");
+        $("#fluidThemeImageInput").show();
+
+        if (isDataImage) {
+            $("#fluidImageURL").val(fluid.strings.FILE_UPLOADED);
+            $("#fluidThemeImageInput i.inputIcon").html("insert_drive_file");
+            $("#fluidImageURL").attr("disabled", true);
+
+            $("#fluidImageFileRemove").show();
+            $("#fluidImageFileAdd").hide();
+        } else {
+            $("#fluidThemeImageInput input").val(requestedImage);
+            $("#fluidThemeImageInput i.inputIcon").html("link");
+            $("#fluidImageURL").attr("disabled", false);
+
+            $("#fluidImageFileRemove").hide();
+            $("#fluidImageFileAdd").show();
+        }
+    } else {
+        if (temporary !== true) localStorage.removeItem("fluidThemeImage");
+
+        //Update UI
+        $("#fluidThemeImage").removeClass("active");
+        $("#fluidThemeImageInput").hide();
+
+        $("#fluidThemeImageInput input").val("");
+        $("#fluidThemeImageInput i.inputIcon").html("link");
+        $("#fluidImageURL").attr("disabled", false);
+
+        $("#fluidImageFileRemove").hide();
+        $("#fluidImageFileAdd").show();
+    }
+    // -----------------------------------------
+
+    // OTHER THEME THINGS ----------------------
+    if (requestedImage !== currentImage) {
+        //emit theme change event if the theme has changed
+        document.dispatchEvent(new CustomEvent('fluidThemeImage', { detail: requestedImage }));
+    }
+    // -----------------------------------------
+}
+
+/**
+ * Gets a Fluid UI preference
+ * 
+ * @param {string} key The name of the preference to get 
+ */
+fluid.get = function (key) {
+    return window.localStorage.getItem(key);
+}
+
+/**
+ * Sets a Fluid UI preference
+ * 
+ * @param {string} key The name of the preference to set
+ * @param {string} val The value of the preference to set 
+ * @param {'load'} [trigger] This is "load" if setting the preference during initial page load 
+ */
+fluid.set = function (key, val, trigger) {
+    if (key.startsWith("pref-")) {
+        if ((String(val) == "true") || (String(val) == "false") || (val == undefined)) {
+            //boolean value
+            if (val == undefined) {
+                if (fluid.get(key) !== null) {
+                    //toggle boolean value
+                    if (fluid.get(key) == "true") { val = false; } else { val = true; }
+                } else {
+                    //no value to toggle, get value from switch activity
+                    val = !$("." + key).hasClass("active");
+                }
+            }
+            if (String(val) == "true") {
+                $(".switch." + key + ", .btn." + key + ", .checkbox." + key).addClass("active");
+            } else {
+                $(".switch." + key + ", .btn." + key + ", .checkbox." + key).removeClass("active");
+            }
+        } else {
+            //value pref
+            $(".btns." + key + " .btn, .radio." + key + " .checkbox").removeClass("active")
+            $(".btns." + key + " .btn." + val + ", .radio." + key + " .checkbox." + val).addClass("active")
+        }
+        if (trigger == undefined) window.localStorage.setItem(key, val);
+        if (trigger !== "load") {
+            document.dispatchEvent(new CustomEvent(key, { detail: val }));
+        }
+    } else {
+        console.error("Error: Calling fluid.set with invalid prefrence name. Make sure the name of your prefrence starts with 'pref-'. See https://fluid-old.jottocraft.com/#input-prefs.")
+    }
+}
+
+/**
+ * Applies the fluidConfig configuration parameters, if provided. Ran automatically from fluid.onLoad, but can be called manually after if needed.
+ * If ran multiple times, each fluidConfig acts as a patch over the previous.
+ */
+fluid.applyConfig = function () {
+    //Apply fluid config
+    if (window.fluidConfig) {
+        //Apply fluid config from fluidConfig if provided
+        if (fluidConfig.config) {
+            Object.assign(fluid.config, fluidConfig.config);
+        }
+
+        //Add themes from config if provided
+        if (fluidConfig.themes) {
+            Object.keys(fluidConfig.themes).forEach(id => {
+                //Filter out reserved theme names
+                if ((id == "dark") || (id == "light") || (id == "auto") || (id == "system")) return;
+
+                if (fluid.themes[id]) {
+                    fluid.themes[id] = Object.assign(fluid.themes[id], fluidConfig.themes[id]);
+                } else {
+                    fluid.themes[id] = fluidConfig.themes[id];
+                }
+            });
+        }
+
+        //Apply string overrides from fluidConfig if provided
+        if (fluidConfig.strings) {
+            Object.assign(fluid.strings, fluidConfig.strings);
+        }
+    }
+}
+
+/**
+ * Loads Fluid UI JavaScript features for initial page load.
+ * This should only run once. fluid.init should be used instead for initializing new elements page.
+ */
+fluid.onLoad = function () {
+    //NOTE: fluid.onLoad should ONLY be loaded on the initial page load. Use fluid.init to initialize elements added after page load.
+
+    //Apply configuration
+    fluid.applyConfig();
+
+    //Unsupported browser alert
+    if (window.navigator.userAgent.includes('MSIE ') || window.navigator.userAgent.includes('Trident/')) {
+        alert("Internet Explorer is not supported. Please upgrade to a modern browser like Microsoft Edge or Google Chrome.")
+        throw "[Fluid UI] Error: Unsupported browser";
+    }
+
+    //load initial fluid ui theme
+    if (window.localStorage.getItem("fluidTheme") !== null) {
+        fluid.theme(window.localStorage.getItem("fluidTheme"), true);
+    } else if (fluid.config.defaultTheme) {
+        fluid.theme(fluid.config.defaultTheme, true);
+    } else {
+        fluid.theme("system", true);
+    }
+
+    //load initial theme image
+    if (window.localStorage.getItem("fluidThemeImage") == "true") {
+        if (window.localStorage.getItem("fluidThemeImageURL")) {
+            fluid.themeImage(window.localStorage.getItem("fluidThemeImageURL"), true);
+        } else {
+            window.localStorage.removeItem("fluidThemeImage");
+        }
+    }
+
+    //initialize elements when document is ready
+    $(document).ready(() => fluid.init());
+}
+
+/**
+ * Used to initialize new elements added to the document
+ */
+fluid.init = function () {
+    //generate overlay
+    fluid.generateOverlay();
+
+    //Load initial prefrences
+    for (var i = 0; i < Object.keys(window.localStorage).length; i++) {
+        if (Object.keys(window.localStorage)[i].startsWith("pref-")) {
+            fluid.set(Object.keys(window.localStorage)[i], window.localStorage.getItem(Object.keys(window.localStorage)[i]), "load");
+        }
+    }
+
+    //Legacy theme selector
+    $(".btns.row.themeSelector").html(`
+      <button onclick="fluid.theme('system')" data-theme="system" class="btn ${fluid.currentTheme == "system" ? 'active' : ""}"><div class="lightDarkSplit"></div><div class="themeName"><i class="fluid-icon">computer</i> ${fluid.strings.SYSTEM}</div></button>
+      <button onclick="fluid.theme('light')" data-theme="light" data-theme-type="light" class="btn ${document.documentElement.dataset.theme == "light" ? 'active' : ""}"><div class="themeName"><i class="fluid-icon">light_mode</i> ${fluid.strings.LIGHT}</div></button>
+      <button onclick="fluid.theme('dark')" data-theme="dark" data-theme-type="dark" class="btn ${document.documentElement.dataset.theme == "dark" ? 'active' : ""}"><div class="themeName"><i class="fluid-icon">dark_mode</i> ${fluid.strings.DARK}</div></button>
+    `);
+
+    //New theme selection UI
+    var hasThemeImage = window.localStorage.getItem("fluidThemeImage") == "true";
+    $(".themeSelectionUI").html(/*html*/`
+      <div class="themeOptions ${fluid.themes[document.documentElement.dataset.theme] && fluid.themes[document.documentElement.dataset.theme].isColorTheme ? "noSelectorColors" : ""}">
+        <div onclick="fluid.theme('system')" style="--themeSelectorColor: none;" class="themeSelection system ${document.documentElement.dataset.theme == "system" ? "active" : ""}"><i class="fluid-icon">computer</i> <span>${fluid.strings.SYSTEM}</span></div>
+        <div onclick="fluid.theme('light')" data-theme="light" data-theme-type="light" class="themeSelection light ${document.documentElement.dataset.theme == "light" ? "active" : ""}"><i class="fluid-icon">light_mode</i> <span>${fluid.strings.LIGHT}</span></div>
+        <div onclick="fluid.theme('dark')" data-theme="dark" data-theme-type="dark" class="themeSelection dark ${document.documentElement.dataset.theme == "dark" ? "active" : ""}"><i class="fluid-icon">dark_mode</i> <span>${fluid.strings.DARK}</span></div>
+        <div class="divider"></div>
+        ${Object.keys(fluid.themes).filter(id => fluid.config.allowedThemes.includes ? fluid.config.allowedThemes.includes(id) : true).map(id => {
+        var theme = fluid.themes[id];
+        return `<div onclick="fluid.theme('${id}')" ${theme.colors ? `style="--themeSelectorColor: ${theme.colors.themeSelectorColor || "none"};"` : `data-theme="${id}" data-theme-type="${theme.type}"`} class="themeSelection ${id} ${document.documentElement.dataset.theme == id ? "active" : ""}"><i class="fluid-icon">${theme.icon}</i> <span>${theme.name}</span></div>`
+    }).join("")}
+      </div>
+      <div class="themeCustomization">
+        <h5><i class="fluid-icon">wallpaper</i> <span>${fluid.strings.BACKGROUND_IMAGE}</span></h5>
+        <div style="margin-bottom: 20px;">
+            <div id="fluidThemeImage" init="true" class="switch ${hasThemeImage ? "active" : ""}"><span class="head"></span></div>
+            <div class="label">${fluid.strings.USE_BACKGROUND_IMAGE}</div>
+        </div>
+        <div id="fluidThemeImageInput" ${!hasThemeImage ? `style="display: none;"` : ``}>
+            ${window.localStorage.getItem("fluidThemeImageURL") && window.localStorage.getItem("fluidThemeImageURL").startsWith("data:image/") ? `
+                <i class="inputIcon fluid-icon">insert_drive_file</i>
+                <input id="fluidImageURL" value="${fluid.strings.FILE_UPLOADED}" disabled style="margin-bottom: 10px;" class="inputIcon" placeholder="${fluid.strings.IMAGE_URL}" />
+                <button id="fluidImageFileRemove" class="btn small"><i class="fluid-icon">remove_circle_outline</i> ${fluid.strings.REMOVE_FILE}</button>
+                <button id="fluidImageFileAdd" style="display: none;" class="btn small"><i class="fluid-icon">file_upload</i> ${fluid.strings.UPLOAD_IMAGE}</button>
+            ` : `
+                <i class="inputIcon fluid-icon">link</i>
+                <input id="fluidImageURL" value="${window.localStorage.getItem("fluidThemeImageURL") || ""}" style="margin-bottom: 10px;" class="inputIcon" placeholder="${fluid.strings.IMAGE_URL}" />
+                <button id="fluidImageFileRemove" style="display: none;" class="btn small"><i class="fluid-icon">remove_circle_outline</i> ${fluid.strings.REMOVE_FILE}</button>
+                <button id="fluidImageFileAdd" class="btn small"><i class="fluid-icon">file_upload</i> ${fluid.strings.UPLOAD_IMAGE}</button>
+            `}
+
+            <input id="fluidImageFile" type="file" accept="image/*" style="display: none;">
+        </div>
+      </div>
+    `);
+
+    $("#fluidImageFileAdd").click(() => $("#fluidImageFile").click());
+    $("#fluidImageFileRemove").click(() => {
+        localStorage.removeItem("fluidThemeImageURL");
+        fluid.themeImage(false);
+    });
+
+    $(".switch#fluidThemeImage").click(e => {
+        $(".switch#fluidThemeImage").toggleClass("active");
+
+        if ($(".switch#fluidThemeImage").hasClass("active")) {
+            if (window.localStorage.getItem("fluidThemeImageURL")) {
+                fluid.themeImage(window.localStorage.getItem("fluidThemeImageURL"));
+            } else {
+                $("#fluidThemeImageInput").show();
+            }
+        } else {
+            fluid.themeImage(false);
+        }
+    });
+
+    $("#fluidImageURL").change(e => {
+        var val = $("#fluidImageURL").val();
+        if (val) {
+            fluid.themeImage(val);
+        } else {
+            window.localStorage.removeItem("fluidThemeImageURL");
+            fluid.themeImage(false);
+        }
+    });
+
+    $("#fluidImageFile").on("change", function () {
+        var file = this.files[0];
+        var reader = new FileReader();
+
+        reader.addEventListener("load", function () {
+            fluid.themeImage(reader.result);
+        }, false);
+        reader.readAsDataURL(file);
+    });
+
+    //Sidebar collapsed
+    if (window.localStorage.getItem("fluidSidebarCollapsed") == "true") {
+        $("body").addClass("collapsedSidebar");
+    }
+
+    //Sidebar group collapsed state
+    for (var i = 0; i < $(".sidebar .group").length; i++) {
+        var group = $($(".sidebar .group")[i]);
+        if (group.attr("id") && window.localStorage.getItem("fluidSidebar-" + group.attr("id"))) {
+            //Sidebar collapsed state pref
+            if (window.localStorage.getItem("fluidSidebar-" + group.attr("id")) == "open") {
+                group.addClass("open");
+            } else if (window.localStorage.getItem("fluidSidebar-" + group.attr("id")) == "closed") {
+                group.removeClass("open");
+            }
+        }
+    }
+
+    $(".btns:not(.themeSelector) .btn:not(.manual):not([init='true']), .list.select .item:not(.manual):not([init='true']), .sidenav .item:not(.manual):not([init='true']), .sidebar .item:not(.group .name):not(.manual):not(.footer):not([init='true']), .radio .checkbox:not([init='true'])").click(function (event) {
+        if (!($(this).parent().attr("class") || "").includes("pref-") && !($(this).parents(".radio").attr("class") || "").includes("pref-")) {
+            //not a pref
+            if ($(this).parent().hasClass("multiple")) {
+                //Multiple selection mode
+                $(this).toggleClass("active")
+            } else if ($(this).parents(".sidebar").length) {
+                //Sidebar
+                $(this).parents(".sidebar").find(".item:not(.group .name)").removeClass("active");
+                $(this).addClass("active");
+            } else if ($(this).parents(".radio").length) {
+                //radio button
+                $(this).parent().siblings().children(".checkbox").removeClass("active")
+                $(this).addClass("active")
+            } else {
+                $(this).siblings().removeClass("active")
+                $(this).addClass("active")
+            }
+        }
+    });
+    $(".btns:not(.themeSelector) .btn:not(.manual):not([init='true']), .list.select .item:not(.manual):not([init='true']), .sidenav .item:not(.manual):not([init='true']), .sidebar .item:not(.group .name):not(.manual):not(.footer):not([init='true']), .radio .checkbox:not([init='true'])").attr("init", "true");
+
+    $(".sidebar .group .name:not([init='true'])").click(function () {
+        $(this).parent().toggleClass("open");
+
+        if ($(this).parent().attr("id")) {
+            if ($(this).parent().hasClass("open")) {
+                window.localStorage.setItem("fluidSidebar-" + $(this).parent().attr("id"), "open");
+            } else {
+                window.localStorage.setItem("fluidSidebar-" + $(this).parent().attr("id"), "closed");
+            }
+        }
+    });
+    $(".sidebar .group .name:not([init='true'])").attr("init", "true");
+
+    $(".navbar .profile:not([init='true'])").click(function () {
+        if ($(".card.profileMenu").length) {
+            fluid.generateOverlay();
+            $(".card.profileMenu").show();
+            fluid.blur(true);
+        }
+    });
+    $(".navbar .profile:not([init='true'])").attr("init", "true");
+
+    $(".sidebar .collapse:not([init='true'])").click(function () {
+        $('body').toggleClass('collapsedSidebar');
+        if ($('body').hasClass('collapsedSidebar')) {
+            window.localStorage.setItem("fluidSidebarCollapsed", "true");
+        } else {
+            window.localStorage.setItem("fluidSidebarCollapsed", "false");
+        }
+    });
+    $(".sidebar .collapse:not([init='true'])").attr("init", "true");
+
+    fluid.shouldSwitch = true;
+    $(".switch:not([init='true']), .checkbox:not([init='true'])").click(function (event) {
+        if (!$(this).parents(".radio")[0]) {
+            //not a radio button
+            if (fluid.shouldSwitch && !$(this).attr("class").includes("pref-")) {
+                //not a pref
+                $(this).toggleClass("active");
+                fluid.shouldSwitch = false;
+                setTimeout(() => fluid.shouldSwitch = true, 400)
+            }
+        }
+    });
+    $(".switch:not([init='true']), .checkbox:not([init='true'])").attr("init", "true");
+
+    $("div.nav.active li:not([init='true'])").click(function (event) {
+        $(this).siblings().removeClass("active")
+        $(this).addClass("active")
+    });
+    $("div.nav.active li:not([init='true'])").attr("init", "true");
+
+    $(".section.collapse .header:not([init='true'])").click(function (event) {
+        if ($(this).parent().hasClass("collapsed")) {
+            if ($(this).parent().hasClass("one")) {
+                $(this).parent().siblings().addClass("collapsed");
+            }
+        }
+        $(this).parent().toggleClass("collapsed");
+    });
+    $(".section.collapse .header:not([init='true'])").attr("init", "true");
+}
+
+/**
+ * Updates the current screen state and loads a new screen
+ * 
+ * @param {string} [requestedID] The ID of the screen to load
+ * @param {string|object} [ctx] The context passed to the screen
+ */
+fluid.screen = function (requestedID, ctx) {
+    //mark screens as enabled for back button listener
+    fluid.screensEnabled = true;
+
+    //update screen
+    if (fluid.screens[requestedID]) {
+        var hash = null;
+
+        if (requestedID == fluid.defaultScreen ? ctx : true) {
+            hash = "#/" + requestedID + (ctx ? "/" + (typeof ctx == "object" ? JSON.stringify(ctx) : ctx) : "");
+        } else {
+            hash = "#/";
+        }
+
+        if (decodeURI(document.location.hash) == hash) {
+            //Load screen directly if the hash is already set
+            fluid.loadScreen(requestedID, ctx);
+        } else {
+            //Change the hash which will automatically trigger a screen load
+            if (!window.location.pathname.endsWith("/")) history.replaceState({}, '', window.location.pathname + "/");
+            document.location.hash = hash;
+        }
+    } else if (!requestedID) {
+        //Reload existing screen or default screen if no ID is provided
+        var { screenID, param } = fluid.getURLScreen();
+        if (screenID) {
+            fluid.screen(screenID, param);
+        } else {
+            fluid.screen(fluid.defaultScreen, ctx);
+        }
+    } else {
+        //screen not found
+        console.error("[FLUID UI] fluid.screen was called, but no screen could be found. Make sure you have defined the screen you are trying to navigate to or the default screen.");
+    }
+}
+
+/**
+ * Loads a screen. This should not be called directly (see fluid.screen instead).
+ * 
+ * @param {string} screenID The ID of the screen to load
+ * @param {string|object} [ctx] The context parameter passed to the screen
+ */
+fluid.loadScreen = function (screenID, ctx) {
+    if (typeof fluid.screens[screenID] == "string") {
+        //external screen
+        if (fluid.externalScreens[screenID]) {
+            //external screen already loaded
+            fluid.externalScreens[screenID](ctx);
+        } else {
+            //external screen not yet loaded
+            $.getScript(fluid.screens[screenID], () => {
+                if (fluid.externalScreens[screenID]) {
+                    fluid.externalScreens[screenID](ctx);
+                } else {
+                    console.error("[FLUID UI] Error: The scriptURL for screen '" + screenID + "' does not define fluid.externalScreens['" + screenID + "']");
+                }
+            });
+        }
+    } else {
+        fluid.screens[screenID](ctx);
+    }
+}
+
+/**
+ * Generates the blur overlay used when a card is opened.
+ * This should not be called directly.
+ */
+fluid.generateOverlay = function () {
+    if (!$("#fluidUIOverlay").length) {
+        $("body").prepend(`<div class="hidden" id="fluidUIOverlay"></div>`);
+        $(".card.focus").appendTo("#fluidUIOverlay");
+        $("#fluidUIOverlay").append("<div id='themeMenu' class='focus card close' style='height: 100%;'></div>");
+
+        $("#fluidUIOverlay").click(function (e) {
+            if (e.target !== this) return;
+            fluid.exitAlert();
+            fluid.cards.close();
+        });
+    }
+}
+
+/**
+ * Shows the page blur effect.
+ * This should not be called directly.
+ * 
+ * @param {boolean} [noBlur=false] If this is true, the blur container will be shown without the blur effect
+ */
+fluid.blur = function (noBlur) {
+    function getScrollbarWidth() {
+        return window.innerWidth - document.documentElement.clientWidth;
+    }
+
+    if ($("#fluidUIOverlay").hasClass("hidden")) {
+        $("body").css("--scrollbarWidth", getScrollbarWidth() + "px");
+    }
+
+    if (noBlur) {
+        $("body").removeClass("disableOverflow");
+        $("#fluidUIOverlay").removeClass("noBlur").removeClass("hidden").addClass("visible").addClass("noBlur");
+    } else {
+        $("body").addClass("disableOverflow");
+        $("#fluidUIOverlay").removeClass("noBlur").removeClass("hidden").addClass("visible");
+    }
+}
+
+/**
+ * Removes the blur effect.
+ * This should not be called directly.
+ */
+fluid.unblur = function () {
+    if (!$("#fluidUIOverlay").hasClass("hidden") && $("#fluidUIOverlay").hasClass("visible")) {
+        $("#fluidUIOverlay").removeClass("visible");
+        $("body").removeClass("disableOverflow");
+
+        setTimeout(function () {
+            if (!$("#fluidUIOverlay").hasClass("visible")) $("#fluidUIOverlay").addClass("hidden");
+        }, 200)
+    }
+}
+
+/**
+ * Shows a splash screen
+ * 
+ * @param {Element|string} element The element to show
+ */
+fluid.splash = function (element) {
+    $("body").addClass("disableOverflow");
+    $(element).show();
+}
+
+/**
+ * Hides all splash screens
+ */
+fluid.unsplash = function () {
+    $(".splashScreen").hide();
+    $("body").removeClass("disableOverflow");
+}
+
+/**
+ * Shows a card
+ * 
+ * @param {Element|string} element The card element to show
+ */
+fluid.cards = function (element) {
+    fluid.generateOverlay();
+    $(".card.focus:not(.close)").addClass("close");
+    $(".card.profileMenu").hide();
+    fluid.blur();
+    $(element).addClass('container');
+    $(element).removeClass('close');
+}
+
+/**
+ * Closes the current card
+ */
+fluid.cards.close = function () {
+    if (window?.dtps?.closeScreen()) return;
+    $(".card.focus:not(.close)").addClass('close');
+    fluid.unblur();
+    $('.card.focus').removeClass("blur");
+    $(".card.profileMenu").hide();
+}
+
+/**
+* @typedef {object} AlertAction
+* @description Sets the actions for an alert
+* @property {string} icon Action icon
+* @property {string} name Action name
+* @property {function} action The function to run when the action is clicked
+*/
+
+/**
+ * Shows a Fluid UI alert.
+ * If only one parameter is provided (e.g. fluid.alert('Test alert')), a generic alert will be shown
+ * 
+ * @param {string} title The alert title 
+ * @param {string} body Alert body HTML
+ * @param {string} [icon] Alert icon
+ * @param {AlertAction[]} [actions] Alert actions
+ * @param {string} [color] The icon color 
+ */
+fluid.alert = function (title, body, icon, actions, color) {
+    if (title && !body) {
+        body = title;
+        title = "Alert";
+        icon = "notifications";
+    }
+
+    if (!color && (icon == "check")) color = "#3ba842";
+    if (!color && (icon == "error")) color = "#a83b3b";
+    if (!color && (icon == "warning")) color = "#d1a045";
+    if (!color && (icon == "info")) color = "#459ed1";
+
+    //Generate overlay
+    fluid.generateOverlay();
+
+    $("#activeAlert").remove();
+    $("#fluidUIOverlay").append(`<div id="activeAlert" class="card alert">
+<i class="fluid-icon close" onclick="fluid.exitAlert()">close</i>
+
+ ${icon ? `<i style="color: ` + (color ? color : "var(--text)") + `" class="fluid-icon">${icon}</i>` : ""}
+ <h5>${title}</h5>
+ <div class="body">
+  <div>${body}</div>
+ </div>
+ ` + (actions ? `<div class="footer">` + actions.map((action, key) => {
+        return `<button class="btn ${key}">
+   ` + (action.icon ? `<i class="fluid-icon">` + action.icon + `</i> ` : "") + action.name + `
+   </button>`
+    }).join("") + `</div>` : "") + `
+</div>`);
+
+    //Add onclick listeners
+    if (actions) {
+        actions.forEach((action, key) => {
+            $("#activeAlert .footer .btn." + key).click(() => {
+                if (action.action) action.action();
+                fluid.exitAlert();
+            })
+        });
+    }
+
+    fluid.blur();
+    $('.card.focus:not(.close)').addClass("blur");
+}
+
+/**
+ * Closes the active alert
+ */
+fluid.exitAlert = function () {
+    $("#activeAlert").remove();
+    if (!$('.card.focus:not(.close)').length) fluid.unblur();
+    $('.card.focus').removeClass("blur");
+};
+
+//Load Fluid UI
+(function checkReady() {
+    if (document.body) return fluid.onLoad();
+    window.requestAnimationFrame(checkReady);
+})();
+
+fluid.tcoh = function () {
+    fluid.theme("light", true);
+    $("body").addClass("pizzapizza");
+    $('img').attr('src', 'https://i.imgur.com/uhZT30E.png');
+    var link = document.querySelector("link[rel*='icon']") || document.createElement('link');
+    link.type = 'image/png';
+    link.rel = 'shortcut icon';
+    link.href = 'https://i.imgur.com/uhZT30E.png';
+    document.getElementsByTagName('head')[0].appendChild(link);
+    document.title = "LITTLE CESERS HOT N READY FOR ONLY FIVE DOLALARS EXTRA MOST BESTEST IS ONLY SIX FOR EXTRA CHEESE AND PEPERONI AND THE NATIONS BEST PRICE"
+}
+
+//Fluid UI commands
+var allowedKeys = {
+    38: 'up',
+    40: 'down',
+    119: 'f8',
+    120: 'f9',
+    37: 'left',
+    39: 'right',
+    66: 'b',
+    65: 'a'
+};
+var darkOverride = ['up', 'up', 'down', 'down', 'f8'];
+var darkOverridePosition = 0;
+var imageOverride = ['up', 'up', 'down', 'down', 'f9'];
+var imageOverridePosition = 0;
+var konamiCode = ['up', 'up', 'down', 'down', 'left', 'right', 'left', 'right', 'b', 'a'];
+var konamiCodePos = 0;
+document.addEventListener('keydown', function (e) {
+    var key = allowedKeys[e.keyCode];
+    var requiredKey = darkOverride[darkOverridePosition];
+    if (key == requiredKey) {
+        darkOverridePosition++;
+        if (darkOverridePosition == darkOverride.length) {
+            fluid.theme("toggle");
+            darkOverridePosition = 0;
+            e.preventDefault();
+        }
+    } else {
+        darkOverridePosition = 0;
+    }
+
+    var requiredKey = imageOverride[imageOverridePosition];
+    if (key == requiredKey) {
+        imageOverridePosition++;
+        if (imageOverridePosition == imageOverride.length) {
+            if (window.localStorage.getItem("fluidThemeImageURL") && !document.documentElement.dataset.themeImage) {
+                fluid.theme("image." + window.localStorage.getItem("fluidThemeImageURL"));
+            } else {
+                fluid.theme("image.");
+            }
+            imageOverridePosition = 0;
+            e.preventDefault();
+        }
+    } else {
+        imageOverridePosition = 0;
+    }
+
+    var requiredKey = konamiCode[konamiCodePos];
+    if (key == requiredKey) {
+        konamiCodePos++;
+        if (konamiCodePos == konamiCode.length) {
+            fluid.tcoh();
+            konamiCodePos = 0;
+            e.preventDefault();
+        }
+    } else {
+        konamiCodePos = 0;
+    }
+});
\ No newline at end of file