html,body{margin:0;padding:0;background:#0c0c0c;color:#e0e0e0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;height:100%}main{display:flex;flex-direction:column;height:100%;padding:1rem 1.25rem;box-sizing:border-box}header{margin-bottom:.75rem}header h1{margin:0 0 .25rem;font-size:1.1rem;font-weight:600;letter-spacing:.02em}header p{margin:0;font-size:.85rem;color:#a0a0a0}header code{background:#1c1c1c;padding:.05rem .3rem;border-radius:3px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}#terminal{flex:1;background:#000;padding:.5rem;border-radius:4px;overflow:hidden;min-height:0}.xterm .xterm-viewport{scrollbar-width:thin;scrollbar-color:#666 transparent}.xterm .xterm-viewport::-webkit-scrollbar{width:10px}.xterm .xterm-viewport::-webkit-scrollbar-thumb{background:#666;border-radius:5px}.xterm .xterm-viewport::-webkit-scrollbar-thumb:hover{background:#999}.xterm .xterm-viewport::-webkit-scrollbar-track{background:transparent}#settings-gear{position:fixed;top:.5rem;right:.5rem;z-index:10;width:2rem;height:2rem;padding:0;border:1px solid #333;border-radius:50%;background:#1c1c1c;color:#e0e0e0;font-size:1.1rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}#demo-button{position:fixed;top:.5rem;right:2.9rem;z-index:30;font:.8rem ui-monospace,Menlo,monospace;background:#1d2a22;color:#8ecfa8;border:1px solid #3a5a46;border-radius:6px;padding:.3rem .6rem;cursor:pointer}#demo-button:hover{border-color:#5a8a6a;color:#b8ecc8}#settings-gear:hover,#settings-gear:focus-visible{background:#2a2a2a;outline:2px solid #4a90e2;outline-offset:1px}.emu86-modal-backdrop{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:20;padding:1rem;box-sizing:border-box}.emu86-modal-panel{background:#1a1a1a;color:#e0e0e0;border:1px solid #333;border-radius:6px;width:min(560px,100%);max-height:calc(100vh - 2rem);overflow-y:auto;padding:1rem 1.25rem 1.25rem;box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;font-size:.9rem;outline:none}.emu86-modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.emu86-modal-header h2{margin:0;font-size:1rem;font-weight:600}.emu86-modal-close{background:transparent;border:0;color:#e0e0e0;font-size:1.5rem;line-height:1;cursor:pointer;padding:0 .25rem}.emu86-modal-close:hover,.emu86-modal-close:focus-visible{color:#fff;outline:2px solid #4a90e2}.emu86-modal-section{margin-top:.75rem;padding-top:.75rem;border-top:1px solid #2a2a2a}.emu86-modal-section h3{margin:0 0 .5rem;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#a0a0a0}.emu86-modal-section-body{display:flex;flex-direction:column;gap:.5rem}.emu86-input-number{width:5rem;padding:.25rem .4rem;background:#0c0c0c;color:#e0e0e0;border:1px solid #333;border-radius:3px;font:inherit}.emu86-input-select{padding:.25rem .4rem;background:#0c0c0c;color:#e0e0e0;border:1px solid #333;border-radius:3px;font:inherit}.emu86-hint{color:#888;font-size:.85rem}.emu86-input-text{flex:1;padding:.25rem .4rem;background:#0c0c0c;color:#e0e0e0;border:1px solid #333;border-radius:3px;font:inherit}.emu86-textarea{width:100%;padding:.35rem .4rem;background:#0c0c0c;color:#e0e0e0;border:1px solid #333;border-radius:3px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9rem;resize:vertical;box-sizing:border-box}.emu86-bootscript-editor{display:flex;flex-direction:column;gap:.5rem}.emu86-button{padding:.3rem .7rem;background:#2a2a2a;color:#e0e0e0;border:1px solid #444;border-radius:3px;font:inherit;cursor:pointer}.emu86-button:hover:not(:disabled),.emu86-button:focus-visible{background:#3a3a3a;outline:2px solid #4a90e2;outline-offset:1px}.emu86-button:disabled{opacity:.6;cursor:default}.emu86-button-link{background:transparent;border:0;color:#6ab0ff;cursor:pointer;padding:0 .25rem;font:inherit;text-decoration:underline}.emu86-button-link:hover,.emu86-button-link:focus-visible{color:#9ac8ff;outline:2px solid #4a90e2}.emu86-image-list{display:flex;flex-direction:column;gap:.4rem}.emu86-image-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.5rem;background:#141414;border:1px solid #2a2a2a;border-radius:3px}.emu86-image-row.is-selected{border-color:#4a90e2;background:#18222e}.emu86-image-meta{min-width:0;flex:1}.emu86-image-title{font-weight:600;word-break:break-word}.emu86-image-sub{font-size:.8rem;color:#888}.emu86-image-actions{display:flex;gap:.4rem;align-items:center;flex-shrink:0}.emu86-upload-row{display:flex;gap:.6rem;align-items:center;margin-top:.4rem}.emu86-reload-notice{background:#3a3010;color:#f5e08a;padding:.4rem .6rem;border-radius:3px;font-size:.85rem;margin-bottom:.4rem}.emu86-error{background:#3a1010;color:#faa;padding:.4rem .6rem;border-radius:3px;font-size:.85rem}.emu86-github-pane{margin-top:.5rem;border:1px solid #2a2a2a;border-radius:3px;background:#141414}.emu86-github-disclosure{padding:0}.emu86-github-disclosure>summary{padding:.5rem .6rem;cursor:pointer;list-style:none;font-weight:600;user-select:none}.emu86-github-disclosure>summary::-webkit-details-marker{display:none}.emu86-github-disclosure>summary:before{content:"▶ ";display:inline-block;margin-right:.3rem;transition:transform .1s}.emu86-github-disclosure[open]>summary:before{content:"▼ "}.emu86-github-toolbar{padding:.4rem .6rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.4rem;border-top:1px solid #2a2a2a}.emu86-github-toggle{display:inline-flex;align-items:center;gap:.4rem;cursor:pointer}.emu86-github-list{padding:.4rem .6rem;display:flex;flex-direction:column;gap:.4rem}.emu86-github-release{background:#181818;border:1px solid #262626;border-radius:3px;padding:.5rem .6rem}.emu86-github-release-head{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;flex-wrap:wrap}.emu86-github-release-title{font-weight:600;display:inline-flex;gap:.4rem;align-items:center}.emu86-github-prerelease-badge{background:#3a3010;color:#f5e08a;padding:.05rem .35rem;border-radius:2px;font-size:.7rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.emu86-github-release-date{color:#888;font-size:.8rem}.emu86-github-notes{margin:.4rem 0}.emu86-github-notes>summary{cursor:pointer;font-size:.8rem;color:#6ab0ff;list-style:none;user-select:none}.emu86-github-notes>summary::-webkit-details-marker{display:none}.emu86-github-notes-body{margin:.4rem 0 0;padding:.5rem;background:#0c0c0c;border:1px solid #222;border-radius:3px;max-height:12rem;overflow:auto;font-size:.75rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;word-break:break-word;color:silver}.emu86-github-asset-list{display:flex;flex-direction:column;gap:.3rem;margin-top:.4rem}.emu86-github-asset{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:.3rem .5rem;padding:.35rem .4rem;background:#131313;border:1px solid #232323;border-radius:3px}.emu86-github-asset-meta{min-width:0}.emu86-github-asset-name{font-weight:600;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.85rem}.emu86-github-asset-sub{font-size:.75rem;color:#888;margin-top:.1rem;display:inline-flex;gap:.3rem;align-items:center}.emu86-github-asset-actions{display:flex;align-items:center}.emu86-github-asset-progress{grid-column:1 / -1;font-size:.75rem;color:#aaa;min-height:1em}.emu86-tag-badge{display:inline-block;padding:.05rem .35rem;border-radius:2px;font-size:.7rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.emu86-tag-likely-works{background:#103a18;color:#8af5a4}.emu86-tag-untested{background:#2a2410;color:#f5d68a}.emu86-tag-known-incompatible{background:#3a1010;color:#faa}.about-link{color:#3f6;text-decoration:none}.about-link:hover{text-decoration:underline}.prev-version-link{color:#5c708a;text-decoration:none}.prev-version-link:hover{color:#a0b8cc;text-decoration:underline}#showcase-banner{position:fixed;left:50%;bottom:.75rem;transform:translate(-50%);z-index:15;max-width:min(44rem,calc(100vw - 2rem));display:flex;align-items:center;gap:.75rem;padding:.5rem .9rem;background:#101a10;border:1px solid #2a4a2a;border-radius:6px;color:#a0c8a0;font-size:.85rem}#showcase-banner.is-news{background:#12210f;border-color:#3f6;color:#d8f0d8;box-shadow:0 0 18px #33ff6640}#showcase-banner.is-news strong{color:#3f6;letter-spacing:.05em}.showcase-refresh{flex-shrink:0;padding:.3rem .7rem;background:#1d3a1d;color:#d8f0d8;border:1px solid #33ff66;border-radius:3px;font:inherit;cursor:pointer}.showcase-refresh:hover,.showcase-refresh:focus-visible{background:#275227;outline:2px solid #33ff66;outline-offset:1px}.showcase-dismiss{flex-shrink:0;background:transparent;border:0;color:#a0c8a0;font-size:1.2rem;line-height:1;cursor:pointer;padding:0 .2rem}#drive-banner[hidden],#showcase-banner[hidden]{display:none}#drive-banner{position:fixed;right:8.4rem;bottom:1rem;cursor:grab;touch-action:none;user-select:none;z-index:15;max-width:min(30rem,calc(100vw - 2rem));display:flex;align-items:center;gap:.75rem;padding:.5rem .9rem;background:#101a10;border:1px solid #2a4a2a;border-radius:6px;color:#a0c8a0;font-size:.85rem}#drive-banner.is-warning{border-color:#b8860b;color:#e8d8a0}#drive-banner.dragging{cursor:grabbing}.drive-save{flex-shrink:0;padding:.3rem .7rem;background:#1d3a1d;color:#d8f0d8;border:1px solid #33ff66;border-radius:3px;font:inherit;cursor:pointer}.drive-save:disabled{opacity:.5;cursor:default}.emu86-cheatsheet{margin-top:.4rem;font-size:.8rem}.emu86-cheatsheet summary{cursor:pointer;color:#a0c8a0}.emu86-cheatsheet pre{margin:.4rem 0 0;padding:.5rem .7rem;background:#0c140c;border:1px solid #2a4a2a;border-radius:4px;overflow-x:auto;line-height:1.5}.editor-handle{position:absolute;left:-2rem;top:3rem;width:2rem;padding:.7rem .3rem;writing-mode:vertical-rl;background:#1c1c1c;color:#e0e0e0;border:1px solid #333;border-right:none;border-radius:6px 0 0 6px;font:inherit;font-size:.75rem;letter-spacing:.05em;cursor:pointer;visibility:visible}.editor-handle:hover,.editor-handle:focus-visible{background:#2a2a2a;outline:2px solid #4a90e2;outline-offset:1px}#editor-panel{position:fixed;top:0;right:0;bottom:0;width:min(30rem,90vw);display:flex;flex-direction:column;background:#10161d;border-left:1px solid #2a3b4d;box-shadow:-6px 0 24px #00000080;z-index:40;font-size:.85rem;overflow:visible;transform:translate(100%);visibility:hidden;transition:transform .22s ease,visibility 0s linear .22s}#editor-panel.is-open{transform:translate(0);visibility:visible;transition:transform .22s ease}.editor-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.6rem .8rem;border-bottom:1px solid #2a3b4d;color:#cfe3f5;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.8rem}.editor-close{background:transparent;border:0;color:#8fb2d0;font-size:1.2rem;line-height:1;cursor:pointer;padding:0 .2rem}.editor-status{padding:.4rem .8rem;color:#a0b8cc;border-bottom:1px solid #1c2835;min-height:1.2em}.editor-status.is-warning{color:#f0c674}.editor-banner{display:flex;align-items:center;gap:.6rem;padding:.35rem .8rem;background:#2a2413;color:#f0c674;border-bottom:1px solid #4a3f1c}.editor-banner button{background:none;border:1px solid #f0c674;border-radius:3px;color:#f0c674;cursor:pointer;padding:.1rem .5rem}.editor-banner button:last-child{border:none;margin-left:auto;padding:0 .2rem}.editor-body{flex:1;display:flex;flex-direction:column;overflow:auto}.editor-list{list-style:none;margin:0;padding:.4rem 0}.editor-list li{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;padding:.1rem .8rem}.editor-list li button{background:transparent;border:0;color:#cfe3f5;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.85rem;cursor:pointer;padding:.15rem 0;text-align:left}.editor-list li button:hover,.editor-list li button:focus-visible{color:#fff;text-decoration:underline}.editor-list li span{color:#5c708a;font-size:.75rem;white-space:nowrap}.editor-list .editor-skip,.editor-list .editor-empty{color:#5c708a;font-style:italic}.editor-bar{display:flex;align-items:center;gap:.5rem;padding:.4rem .8rem;border-bottom:1px solid #1c2835}.editor-bar button{padding:.2rem .6rem;background:#16202b;color:#cfe3f5;border:1px solid #2a3b4d;border-radius:3px;font:inherit;font-size:.8rem;cursor:pointer}.editor-bar .editor-write{margin-left:auto;border-color:#3d7bb5}.editor-bar button:hover,.editor-bar button:focus-visible{background:#1d2d3e}.editor-filename{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#8fb2d0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-code{flex:1;margin:0;padding:.6rem .8rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.82rem;line-height:1.45;color:#e0e0e0;background:#0c1117;outline:none;overflow:auto;tab-size:4}/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}
