* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: "Tahoma", "Segoe UI", Geneva, Verdana, sans-serif;
    font-size: 12px;
    user-select: none;
}

#mobile-warning {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #05070f;
    color: #fff;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.mobile-warning-box {
    max-width: 340px;
}

.mobile-warning-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 12px;
}

.mobile-warning-text {
    font-size: 14px;
    line-height: 1.5;
    color: #ccc;
}

@media (max-width: 800px), (hover: none) and (pointer: coarse) {
    #mobile-warning {
        display: flex;
    }
}

#desktop {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-image: url("../assets/backgrounds/wallpaper.png");
    background-size: cover;
    background-position: center;
}

body.dark-mode #desktop {
    background-image: url("../assets/backgrounds/night mode wallpaper.png");
}

/* --- desktop icons --- */

.desktop-icon {
    position: absolute;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px;
    cursor: default;
}

.desktop-icon.selected {
    background: rgba(0, 40, 120, 0.35);
    outline: 1px dotted #fff;
}

.icon-glyph {
    width: 42px;
    height: 42px;
}

.bin-glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    line-height: 1;
}

.folder-glyph {
    background: linear-gradient(180deg, #ffe27a 0%, #f4b942 100%);
    border: 1px solid #8a6a10;
    border-radius: 2px 6px 2px 2px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
}

.folder-glyph::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 0;
    width: 18px;
    height: 7px;
    background: #f4b942;
    border: 1px solid #8a6a10;
    border-bottom: none;
    border-radius: 2px 6px 0 0;
}

.image-glyph {
    background: #fff;
    border: 1px solid #6b6b6b;
    box-shadow: inset 0 0 0 2px #d8d8d8;
    background-size: cover;
    background-position: center;
}

.mail-glyph {
    background: #fff;
    border: 1px solid #6b6b6b;
    box-shadow: inset 0 0 0 2px #d8d8d8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    color: #c0392b;
}

.icon-label {
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
    max-width: 100%;
}

/* --- generic buttons --- */

button {
    padding: 5px 12px;
    background: #c0c0c0;
    border: 1px solid #fff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    color: #000;
    font-size: 12px;
    cursor: pointer;
}

button:active {
    border-color: #404040;
    border-right-color: #fff;
    border-bottom-color: #fff;
}

button.primary {
    background: #2d6cdf;
    border-color: #6a9aef;
    border-right-color: #16357a;
    border-bottom-color: #16357a;
    color: #fff;
    font-weight: bold;
}

/* --- windows --- */

.window {
    position: absolute;
    top: 100px;
    left: 140px;
    min-width: 320px;
    min-height: 220px;
    background: #c0c0c0;
    border: 2px solid #fff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    box-shadow: 2px 2px 0 #000;
    display: flex;
    flex-direction: column;
}

.window-titlebar {
    background: linear-gradient(90deg, #7b7b7b 0%, #a8a8a8 100%);
    color: #ddd;
    font-weight: bold;
    padding: 4px 4px 4px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
}

.window-active .window-titlebar {
    background: linear-gradient(90deg, #10287a 0%, #4a7bd6 100%);
    color: #fff;
}

.window-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.window-close-btn {
    width: 18px;
    height: 18px;
    background: #c0c0c0;
    border: 1px solid #fff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    color: #000;
    font-weight: bold;
    line-height: 14px;
    text-align: center;
    cursor: pointer;
    flex-shrink: 0;
}

.window-close-btn:active {
    border-color: #404040;
    border-right-color: #fff;
    border-bottom-color: #fff;
}

.resize-handle {
    position: absolute;
    z-index: 5;
}

.resize-n {
    top: -4px;
    left: 8px;
    right: 8px;
    height: 8px;
    cursor: ns-resize;
}

.resize-s {
    bottom: -4px;
    left: 8px;
    right: 8px;
    height: 8px;
    cursor: ns-resize;
}

.resize-e {
    top: 8px;
    bottom: 8px;
    right: -4px;
    width: 8px;
    cursor: ew-resize;
}

.resize-w {
    top: 8px;
    bottom: 8px;
    left: -4px;
    width: 8px;
    cursor: ew-resize;
}

.resize-ne,
.resize-nw,
.resize-se,
.resize-sw {
    width: 12px;
    height: 12px;
    z-index: 6;
}

.resize-ne {
    top: -4px;
    right: -4px;
    cursor: nesw-resize;
}

.resize-nw {
    top: -4px;
    left: -4px;
    cursor: nwse-resize;
}

.resize-se {
    bottom: -4px;
    right: -4px;
    cursor: nwse-resize;
}

.resize-sw {
    bottom: -4px;
    left: -4px;
    cursor: nesw-resize;
}

.window-body {
    flex: 1;
    background: #ece9d8;
    border-top: 1px solid #808080;
    padding: 10px;
    overflow: auto;
}

/* --- folder window contents --- */

.folder-grid {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 4px;
}

.folder-grid .desktop-icon {
    position: static;
    width: 78px;
}

.folder-grid .desktop-icon .icon-label {
    color: #000;
    text-shadow: none;
}

/* --- conduit mascot --- */

.conduit-mascot {
    position: fixed;
    top: 50%;
    right: 28px;
    width: 140px;
    height: 200px;
    z-index: 9000;
    transform-origin: 50% 100%;
    filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.35));
    animation: conduit-idle-sway 4s ease-in-out infinite;
}

.conduit-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.conduit-speech-bubble {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    width: 160px;
    background: #ffffe1;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #222;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.conduit-speech-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 20px;
    border: 6px solid transparent;
    border-top-color: #ffffe1;
}

@keyframes conduit-idle-sway {
    0%,
    100% {
        transform: translateY(-50%) rotate(-2deg);
    }
    50% {
        transform: translateY(-50%) rotate(2deg);
    }
}

/* --- image viewer window --- */

.viewer-body {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #333;
    padding: 0;
}

.viewer-details-pane {
    position: relative;
    flex-shrink: 0;
    width: 180px;
    background: #222;
    color: #ddd;
    font-size: 12px;
    overflow-y: auto;
    border-right: 1px solid #000;
    transition: width 0.15s ease;
}

.viewer-details-pane.collapsed {
    width: 20px;
    overflow: hidden;
}

.viewer-details-toggle {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    padding: 0;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    background: #444;
    color: #fff;
    border: 1px solid #666;
}

.viewer-details-content {
    padding: 8px 22px 8px 10px;
}

.viewer-details-pane.collapsed .viewer-details-content {
    display: none;
}

.viewer-details-row {
    margin-bottom: 8px;
}

.viewer-details-label {
    display: block;
    font-weight: bold;
    color: #9cf;
    margin-bottom: 2px;
}

.viewer-image-area {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.viewer-image-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- bin contents (Recycle Bin / Trash) --- */

.bin-contents-body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    padding: 0;
}

.bin-contents-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- about dialog --- */

.about-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 16px 14px;
}

.about-icon {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin-bottom: 4px;
}

.about-title {
    font-size: 16px;
    font-weight: bold;
}

.about-version {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
}

.about-line {
    font-size: 12px;
    color: #333;
}

.about-link {
    margin-top: 8px;
    font-size: 12px;
    color: #0000cc;
    text-decoration: underline;
    cursor: pointer;
}

/* --- music app --- */

.music-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.music-track-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: auto;
}

.music-track-btn {
    text-align: left;
}

.music-track-btn.active {
    background: #2d6cdf;
    color: #fff;
    border-color: #6a9aef;
}

.music-audio {
    flex-shrink: 0;
    width: 100%;
}

/* --- disk cleanup app --- */

.disk-cleanup-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: #ece9d8;
}

.disk-cleanup-status {
    font-weight: bold;
    align-self: flex-start;
}

.disk-cleanup-progress {
    width: 100%;
    height: 14px;
    background: #fff;
    border: 1px solid #888;
    overflow: hidden;
}

.disk-cleanup-progress-fill {
    height: 100%;
    width: 40%;
    background: #2d6cdf;
    animation: disk-cleanup-marquee 1.4s linear infinite;
}

@keyframes disk-cleanup-marquee {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(350%);
    }
}

.disk-cleanup-recovered {
    font-size: 12px;
    color: #555;
    align-self: flex-start;
}

.disk-cleanup-video {
    width: 100%;
    max-width: 320px;
    border: 1px solid #888;
}

.disk-cleanup-warning {
    font-size: 12px;
    color: #a30000;
    align-self: flex-start;
}

/* --- snake app --- */

.snake-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #333;
}

.snake-status {
    font-family: monospace;
    font-size: 13px;
    color: #ddd;
    text-align: center;
    padding: 0 12px;
}

.snake-canvas {
    border: 1px solid #000;
}

.snake-score {
    font-family: monospace;
    font-size: 12px;
    color: #ddd;
}

.snake-submit-panel {
    display: flex;
    align-items: center;
    gap: 6px;
}

.snake-name-input {
    width: 110px;
    font-size: 12px;
    padding: 2px 4px;
}

.snake-submit-status {
    font-family: monospace;
    font-size: 11px;
    color: #ddd;
}

.snake-scoreboard-toggle {
    font-size: 12px;
}

.snake-leaderboard-panel {
    width: 100%;
    max-height: 120px;
    overflow-y: auto;
    background: #222;
    border: 1px solid #000;
    padding: 6px 10px;
    box-sizing: border-box;
    font-family: monospace;
    font-size: 12px;
    color: #ddd;
}

.snake-leaderboard-list {
    margin: 0;
    padding-left: 18px;
}

.snake-leaderboard-empty {
    text-align: center;
    color: #999;
}

/* --- paint app --- */

.paint-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.paint-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.paint-color-input {
    width: 32px;
    height: 24px;
    padding: 0;
    border: 1px solid #999;
}

.paint-tool-btn.active {
    background: #a7c7f2;
    border-color: #4a78c9;
}

.paint-size-input {
    width: 70px;
}

.paint-size-label {
    font-size: 11px;
    color: #333;
    width: 28px;
}

.paint-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.paint-name-input {
    flex: 1;
    font-size: 12px;
    padding: 2px 4px;
}

.paint-save-status {
    font-size: 11px;
    color: #333;
    white-space: nowrap;
}

.paint-canvas {
    border: 1px solid #000;
    background: #fff;
    cursor: crosshair;
}

.paint-gallery-toggle {
    align-self: flex-start;
}

.paint-gallery-body {
    font-size: 12px;
}

.paint-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.paint-gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
}

.paint-viewer-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.paint-viewer-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.paint-gallery-img {
    width: 100%;
    border: 1px solid #999;
    background: #fff;
}

.paint-gallery-caption {
    font-size: 10px;
    color: #555;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.paint-gallery-empty {
    text-align: center;
    color: #777;
}

/* --- slideshow app --- */

.slideshow-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slideshow-empty {
    color: #555;
    font-size: 12px;
}

.slideshow-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: auto;
}

.slideshow-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    background: #fff;
    border: 1px solid #ccc;
}

.slideshow-row-name {
    font-weight: bold;
    font-size: 13px;
}

.slideshow-row-meta {
    font-size: 11px;
    color: #666;
}

.slideshow-builder-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
}

.slideshow-name-input {
    flex: 1;
    min-width: 100px;
    padding: 5px 6px;
    border: 1px solid #888;
    font-size: 12px;
}

.slideshow-builder-hint {
    font-size: 11px;
    color: #555;
    flex-shrink: 0;
}

.slideshow-picker-grid {
    flex: 1;
    overflow: auto;
}

.slideshow-player-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #333;
}

.slideshow-player-img {
    max-width: 100%;
    max-height: 100%;
    flex: 1;
    min-height: 0;
    object-fit: contain;
}

.slideshow-player-counter {
    color: #ddd;
    font-size: 12px;
    flex-shrink: 0;
}

.slideshow-player-controls {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.slideshow-speed-select {
    font-size: 12px;
    padding: 4px 6px;
    border: 1px solid #888;
}

.slideshow-toast {
    position: fixed;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #222;
    color: #fff;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 40000;
}

.slideshow-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- find app --- */

.find-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.find-search-row {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.find-input {
    flex: 1;
    padding: 5px 6px;
    border: 1px solid #888;
    font-size: 12px;
}

.find-results {
    flex: 1;
    overflow: auto;
}

/* --- changelog app --- */

.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.changelog-entry {
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
}

.changelog-entry-header {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
}

.changelog-message {
    font-size: 13px;
}

/* --- mail app --- */

.mail-demo-banner {
    background: #fff3cd;
    border: 1px solid #e0c36b;
    color: #6b5300;
    padding: 6px 10px;
    margin-bottom: 8px;
    font-size: 12px;
}

.mail-empty {
    color: #555;
    padding: 12px;
}

.mail-list {
    display: flex;
    flex-direction: column;
}

.mail-row {
    border-bottom: 1px solid #c8c4b0;
    padding: 8px 4px;
    cursor: pointer;
}

.mail-row:hover {
    background: #dfe6f5;
}

.mail-row-header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #333;
}

.mail-sender {
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-date {
    flex-shrink: 0;
    color: #666;
}

.mail-subject {
    margin-top: 2px;
}

.mail-snippet {
    margin-top: 6px;
    padding: 6px 8px;
    background: #fff;
    border: 1px solid #c8c4b0;
    color: #333;
    white-space: pre-wrap;
}

/* --- tag editor app --- */

.tag-editor-glyph {
    background: #fff;
    border: 1px solid #6b6b6b;
    box-shadow: inset 0 0 0 2px #d8d8d8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.community-folder-glyph {
    background: linear-gradient(180deg, #a9d4ff 0%, #5fa3e0 100%);
    border-color: #2b5f8a;
}

.os-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: radial-gradient(ellipse at center, #1c2a4a 0%, #05070f 100%);
}

.os-login-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 300px;
    padding: 20px;
    background: #c0c0c0;
    border: 2px solid #fff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.os-login-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: #10287a;
    margin-bottom: 6px;
}

.os-login-box label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #333;
}

.os-login-box input {
    padding: 5px 6px;
    border: 1px solid #888;
    font-size: 13px;
}

.os-login-error {
    color: #a30000;
    font-size: 12px;
}

.tag-editor-app {
    display: flex;
    height: 100%;
    gap: 12px;
}

.tag-editor-left {
    flex: 0 0 45%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tag-editor-preview-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
}

.tag-editor-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tag-editor-filename {
    font-size: 12px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.tag-editor-left .row {
    flex-shrink: 0;
}

.tag-editor-left .row button {
    flex: 1;
}

.tag-editor-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tag-editor-canonical {
    font-size: 12px;
    color: #555;
    font-style: italic;
    flex-shrink: 0;
}

.tag-editor-right textarea {
    width: 100%;
    resize: vertical;
    font-family: inherit;
    font-size: 13px;
    padding: 4px 6px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.tag-editor-right .row {
    flex-shrink: 0;
}

.tag-editor-right .row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    flex: 1;
}

.tag-editor-right .row input[type="text"] {
    flex: 1;
    padding: 4px 6px;
}

.tag-chips {
    flex: 1;
    min-height: 60px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 6px;
    background: #fff;
    border: 1px solid #999;
    padding: 6px;
}

.chip {
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #888;
    background: #ece9d8;
    cursor: pointer;
    font-size: 12px;
    user-select: none;
}

.chip.active {
    background: #2d6cdf;
    border-color: #2d6cdf;
    color: #fff;
}

/* --- taskbar --- */

#taskbar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 32px;
    background: linear-gradient(180deg, #d8d8d8 0%, #b0b0b0 100%);
    border-top: 1px solid #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
    z-index: 20000;
    font-size: 12px;
    box-sizing: border-box;
}

#start-button {
    font-weight: bold;
    height: 24px;
}

.taskbar-windows {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    height: 22px;
}

.taskbar-window-button {
    flex-shrink: 0;
    max-width: 140px;
    height: 100%;
    padding: 0 8px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #c0c0c0;
    border: 1px solid #fff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    cursor: pointer;
}

.taskbar-window-button.active {
    background: #a0a0a0;
    border-color: #404040;
    border-right-color: #fff;
    border-bottom-color: #fff;
}

.taskbar-clock {
    margin-left: auto;
    height: 20px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #888;
    background: #fff;
    font-size: 12px;
}

.start-menu {
    position: absolute;
    left: 4px;
    bottom: 32px;
    width: 180px;
    background: #c0c0c0;
    border: 2px solid #fff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    box-shadow: 2px 2px 0 #000;
    padding: 4px 0;
}

.start-menu-item {
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    user-select: none;
}

.start-menu-item:hover {
    background: #2d6cdf;
    color: #fff;
}

.start-menu-separator {
    height: 1px;
    margin: 4px 2px;
    background: #808080;
    border-bottom: 1px solid #fff;
}

.context-menu {
    position: absolute;
    background: #c0c0c0;
    border: 2px solid #fff;
    border-right-color: #404040;
    border-bottom-color: #404040;
    box-shadow: 2px 2px 0 #000;
    padding: 4px 0;
    width: 160px;
    z-index: 20000;
}

.shutdown-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.shutdown-confirm-overlay[hidden] {
    display: none;
}

.shutdown-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

/* --- BIOS boot screen --- */

.boot-screen {
    position: fixed;
    inset: 0;
    z-index: 30000;
    background-color: #000;
    background-image: linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.78)), url("../assets/backgrounds/bios.png");
    background-size: cover;
    background-position: center;
    color: #6fd66f;
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    line-height: 1.5;
    padding: 32px;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
    text-shadow: 0 0 4px rgba(111, 214, 111, 0.6);
}

.boot-lines {
    white-space: pre-wrap;
}

.boot-line-warning {
    color: #e0c33f;
    text-shadow: 0 0 4px rgba(224, 195, 63, 0.6);
}

.boot-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    text-align: center;
}

.boot-prompt > div {
    margin-bottom: 6px;
}

.boot-cursor {
    animation: boot-cursor-blink 1s steps(1) infinite;
}

@keyframes boot-cursor-blink {
    50% {
        opacity: 0;
    }
}

/* --- settings app --- */

.settings-app {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.settings-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
}
