/* ── Mac OS 8 platinum, measured 1:1 off infinitemac.org's Mac OS 8.0.
   Menu bar + menus + window chrome for the boot desktop, plus the Apple
   menu apps. Built by core.js (_buildDesktopWindow) and macos8/macos8.js. ── */

@font-face {
    font-family: 'Charcoal';
    src: url('/macos8/fonts/charcoal.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'ChicagoFLF';
    src: url('/macos8/fonts/chicagoflf.woff2') format('woff2');
    font-display: swap;
}

:root {
    /* Appearance > Highlight Color rewrites these four */
    --m8-hi: #5454b3;
    --m8-hi-light: #8787da;
    --m8-hi-dark: #0000a5;
    --m8-hi-pale: #b3b3ff;
    --m8-hi-paler: #dadaff;
    --m8-font: Charcoal, ChicagoFLF, "Chicago", Geneva, "Helvetica Neue", Arial, sans-serif;
    --m8-small: Geneva, Verdana, "Helvetica Neue", Arial, sans-serif;
}
:root.m8-font-chicago { --m8-font: ChicagoFLF, Charcoal, "Chicago", Geneva, Arial, sans-serif; }

/* style.css zooms the whole page out on shorter screens (body zoom 0.82 /
   0.74). The Mac chrome undoes it so one Mac pixel stays one screen pixel,
   crisp like the emulator. Inside anything zoomed by this, CSS px = screen
   px, so macos8.js positions menus straight from clientX/Y. */
:root { --m8-s: 1; }
@media screen and (max-height: 1100px) { :root { --m8-s: calc(1 / 0.82); } }
@media screen and (max-height: 900px) { :root { --m8-s: calc(1 / 0.74); } }
#bootDesktopBar.mb, .mm, .m8-veil, .m8-balloon, .mw-tb,
.dsk-float-window.mw .dsk-win-resize-handle, .m8-app { zoom: var(--m8-s); }

/* ════════════════════════ menu bar ════════════════════════ */
#bootDesktopBar.mb {
    height: 20px;
    box-sizing: border-box;
    padding: 0 0 0 9px;
    gap: 0;
    background: #e7e7e7;
    border-bottom: 1px solid #000;
    box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #b3b3b3;
    font: 12px/19px var(--m8-font);
    font-weight: normal;
    color: #000;
    align-items: stretch;
}
.mb-title {
    position: relative;
    display: flex;
    align-items: center;
    height: 19px;
    padding: 0 10px;
    margin-right: -5px;
    white-space: nowrap;
    cursor: default;
    color: #000;
}
.mb-title.is-open {
    z-index: 1;
    color: #fff;
    background: var(--m8-hi);
    box-shadow: inset 0 1px 0 var(--m8-hi-light), inset 0 -1px 0 var(--m8-hi-dark);
}
.mb-title.is-blink {
    color: #000;
    background: transparent;
    box-shadow: none;
}
.mb-apple { padding: 0 7px 0 6px; }
.mb-apple img { display: block; width: 16px; height: 17px; image-rendering: pixelated; }
.mb-right {
    margin-left: auto;
    display: flex;
    align-items: stretch;
}
.mb-extras {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-right: 12px;
}
.mb-extras img { width: 16px; height: 16px; image-rendering: pixelated; }
.mb-extras #_bootLock { font-size: 11px; }
#bootDesktopBar.mb .strings-toggle-btn {
    height: 15px;
    margin: 0 10px 0 8px;
    padding: 0 5px;
    align-self: center;
    font: 10px/13px var(--m8-small);
}
.mb-clock {
    display: flex;
    align-items: center;
    padding: 0 10px 0 4px;
    white-space: nowrap;
}
.mb-app { padding: 0 9px; margin-right: 0; }
.mb-app img { display: block; width: 16px; height: 16px; image-rendering: pixelated; }

/* ════════════════════════ menus ════════════════════════ */
.mm {
    position: fixed;
    z-index: 600050;
    min-width: 60px;
    padding: 1px;
    background: #e7e7e7;
    border: 1px solid #000;
    border-top: 0;
    box-shadow: 1px 1px 0 #3f3f3f, inset 1px 1px 0 #fff, inset -1px -1px 0 #b3b3b3;
    font: 12px var(--m8-font);
    color: #000;
    cursor: default;
    user-select: none;
}
.mm.is-sub { border-top: 1px solid #000; }
.mm-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 16px;
    padding: 0 14px 0 18px;
    white-space: nowrap;
}
.mm.has-icons .mm-item { height: 18px; padding-left: 37px; }
.mm-check {
    position: absolute;
    left: 5px;
    width: 12px;
    font-family: ChicagoFLF, var(--m8-font);
}
.mm-icon {
    position: absolute;
    left: 19px;
    top: 1px;
    width: 16px;
    height: 16px;
    image-rendering: pixelated;
}
.mm-label { flex: 1; }
.mm-key {
    margin-left: 22px;
    min-width: 24px;
    font-family: ChicagoFLF, var(--m8-font);
}
.mm-key b { font-weight: normal; font-family: var(--m8-font); }
.mm-arrow {
    width: 0;
    height: 0;
    margin-left: 22px;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-color: transparent transparent transparent currentColor;
}
.mm-item.is-dis { color: #a5a5a5; }
.mm-item.is-hi {
    color: #fff;
    background: var(--m8-hi);
    box-shadow: inset 1px 0 0 var(--m8-hi-light);
}
.mm-item.is-blink { color: #000; background: transparent; box-shadow: none; }
.mm-sep {
    height: 6px;
    margin: 0 -1px;
    background: linear-gradient(#a5a5a5, #a5a5a5) 0 2px / 100% 1px no-repeat,
                linear-gradient(#fff, #fff) 0 3px / 100% 1px no-repeat;
}
.mm-item.is-style-bold .mm-label { font-weight: bold; }
.mm-item.is-style-italic .mm-label { font-style: italic; }
.mm-item.is-style-underline .mm-label { text-decoration: underline; }
.mm-item.is-style-outline .mm-label { color: #fff; -webkit-text-stroke: 1px #000; }
.mm-item.is-hi.is-style-outline .mm-label { -webkit-text-stroke-color: #fff; color: var(--m8-hi); }
.mm-item.is-style-shadow .mm-label { text-shadow: 1px 1px 0 #777; }
.mm-swatch {
    display: inline-block;
    width: 22px;
    height: 10px;
    margin-right: 8px;
    border: 1px solid #000;
    vertical-align: -1px;
}

/* right-click menus (desktop/Cyberdog/etc.) get the same look */
.boot-ctx-menu {
    min-width: 150px;
    padding: 1px 0;
    background: #e7e7e7;
    border: 1px solid #000;
    box-shadow: 1px 1px 0 #3f3f3f, inset 1px 1px 0 #fff, inset -1px -1px 0 #b3b3b3;
    font: 12px var(--m8-font);
}
.boot-ctx-menu .boot-dropdown-item {
    height: 16px;
    padding: 0 14px 0 18px;
    line-height: 16px;
}
.boot-ctx-menu .boot-dropdown-item:hover {
    color: #fff;
    background: var(--m8-hi);
    box-shadow: inset 1px 0 0 var(--m8-hi-light);
}
.boot-ctx-menu .boot-dropdown-item.disabled { color: #a5a5a5; }
.boot-ctx-menu .boot-dropdown-sep {
    height: 6px;
    margin: 0;
    background: linear-gradient(#a5a5a5, #a5a5a5) 0 2px / 100% 1px no-repeat,
                linear-gradient(#fff, #fff) 0 3px / 100% 1px no-repeat;
}

/* ════════════════════════ windows ════════════════════════ */
.dsk-float-window.mw {
    box-sizing: border-box;
    padding: 1px;
    background: #dadada;
    border: 1px solid #000;
    box-shadow: 1px 1px 0 #000, inset 1px 1px 0 #fff, inset -1px -1px 0 #b3b3b3;
    font-family: var(--m8-font);
    font-size: 12px;
}
.mw-tb {
    position: relative;
    display: flex;
    align-items: flex-start;
    flex: none;
    height: 18px;
    padding: 2px 2px 0;
    box-sizing: border-box;
}
.mw-box {
    flex: none;
    width: 13px;
    height: 13px;
    background: url('/macos8/ui/close.png') 0 0 / 13px 13px no-repeat;
    image-rendering: pixelated;
}
.mw-close { margin-right: 4px; }
.mw-close.is-down { background-image: url('/macos8/ui/close-pressed.png'); }
.mw-zoom { margin-left: 4px; background-image: url('/macos8/ui/zoom.png'); }
.mw-zoom.is-down { background-image: url('/macos8/ui/zoom-pressed.png'); }
.mw-collapse { margin-left: 3px; background-image: url('/macos8/ui/collapse.png'); }
.mw-collapse.is-down { background-image: url('/macos8/ui/collapse-pressed.png'); }
/* the engraved lines either side of the title: white rows start a pixel left
   of the gray ones, which is what makes them read as grooves */
.mw-grooves {
    flex: 1;
    min-width: 0;
    height: 12px;
    background:
        repeating-linear-gradient(to bottom, #fff 0 1px, transparent 1px 2px) 0 0 / calc(100% - 1px) 12px no-repeat,
        repeating-linear-gradient(to bottom, transparent 0 1px, #969696 1px 2px) 1px 0 / calc(100% - 1px) 12px no-repeat;
}
.mw-title {
    flex: none;
    max-width: calc(100% - 80px);
    height: 13px;
    padding: 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 12px/13px var(--m8-font);
    color: #000;
    pointer-events: none;
}
.mw-title .dsk-win-title { background: none !important; padding: 0 !important; }
.mw-body {
    margin: 1px 3px 3px;
    border: 1px solid #000;
    background: #dadada;
    box-shadow: -1px -1px 0 #b3b3b3, 1px 1px 0 #fff;
}
.dsk-float-window.mw .dsk-win-resize-handle {
    right: 1px;
    bottom: 1px;
    width: 15px;
    height: 15px;
    font-size: 0;
    color: transparent;
    text-shadow: none;
    background: url('/macos8/ui/grow.png') 0 0 / 16px 16px no-repeat;
    image-rendering: pixelated;
}
/* inactive: flat, no grooves, no boxes, gray frame + title */
.dsk-float-window.mw:not(.mw-active) {
    background: #e7e7e7;
    border-color: #777;
    box-shadow: 1px 1px 0 #777;
}
.dsk-float-window.mw:not(.mw-active) .mw-grooves,
.dsk-float-window.mw:not(.mw-active) .mw-box { visibility: hidden; }
.dsk-float-window.mw:not(.mw-active) .mw-title { color: #969696; }
.dsk-float-window.mw:not(.mw-active) .mw-body { border-color: #777; box-shadow: none; }
.dsk-float-window.mw:not(.mw-active) .dsk-win-resize-handle { background: none; }
/* collapsed (WindowShade): just the title bar */
.dsk-float-window.mw.dsk-win-shaded { height: auto !important; }
/* zoomed to the screen: no frame shadow past the edges */
.dsk-float-window.mw.dsk-win-maximized { box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #b3b3b3; }

/* outline drag/resize + open/close zoom rects: dotted 1px, inverts what's under */
.mw-ghost, .mw-zrect {
    position: fixed;
    z-index: 600040;
    box-sizing: border-box;
    border: 1px dotted #fff;
    mix-blend-mode: difference;
    pointer-events: none;
}
.mw-ghost::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 19px;
    border-top: 1px dotted #fff;
}
.mw-ghost.no-tb::after { display: none; }

/* platinum scrollbars for anything scrolling inside a window (+ the login editor's bg list) -- :where()
   keeps this at zero specificity so apps with their own bars keep them */
:where(.dsk-float-window.mw, .mirc-standalone .mirc-prof-bgwin) ::-webkit-scrollbar { width: 16px; height: 16px; background: #c0c0c0; }
:where(.dsk-float-window.mw, .mirc-standalone .mirc-prof-bgwin) ::-webkit-scrollbar-track {
    background: #c0c0c0;
    box-shadow: inset 1px 0 0 #000, inset 2px 1px 0 #969696, inset 3px 2px 0 #a5a5a5;
}
:where(.dsk-float-window.mw, .mirc-standalone .mirc-prof-bgwin) ::-webkit-scrollbar-track:horizontal {
    box-shadow: inset 0 1px 0 #000, inset 1px 2px 0 #969696, inset 2px 3px 0 #a5a5a5;
}
:where(.dsk-float-window.mw, .mirc-standalone .mirc-prof-bgwin) ::-webkit-scrollbar-thumb {
    border: 1px solid #000;
    border-right: 0;
    background:
        linear-gradient(to bottom, var(--m8-hi-paler) 0 1px, var(--m8-hi) 1px 2px, var(--m8-hi-paler) 2px 3px, var(--m8-hi) 3px 4px,
            var(--m8-hi-paler) 4px 5px, var(--m8-hi) 5px 6px, var(--m8-hi-paler) 6px 7px, var(--m8-hi) 7px 8px) center / 7px 8px no-repeat,
        var(--m8-hi-pale);
    box-shadow: inset 1px 1px 0 var(--m8-hi-paler), inset -1px -1px 0 var(--m8-hi-light);
}
:where(.dsk-float-window.mw, .mirc-standalone .mirc-prof-bgwin) ::-webkit-scrollbar-thumb:horizontal {
    border: 1px solid #000;
    border-bottom: 0;
    background:
        linear-gradient(to right, var(--m8-hi-paler) 0 1px, var(--m8-hi) 1px 2px, var(--m8-hi-paler) 2px 3px, var(--m8-hi) 3px 4px,
            var(--m8-hi-paler) 4px 5px, var(--m8-hi) 5px 6px, var(--m8-hi-paler) 6px 7px, var(--m8-hi) 7px 8px) center / 8px 7px no-repeat,
        var(--m8-hi-pale);
}
:where(.dsk-float-window.mw, .mirc-standalone .mirc-prof-bgwin) ::-webkit-scrollbar-button:single-button {
    display: block;
    width: 16px;
    height: 16px;
    background-color: #e7e7e7;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: inset 1px 0 0 #000, inset 2px 1px 0 #fff, inset -1px -1px 0 #cdcdcd;
}
:where(.dsk-float-window.mw, .mirc-standalone .mirc-prof-bgwin) ::-webkit-scrollbar-button:single-button:vertical:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4'%3E%3Cpath d='M0 4L4 0L8 4Z'/%3E%3C/svg%3E");
    border-bottom: 1px solid #000;
}
:where(.dsk-float-window.mw, .mirc-standalone .mirc-prof-bgwin) ::-webkit-scrollbar-button:single-button:vertical:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4'%3E%3Cpath d='M0 0L4 4L8 0Z'/%3E%3C/svg%3E");
    border-top: 1px solid #000;
}
:where(.dsk-float-window.mw, .mirc-standalone .mirc-prof-bgwin) ::-webkit-scrollbar-button:single-button:horizontal:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='8'%3E%3Cpath d='M4 0L0 4L4 8Z'/%3E%3C/svg%3E");
    box-shadow: inset 0 1px 0 #000, inset 1px 2px 0 #fff, inset -1px -1px 0 #cdcdcd;
    border-right: 1px solid #000;
}
:where(.dsk-float-window.mw, .mirc-standalone .mirc-prof-bgwin) ::-webkit-scrollbar-button:single-button:horizontal:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='8'%3E%3Cpath d='M0 0L4 4L0 8Z'/%3E%3C/svg%3E");
    box-shadow: inset 0 1px 0 #000, inset 1px 2px 0 #fff, inset -1px -1px 0 #cdcdcd;
    border-left: 1px solid #000;
}
:where(.dsk-float-window.mw, .mirc-standalone .mirc-prof-bgwin) ::-webkit-scrollbar-button:single-button:active { background-color: #969696; box-shadow: inset 1px 0 0 #000, inset 2px 1px 0 #666; }
:where(.dsk-float-window.mw, .mirc-standalone .mirc-prof-bgwin) ::-webkit-scrollbar-corner { background: #dadada; }
:where(.dsk-float-window.mw:not(.mw-active)) ::-webkit-scrollbar-thumb { background: #e7e7e7; box-shadow: none; border-color: #e7e7e7; }
:where(.dsk-float-window.mw:not(.mw-active)) ::-webkit-scrollbar-track { background: #e7e7e7; box-shadow: inset 1px 0 0 #777; }
:where(.dsk-float-window.mw:not(.mw-active)) ::-webkit-scrollbar-button:single-button { background-image: none; box-shadow: inset 1px 0 0 #777; }

.mb-left { display: flex; align-items: stretch; }
#bootDesktopBar.mb .bar-help { padding: 0 10px; margin: 0 -5px 0 0; }
#bootDesktopBar.mb .bar-help.help-open:not(.is-open) { color: #000; background: none; }

/* ════════════════════════ controls ════════════════════════ */
.m8-btn {
    position: relative;
    box-sizing: border-box;
    min-width: 58px;
    height: 20px;
    padding: 0 12px;
    font: 12px/18px var(--m8-font);
    color: #000;
    background: #e7e7e7;
    border: 1px solid #000;
    border-radius: 4px;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #969696, inset -2px -2px 0 #c0c0c0;
    cursor: default;
}
.m8-btn:active:not(:disabled) {
    color: #fff;
    background: #666;
    box-shadow: inset 1px 1px 0 #3f3f3f, inset -1px -1px 0 #777;
}
.m8-btn:disabled { color: #a5a5a5; border-color: #a5a5a5; box-shadow: none; }
/* default button: black ring, two lighter rings inside it */
.m8-btn.is-default {
    margin: 3px;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #969696, inset -2px -2px 0 #c0c0c0,
        0 0 0 1px #c0c0c0, 0 0 0 2px #e7e7e7, 0 0 0 3px #000;
}
.m8-btn.is-default:active { box-shadow: inset 1px 1px 0 #3f3f3f, 0 0 0 1px #c0c0c0, 0 0 0 2px #e7e7e7, 0 0 0 3px #000; }

.m8-check, .m8-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 12px var(--m8-font);
    cursor: default;
}
.m8-check input, .m8-radio input {
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    width: 12px;
    height: 12px;
    margin: 0;
    background: linear-gradient(135deg, #fff, #e7e7e7);
    border: 1px solid #000;
    box-shadow: inset -1px -1px 0 #b3b3b3;
}
.m8-radio input { border-radius: 50%; }
.m8-check input:checked {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M1 5l3 3 5-7' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center no-repeat, #e7e7e7;
}
.m8-radio input:checked {
    background: radial-gradient(circle, #000 0 2.5px, transparent 3px), linear-gradient(135deg, #fff, #e7e7e7);
}
.m8-check input:active, .m8-radio input:active { background-color: #969696; }

.m8-popup {
    position: relative;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    min-width: 120px;
    height: 20px;
    padding: 0 26px 0 8px;
    font: 12px var(--m8-font);
    color: #000;
    text-align: left;
    background: #e7e7e7;
    border: 1px solid #000;
    border-radius: 3px;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #969696, 1px 1px 0 #969696;
    cursor: default;
}
.m8-popup span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m8-popup i {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 18px;
    border-left: 1px solid #969696;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='11'%3E%3Cpath d='M0 4L3.5 0L7 4ZM0 7L3.5 11L7 7Z'/%3E%3C/svg%3E") center no-repeat;
}
.m8-field {
    box-sizing: border-box;
    height: 20px;
    padding: 1px 4px;
    font: 12px var(--m8-small);
    background: #fff;
    border: 1px solid #000;
    box-shadow: -1px -1px 0 #969696, 1px 1px 0 #fff;
    outline: none;
}
.m8-group {
    position: relative;
    margin: 10px 0 4px;
    padding: 12px 10px 8px;
    border: 1px solid #969696;
    box-shadow: inset 1px 1px 0 #fff, 1px 1px 0 #fff;
}
.m8-group > legend, .m8-group > .m8-group-title {
    position: absolute;
    top: -8px;
    left: 8px;
    padding: 0 3px;
    font: 12px var(--m8-font);
    background: #dadada;
}
.m8-pad { padding: 10px 12px !important; }

/* ════════════════════════ alerts ════════════════════════ */
.m8-veil { position: fixed; inset: 0; z-index: 600060; }
.m8-alert {
    position: absolute;
    left: 50%;
    top: 22%;
    transform: translateX(-50%);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px 20px;
    width: 360px;
    padding: 14px 14px 12px 22px;
    background: #f3f3f3;
    border: 1px solid #000;
    box-shadow: 1px 1px 0 #000, inset 1px 1px 0 #cdcdcd, inset 2px 2px 0 #fff, inset -1px -1px 0 #969696, inset -2px -2px 0 #c0c0c0;
    font: 12px/16px var(--m8-font);
    color: #000;
}
.m8-alert-icon { width: 32px; height: 32px; image-rendering: pixelated; }
.m8-alert-text { padding-top: 2px; }
.m8-alert-msg { font-weight: normal; }
.m8-alert-sub { margin-top: 10px; font: 10px/13px var(--m8-small); }
.m8-alert-btns {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}
.m8-alert-btns .is-left { margin-right: auto; }
/* dead-center variant, over everything (the login's standalone profile editor is z 2147483000) */
.m8-veil.m8-veil-center { z-index: 2147483600; }
.m8-veil-center .m8-alert { top: 50%; transform: translate(-50%, -50%); }

/* ════════════════════════ Balloon Help ════════════════════════ */
.m8-balloon {
    position: fixed;
    z-index: 600070;
    max-width: 210px;
    padding: 7px 10px;
    font: 10px/13px var(--m8-small);
    color: #000;
    background: #ffffe0;
    border: 1px solid #000;
    border-radius: 9px;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.35);
    pointer-events: none;
}
.m8-balloon b { display: block; margin-bottom: 3px; font: bold 10px var(--m8-small); }
.m8-balloon::before {
    content: '';
    position: absolute;
    left: -9px;
    top: -9px;
    width: 14px;
    height: 14px;
    background: #ffffe0;
    border-left: 1px solid #000;
    border-top: 1px solid #000;
    transform: skew(25deg, 25deg);
}
.m8-balloon.is-left::before { left: auto; right: -9px; transform: skew(-25deg, -25deg) scaleX(-1); }
.m8-balloon.is-up::before { top: auto; bottom: -9px; transform: skew(25deg, 25deg) scaleY(-1); }

/* Glippy's bubble as a balloon -- desktop only, main site keeps style.css.
   .boot-on = #bootScreen is up (core.js); body:has() restyled every span per DOM change */
body:is(.boot-on, #bootScreen) #clippyChatBubble {
    zoom: var(--m8-s);
    max-width: 210px;
    padding: 7px 10px 16px;
    background: #ffffe0;
    border: 1px solid #000;
    border-radius: 9px;
    box-shadow: none;
    filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.35));
}
body:is(.boot-on, #bootScreen) #clippyText {
    font: 10px/13px var(--m8-small);
    letter-spacing: 0;
    color: #000;
}
body:is(.boot-on, #bootScreen) #clippyGif.visible { animation-name: clippyPulseGlowOrange; }
@keyframes clippyPulseGlowOrange {
    0%   { filter: drop-shadow(0 0 4px #ff9a1f) drop-shadow(0 0 8px #e07000); }
    50%  { filter: drop-shadow(0 0 12px #ffb347) drop-shadow(0 0 22px #ff9a1f) drop-shadow(0 0 35px #c05a00); }
    100% { filter: drop-shadow(0 0 4px #ff9a1f) drop-shadow(0 0 8px #e07000); }
}
body:is(.boot-on, #bootScreen) #clippyTail {
    bottom: -11px;
    width: 12px;
    height: 12px;
    border: 0;
    background: #000;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}
body:is(.boot-on, #bootScreen) #clippyTail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #ffffe0;
    clip-path: polygon(1.5px 0, 11px 0, 11px 9.5px);
}
/* .glp-site: the naviOS_v1.15 "Welcome User;" glippy flips back to the main site's green bubble (style.css) */
body:is(.boot-on, #bootScreen) #clippyContainer.glp-site #clippyChatBubble {
    background: #001a0a;
    border: 1px solid #00ff66;
    border-radius: 0;
    box-shadow: 0 0 10px rgba(0,255,100,0.25), inset 0 0 8px rgba(0,255,100,0.04);
    filter: none;
}
body:is(.boot-on, #bootScreen) #clippyContainer.glp-site #clippyText {
    font: 10px/13px "Courier New", monospace;
    letter-spacing: 0.5px;
    color: #00ff99;
}
body:is(.boot-on, #bootScreen) #clippyContainer.glp-site #clippyTail {
    bottom: -8px;
    width: 0;
    height: 0;
    background: none;
    clip-path: none;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 8px solid #00ff66;
}
body:is(.boot-on, #bootScreen) #clippyContainer.glp-site #clippyTail::after { display: none; }
body:is(.boot-on, #bootScreen) #clippySkipHint,
body:is(.boot-on, #bootScreen) #clippyStepCounter {
    font-family: var(--m8-small) !important;
    letter-spacing: 0 !important;
    color: #555 !important;
}
body:is(.boot-on, #bootScreen) #clippySkipHint i::before { background: #000; box-shadow: none; }
body:is(.boot-on, #bootScreen) #clippyRepeatBtn,
body:is(.boot-on, #bootScreen) #clippyCloseBtn { font-family: var(--m8-small); color: #000; }
body:is(.boot-on, #bootScreen) #clippyRepeatBtn:hover span,
body:is(.boot-on, #bootScreen) #clippyCloseBtn:hover span {
    color: #fff;
    background: var(--m8-hi);
    text-shadow: none;
}

/* ════════════════════════ small Finder windows ════════════════════════ */
.m8-about { display: flex; gap: 12px; font: 11px/15px var(--m8-small); }
.m8-about img { width: 32px; height: 32px; image-rendering: pixelated; }
.m8-info .mw-body { background: #dadada; }
.m8-info-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #969696; box-shadow: 0 1px 0 #fff; font: 12px var(--m8-font); }
.m8-info-head img { width: 32px; height: 32px; image-rendering: pixelated; }
.m8-info-tab { border-collapse: collapse; font: 10px/15px var(--m8-small); }
.m8-info-tab th { padding-right: 8px; text-align: right; font-weight: bold; vertical-align: top; white-space: nowrap; }
.m8-info-tab .sp { height: 6px; }
.m8-info-cmt { margin-top: 8px; font: 10px var(--m8-small); }
.m8-info-cmt textarea { display: block; box-sizing: border-box; width: 100%; margin-top: 3px; font: 10px var(--m8-small); border: 1px solid #000; resize: none; }
.m8-clip { background: #fff !important; min-height: 120px; }
.m8-clip-type { margin: -10px -12px 8px; padding: 2px 8px; font: 10px var(--m8-small); background: #e7e7e7; border-bottom: 1px solid #000; }
.m8-clip-body { white-space: pre-wrap; font: 12px var(--m8-small); }

/* ════════════════════════ Stickies notes ════════════════════════ */
/* note colours: background, dark edge */
.stk-yellow { --stk-bg: #ffffb3; --stk-dk: #ffda00; }
.stk-blue   { --stk-bg: #dadaff; --stk-dk: #b3b3ff; }
.stk-green  { --stk-bg: #daffda; --stk-dk: #87ff87; }
.stk-pink   { --stk-bg: #ffdada; --stk-dk: #ffb3b3; }
.stk-purple { --stk-bg: #ffdaff; --stk-dk: #e7a5ff; }
.stk-gray   { --stk-bg: #f3f3f3; --stk-dk: #cdcdcd; }
.stk-bw     { --stk-bg: #ffffff; --stk-dk: #000000; }
.dsk-float-window.mw.stk-skin {
    padding: 0;
    background: var(--stk-bg);
    border: 1px solid var(--stk-dk);
    box-shadow: none;
}
.dsk-float-window.mw.stk-skin .mw-tb {
    height: 9px;
    padding: 0;
    align-items: stretch;
    background: repeating-conic-gradient(var(--stk-dk) 0 25%, var(--stk-bg) 0 50%) 0 0 / 2px 2px;
}
.dsk-float-window.mw.stk-skin .mw-grooves,
.dsk-float-window.mw.stk-skin .mw-title,
.dsk-float-window.mw.stk-skin .mw-collapse { display: none; }
.dsk-float-window.mw.stk-skin .mw-box {
    width: 7px;
    height: 7px;
    margin: 1px 0 0 2px;
    background: var(--stk-bg);
    border: 0;
    box-shadow: inset -1px -1px 0 #969696, inset 1px 1px 0 #fff;
}
.dsk-float-window.mw.stk-skin .mw-zoom {
    margin: 1px 2px 0 auto;
    background: linear-gradient(135deg, transparent 0 42%, #969696 42% 58%, transparent 58%), var(--stk-bg);
}
.dsk-float-window.mw.stk-skin .mw-box.is-down { background: var(--stk-dk); }
.dsk-float-window.mw.stk-skin .mw-body {
    margin: 0;
    border: 0;
    box-shadow: none;
    background: transparent !important;
}
.dsk-float-window.mw.stk-skin .dsk-win-resize-handle {
    right: 1px;
    bottom: 1px;
    width: 9px;
    height: 9px;
    background: linear-gradient(#969696, #969696) 3px 0 / 6px 1px no-repeat,
        linear-gradient(#969696, #969696) 3px 0 / 1px 4px no-repeat,
        linear-gradient(#969696, #969696) 0 3px / 4px 1px no-repeat,
        linear-gradient(#969696, #969696) 0 3px / 1px 6px no-repeat,
        linear-gradient(#969696, #969696) 0 8px / 9px 1px no-repeat,
        linear-gradient(#969696, #969696) 8px 0 / 1px 9px no-repeat;
}
/* not the front note: no title strip, no boxes, just the paper */
.dsk-float-window.mw.stk-skin:not(.mw-active) {
    border-color: transparent;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 var(--stk-dk);
}
.dsk-float-window.mw.stk-skin:not(.mw-active) .mw-tb { background: transparent; }
.dsk-float-window.mw.stk-skin:not(.mw-active) .dsk-win-resize-handle { display: none; }

/* Finder windows: white well, item-count header, scroll bars always shown */
.dsk-float-window.mw-finder .mw-body {
    background: #fff;
    overflow: scroll !important;
    box-shadow: -1px -1px 0 #b3b3b3, 1px 1px 0 #fff, inset 1px 1px 0 #fff;
}
.mw-fhead {
    position: sticky;
    top: -14px;
    z-index: 2;
    margin: -14px -16px 12px;
    padding: 2px 6px 3px;
    text-align: center;
    font: 10px/13px var(--m8-small);
    color: #000;
    background: #e7e7e7;
    border-bottom: 1px solid #000;
    box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #b3b3b3;
    white-space: nowrap;
}
.dsk-float-window.mw-finder:not(.mw-active) .mw-fhead { color: #969696; border-bottom-color: #777; }

/* ════════════════════════ app bodies (1:1 Mac px via .m8-app) ════════════════════════ */
.m8-app { font: 12px var(--m8-font); color: #000; }
.m8-form { font: 12px var(--m8-font); }
.m8-form-row { display: flex; align-items: center; gap: 8px; min-height: 26px; }
.m8-form-label { min-width: 52px; text-align: right; }
.m8-form-btns { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 14px; }
.m8-list {
    box-sizing: border-box;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #000;
    box-shadow: -1px -1px 0 #969696, 1px 1px 0 #fff;
}
.m8-list-row { padding: 0 6px; font: 12px/16px var(--m8-font); white-space: nowrap; cursor: default; }
.m8-list-row.is-sel { color: #fff; background: #000; }
.m8-list-row.is-dim { color: #969696; }

/* Stickies */
.stk-body { display: flex !important; padding: 0 !important; overflow: hidden !important; }
.stk-text {
    flex: 1;
    min-height: 0;
    padding: 3px 5px 10px;
    overflow: auto;
    outline: none;
    font: 10px/13px var(--m8-small);
    color: #000;
    word-wrap: break-word;
    cursor: text;
    user-select: text;
}
.stk-text::-webkit-scrollbar { width: 0; height: 0; }
.stk-skin.stk-bw .stk-text { color: #000; }

/* Note Pad: white page, dog-ear bottom left, page number */
.np-body { display: flex !important; flex-direction: column; background: #fff !important; overflow: hidden !important; }
.np-text {
    flex: 1;
    min-height: 0;
    padding: 6px 8px;
    border: 0;
    outline: none;
    resize: none;
    font: 12px/16px var(--m8-small);
    background: #fff;
}
.np-foot { position: relative; flex: none; height: 26px; border-top: 1px solid #fff; }
.np-corner {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #fff 0 48%, #000 48% 52%, #cdcdcd 52%, #f3f3f3);
    border-right: 1px solid #000;
    border-top: 1px solid #000;
    cursor: default;
}
.np-num { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; font: 10px var(--m8-small); }

/* Calculator: the old desk-accessory frame -- black, rounded, white title */
.dsk-float-window.mw.calc-skin {
    padding: 0;
    background: #000;
    border: 1px solid #000;
    border-radius: 6px;
    box-shadow: 1px 1px 0 #000;
}
.dsk-float-window.mw.calc-skin .mw-tb { height: 19px; padding: 3px 6px 0; }
.dsk-float-window.mw.calc-skin .mw-grooves,
.dsk-float-window.mw.calc-skin .mw-zoom,
.dsk-float-window.mw.calc-skin .mw-collapse { display: none; }
.dsk-float-window.mw.calc-skin .mw-close { width: 11px; height: 11px; background: none; border: 1px solid #fff; margin-right: 10px; }
.dsk-float-window.mw.calc-skin .mw-close.is-down { background: #fff; }
.dsk-float-window.mw.calc-skin .mw-title { color: #fff; font-weight: normal; padding: 0; }
.dsk-float-window.mw.calc-skin .mw-body {
    margin: 0 3px 3px;
    padding: 8px 6px 6px !important;
    border: 0;
    border-radius: 0 0 4px 4px;
    background: repeating-conic-gradient(#dadada 0 25%, #c0c0c0 0 50%) 0 0 / 2px 2px;
    box-shadow: none;
}
.calc-disp {
    margin: 0 4px 6px;
    padding: 0 4px;
    height: 18px;
    font: 12px/18px var(--m8-small);
    text-align: right;
    background: #fff;
    border: 1px solid #000;
    overflow: hidden;
}
.calc-keys { display: grid; grid-template-columns: repeat(4, 19px); grid-auto-rows: 17px; gap: 5px 5px; justify-content: center; }
.calc-key {
    padding: 0;
    font: 11px var(--m8-small);
    color: #000;
    background: #fff;
    border: 1px solid #000;
    box-shadow: 2px 2px 0 #000;
    cursor: default;
}
.calc-key.is-tall { grid-row: span 2; }
.calc-key.is-wide { grid-column: span 2; text-align: left; padding-left: 6px; }
.calc-key:active, .calc-key.is-down { transform: translate(2px, 2px); box-shadow: none; background: #000; color: #fff; }

/* Key Caps */
.kc-body { padding: 10px 12px 12px !important; background: repeating-conic-gradient(#e7e7e7 0 25%, #dadada 0 50%) 0 0 / 2px 2px !important; }
.kc-field {
    position: relative;
    height: 26px;
    margin: 0 30px 14px;
    padding: 0 6px;
    font: 18px/26px var(--m8-font);
    background: #fff;
    border: 2px solid #000;
    white-space: nowrap;
    overflow: hidden;
}
.kc-caret { display: inline-block; width: 1px; height: 18px; margin-left: 1px; vertical-align: -3px; background: #000; animation: kcBlink 1.1s steps(1) infinite; }
@keyframes kcBlink { 50% { opacity: 0; } }
.kc-board { display: flex; gap: 14px; }
.kc-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.kc-row { display: flex; gap: 2px; }
.kc-key {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    height: 18px;
    font: 12px var(--m8-font);
    background: #e7e7e7;
    border: 1px solid #000;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #969696;
    cursor: default;
}
.kc-key b { font-weight: normal; }
.kc-key.is-down { color: #fff; background: #000; box-shadow: none; }
.kc-pad { flex: none; display: grid; grid-template-columns: repeat(4, 19px); grid-auto-rows: 18px; gap: 2px; align-self: flex-end; }
.kc-pad .kc-key.is-tall { grid-row: span 2; height: auto; }
.kc-pad .kc-key.is-wide { grid-column: span 2; }

/* Scrapbook */
.sb-body { padding: 10px 10px 12px !important; background: repeating-conic-gradient(#e7e7e7 0 25%, #dadada 0 50%) 0 0 / 2px 2px !important; }
.sb-view {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid #000;
    box-shadow: 2px 2px 0 #969696;
}
.sb-view img { max-width: 100%; max-height: 100%; }
.sb-intro { align-self: stretch; padding: 10px 14px; font: 12px/17px Georgia, "Times New Roman", serif; }
.sb-intro p { margin: 0 0 8px; }
.sb-intro ul { margin: 0 0 8px; padding-left: 20px; }
.sb-intro li { margin-bottom: 6px; }
.sb-cap { font-size: 18px; font-weight: bold; }
.sb-ind { padding-left: 20px; }
.sb-snd { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 12px var(--m8-font); }
.sb-snd img { width: 32px; height: 32px; image-rendering: pixelated; }
.sb-snd em { font: 10px var(--m8-small); color: #777; font-style: normal; }
.sb-scroll { width: 100%; margin: 10px 0 8px; }
.sb-info { padding: 3px 6px; font: 10px/13px var(--m8-small); background: #fff; border: 1px solid #000; box-shadow: -1px -1px 0 #969696; }

/* SimpleSound */
.ss-list { height: 100px; }
.ss-btns { display: flex; justify-content: space-between; margin-top: 12px; }

/* Chooser */
.ch-body { display: flex !important; flex-direction: row !important; gap: 12px; background: #fff !important; }
.ch-left { width: 200px; height: 260px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; padding: 8px; }
.ch-item { width: 86px; display: flex; flex-direction: column; align-items: center; gap: 2px; font: 10px var(--m8-small); text-align: center; cursor: default; }
.ch-item img { width: 32px; height: 32px; image-rendering: pixelated; }
.ch-item.is-sel span { color: #fff; background: #000; }
.ch-item.is-sel img { filter: brightness(0.55); }
.ch-right { flex: 1; display: flex; flex-direction: column; gap: 6px; padding-left: 12px; border-left: 1px solid #969696; }
.ch-prompt { font: 12px var(--m8-font); min-height: 16px; }
.ch-pick { height: 150px; }
.ch-act { display: flex; justify-content: flex-end; gap: 8px; min-height: 28px; }
.ch-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; border-top: 1px solid #969696; font: 12px var(--m8-font); }
.ch-at { display: flex; flex-direction: column; gap: 2px; }
.ch-ver { margin-left: auto; font: 10px var(--m8-small); }

/* Find File */
.ff-body { display: flex !important; flex-direction: column; gap: 10px; }
.ff-row { display: flex; align-items: center; gap: 8px; }
.ff-row b { font-weight: normal; }
.ff-crit { padding: 8px; border: 1px solid #969696; box-shadow: inset 1px 1px 0 #fff, 1px 1px 0 #fff; }
.ff-q { flex: 1; }
.ff-btns { justify-content: space-between; }
.ff-res { display: flex !important; flex-direction: column; background: #fff !important; }
.ff-head, .ff-item { display: grid; grid-template-columns: 2fr 1.2fr 2fr; gap: 6px; padding: 0 6px; font: 10px/16px var(--m8-small); white-space: nowrap; }
.ff-head { background: #e7e7e7; border-bottom: 1px solid #000; font-weight: bold; }
.ff-item span { overflow: hidden; text-overflow: ellipsis; }
.ff-item img { width: 16px; height: 16px; vertical-align: -4px; margin-right: 4px; object-fit: contain; }
.ff-item.is-sel { color: #fff; background: var(--m8-hi); }
.ff-list { flex: 1; overflow-y: auto; min-height: 0; }
.ff-path { flex: none; padding: 2px 6px; font: 10px var(--m8-small); background: #e7e7e7; border-top: 1px solid #000; min-height: 14px; }
.dsk-float-window.mw.calc-skin .mw-title { max-width: none; flex: 1; text-align: left; overflow: visible; }

/* Jigsaw Puzzle */
.jig-body { position: relative; overflow: hidden !important; background: repeating-conic-gradient(#dadada 0 25%, #c0c0c0 0 50%) 0 0 / 2px 2px !important; }
.jig-board {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #000;
    box-shadow: inset 2px 2px 0 #969696, 2px 2px 0 #969696;
}
.jig-ghost { width: 100%; height: 100%; opacity: 0; display: block; transition: opacity .2s; }
.jig-piece { position: absolute; cursor: default; filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.45)); }
.jig-piece.is-placed { filter: none; pointer-events: none; }

/* Graphing Calculator */
.gc-body { display: flex !important; flex-direction: column; background: #fff !important; overflow: hidden !important; }
.gc-eq { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 8px; background: #e7e7e7; border-bottom: 1px solid #000; }
.gc-in { flex: 1; font: italic 15px "Times New Roman", Times, serif; padding: 2px 6px; border: 1px solid #969696; background: #fff; outline: none; }
.gc-err { font: 10px var(--m8-small); color: #b30000; }
.gc-cv { flex: 1; min-height: 0; width: 100%; display: block; }

/* Apple System Profiler */
.asp-body { display: flex !important; flex-direction: column; background: #dadada !important; overflow: hidden !important; }
.asp-tabs { flex: none; display: flex; gap: 0; padding: 6px 8px 0; border-bottom: 1px solid #000; }
.asp-tab, .cp-tab {
    padding: 2px 10px 3px;
    margin-right: -1px;
    font: 12px var(--m8-font);
    background: #c0c0c0;
    border: 1px solid #000;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    box-shadow: inset 1px 1px 0 #e7e7e7;
    cursor: default;
}
.asp-tab.is-on, .cp-tab.is-on { position: relative; top: 1px; background: #dadada; box-shadow: inset 1px 1px 0 #fff; }
.asp-pane { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px; background: #fff; margin: 0 8px 8px; border: 1px solid #000; border-top: 0; }
.asp-sec { margin-bottom: 8px; font: 10px/14px var(--m8-small); }
.asp-sec > b { font: 12px var(--m8-font); }
.asp-sec table { margin-left: 22px; border-collapse: collapse; }
.asp-sec td:first-child { padding-right: 10px; color: #444; white-space: nowrap; vertical-align: top; }
.asp-sec.is-shut table { display: none; }
.asp-disc { display: inline-block; width: 0; height: 0; margin: 0 6px 0 2px; border-style: solid; border-width: 6px 5px 0 5px; border-color: #000 transparent transparent; vertical-align: 1px; cursor: default; }
.asp-sec.is-shut .asp-disc { border-width: 5px 0 5px 6px; border-color: transparent transparent transparent #000; vertical-align: -1px; }
.asp-list { width: 100%; border-collapse: collapse; font: 10px/15px var(--m8-small); }
.asp-list th { text-align: left; background: #e7e7e7; border-bottom: 1px solid #000; padding: 0 4px; }
.asp-list td { padding: 0 4px; border-bottom: 1px solid #f3f3f3; white-space: nowrap; }

/* AppleCD Audio Player */
.cd-body { padding: 0 !important; background: #444 !important; overflow: visible !important; }
.cd-face { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 8px 10px; padding: 10px; background: linear-gradient(#5a5a5a, #3a3a3a); }
.cd-lcd { grid-row: span 2; padding: 4px 8px; background: #0b2a10; border: 2px solid #111; box-shadow: inset 1px 1px 3px #000; color: #4dff6b; font: 10px var(--m8-small); }
.cd-lcd-top { display: flex; justify-content: space-between; opacity: 0.85; }
.cd-lcd-big { display: flex; justify-content: space-between; margin-top: 3px; font: bold 22px/26px "Courier New", monospace; letter-spacing: 1px; text-shadow: 0 0 4px rgba(77,255,107,0.6); }
.cd-btns { display: grid; grid-template-columns: repeat(3, 34px); gap: 4px; }
.cd-b {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    font: 10px var(--m8-small);
    color: #000;
    background: linear-gradient(#e7e7e7, #b3b3b3);
    border: 1px solid #000;
    border-radius: 3px;
    box-shadow: inset 1px 1px 0 #fff;
    cursor: default;
    user-select: none;
}
.cd-b.is-down, .cd-b.is-on { background: linear-gradient(#777, #9a9a9a); color: #fff; box-shadow: inset 1px 1px 0 #555; }
.cd-b.is-sm { height: 16px; padding: 0 6px; }
.cd-vol { grid-column: 2; width: 110px; }
.cd-modes { grid-column: 1 / -1; display: flex; gap: 4px; }
.cd-list { max-height: 150px; overflow-y: auto; background: #fff; border-top: 2px solid #111; }
.cd-row { display: flex; gap: 10px; padding: 0 8px; font: 10px/16px var(--m8-small); cursor: default; }
.cd-row.is-sel { color: #fff; background: #000; }
.cd-yt { position: fixed; left: -10px; top: -10px; width: 2px; height: 2px; opacity: 0; pointer-events: none; border: 0; }

/* Apple Video Player */
.avp-body { padding: 0 !important; background: #000 !important; overflow: hidden !important; }
.avp-screen { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #000; overflow: hidden; }
.avp-noise, .avp-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.avp-osd { position: absolute; left: 10px; top: 8px; font: bold 14px "Courier New", monospace; color: #3cff3c; text-shadow: 1px 1px 0 #000; transition: opacity .3s; }
.avp-ctl { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: #dadada; border-top: 1px solid #000; font: 12px var(--m8-font); }
.avp-b { width: 22px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 9px; background: #e7e7e7; border: 1px solid #000; border-radius: 3px; box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #969696; cursor: default; }
.avp-b:active { background: #666; color: #fff; }
.avp-sp { flex: 1; }
.avp-vol { width: 90px; }

/* text windows (read-mes) */
.tw-body { background: #fff !important; overflow-y: auto !important; }
.tw-text { padding: 10px 12px; white-space: pre-wrap; font: 12px/16px var(--m8-small); user-select: text; }

/* progress bar (File Sharing startup) */
.m8-progress { margin-top: 10px; }
.m8-progress-bar { height: 10px; background: #fff; border: 1px solid #000; box-shadow: inset 1px 1px 0 #969696; }
.m8-progress-bar i { display: block; width: 0; height: 100%; background: var(--m8-hi); box-shadow: inset 0 1px 0 var(--m8-hi-pale); transition: width .2s; }

/* control panels */
.cp-body { font: 12px var(--m8-font); }
.cp-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 24px; }
.cp-line > .m8-group { flex: 1; }
.cp-radios { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.cp-slider input { width: 180px; }
.cp-ends { display: flex; justify-content: space-between; width: 180px; font: 9px var(--m8-small); }
.cp-note { font: 10px/13px var(--m8-small); max-width: 300px; }
.cp-short { height: 98px; min-width: 140px; }
.cp-alerts { height: 100px; }
.cp-tabs { display: flex; padding-left: 6px; border-bottom: 1px solid #000; }
.cp-pane { padding: 10px; border: 1px solid #000; border-top: 0; box-shadow: inset 1px 0 0 #fff; }
.cp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font: 12px var(--m8-font); }
.cp-head img { width: 32px; height: 32px; image-rendering: pixelated; }
.m8-btn.is-small { min-width: 30px; padding: 0 6px; }
.dp-mon { width: 200px; height: 140px; margin: 0 auto 6px; padding: 10px 10px 18px; background: #c0c0c0; border: 1px solid #000; border-radius: 6px; box-shadow: inset 2px 2px 0 #e7e7e7, inset -2px -2px 0 #777; }
.dp-preview { width: 100%; height: 100%; border: 1px solid #000; }
.dp-name { text-align: center; margin-bottom: 6px; font: 12px var(--m8-font); }
.dp-list { width: 200px; height: 80px; }
.dt-now { display: flex; gap: 30px; margin-bottom: 4px; }
.dt-now div { display: flex; flex-direction: column; gap: 2px; }
.dt-now span { padding: 2px 8px; font: 12px var(--m8-small); background: #fff; border: 1px solid #000; }
.em-list { height: 190px; padding: 2px 4px; margin: 6px 0; }
.em-row { display: block; line-height: 18px; }
.ln-body { display: flex !important; flex-wrap: wrap; align-content: flex-start; gap: 2px; background: #e7e7e7 !important; }
.ln-btn {
    width: 66px;
    height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font: 9px/10px var(--m8-small);
    text-align: center;
    background: #dadada;
    border: 1px solid #969696;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #b3b3b3;
    cursor: default;
    overflow: hidden;
}
.ln-btn img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.ln-btn.is-down { background: #969696; box-shadow: inset 1px 1px 0 #666; }

/* Apple menu folders as windows (Submenus off) */
.m8-items { display: flex !important; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.m8-items-icon { width: 76px; display: flex; flex-direction: column; align-items: center; gap: 2px; font: 9px/11px var(--m8-small); text-align: center; cursor: default; }
.m8-items-icon img { width: 32px; height: 32px; image-rendering: pixelated; }
.m8-items-icon.is-sel span { color: #fff; background: #000; }

/* Control Strip, bottom left */
/* Control Strip, bottom left. Drawn in Mac pixels like everything else, then
   doubled (crisp, pixelated) so it's big enough to actually hit. */
.m8-strip {
    position: fixed;
    left: 0;
    bottom: 10px;
    z-index: 599000;
    display: flex;
    align-items: stretch;
    height: 20px;
    zoom: calc(var(--m8-s) * 2);
    image-rendering: pixelated;
}
/* the modules' strip: square left (it runs off the screen edge) */
.cs-end, .cs-mods {
    background: #dadada;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #969696, 0 1px 0 rgba(0,0,0,0.35);
}
.m8-strip.is-shut .cs-mods, .m8-strip.is-shut .cs-end { display: none; }
.cs-end { width: 6px; border-right: 1px solid #969696; background: repeating-linear-gradient(to bottom, #fff 0 1px, #969696 1px 2px) 2px 3px / 2px 14px no-repeat, #dadada; }
.cs-mods { display: flex; }
.cs-mod { display: flex; align-items: center; gap: 2px; padding: 0 4px; border-right: 1px solid #969696; box-shadow: 1px 0 0 #fff; cursor: default; }
.cs-mod:hover { background: #e7e7e7; }
.cs-mod:active, .cs-mod.is-open { background: #969696; box-shadow: inset 1px 1px 0 #666; }
.cs-mod img { width: 16px; height: 16px; image-rendering: pixelated; }
.cs-mod i { width: 0; height: 0; border-style: solid; border-width: 3px 0 3px 3px; border-color: transparent transparent transparent #000; }
/* the round tab on the end: click to tuck the strip away or pull it back out */
.cs-tab {
    box-sizing: border-box;
    width: 16px;
    background:
        repeating-linear-gradient(to right, #fff 0 1px, #777 1px 2px, transparent 2px 3px) 3px 5px / 6px 8px no-repeat,
        linear-gradient(to bottom, #f3f3f3, #c0c0c0);
    border: 1px solid #000;
    border-radius: 0 10px 10px 0;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #969696, 1px 1px 0 rgba(0,0,0,0.35);
    cursor: default;
}
.cs-tab:hover { background-color: #e7e7e7; }
.cs-tab:active { background: linear-gradient(to bottom, #969696, #b3b3b3); box-shadow: inset 1px 1px 0 #666; }
.m8-strip.is-shut .cs-tab { border-left: 0; }

/* CloseView White on Black and Monitors bit depth: an overlay that filters
   what's under it. A filter on html/body would make body the containing
   block for every fixed element (bar, windows) and the page would scroll. */
#m8Screen { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; }
.asp-tab, .cp-tab { white-space: nowrap; }
.ln-body { flex-direction: row !important; max-height: 300px; overflow-y: auto !important; }
.m8-group > .m8-check, .m8-group > .m8-radio { display: flex; margin: 3px 0; }
/* platinum slider: grooved track, lavender-edged thumb with grip lines */
.m8-app input[type=range], .m8-alert input[type=range], .qv-app input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    height: 16px;
    background: transparent;
    cursor: default;
}
.m8-app input[type=range]::-webkit-slider-runnable-track,
.qv-app input[type=range]::-webkit-slider-runnable-track {
    height: 4px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 2px;
    box-shadow: inset 1px 1px 0 #969696;
}
.m8-app input[type=range]::-webkit-slider-thumb,
.qv-app input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 11px;
    height: 15px;
    margin-top: -6px;
    background:
        linear-gradient(to right, transparent 3px, var(--m8-hi) 3px 4px, transparent 4px 5px, var(--m8-hi) 5px 6px, transparent 6px 7px, var(--m8-hi) 7px 8px, transparent 8px) center / 100% 7px no-repeat,
        linear-gradient(var(--m8-hi-paler), var(--m8-hi-pale));
    border: 1px solid #000;
    border-radius: 2px 2px 6px 6px;
    box-shadow: inset 1px 1px 0 #fff;
}
.m8-app input[type=range]::-moz-range-track,
.qv-app input[type=range]::-moz-range-track { height: 4px; background: #fff; border: 1px solid #000; }
.m8-app input[type=range]::-moz-range-thumb,
.qv-app input[type=range]::-moz-range-thumb { width: 9px; height: 13px; background: var(--m8-hi-pale); border: 1px solid #000; border-radius: 2px; }
/* the site's own table/text colours shouldn't reach into Mac windows */
.m8-app table, .m8-app th, .m8-app td { color: inherit; }
.m8-app { color: #000; }
.mm-item.is-style-hidden .mm-icon { opacity: 0.4; }

/* the menu bar and its menus are drawn a bit bigger than 1:1 so they read
   comfortably on modern screens; menus.js divides positions by this */
:root { --m8-bar: 1.4; }
#bootDesktopBar.mb { zoom: calc(var(--m8-s) * var(--m8-bar)); }
.mm.is-big { zoom: calc(var(--m8-s) * var(--m8-bar)); }

/* js-dos (DOOM etc.) loads a page-wide CSS reset that squeezes every <img>
   to its box (img{max-width:100%;height:auto}) -- desktop icons are wider
   than their 32px glyph box on purpose, so they'd shrink */
.dsk-icon img, .dsk-icon-glyph img, .mm img, .mb-title img { max-width: none; }

/* ════════════════════════ startup screen + login ════════════════════════ */
/* core.js _runNaviBootSplash: the "Welcome to" box over the desktop's default
   background, then Starting Up with the bar + extension icons */
.m8-boot {
    position: fixed;
    inset: 0;
    z-index: 900000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    zoom: var(--m8-s);
    /* no backdrop of its own: the desktop's default background (#bootScreen's
       purple tile) shows straight through, the whole way */
    background: none;
}
.m8-boot-box {
    zoom: var(--m8-bar);
    width: 420px;
    box-sizing: border-box;
    padding: 26px 34px 14px;
    text-align: center;
    background: #dadada;
    border: 1px solid #000;
    /* same platinum bevel as the login dialog */
    box-shadow: 1px 1px 0 #000, inset 1px 1px 0 #cdcdcd, inset 2px 2px 0 #fff, inset -1px -1px 0 #969696, inset -2px -2px 0 #c0c0c0;
    font: 12px var(--m8-font);
    color: #000;
}
.m8-boot-panel {
    height: 222px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border: 1px solid #000;
    box-shadow: -1px -1px 0 #969696, 1px 1px 0 #fff;
}
.m8-boot-panel img { zoom: 1.3225; max-width: 90%; max-height: 92%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.m8-boot-cap { margin-top: 16px; min-height: 16px; }
.m8-boot-bar {
    visibility: hidden;
    width: 160px;
    height: 10px;
    margin: 6px auto 0;
    background: #ccccff;
    border: 1px solid #000;
    box-shadow: -1px -1px 0 #969696, 1px 1px 0 #fff;
}
.m8-boot.is-starting .m8-boot-bar { visibility: visible; }
.m8-boot-bar > div { width: 0; height: 100%; background: #666; transition: width 0.15s ease; }
.m8-boot-detail {
    height: 13px;
    margin-top: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font: 9px/13px var(--m8-small);
    color: #444;
}
/* extension icons along the bottom, new rows going up like the real ones */
.m8-boot-parade {
    position: absolute;
    left: 3px;
    right: 3px;
    bottom: 4px;
    zoom: var(--m8-bar);
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 4px 6px;
    pointer-events: none;
}
.m8-boot-parade img { width: 32px; height: 32px; image-rendering: pixelated; }

/* login gate: AppleShare "Connect to the file server as:" dialog */
#loginWindow.m8-login {
    position: relative;
    zoom: calc(var(--m8-s) * var(--m8-bar));
    width: 340px;
    box-sizing: border-box;
    padding: 16px 16px 10px 18px;
    background: #dadada;
    border: 1px solid #000;
    box-shadow: 1px 1px 0 #000, inset 1px 1px 0 #cdcdcd, inset 2px 2px 0 #fff, inset -1px -1px 0 #969696, inset -2px -2px 0 #c0c0c0;
    font: 12px var(--m8-font);
    color: #000;
}
.m8-login-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; line-height: 16px; }
.m8-login-head img { flex: none; width: 32px; height: 32px; image-rendering: pixelated; }
.m8-login-head b { font-weight: normal; }
.m8-login-kind { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px 46px; }
.m8-login-row { display: flex; align-items: center; gap: 8px; margin: 0 0 8px 46px; }
.m8-login-row span { width: 66px; text-align: right; }
.m8-login-row input { flex: 1; min-width: 0; height: 20px; }
.m8-login-form.is-guest .m8-login-row { opacity: 0.45; }
.m8-login-note { margin: -2px 0 14px 120px; font: 9px var(--m8-small); color: #444; }
.m8-login-btns { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.m8-login-btns .is-left { margin-right: auto; }
/* MAKE / UPDATE PROFILE!!! -- red [CYLN] sweep (core.js _loginProfPaint), bold so it reads */
.m8-login-prof { font-weight: bold; letter-spacing: 0.4px; white-space: nowrap; }
.m8-login-age { margin-top: 10px; padding-top: 6px; border-top: 1px solid #c0c0c0; text-align: center; font: 9px var(--m8-small); color: #444; }
/* underline = the tutorials' scrolling rainbow bar (.wsn-rainbow, keyframes in style.css) */
.m8-login-age-t { position: relative; display: inline-block; padding-bottom: 5px; font: bold 12px var(--m8-font); color: #000; }   /* desktop font */
.m8-login-age-t::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: repeating-linear-gradient(90deg, #ff3355 0, #ff9a00 60px, #ffe14a 120px, #33ff88 180px, #2ee6ff 240px, #6a7dff 300px, #c45cff 360px, #ff3355 420px);
    background-size: 420px 100%;
    animation: wsnRainbow 3.5s steps(42) infinite;
}
@media (prefers-reduced-motion: reduce) { .m8-login-age-t::after { animation: none; } }
