/* Windows XP "Silver" look, drawn in CSS. */
:root {
  --task: 34px;
  --face: #e0dfe3;
  --edge: #9293aa;
  --ink: #101014;
  --muted: #4a4b59;
  --link: #003cb3;
  --select: #316ac5;
  --title: linear-gradient(#c7c8d8 0, #fff 7%, #f2f2f7 13%, #c0c1d2 26%, #b0b1c6 48%, #c6c7d8 70%, #e9e9f1 87%, #a5a6bb 95%, #73748c 100%);
  --title-idle: linear-gradient(#e0e0e6 0, #fff 8%, #dcdce4 30%, #d4d4de 60%, #ededf2 88%, #b4b4c2 100%);
  --silver-button: linear-gradient(#fff 0, #f0f0f6 35%, #c9cadb 85%, #b6b7ca 100%);
  font: 14px/1.45 Tahoma, Verdana, 'DejaVu Sans', sans-serif;
  color: var(--ink);
  background: #5a7edc;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0 0 10px; }
a { color: var(--link); }
button { font: inherit; color: inherit; cursor: pointer; }
svg { flex: none; pointer-events: none; }
:focus-visible { outline: 2px dotted var(--ink); outline-offset: 1px; }
h1:focus, h2:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Desktop */
.wallpaper { position: fixed; inset: 0; background: #5a9be8 url('img/hill.jpg') center / cover; }
#desktop { position: relative; padding: 10px 10px calc(var(--task) + 20px); }
.icons { display: flex; flex-wrap: wrap; gap: 6px; }
.icons a {
  width: 84px; height: 78px; padding-top: 4px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #fff; font-size: 12px; text-align: center; text-decoration: none;
}
.icons svg { width: 44px; height: 44px; }
.icons span { padding: 1px 3px; line-height: 1.2; text-shadow: 1px 1px 2px #000, 0 0 2px #000; }
.icons a:hover span, .icons a:focus-visible span { background: var(--select); }
.icons a:hover svg { filter: brightness(.85); }
.icons a:focus-visible { outline-color: #fff; }

/* Windows */
.window {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  max-width: 780px; margin: 20px auto;
  background: var(--face);
  border: 3px solid var(--edge); border-top-width: 1px;
  border-radius: 8px 8px 0 0;
  box-shadow: inset 0 0 0 1px #fff, 2px 3px 10px rgb(0 0 0 / .4);
}
.window.active { border-color: #7b7c96; }
.bar {
  flex: none; height: 30px; display: flex; align-items: center; gap: 6px;
  padding: 0 3px 0 7px; background: var(--title-idle); user-select: none;
}
.active > .bar { background: var(--title); }
.bar > svg { width: 18px; height: 18px; }
.bar h1, .bar h2 {
  flex: 1; min-width: 0; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  color: #50515c; font: 700 14px/1.2 'Trebuchet MS', Tahoma, sans-serif; text-shadow: 1px 1px #fff;
}
.active > .bar h1, .active > .bar h2 { color: #0e1010; }
.controls { display: flex; gap: 2px; }
.bar button {
  position: relative; width: 23px; height: 23px; padding: 0;
  border: 1px solid #fff; border-radius: 4px;
  box-shadow: 0 0 0 1px #777891;
  background: linear-gradient(145deg, #fff 0, #d6d7e5 35%, #9a9bb3 100%);
}
.bar button:hover { filter: brightness(1.1); }
.bar button:active { filter: brightness(.82); }
.bar button::before, .bar button::after { content: ''; position: absolute; }
.minimize::before { left: 4px; bottom: 4px; width: 9px; height: 3px; background: #33344a; }
.maximize::before { inset: 4px; border: 1px solid #33344a; border-top-width: 3px; }
.maximized .maximize::before { inset: 8px 8px 3px 3px; }
.maximized .maximize::after { inset: 3px 3px 8px 8px; border: 1px solid #33344a; border-top-width: 2px; }
.bar .close { background: linear-gradient(145deg, #f3b29c 0, #d9583a 40%, #a52c10 100%); }
.close::before, .close::after { left: 9px; top: 3px; width: 3px; height: 15px; background: #fff; transform: rotate(45deg); }
.close::after { transform: rotate(-45deg); }

.menubar { flex: none; display: flex; gap: 14px; padding: 3px 9px; font-size: 12px; border-bottom: 1px solid #b5b5c2; }
.address { flex: none; display: flex; align-items: center; gap: 7px; padding: 4px 8px; font-size: 12px; border-bottom: 1px solid #9d9eae; }
.address span { flex: 1; min-width: 0; padding: 2px 6px; overflow: hidden; white-space: nowrap; background: #fff; border: 1px solid #a5acb2; }
.body { flex: 1 1 auto; min-height: 0; padding: 14px; overflow: auto; }
.paper { background: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 7px; }
.body .actions { margin-bottom: 0; }
.actions a, .cancel {
  min-width: 80px; padding: 4px 12px;
  border: 1px solid #55567a; border-radius: 3px;
  color: var(--ink); background: var(--silver-button);
  text-align: center; text-decoration: none;
}
.actions a:hover, .cancel:hover { box-shadow: inset 0 0 0 2px #f0b54a; }

/* Welcome */
.banner {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  color: #fff; background: linear-gradient(100deg, #4d4e68, #77799a);
  border-bottom: 3px solid #e8962e;
}
.banner svg { width: 46px; height: 46px; }
.banner p { margin: 0; }
.banner strong { display: block; font: italic 700 25px/1.2 'Trebuchet MS', sans-serif; }
.menu { margin: 0; padding: 0; list-style: none; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 5px 6px; color: var(--ink); text-decoration: none; }
.menu svg { width: 34px; height: 34px; }
.menu span { font-weight: 700; line-height: 1.25; }
.menu small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.menu a:hover, .menu a:hover small { color: #fff; background: var(--select); }
.socials { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 9px 0 0; padding-top: 9px; border-top: 1px solid #c5c6d3; }

/* Explorer */
.explorer { display: flex; align-items: flex-start; padding: 0; background: linear-gradient(90deg, #b9bbcd 0 190px, #fff 190px); }
.pane { flex: none; width: 190px; padding: 12px; }
.box { margin-bottom: 12px; padding-bottom: 5px; background: #f0f1f5; border-radius: 6px 6px 0 0; overflow: hidden; font-size: 12px; }
.box h3 { margin: 0 0 5px; padding: 5px 10px; color: #30313f; font-size: 12px; background: linear-gradient(90deg, #fff, #cfd1df); }
.box a { display: flex; align-items: center; gap: 7px; padding: 4px 10px; color: #33344a; text-decoration: none; }
.box a:hover { text-decoration: underline; }
.box svg { width: 20px; height: 20px; }
.box p { margin: 0; padding: 4px 10px; }
.files { flex: 1; min-width: 0; background: #fff; }
.project { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid #d8d9e3; }
.project > svg { width: 46px; height: 46px; }
.project > div { min-width: 0; }
.project h3 { margin: 0; font-size: 15px; }
.project p { margin-bottom: 8px; }
.project .kind, .project .tech { color: var(--muted); font-size: 12px; }

/* Media player: "DankAmp", a classic skinned desktop player drawn in CSS. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.amp {
  --amp-green: #00e000;
  --amp-gold: #e8d07a;
  --amp-sunken: inset 1px 1px #07070c, inset -1px -1px #62627e;
  flex: none; display: grid; gap: 6px; padding: 0 8px 8px;
  color: var(--amp-green);
  background: linear-gradient(#41415b, #2b2b3e 45%, #1e1e2c);
  border-bottom: 2px solid #0c0c14;
  font-family: Arial, Helvetica, sans-serif;
}
html:not(.js) .player { display: none; }
.amp :focus-visible { outline: 1px dotted var(--amp-gold); outline-offset: 1px; }
.amp-title {
  display: flex; align-items: center; gap: 6px; height: 18px; margin: 0 -8px; padding: 0 6px;
  color: var(--amp-gold); font: 700 10px/1 Arial, sans-serif; letter-spacing: 3px;
  background: linear-gradient(#5a5a76, #2d2d42); border-bottom: 1px solid #0c0c14;
}
.amp-title i { flex: 1; height: 7px; background: repeating-linear-gradient(#c9a640 0 1px, transparent 1px 3px); opacity: .75; }
.amp-title svg { width: 14px; height: 14px; }
.amp-main { display: flex; gap: 6px; min-width: 0; }
.amp-lcd {
  flex: none; display: grid; grid-template-columns: 12px 1fr; align-items: center; gap: 4px 8px;
  width: 172px; padding: 6px 8px; color: var(--amp-green); background: #000;
  border: 0; border-radius: 0; box-shadow: var(--amp-sunken); text-align: right;
}
.amp-time {
  font: 700 28px/1 'Courier New', Courier, monospace; letter-spacing: 1px;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 6px rgb(0 224 0 / .45);
}
.amp-state { width: 10px; height: 10px; justify-self: center; }
.amp-state[data-state='play'] { background: var(--amp-green); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.amp-state[data-state='pause'] { background: linear-gradient(90deg, #e0c000 0 35%, transparent 35% 65%, #e0c000 65%); }
.amp-state[data-state='stop'] { background: #d03a22; }
.amp-vis { grid-column: 1 / -1; width: 152px; height: 32px; image-rendering: pixelated; }
.amp-info { flex: 1; min-width: 0; display: grid; align-content: space-between; gap: 6px; }
.amp-marquee {
  overflow: hidden; padding: 6px 7px; background: #000; box-shadow: var(--amp-sunken);
  font: 700 13px/1.2 Arial, Helvetica, sans-serif; white-space: nowrap;
}
.amp-marquee span { display: inline-block; white-space: pre; }
.amp-marquee .scroll { animation: amp-scroll var(--marquee, 12s) linear infinite; }
.amp-marquee .scroll::after { content: attr(data-loop); }
@keyframes amp-scroll { to { transform: translateX(-50%); } }
.amp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; font: 700 10px/1 Arial, sans-serif; letter-spacing: 1px; }
.amp-tags span { padding: 4px 6px; background: #000; box-shadow: var(--amp-sunken); }
.amp-tags .amp-led { margin-left: auto; color: var(--amp-gold); }

.amp input[type='range'] { -webkit-appearance: none; appearance: none; margin: 0; background: transparent; cursor: pointer; }
.amp input[type='range']::-webkit-slider-runnable-track { height: 8px; background: #0a0a12; box-shadow: var(--amp-sunken); }
.amp input[type='range']::-moz-range-track { height: 8px; background: #0a0a12; box-shadow: var(--amp-sunken); }
.amp input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 12px; margin-top: -2px;
  background: linear-gradient(#f2f2f8, #a3a3bb); border: 1px solid #12121c; border-radius: 1px;
}
.amp input[type='range']::-moz-range-thumb {
  width: 28px; height: 12px; background: linear-gradient(#f2f2f8, #a3a3bb); border: 1px solid #12121c; border-radius: 1px;
}
.amp-seek { width: 100%; height: 16px; }
.amp-seek:disabled { cursor: default; }
.amp-seek:disabled::-webkit-slider-thumb { visibility: hidden; }
.amp-seek:disabled::-moz-range-thumb { visibility: hidden; }
.amp-volume input::-webkit-slider-runnable-track { background: linear-gradient(90deg, #127a12, #d6b500 70%, #d03a22); }
.amp-volume input::-moz-range-track { background: linear-gradient(90deg, #127a12, #d6b500 70%, #d03a22); }
.amp-volume input::-webkit-slider-thumb { width: 14px; }
.amp-volume input::-moz-range-thumb { width: 14px; }

.amp-controls { display: flex; align-items: center; gap: 2px; }
.amp-controls button {
  width: 34px; height: 24px; padding: 0; display: grid; place-items: center;
  color: #1c1c28; background: linear-gradient(#f4f4fa, #bcbccf 60%, #9c9cb3);
  border: 1px solid #12121c; border-radius: 0; box-shadow: inset 1px 1px #fff, inset -1px -1px #6c6c86;
}
.amp-controls button:hover { background: linear-gradient(#fff, #cdcddd 60%, #a9a9bf); }
.amp-controls button:active { background: linear-gradient(#9c9cb3, #c9c9da); box-shadow: inset 1px 1px #6c6c86; }
.amp-controls svg { width: 16px; height: 12px; fill: currentColor; }
.amp-volume { display: flex; align-items: center; gap: 6px; margin-left: auto; color: var(--amp-gold); font: 700 10px/1 Arial, sans-serif; letter-spacing: 1px; }
.amp-volume input { width: 110px; height: 16px; }

/* Playlist editor */
#music .playlist { padding: 0; background: #000; scrollbar-color: #62627e #12121c; }
.mixes { margin: 0; padding: 0; list-style: none; counter-reset: mix; font: 13px/1.3 Arial, Helvetica, sans-serif; }
.mixes li { counter-increment: mix; }
.mixes a { display: flex; justify-content: space-between; gap: 12px; padding: 3px 10px; color: #00e000; text-decoration: none; }
.mixes span::before { content: counter(mix) '. '; }
.mixes small { flex: none; max-width: 42%; color: #00a800; text-align: right; }
.mixes a:hover, .mixes a:hover small { background: #0000c6; }
.mixes a[aria-current], .mixes a[aria-current] small { color: #fff; background: #0000c6; }
.mixes a:focus-visible { outline: 1px dotted #fff; outline-offset: -2px; }
.copyright { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  .amp-marquee .scroll { animation: none; }
}

/* System Properties */
.properties { padding: 10px; }
.tab {
  position: relative; z-index: 1; width: max-content; margin: 0 0 -1px; padding: 4px 14px;
  background: #f7f7f9; border: 1px solid #91929f; border-top: 3px solid #e8962e; border-bottom: 0;
  border-radius: 3px 3px 0 0;
}
.sheet { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 10px; padding: 16px; background: #f7f7f9; border: 1px solid #91929f; }
.pc { width: 92px; height: 92px; }
.sheet dl { margin: 0; }
.sheet dd { margin: 0 0 0 14px; }
.sheet dt:not(:first-child) { margin-top: 8px; }
.bio { flex-basis: 100%; }
.properties .actions { justify-content: flex-end; }

/* Contact */
/* Contact Me: a "New Message" compose window */
.compose { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
.compose-tools { flex: none; display: flex; padding: 3px 6px; border-bottom: 1px solid #b5b5c2; }
.compose .send {
  display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 56px; padding: 3px 8px;
  font-size: 12px; background: none; border: 1px solid transparent; border-radius: 3px;
}
.compose .send svg { width: 26px; height: 26px; }
.compose .send:hover { background: var(--silver-button); border-color: #9293aa; }
.compose .send:active { background: #c9cadb; }
.compose .send:disabled { color: var(--muted); cursor: default; background: none; border-color: transparent; }
.compose .send:disabled svg { opacity: .5; }
.compose-fields {
  flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 5px 10px;
  padding: 8px 10px; border-bottom: 1px solid #9d9eae;
}
.compose-label { font-size: 13px; }
.compose-to, .compose input, .compose textarea {
  min-width: 0; padding: 3px 6px; font: inherit; color: var(--ink); background: #fff; border: 1px solid #7f9db9; border-radius: 0;
}
.compose-to { overflow-wrap: anywhere; background: #f4f4f8; border-color: #a5acb2; }
.compose input:focus, .compose textarea:focus { outline: 1px solid var(--select); outline-offset: 0; }
.compose input:user-invalid { border-color: #c03020; }
.compose textarea { flex: 1 0 160px; min-height: 160px; margin: 0; padding: 8px 10px; resize: none; border: 0; border-bottom: 1px solid #b5b5c2; }
.compose-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.compose-status { flex: none; margin: 0; padding: 4px 10px; font-size: 12px; background: var(--face); border-top: 1px solid #fff; }
.compose-status.ok { color: #14591d; font-weight: 700; }
.compose-status.error { color: #a01c0c; }

/* Recycle Bin */
.deleted { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.deleted li { width: 100px; text-align: center; font-size: 12px; overflow-wrap: anywhere; }
.deleted svg { display: block; width: 42px; height: 42px; margin: 0 auto 5px; opacity: .65; }

/* Résumé window */
.window > iframe { flex: 1; display: block; width: 100%; min-height: 0; border: 0; background: #fff; }
.window > iframe[src^='tools/'] { background: var(--face); }
html:not(.js) .window:has(> iframe) { display: none; }

/* Parts that only mobile.css shows */
.mobile-only, .mini-player, .tabbar { display: none; }
/* Until desktop.js has run, show only the first screen. */
.js:not(.ready) .window:not(.home) { display: none; }

/* Taskbar */
.taskbar {
  position: fixed; inset: auto 0 0; z-index: 10000; height: var(--task);
  display: flex; align-items: stretch; user-select: none;
  background: linear-gradient(#8d8ea5 0, #fff 7%, #d5d6e4 22%, #bcbdd0 55%, #c9cada 85%, #8c8da6 100%);
}
html:not(.js) .taskbar { display: none; }
.taskbar button { border: 0; background: none; }
.start {
  flex: none; display: flex; align-items: center; gap: 6px; padding: 0 22px 2px 8px;
  border-radius: 0 13px 13px 0 !important;
  color: #fff !important; text-shadow: 1px 1px 2px #123d12;
  font: italic 700 19px/1 'Trebuchet MS', Tahoma, sans-serif !important;
  background: linear-gradient(#2f7a2f 0, #7cc576 9%, #43a043 25%, #388e38 60%, #3f9a3f 85%, #255f25 100%) !important;
  box-shadow: inset -2px 0 4px #1f571f;
}
.start svg { width: 22px; height: 22px; }
.start:hover { filter: brightness(1.12); }
.start[aria-expanded='true'] { filter: brightness(.82); }
.tasks { flex: 1; min-width: 0; display: flex; gap: 3px; padding: 4px 8px; }
.tasks button {
  flex: 1; min-width: 0; max-width: 165px; padding: 0 7px;
  display: flex; align-items: center; gap: 5px;
  border: 1px solid #8e8fa8; border-radius: 3px;
  background: var(--silver-button); font-size: 12px; text-align: left;
}
.tasks button span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tasks button svg { width: 17px; height: 17px; }
.tasks button[aria-pressed='true'] { background: linear-gradient(#9293aa, #aeb0c4 30%, #b8bacd); box-shadow: inset 1px 1px 2px #66677e; }
.tray {
  flex: none; display: flex; align-items: center; gap: 7px; padding: 0 12px 0 7px;
  background: linear-gradient(#8d8ea5 0, #f0f1f8 8%, #a9abc1 45%, #b7b9cd 85%, #85869f 100%);
  border-left: 1px solid #77788f; box-shadow: inset 1px 0 #fff;
  font-size: 12px; white-space: nowrap;
}
.tray button { height: 100%; padding: 0 3px; }
.tray svg { display: block; width: 19px; height: 19px; }

/* Start menu */
.start-menu {
  position: fixed; left: 0; bottom: var(--task); z-index: 10001;
  width: 390px; max-width: 100%; max-height: calc(100% - var(--task)); overflow: auto;
  background: #787a95; border: 2px solid #696a84; border-radius: 8px 8px 0 0;
  box-shadow: 3px 0 8px rgb(0 0 0 / .4); font-size: 13px;
}
.start-menu > p { margin: 0; }
.user {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  color: #fff; font: 700 17px 'Trebuchet MS', sans-serif; text-shadow: 1px 1px 2px #33344a;
  background: linear-gradient(#8d8fab, #62637e 60%, #74768f); border-bottom: 2px solid #e8962e;
}
.user svg { width: 42px; height: 42px; }
.columns { display: grid; grid-template-columns: 1fr 1fr; }
.programs { padding: 6px 4px; background: #fff; }
.places { padding: 6px 4px; background: #dcdde8; border-left: 1px solid #a3a5bb; }
.columns a { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 6px; color: var(--ink); text-decoration: none; }
.columns a:hover, .columns a:focus-visible { color: #fff; background: var(--select); }
.columns svg { width: 28px; height: 28px; }
.places a { font-weight: 700; }
.menu-footer { display: flex; justify-content: flex-end; padding: 4px 8px; background: linear-gradient(#85879f, #5f607a); }
.menu-footer button { display: flex; align-items: center; gap: 7px; padding: 5px; border: 0; color: #fff; background: none; }
.menu-footer svg { width: 24px; height: 24px; }

/* Turn off */
dialog { width: 340px; max-width: calc(100% - 24px); padding: 0; border: 1px solid #33344a; color: #fff; background: linear-gradient(110deg, #8d8fab, #686a88); }
dialog::backdrop { background: rgb(90 90 100 / .45); backdrop-filter: grayscale(1); }
dialog h2 { margin: 0; padding: 12px; font: 400 20px 'Trebuchet MS', sans-serif; background: #4d4e68; }
dialog form p { margin: 0; padding: 8px; text-align: right; background: #4d4e68; }
.choices { display: flex; justify-content: space-around; padding: 24px 6px; }
.choices button { border: 0; color: #fff; background: none; font-weight: 700; }
.choices svg { display: block; width: 40px; height: 40px; margin: 0 auto 6px; }
dialog :focus-visible { outline-color: #fff; }
.powered-off {
  position: fixed; inset: 0; z-index: 20000; width: 100%; border: 0; padding: 20px;
  color: #f08c22; background: #000; font-size: clamp(20px, 3vw, 34px);
}
.powered-off small { display: block; margin-top: 28px; color: #888; font-size: 13px; }

/* Floating windows. boot.js decides between .desktop and .mobile. */
.desktop body { overflow: hidden; }
.desktop #desktop { position: fixed; inset: 0 0 var(--task); padding: 0; overflow: hidden; }
.desktop .icons { position: absolute; inset: 10px auto 10px 10px; flex-direction: column; align-content: flex-start; }
.desktop .icons .bin { position: fixed; right: 10px; bottom: calc(var(--task) + 10px); }
.desktop .window {
  --w: 480px; --x: 150px; --y: 36px;
  position: absolute; margin: 0; top: var(--y);
  left: clamp(8px, var(--x), max(8px, calc(100% - var(--w) - 8px)));
  width: var(--w); min-width: 260px; max-width: calc(100% - 8px);
  min-height: 120px; max-height: calc(100% - var(--y) - 6px);
  resize: both;
}
.desktop #home { --w: 420px; --x: calc(50% - 210px); --y: max(16px, 9vh); }
.desktop #projects { --w: 780px; --x: 120px; --y: 20px; }
.desktop #music { --w: 620px; --x: 170px; --y: 34px; }
.desktop #music { height: 560px; }
.desktop #about { --x: 200px; --y: 48px; }
.desktop #contact { --w: 540px; --x: 250px; --y: 70px; height: 470px; }
.desktop #resume { --w: 760px; --x: max(200px, calc(100% - 800px)); --y: 64px; height: 640px; }
.desktop #tools { --w: 560px; --x: 210px; --y: 50px; }
.desktop #subnet { --w: 720px; --x: max(230px, calc(100% - 760px)); --y: 40px; height: 660px; }
.desktop #vlsm { --w: 900px; --x: max(200px, calc(100% - 940px)); --y: 30px; height: 680px; }
.desktop #ipv6 { --w: 720px; --x: max(240px, calc(100% - 770px)); --y: 50px; height: 660px; }
.desktop #dns { --w: 820px; --x: max(220px, calc(100% - 860px)); --y: 44px; height: 620px; }
.desktop #password { --w: 640px; --x: max(260px, calc(100% - 700px)); --y: 60px; height: 600px; }
.desktop #recycle { --w: 400px; --x: 320px; --y: 120px; }
.desktop .window.maximized {
  inset: 0 !important; width: 100% !important; height: 100% !important;
  max-width: none; max-height: none; border-radius: 0; resize: none;
}
.desktop .bar { touch-action: none; }
@media (max-height: 640px) {
  .desktop .home .body { padding-block: 10px; }
  .desktop .menu a { padding-block: 1px; }
}

@media (max-width: 620px) {
  .explorer { display: block; background: #fff; }
  .pane, .menubar { display: none; }
  .project > svg { width: 34px; height: 34px; }
}
