body {
    min-height: 100vh; 
    margin: 0;
    background-color:#000;
}

.title-bar-text {
    display: flex;
    align-items: center;
    gap:4px;
}

.title-icon {
    width: 16px;
    height: 16px;
    margin: -2px 0;
    image-rendering: pixelated;
}

.title-bar {
    user-select: none;
}

#journalEntries {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    padding: 8px;
    box-sizing: border-box;
}

#desktopApps {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    padding: 8px;
    height: calc(100vh - 28px);
    box-sizing: border-box;
}

.desktop-icon {
    width: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: default;
    user-select: none;
}

.desktop-icon img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    filter: brightness(1);
}

.desktop-icon span {
    font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
    font-size: 11px;
    color: #fff;
    text-align: center;
    padding: 1px 2px;
    word-break: break-word;
    outline: 1px dotted transparent;
}

.desktop-icon.selected span {
    background: #000080;
    outline-color: #fff;
}

.desktop-icon.selected img {
    filter: sepia(1) hue-rotate(190deg) saturate(3) brightness(0.7);
}

#taskbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px;
    background: silver;
    box-shadow: inset 0 1px #dfdfdf, inset 0 2px #fff;
    z-index: 99999;
}

#start-button {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    padding: 0 4px;
    font-weight: bold;
}

#start-button img {
    width: 16px;
    height: 16px;
    image-rendering: pixelated
}

.taskbar-divider {
    width: 2px;
    height: 20px;
    box-shadow: inset 1px 0 #808080, inset -1px 0 #fff;
}

#taskbar-windows {
    display: flex;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.task-button {
    width: 160px;
    min-width: 0;
    flex-shrink: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 0 4px;
    overflow: hidden;
}

.task-button img {
    width: 16px;
    height: 16px;
}

.task-button span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-button.active {
    font-weight: bold;
    box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a,
                inset -2px -2px #dfdfdf, inset 2px 2px #808080;
    background-image: repeating-conic-gradient(#fff 0 25%, silver 0 50%);
    background-size: 2px 2px;
}

#tray {
    margin-left: auto;
    height: 22px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
    font-size: 11px;
    box-shadow: inset -1px -1px #fff, inset 1px 1px #808080;
}

#bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.ascii-art {
    font-family: "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
    font-size: 16px;
    line-height: normal;
    width: fit-content;
    margin: 0 auto 8px;
    background: none;
    color: #000;
    box-shadow: none;
    border: none;
    padding: 0;
}

body > .window {
    position: absolute;
    display: none;
}

[role="tabpanel"] {
    position: static;
    display: block;
}

[role="tabpanel"][hidden] {
    display: none;
}

[role="tab"]:not([aria-selected="true"]):active {
    transform: translateY(1px);
    box-shadow: inset -1px 0 #fff, inset 1px 1px #0a0a0a,
                inset -2px 0 #dfdfdf, inset 2px 2px #808080;
}

.tray-divider{width:1px;height:16px;background-color:#888;margin:0 5px}

#tray {
    gap: 2px;
}

#tray button {
    min-width: 0;
    min-height: 0;
    width: 24px;
    height: 18px;
    padding: 0;
    font-size: 9px;
}

body.logged-out #desktopApps,
body.logged-out #taskbar,
body.logged-out #bg-video {
    visibility: hidden;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-banner {
    display: block;
    margin-bottom: 8px;
}

.user-list {
    list-style: none;
    margin: 0 0 8px;
    padding: 2px;
    height: 110px;
    overflow-y: auto;
    background: #fff;
    box-shadow: inset -1px -1px #fff, inset 1px 1px #808080,
                inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
}

.user-list li {
    padding: 1px 3px;
    cursor: default;
}

.user-list li[aria-selected="true"] {
    background: #000080;
    color: #fff;
}

#login-password {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.login-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.profile-box {
    padding: 12px 16px;
}

.profile-box legend {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 4px;
}

.last-updated {
    color: #666;
    font-size: 0.85em;
}

.lastfm-table {
    width: 100%;
    border-collapse: collapse;
    background: none;
    white-space: normal;
}

.lastfm-table th {
    background: silver;
    box-shadow: none;
    text-align: left;
    padding: 4px 6px;
    position: sticky;
    top: 0;
}

.lastfm-table td {
    padding: 4px 6px;
}

.lastfm-table tbody tr:nth-child(even) {
    background: #fff;
}

.lastfm-table .right {
    text-align: right;
    white-space: nowrap;
}

.lastfm-table .empty {
    text-align: center;
}

.muted {
    color: #808080;
}

.lastfm-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.lastfm-profile img {
    width: 96px;
    height: 96px;
    object-fit: cover;
}

.lastfm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

.lastfm-scroll {
    max-height: 240px;
    overflow-y: auto;
}

#journalEntries .desktop-icon {
    height: 72px;
}