/* ════════════════════════════════════════════════════════════════
   Warmbo 2000 Desktop — Unified Styles
   Base font: 12px | Scale: 11 / 12 / 13 / 14 / 16
   Spacing: 2 / 4 / 8 / 12 / 16
   ════════════════════════════════════════════════════════════════ */

/* ── Local Font (pre-loaded to avoid FOUT) ── */
@font-face {
    font-family: "Pixelated MS Sans Serif";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(ms_sans_serif.woff2) format("woff2"),
         url(ms_sans_serif.woff) format("woff");
}
@font-face {
    font-family: "Pixelated MS Sans Serif";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(ms_sans_serif_bold.woff2) format("woff2"),
         url(ms_sans_serif_bold.woff) format("woff");
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden;
}
body {
    background: linear-gradient(135deg, #0a246a, #3a6ea5);
    font-family: "Pixelated MS Sans Serif", "MS Sans Serif", Tahoma, Arial, sans-serif;
    font-size: 12px;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: none;
}
img { image-rendering: auto; }
.desktop-icon img { image-rendering: pixelated; }

/* ═══════════════════════════════════════════════════════════════
   DESKTOP
   ═══════════════════════════════════════════════════════════════ */
#desktop {
    position: relative;
    width: 1280px; height: 768px;
    background: #008080;
    overflow: hidden;
    user-select: none;
    transform-origin: 0 0;
}

/* ── Desktop Icons ── */
#desktop-icons { position: absolute; top: 0; left: 0; width: 1280px; height: 768px; pointer-events: none; }
.desktop-icon {
    position: absolute; display: flex; flex-direction: column; align-items: center;
    width: 80px; color: #fff; cursor: pointer; pointer-events: auto;
    text-align: center; user-select: none;
}
.desktop-icon img { width: 48px; height: 48px; display: block; }
.desktop-icon span {
    margin-top: 4px; font-size: 13px; line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    padding: 2px 4px; max-width: 74px; word-wrap: break-word;
}
.desktop-icon.selected span { background: #000080; color: #fff; outline: 1px dotted #fff; outline-offset: -1px; }
.desktop-icon:focus-visible { outline: 1px dotted #fff; outline-offset: 2px; }

/* ═══════════════════════════════════════════════════════════════
   TASKBAR
   ═══════════════════════════════════════════════════════════════ */
#taskbar {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 34px;
    display: flex; align-items: center; background: #d4d0c8;
    padding: 2px; z-index: 9999;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #fff;
}
#start-button {
    display: flex; align-items: center; gap: 5px;
    height: 28px; padding: 3px 10px; cursor: default;
    font-size: 13px; flex-shrink: 0; background: #d4d0c8;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #fff;
}
#start-button:active, #start-button.pressed {
    box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
}
#start-button img { width: 18px; height: 18px; }

#taskbar-icons { display: flex; align-items: center; gap: 2px; flex: 1; margin: 0 4px; overflow: hidden; }
.taskbar-button {
    display: flex; align-items: center; gap: 4px;
    height: 26px; min-width: 80px; max-width: 180px;
    padding: 2px 8px; cursor: default; font-size: 13px;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    background: #d4d0c8;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #fff;
}
.taskbar-button:active { box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080; }
.taskbar-button.active { box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080; background: #c0c0c0; }
.taskbar-button img { width: 16px; height: 16px; flex-shrink: 0; }

#system-tray {
    display: flex; align-items: center; gap: 8px; padding: 0 8px;
    flex-shrink: 0; height: 24px; margin-right: 2px; background: #d4d0c8;
    box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
}
#system-tray #time { font-size: 13px; white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════════
   START MENU
   ═══════════════════════════════════════════════════════════════ */
#start-menu {
    position: fixed; bottom: 36px; left: 2px; width: 220px;
    background: #d4d0c8;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #fff;
    z-index: 10000; display: flex; flex-direction: row;
}
#start-menu.hidden { display: none; }
.start-menu-sidebar {
    width: 30px; background: linear-gradient(180deg, #0a246a 0%, #3a6ea5 60%, #5a8ec5 100%);
    flex-shrink: 0; display: flex; flex-direction: column; align-items: center;
    justify-content: space-between; padding: 6px 0 4px 0;
    border-right: 1px solid #0a0a0a; position: relative;
}
.start-menu-sidebar::before {
    content: ''; display: block; width: 18px; height: 18px; margin-top: 2px;
    background: linear-gradient(135deg, #ff4444 25%, transparent 25%), linear-gradient(225deg, #44bb44 25%, transparent 25%), linear-gradient(45deg, #4488ff 25%, transparent 25%), linear-gradient(315deg, #ffcc00 25%, transparent 25%);
    background-size: 50% 50%; background-position: 0 0, 0 100%, 100% 0, 100% 100%;
    background-repeat: no-repeat; opacity: 0.85; flex-shrink: 0;
}
.start-menu-sidebar:after {
    content: 'Warmbo 2000'; writing-mode: vertical-lr; color: #fff;
    font-size: 13px; font-weight: bold; letter-spacing: 2px;
    font-family: 'Microsoft Sans Serif', 'Pixelated MS Sans Serif', Tahoma, sans-serif;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.4); margin-bottom: 2px;
}
.start-menu-items { flex: 1; padding: 2px 0; }
.start-menu-item {
    display: flex; align-items: center; padding: 5px 10px;
    cursor: pointer; user-select: none; font-size: 13px; gap: 6px;
}
.start-menu-item:hover, .start-menu-item.highlight { background: #0a246a; color: #fff; }
.start-menu-item .start-item-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.start-menu-item .start-item-icon img { width: 16px; height: 16px; }
.start-menu-item .start-item-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.start-menu-separator { height: 1px; background: #808080; margin: 3px 8px; border-bottom: 1px solid #fff; }

#start-menu {
    transform-origin: bottom left; transform: translateY(16px) scaleY(0.92);
    opacity: 0; transition: transform 0.12s ease-out, opacity 0.12s ease-out;
}
#start-menu.showing { transform: translateY(0) scaleY(1); opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   WINDOW SYSTEM
   ═══════════════════════════════════════════════════════════════ */
.window {
    position: absolute; min-width: 280px; background: #d4d0c8;
    padding: 3px; border: 1px solid #0a0a0a;
    box-shadow: inset -1px -1px #808080, inset 1px 1px #fff;
    z-index: 100; display: flex; flex-direction: column;
}
.window.hidden { display: none; }
.window.minimized { display: none; }

.window-body {
    flex: 1; background: #d4d0c8;
    padding: 0; margin: 0; overflow: auto; min-height: 0;
}

/* Active / inactive title bars */
.title-bar {
    display: flex; align-items: center; justify-content: space-between;
    height: 22px; padding: 2px 2px 2px 4px;
    background: linear-gradient(90deg, #808080, #c0c0c0);
    cursor: default; flex-shrink: 0;
}
.window.active .title-bar { background: linear-gradient(90deg, #0a246a, #3a6ea5); }
.title-bar-text {
    display: flex; align-items: center; gap: 4px;
    font-size: 13px; color: #fff; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis; flex: 1;
    line-height: 20px; text-shadow: 1px 1px 0 rgba(0,0,0,0.4);
}
.window:not(.active) .title-bar-text { color: #d4d0c8; text-shadow: none; }
.title-bar-text img { width: 13px; height: 13px; flex-shrink: 0; }
.title-bar-controls { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.window .title-bar-controls button {
    display: flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; padding: 0; border: none;
    background: #d4d0c8; cursor: default;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #fff;
}
.window .title-bar-controls button:active {
    box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #fff, inset 2px 2px #808080;
}

.window-resize-grip {
    position: absolute; bottom: 0; right: 0; width: 15px; height: 15px;
    cursor: nwse-resize; z-index: 1;
    background: linear-gradient(135deg, #808080 1px, transparent 1px),
                linear-gradient(135deg, #808080 1px, transparent 1px),
                linear-gradient(135deg, #808080 1px, transparent 1px);
    background-size: 4px 4px; background-position: 0 0, 2px 2px, 4px 4px;
    background-repeat: no-repeat; opacity: 0.6;
}

/* Window animations */
.window.minimizing { animation: win-shrink 0.25s ease-out forwards; pointer-events: none; }
.window.restoring { animation: win-grow 0.25s ease-out forwards; pointer-events: none; }
@keyframes win-shrink { to { transform: scale(0.08); opacity: 0; } }
@keyframes win-grow { from { transform: scale(0.08); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ═══════════════════════════════════════════════════════════════
   CONTEXT MENU
   ═══════════════════════════════════════════════════════════════ */
#context-menu {
    position: fixed; background: #d4d0c8;
    padding: 3px; min-width: 200px; z-index: 99999;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf,
                inset -2px -2px #808080, inset 2px 2px #fff,
                2px 2px 6px rgba(0,0,0,0.4);
}
#context-menu.hidden { display: none; }
.ctx-item { padding: 5px 12px; cursor: default; white-space: nowrap; user-select: none; font-size: 13px; color: #000; }
.ctx-item:hover { background: #0a246a; color: #fff; }
.ctx-separator { height: 1px; background: #808080; margin: 3px 8px; border-bottom: 1px solid #fff; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS (Unified)
   ═══════════════════════════════════════════════════════════════ */
button {
    min-width: 75px; height: 23px; padding: 0 12px;
    font-size: 12px; font-family: inherit; background: #d4d0c8;
    border: 1px solid; border-color: #fff #808080 #808080 #fff;
    cursor: default; outline: none;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
}
button:active { box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080; }
button.default { font-weight: bold; }

/* ═══════════════════════════════════════════════════════════════
   SCROLLBARS (Win2K style)
   ═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track {
    background: #c0c0c0;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='2' height='2' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1 0H0v1h1v1h1V1H1V0z' fill='silver'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 0H1v1H0v1h1V1h1V0z' fill='%23fff'/%3E%3C/svg%3E");
}
::-webkit-scrollbar-thumb {
    background: #d4d0c8;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px grey, inset 2px 2px #dfdfdf;
}
::-webkit-scrollbar-thumb:active { box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px grey; }
::-webkit-scrollbar-button {
    display: block; height: 16px; width: 16px; background: #d4d0c8;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px grey, inset 2px 2px #dfdfdf;
}
::-webkit-scrollbar-button:active { box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px grey; }
::-webkit-scrollbar-button:vertical:start:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M5 10 L8 5 L11 10' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 8px 8px;
}
::-webkit-scrollbar-button:vertical:end:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M5 6 L8 11 L11 6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 8px 8px;
}
::-webkit-scrollbar-corner { background: #d4d0c8; }

/* ═══════════════════════════════════════════════════════════════
   TREE VIEW
   ═══════════════════════════════════════════════════════════════ */
ul.tree-view {
    display: block; margin: 0; padding: 4px 0;
    list-style: none; font-size: 11px; background: #fff;
    border: 2px inset #808080;
}
ul.tree-view li { list-style-type: none; padding: 1px 0 1px 16px; position: relative; }
ul.tree-view a { color: #000; text-decoration: none; }
ul.tree-view a:focus { background: #0a246a; color: #fff; }
ul.tree-view ul { margin-left: 0; padding-left: 0; border-left: 1px dotted #808080; margin-left: 6px; }
ul.tree-view summary { cursor: pointer; }
ul.tree-view summary::-webkit-details-marker { display: none; }
ul.tree-view details > summary:before {
    content: '+'; display: inline-block; width: 9px; height: 9px;
    border: 1px solid #808080; background: #fff; font-size: 9px;
    line-height: 8px; text-align: center; margin-right: 4px;
}
ul.tree-view details[open] > summary:before { content: '-'; }

/* ═══════════════════════════════════════════════════════════════
   FIELDSET / GROUP BOX
   ═══════════════════════════════════════════════════════════════ */
fieldset {
    border: 2px groove #dfdfdf; padding: 10px; margin: 0;
    font-size: 12px;
}
legend { background: #d4d0c8; padding: 0 4px; }

/* ═══════════════════════════════════════════════════════════════
   STATUS BAR
   ═══════════════════════════════════════════════════════════════ */
.status-bar { display: flex; gap: 1px; margin: 0 1px; font-size: 12px; }
.status-bar-field {
    box-shadow: inset -1px -1px #dfdfdf, inset 1px 1px #808080;
    flex-grow: 1; padding: 2px 4px;
}

/* ═══════════════════════════════════════════════════════════════
   PROGRESS INDICATOR
   ═══════════════════════════════════════════════════════════════ */
.progress-indicator {
    height: 32px; padding: 4px; background: #d4d0c8;
    box-shadow: inset -2px -2px #dfdfdf, inset 2px 2px #808080;
}
.progress-indicator .progress-indicator-bar {
    display: block; height: 100%; background: #0a246a;
}

/* ═══════════════════════════════════════════════════════════════
   WINDOW-SPECIFIC STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ── Welcome Window ── */
#welcome-window { width: 400px; }
#welcome-window .window-body {
    display: flex; flex-direction: column; gap: 12px;
    padding: 18px 16px; min-width: 340px;
}
.welcome-dialog { display: flex; gap: 12px; align-items: flex-start; }
.welcome-dialog img { width: 32px; height: 32px; flex-shrink: 0; }
.welcome-dialog p { margin: 0 0 4px 0; font-size: 12px; line-height: 1.5; }
.welcome-dialog p:last-child { margin-bottom: 0; }
.welcome-dialog .muted { color: #666; }
.welcome-buttons { display: flex; justify-content: flex-end; }
.welcome-buttons button { min-width: 75px; }

/* ── Resume Window ── */
#resume-window { width: 720px; height: 520px; }
#resume-window .window-body { padding: 0; background: #fff; }
#resume-window iframe { width: 100%; height: 100%; border: none; display: block; }

/* ── Projects Window ── */
#projects-window { width: 520px; height: 400px; }
#projects-window .window-body { padding: 12px; background: #fff; }
.projects-header { font-size: 13px; margin-bottom: 8px; }
.project-card {
    border: 1px solid #c0c0c0; padding: 10px; margin-bottom: 8px;
    background: #fff; cursor: pointer;
}
.project-card:hover { background: #f0f0f0; }
.project-card h3 { margin: 0 0 2px 0; font-size: 13px; }
.project-card .project-date { font-size: 11px; color: #666; margin-bottom: 4px; }
.project-card p { margin: 0 0 4px 0; font-size: 12px; line-height: 1.5; color: #333; }
.project-card .project-tags { display: flex; gap: 3px; flex-wrap: wrap; }
.project-card .project-tag { font-size: 11px; padding: 1px 5px; background: #d4d0c8; border: 1px solid #808080; }
.project-card .project-link { font-size: 11px; color: #00f; text-decoration: underline; }

/* ── Social Window ── */
#social-window { width: 320px; height: 280px; }
#social-window .window-body { padding: 4px; background: #fff; }
#social-window ul.tree-view { margin: 0; font-size: 12px; border: none; box-shadow: none; }

/* ── Blog Window ── */
#blog-window { width: 640px; height: 480px; }
#blog-window .window-body { padding: 0; background: #fff; }
#blog-window iframe { width: 100%; height: 100%; border: none; display: block; }

/* ── Media Player Window ── */
#media-player-window { width: 440px; height: 420px; }
#media-player-window .window-body {
    display: flex; flex-direction: column; padding: 0;
    background: #d4d0c8;
}

/* Media player layout */
.wmp-main { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.wmp-vis {
    height: 80px; background: #000; display: flex; align-items: flex-end; justify-content: center; gap: 2px;
    padding: 8px; overflow: hidden;
}
.wmp-vis-bar { width: 3px; background: #0a246a; min-height: 2px; transition: height 0.1s; }
.wmp-vis-text { position: absolute; color: #fff; font-size: 11px; top: 4px; left: 8px; }
.wmp-vis { position: relative; }

.wmp-track-info { padding: 6px 8px; background: #d4d0c8; }
.wmp-track-info .track-name { font-size: 12px; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wmp-track-info .track-details { font-size: 11px; color: #666; }

.wmp-controls {
    display: flex; align-items: center; gap: 4px; padding: 4px 8px;
    background: #d4d0c8; border-top: 1px solid #808080;
}
.wmp-btn {
    min-width: 28px; height: 23px; padding: 0 6px; font-size: 12px;
    background: #d4d0c8; border: none; cursor: default;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
}
.wmp-btn:active { box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080; }

.wmp-time { font-size: 11px; color: #000; margin-left: 4px; white-space: nowrap; }

.wmp-seek-area, .wmp-volume-area {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 8px; background: #d4d0c8;
}
.wmp-seek-area label, .wmp-volume-area span:first-child { font-size: 12px; color: #000; white-space: nowrap; }

.wmp-slider-track {
    flex: 1; height: 4px; background: #808080;
    box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #fff;
}
.wmp-slider-thumb {
    width: 9px; height: 15px; background: #d4d0c8;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
    margin-top: -6px; cursor: default;
}

.wmp-volume-area { border-bottom: 1px solid #c0c0c0; }

.wmp-playlist-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.wmp-playlist-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 4px 8px; background: #d4d0c8; border-bottom: 1px solid #808080;
    font-size: 12px; flex-shrink: 0;
}
.wmp-playlist-header button {
    min-width: 50px; height: 20px; padding: 0 6px; font-size: 11px;
    background: #d4d0c8; border: none; cursor: pointer;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
}
.wmp-playlist-header button:active { box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080; }

#wmp-playlist { flex: 1; overflow-y: auto; background: #fff; font-size: 12px; }
#wmp-playlist.wmp-empty { display: flex; align-items: center; justify-content: center; color: #808080; }
.wmp-playlist-item { padding: 3px 8px; cursor: default; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wmp-playlist-item:hover { background: #f0f0f0; }
.wmp-playlist-item.playing { background: #0a246a; color: #fff; }
.wmp-playlist-item .pl-num { display: inline-block; width: 20px; color: #666; }
.wmp-playlist-item.playing .pl-num { color: #fff; }
.wmp-playlist-item .pl-dur { float: right; color: #808080; }
.wmp-playlist-item.playing .pl-dur { color: #ccc; }

/* ── Notepad Window ── */
#notepad-window { width: 520px; height: 360px; }
#notepad-window .window-body {
    display: flex; flex-direction: column;
    padding: 0; background: #fff;
}
#notepad-window .window-body textarea {
    width: 100%; height: 100%; border: none; resize: none;
    padding: 6px 8px; font-family: "Pixelated MS Sans Serif", "Lucida Console", monospace;
    font-size: 12px; line-height: 1.4; outline: none;
}
#notepad-window .notepad-statusbar {
    height: 20px; background: #d4d0c8; border-top: 1px solid #808080;
    display: flex; align-items: center; padding: 0 8px; font-size: 11px;
    flex-shrink: 0;
}

/* ── Run Dialog ── */
#run-dialog { width: 400px; }
#run-dialog .window-body { padding: 16px 16px 12px; background: #d4d0c8; }
.run-dialog-body { display: flex; gap: 12px; align-items: flex-start; }
.run-icon-area { flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.run-icon-area img { width: 28px; height: 28px; }
.run-form { flex: 1; display: flex; flex-direction: column; }
.run-instruction { font-size: 12px; color: #000; margin-bottom: 12px; line-height: 1.4; }
.run-input-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.run-input-row label { font-size: 12px; white-space: nowrap; min-width: 35px; }
.run-input-row input {
    flex: 1; height: 22px; padding: 2px 4px; font-size: 12px;
    background: #fff; border: 1px solid; border-color: #808080 #fff #fff #808080;
    outline: none; font-family: inherit;
}
.run-input-row input:focus { border-color: #000; }
.run-buttons { display: flex; gap: 6px; justify-content: flex-end; }
.run-buttons button { min-width: 75px; }

/* ── Screensaver ── */
#screensaver-overlay {
    position: absolute; top: 0; left: 0; width: 1280px; height: 768px;
    background: #000; z-index: 999990; display: none; overflow: hidden;
}
#screensaver-overlay.active { display: block; }
#screensaver-overlay canvas { display: block; width: 1280px; height: 768px; }

/* ═══════════════════════════════════════════════════════════════
   BOOT LOADING OVERLAY
   ═══════════════════════════════════════════════════════════════ */
#loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #0a246a, #3a6ea5);
    z-index: 999999; display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}
#loading-overlay.hidden { opacity: 0; pointer-events: none; }
.boot-box {
    background: #d4d0c8; padding: 3px;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #fff;
    min-width: 280px;
}
.boot-logo {
    font-size: 16px; font-weight: bold; color: #0a246a; letter-spacing: 2px;
    text-shadow: 1px 1px 0 #fff; padding: 12px 16px 8px; text-align: center;
}
.boot-divider { height: 1px; background: #808080; margin: 0 8px; border-bottom: 1px solid #fff; }
.boot-progress {
    margin: 10px 12px; height: 20px; background: #fff;
    box-shadow: inset -1px -1px #fff, inset 1px 1px #808080;
    overflow: hidden;
}
.boot-bar {
    height: 100%; width: 0%; background: #0a246a;
    transition: width 0.4s ease-in-out;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.2);
}
.boot-status { font-size: 12px; color: #000; padding: 6px 12px 12px; text-align: center; }

/* ═══════════════════════════════════════════════════════════════
   MOBILE VIEW
   ═══════════════════════════════════════════════════════════════ */
#mobile-view { display: none; }

@media (max-width: 767px) {
    html, body { overflow: auto; height: auto; min-height: 100vh; }
    body { background: #008080; -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; }
    #desktop, #loading-overlay, #screensaver-overlay, #context-menu, #wallpaper-input { display: none !important; }
    #mobile-view {
        display: block; padding: 16px; max-width: 600px; margin: 0 auto;
        font-size: 14px; color: #fff;
    }
    .mv-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.2); }
    .mv-logo { width: 40px; height: 40px; flex-shrink: 0; }
    .mv-title { margin: 0; font-size: 20px; color: #fff; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
    .mv-subtitle { margin: 2px 0 0; font-size: 12px; color: rgba(255,255,255,0.7); }
    .mv-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
    .mv-nav-link {
        display: flex; align-items: center; gap: 4px;
        padding: 6px 12px; background: rgba(255,255,255,0.12);
        border: 1px solid rgba(255,255,255,0.25);
        color: #fff; text-decoration: none; font-size: 13px;
    }
    .mv-nav-link img { width: 14px; height: 14px; }
    .mv-nav-link:active { background: rgba(255,255,255,0.25); }
    .mv-section { background: rgba(0,0,0,0.2); padding: 14px; margin-bottom: 14px; }
    .mv-section-title { display: flex; align-items: center; gap: 6px; margin: 0 0 10px 0; font-size: 15px; color: #fff; }
    .mv-section-title img { width: 16px; height: 16px; }
    .mv-project { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .mv-project:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
    .mv-project h3 { margin: 0 0 2px 0; font-size: 14px; color: #fff; }
    .mv-project-date { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
    .mv-project p { margin: 0 0 6px 0; font-size: 12px; color: rgba(255,255,255,0.85); line-height: 1.4; }
    .mv-tags { display: flex; gap: 4px; flex-wrap: wrap; }
    .mv-tags .post-tag { background: rgba(255,255,255,0.15); color: #fff; font-size: 11px; padding: 1px 5px; }
    .mv-social-links { display: flex; flex-direction: column; gap: 6px; }
    .mv-social-links a { color: rgba(255,255,255,0.9); text-decoration: none; font-size: 13px; padding: 6px 10px; background: rgba(255,255,255,0.08); }
    .mv-social-links a:active { background: rgba(255,255,255,0.2); }
    #mv-notepad-textarea {
        width: 100%; height: 120px; padding: 8px; font-size: 12px;
        border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.9);
        color: #000; resize: vertical; box-sizing: border-box;
    }
    .mv-notepad-status { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 4px; }
    .mv-footer { text-align: center; font-size: 11px; color: rgba(255,255,255,0.4); padding: 16px 0; }
}
