.screen-desktop {
    flex-direction: column;
}

.topbar {
    height: 32px;
    background: #2b4d7a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

    .topbar button {
        font: 11px 'Segoe UI', Tahoma;
        padding: 2px 6px;
        border: 1px solid #7a7a7a;
        background: #f0f0f0;
    }

.main {
    flex: 1;
    display: flex;
    min-height: 0;
}

.sidebar {
    width: 220px;
    border-right: 1px solid #ccc;
    background: #f1f1f1;
    padding: 8px;
    box-sizing: border-box;
}

    .sidebar h2 {
        margin-top: 0;
        font-size: 13px;
    }

    .sidebar ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .sidebar li {
        padding: 4px 6px;
        cursor: pointer;
        border-radius: 3px;
    }

        .sidebar li:hover {
            background: #dde8ff;
        }


.desktop {
    flex: 1;
    position: relative;
    background: var(--desktop-bg);
    overflow: hidden;
}

.topbar {
    height: 32px;
    background: var(--topbar-bg);
    color: var(--topbar-fg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.taskbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28px;
    background: var(--taskbar-bg);
    border-top: 1px solid var(--taskbar-border);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
    box-sizing: border-box;
}

.task-buttons {
    display: flex;
    gap: 4px;
    flex: 1;
}

.taskbar-button {
    min-width: 80px;
    max-width: 180px;
    padding: 2px 6px;
    font: 11px 'Segoe UI', Tahoma;
    border-radius: 3px;
    border: 1px solid #666;
    background: var(--taskbar-button-bg);
    color: var(--taskbar-button-fg);
    cursor: pointer;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.taskbar-button.active {
    background: var(--taskbar-button-active-bg);
}

.taskbar-button.minimized {
    opacity: 0.6;
}

/* Êíîïêà Ïóñê */
.start-button {
    min-width: 60px;
    padding: 2px 10px;
    font: 11px 'Segoe UI', Tahoma;
    border-radius: 3px;
    border: 1px solid #666;
    background: linear-gradient(#f0f0f0, #dcdcdc);
    cursor: pointer;
}

[data-theme='win98'] .start-button {
    font-weight: bold;
}

/* Start menu */
.start-menu {
    position: absolute;
    left: 4px;
    bottom: 30px;
    width: 260px;
    background: var(--start-bg);
    border: 1px solid var(--start-border);
    color: var(--start-fg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    z-index: 10000;
}

.start-menu.hidden {
    display: none;
}

.start-menu-inner {
    display: flex;
    flex-direction: column;
    max-height: 380px;
}

.start-header {
    background: var(--start-header-bg);
    color: var(--start-header-fg);
    padding: 6px 8px;
    font-size: 12px;
}

.start-section {
    padding: 4px 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.start-section-title {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 4px;
}

.start-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.start-section li {
    padding: 3px 6px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    color: inherit;
}

.start-section li:hover {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme='dos'] .start-section li {
    color: #00ff00;
}
