:root { --xp-blue: #0054e3; --xp-face: #ece9d8; --xp-line: #aca899; --ink: #f4efe6; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1b1712; color: var(--ink); font: 14px/1.4 Tahoma, "Segoe UI", Verdana, sans-serif; }
#scene { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#scene:active { cursor: grabbing; }

/* ---------- HUD ---------- */
@keyframes pulse { 50% { opacity: .35; } }
.back { font: 600 14px/1 Tahoma, sans-serif; color: #fff; border: 1px solid #1d4d10; border-radius: 8px; padding: 11px 16px; cursor: pointer;
  background: linear-gradient(#5cc15c, #2f8f2f); box-shadow: 0 2px 10px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.back { position: fixed; left: 16px; bottom: 20px; background: rgba(20,16,12,.7); border-color: #555; }
/* hover label in the room: a little brass plate, like the ones on the cabinets */
#tip { position: fixed; pointer-events: none; z-index: 5; padding: 4px 11px 5px; border-radius: 2px;
  background: linear-gradient(#d4b06a, #b8904a 55%, #a07a3a); color: #2a1a08; border: 1px solid #7a5a26;
  box-shadow: inset 0 1px rgba(255,240,200,.6), 0 3px 10px rgba(30,18,6,.35); font: bold 13px Georgia, 'Times New Roman', serif; letter-spacing: .02em; white-space: nowrap; }

/* ---------- loader ---------- */
#loader { position: fixed; inset: 0; background: #000; display: grid; place-items: center; z-index: 50; transition: opacity .8s; }
#loader.gone { opacity: 0; pointer-events: none; }
.ld { display: grid; gap: 28px; justify-items: center; }
.ld-logo { width: 76px; height: 76px; } /* the boxd logo (boxd.sh/favicon.svg) */
.ld-word { margin-top: -14px; color: #f4f4f5; font: 600 26px/1 "Segoe UI", Tahoma, system-ui, sans-serif; letter-spacing: .02em; }
.ld-bar { width: 150px; height: 18px; border: 2px solid #b2b2b2; border-radius: 4px; padding: 2px; overflow: hidden; position: relative; }
.ld-bar i { position: absolute; top: 2px; width: 9px; height: 10px; background: linear-gradient(#a1a1aa, #f4f4f5, #a1a1aa); animation: ld 1.6s linear infinite; }
.ld-bar i:nth-child(2) { animation-delay: .12s; } .ld-bar i:nth-child(3) { animation-delay: .24s; }
@keyframes ld { from { left: -30px; } to { left: 160px; } }

.flag { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 16px; height: 16px; transform: skewY(-6deg); }
.flag b { border-radius: 2px 3px 1px 2px; }
.flag b:nth-child(1) { background: #f25022; } .flag b:nth-child(2) { background: #7fba00; } .flag b:nth-child(3) { background: #00a4ef; } .flag b:nth-child(4) { background: #ffb900; }
.flag.big { width: 84px; height: 84px; gap: 5px; }
.flag.big b { border-radius: 6px 10px 4px 6px; }

/* ---------- XP desktop ---------- */
#desktop { position: fixed; inset: 0; z-index: 20; background: #000; }
/* standing in the room: the same live desktop, behind the canvas, warped onto the CRT by scene.js */
#desktop.on-crt { z-index: 0; pointer-events: none; transform-origin: 0 0; will-change: transform;
  right: auto; bottom: auto; width: calc(100vh * var(--crt-aspect, 1.29)); height: 100vh; } /* the monitor opening's shape, so it fills it */
.xp-screen { position: absolute; inset: 0; overflow: hidden; color: #000; font: 11px/1.35 Tahoma, "Segoe UI", Verdana, sans-serif; user-select: none; }
.xp-desk { position: absolute; inset: 0; background: #3a78c8 url(img/bliss.jpg) center / cover; }
.crt-fx { position: absolute; inset: 0; pointer-events: none; z-index: 9999;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,.28)); }

.xp-icons { position: absolute; left: 6px; top: 8px; bottom: 36px; display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; gap: 4px; z-index: 1; }
.xp-icon { width: 84px; background: none; border: 0; padding: 4px 2px; display: grid; justify-items: center; gap: 3px; cursor: default; color: #fff; font: inherit; }
.xp-icon .ico { width: 36px; height: 36px; }
.xp-icon .lbl { text-shadow: 1px 1px 1px #000, 0 0 3px #000; padding: 0 2px; }
.xp-icon.sel .lbl { background: #316ac5; }
.xp-icon.sel .ico { filter: brightness(.7) sepia(1) hue-rotate(180deg) saturate(3); }
.ico { display: inline-block; flex: none; width: 16px; height: 16px; }
.ico svg { width: 100%; height: 100%; display: block; }
.ico.sm { width: 14px; height: 14px; vertical-align: -3px; margin-right: 5px; }
.ico.lg { width: 40px; height: 40px; }

.xp-windows { position: absolute; left: 0; right: 0; top: 0; bottom: 30px; }
.xp-win { position: absolute; display: flex; flex-direction: column; background: var(--xp-face); border: 3px solid #0831d9; border-top: 0; border-radius: 8px 8px 0 0; box-shadow: 2px 3px 12px rgba(0,0,0,.45); min-width: 220px; min-height: 120px; }
.xp-win.max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; }
.xp-win.inactive { border-color: #7b98e0; }
.xp-title { height: 30px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 3px 0 6px; margin: 0 -3px; border-radius: 8px 8px 0 0; color: #fff; touch-action: none; cursor: default;
  background: linear-gradient(#0997ff 0%, #0053ee 10%, #0050ee 50%, #0066ff 90%, #0044dd 100%); font: bold 13px/1 "Trebuchet MS", Tahoma, sans-serif; text-shadow: 1px 1px #0f1089; }
.xp-win.inactive .xp-title { background: linear-gradient(#a8c4f4, #7a9fe6 20%, #7b9ae3); text-shadow: none; color: #dce6fb; }
.xp-title .t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-title .btns { display: flex; gap: 2px; }
.xp-title button { width: 21px; height: 21px; border: 1px solid #fff; border-radius: 3px; padding: 0; position: relative; cursor: pointer; background: linear-gradient(135deg, #3c8cfe, #1b5ce0); }
.xp-title .close { background: linear-gradient(135deg, #e97c5f, #c4391b); }
.xp-title .min::after { content: ""; position: absolute; left: 5px; bottom: 5px; width: 7px; height: 3px; background: #fff; }
.xp-title .max::after { content: ""; position: absolute; inset: 4px; border: 1px solid #fff; border-top-width: 3px; }
.xp-title .close::before, .xp-title .close::after { content: ""; position: absolute; left: 9px; top: 3px; width: 2px; height: 13px; background: #fff; transform: rotate(45deg); }
.xp-title .close::after { transform: rotate(-45deg); }
.xp-grip { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; z-index: 2; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 50%, #aca899 50% 57%, transparent 57% 67%, #aca899 67% 74%, transparent 74% 84%, #aca899 84% 91%, transparent 91%); }
.xp-win.max .xp-grip { display: none; }
/* fingers: bigger title buttons with room between them, and a bigger corner grip */
@media (pointer: coarse), (max-width: 600px) {
  .xp-title { height: 38px; }
  .xp-title .btns { gap: 6px; }
  .xp-title button { width: 34px; height: 30px; }
  .xp-title .min::after { left: 10px; bottom: 7px; width: 12px; }
  .xp-title .max::after { inset: 6px 9px; }
  .xp-title .close::before, .xp-title .close::after { left: 15px; top: 5px; height: 18px; }
  .xp-grip { width: 28px; height: 28px; }
}
.xp-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 6px; user-select: text; }
.xp-win.dark .xp-body { background: #000; padding: 0; }

.tabs { display: flex; gap: 0; padding-left: 4px; flex: none; }
.tabs span { padding: 3px 9px; border: 1px solid #919b9c; border-bottom: 0; border-radius: 3px 3px 0 0; background: linear-gradient(#fff, #ecebe5); margin-right: -1px; cursor: pointer; }
.tabs span.on { background: #fcfcfe; border-top: 2px solid #ffc83c; position: relative; top: 1px; z-index: 1; }
.panel { flex: 1; min-height: 0; background: #fcfcfe; border: 1px solid #919b9c; padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.panel.tm { padding: 6px; }
.muted { color: #555; margin: 0; }
.bad { color: #b00; } .ok { color: #1a7f1a; }

.sys { display: grid; grid-template-columns: 110px 1fr; gap: 12px 14px; align-content: start; }
.sys-logo { display: grid; place-items: start center; padding-top: 6px; }
.sys-logo .flag.big { width: 72px; height: 72px; }
.sys dl { margin: 0; display: grid; gap: 4px; }
.sys dt { font-weight: bold; margin-top: 4px; }
.sys dd { margin: 0 0 0 14px; }
.sys .meters, .sys .muted { grid-column: 1 / -1; }
.size p { margin: 0; }
.size-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.size-opt { font: inherit; font-size: 13px; color: #000; padding: 14px 6px; display: grid; gap: 3px; justify-items: center; cursor: pointer;
  border: 1px solid #003c74; border-radius: 3px; background: linear-gradient(#fff, #ecebe5 86%, #d6d0c5); }
.size-opt:hover:not(:disabled) { box-shadow: inset 0 0 0 2px #f8b636; }
.size-opt:disabled { cursor: default; color: #8a8a8a; border-color: #aca899; }
.size-opt.on { color: #000; background: #fcfcfe; border-color: #316ac5; box-shadow: inset 0 0 0 2px #316ac5; }
.size-opt small { font-size: 11px; color: #316ac5; }
.meter { display: grid; grid-template-columns: 64px 1fr; gap: 2px 8px; align-items: center; margin-bottom: 6px; }
.meter small { grid-column: 2; color: #444; }
.bar { height: 16px; border: 1px solid #686868; border-radius: 3px; padding: 1px; display: flex; gap: 2px; background: #fff; }
.bar i { width: calc((100% - 38px) / 20); background: linear-gradient(#aceba0, #2fb52f 50%, #5dcf5d); }

table { width: 100%; border-collapse: collapse; background: #fff; }
th { text-align: left; font-weight: normal; background: linear-gradient(#fff, #ebeadb); border: 1px solid #d6d2c2; border-top: 0; padding: 3px 6px; position: sticky; top: 0; }
td { padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
tr[data-open] { cursor: pointer; }
tbody tr:hover { background: #316ac5; color: #fff; }
.scroll { flex: 1; min-height: 0; overflow: auto; border: 1px solid #7f9db9; background: #fff; }
.statusbar { flex: none; display: flex; gap: 2px; margin-top: 4px; }
.statusbar span { flex: 1; border: 1px solid #b5b2a2; border-radius: 0; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.perf { display: grid; grid-template-columns: 110px 1fr; gap: 6px 8px; flex: 1; min-height: 0; }
.perf fieldset { margin: 0; border: 1px solid #d0d0bf; border-radius: 3px; padding: 4px 6px 6px; min-width: 0; display: flex; }
.perf legend { color: #0046d5; padding: 0 3px; }
.perf .span { grid-column: 1 / -1; }
.gauge { background: #000; flex: 1; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 6px 0; }
.gauge b { color: #00ff00; font: 11px monospace; }
.lcd { display: grid; gap: 2px; width: 34px; }
.lcd i { height: 3px; background: repeating-linear-gradient(90deg, #0a5a0a 0 7px, transparent 7px 9px); }
.lcd i.on { background: repeating-linear-gradient(90deg, #00ff00 0 7px, transparent 7px 9px); }
.graph { flex: 1; width: 100%; min-height: 70px; background: #000; display: block; }
.grid4 { display: grid; grid-template-columns: auto auto auto auto; gap: 2px 14px; }
.grid4 b { font-weight: normal; text-align: right; }
@media (max-width: 560px) { .perf { grid-template-columns: 80px 1fr; } .grid4 { grid-template-columns: auto auto; } }

.app .app-head { display: flex; gap: 10px; align-items: center; }
.app .app-head b { font-size: 13px; }
.status { font-weight: bold; } .status.ok { color: #1a7f1a; } .status.bad { color: #b00; }
.app p { margin: 0; }
.kv { display: grid; grid-template-columns: 70px 1fr; gap: 3px 10px; margin: 0; }
.kv dt { color: #555; } .kv dd { margin: 0; }
.xp-btn { align-self: flex-start; color: #000; text-decoration: none; padding: 4px 12px; border: 1px solid #003c74; border-radius: 3px; background: linear-gradient(#fff, #ecebe6 86%, #d6d0c5); }
.xp-btn:hover { box-shadow: inset 0 0 0 2px #f8b636; }
a { color: #0033cc; }

pre.scroll { margin: 0; border: 0; background: #000; color: #c0c0c0; font: 13px/1.35 "Lucida Console", "Courier New", monospace; padding: 6px 8px; white-space: pre; user-select: text; }
pre .dim { color: #777; }
.caret { animation: pulse 1s steps(1) infinite; }

/* taskbar */
.xp-taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; display: flex; align-items: stretch; z-index: 5000;
  background: linear-gradient(#3168d5 0%, #4993e6 4%, #2157d7 10%, #2663da 90%, #1941a5 100%); }
.xp-start { display: flex; align-items: center; gap: 6px; padding: 0 16px 0 8px; border: 0; color: #fff; cursor: pointer; border-radius: 0 12px 12px 0;
  font: italic bold 18px/1 "Trebuchet MS", sans-serif; text-shadow: 1px 1px 2px #1a3b1a; box-shadow: inset -2px 0 4px rgba(0,0,0,.3);
  background: linear-gradient(#3c9a3c 0%, #5ac85a 8%, #3a9e3a 45%, #2f8a2f 90%, #2a7a2a 100%); }
.xp-start:hover { filter: brightness(1.1); }
.xp-tasks { flex: 1; display: flex; gap: 3px; padding: 3px 6px; min-width: 0; overflow: hidden; }
.xp-task { flex: 0 1 160px; min-width: 32px; display: flex; align-items: center; gap: 5px; color: #fff; border: 0; border-radius: 3px; padding: 0 8px; font: 11px Tahoma, sans-serif; cursor: pointer;
  background: linear-gradient(#3c81f3, #3a78e8); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); overflow: hidden; }
.xp-task span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-task.active { background: #1e52b7; box-shadow: inset 1px 1px 3px rgba(0,0,0,.5); }
.xp-tray { display: flex; align-items: center; gap: 10px; padding: 0 10px; color: #fff; border-left: 1px solid #0b5fc9; box-shadow: inset 1px 0 1px #3fb5ff;
  background: linear-gradient(#0c59b9, #139ee9 6%, #18b9ff 10%, #1592e6 88%, #0e5fc1); }
.xp-tray-cpu { font-size: 11px; opacity: .9; }
.xp-standup { font: 11px Tahoma, sans-serif; color: #fff; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.4); border-radius: 3px; padding: 3px 7px; cursor: pointer; }
.xp-standup:hover { background: rgba(0,0,0,.35); }
@media (max-width: 560px) { .xp-tray-cpu { display: none; } .xp-task span:last-child { display: none; } .xp-task { flex: 0 0 34px; justify-content: center; } }

/* start menu */
.xp-start-menu { position: absolute; left: 0; bottom: 30px; width: min(400px, 100vw); z-index: 6000; border: 1px solid #0831d9; border-radius: 8px 8px 0 0; overflow: hidden; box-shadow: 3px 3px 12px rgba(0,0,0,.5); background: #fff; }
.sm-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: #fff; font: bold 15px "Trebuchet MS", sans-serif; text-shadow: 1px 1px #0f1089;
  background: linear-gradient(#1868ce, #0e60cb 12%, #0e60cb 88%, #3b86e4); }
.sm-head .avatar { width: 44px; height: 44px; border: 2px solid #fff; border-radius: 4px; overflow: hidden; background: #ddd; }
.sm-head .avatar img { width: 100%; height: 100%; object-fit: cover; }
.sm-cols { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid #f39c34; }
.sm-left { padding: 6px 4px; display: grid; align-content: start; gap: 1px; }
.sm-right { padding: 6px 4px; background: #d3e5fa; border-left: 1px solid #95bdee; display: grid; align-content: start; gap: 1px; }
.xp-start-menu button { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 5px 6px; text-align: left; font: 11px Tahoma, sans-serif; color: #000; cursor: pointer; border-radius: 2px; }
.xp-start-menu .sm-right button { font-weight: bold; color: #0a246a; }
.xp-start-menu button .ico { width: 28px; height: 28px; }
.xp-start-menu .sm-right button .ico { width: 22px; height: 22px; }
.xp-start-menu button b { display: block; } .xp-start-menu small { color: #666; }
.xp-start-menu button:hover { background: #316ac5; color: #fff; } .xp-start-menu button:hover small { color: #dde; }
.sm-left hr { border: 0; border-top: 1px solid #ddd; margin: 4px 6px; }
.sm-foot { display: flex; justify-content: flex-end; gap: 4px; padding: 6px 8px; background: linear-gradient(#1868ce, #0e60cb 12%, #0e60cb 88%, #3b86e4); }
.sm-foot button { width: auto !important; color: #fff !important; }
.sm-foot button .ico { width: 22px !important; height: 22px !important; }

/* ---------- app window actions ---------- */
.app-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.xp-btn { display: inline-flex; align-items: center; gap: 4px; font: 11px Tahoma, sans-serif; cursor: pointer; }
.sm-left .pinned b { font-size: 12px; }

/* ---------- Command Prompt ---------- */
.cmd { flex: 1; min-height: 0; overflow: auto; background: #000; color: #c0c0c0; font: 13px/1.35 "Lucida Console", "Courier New", monospace; padding: 6px 8px; cursor: text; user-select: text; }
.cmd .out { margin: 0; font: inherit; white-space: pre-wrap; word-break: break-word; }
.cmd .line { display: flex; }
.cmd .p { white-space: pre; }
.cmd input { flex: 1; min-width: 20px; background: transparent; border: 0; outline: 0; color: inherit; font: inherit; padding: 0; caret-color: #c0c0c0; }
.cmd.busy input { caret-color: transparent; }

/* ---------- Internet Explorer ---------- */
.xp-body.ie-body { padding: 0; }
.ie { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--xp-face); }
.ie-menu { display: flex; align-items: center; gap: 0; padding: 1px 2px; border-bottom: 1px solid #fff; box-shadow: 0 1px #d0cdbf; position: relative; }
.ie-menu > span { padding: 2px 7px; cursor: default; }
.ie-menu > span:hover { background: #316ac5; color: #fff; }
.ie-throbber { margin-left: auto; width: 38px; height: 22px; background: #fff; border-left: 1px solid #aaa; display: grid; place-items: center; grid-template-columns: 7px 7px; grid-template-rows: 7px 7px; gap: 1px; align-content: center; justify-content: center; }
.ie-throbber b:nth-child(1) { background: #f25022; } .ie-throbber b:nth-child(2) { background: #7fba00; } .ie-throbber b:nth-child(3) { background: #00a4ef; } .ie-throbber b:nth-child(4) { background: #ffb900; }
.ie-throbber b { width: 7px; height: 7px; transform: skewY(-8deg); }
.ie-throbber.on { animation: throb 1s linear infinite; }
@keyframes throb { 50% { transform: rotateY(180deg); } }
.ie-toolbar { display: flex; align-items: center; gap: 2px; padding: 2px 4px; border-bottom: 1px solid #fff; box-shadow: 0 1px #d0cdbf; flex-wrap: nowrap; overflow: hidden; }
.ie-toolbar button { display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 5px; background: none; border: 1px solid transparent; border-radius: 3px; font: 11px Tahoma, sans-serif; color: #000; cursor: pointer; flex: none; }
.ie-toolbar button:hover:not(:disabled) { border-color: #c2c0b0; background: linear-gradient(#fff, #e3e0d2); }
.ie-toolbar button:disabled { filter: grayscale(1); opacity: .45; cursor: default; }
.ie-toolbar .ico { width: 22px; height: 22px; }
.ie-toolbar .sep { width: 1px; height: 28px; background: #c5c2b2; margin: 0 4px; box-shadow: 1px 0 #fff; }
.arrow { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #b9f5a3, #3ea32d 55%, #1f6d17); position: relative; box-shadow: inset 0 -1px 2px rgba(0,0,0,.3); }
.arrow::after { content: ""; position: absolute; inset: 8px 9px; background: #fff; clip-path: polygon(0 50%, 55% 0, 55% 30%, 100% 30%, 100% 70%, 55% 70%, 55% 100%); }
.arrow.fwd::after { transform: scaleX(-1); }
.tb { width: 22px; height: 22px; display: block; border-radius: 3px; position: relative; }
.tb.stop { background: linear-gradient(#f07a5a, #c1331a); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.tb.stop::after { content: "✕"; color: #fff; font: bold 12px/22px Tahoma; position: absolute; inset: 0; text-align: center; }
.tb.refresh { background: radial-gradient(circle, transparent 5px, #3a8be0 5px 9px, transparent 9px); }
.tb.refresh::after { content: ""; position: absolute; right: 1px; top: 3px; border: 5px solid transparent; border-bottom-color: #3a8be0; transform: rotate(45deg); }
.tb.home { background: linear-gradient(#fbe7a8, #e3b64b); clip-path: polygon(50% 5%, 95% 45%, 82% 45%, 82% 95%, 18% 95%, 18% 45%, 5% 45%); }
.ie-address { display: flex; align-items: center; gap: 4px; padding: 3px 4px; border-bottom: 1px solid #fff; box-shadow: 0 1px #d0cdbf; margin: 0; }
.ie-address label { color: #555; padding: 0 2px; }
.ie-address .box { flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px; background: #fff; border: 1px solid #7f9db9; padding: 1px 3px; }
.ie-address .box .ico { width: 16px; height: 16px; }
.ie-address input { flex: 1; min-width: 0; border: 0; outline: 0; font: 11px Tahoma, sans-serif; padding: 2px 0; user-select: text; }
.ie-address .go { display: flex; align-items: center; gap: 4px; background: none; border: 1px solid transparent; font: 11px Tahoma; cursor: pointer; padding: 2px 6px; }
.ie-address .go i { width: 16px; height: 16px; border-radius: 3px; background: linear-gradient(#6fd35a, #2c8d21); clip-path: polygon(0 30%, 55% 30%, 55% 0, 100% 50%, 55% 100%, 55% 70%, 0 70%); }
.ie-address .go:hover { border-color: #c2c0b0; }
.ie-view { flex: 1; min-height: 0; position: relative; background: #fff; border-top: 1px solid #919b9c; overflow: auto; }
.ie-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.ie-page { position: absolute; inset: 0; overflow: auto; }
.ie-tabs { flex: none; display: flex; align-items: flex-end; gap: 2px; padding: 4px 4px 0; overflow-x: auto; scrollbar-width: none; }
.ie-tab { flex: 0 1 180px; min-width: 70px; display: flex; align-items: center; gap: 5px; padding: 3px 4px 3px 7px; border: 1px solid #919b9c; border-bottom: 0;
  border-radius: 4px 4px 0 0; background: linear-gradient(#fff, #e3e1d6); cursor: default; white-space: nowrap; position: relative; top: 1px; }
.ie-tab.on { background: #fff; border-top: 2px solid #ffc83c; z-index: 1; }
.ie-tab .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ie-tab .x { flex: none; width: 15px; height: 15px; padding: 0; border: 0; border-radius: 2px; background: none; position: relative; cursor: pointer; }
.ie-tab .x:hover { background: #c4391b; }
.ie-tab .x::before, .ie-tab .x::after { content: ""; position: absolute; left: 7px; top: 2px; width: 1.5px; height: 11px; background: #555; transform: rotate(45deg); }
.ie-tab .x::after { transform: rotate(-45deg); }
.ie-tab .x:hover::before, .ie-tab .x:hover::after { background: #fff; }
.ie-newtab { flex: none; width: 24px; height: 22px; margin-bottom: 1px; padding: 0; border: 1px solid transparent; border-radius: 3px; background: none; font: bold 15px/1 Tahoma, sans-serif; color: #444; cursor: pointer; }
.ie-newtab:hover { border-color: #919b9c; background: #fff; }
@media (pointer: coarse) { .ie-tab .x { width: 22px; height: 22px; } .ie-tab .x::before, .ie-tab .x::after { left: 10px; top: 5px; } .ie-newtab { width: 32px; height: 28px; } }
.ie-status { display: flex; gap: 2px; padding: 2px; flex: none; }
.ie-status span { border: 1px solid; border-color: #aca899 #fff #fff #aca899; padding: 1px 5px; display: flex; align-items: center; gap: 4px; }
.ie-status .msg { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ie-status .zone { width: 130px; }
.ie-status .ico { width: 14px; height: 14px; }
@media (max-width: 560px) { .ie-menu > span:nth-child(n+4), .ie-toolbar button span:not(.ico), .ie-address label { display: none; } }

.ie-home { max-width: 760px; margin: 0 auto; padding: 22px 24px 30px; font: 12px/1.5 Verdana, Tahoma, sans-serif; color: #222; }
.ie-home header { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 3px solid #f39c34; }
.ie-home .logo { width: 56px; height: 56px; }
.ie-home h1 { margin: 0; font: bold 26px "Trebuchet MS", sans-serif; color: #0a3d91; }
.ie-home header p { margin: 2px 0 0; color: #666; }
.ie-home h2 { font: bold 14px "Trebuchet MS", sans-serif; color: #0a3d91; margin: 22px 0 6px; }
.ie-home .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; margin-top: 16px; }
.ie-home .cards a { display: grid; gap: 4px; padding: 12px; border: 1px solid #c9d7ef; border-radius: 6px; background: linear-gradient(#fff, #eef3fc); cursor: pointer; text-decoration: none; color: #222; }
.ie-home .cards a:hover { border-color: #316ac5; box-shadow: 0 0 0 2px #cfe0ff; }
.ie-home .cards .ico { width: 32px; height: 32px; }
.ie-home .cards b { color: #0033cc; font-size: 13px; }
.ie-home .cards small { color: #555; }
.ie-home .links { margin: 0; padding-left: 18px; }
.ie-home .links a, .ie-error a { color: #0033cc; text-decoration: underline; cursor: pointer; }
.ie-home .note { color: #777; font-size: 11px; margin-top: 18px; }
.ie-home code { background: #eee; padding: 0 3px; }

.ie-error { max-width: 620px; padding: 24px 28px; font: 12px/1.5 Tahoma, Verdana, sans-serif; color: #000; }
.ie-error-head { display: flex; align-items: center; gap: 12px; }
.ie-error-head .ico { width: 32px; height: 32px; }
.ie-error h1 { font: bold 17px Verdana, sans-serif; margin: 0; }
.ie-error hr { border: 0; border-top: 1px solid #c0c0c0; margin: 14px 0; }
.ie-error .small { color: #777; font-size: 11px; margin-top: 24px; }


/* ---------- other machines' info card (3D room) ---------- */
.mcard { position: fixed; z-index: 6; width: 260px; display: grid; gap: 6px; padding: 12px 14px 13px; border-radius: 3px;
  background: #f6f1e6; color: #2a1a08; border: 1px solid #b8904a; box-shadow: inset 0 0 0 3px #f6f1e6, inset 0 0 0 4px #d9c49a, 0 8px 24px rgba(30,18,6,.35);
  font: 13px Georgia, 'Times New Roman', serif; }
.mcard b { font: bold 16px Georgia, serif; }
.mcard .st { font: 12px Tahoma, sans-serif; color: #a8700f; } .mcard .st.on { color: #2f7d3e; }
.mcard p { margin: 0; color: #5a4632; }
.mcard a { color: #7a4a1a; }
.mcard .x { position: absolute; right: 8px; top: 5px; background: none; border: 0; color: #7a5a26; font-size: 18px; cursor: pointer; }

/* ---------- XP message boxes & dialogs ---------- */
.xp-modals { position: absolute; inset: 0 0 30px; pointer-events: none; z-index: 7000; }
.xp-modal { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: auto; background: rgba(0,0,0,.08); }
.xp-modal.dim { background: rgba(0,0,0,.45); filter: none; }
.dlg-title { height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; margin: 0 -3px; border-radius: 8px 8px 0 0; color: #fff; font: bold 12px "Trebuchet MS", sans-serif; text-shadow: 1px 1px #0f1089; background: linear-gradient(#0997ff 0%, #0053ee 10%, #0050ee 50%, #0066ff 90%, #0044dd 100%); }
.xp-msg { width: min(420px, calc(100vw - 24px)); background: var(--xp-face); border: 3px solid #0831d9; border-top: 0; border-radius: 8px 8px 0 0; box-shadow: 3px 4px 16px rgba(0,0,0,.45); font: 11px/1.45 Tahoma, sans-serif; color: #000; }
.msg-body { display: flex; gap: 14px; padding: 16px 16px 8px; }
.msg-body .ico.lg { width: 32px; height: 32px; }
.msg-body p { margin: 0 0 8px; user-select: text; }
.msg-body input { width: 100%; font: 11px Tahoma; padding: 3px 4px; border: 1px solid #7f9db9; user-select: text; }
.msg-btns { display: flex; justify-content: center; gap: 8px; padding: 6px 12px 14px; }
.msg-btns .xp-btn { min-width: 75px; justify-content: center; padding: 4px 10px; }
.xp-btn:disabled { color: #999; cursor: default; box-shadow: none; }

.xp-turnoff { width: min(400px, calc(100vw - 24px)); border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.5); font: 12px Tahoma, sans-serif; background: linear-gradient(#5a7edc, #7f9ee8); }
.to-head { display: flex; justify-content: space-between; align-items: center; background: #0a2a8a; color: #fff; padding: 14px 16px; font: 20px "Franklin Gothic Medium", "Trebuchet MS", sans-serif; }
.to-btns { display: flex; justify-content: space-around; padding: 26px 10px 10px; }
.to-btns button { background: none; border: 0; color: #fff; font: 12px Tahoma; display: grid; justify-items: center; gap: 8px; cursor: pointer; }
.to-btns button:hover .pw { filter: brightness(1.15); box-shadow: 0 0 0 2px #fff; }
.pw { width: 36px; height: 36px; border-radius: 5px; position: relative; border: 1px solid rgba(255,255,255,.7); }
.pw.standby { background: linear-gradient(#f7d25a, #d99a12); } .pw.off { background: linear-gradient(#f07a5a, #c1331a); } .pw.restart { background: linear-gradient(#72d45e, #2c8d21); }
.pw::after { content: "⏻"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 20px; }
.pw.restart::after { content: "↻"; } .pw.standby::after { content: "☾"; }
.to-note { color: #fff; opacity: .9; margin: 8px 18px 0; font-size: 11px; text-align: center; }
.to-foot { display: flex; justify-content: flex-end; background: #0a2a8a; padding: 10px 14px; margin-top: 14px; }

/* ---------- Welcome screen ---------- */
.xp-welcome { position: absolute; inset: 0; z-index: 8000; display: grid; grid-template-rows: 70px 1fr 80px; background: #5a7edc; color: #fff; font: 13px Tahoma, sans-serif; }
.wl-top, .wl-bot { background: #00309c; }
.wl-top { border-bottom: 2px solid #f39c34; box-shadow: 0 2px 0 #fff3; }
.wl-mid { display: grid; grid-template-columns: 1fr 2px 1fr; align-items: center; background: radial-gradient(ellipse at 20% 30%, #7a9ce8, #5a7edc 60%); }
.wl-mid::before { content: ""; grid-column: 2; height: 70%; background: linear-gradient(transparent, #fff8, transparent); }
.wl-left { grid-column: 1; grid-row: 1; justify-self: end; padding-right: 40px; text-align: right; display: grid; justify-items: end; gap: 6px; }
.wl-left .flag.big { width: 70px; height: 70px; }
.wl-left h1 { margin: 6px 0 0; font: bold 34px "Franklin Gothic Medium", "Trebuchet MS", sans-serif; }
.wl-left p { margin: 0; font-size: 16px; }
.wl-right { grid-column: 3; grid-row: 1; padding-left: 40px; display: grid; gap: 14px; }
.wl-user { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; padding: 8px 12px; border-radius: 8px; max-width: 380px; }
.wl-user:hover { background: linear-gradient(90deg, #00309c88, transparent); }
.wl-pic { width: 56px; height: 56px; flex: none; border: 2px solid #fff; border-radius: 6px; overflow: hidden; }
.wl-pic svg { width: 100%; height: 100%; display: block; }
.wl-user b { font-size: 18px; display: block; }
.wl-user small { opacity: .85; }
.wl-pass { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.wl-pass[hidden] { display: none; }
.wl-pass input { width: 200px; padding: 4px 6px; border: 1px solid #002c8a; border-radius: 3px; font: 13px Tahoma; user-select: text; }
.wl-pass .go { width: 28px; height: 26px; border: 1px solid #fff; border-radius: 4px; background: linear-gradient(#72d45e, #2c8d21); color: #fff; font-weight: bold; cursor: pointer; }
.wl-pass .err { flex-basis: 100%; margin: 2px 0 0; color: #ffe08a; }
.wl-bot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; border-top: 2px solid #f39c34; }
.wl-bot p { max-width: 380px; opacity: .85; font-size: 12px; text-align: right; }
.wl-off { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: #fff; font: 14px Tahoma; cursor: pointer; }
.wl-off .ico { width: 26px; height: 26px; }
@media (max-width: 700px) {
  .xp-welcome { grid-template-rows: 50px 1fr auto; }
  .wl-mid { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 24px; }
  .wl-mid::before { display: none; }
  .wl-left { grid-column: 1; justify-self: center; text-align: center; justify-items: center; padding: 0; }
  .wl-right { grid-column: 1; grid-row: 2; padding: 0 16px; justify-content: center; }
  .wl-bot { flex-direction: column; padding: 12px 16px; } .wl-bot p { text-align: center; }
}

/* ---------- power screens ---------- */
.xp-power { position: absolute; inset: 0; z-index: 9000; display: grid; place-items: center; background: linear-gradient(#5a7edc, #2c52b8); color: #fff; font: 14px Tahoma, sans-serif; }
.pw-inner { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 16px; }
.pw-inner h1 { margin: 0; font: bold 30px "Franklin Gothic Medium", "Trebuchet MS", sans-serif; }
.pw-inner sup { font-size: 14px; }
.pw-text { font-size: 17px; margin: 0; }
.pw-sub { margin: 0; opacity: .85; }
.pw-inner .xp-btn { color: #000; }

/* ---------- wizard windows (System Restore, Backup) ---------- */
.xp-body.wiz-body { padding: 0; }
.xp-win.working, .xp-win.working * { cursor: progress !important; }
.wiz { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.wiz-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #aca899; background: #fff; }
.wiz-head h2 { margin: 0; font: bold 16px "Trebuchet MS", Tahoma, sans-serif; color: #0a246a; }
.wiz-head p { margin: 3px 0 0; color: #444; }
.wiz-head .ico.lg { width: 44px; height: 44px; }
.wiz-main { flex: 1; min-height: 0; overflow: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(#fff, #f5f4ee); }
.wiz-main h3 { margin: 0; font: bold 13px Tahoma; color: #0a246a; }
.wiz-main p { margin: 0; }
.wiz-split { display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.wiz-split p { margin-bottom: 8px; }
.wiz-art { padding-top: 6px; } .wiz-art svg { width: 96px; height: 96px; }
.radio { display: flex; gap: 6px; align-items: center; padding: 3px 0; cursor: pointer; }
.field { display: grid; gap: 4px; margin: 6px 0; }
.field input { font: 11px Tahoma; padding: 3px 4px; border: 1px solid #7f9db9; max-width: 340px; user-select: text; }
.wiz-foot { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-top: 1px solid #aca899; background: var(--xp-face); }
.wiz-foot .xp-btn { min-width: 75px; justify-content: center; padding: 4px 10px; }
.grow { flex: 1; }
.rp-list { max-height: 260px; }
.rp { display: grid; grid-template-columns: auto auto 1fr auto auto; gap: 8px; align-items: center; padding: 5px 8px; border-bottom: 1px solid #eee; cursor: pointer; }
.rp.on { background: #316ac5; color: #fff; } .rp.on .muted { color: #dde; }
.rp-new { display: flex; align-items: center; gap: 8px; font-size: 13px; } .rp-new .ico { width: 28px; height: 28px; }
@media (max-width: 560px) { .wiz-split { grid-template-columns: 1fr; } .wiz-art { display: none; } .rp { grid-template-columns: auto 1fr; } .rp .ico, .rp .muted { display: none; } }
.wiz fieldset { border: 1px solid #d0d0bf; border-radius: 3px; padding: 8px 10px; margin: 0; display: grid; gap: 8px; }
.wiz fieldset legend { color: #0046d5; padding: 0 4px; }
.wiz fieldset.grow-f { flex: 1; min-height: 140px; grid-template-rows: 1fr auto; }
.wiz .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.wiz select { font: 11px Tahoma; }
.wiz code, .explorer code { background: #eee; padding: 0 3px; font-size: 11px; }

/* ---------- explorer-style windows (My Network Places, Scheduled Tasks) ---------- */
.explorer { flex: 1; min-height: 0; display: grid; grid-template-columns: 190px 1fr; background: #fff; border: 1px solid #7f9db9; }
.ex-side { background: linear-gradient(#7ba2e7, #6375d6); padding: 10px; display: grid; align-content: start; gap: 10px; overflow: auto; }
.ex-box { background: #fff; border-radius: 4px 4px 0 0; overflow: hidden; font-size: 11px; }
.ex-box h4 { margin: 0; padding: 5px 10px; font: bold 11px Tahoma; color: #215dc6; background: linear-gradient(90deg, #fff, #c6d3f7); }
.ex-box a { display: flex; align-items: center; gap: 6px; padding: 4px 10px; color: #215dc6; cursor: pointer; }
.ex-box a:hover { text-decoration: underline; }
.ex-details { padding: 8px 10px; background: #d6dff7; line-height: 1.5; }
.ex-details a { padding: 0; display: inline; }
.ex-acts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.ex-main { overflow: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.ex-group { margin: 0; font: bold 11px Tahoma; color: #0a246a; border-bottom: 1px solid #c6d3f7; padding-bottom: 3px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.ex-item { display: flex; gap: 8px; align-items: center; background: none; border: 1px solid transparent; padding: 6px; text-align: left; font: 11px Tahoma; cursor: pointer; border-radius: 2px; }
.ex-item .ico { width: 40px; height: 40px; }
.ex-item small { display: block; color: #666; }
.ex-item.off .ico { filter: grayscale(1) brightness(.8); }
.ex-item.sel { background: #316ac5; color: #fff; } .ex-item.sel small { color: #dde; }
.ex-main.tasks .scroll { flex: 1; }
.ex-main tr.add td { color: #215dc6; cursor: pointer; }
.ex-main tr.sel { background: #316ac5; color: #fff; }
.task-log { border: 1px solid #aca899; display: grid; max-height: 45%; min-height: 120px; }
.task-log .row { display: flex; gap: 6px; align-items: center; padding: 4px 6px; background: var(--xp-face); }
.task-log pre { margin: 0; overflow: auto; background: #000; color: #c0c0c0; font: 12px "Lucida Console", monospace; padding: 6px; }
@media (max-width: 600px) { .explorer { grid-template-columns: 1fr; } .ex-side { display: flex; overflow-x: auto; } .ex-box { min-width: 170px; } }

.sm-right hr { border: 0; border-top: 1px solid #95bdee; margin: 4px 6px; }
.sm-head .avatar svg { width: 100%; height: 100%; display: block; }

/* ---------- IE: the real browser ---------- */
.ie-remote { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; cursor: default; background: #fff; }
.ie-error .small { font-size: 11px; color: #555; }

/* ---------- nested copies ---------- */
.ie-toolbar button[hidden] { display: none; }
.ie-toolbar button.dive { font-weight: bold; color: #0b3d8c; border-color: #9ab4dc; background: linear-gradient(#f4f8ff, #d9e6fb); }
.dive-fx { position: fixed; z-index: 9999; background: #000; transition: all .65s cubic-bezier(.6, 0, .3, 1); pointer-events: none; } /* grows to black, then the loader */
.dive-fx.in { left: 0 !important; top: 0 !important; width: 100vw !important; height: 100vh !important; }
.xp-nest { font-size: 11px; white-space: nowrap; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
.xp-nest a { color: #cfe6ff; text-decoration: none; }
.xp-nest a:hover { text-decoration: underline; }
.xp-depth { position: absolute; right: 12px; top: 10px; z-index: 5; padding: 3px 8px; border-radius: 3px; background: #0008; color: #fff; font: 11px Tahoma, sans-serif; pointer-events: none; }
.is-clone .xp-start-menu :is([data-open=restore], [data-open=backup], [data-open=places], [data-open=tasks]) { display: none; }

/* ---------- MSN Messenger ---------- */
.msn-body { display: flex; flex-direction: column; min-height: 0; color: #000; font: 12px/1.4 Tahoma, sans-serif; }
.msn-link { background: none; border: 0; padding: 0; color: #0645ad; text-decoration: underline; cursor: pointer; font: inherit; }
.msn-signin { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 16px; background: linear-gradient(#dfeafb, #fff 45%); overflow: auto; }
.msn-signin p { margin: 0; }
.msn-signin .xp-btn { align-self: center; min-width: 90px; justify-content: center; margin-top: 6px; }
.msn-signin .small { font-size: 11px; text-align: center; }
.msn-logo { display: flex; align-items: center; gap: 6px; color: #1c4f9c; font-size: 17px; }
.msn-logo svg { width: 34px; height: 34px; }
.msn-logo b { font: italic bold 22px Arial, sans-serif; }
.msn-logo sup { font-size: 9px; }
.msn-buddy { width: 96px; height: 96px; margin: 10px 0 4px; padding: 4px; background: #fff; border: 1px solid #7f9db9; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.msn-buddy svg { width: 100%; height: 100%; border-radius: 6px; }
.msn-name { font-weight: bold; font-size: 14px; color: #1c4f9c; }
.msn-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; background: linear-gradient(#e5eefc, #c9dbf6); padding: 6px; gap: 6px; }
.msn-to { padding: 4px 6px; background: #fff; border: 1px solid #7f9db9; border-radius: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msn-log { flex: 1; min-height: 0; overflow: auto; background: #fff; border: 1px solid #7f9db9; border-radius: 3px; padding: 6px 8px; }
.msn-msg { margin-bottom: 8px; overflow-wrap: anywhere; }
.msn-msg .who { color: #555; display: flex; gap: 6px; align-items: baseline; }
.msn-msg .who .muted { font-size: 10px; color: #999; }
.msn-msg .who .msn-link { margin-left: auto; font-size: 10px; color: #999; }
.msn-msg .what { padding-left: 12px; color: #000; }
.msn-msg.admin .who { color: #b06d00; font-weight: bold; }
.msn-empty { padding: 20px 4px; text-align: center; }
.msn-input { display: flex; flex-direction: column; gap: 4px; }
.msn-tools { display: flex; justify-content: space-between; font-size: 11px; color: #333; }
.msn-row { display: flex; gap: 6px; }
.msn-row textarea { flex: 1; resize: none; font: 12px Tahoma, sans-serif; border: 1px solid #7f9db9; border-radius: 3px; padding: 4px; }
.msn-row .xp-btn { align-self: stretch; min-width: 64px; justify-content: center; }
.msn-input .err { margin: 0; color: #c00; font-size: 11px; }

/* ---------- right-click menu ---------- */
.xp-ctx { position: absolute; z-index: 6500; min-width: 170px; padding: 2px; background: #fff; border: 1px solid #aca899; box-shadow: 2px 2px 3px rgba(0,0,0,.35); font: 11px Tahoma, sans-serif; color: #000; }
.xp-ctx .ci { position: relative; display: block; width: 100%; padding: 3px 20px 3px 22px; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: default; white-space: nowrap; }
.xp-ctx .ci.bold { font-weight: bold; }
.xp-ctx .ci.off { color: #aca899; }
.xp-ctx .ci:not(.off):hover { background: #316ac5; color: #fff; }
.xp-ctx .ci.check::before { content: '✓'; position: absolute; left: 7px; }
.xp-ctx .ci.has-sub::after { content: ''; position: absolute; right: 7px; top: 50%; margin-top: -4px; border: 4px solid transparent; border-left-color: currentColor; border-right: 0; }
.xp-ctx hr { border: 0; border-top: 1px solid #aca899; margin: 3px 1px; }
.xp-ctx .sub { display: none; left: 100%; top: -3px; }
.xp-ctx.flip .sub { left: auto; right: 100%; }
.xp-ctx .ci.has-sub:hover > .sub { display: block; }


/* ---------- Notepad (note.txt on a copy's disk) ---------- */
.np-body { display: flex; flex-direction: column; min-height: 0; }
.np { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #fff; }
.np-menu { display: flex; gap: 12px; padding: 2px 8px; font: 11px Tahoma, sans-serif; color: #000; border-bottom: 1px solid #d6d2c2; background: #ece9d8; }
.np-state { margin-left: auto; color: #6b6b6b; }
.np textarea { flex: 1; border: 0; outline: 0; resize: none; padding: 4px 6px; font: 14px "Lucida Console", Consolas, monospace; color: #000; background: #fff; }

/* ---------- rewind to a checkpoint (rewind.js) ---------- */
.rewind-fx { position: fixed; inset: 0; z-index: 10000; pointer-events: all; opacity: 0; transition: opacity .4s; background: rgba(40, 24, 8, .55); backdrop-filter: sepia(1) saturate(1.6) blur(1.5px) contrast(1.2); }
.rewind-fx.on { opacity: 1; }
.rw-bars { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 2px, transparent 2px 5px); animation: rw-roll .35s linear infinite; }
@keyframes rw-roll { to { background-position: 0 -40px; } }
.rw-text { position: absolute; left: 6vw; top: 8vh; display: grid; color: #fff; font: bold 42px "Lucida Console", monospace; text-shadow: 2px 2px 0 #000, 0 0 12px rgba(255,255,255,.4); animation: rw-blink 1s steps(2) infinite; }
.rw-text span { font-size: 20px; font-weight: normal; }
.rw-time { position: absolute; right: 6vw; bottom: 8vh; color: #fff; font: 32px "Lucida Console", monospace; text-shadow: 2px 2px 0 #000; }
@keyframes rw-blink { 50% { opacity: .55; } }

/* text for crawlers, answer engines and screen readers; the room itself is a canvas */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
