:root {
    --white: #ffffff;
    --black: #000000;
    --grey: #ffffff;
    --yellow: #ffffff;
    --red: #ffffff;
    --blue: #ffffff;
    --green: #ffffff;
    --purple: #ffffff;
    --orange: #ffffff;
    --border-width: 2px;
    --border: var(--border-width) solid var(--black);
    --shadow-solid: 4px 4px 0px var(--black);
    --shadow-hover: 6px 6px 0px var(--black);
    --shadow-active: 0px 0px 0px var(--black);
    --radius-sm: 2px 5px 3px 4px / 4px 2px 5px 3px;
    --radius-md: 4px 8px 5px 6px / 6px 4px 8px 5px;
    --radius-lg: 6px 12px 8px 10px / 10px 8px 12px 6px;
    --bg-color: #ffffff;
    --wallpaper: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Architects Daughter', cursive;
    user-select: none;
}

::selection {
    background-color: #999999;
    color: #000000;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

::-moz-selection {
    background-color: #999999;
    color: #000000;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

html,
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--white);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    touch-action: manipulation;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M6,6 L8,28 L13,23 L18,32 L22,30 L16,21 L25,19 Z' fill='white' stroke='black' stroke-width='2.5' stroke-linejoin='round' stroke-linecap='round'/><path d='M5,5 L9,29 L12,24 L17,33 L23,31 L17,22 L26,20 Z' fill='none' stroke='black' stroke-width='1' stroke-linejoin='round' stroke-linecap='round'/><path d='M7,7 L7,27 L14,22 L19,31 L21,29 L15,20 L24,18 Z' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round' stroke-linecap='round'/></svg>") 6 6, default;
}

textarea,
input[type="text"],
.term-input,
.new-folder-input,
.browser-input {
    cursor: text !important;
    user-select: text !important;
    -webkit-user-select: text !important;
}

.term-output,
.term-output * {
    user-select: text !important;
    -webkit-user-select: text !important;
    cursor: text;
}

button,
.looney-btn,
.desktop-icon,
.taskbar-item,
#start-btn,
.folder,
.cal-day:not(.empty),
.cal-prev,
.cal-next,
.music-btn,
.settings-nav-item,
.drop-zone,
.context-item,
.calc-btn,
.color-btn,
.size-btn,
.browser-nav-btn,
.b-go,
.b-ext {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M16,16 V5 C16,3 19,3 19,5 V14 C20,13 22,13 23,14 C24,13 26,13 27,15 C28,14 30,15 30,17 V22 C30,27 26,31 21,31 C16,31 13,27 12,23 L9,20 C8,19 9,17 11,18 L14,20 Z' fill='white' stroke='black' stroke-width='2.5' stroke-linejoin='round' stroke-linecap='round'/><path d='M15,15 V4 C15,2 18,2 18,4 V13 C19,12 21,12 22,13 C23,12 25,12 26,14 C27,13 29,14 29,16 V21 C29,26 25,30 20,30 C15,30 12,26 11,22 L8,19 C7,18 8,16 10,17 L13,19 Z' fill='none' stroke='black' stroke-width='1' stroke-linejoin='round' stroke-linecap='round'/></svg>") 16 5, pointer !important;
}

.sketchy-slider::-webkit-slider-thumb {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M16,16 V5 C16,3 19,3 19,5 V14 C20,13 22,13 23,14 C24,13 26,13 27,15 C28,14 30,15 30,17 V22 C30,27 26,31 21,31 C16,31 13,27 12,23 L9,20 C8,19 9,17 11,18 L14,20 Z' fill='white' stroke='black' stroke-width='2.5' stroke-linejoin='round' stroke-linecap='round'/><path d='M15,15 V4 C15,2 18,2 18,4 V13 C19,12 21,12 22,13 C23,12 25,12 26,14 C27,13 29,14 29,16 V21 C29,26 25,30 20,30 C15,30 12,26 11,22 L8,19 C7,18 8,16 10,17 L13,19 Z' fill='none' stroke='black' stroke-width='1' stroke-linejoin='round' stroke-linecap='round'/></svg>") 16 5, pointer !important;
}

.sketchy-slider::-moz-range-thumb {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M16,16 V5 C16,3 19,3 19,5 V14 C20,13 22,13 23,14 C24,13 26,13 27,15 C28,14 30,15 30,17 V22 C30,27 26,31 21,31 C16,31 13,27 12,23 L9,20 C8,19 9,17 11,18 L14,20 Z' fill='white' stroke='black' stroke-width='2.5' stroke-linejoin='round' stroke-linecap='round'/><path d='M15,15 V4 C15,2 18,2 18,4 V13 C19,12 21,12 22,13 C23,12 25,12 26,14 C27,13 29,14 29,16 V21 C29,26 25,30 20,30 C15,30 12,26 11,22 L8,19 C7,18 8,16 10,17 L13,19 Z' fill='none' stroke='black' stroke-width='1' stroke-linejoin='round' stroke-linecap='round'/></svg>") 16 5, pointer !important;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--white);
    border-left: var(--border);
}

::-webkit-scrollbar-thumb {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--black);
}

#context-menu {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 0, 0, 0.7);
    border-radius: 15px 255px 10px 225px / 225px 10px 255px 15px;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
    padding: 5px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 100000;
    min-width: 150px;
}

.context-item {
    padding: 6px 10px;
    font-size: 0.95rem;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.85);
    border-radius: var(--radius-sm);
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.context-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--black);
    transform: translateX(3px);
}

.context-item svg {
    stroke: rgba(0, 0, 0, 0.85);
}

.context-item:hover svg {
    stroke: var(--black);
}

#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: smoothFadeUp 1s ease-out forwards;
}

.logo-mark {
    position: relative;
    width: 75px;
    height: 60px;
    margin-bottom: 10px;
}

.l-vert {
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 60px;
    background: var(--black);
    border-radius: 9px;
}

.l-horiz {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 18px;
    background: var(--black);
    border-radius: 9px;
}

.l-end {
    position: absolute;
    left: 32px;
    bottom: 0;
    width: 18px;
    height: 35px;
    background: var(--black);
    border-radius: 9px;
}

.l-dot {
    position: absolute;
    left: 60px;
    top: 12px;
    width: 15px;
    height: 15px;
    background: var(--black);
    border-radius: 50%;
}

.mini-logo {
    position: relative;
    width: 32px;
    height: 24px;
}

.mini-l-vert {
    position: absolute;
    left: 0;
    top: 0;
    width: 7px;
    height: 24px;
    background: var(--black);
    border-radius: 4px;
}

.mini-l-horiz {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 22px;
    height: 7px;
    background: var(--black);
    border-radius: 4px;
}

.mini-l-end {
    position: absolute;
    left: 15px;
    bottom: 0;
    width: 7px;
    height: 14px;
    background: var(--black);
    border-radius: 4px;
}

.mini-l-dot {
    position: absolute;
    left: 26px;
    top: 3px;
    width: 6px;
    height: 6px;
    background: var(--black);
    border-radius: 50%;
}

.logo-text {
    font-family: serif;
    font-size: 3.5rem;
    letter-spacing: 3px;
    color: var(--black);
    font-weight: bold;
}

@keyframes smoothFadeUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

#desktop {
    flex: 1;
    height: calc(100% - 63px);
    position: relative;
    background-color: var(--white);
    overflow: hidden;
    display: block;
    z-index: 1;
}

#desktop::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--wallpaper);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.9;
    pointer-events: none;
    filter: grayscale(100%) contrast(120%);
}

#desktop-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    padding: 1rem;
    height: 100%;
    align-content: start;
    position: relative;
    overflow-y: auto;
    padding-bottom: 30px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    z-index: 1;
}

.desktop-icon:hover {
    transform: scale(1.05) translateY(-5px);
}

.desktop-icon:active {
    transform: scale(0.95);
}

.desktop-icon .emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 2px solid var(--black);
    background-color: var(--white);
    margin-bottom: 5px;
    transition: transform 0.2s;
    box-shadow: 2px 2px 0px var(--black);
    pointer-events: none;
}

.desktop-icon:nth-child(1) .emoji {
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    transform: skewX(-3deg);
}

.desktop-icon:nth-child(2) .emoji {
    border-radius: 15px 255px 10px 225px / 225px 10px 255px 15px;
    transform: skewY(3deg);
}

.desktop-icon:nth-child(3) .emoji {
    border-radius: 225px 15px 255px 10px / 15px 255px 10px 225px;
    transform: skewX(2deg) rotate(2deg);
}

.desktop-icon:nth-child(4) .emoji {
    border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px;
    transform: rotate(-2deg);
}

.desktop-icon:nth-child(5) .emoji {
    border-radius: 255px 20px 225px 10px / 20px 225px 10px 255px;
    transform: skewY(-2deg) skewX(2deg);
}

.desktop-icon:nth-child(6) .emoji {
    border-radius: 10px 255px 15px 225px / 225px 15px 255px 10px;
    transform: skewX(-2deg) rotate(-1deg);
}

.desktop-icon:nth-child(7) .emoji {
    border-radius: 20px 255px 10px 225px / 255px 10px 225px 20px;
    transform: skewY(1deg);
}

.desktop-icon:nth-child(8) .emoji {
    border-radius: 255px 10px 225px 20px / 10px 225px 20px 255px;
    transform: skewX(1deg);
}

.desktop-icon:nth-child(9) .emoji {
    border-radius: 15px 225px 20px 255px / 255px 15px 225px 20px;
    transform: skewY(-1deg) skewX(2deg);
}

.desktop-icon:nth-child(10) .emoji {
    border-radius: 200px 20px 200px 15px / 15px 200px 20px 200px;
    transform: skewY(1deg) skewX(-1deg);
}

.desktop-icon .emoji svg {
    width: 32px;
    height: 32px;
    stroke: var(--black);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.desktop-icon span {
    color: var(--black);
    font-size: 1rem;
    font-weight: bold;
    margin-top: 4px;
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
}

.window {
    position: absolute;
    width: 450px;
    max-width: 95%;
    height: 350px;
    max-height: 100%;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 15px 255px 15px 225px / 225px 15px 255px 15px;
    box-shadow: var(--shadow-solid);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(1);
    opacity: 1;
    animation: windowPop 0.3s ease-out backwards;
    min-width: 300px;
    min-height: 200px;
}

.window.closing {
    animation: windowClose 0.2s ease-in forwards !important;
    pointer-events: none;
}

.window.maximized {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.2s ease;
}

.window.minimized {
    opacity: 0;
    pointer-events: none;
    transform: translateY(50px) scale(0.8);
    transition: all 0.2s ease;
}

@keyframes windowPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes windowClose {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

.window-header {
    background: var(--white) !important;
    border-bottom: 2px solid var(--black);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    color: var(--black) !important;
}

.window-header:active {
    cursor: grabbing;
}

.window-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--black) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-title svg {
    width: 20px;
    height: 20px;
    stroke: var(--black);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.window-content {
    flex: 1;
    background: var(--white);
    position: relative;
    overflow: auto;
    display: flex;
    flex-direction: column;
    color: var(--black);
}

.resize-handle {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    cursor: se-resize;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#taskbar {
    height: 60px;
    background: var(--white);
    border-top: 3px solid var(--black);
    display: flex;
    align-items: center;
    padding: 0 10px;
    z-index: 999;
    transition: background-color 0.2s, border-width 0.2s;
    flex-shrink: 0;
}

#taskbar.drag-over {
    background-color: #e0e0e0;
    border-top-width: 6px;
}

#start-btn {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    padding: 5px 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 2px 2px 0px var(--black);
    transition: all 0.1s;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--black);
}

#start-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px var(--black);
}

#start-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px var(--black);
}

#taskbar-apps {
    display: flex;
    flex: 1;
    gap: 10px;
    margin-left: 15px;
    margin-right: 15px;
    overflow-x: auto;
    scrollbar-width: none;
}

#taskbar-apps::-webkit-scrollbar {
    display: none;
}

.taskbar-item {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 2px 2px 0px var(--black);
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 150px;
    flex: 0 1 auto;
    min-width: 36px;
    color: var(--black);
}

.taskbar-item svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
}

.taskbar-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taskbar-item.active {
    background: var(--black);
    color: var(--white);
    box-shadow: none;
    transform: translate(2px, 2px);
}

#clock {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    padding: 5px 15px;
    font-weight: bold;
    box-shadow: 2px 2px 0px var(--black);
    color: var(--black);
    letter-spacing: 2px;
}

.looney-btn {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 2px 2px 0px var(--black);
    transition: all 0.1s;
}

.looney-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px var(--black);
}

.looney-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px var(--black);
}

.app-notepad {
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}

.app-notepad textarea {
    flex: 1;
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-size: 1.1rem;
    resize: none;
    background: var(--white);
    color: var(--black);
    background-image: repeating-linear-gradient(transparent, transparent 24px, #ddd 24px, #ddd 25px);
    line-height: 25px;
}

.app-notepad .toolbar {
    display: flex;
    justify-content: flex-end;
}

.app-terminal {
    background: var(--white);
    color: var(--black);
    font-family: monospace;
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.app-terminal .output {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-family: monospace;
}

.app-terminal .input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.app-terminal .prompt {
    color: var(--black);
    margin-right: 10px;
    font-family: monospace;
    font-weight: bold;
}

.app-terminal input {
    background: transparent;
    border: none;
    color: var(--black);
    font-family: monospace;
    font-size: 1rem;
    flex: 1;
    outline: none;
}

.app-doodle {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
    gap: 10px;
}

.doodle-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.doodle-viewport {
    flex: 1;
    overflow: hidden;
    border: 2px solid var(--black);
    border-radius: 15px 255px 15px 225px / 225px 15px 255px 15px;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.03) 10px, rgba(0, 0, 0, 0.03) 12px);
    position: relative;
}

.doodle-canvas {
    background: var(--white);
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
    cursor: crosshair;
}

.doodle-palette {
    display: flex;
    gap: 8px;
    align-items: center;
}

.color-btn {
    width: 22px;
    height: 22px;
    border: 2px solid var(--black);
    border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%;
    cursor: pointer;
    box-shadow: 2px 2px 0px var(--black);
    transition: transform 0.1s;
}

.color-btn.active {
    transform: scale(1.2);
    border-width: 3px;
    box-shadow: 1px 1px 0px var(--black);
}

.size-btn {
    background: transparent;
    border: 2px solid var(--black);
    cursor: pointer;
    border-radius: 50% 40% 60% 40% / 40% 60% 50% 50%;
    box-shadow: 2px 2px 0px var(--black);
    transition: all 0.1s;
    padding: 0;
    margin: 0 4px;
}

.size-btn.active {
    background: var(--black);
    box-shadow: none;
    transform: translate(2px, 2px);
}

.app-calc {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 15px;
    background: var(--white);
}

.calc-display {
    height: 65px;
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    font-size: 2rem;
    padding: 10px 15px;
    font-family: 'Architects Daughter', cursive;
    background: #f9f9f9;
    box-shadow: inset 2px 2px 0px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    flex: 1;
}

.calc-btn {
    background: var(--white);
    border: 2px solid var(--black);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 2px 2px 0px var(--black);
    transition: all 0.1s;
    font-family: 'Architects Daughter', cursive;
    font-weight: bold;
}

.calc-btn:nth-child(even) {
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}

.calc-btn:nth-child(odd) {
    border-radius: 15px 255px 10px 225px / 225px 10px 255px 15px;
}

.calc-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px var(--black);
}

.games-folder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
}

.games-folder-item .icon-box {
    width: 60px;
    height: 60px;
    border: 2px solid var(--black);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 2px 2px 0px var(--black);
    transition: transform 0.2s;
}

.games-folder-item:nth-child(1) .icon-box {
    border-radius: 200px 20px 200px 15px / 15px 200px 20px 200px;
    transform: skewY(1deg) skewX(-1deg);
}

.games-folder-item:nth-child(2) .icon-box {
    border-radius: 15px 225px 20px 255px / 255px 15px 225px 20px;
    transform: skewY(-1deg) skewX(2deg);
}

.games-folder-item:hover .icon-box {
    transform: scale(1.05) translateY(-5px);
}

.games-folder-item .icon-box svg {
    width: 32px;
    height: 32px;
    stroke: var(--black);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.games-folder-item span {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--black);
}

.files-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-bottom: 2px solid var(--black);
    background: var(--white);
}

.files-path {
    flex: 1;
    font-weight: bold;
    color: var(--black);
    font-size: 0.85rem;
}

.files-grid {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    overflow-y: auto;
    flex: 1;
    align-content: start;
    transition: background 0.2s;
}

.empty-folder {
    padding: 20px;
    text-align: center;
    color: var(--black);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.new-folder-btn .icon {
    border-style: dashed !important;
}

.new-folder-input {
    width: 100%;
    max-width: 80px;
    padding: 2px 5px;
    text-align: center;
    font-family: inherit;
    font-size: 0.9rem;
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    margin-top: 5px;
    outline: none;
    background: var(--white);
    color: var(--black);
}

.folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
}

.folder .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--black);
    background-color: var(--white);
    transition: transform 0.2s;
    box-shadow: 2px 2px 0px var(--black);
    overflow: hidden;
}

.folder .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(120%);
}

.folder:nth-child(odd) .icon {
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    transform: skewX(-2deg);
}

.folder:nth-child(even) .icon {
    border-radius: 15px 255px 10px 225px / 225px 10px 255px 15px;
    transform: skewY(2deg);
}

.folder:nth-child(3n) .icon {
    border-radius: 225px 15px 255px 10px / 15px 255px 10px 225px;
    transform: skewX(2deg) rotate(1deg);
}

.folder .icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--black);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.folder:hover .icon {
    transform: scale(1.05);
}

.folder span {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 5px;
    color: var(--black);
}

.app-calendar {
    padding: 15px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: bold;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    flex: 1;
}

.cal-day-name {
    font-weight: bold;
    color: var(--black);
    border-bottom: 2px solid var(--black);
    margin-bottom: 5px;
    padding-bottom: 5px;
}

.cal-day {
    background: var(--white);
    border: 1px solid var(--black);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 2px 2px 0px var(--black);
    transition: transform 0.1s;
}

.cal-day:hover {
    transform: scale(1.1);
    background: var(--white);
    z-index: 2;
    border-width: 2px;
}

.cal-day.today {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.cal-day.empty {
    background: transparent;
    border: none;
    box-shadow: none;
}

.app-settings {
    padding: 0;
    display: flex;
    flex-direction: row;
    height: 100%;
}

.settings-nav-item {
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: all 0.2s;
    margin-bottom: 5px;
    color: var(--black);
}

.settings-nav-item:hover {
    border-color: var(--black);
}

.sketchy-slider {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    outline: none;
    cursor: pointer;
    height: 30px;
}

.sketchy-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 12px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 20" preserveAspectRatio="none"><path d="M 0,10 C 60,15 120,15 180,13 C 240,11 270,12 300,11 L 300,16 C 270,17 240,16 180,16 C 120,17 60,16.5 0,10.5 Z" fill="black"/></svg>') no-repeat center;
    background-size: 100% 100%;
    border: none;
    box-shadow: none;
}

.sketchy-slider::-moz-range-track {
    width: 100%;
    height: 12px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 20" preserveAspectRatio="none"><path d="M 0,10 C 60,15 120,15 180,13 C 240,11 270,12 300,11 L 300,16 C 270,17 240,16 180,16 C 120,17 60,16.5 0,10.5 Z" fill="black"/></svg>') no-repeat center;
    background-size: 100% 100%;
    border: none;
    box-shadow: none;
}

.m-timeline::-webkit-slider-runnable-track {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 10" preserveAspectRatio="none"><path d="M 0,5 Q 50,3 100,5 T 200,4 T 300,5" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"/></svg>') no-repeat center;
    background-size: 100% 100%;
}

.m-timeline::-moz-range-track {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 10" preserveAspectRatio="none"><path d="M 0,5 Q 50,3 100,5 T 200,4 T 300,5" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"/></svg>') no-repeat center;
    background-size: 100% 100%;
}

.sketchy-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='35' fill='none' stroke='black' stroke-width='12'/></svg>") no-repeat center;
    background-color: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: none;
}

.sketchy-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='35' fill='none' stroke='black' stroke-width='12'/></svg>") no-repeat center;
    background-color: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    box-shadow: none;
}

.drop-zone {
    border: 2px dashed var(--black);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    font-weight: bold;
    color: var(--black);
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.05) 10px, rgba(0, 0, 0, 0.05) 12px);
}

.drop-zone:hover {
    background-color: #f9f9f9;
}

.drop-zone.dragover {
    background-color: #eee;
    border-color: var(--black);
    transform: scale(1.02);
    box-shadow: 4px 4px 0px var(--black);
}

.drop-zone input[type="file"] {
    display: none;
}

.app-music {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--white);
    padding: 20px;
    text-align: center;
}

.record-player {
    width: 150px;
    height: 150px;
    background: var(--white);
    border-radius: 50%;
    border: 2px dashed var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.record-player.empty-state {
    background-image: linear-gradient(to bottom right, transparent calc(50% - 1px), var(--black) calc(50% - 1px), var(--black) calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(to top right, transparent calc(50% - 1px), var(--black) calc(50% - 1px), var(--black) calc(50% + 1px), transparent calc(50% + 1px));
}

.record-player.playing-mode {
    background-image: radial-gradient(circle at center, transparent 55px, var(--black) 55px, var(--black) 57px, transparent 57px), radial-gradient(circle at center, transparent 42px, var(--black) 42px, var(--black) 44px, transparent 44px);
}

.record-player.playing-mode::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px solid var(--black);
    border-radius: 50%;
    background-color: var(--white);
    z-index: 2;
}

.record-player.playing-mode::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid var(--black);
    border-radius: 50%;
    background-color: var(--white);
    z-index: 3;
}

.spin {
    animation: spin 4s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.music-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.music-btn {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--black);
    cursor: pointer;
    box-shadow: 2px 2px 0px var(--black);
    transition: transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
}

.music-btn:hover {
    transform: scale(1.1);
    background: #eee;
}

.music-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px var(--black);
}

.track-info {
    font-weight: bold;
    background: var(--white);
    border: 2px solid var(--black);
    padding: 5px 15px;
    border-radius: var(--radius-sm);
    margin-top: 15px;
}

.drag-indicator {
    position: absolute;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    border: 2px dashed var(--black);
    border-radius: 15px 255px 15px 225px / 225px 15px 255px 15px;
}

.drag-indicator.active {
    opacity: 1;
}

#indicator-max {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: scale(0.98);
    background: repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(0, 0, 0, 0.03) 15px, rgba(0, 0, 0, 0.03) 18px);
}

#indicator-max.active {
    transform: scale(1);
}

#indicator-close {
    top: 10px;
    right: 10px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    background-color: var(--white);
    box-shadow: 4px 4px 0px var(--black);
}

#indicator-close.active {
    transform: scale(1);
    background-color: #eaeaea;
}

#global-drop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--black);
    border: 8px dashed var(--black);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

#global-drop-overlay.active {
    opacity: 1;
    pointer-events: auto;
}


/* LOONEY CUSTOM ALERT UI */

#looney-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

#looney-alert-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.looney-alert-box {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 15px 255px 15px 225px / 225px 15px 255px 15px;
    box-shadow: 6px 6px 0px var(--black);
    padding: 30px 40px;
    max-width: 80%;
    min-width: 250px;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#looney-alert-overlay.active .looney-alert-box {
    transform: scale(1);
}

.looney-alert-msg {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--black);
}


/* BROWSER SPECIFIC UI FIXES */

.app-browser {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
}

.browser-toolbar {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: #eee;
    border-bottom: 2px solid var(--black);
    align-items: center;
}

.browser-nav-btn,
.b-go,
.b-ext {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 2px 2px 0px var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: var(--black);
    transition: transform 0.1s, box-shadow 0.1s;
}

.browser-nav-btn:hover,
.b-go:hover,
.b-ext:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px var(--black);
}

.browser-nav-btn:active,
.b-go:active,
.b-ext:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px var(--black);
}

.browser-input {
    flex: 1;
    padding: 4px 10px;
    font-family: inherit;
    font-weight: bold;
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    outline: none;
}

.browser-iframe {
    width: 100%;
    height: 100%;
    border: none;
}