body {
    margin: 0;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
        "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: #282c34;
}

body,
html,
#root {
    height: 100%;
    width: 100%;
}

code {
    font-family:
        source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
}

.App {
    display: flex;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    height: auto;
    justify-content: center;
    min-height: 100%;
    min-width: 100%;
    width: auto;
}

.App.top-align {
    justify-content: start;
}

.MacKeyboard {
    --key-bg-color: hsl(0deg 0% 95%);
    --key-bg-color-active: hsl(0deg 0% 85%);
    --key-border-color-light: hsl(0deg 0% 100%);
    --key-border-color-dark: hsl(0deg 0% 70%);
    --key-text-color: hsl(0deg 0% 20%);
    --keyboard-bg-color: hsl(0deg 0% 88%);

    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--keyboard-bg-color);
    padding: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    z-index: 1;
}

.MacKeyboard-Row {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    justify-content: center;
}

.MacKeyboard-Row:last-child {
    margin-bottom: 0;
}

.MacKeyboard-Key {
    flex: 1;
    min-width: 0;
    height: 42px;
    border: none;
    border-radius: 5px;
    background: var(--key-bg-color);
    color: var(--key-text-color);
    font-size: 20px;
    font-weight: 400;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
        sans-serif;
    cursor: pointer;
    position: relative;

    /* Traditional 3D beveled appearance (light from upper left) */
    box-shadow:
        inset 1px 1px 0 var(--key-border-color-light),
        inset -1px -1px 0 var(--key-border-color-dark);

    /* Prevent iOS tap highlight */
    -webkit-tap-highlight-color: transparent;

    /* Ensure text is centered */
    display: flex;
    align-items: center;
    justify-content: center;
}

.MacKeyboard-Key:active,
.MacKeyboard-Key-Active {
    background: var(--key-bg-color-active);
    box-shadow:
        inset -1px -1px 0 var(--key-border-color-light),
        inset 1px 1px 0 var(--key-border-color-dark);
}

.MacKeyboard-Key-Label {
    pointer-events: none;
}

.MacKeyboard-Key:active .MacKeyboard-Key-Label,
.MacKeyboard-Key-Active .MacKeyboard-Key-Label {
    transform: translate(1px, 1px);
}

.MacKeyboard-Key-Modifier {
    font-size: 15px;
    font-weight: 500;
    min-width: 60px;
}

.MacKeyboard-FullSize {
    max-width: 960px;
    margin: 0 auto;
    box-shadow: rgba(0, 0, 0, 0.2) 0 -2px 10px;
    border-radius: 8px;
}

.MacKeyboard-FullSize .MacKeyboard-Row:first-child {
    margin-bottom: 12px;
}

.MacKeyboard-FullSize .MacKeyboard-Key {
    height: 48px;
    font-size: 24px;
    padding: 0 0 6px 6px;
    font-style: italic;
    align-items: end;
    justify-content: start;
    min-width: 32px;
}

.MacKeyboard-FullSize .MacKeyboard-Key-Normal {
    font-style: normal;
}

.MacKeyboard-FullSize .MacKeyboard-Key-Special {
    font-size: 14px;
}

.MacKeyboard-FullSize .MacKeyboard-Key-Command {
    padding-right: 6px;
    font-size: 20px;
}

.MacKeyboard-FullSize .MacKeyboard-Key.MacKeyboard-Key-Interrupt {
    align-items: center;
    justify-content: center;
    padding: 0;
    font-style: normal;
}

.MacKeyboard-FullSize .MacKeyboard-Key-FKey {
    font-size: 16px;
}

.MacKeyboard-FullSize .MacKeyboard-Key-Command .MacKeyboard-Key-Label {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.MacKeyboard-FullSize
    .MacKeyboard-Key-Command
    .MacKeyboard-Key-Label
    span:first-child {
    -webkit-text-stroke: 1px var(--key-text-color);
    -webkit-text-fill-color: transparent;
}

.MacKeyboard-Mobile .MacKeyboard-Key-Special {
    filter: brightness(0.9);
}

.MacKeyboard-Mobile .MacKeyboard-Row:first-child {
    margin-bottom: 8px;
}

.MacKeyboard-Row:first-child .MacKeyboard-Key {
    height: 36px;
}

.MacKeyboard-Beige {
    --key-bg-color: hsl(39deg 36% 85%);
    --key-bg-color-active: hsl(39deg 36% 78%);
    --keyboard-bg-color: hsl(39deg 36% 75%);
    --key-border-color-light: hsl(39deg 36% 95%);
    --key-border-color-dark: hsl(39deg 36% 65%);
}

.MacKeyboard-Platinum {
    --key-bg-color: hsl(0deg 0% 95%);
    --key-bg-color-active: hsl(0deg 0% 85%);
    --keyboard-bg-color: hsl(0deg 0% 80%);
    --key-border-color-light: hsl(0deg 0% 100%);
    --key-border-color-dark: hsl(0deg 0% 70%);
}

.MacKeyboard-NeXT {
    --key-bg-color: hsl(220deg 3% 25%);
    --key-bg-color-active: hsl(220deg 3% 35%);
    --keyboard-bg-color: hsl(220deg 3% 10%);
    --key-text-color: hsl(0deg 0% 85%);
    --key-border-color-light: hsl(220deg 3% 35%);
    --key-border-color-dark: hsl(220deg 3% 5%);
}

.MacKeyboard-Pinstripes {
    --key-bg-color: hsl(0deg 0% 98%);
    --key-bg-color-active: hsl(0deg 0% 90%);
    --keyboard-bg-color: hsl(0deg 0% 93%);
    --key-border-color-light: hsl(0deg 0% 100%);
    --key-border-color-dark: hsl(0deg 0% 80%);
}

.ScreenFrame {
    --screen-bezel-color: hsl(39deg 36% 80%);
    --screen-bezel-color-dark1: hsl(39deg 36% 75%);
    --screen-bezel-color-dark2: hsl(39deg 36% 70%);
    --screen-bezel-color-light1: hsl(39deg 36% 85%);
    --screen-bezel-color-light2: hsl(39deg 36% 90%);
    --screen-bezel-size: 60px;
    --screen-outer-chamfer-size: 4px;
    --screen-inner-chamfer-size: 8px;
    --screen-outer-corner-radius: 8px;
    --screen-inner-corner-radius: 8px;
    --screen-underscan: 20px;
    --screen-controls-display: flex;
    --screen-controls-bottom: -46px;
    --screen-led-display: block;
    --screen-led-bottom: -40px;
    --screen-ethernet-status-bottom: -46px;
    --screen-ethernet-status-display: block;

    border: solid var(--screen-bezel-size) var(--screen-bezel-color);
    position: relative;
    background: black;

    margin: calc(var(--screen-underscan) * -1);
}

.ScreenFrame-Bezel-Medium {
    --screen-bezel-size: 40px;
    --screen-outer-chamfer-size: 2px;
    --screen-inner-chamfer-size: 4px;
    --screen-underscan: 10px;
    --screen-controls-bottom: -34px;
    --screen-led-bottom: -28px;
    --screen-ethernet-status-bottom: -34px;
}

.ScreenFrame-Bezel-Small-ish {
    --screen-bezel-size: 30px;
    --screen-outer-chamfer-size: 2px;
    --screen-inner-chamfer-size: 4px;
    --screen-underscan: 6px;
    --screen-controls-bottom: -34px;
    --screen-led-bottom: -28px;
    --screen-ethernet-status-bottom: -34px;
}

.ScreenFrame-Bezel-Small {
    --screen-bezel-size: 10px;
    --screen-outer-chamfer-size: 1px;
    --screen-inner-chamfer-size: 1px;
    --screen-outer-corner-radius: 4px;
    --screen-inner-corner-radius: 4px;
    --screen-underscan: 1px;
    --screen-controls-bottom: -32px;
    --screen-led-display: none;
    --screen-ethernet-status-display: none;
}

.ScreenFrame.ScreenFrame-Fullscreen {
    --screen-bezel-size: 0;
    --screen-outer-chamfer-size: 0;
    --screen-inner-chamfer-size: 0;
    --screen-underscan: 0;
    --screen-controls-display: none;
    --screen-led-display: none;
    --screen-ethernet-status-display: none;
}

.ScreenFrame::before {
    content: "";
    position: absolute;
    top: calc(
        (var(--screen-bezel-size) + var(--screen-outer-chamfer-size)) * -1
    );
    left: calc(
        (var(--screen-bezel-size) + var(--screen-outer-chamfer-size)) * -1
    );
    right: calc(
        (var(--screen-bezel-size) + var(--screen-outer-chamfer-size)) * -1
    );
    bottom: calc(
        (var(--screen-bezel-size) + var(--screen-outer-chamfer-size)) * -1
    );
    border: solid var(--screen-outer-chamfer-size);
    border-color: var(--screen-bezel-color-light2)
        var(--screen-bezel-color-dark2) var(--screen-bezel-color-dark1)
        var(--screen-bezel-color-light1);
    border-radius: var(--screen-outer-corner-radius);
    pointer-events: none;
}

.ScreenFrame::after {
    content: "";
    position: absolute;
    top: calc(var(--screen-inner-chamfer-size) * -1);
    left: calc(var(--screen-inner-chamfer-size) * -1);
    right: calc(var(--screen-inner-chamfer-size) * -1);
    bottom: calc(var(--screen-inner-chamfer-size) * -1);
    border: solid var(--screen-inner-chamfer-size);
    border-color: var(--screen-bezel-color-dark2)
        var(--screen-bezel-color-light2) var(--screen-bezel-color-light1)
        var(--screen-bezel-color-dark1);
    border-radius: var(--screen-inner-corner-radius);
    pointer-events: none;
}

.ScreenFrame-Controls-Container {
    position: absolute;
    bottom: var(--screen-controls-bottom);
    display: var(--screen-controls-display);
    left: 0;
    align-items: center;
}

.ScreenFrame-Controls-Container .ScreenFrame-Control {
    margin-left: 16px;
    cursor: pointer;
}

.ScreenFrame-Controls-Container
    .ScreenFrame-Control.ScreenFrame-Control-Selected {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    outline: solid 2px rgba(0, 0, 0, 0.4);
}

@media (hover: hover) {
    .ScreenFrame-Controls-Container .ScreenFrame-Control {
        visibility: hidden;
    }

    .ScreenFrame-Controls-Container:hover .ScreenFrame-Control {
        visibility: visible;
    }
}

.ScreenFrame-Logo {
    position: relative;
    height: 30px;
    width: 18px;
}

.ScreenFrame-Bezel-NeXT .ScreenFrame-Logo {
    width: 24px;
}

.ScreenFrame-Bezel-Medium .ScreenFrame-Logo {
    height: 28px;
    width: 14px;
}

.ScreenFrame-Bezel-NeXT.ScreenFrame-Bezel-Medium .ScreenFrame-Logo {
    width: 18px;
}

.ScreenFrame-Bezel-Small-ish .ScreenFrame-Logo {
    height: 36px;
    width: 12px;
}

.ScreenFrame-Bezel-NeXT.ScreenFrame-Bezel-Small-ish .ScreenFrame-Logo {
    width: 15px;
}

/* Hide the Apple logo if it's not top of the bezel */
.ScreenFrame-Bezel-Small .ScreenFrame-Logo {
    display: none;
}

/* And if the Apple logo is not there, the controls don't need space on the left */
.ScreenFrame-Bezel-Small .ScreenFrame-Control {
    margin-left: 0;
    margin-right: 16px;
    font-size: 0.8em;
}

.ScreenFrame-Logo svg {
    height: 100%;
    width: 100%;
    position: absolute;
}

.ScreenFrame-Logo .Foreground {
    filter: brightness(1.1);
}

.ScreenFrame-Logo .Background {
    top: -0.5px;
    left: -0.5px;
    filter: brightness(0.5);
}

.ScreenFrame-Led {
    pointer-events: none;
    position: absolute;
    display: var(--screen-led-display);
    bottom: var(--screen-led-bottom);
    right: 0;
    width: 28px;
    height: 8px;
    background: #00ff00;
}

.ScreenFrame-Led-Loading {
    animation: Mac-Led-Blink 0.1s infinite;
}

@keyframes Mac-Led-Blink {
    from {
        background: #00ff00;
    }
    to {
        background: #000000;
    }
}

.ScreenFrame-Bezel-Text {
    color: var(--screen-bezel-color-dark1);
    text-shadow:
        0.5px 0.5px rgba(255, 255, 255, 0.6),
        -0.5px -0.5px rgba(0, 0, 0, 0.6);
}

.ScreenFrame-Bezel-NeXT .ScreenFrame-Bezel-Text {
    color: var(--screen-bezel-color-light2);
    text-shadow:
        0.5px 0.5px rgba(255, 255, 255, 0.3),
        -0.5px -0.5px rgba(0, 0, 0, 0.9);
}

/* Platinum is a simple set of color overrides. */
.ScreenFrame-Bezel-Platinum {
    --screen-bezel-color: hsl(0deg 0% 85%);
    --screen-bezel-color-dark1: hsl(0deg 0% 80%);
    --screen-bezel-color-dark2: hsl(0deg 0% 75%);
    --screen-bezel-color-light1: hsl(0deg 0% 90%);
    --screen-bezel-color-light2: hsl(0deg 0% 95%);
}

/* NeXT is a simple set of color overrides. */
.ScreenFrame-Bezel-NeXT {
    --screen-bezel-color: hsl(220deg 3% 15%);
    --screen-bezel-color-dark1: hsl(220deg 3% 5%);
    --screen-bezel-color-dark2: hsl(220deg 3% 10%);
    --screen-bezel-color-light1: hsl(220deg 3% 20%);
    --screen-bezel-color-light2: hsl(220deg 3% 25%);
}

/* Pinstripes tries to replicate the style of the 1999 Apple Cinema Display. */
.ScreenFrame-Bezel-Pinstripes {
    --screen-bezel-color: hsl(0deg 0% 95%);
    --screen-bezel-color-dark1: hsl(0deg 0% 80%);
    --screen-bezel-color-dark2: hsl(0deg 0% 75%);
    --screen-bezel-color-light1: hsl(0deg 0% 90%);
    --screen-bezel-color-light2: hsl(0deg 0% 95%);

    /* Pinstripe pattern */
    border-image-source: repeating-linear-gradient(
        0deg,
        hsl(0deg 0% 95%) 0px,
        hsl(0deg 0% 95%) 2px,
        hsl(0deg 0% 90%) 2px 4px
    );
    /* Needs to match the value of --screen-bezel-size but without units. */
    border-image-slice: 60;
    border-image-repeat: round;

    /* The other chamfer becomes the extra white outline around the monitor (
        done with the :before pseudo below). */
    --screen-outer-chamfer-size: 12px;
    --screen-outer-corner-radius: 32px;
    --screen-underscan: 8px;
}

.ScreenFrame-Bezel-Pinstripes.ScreenFrame-Bezel-Medium {
    --screen-outer-chamfer-size: 8px;
    border-image-slice: 40;
    --screen-outer-corner-radius: 28px;
}

.ScreenFrame-Bezel-Pinstripes.ScreenFrame-Bezel-Small,
.ScreenFrame-Bezel-Pinstripes.ScreenFrame-Bezel-Small-ish {
    --screen-outer-chamfer-size: 8px;
    border-image-slice: 30;
    --screen-outer-corner-radius: 24px;
}

.ScreenFrame-Bezel-Pinstripes.ScreenFrame::before {
    border-color: var(--screen-bezel-color);
    /* Add inner dark border */
    box-shadow: inset 0 0 0 2px #282c34;
}

/* Center Apple logo by making the entire container full-width */
.ScreenFrame-CenterLogo .ScreenFrame-Controls-Container {
    width: 100%;
}

.ScreenFrame-CenterLogo
    .ScreenFrame-Controls-Container
    .ScreenFrame-Logo
    + .ScreenFrame-Control {
    margin-left: 0;
}

.ScreenFrame-CenterLogo .ScreenFrame-Logo {
    left: calc(50% - 10px);
}

.ScreenFrame-Bezel-Pinstripes .ScreenFrame-Logo .Background {
    filter: none;
}

.ScreenFrame-Bezel-Pinstripes .ScreenFrame-Logo .Background path {
    /* Turn shadow into gloss */
    fill: #ffffffaa !important;
}

.ScreenFrame-Bezel-Pinstripes .ScreenFrame-Led {
    /* The LED is fictional, but we can at least round the corners to make it
    blend in better. */
    border-radius: 4px;
}

.ScreenFrame-ScreenContainer {
    position: relative;
    top: var(--screen-underscan);
    left: var(--screen-underscan);
    background-color: black;
}

.Embed-HTML-Row {
    display: flex;
}

.Embed-HTML {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    font-family: monospace;
    max-width: 490px;
    padding: 6px;
}

.Embed-Copy-Button {
    min-width: 100px;
}

.EmbedDocs pre {
    background: #f0f0f0;
    padding: 8px;
}

.EmbedDocs code {
    font-family: monospace;
    font-size: 12px;
    background: #f0f0f0;
}

.EmbedDocs-MessageList {
    padding: 0 0 0 16px;
    margin: 0;
}

.EmbedDocs-MessageList li {
    margin-bottom: 8px;
}

.Footer {
    font-family: Geneva, Helvetica, sans-serif;
    font-size: 9px;
    color: #fff;
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: #282c3422;
    padding: 10px;
    border-radius: 10px;
    user-select: none;
    -webkit-user-select: none;
}

.Footer span {
    display: inline-block;
    height: 9px;
    color: transparent;
    cursor: pointer;
    background-size: cover;
    image-rendering: pixelated;
}

.Footer span:not(:first-child) {
    margin-left: 12px;
}

.Footer .Footer-Logo {
    background-image: url("/src/Images/Footer-Logo.png");
    width: 79px;
}

.Footer .Footer-About {
    background-image: url("/src/Images/Footer-About.png");
    width: 36px;
}

.Footer .Footer-Fullscreen {
    background-image: url("/src/Images/Footer-Fullscreen.png");
    width: 68px;
}

.Footer .Footer-Donate {
    background-image: url("/src/Images/Footer-Donate.png");
    width: 44px;
}

.fullscreen .Footer {
    display: none;
}

/* ChicagoFLF is a TrueType version of Chicago, downloaded from
https://tinkerdifferent.com/resources/collection-of-classic-apple-fonts-for-your-modern-computer.130/ */
@font-face {
    font-family: "ChicagoFLF";
    src: url("/src/Fonts/ChicagoFLF.woff2");
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}

/* Charcoal downloaded from https://os9.ca/ */
@font-face {
    font-family: "Charcoal";
    src: url("/src/Fonts/Charcoal.woff2");
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}

/* Lucida Grande downloaded from https://online-fonts.com/fonts/lucida-grande/download */
@font-face {
    font-family: "LucidaGrande";
    src: url("/src/Fonts/LucidaGrande.woff2");
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}

.AppearanceSystemFont-Classic {
    font-family: "ChicagoFLF", "Helvetica", "Arial", sans-serif;
    font-weight: normal !important;
}

.AppearanceSystemFont-Platinum {
    font-family: "Charcoal", "Helvetica", "Arial", sans-serif;
    font-weight: normal !important;
}

.AppearanceSystemFont-Aqua {
    /* Prefer the locally installed Lucida Grande on macOS hosts, but then fall back on our version. */
    font-family:
        "Lucida Grande", "LucidaGrande", "Helvetica", "Arial", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: normal !important;
}

.AppearanceSystemFont-NeXT {
    font-family: "Helvetica", "Arial", sans-serif;
}

@font-face {
    font-family: "Apple Garamond";
    src: url("/src/Fonts/AppleGaramond.woff2");
    font-display: swap;
}

.Browser {
    --browser-padding: 40px;
    --browser-logo-scale: 2;
    padding: var(--browser-padding);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 440px) {
    .Browser header {
        flex-direction: column;
    }

    .Browser .Disks-Container {
        padding-top: 10px;
    }
}

@media (max-width: 640px) {
    .Browser {
        --browser-padding: 15px;
        --browser-logo-scale: 1;
    }
}

.Browser header {
    display: flex;
    gap: var(--browser-padding);
    background: #d9e5fe;
    margin: calc(var(--browser-padding) * -1);
    padding: var(--browser-padding);
    margin-bottom: 0;
    align-items: center;
}

.Browser .Logo {
    flex-shrink: 0;
    background-image: url(/src/Images/HeaderLogo.png);
    background-size: cover;
    image-rendering: pixelated;
    width: calc(114px * var(--browser-logo-scale));
    height: calc(74px * var(--browser-logo-scale));
}

.Browser .Description p:first-child {
    margin-top: 0;
}

.Browser .Description p:last-child {
    margin-bottom: 0;
}

.Browser .Description span,
.Browser .Description a {
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.Browser .Logo h1 {
    display: none;
}

.Browser .Year {
    margin: 2em 0 3em 0;
}

.Browser .Year h2 {
    color: #fff;
    z-index: 1;
    position: relative;
}

.Browser .Year .Disks {
    display: flex;
    flex-wrap: wrap;
}

.Disk.ScreenFrame {
    margin: 20px;
}

@media (max-width: 400px) {
    .Disk.ScreenFrame {
        margin: 10px;
    }

    .Disk.ScreenFrame-Bezel-Pinstripes {
        margin: 14px 10px;
    }
}

.DiskContents {
    background: #fff;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: Helvetica, Arial, sans-serif;
}

.DiskContents-Appearance-Aqua {
    background: url("/src/Images/AquaPinstripes.png");
    image-rendering: pixelated;
}

.DiskContents-NeXT {
    background: #aaa;
    border-radius: 0;
}

.DiskContents.DiskContents-Placeholder {
    opacity: 0.5;
}

.DiskContents h3 {
    font-family: "Apple Garamond";
    font-weight: normal;
    font-size: 28px;
    margin: 0 0 8px 0;
}

@media (max-width: 440px) {
    .DiskContents h3 {
        font-size: 24px;
    }
}

.DiskContents h3 .Subtitle {
    color: #999;
}

.DiskContents-NeXT h3 .Subtitle {
    color: #555;
}

.DiskContents h3 .ReleaseDate {
    color: #999;
    font-size: 14px;
    font-family: Helvetica, Arial, sans-serif;
}

.DiskContents-NeXT h3 .ReleaseDate {
    color: #555;
}

.DiskContents .Unstable-Warning {
    background: #faa;
    color: #fff;
    display: inline;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.DiskContents .Row {
    margin-bottom: 18px;
}

@media (max-width: 440px) {
    .DiskContents .Row {
        margin-bottom: 12px;
    }
}

.DiskContents .Customize,
.DiskContents .Row.DiskDescription {
    flex-grow: 1;
    overflow: auto;
}

.DiskContents .Row.Buttons {
    text-align: right;
}

.DiskContents .Row:last-child {
    margin-bottom: 0;
}

.DiskContents .Row .Button {
    margin: 0 4px;
}

@media (max-width: 440px) {
    /* Aqua buttons have some innate margin due to drop shadows, drop the extra
    margin at small screen sizes to make sure they don't end up wrapping. */
    .DiskContents .Row .Button.Button-Aqua {
        margin: 0;
    }
}

.Disk .CustomizeButton {
    font-weight: normal;
}

@media (hover: hover) {
    .Disk .CustomizeButton {
        visibility: hidden;
    }

    .Disk:hover .CustomizeButton {
        visibility: visible;
    }
}

.Disk-Filters-Container {
    position: sticky;
    top: 0;
    z-index: 2;
}

.Disk-Filters {
    font-family: "Helvetica", "Arial", sans-serif;
    position: absolute;
    right: 0;
    top: 0;
    font-size: 13px;
    background: #282c3499;
    padding: 5px 5px 5px 10px;
    border-radius: 10px;
    overflow: hidden;
}

.Disk-Filters-Label,
.Disk-Filters .count {
    color: #ccc;
}

@media (max-width: 440px) {
    .Disk-Filters .count {
        display: none;
    }
}

.Disk-Filters-Button {
    margin-left: 0.5em;
    appearance: none;
    border: 0;
    padding: 5px 10px;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.Disk-Filters-Button .name-container {
    display: inline-flex;
    flex-direction: column;
    text-align: right;
}

/* Allow the name to be bold when selected without offsetting the rest of the
content by leaving enough room for the bold version at all times. */
.Disk-Filters-Button .name-sizer {
    font-weight: bold;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
}

.Disk-Filters-Button.selected {
    cursor: default;
    background: rgba(255, 255, 255, 0.1);
}

.Disk-Filters-Button.selected .name {
    font-weight: bold;
}

.Button {
    border-image-slice: 4 fill;
    border-image-width: 4px;
    border-width: 4px;
    image-rendering: pixelated;
    background: transparent;
    padding: 1px 8px;
    font-size: 13px;
    color: #000;
    font-weight: bold;
    user-select: none;
    white-space: nowrap;
}

.Button:active {
    color: #fff;
}

.Button:focus {
    outline: none;
}

.Button:focus-visible {
    outline: 2px solid #000000;
    outline-offset: -1px;
    border-radius: 2px;
}

.Button:disabled {
    opacity: 0.5;
}

.Button.Button-Classic {
    border-image-source: url("/src/Images/ClassicButton.png");
    line-height: 13px;
}

.Button.Button-Classic:active {
    border-image-source: url("/src/Images/ClassicButton-Active.png");
}

.Button.Button-Platinum {
    border-image-source: url("/src/Images/PlatinumButton.png");
    line-height: 13px;
}

.Button.Button-Platinum:active {
    border-image-source: url("/src/Images/PlatinumButton-Active.png");
}

.Button.Button-Platinum:focus-visible {
    outline-color: #6666c5;
}

.Button.Button-Aqua {
    border-image-source: url("/src/Images/AquaButton.png");
    border-image-slice: 15 20 fill;
    border-image-width: 15px 20px;
    border-width: 6px 12px 9px;
    image-rendering: pixelated;
    padding: 1px 8px;
    font-size: 13px;
    line-height: 15px;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
}

.Button.Button-Aqua:active {
    border-image-source: url("/src/Images/AquaButton-Active.png");
    color: #000;
}

.Button.Button-Aqua:focus-visible {
    outline-color: #8bb4e9cc;
    outline-offset: -3px;
    border-radius: 3px;
}

.Button.Button-NeXT {
    border-image-source: url("/src/Images/NeXTButton.png");
}

.Button.Button-NeXT:active {
    color: #000;
    border-image-source: url("/src/Images/NeXTButton-Active.png");
}

.Dialog-Backdrop {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    /* Simulate a 2x2 black and white checkerboard */
    background-position:
        0px 0px,
        1px 1px;
    background-size: 2px 2px;
    background-image:
        linear-gradient(
            45deg,
            #000 25%,
            transparent 25%,
            transparent 75%,
            #000 75%,
            #000 100%
        ),
        linear-gradient(
            45deg,
            #000 25%,
            transparent 25%,
            transparent 75%,
            #000 75%,
            #000 100%
        );
}

.Dialog {
    font-size: 14px;
    padding: 18px;
    border-image-slice: 5 fill;
    border-image-width: 5px;
    border-width: 5px;
    image-rendering: pixelated;
    max-width: 600px;
    min-width: 320px;
}

.Dialog-Backdrop .Dialog {
    z-index: 3;
}

.Dialog.Dialog-Classic {
    border-image-source: url("/src/Images/ClassicDialogFrame.png");
}

.Dialog.Dialog-Classic.Dialog-System7 {
    border-image-source: url("/src/Images/System7DialogFrame.png");
}

.Dialog.Dialog-Platinum {
    border-image-source: url("/src/Images/PlatinumDialogFrame.png");
}

.Dialog.Dialog-Aqua {
    border-image-source: url("/src/Images/AquaDialogFrame.png");
    border-image-slice: 21 30 29 28 fill;
    border-image-width: 21px 30px 29px 28px;
    border-image-repeat: repeat;
    padding: 24px 32px 32px;
}

.Dialog-Backdrop-Aqua {
    background: rgba(0, 0, 0, 0.25);
}

.Dialog.Dialog-NeXT {
    border-image-source: url("/src/Images/NeXTDialogFrame.png");
}

.Dialog-Content {
    max-height: calc(90vh - 30px * 2); /* Footer and header */
    overflow: auto;
}

.Dialog h1 {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.Dialog h2 {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 4px 0;
}

.Dialog h2 + h3 {
    margin-top: 8px;
}

.Dialog h3 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 4px 0;
}

.Dialog h3 + p {
    margin-top: 6px;
}

.Dialog-Description {
    font-size: 12px;
    color: #666;
    margin: 2px 0 0 22px;
}

.Dialog-Description .warning {
    color: #c33;
}

.Dialog.Dialog-NeXT .Dialog-Description {
    color: #444;
}

.Dialog label {
    display: block;
    margin: 0 0 8px 0;
}

.Dialog footer {
    margin: 8px 0 0 0;
    display: flex;
    justify-content: flex-end;
}

.Dialog footer {
    gap: 8px;
}

.Dialog a,
.Dialog .link {
    cursor: pointer;
    text-decoration: underline;
    color: #00c;
}

.Dialog-Normal-Button {
    font-weight: normal;
}

.Checkbox {
    padding: 0;
    width: 14px;
    height: 12px;
    vertical-align: middle;
    appearance: none;
    background-color: transparent;
    position: relative;
    margin: 0 2px 3px 0;
}

.Checkbox::before {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 12px;
    background-size: 14px 12px;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: pixelated;
}

.Checkbox:disabled {
    cursor: default;
    opacity: 0.5;
    pointer-events: none;
}

.Checkbox-Classic::before {
    background-image: url("/src/Images/ClassicCheckbox.png");
}

.Checkbox-Classic:active::before {
    background-image: url("/src/Images/ClassicCheckbox-Active.png");
}

.Checkbox-Classic:checked::before {
    background-image: url("/src/Images/ClassicCheckbox-Checked.png");
}

.Checkbox-Classic:checked:active::before {
    background-image: url("/src/Images/ClassicCheckbox-CheckedActive.png");
}

.Checkbox-Platinum::before {
    background-image: url("/src/Images/PlatinumCheckbox.png");
}

.Checkbox-Platinum:active::before {
    background-image: url("/src/Images/PlatinumCheckbox-Active.png");
}

.Checkbox-Platinum:checked::before {
    background-image: url("/src/Images/PlatinumCheckbox-Checked.png");
}

.Checkbox-Platinum:checked:active::before {
    background-image: url("/src/Images/PlatinumCheckbox-CheckedActive.png");
}

.Checkbox-Aqua {
    width: 18px;
    height: 18px;
}

.Checkbox-Aqua::before {
    background-image: url("/src/Images/AquaCheckbox.png");
    width: 18px;
    height: 18px;
    background-size: 18px 18px;
}

.Checkbox-Aqua:active::before {
    background-image: url("/src/Images/AquaCheckbox-Active.png");
}

.Checkbox-Aqua:checked::before {
    background-image: url("/src/Images/AquaCheckbox-Checked.png");
}

.Checkbox-Aqua:checked:active::before {
    background-image: url("/src/Images/AquaCheckbox-CheckedActive.png");
}

.Checkbox-NeXT {
    width: 15px;
    height: 15px;
}

.Checkbox-NeXT::before {
    width: 15px;
    height: 15px;
    background-size: 15px 15px;
    background-image: url("/src/Images/NeXTCheckbox.png");
}

.Checkbox-NeXT:active::before {
    background-image: url("/src/Images/NeXTCheckbox-Active.png");
}

.Checkbox-NeXT:checked::before {
    background-image: url("/src/Images/NeXTCheckbox-Checked.png");
}

.Checkbox-NeXT:checked:active::before {
    background-image: url("/src/Images/NeXTCheckbox-CheckedActive.png");
}

.Input {
    border-image-slice: 4 fill;
    border-image-width: 4px;
    border-width: 4px;
    image-rendering: pixelated;
    background: transparent;
    padding: 1px 1px;
    font-size: 13px;
    color: #000;
    font-family: "Helvetica", "Arial", sans-serif;
}

.Input[type="number"] {
    -moz-appearance: textfield;
}

.Input::-webkit-outer-spin-button,
.Input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.Input:focus {
    outline: none;
}

.Input:focus-visible {
    outline: 2px solid #000000;
    outline-offset: -1px;
    border-radius: 1px;
}

.Input:invalid {
    outline: 2px solid red;
    outline-offset: -1px;
    border-radius: 1px;
}

.Input.Input-Classic {
    border-image-source: url("/src/Images/ClassicInput.png");
}

.Input.Input-Platinum {
    border-image-source: url("/src/Images/PlatinumInput.png");
}

.Input.Input-Platinum:focus-visible {
    outline-color: #6666c5;
}

.Input.Input-Platinum:invalid {
    outline-color: red;
}

.Input.Input-Aqua {
    border-image-source: url("/src/Images/AquaInput.png");
}

.Input.Input-Aqua:focus-visible {
    outline-color: #8bb4e9cc;
    outline-offset: 0;
}

.Input.Input-Aqua:invalid {
    outline-color: red;
}

.Input.Input-NeXT {
    border-image-source: url("/src/Images/NeXTInput.png");
}

.CustomFields-Row {
    margin-bottom: 16px !important;
}

.CustomFields-Row .Button:not(.Button-Aqua) {
    height: 20px;
    font-weight: normal;
    font-size: 12px;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
}

.CustomFields-Row label {
    display: inline;
}

.CustomFields-Row.CustomFields-InputCompensate {
    margin-top: -5px;
}

.CustomFields-Row.CustomFields-InputCompensate .CustomFields-Description {
    margin-top: -3px;
}

.CustomFields-Row label.disabled {
    color: #999;
    pointer-events: none;
}

.CustomFields-Row label:last-of-type {
    margin-bottom: 4px;
}

.CustomFields-Label {
    display: inline-block;
    width: 100px;
    text-align: right;
    margin-right: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.CustomFields-Description {
    margin-left: 104px;
}

.CustomFields-Description a {
    color: inherit;
}

.CustomFields-Description-Link {
    cursor: pointer;
    text-decoration: underline;
}

.CustomFields-Repeated {
    display: flex !important;
    align-items: center;
    margin-bottom: 8px;
}

.CustomFields-Repeated input {
    height: 22px;
    box-sizing: border-box;
    max-width: calc(100% - 100px - 80px); /* Label + buttons */
}

.CustomFields-Repeated .Button.AddRemove:not(.Button-Aqua) {
    margin-left: 4px;
    width: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.CustomFields-Repeated .Button.AddRemove.Button-Aqua {
    border-image-source: none;
    background-image: url("/src/Images/AquaRoundButton.png");
    background-repeat: no-repeat;
    background-position: center center;
    border: 0;
    width: 32px;
    height: 31px;
    font-weight: bold !important;
    padding-bottom: 4px;
}

.CustomFields-Repeated .Button.AddRemove.Button-Aqua:active {
    background-image: url("/src/Images/AquaRoundButton-Active.png");
}

.CustomFields-Repeated-Disk {
    width: 256px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.CustomFields-DiskURL-MountReadWrite {
    margin-top: -6px;
    margin-bottom: 6px;
}

.CustomFields-CDROMs {
    color: transparent; /* In case the label text peeks through */
    width: 20px;
    margin-left: 4px;
}

.CustomFields-CDROMs.Select.Select-Platinum {
    height: 20px;
    border-left-width: 0;
    border-image-width: 3px 22px 3px 0;
    margin-left: -20px;
    z-index: 1;
}

.CustomFields-CDROMs.Select.Select-Aqua {
    width: 20px;
    border-left-width: 0;
    border-image-width: 12px 24px 12px 0;
    margin-left: -1px;
}

.CustomFields-ScreenSize {
    display: inline-flex;
    gap: 4px;
}

.CustomFields-ScreenSize input[type="number"] {
    width: 32px;
    height: 10px;
    font-size: 12px;
}

.Select {
    border-image-slice: 3 22 3 3 fill;
    border-image-width: 3px 22px 3px 3px;
    border-image-repeat: stretch stretch;
    border-width: 3px 22px 3px 3px;
    box-sizing: border-box;
    height: 20px;
    image-rendering: pixelated;
    background: transparent;
    padding: 0;
    font-size: 12px;
    line-height: 12px;
    color: #000;
    user-select: none;
    -moz-appearance: none;
}

.Select:active {
    color: #fff;
}

.Select:focus {
    outline: none;
}

.Select:focus-visible {
    outline: 2px solid #000000;
    outline-offset: -1px;
    border-radius: 2px;
}

.Select:disabled {
    opacity: 0.5;
}

.Select.Select-Classic {
    border-image-source: url("/src/Images/ClassicSelect.png");
    border-top-width: 2px;
    border-bottom-width: 2px;
}

.Select.Select-Classic:active {
    border-image-source: url("/src/Images/ClassicSelect-Active.png");
}

.Select.Select-Platinum {
    border-image-source: url("/src/Images/PlatinumSelect.png");
    border-top-width: 2px;
    border-bottom-width: 2px;
}

.Select.Select-Platinum:active {
    border-image-source: url("/src/Images/PlatinumSelect-Active.png");
}

.Select.Select-Platinum:focus-visible {
    outline-color: #6666c5;
}

.Select.Select-Aqua {
    border-image-source: url("/src/Images/AquaSelect.png");
    border-image-slice: 12 24 12 9 fill;
    border-image-width: 12px 24px 12px 9px;
    border-image-repeat: stretch stretch;
    border-width: 2px 24px 4px 4px;
    height: 26px;
    font-size: 13px;
}

.Select.Select-Aqua:active {
    border-image-source: url("/src/Images/AquaSelect-Active.png");
}

.Select.Select-Aqua:focus-visible {
    outline-color: #8bb4e9cc;
    outline-offset: -2px;
    border-radius: 3px;
}

.Select.Select-NeXT {
    border-image-source: url("/src/Images/NeXTSelect.png");
}

.Select.Select-NeXT:active {
    color: #000;
    border-image-source: url("/src/Images/NeXTSelect-Active.png");
}

.Mac {
    user-select: none;
    -webkit-user-select: none;
}

/* `@media (display-mode: fullscreen)` does not appear to work in iOS Safari,
we need to use a manual class name. */
body.fullscreen {
    background: black;
}

body.embed {
    background: black;
    overflow: hidden;
}

.Mac-Loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.Mac-Loading-Non-Modal {
    height: auto;
    left: 50%;
    width: auto;
    transform: translate(-50%, 0);
    top: auto;
    bottom: calc(var(--screen-underscan) + 10px);
    background: #282c3422;
    padding: 10px;
    border-radius: 10px;
}

.Mac-Loading-Non-Modal a {
    color: inherit;
}

.Mac-Loading-OneLine {
    white-space: nowrap;
    display: block;
}

.Mac-Loading-Dismiss {
    margin-right: 8px;
}

.Mac-Loading-Fraction {
    opacity: 0.5;
    padding-left: 0.5em;
}

.Mac-Screen {
    /* The emulator draws the cursor */
    cursor: none;
    /* Avoid blurriness on retina screens */
    image-rendering: pixelated;
    /* Disable double-tap to zoom, we want double-clicking in the Mac to
    take precedence. */
    touch-action: none;
}

.Mac-Screen.Mac-Screen-Smooth-Scaling {
    image-rendering: auto;
}

.Mac-Overlay {
    position: absolute;
    top: var(--screen-underscan);
    left: var(--screen-underscan);
    bottom: var(--screen-underscan);
    right: var(--screen-underscan);
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.Mac-Overlay:before {
    font-size: 48px;
    font-weight: bold;
    display: block;
}

.Mac-Overlay:after {
    font-size: 16px;
    display: block;
}

.Mac-Drag-Overlay:before {
    content: "Copy to Mac";
}

.Mac-Drag-Overlay:after {
    content: "Disk images will be mounted";
}

.Mac-Drag-Overlay.Mac-Drag-Overlay-Downloads:after {
    content: "Disk images will be mounted, files will be placed in the “Downloads” folder in “The Outside World”.";
    max-width: 480px;
    text-align: center;
}

.Mac-Ethernet-Status {
    position: absolute;
    bottom: var(--screen-ethernet-status-bottom);
    display: var(--screen-ethernet-status-display);
    right: 32px;
    font-family: Geneva, Helvetica, sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.Mac-Ethernet-Status-Details {
    z-index: 1;
    position: absolute;
    bottom: 20px;
    right: 0;
    color: #000;
    font-size: 14px;
    white-space: nowrap;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.Mac-Ethernet-Status-Peers {
    margin-top: 8px;
}

.Mac-Ethernet-Status-Peers ul {
    margin: 0;
    padding-left: 16px;
}

.Mac-CDROMs-Instructions {
    flex-grow: 1;
}

.Mac-CDROMs-Controls {
    display: flex;
    gap: 8px;
}

.Mac-CDROMs-Header input[type="search"]:placeholder-shown {
    width: 60px;
}

.Mac-CDROMs-Contents .link {
    cursor: pointer;
    text-decoration: underline;
    color: #00c;
}

.Mac-Custom-CDROM-URL {
    width: 100%;
    box-sizing: border-box;
}

.Mac-CDROM {
    cursor: pointer;
    max-width: 128px;
    padding: 8px;
    font-size: 11px;
    text-align: center;
}

.Mac-CDROM:active {
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.Mac-CDROM-Cover {
    height: 96px;
    width: auto;
    overflow: auto;
}

.Mac-CDROM-Cover.Default {
    image-rendering: pixelated;
}

.Mac-CDROM-Cover-Round {
    border-radius: 50%;
    overflow: hidden;
}

@media (max-width: 640px) {
    .Mac-CDROMs-Controls {
        flex-direction: column;
    }
}

.MacSettings-Row {
    margin-bottom: 4px;
}

.MacSettings-Row-Label {
    display: inline-block;
    width: 100px;
    text-align: right;
    margin-right: 4px;
}

.MacSettings-Row label {
    display: inline;
}

.MacSettings-Row .Dialog-Description {
    margin-left: 104px;
}

.Drawers-Container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 2;
    gap: 8px;
    pointer-events: none;
}

.Drawer {
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(1px 1px 5px rgba(0, 0, 0, 0.5));
}

.Drawer[hidden] {
    display: none;
}

.Drawer-Title {
    padding: 4px 4px 4px 28px;
    background-position: 4px 50%;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    border-radius: 4px 4px 0 0;
    border: solid 1px black;
    border-bottom-width: 0;
    position: relative;
    top: 1px; /* to cover up the border of the list */
    pointer-events: auto;
    user-select: none;
}

.Drawer-Title-Smooth-Scale {
    image-rendering: auto;
}

.Drawer-Classic .Drawer-Title {
    background-color: white;
}

.Drawer-Classic .Drawer-Title:active {
    background-color: #eee;
}

.Drawer-Platinum .Drawer-Title {
    background-color: #ddd;
}

.Drawer-Platinum .Drawer-Title:active {
    background-color: #ccc;
}

.Drawer-Platinum.Drawer-Expanded .Drawer-Title {
    background-color: #ccc;
}

.Drawer-Platinum.Drawer-Expanded .Drawer-Title:active {
    background-color: #bbb;
}

.Drawer-Platinum.Drawer-Expanded .Drawer-Title:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: solid 1px red;
    pointer-events: none;
    border-radius: 4px 4px 0 0;
    border-top-color: #fff;
    border-left-color: #fff;
    border-bottom-color: #999;
    border-right-color: #999;
}

.Drawer-NeXT .Drawer-Title {
    background-color: #aaa;
    border: solid 1px;
    border-color: #fff #555 #555 #fff;
    color: #000;
    border-radius: 0;
    font-family: Helvetica, sans-serif;
    font-weight: bold;
}

.Drawer-Expanded.Drawer-NeXT .Drawer-Title {
    box-sizing: border-box;
    width: 80vw;
    background-color: #000;
    border-color: #aaa #555 #555 #aaa;
    color: #fff;
    outline: solid 1px #000;
}

.Drawer-Contents {
    background: white;
    border: solid 1px black;
    border-bottom-width: 0;
    border-radius: 4px 4px 0 0;
    height: 50vh;
    width: 80vw;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
}

.Drawer-Contents.Drawer-Contents-Tall {
    height: 70vh;
}

.Drawer-Contents-Platinum {
    background: transparent;
    border-radius: 0;
    border-image: url("/src/Images/PlatinumDrawerFrame.png");
    border-image-width: 6px 5px 0 4px;
    border-image-slice: 6 5 0 4 fill;
    border-width: 6px 5px 0 4px;
    image-rendering: pixelated;
}

.Drawer-NeXT .Drawer-Contents {
    border-radius: 0;
    background: #aaa;
}

.Drawer-Header {
    padding: 8px;
    display: flex;
    gap: 8px;
    align-items: start;
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
    font-size: 13px;
}

.Drawer-Classic .Drawer-Header {
    border-bottom: solid 1px #9e9e9e;
}

.Drawer-Platinum .Drawer-Header {
    background: #e7e7e7;
    border-bottom: solid 1px #000;
    position: relative;
}

.Drawer-Platinum .Drawer-Header:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    border: solid 1px;
    border-top-color: #fff;
    border-left-color: #fff;
    border-right-color: #c0c0c0;
    border-bottom-color: #c0c0c0;
    pointer-events: none;
}

.Drawer-NeXT .Drawer-Header {
    background: #aaa;
    border-top: solid 1px #000;
    border-bottom: solid 1px #555;
    position: relative;
}

.Drawer-NeXT .Drawer-Header:after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #fff;
    position: absolute;
    bottom: -2px;
    left: 0;
}

.Drawer-List {
    overflow: auto;
    overscroll-behavior: contain;
}

.Drawer-List.Drawer-List-Platinum.Drawer-List-Tall {
    min-height: 100%;
    background: #e7e7e7;
}

.Drawer-List-Category {
    margin: 8px 0;
}

.Drawer-List-Category h3 {
    position: sticky;
    top: 0;
    margin: 8px 0;
    background: linear-gradient(to right, #ddd, #fff);
    padding: 1px 8px;
}

.Drawer-NeXT .Drawer-List-Category h3 {
    /* Simulate a 2x2 gray and clear checkerboard, similar to a disabled scrollbar in NeXTSTEP 3.3 */
    background-position:
        0px 0px,
        1px 1px;
    background-size: 2px 2px;
    background-image:
        linear-gradient(
            45deg,
            #555 25%,
            transparent 25%,
            transparent 75%,
            #555 75%,
            #555 100%
        ),
        linear-gradient(
            45deg,
            #555 25%,
            transparent 25%,
            transparent 75%,
            #555 75%,
            #555 100%
        );
}

.Drawer-List-Category-Contents {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.Drawer-Loading {
    padding: 8px;
    text-align: center;
    opacity: 0.7;
}

@media (max-width: 440px) {
    .Drawers-Container {
        justify-content: start;
        margin-left: 8px;
        margin-right: 8px;
    }

    .Drawer-Contents {
        width: 100%;
    }
}

.Mac-Library-Header-Platinum {
    /* Tuck the bottom border under the list header */
    margin-bottom: -1px;
}

.Mac-Library-Table {
    table-layout: fixed;
    border-spacing: 0;
    font-size: 12px;
    width: 100%;
}

.Mac-Library-Table thead {
    position: sticky;
    top: 0;
}

.Mac-Library-Table th,
.Mac-Library-Table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 4px;
}

.Mac-Library-Table th:first-child,
.Mac-Library-Table td:first-child {
    padding-left: 8px;
}

.Mac-Library-Table th:last-child,
.Mac-Library-Table td:last-child {
    padding-right: 8px;
}

.Mac-Library-Table th {
    text-align: left;
    padding-top: 3px;
    padding-bottom: 3px;
    font-weight: normal;
}

.Mac-Library-Table th.narrow {
    width: 64px;
}

.Mac-Library-Table th.wide {
    width: 50%;
}

.Mac-Library-Table-Classic thead {
    background: #fff;
}

.Mac-Library-Table-Classic tbody tr:hover {
    background: #fafafa;
    cursor: default;
}

.Mac-Library-Table-Classic th {
    border-bottom: double 3px #000;
}

.Mac-Library-Table-Classic:not(:first-child) th {
    border-top: solid 1px #000;
}

.Mac-Library-Table-Classic th.selected {
    text-decoration: underline;
}

.Mac-Library-Table-Platinum th {
    padding: 0 !important;
}

.Mac-Library-Table-Platinum th .BevelButton {
    width: 100%;
}

.Mac-Library-Table-Platinum tbody tr {
    background: #eee;
}

.Mac-Library-Table-Platinum tbody td {
    border-bottom: solid 1px #fff;
}

.Mac-Library-Table-Platinum tbody td.selected {
    background: #ddd;
}

.Mac-Library-Table-Platinum tbody tr:hover {
    background: #ddd;
    cursor: default;
}

.Mac-Library-Table-Platinum tbody tr:hover td.selected {
    background: #ccc;
}

.Mac-Library-Table-Footer {
    text-align: center;
    opacity: 0.5;
}

.Mac-Library-Table-Classic .Mac-Library-Table-Footer {
    border-top: solid 1px #000;
}

.Mac-Library-Item-Details {
    padding: 8px;
    overflow: auto;
    display: flex;
    align-items: start;
    gap: 8px;
    min-height: 100%;
}

@media (max-width: 640px) {
    .Mac-Library-Item-Details {
        flex-direction: column;
    }

    .Mac-Library-Item-Details-Column {
        width: 100%;
        max-width: none !important;
    }
}

.Mac-Library-Item-Details-Platinum {
    background: #eee;
}

.Mac-Library-Item-Details-Column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.Mac-Library-Item-Details-Column:first-child {
    max-width: 342px;
    flex-shrink: 0;
}

.Mac-Library-Item-Details-Title {
    flex: 1;
    font-size: 18px;
}

.Mac-Library-Item-Details-Description div,
.Mac-Library-Item-Details-Description blockquote {
    margin: 0;
}

.Mac-Library-Item-Details-Description blockquote {
    border-left: solid 2px #999;
    padding-left: 8px;
}

.Mac-Library-Item-Details-Description blockquote br:first-child {
    display: none;
}

.Mac-Library-Item-Details-Description p:empty {
    display: none;
}

.Mac-Library-Item-Details-Description p:first-child {
    margin-top: 0;
}

.Mac-Library-Item-Details-Description p:last-child {
    margin-bottom: 0;
}

.Mac-Library-Item-Details-Table th {
    text-align: right;
    vertical-align: top;
}

.Mac-Library-Item-Details-Table td {
    vertical-align: top;
}

.Mac-Library-Item-Details-Downloads ol {
    margin: 0;
    padding-left: 20px;
}

.Mac-Library-Item-Details-Downloads ol li {
    margin-bottom: 4px;
}

.Mac-Library-Item-Details-Downloads ol li::marker {
    content: "#" counter(list-item) " ";
    color: #666;
}

.Mac-Library-Item-Details-Downloads .size {
    color: #999;
}

.Mac-Library-Screenshots {
    flex-shrink: 0;
    position: relative;
    width: 320px;
    max-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.Mac-Library-Screenshots .carousel {
    width: 320px;
    scroll-snap-type: x mandatory;
    overflow-x: scroll;
    display: flex;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.Mac-Library-Screenshots .carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.Mac-Library-Screenshots img {
    width: 320px;
    scroll-snap-align: center;
}

.Mac-Library-Screenshots .controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.Mac-Library-Screenshots .dot-indicators {
    display: flex;
    gap: 8px;
}

.Mac-Library-Screenshots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: solid 1px #000;
    padding: 0;
    position: relative;
}

/* Increase clickable area of dots */
.Mac-Library-Screenshots .dot:before {
    content: "";
    display: block;
    position: relative;
    width: 18px;
    height: 24px;
    left: -4px;
    top: -8px;
}

.Mac-Library-Screenshots .dot.active {
    background: #000;
}

.BevelButton {
    border-image-slice: 3 fill;
    border-image-width: 3px;
    border-width: 3px;
    image-rendering: pixelated;
    padding: 1px 4px;
    font-size: 12px;
    color: #000;
    user-select: none;
    white-space: nowrap;
    text-align: left;
}

.BevelButton-Centered {
    text-align: center;
}

.BevelButton:active {
    color: #fff;
}

.BevelButton:focus {
    outline: none;
}

.BevelButton-Platinum {
    border-image-source: url("/src/Images/PlatinumBevelButton.png");
    line-height: 13px;
}

.BevelButton-Platinum:active,
.BevelButton-Platinum.BevelButton-Selected {
    border-image-source: url("/src/Images/PlatinumBevelButton-Active.png");
}

.Group {
    padding: 8px;
}

.Group.Group-Classic {
    border-style: solid;
    border-width: 1px;
    border-color: #7f7f7f;
}

.Group.Group-Platinum {
    border-style: groove;
    border-width: 2px;
    border-color: #fff;
}

.Group legend {
    font-size: 13px;
}
