/* On Call: the Windows half of the page. The Remote Desktop window (an original flat take on a Windows server desktop: nobody's
   logo, nobody's artwork), the PowerShell terminal theme, the marks on the map, the track choice, the side-by-side page.
   Tokens from oncall.css, plus the --rd-* family for the desktop. Loaded after oncall.css. */
:root {
  --rd-desk: #0f2a4f; --rd-desk-2: #061a36; --rd-glow: rgba(94,170,255,.3);
  --rd-bar: rgba(9,16,29,.94); --rd-bar-line: rgba(255,255,255,.08); --rd-bar-text: #e6ebf0; --rd-bar-dim: #9fb0c0;
  --rd-win: #f3f3f3; --rd-win-2: #ffffff; --rd-line: #dcdcdc; --rd-line-2: #bcbcbc; --rd-frame: #7f7f7f;
  --rd-text: #1b1b1b; --rd-muted: #5f5f5f; --rd-acc: #0067c0; --rd-acc-2: #1975d1; --rd-sel: #cce8ff; --rd-sel-line: #99d1ff; --rd-hover: #e5f3ff;
  --rd-bad: #c42b1c; --rd-warn: #9d5d00; --rd-ok: #0f7b0f;
  --rd-cpu: #117dbb; --rd-mem: #8b3ea5; --rd-disk: #3f9d44;
  --rd-font: 'Segoe UI', 'Segoe UI Variable Text', system-ui, -apple-system, Roboto, sans-serif;
  --win-mark: #6cb6ff;
}

/* ── PowerShell: the console's own colours. The theme, and always the PowerShell window inside the desktop ── */
html[data-term="powershell"], .rwin[data-tool="ps"] {
  --term-bg: #012456; --term-fg: #eeedf0; --term-fg-bright: #ffffff; --term-dim: #9fb4d0; --term-err: #ff6b6b; --term-prompt: #eeedf0; --term-path: #eeedf0; --term-note: #f9f1a5; --term-sel: rgba(255,255,255,.28); --term-glow: transparent;
  --ansi-red: #e74856; --ansi-green: #16c60c; --ansi-yellow: #f9f1a5; --ansi-blue: #3b78ff; --ansi-magenta: #d670d6; --ansi-cyan: #61d6d6;
}
/* errors and warnings sit on their black panel, the way the console paints them */
html[data-term="powershell"] .ln.err, .rwin[data-tool="ps"] .ln.err { color: #ff6b6b; background: #000; width: fit-content; max-width: 100%; padding: 0 .35ch; margin-left: 0; box-shadow: none; }
.rdp-said { font-family: var(--rd-font); }
.ln.warn { color: var(--warn); }
html[data-term="powershell"] .ln.warn, .rwin[data-tool="ps"] .ln.warn { color: #f9f1a5; background: #000; width: fit-content; max-width: 100%; padding: 0 .35ch; }
html[data-term="powershell"] .ln.learn:hover, .rwin[data-tool="ps"] .ln.learn:hover { box-shadow: none; }

/* ── the launch strip next to the terminal ── */
.termbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 3px 10px; background: var(--bg-2); border-bottom: 1px solid var(--line-2); font: 12px var(--mono); color: var(--muted); }
.termbar .btn { position: relative; padding: 2px 9px 2px 26px; font-size: 12px; }
.termbar .btn::before { content: ''; position: absolute; left: 9px; top: 50%; width: 11px; height: 8px; margin-top: -5px; border: 1.5px solid currentColor; border-radius: 1.5px; box-shadow: 0 4px 0 -2px currentColor; }

/* ── Remote Desktop ── */
.rdp { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--rd-desk); color: var(--rd-text); font: 12.5px/1.35 var(--rd-font); overflow: hidden; animation: fadein-full calc(var(--m) * .3s) ease-out both; }
.rdp-title { display: flex; align-items: center; gap: 6px 10px; padding: 4px 10px; min-height: 32px; background: var(--bg-2); color: var(--text); border-bottom: 1px solid var(--line-2); font: 12.5px var(--mono); }
.rdp-title::before { content: ''; flex: none; width: 13px; height: 9px; margin: 0 2px 4px 0; border: 1.5px solid var(--muted); border-radius: 1.5px; box-shadow: 0 4px 0 -2px var(--muted); }
.rdp-name { font: 500 12.5px var(--mono); color: var(--text); } .rdp-os { color: var(--muted); font-size: 12px; } .rdp-title .spacer { flex: 1; }
.rdp-title .rbtn, .rdp-title .rsel { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 3px; padding: 2px 10px; font: 500 12px var(--mono); }
.rdp-title .rbtn:hover { background: var(--surface-3); border-color: var(--line-3); }
.rdp-title .rsel.pc-jump { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.rdp-said { display: flex; align-items: center; gap: 8px; padding: 4px 10px; background: #e8f1fb; color: #1b2a3a; border-bottom: 1px solid #c4d7ea; font-size: 12.5px; overflow-wrap: anywhere; }
.rdp-said::before { content: 'i'; flex: none; width: 15px; height: 15px; border-radius: 50%; background: var(--rd-acc); color: #fff; font: 700 10px/15px var(--rd-font); text-align: center; }
.rdp-said code { background: #fff; color: #17202a; border: 1px solid #d3e0ee; font-size: 12px; }
.rdp-said.err { background: #fde7e9; color: var(--rd-bad); border-color: #f0b9bd; font-family: var(--mono); font-size: 12px; } .rdp-said.err::before { content: '!'; background: var(--rd-bad); }
.rdp-screen { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: radial-gradient(900px 520px at 72% 112%, var(--rd-glow), transparent 62%), radial-gradient(640px 420px at 12% -12%, rgba(120,190,255,.16), transparent 60%), linear-gradient(165deg, var(--rd-desk), var(--rd-desk-2)); }
.rdp-icons { display: grid; grid-template-columns: repeat(auto-fill, 84px); grid-auto-rows: 80px; gap: 4px; padding: 10px; }
.rdp-icon { display: grid; justify-items: center; align-content: start; gap: 6px; background: none; border: 1px solid transparent; border-radius: 5px; color: #f2f6fa; font-size: 11.5px; line-height: 1.2; padding: 7px 2px 4px; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.rdp-icon:hover, .rdp-icon:focus-visible { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.rdp-icon .ric { width: 36px; height: 36px; }
/* the icons: one coloured tile per tool, the same on the desktop, in the window's title, on the taskbar and in the menu */
.ric { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ric.tile { padding: 5px; border-radius: 22%; background: linear-gradient(160deg, var(--tile-2, #e9eef4), var(--tile, #9aa8b8)); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.35); stroke-width: 1.9; }
[data-open="ev"], [data-tool="ev"], [data-win="ev"] { --tile: #b36b0b; --tile-2: #f0a93a; }
[data-open="svc"], [data-tool="svc"], [data-win="svc"] { --tile: #35557f; --tile-2: #6b8fbf; }
[data-open="tm"], [data-tool="tm"], [data-win="tm"] { --tile: #24744a; --tile-2: #52b377; }
[data-open="ts"], [data-tool="ts"], [data-win="ts"] { --tile: #1b61a3; --tile-2: #5aa0e6; }
[data-open="iis"], [data-tool="iis"], [data-win="iis"] { --tile: #5b3aa8; --tile-2: #9a78e0; }
[data-open="ps"], [data-tool="ps"], [data-win="ps"] { --tile: #012456; --tile-2: #2b5797; }
.rdp-bar { display: flex; align-items: center; gap: 4px; padding: 3px 6px; min-height: 38px; background: var(--rd-bar); color: var(--rd-bar-text); border-top: 1px solid var(--rd-bar-line); }
.rstart { display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,.06); border: 1px solid transparent; border-radius: 4px; color: var(--rd-bar-text); padding: 5px 11px 5px 9px; font-size: 12.5px; font-weight: 600; }
.rstart::before { content: ''; width: 13px; height: 13px; background: radial-gradient(circle, currentColor 1.4px, transparent 1.7px) 0 0 / 4.5px 4.5px; }
.rstart:hover, .rstart[aria-expanded="true"] { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.2); }
.rtaskb { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.04); border: 1px solid transparent; border-bottom: 2px solid transparent; border-radius: 4px; color: var(--rd-bar-text); padding: 3px 11px 3px 7px; font-size: 12.5px; max-width: 170px; }
.rtaskb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rtaskb .ric { width: 18px; height: 18px; padding: 3px; } .rtaskb.on { background: rgba(255,255,255,.14); border-bottom-color: #8ac4ff; } .rtaskb:hover { background: rgba(255,255,255,.1); }
.rclock { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; color: var(--rd-bar-text); font-size: 11.5px; line-height: 1.25; padding: 0 8px; }
.rclock small { display: block; color: var(--rd-bar-dim); font-size: 10.5px; }
.rmenu { position: absolute; left: 6px; bottom: 44px; z-index: 900; display: grid; min-width: 230px; padding: 6px; background: var(--rd-win); border: 1px solid var(--rd-frame); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.45); animation: msg-in calc(var(--m) * .18s) ease-out both; }
.rmenu-h { padding: 4px 8px 6px; font: 700 11px var(--mono); color: var(--rd-muted); letter-spacing: .02em; border-bottom: 1px solid var(--rd-line); margin-bottom: 4px; }
.rmenu-i { display: flex; align-items: center; gap: 10px; background: none; border: 0; border-radius: 4px; text-align: left; padding: 6px 8px; color: var(--rd-text); font-size: 12.5px; }
.rmenu-i:hover, .rmenu-i:focus-visible { background: var(--rd-hover); } .rmenu-i .ric { width: 22px; height: 22px; padding: 4px; }

/* ── a window ── */
.rwin { position: absolute; width: min(840px, calc(100% - 28px)); height: min(520px, calc(100% - 20px)); min-width: 320px; min-height: 200px; display: flex; flex-direction: column; background: var(--rd-win); border: 1px solid var(--rd-frame); border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.25), 0 14px 40px rgba(0,0,0,.35); resize: both; overflow: hidden; animation: dlg-in calc(var(--m) * .2s) ease-out both; }
.rwin.front { border-color: #555; box-shadow: 0 2px 8px rgba(0,0,0,.3), 0 22px 60px rgba(0,0,0,.5); }
.rwin-title { display: flex; align-items: center; gap: 8px; padding: 0 0 0 10px; height: 32px; background: var(--rd-win); color: var(--rd-muted); font-size: 12px; cursor: move; touch-action: none; user-select: none; }
.rwin.front .rwin-title { color: var(--rd-text); }
.rwin-title .ric { width: 18px; height: 18px; padding: 3px; } .rwin-title span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rwin-x { background: none; border: 0; width: 46px; height: 32px; color: var(--rd-text); font-size: 13px; border-radius: 0 7px 0 0; } .rwin-x:hover, .rwin-x:focus-visible { background: #c42b1c; color: #fff; }
.rmenubar { display: flex; gap: 2px; padding: 1px 6px 2px; background: var(--rd-win); border-top: 1px solid var(--rd-line); font-size: 12px; color: var(--rd-muted); user-select: none; }
.rmenubar span { padding: 1px 7px; }
.rwin-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; position: relative; background: var(--rd-win); border-top: 1px solid var(--rd-line); }
.rwin[data-tool="ps"] .rwin-title { background: var(--term-bg); color: #eeedf0; } .rwin[data-tool="ps"] .rwin-x { color: #fff; }
.rwin[data-tool="ps"] .rwin-body { background: var(--term-bg); border-top: 1px solid rgba(255,255,255,.12); }
.rwin[data-tool="ps"] .term { flex: 1 1 auto; min-height: 0; }
.rwin[data-tool="ps"] .chips { background: #0a1c40; border-top-color: rgba(255,255,255,.1); }

/* the panes */
.rsplit { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 172px minmax(0, 1fr); }
.rsplit.three { grid-template-columns: 172px minmax(0, 1fr) 156px; }
.rmain { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--rd-win-2); }
.rtree { background: var(--rd-win-2); border-right: 1px solid var(--rd-line); padding: 6px 4px; overflow-y: auto; min-width: 0; }
.rtree-h { font-size: 11.5px; font-weight: 700; color: var(--rd-text); padding: 6px 6px 3px; }
.rnode { display: flex; align-items: center; gap: 7px; width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: 3px; padding: 3px 8px; color: var(--rd-text); overflow-wrap: anywhere; font-size: 12.5px; }
.rnode::before { content: ''; flex: none; width: 10px; height: 12px; border: 1.3px solid #8a94a0; border-radius: 1.5px; background: linear-gradient(#fff, #fff) 3px 3px / 4px 1.3px no-repeat, linear-gradient(#8a94a0, #8a94a0) 2px 5px / 5px 1.3px no-repeat, linear-gradient(#8a94a0, #8a94a0) 2px 8px / 5px 1.3px no-repeat, #fff; }
.rnode[data-folder]::before, .rnode[data-view]::before { width: 13px; height: 10px; border: 0; border-radius: 2px; background: linear-gradient(#e2b23a, #e2b23a) 0 0 / 6px 2px no-repeat, #f2c94c; box-shadow: inset 0 2px 0 #e8bd45; }
.rnode:hover, .rnode:focus-visible { background: var(--rd-hover); } .rnode.on { background: var(--rd-sel); border-color: var(--rd-sel-line); }
.rtools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 5px 8px; border-bottom: 1px solid var(--rd-line); background: var(--rd-win); }
.rbtn { display: inline-flex; align-items: center; gap: 6px; background: #fdfdfd; border: 1px solid #c8c8c8; border-bottom-color: #a9a9a9; border-radius: 4px; padding: 3px 12px; color: var(--rd-text); font-size: 12.5px; line-height: 1.3; }
.rbtn:hover:not([disabled]), .rbtn:focus-visible { border-color: var(--rd-acc); background: #f0f7ff; } .rbtn[disabled] { opacity: .45; cursor: default; }
.rbtn.primary { background: var(--rd-acc); border-color: var(--rd-acc); color: #fff; } .rbtn.primary:hover:not([disabled]) { background: var(--rd-acc-2); }
/* the little glyphs the real toolbars carry: a green triangle, a square, a loop */
[data-act="start"]::before, [data-act$="-start"]::before, [data-act="run"]::before { content: ''; width: 0; height: 0; border-left: 8px solid var(--rd-ok); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
[data-act="stop"]::before, [data-act$="-stop"]::before { content: ''; width: 8px; height: 8px; background: #4a4a4a; border-radius: 1px; }
[data-act="restart"]::before, [data-act$="-recycle"]::before { content: '↻'; font-size: 13px; line-height: 1; color: var(--rd-acc); font-weight: 700; }
.rsel, .rinp { background: var(--rd-win-2); color: var(--rd-text); border: 1px solid #c8c8c8; border-bottom-color: #8a8a8a; border-radius: 4px; padding: 3px 8px; font: inherit; min-width: 0; max-width: 100%; }
.rsel:focus, .rinp:focus { outline: none; border-color: var(--rd-acc); box-shadow: 0 1px 0 var(--rd-acc); }
.rinp { width: 120px; } .rinp.wide, .rsel.wide { width: 240px; }
.rlab { font-size: 12px; color: var(--rd-muted); } .rcount { font-size: 12px; color: var(--rd-muted); margin-left: auto; }
.rscroll { flex: 1 1 40%; min-height: 80px; overflow: auto; background: var(--rd-win-2); }
.rt { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 12px; }
.rt th { position: sticky; top: 0; text-align: left; font-weight: 400; font-size: 12px; color: var(--rd-text); background: var(--rd-win-2); border-bottom: 1px solid var(--rd-line); border-right: 1px solid var(--rd-line); padding: 4px 8px; white-space: nowrap; z-index: 1; }
.rt th:last-child { border-right: 0; }
.rt td { padding: 3px 8px; vertical-align: top; overflow-wrap: anywhere; line-height: 1.45; }
.rt tbody tr[tabindex] { cursor: default; } .rt tbody tr[tabindex]:hover td { background: var(--rd-hover); }
.rt tbody tr.on td, .rt tbody tr.on:hover td { background: var(--rd-sel); box-shadow: inset 0 1px 0 var(--rd-sel-line), inset 0 -1px 0 var(--rd-sel-line); }
/* where the keyboard is in a list: Windows' own dotted rectangle, over its own selection colour */
.rt tbody tr:focus-visible, .rnode:focus-visible, .rperf-item:focus-visible, .rtab:focus-visible { outline: 1px dotted var(--rd-text); outline-offset: -2px; }
.rt tbody tr:focus-visible:not(.on) td { background: var(--rd-hover); }
.rt tr.stopped td { color: var(--rd-muted); } .rt tr.stopped .c-state { color: var(--rd-bad); font-weight: 600; }
.rt tr.lv-Error .c-level, .rt tr.lv-Critical .c-level, .rt tr.lv-AuditFailure .c-level { color: var(--rd-bad); font-weight: 600; } .rt tr.lv-Warning .c-level { color: var(--rd-warn); font-weight: 600; }
.c-level, .c-num, .c-id, .c-when, .c-state { white-space: nowrap; } .c-num, .c-id { font-variant-numeric: tabular-nums; } .c-num { text-align: right; }
.lvl-cell, .svc-cell { display: inline-flex; align-items: center; gap: 6px; }
.lvi { width: 14px; height: 14px; flex: none; } .lvi .bg { fill: #1a73c9; } .lvi .mk { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.lvi-warn .bg { fill: #f2b100; } .lvi-warn .mk { stroke: #1b1b1b; } .lvi-err .bg, .lvi-crit .bg { fill: #d13438; }
.lvi .ln { fill: none; stroke: #c8960c; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; } .lvi-err .ln { stroke: #d13438; }
.svc-cell .ric { width: 14px; height: 14px; color: #6b7a8c; stroke-width: 2; }
.rdetail { flex: 0 1 auto; max-height: 50%; min-height: 64px; overflow: auto; border-top: 1px solid var(--rd-line-2); background: var(--rd-win); padding: 6px 8px; }
.rmsg { margin: 0 0 8px; padding: 8px 10px; background: var(--rd-win-2); border: 1px solid var(--rd-line); border-radius: 3px; font: 12.5px/1.45 var(--rd-font); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 190px; overflow: auto; }
.rkv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 14px; margin: 0; font-size: 12.5px; } .rkv dt { color: var(--rd-muted); } .rkv dd { margin: 0; overflow-wrap: anywhere; }
.rkv.two { grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); }
.rnone { margin: 8px; color: var(--rd-muted); font-size: 12.5px; }
.rtabs { display: flex; flex-wrap: wrap; gap: 0; padding: 5px 8px 0; border-bottom: 1px solid var(--rd-line-2); background: var(--rd-win); }
.rdetail > .rtabs { margin: -6px -8px 8px; }
.rtab { background: none; border: 1px solid transparent; border-bottom: 0; border-radius: 3px 3px 0 0; padding: 4px 12px; margin-bottom: -1px; color: var(--rd-text); font-size: 12.5px; }
.rtab.on { background: var(--rd-win-2); border-color: var(--rd-line-2); border-bottom: 1px solid var(--rd-win-2); font-weight: 600; } .rdetail .rtab.on { background: var(--rd-win); border-bottom-color: var(--rd-win); }
.rtab:hover:not(.on) { background: var(--rd-hover); }
/* IIS Manager's Actions pane: links, as the real one has */
.ractions { border-left: 1px solid var(--rd-line); background: var(--rd-win); padding: 8px 6px; overflow: auto; min-width: 0; }
.ractions h5 { margin: 0 0 4px; padding: 0 6px; font: 700 12px var(--rd-font); color: var(--rd-text); }
.ract { display: flex; align-items: center; gap: 7px; width: 100%; background: none; border: 0; border-radius: 3px; color: var(--rd-acc); text-align: left; padding: 3px 6px; font-size: 12.5px; }
.ract:hover:not([disabled]), .ract:focus-visible { background: var(--rd-hover); text-decoration: underline; } .ract[disabled] { color: var(--rd-muted); opacity: .6; cursor: default; }

/* Task Manager's Performance tab: the list of graphs on the left, the chosen one large */
.rperf { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 196px minmax(0, 1fr); background: var(--rd-win-2); }
.rperf[data-m="cpu"] { --pm: var(--rd-cpu); } .rperf[data-m="mem"] { --pm: var(--rd-mem); } .rperf[data-m="disk"] { --pm: var(--rd-disk); }
.rperf-nav { border-right: 1px solid var(--rd-line); overflow: auto; padding: 6px 4px; display: flex; flex-direction: column; gap: 2px; }
.rperf-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 2px 10px; align-items: center; background: none; border: 1px solid transparent; border-radius: 4px; padding: 6px 8px; text-align: left; color: var(--rd-text); min-width: 0; }
.rperf-item:hover { background: var(--rd-hover); } .rperf-item.on { background: var(--rd-sel); border-color: var(--rd-sel-line); }
.rperf-item .spark { width: 56px; height: 34px; border: 1px solid var(--im, #8ab4d8); background: #fff; grid-row: 1 / span 2; }
.rperf-item[data-m="cpu"] { --im: var(--rd-cpu); } .rperf-item[data-m="mem"] { --im: var(--rd-mem); } .rperf-item[data-m="disk"] { --im: var(--rd-disk); }
.rperf-item .spark .l { stroke: var(--im); stroke-width: 1.4; } .rperf-item .spark .a { fill: var(--im); opacity: .16; }
.rperf-item b { font-size: 12.5px; font-weight: 600; } .rperf-item span { font-size: 11.5px; color: var(--rd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rperf-main { min-width: 0; min-height: 0; overflow: auto; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.rperf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .rperf-head h3 { margin: 0; font: 400 22px/1.2 var(--rd-font); color: var(--rd-text); } .rperf-head span { font-size: 12px; color: var(--rd-muted); text-align: right; }
.rperf-top { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--rd-muted); margin-top: 4px; }
.rperf-graph { position: relative; height: 150px; border: 1px solid var(--pm); background-color: #fff; background-image: linear-gradient(rgba(0,0,0,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.07) 1px, transparent 1px); background-size: 10% 25%; }
.rperf-graph .rgraph { position: absolute; inset: 0; width: 100%; height: 100%; display: block; } .rgraph .l { fill: none; stroke: var(--pm); stroke-width: 1.5; } .rgraph .a { fill: var(--pm); opacity: .14; }
.rperf-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--rd-muted); }
.rperf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px 14px; margin-top: 8px; }
.rperf-fact span { display: block; font-size: 11.5px; color: var(--rd-muted); } .rperf-fact b { font: 400 18px/1.2 var(--rd-font); font-variant-numeric: tabular-nums; }

/* ── the connection dialog ── */
.rconnect { flex: 1 1 auto; display: grid; place-items: center; padding: 12px; overflow: auto; background: radial-gradient(900px 520px at 72% 112%, var(--rd-glow), transparent 62%), linear-gradient(165deg, var(--rd-desk), var(--rd-desk-2)); }
/* the connection dialog is ours: a flat panel in the page's own system */
.rconnect-card { width: min(420px, 100%); background: var(--bg-2); color: var(--text); border: 1px solid var(--line-3); border-radius: 3px; box-shadow: none; display: grid; gap: 8px; padding: 0 0 14px; overflow: hidden; animation: dlg-in calc(var(--m) * .15s) ease-out both; }
.rconnect-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 14px; height: 32px; font: 500 12px var(--mono); color: var(--muted); border-bottom: 1px solid var(--line-2); } .rconnect-card h3 .ric { width: 14px; height: 14px; color: var(--muted); }
.rconnect-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px 4px; color: var(--text); margin-bottom: 2px; }
.rconnect-head .ric { width: 28px; height: 28px; color: var(--muted); stroke-width: 1.4; } .rconnect-head b { display: block; font: 500 14px/1.2 var(--mono); } .rconnect-head span { font: 12px var(--mono); color: var(--muted); }
.rconnect-card .rlab, .rconnect-card .rinp, .rconnect-card .rsel, .rconnect-err { margin: 0 14px; }
.rconnect-card .rlab { font: 500 12px var(--mono); color: var(--muted); }
.rconnect-card .rinp, .rconnect-card .rsel { background: var(--bg); color: var(--text); border: 1px solid var(--line-2); border-radius: 3px; font: 13px var(--mono); } .rconnect-card .rinp:focus, .rconnect-card .rsel:focus { border-color: var(--acc); box-shadow: none; }
.rconnect-card .rinp.wide, .rconnect-card .rsel.wide { width: auto; }
.rconnect-card .rtools { padding: 8px 14px 0; border: 0; background: none; justify-content: flex-end; }
.rconnect-card .rtools .rbtn { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 3px; font: 500 12.5px var(--mono); } .rconnect-card .rtools .rbtn.primary { background: var(--acc-2); border-color: var(--acc-2); color: #fff; }
.rconnect-err { padding: 6px 0 6px 10px; background: none; border: 0; border-left: 2px solid var(--bad); border-radius: 0; color: var(--bad); font: 12.5px var(--mono); }

/* ── one tool at a time: a real desktop does not fit under about 700 wide ── */
.rdp.one .rdp-title { padding: 3px 8px; gap: 6px; } .rdp.one .rdp-title::before, .rdp.one .rdp-os { display: none; } .rdp.one .rdp-title .rbtn, .rdp.one .rdp-title .rsel { padding: 2px 7px; font-size: 11.5px; white-space: nowrap; } .rdp.one .rdp-name { white-space: nowrap; font-size: 12px; }
.rdp.one .rdp-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 76px; padding: 8px; gap: 4px; }
.rdp.one .rwin { position: absolute; inset: 0 !important; left: 0 !important; top: 0 !important; width: 100%; height: 100%; min-width: 0; resize: none; border: 0; border-radius: 0; box-shadow: none; animation: none; }
.rdp.one .rwin-title { cursor: default; } .rdp.one .rmenubar { display: none; }
.rdp.one .rsplit, .rdp.one .rsplit.three { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
.rdp.one .rtree { display: flex; flex-wrap: wrap; gap: 3px; border-right: 0; border-bottom: 1px solid var(--rd-line); padding: 5px 6px; max-height: 72px; }
.rdp.one .rtree-h { display: none; } .rdp.one .rnode { width: auto; padding: 3px 9px; border: 1px solid var(--rd-line); border-radius: 999px; font-size: 12px; } .rdp.one .rnode.on { border-color: var(--rd-sel-line); }
.rdp.one .ractions { border-left: 0; border-top: 1px solid var(--rd-line); display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; } .rdp.one .ractions h5 { display: none; } .rdp.one .ract { width: auto; border: 1px solid var(--rd-line); border-radius: 4px; padding: 3px 10px; }
.rdp.one .rt { table-layout: fixed; } .rdp.one .rt th { white-space: normal; } .rdp.one .c-when { white-space: normal; }
.rdp.one .rt .c-acct, .rdp.one .rt .c-src, .rdp.one .rt .c-res { display: none; }
.rdp.one .rinp.wide, .rdp.one .rsel.wide { width: 100%; }
.rdp.one .rperf { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.rdp.one .rperf-nav { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--rd-line); } .rdp.one .rperf-item { flex: 1 1 0; grid-template-columns: 44px minmax(0, 1fr); padding: 5px 6px; } .rdp.one .rperf-item .spark { width: 44px; height: 28px; }
.rdp.one .rperf-main { padding: 8px 10px 10px; } .rdp.one .rperf-graph { height: 120px; }
.rdp.one .rtaskb { max-width: 120px; } .rdp.one .rclock small { display: none; }

/* ── the map's Windows row ── */
.map .wband { fill: rgba(108,182,255,.06); stroke: rgba(108,182,255,.3); stroke-width: 1; }
.map .wband-tab { fill: rgba(108,182,255,.18); }
.map .wband-t { fill: var(--win-mark); font: 700 7.5px var(--mono); letter-spacing: .08em; text-anchor: start; }
.map .winmark { fill: var(--win-mark); } .map .winmark-t { fill: #04131d; font: 700 7px var(--mono); text-anchor: middle; }
.map .edge.cross { stroke-dasharray: 7 4; }
.map .gate { fill: var(--bg-2); stroke: var(--win-mark); stroke-width: 1.4; }

/* ── home and the first question ── */
.track-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 8px; margin: 20px 0 8px; }
.track-b { position: relative; display: grid; gap: 2px; text-align: left; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px 14px 12px 54px; transition: border-color .15s, background .15s, transform .15s; }
.track-b::before { content: '$_'; position: absolute; left: 12px; top: 12px; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font: 700 12px var(--mono); background: var(--surface-3); color: var(--ok); }
.track-b[data-track="windows"]::before { content: 'PS'; color: #04131d; background: var(--win-mark); }
.track-b[data-track="mixed"]::before { content: '⇄'; font-size: 16px; color: var(--text); background: linear-gradient(135deg, var(--surface-3) 50%, var(--win-mark) 50%); }
.track-b b { font-size: 15px; } .track-b span { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.track-b .here { color: var(--ok); font-weight: 600; font-size: 12px; }
.track-b.on { border-color: var(--acc); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--acc); } .track-b:hover, .track-b:focus-visible { border-color: var(--acc); transform: translateY(calc(var(--m) * -1px)); }
.lessons[data-track="windows"] .lesson-b::before { background: var(--win-mark); } .lessons[data-track="windows"] .lesson-b.done::before { background: var(--ok); }

/* ── the cheat sheet's Windows table and the side-by-side page ── */
#cheatWin th:first-child, #cheatWin td:first-child { width: 1%; white-space: nowrap; } #cheatWin td:first-child code { white-space: nowrap; }
#cheatWin td:last-child code, .sidebyside td code { white-space: pre-wrap; }
.sidebyside th, .sidebyside td { width: 50%; } .sidebyside td:first-child, .sidebyside td:nth-child(2) { font-family: var(--mono); font-size: 13px; }
.sidebyside td:first-child code { border-left: 3px solid var(--ok); border-radius: 0 5px 5px 0; } .sidebyside td:nth-child(2) code { border-left: 3px solid var(--win-mark); border-radius: 0 5px 5px 0; }

/* a phone with the desktop open: the desktop, and one strip of Sam */
@media (max-width: 860px) { .rungrid.rdp-on { grid-template-rows: minmax(0, 1fr) 92px; } .rungrid.rdp-on .tabs { display: none; } .rungrid.rdp-on .pane { padding: 4px 8px; font-size: 13px; } }

html[data-motion="calm"] .rdp, html[data-motion="calm"] .rwin, html[data-motion="calm"] .rmenu, html[data-motion="calm"] .rconnect-card { animation: none !important; }
@media print { .rdp, .termbar { display: none !important; } }
