/* OS shell: Windows 95 / 98.css (silver bevels, navy title bars) after donchia.tech + daedalOS.
   Content details: MSCHF shop (Refero 08e68e02 / 3605f9cd) — label strips, barcodes, QR,
   checkerboard, yellow price oval, blue underlined serif CTAs, red boxed tags, !!! burst.
   Bevels are hard 1px light/dark edges, never blurred (FRANKY'S, Refero d07c7449).
   CRT glass: scanlines + grain kept at 0.03–0.06 (Monologue, Refero 223f6ed5). */

@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url("https://cdn.jsdelivr.net/npm/98.css@0.1.21/dist/ms_sans_serif.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/npm/98.css@0.1.21/dist/ms_sans_serif.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Pixelated MS Sans Serif";
  src: url("https://cdn.jsdelivr.net/npm/98.css@0.1.21/dist/ms_sans_serif_bold.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/npm/98.css@0.1.21/dist/ms_sans_serif_bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Win95 shell */
  --silver: #c0c0c0;
  --hi: #ffffff;
  --lite: #dfdfdf;
  --shade: #808080;
  --dark: #0a0a0a;
  --navy: #000080;
  --navy-2: #1084d0;
  /* the pixel font has no Cyrillic: Russian falls through to Tahoma at the same 11px */
  --ui: "Pixelated MS Sans Serif", Tahoma, Verdana, Geneva, sans-serif;

  /* MSCHF details */
  --m-blue: #1d3fd8;
  --m-red: #e8301c;
  --m-yellow: #f7ec3c;
  --m-gray: #c9ced6;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Times New Roman", Times, serif;
  --mono: "Courier New", Courier, monospace;

  /* monitor plastic */
  --beige: #d6cfbd;
  --beige-2: #c4bca8;
  --beige-3: #a69e88;
  --beige-hi: #efe9d8;

  --out: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--shade), inset 2px 2px var(--lite);
  --in: inset -1px -1px var(--hi), inset 1px 1px var(--dark), inset -2px -2px var(--lite), inset 2px 2px var(--shade);
  --win: inset -1px -1px var(--dark), inset 1px 1px var(--lite), inset -2px -2px var(--shade), inset 2px 2px var(--hi);
  --sunk: inset -1px -1px var(--hi), inset 1px 1px var(--shade);
  --field: inset -1px -1px var(--hi), inset 1px 1px var(--shade), inset -2px -2px var(--lite), inset 2px 2px var(--dark);

  /* wallpaper (Display Properties can swap it) */
  --wall: url("assets/wallpaper.webp") center 30% / cover, linear-gradient(170deg, #1f6fd6, #3f8fe4 55%, #7db4ef);

  /* monitor sized to fit the viewport: overhead = ticker + room padding */
  /* width leaves room for the sticky note hanging off the right edge (~15% of the monitor) */
  --mw: min(1100px, calc((100vw - 40px) / 1.3), calc((100svh - 96px) * 1913 / 1815));

  /* Win95 cursors (pixel SVG) */
  --cur-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='21' shape-rendering='crispEdges'%3E%3Cpolygon points='0.5,0.5 0.5,16.5 4.5,12.5 7.5,19.5 9.5,18.5 6.5,11.5 11.5,11.5' fill='white' stroke='black'/%3E%3C/svg%3E") 1 1, default;
  --cur-hand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='22' shape-rendering='crispEdges'%3E%3Cpolygon points='5.5,0.5 7.5,0.5 8.5,1.5 8.5,7.5 10.5,7.5 12.5,8.5 14.5,9.5 14.5,16.5 12.5,20.5 4.5,20.5 1.5,15.5 0.5,12.5 1.5,11.5 3.5,12.5 4.5,13.5 4.5,1.5' fill='white' stroke='black'/%3E%3Cpath d='M8.5 8v4M10.5 8v4M12.5 9v4' stroke='black'/%3E%3C/svg%3E") 6 1, pointer;
  --cur-wait: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='22' shape-rendering='crispEdges'%3E%3Crect width='16' height='2'/%3E%3Crect y='20' width='16' height='2'/%3E%3Cpolygon points='2.5,2.5 13.5,2.5 13.5,5.5 9.5,10.5 9.5,11.5 13.5,16.5 13.5,19.5 2.5,19.5 2.5,16.5 6.5,11.5 6.5,10.5 2.5,5.5' fill='white' stroke='black'/%3E%3Cpolygon points='4,4 12,4 8,9'/%3E%3Cpolygon points='8,15 12,19 4,19'/%3E%3C/svg%3E") 8 11, wait;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #ece8de linear-gradient(#ece8de 55%, #e0dbcd);
  color: #000;
  font: 400 11px/1.35 var(--ui);
  overflow: hidden;
  cursor: var(--cur-arrow);
}
a, button, select, label, summary, [role="tab"], [role="menuitem"], .icon, .row-link { cursor: var(--cur-hand); }
input[type="text"], input[type="email"], textarea { cursor: text; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- CRT ----------
   The monitor is a render of the Commodore 1702 from "Commodore 64 || Computer (Full Pack)"
   by dark_igorek (sketchfab.com/dark_igorek), CC BY 4.0. Source and render setup: .src/.
   Positions below are fractions of the 1913×1815 frame image (.src/c64-frame.json). */
.room { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 20px 14px; }
.crt { position: relative; width: var(--mw); aspect-ratio: 1913 / 1815; container-type: inline-size; }
.crt::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -12px; height: 24px; z-index: -1;
  background: radial-gradient(closest-side, rgba(60, 50, 30, .45), transparent);
}
.crt-body { position: absolute; inset: 0; }
/* the frame sits above the screen; clicks fall through it */
.crt-body::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: url("assets/c64-frame.webp") center / 100% 100% no-repeat;
}
/* the tube opening; bleeds a few px under the frame so its edge never shows a gap */
.crt-well { position: absolute; left: calc(12.49% - 2px); top: calc(12.07% - 2px); width: calc(75.27% + 4px); height: calc(57.52% + 4px); }
.screen {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  overflow: clip; /* focus() must never scroll the tube */
  background: #050706;
  container-type: size;
  isolation: isolate;
}
/* the tube has rounded, slightly bulging edges: the picture stays inside them,
   with a black overscan border like a real CRT (measured: 23/1440 × 18/1044 of the opening) */
.os, .boot { position: absolute; inset: 1.75% 1.65%; border-radius: 1.1cqw / 1.5cqh; overflow: hidden; }
.os { background: var(--wall); transform-origin: 50% 50%; box-shadow: 0 0 1.2cqw rgba(140, 190, 255, .18); }

/* convex glass: curved scanlines, a soft reflection top left, darker towards the edges, grain */
.glass {
  position: absolute; inset: 0; z-index: 90; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 28% 18%, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04) 55%, transparent 75%),
    radial-gradient(ellipse 72% 72% at 50% 50%, transparent 72%, rgba(0, 0, 0, .14) 90%, rgba(0, 0, 0, .32) 100%);
  box-shadow: inset 0 0 2.2cqw rgba(0, 0, 0, .45), inset 0 0 .4cqw rgba(0, 0, 0, .7);
}
.glass::before, .glass::after { content: ""; position: absolute; inset: 0; }
.glass::before { background: url("assets/scanlines-curved.svg") center / 100% 100% no-repeat; opacity: .09; }
.glass::after {
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .04;
  animation: grain .9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.no-fx .glass::before, .no-fx .glass::after { display: none; }

/* power: collapse to a line, then a dot (classic CRT off) */
.screen.is-off .os, .screen.is-off .boot { animation: crt-off .6s cubic-bezier(.5, 0, .9, .5) forwards; }
.screen.is-off { cursor: var(--cur-hand); }
.screen::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; z-index: 80;
  border-radius: 50%; background: #fff; box-shadow: 0 0 12px 4px rgba(200, 230, 255, .8);
  opacity: 0; pointer-events: none;
}
.screen.is-off::after { animation: crt-dot 1.1s .45s ease-out forwards; }
@keyframes crt-off {
  0% { transform: none; filter: brightness(1); }
  45% { transform: scale(1, .006); filter: brightness(6); }
  80% { transform: scale(.004, .006); filter: brightness(6); opacity: 1; }
  100% { transform: scale(0, 0); opacity: 0; }
}
@keyframes crt-dot { 0% { opacity: 1; } 100% { opacity: 0; transform: scale(.3); } }
.screen.is-on .os, .screen.is-on .boot { animation: crt-on .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes crt-on {
  0% { transform: scale(.004, .006); filter: brightness(6); }
  45% { transform: scale(1, .006); filter: brightness(4); }
  100% { transform: none; filter: none; }
}

/* boot: BIOS lines → logo → desktop */
.boot { z-index: 70; background: #000; color: #c0c0c0; cursor: var(--cur-wait); }
.boot[hidden] { display: none; }
.bios { margin: 0; padding: 4% 5%; font: 400 clamp(11px, 1.7cqw, 15px)/1.45 var(--mono); white-space: pre-wrap; }
.bios b { color: #fff; }
.bios .ok { color: #55ff55; }
.splash { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: #000; }
.splash[hidden] { display: none; }
.splash .burst { width: clamp(70px, 14cqw, 120px); font-size: clamp(18px, 3.4cqw, 30px); }
.wiz-art .burst, .shop-burst .burst { width: 100%; }
.splash-name { margin: 0; font: italic 900 clamp(28px, 6cqw, 52px)/1 var(--sans); color: #fff; letter-spacing: -.04em; }
.splash-name span { font-weight: 300; color: var(--m-yellow); margin-left: .12em; }
.splash-bar { width: clamp(140px, 30cqw, 260px); height: 12px; padding: 2px; box-shadow: inset 0 0 0 1px #555; }
.splash-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--navy-2) 0 8px, transparent 8px 10px); animation: fill 1.3s steps(16) forwards; }
@keyframes fill { to { width: 100%; } }
.boot-skip { position: absolute; right: 4%; bottom: 3%; margin: 0; font: 11px var(--mono); color: #6a6a6a; }

/* controls on the rendered front panel: the brown POWER key and the light bar in the badge */
.crt-chin { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.power {
  position: absolute; left: 93.47%; top: 82.81%; width: 3.87%; height: 2.59%;
  border: 0; padding: 0; background: transparent; border-radius: 2px; pointer-events: auto;
}
.power:active, .power[aria-pressed="false"] { background: rgba(0, 0, 0, .28); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .5); }
.led {
  position: absolute; left: 60.12%; top: 83.09%; width: 1.67%; height: .55%; border-radius: 2px;
  background: #3cff5e; box-shadow: 0 0 6px 1px rgba(60, 255, 94, .8);
  transition: background .3s, box-shadow .3s;
}
.led.is-off { background: #2c3a2e; box-shadow: none; }
.led.is-busy { background: #ffb02e; box-shadow: 0 0 6px 1px rgba(255, 176, 46, .8); }

/* sticky note on the top right corner of the case: stuck to the bezel, hanging off the edge,
   never over the screen (maximized windows keep their buttons there) */
.note {
  position: absolute; left: 89.6%; top: 2.5%; z-index: 4; width: 25%;
  padding: 1.7cqw 1.3cqw 1.5cqw 1.6cqw;
  font: 500 clamp(15px, 1.8cqw, 22px)/1.12 "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  color: #2b2a26;
  background: linear-gradient(170deg, #fff59a, #ffe96b 60%, #f8dc55);
  transform: rotate(4deg);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12), 2px 6px 14px -4px rgba(60, 45, 0, .45);
  clip-path: polygon(0 0, 100% 0, 100% 93%, 93% 100%, 0 100%);
}
/* curled bottom corner */
.note::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 7%; aspect-ratio: 1;
  background: linear-gradient(135deg, #d9bd3d 0 50%, transparent 50%);
}
.note ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45em; }
.note li { padding-left: .8em; text-indent: -.8em; }
.note li::before { content: "• "; }
.note button {
  padding: 0; border: 0; background: none; font-family: inherit; font-size: 1em; font-weight: 700; line-height: inherit; color: #1d3fd8;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
}
.note button:hover { color: var(--m-red); }

/* desk ticker (Brethren Design Co) */
.ticker {
  width: min(calc(var(--mw) + 160px), 100%); margin-top: 20px; overflow: hidden;
  border-top: 1px solid #c9c1ac; border-bottom: 1px solid #c9c1ac;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { padding: 8px 0; font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: #6d6552; white-space: nowrap; text-decoration: none; }
a.ticker-item:hover { color: var(--m-red); }
.ticker-sep { padding: 8px 18px; font: 700 11px/1 var(--mono); color: var(--m-red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Desktop ---------- */
.desk { position: absolute; inset: 0 0 30px 0; padding: 8px 4px; }
.icons { display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; gap: 2px 2px; height: 100%; }
.icon {
  width: 76px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 2px; color: #fff; text-align: center; text-decoration: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.glyph { width: 34px; height: 34px; display: grid; place-items: center; position: relative; }
.glyph > svg { width: 32px; height: 32px; shape-rendering: crispEdges; display: block; }
.glyph-site { width: 40px; height: 32px; background: var(--silver); box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi); padding: 2px; display: flex; flex-direction: column; }
.glyph-site::before { content: ""; height: 4px; flex: none; background: linear-gradient(90deg, var(--navy), var(--navy-2)); margin-bottom: 1px; }
.glyph-site img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top; display: block; }
.icon-label { font-size: 11px; line-height: 1.25; padding: 1px 3px; overflow-wrap: anywhere; text-shadow: 1px 1px 0 rgba(0, 0, 40, .6); }
/* Win95 selection: tint the icon's own pixels (filter respects alpha), never a box */
.icon.is-selected .glyph > * { filter: brightness(.7) sepia(1) hue-rotate(190deg) saturate(4); }
.icon.is-selected .icon-label { background: var(--navy); outline: 1px dotted #fff; outline-offset: -1px; text-shadow: none; }
.icon:focus-visible { outline: none; }
.icon:focus-visible .icon-label { outline: 1px dotted #fff; outline-offset: -1px; }
.icons.is-refreshing { opacity: 0; }

.burst { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.burst svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--m-red); }
.burst b { position: relative; font: italic 900 1em/1 var(--sans); color: #fff; letter-spacing: -.04em; }
.sticker { position: absolute; right: 16px; bottom: 12px; display: grid; justify-items: center; transform: rotate(-8deg); pointer-events: none; }
.sticker .burst { width: clamp(64px, 10cqw, 110px); font-size: clamp(16px, 2.6cqw, 28px); }
.sticker-tag { margin-top: -8px; font: 700 10px/1 var(--mono); background: var(--m-yellow); padding: 3px 6px; letter-spacing: .08em; }

/* ---------- Taskbar ---------- */
.taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 60;
  height: 30px; display: flex; align-items: center; gap: 4px; padding: 2px 3px;
  background: var(--silver); box-shadow: inset 0 1px var(--lite), inset 0 2px var(--hi);
}
.btn, .start, .task {
  height: 23px; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 0 10px; background: var(--silver); border: 0; box-shadow: var(--out);
  font: inherit; color: #000; white-space: nowrap; text-decoration: none;
}
.btn { min-width: 75px; }
.btn:active, .start:active, .task:active,
.btn[aria-pressed="true"], .start[aria-expanded="true"], .task.is-active { box-shadow: var(--in); padding-top: 2px; padding-left: 11px; padding-right: 9px; }
.btn:focus-visible { outline-offset: -5px; }
.btn:disabled { color: var(--shade); text-shadow: 1px 1px 0 var(--hi); box-shadow: var(--out); padding: 0 10px; }
.task.is-active, .btn[aria-pressed="true"] {
  font-weight: 700;
  background-image: repeating-conic-gradient(var(--silver) 0 25%, var(--hi) 0 50%);
  background-size: 2px 2px;
}
.start { font-weight: 700; padding: 0 5px; }
.start-logo { width: 18px; height: 18px; display: grid; place-items: center; }
.start-logo .burst { width: 18px; font-size: 7px; }
.tasks { flex: 1; display: flex; gap: 3px; min-width: 0; overflow: hidden; }
.task { width: 150px; flex: 0 1 150px; justify-content: flex-start; overflow: hidden; text-overflow: ellipsis; }
.task svg { width: 16px; height: 16px; flex: none; shape-rendering: crispEdges; }
.task span { overflow: hidden; text-overflow: ellipsis; }
.tray { height: 23px; display: flex; align-items: center; gap: 4px; padding: 0 6px 0 4px; box-shadow: var(--sunk); white-space: nowrap; }
.tray-btn { height: 18px; padding: 0 2px; border: 0; background: none; display: grid; place-items: center; }
.tray-btn svg { width: 16px; height: 16px; shape-rendering: crispEdges; }
.clock { padding: 0 4px; }
.lang { height: 16px; min-width: 20px; padding: 0 3px; border: 0; background: var(--navy); color: #fff; font: 700 10px/16px var(--ui); }
.lang:hover { background: var(--m-blue); }

/* ---------- Menus (Start, context, flyouts) ---------- */
.menu { position: absolute; z-index: 75; display: flex; background: var(--silver); box-shadow: var(--win); padding: 3px; }
.menu[hidden] { display: none; }
.start-menu { left: 2px; bottom: 28px; min-width: 210px; }
.start-band {
  width: 24px; flex: none; display: flex; align-items: center; gap: 2px; padding: 8px 0;
  background: linear-gradient(0deg, var(--navy), var(--m-blue)); color: #fff;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 900 17px/1 var(--sans); letter-spacing: -.02em;
}
.start-band span { font-weight: 300; color: var(--m-yellow); }
.menu-list { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 150px; }
.menu-list li { position: relative; }
.menu-list li[role="separator"] { height: 2px; margin: 3px 2px; box-shadow: inset 0 1px var(--shade), inset 0 -1px var(--hi); }
.menu-item {
  width: 100%; min-height: 22px; display: flex; align-items: center; gap: 8px;
  padding: 2px 18px 2px 6px; background: none; border: 0; text-align: left; white-space: nowrap; color: #000; text-decoration: none;
}
.start-menu .menu-item { min-height: 32px; }
.menu-item.is-strong { font-weight: 700; }
.menu-item svg, .menu-item .mini { width: 24px; height: 24px; flex: none; shape-rendering: crispEdges; }
.ctx-menu .menu-item svg { display: none; }
.menu-item .mini { background: var(--silver); box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi); padding: 1px; display: flex; flex-direction: column; }
.menu-item .mini::before { content: ""; height: 3px; background: var(--navy); }
.menu-item .mini img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top; }
.menu-item .mini.is-blank { visibility: hidden; }
.menu-item .arrow { margin-left: auto; padding-left: 14px; font-size: 8px; }
.menu-item:hover, .menu-item:focus-visible, .menu-item[aria-expanded="true"] { background: var(--navy); color: #fff; outline: none; }
.menu-item:disabled { color: var(--shade); text-shadow: 1px 1px 0 var(--hi); background: none; }
.flyout { position: absolute; left: 100%; top: -3px; z-index: 2; }
.ctx-menu .menu-list { min-width: 160px; }

/* ---------- Windows ---------- */
.windows { position: absolute; inset: 0 0 30px 0; pointer-events: none; z-index: 10; }
.windows.is-dragging iframe { pointer-events: none; }
.win {
  position: absolute; min-width: 260px; min-height: 160px;
  display: flex; flex-direction: column; padding: 3px;
  background: var(--silver); box-shadow: var(--win);
  pointer-events: auto;
}
.win.is-min { display: none; }
.win.is-max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
.win.is-dialog { min-height: 0; }
.win-bar {
  flex: none; height: 20px; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 0 2px 0 3px; background: linear-gradient(90deg, var(--shade), #b5b5b5); color: var(--silver);
  user-select: none; touch-action: none;
}
.win.is-focused .win-bar { background: linear-gradient(90deg, var(--navy), var(--navy-2)); color: #fff; }
.win-title { min-width: 0; display: flex; align-items: center; gap: 4px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.win-title svg { width: 16px; height: 16px; flex: none; shape-rendering: crispEdges; }
.win-title b { overflow: hidden; text-overflow: ellipsis; }
.win-ctl { display: flex; gap: 0; flex: none; }
.win-ctl [data-act="close"] { margin-left: 2px; }
.wbtn { width: 16px; height: 14px; padding: 0; display: grid; place-items: center; background: var(--silver); border: 0; box-shadow: var(--out); color: #000; }
.wbtn:active { box-shadow: var(--in); }
.wbtn i { display: block; position: relative; }
.g-min { width: 6px; height: 2px; background: #000; margin-top: 6px; }
.g-max { width: 9px; height: 8px; border: 1px solid #000; border-top-width: 2px; }
.g-close { width: 8px; height: 7px; }
.g-close::before, .g-close::after { content: ""; position: absolute; left: 3px; top: -1px; width: 2px; height: 9px; background: #000; transform: rotate(45deg); }
.g-close::after { transform: rotate(-45deg); }
.win-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.win-resize {
  position: absolute; right: 3px; bottom: 3px; width: 13px; height: 13px; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 45%, var(--hi) 45% 52%, var(--shade) 52% 62%, transparent 62% 70%, var(--hi) 70% 76%, var(--shade) 76% 86%, transparent 86%);
}
.win.is-max .win-resize, .win.is-dialog .win-resize { display: none; }

/* menubar, toolbar, status bar */
.menubar { flex: none; display: flex; gap: 0; padding: 1px 0 2px; }
.menubar span { padding: 2px 7px; }
.menubar span::first-letter { text-decoration: underline; }
.toolbar { flex: none; display: flex; align-items: center; gap: 4px; padding: 3px 2px; flex-wrap: wrap; }
.toolbar .btn { min-width: 0; padding: 0 8px; }
.seg { display: flex; gap: 2px; }
.m-tag { margin-left: auto; font: 700 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--m-red); padding: 4px 7px; }
.statusbar { flex: none; display: flex; gap: 2px; margin-top: 2px; }
.statusbar > * { box-shadow: var(--sunk); padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.statusbar .grow { flex: 1; }
.statusbar .btn-order { box-shadow: var(--out); background: var(--silver); border: 0; font: inherit; font-weight: 700; color: var(--m-red); padding: 1px 8px; flex: none; }
.statusbar .btn-order:active { box-shadow: var(--in); }
.field { box-shadow: var(--field); padding: 2px; background: #fff; }

/* form controls (98.css) */
input[type="text"], input[type="email"], textarea, select {
  font: inherit; color: #000; background: #fff; border: 0; border-radius: 0; box-shadow: var(--field);
  padding: 3px 4px; min-height: 21px;
}
select { appearance: none; padding-right: 20px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17'%3E%3Crect width='16' height='17' fill='%23c0c0c0'/%3E%3Cpath d='M0 0h15v1H1v15H0z' fill='%23dfdfdf'/%3E%3Cpath d='M15 0h1v17H0v-1h15z' fill='%230a0a0a'/%3E%3Cpath d='M4 7h7v1H4zM5 8h5v1H5zM6 9h3v1H6zM7 10h1v1H7z'/%3E%3C/svg%3E") no-repeat right 2px center; }
textarea { resize: none; }
input:focus, textarea:focus, select:focus { outline: none; }
input[type="radio"], input[type="checkbox"] { appearance: none; margin: 0; flex: none; width: 13px; height: 13px; background: #fff; box-shadow: var(--field); display: inline-grid; place-content: center; }
input[type="radio"] { border-radius: 50%; width: 12px; height: 12px; box-shadow: inset 1px 1px var(--shade), inset -1px -1px var(--hi), inset 2px 2px var(--dark), inset -2px -2px var(--lite); }
input[type="radio"]:checked::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #000; }
input[type="checkbox"]:checked::after { content: ""; width: 7px; height: 7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Cpath d='M6 0h1v3H6zM5 1h1v3H5zM4 2h1v3H4zM0 2h1v3H0zM1 3h1v3H1zM2 4h1v3H2zM3 3h1v3H3z'/%3E%3C/svg%3E"); }
.check { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.check input:focus-visible + span { outline: 1px dotted #000; }
fieldset { margin: 0 0 10px; padding: 8px 10px 10px; border: 0; box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--shade), inset -2px -2px var(--shade), inset 2px 2px var(--hi); }
legend { padding: 0 3px; }
.progress { height: 20px; padding: 2px; box-shadow: var(--sunk); background: var(--silver); }
.progress i { display: block; height: 100%; width: var(--p, 0%); background: repeating-linear-gradient(90deg, var(--navy) 0 9px, transparent 9px 11px); transition: width .2s steps(4); }

/* tabs (System / Display properties) */
.tabs { display: flex; padding: 6px 6px 0; position: relative; z-index: 1; }
.tab { margin-right: -1px; padding: 3px 9px 4px; background: var(--silver); border: 0; box-shadow: inset 1px 1px var(--hi), inset -1px 0 var(--dark), inset -2px 0 var(--shade); position: relative; top: 2px; }
.tab[aria-selected="true"] { top: 0; padding-bottom: 6px; z-index: 1; margin: 0 -2px; }
.tab-panel { flex: 1; min-height: 0; overflow: auto; margin: 0 6px; padding: 12px; box-shadow: inset 1px 1px var(--hi), inset -1px -1px var(--dark), inset -2px -2px var(--shade); }
.dlg-buttons { flex: none; display: flex; justify-content: flex-end; gap: 6px; padding: 8px 6px 4px; }

/* ---------- Work window ---------- */
.win-body { position: relative; flex: 1; min-height: 0; }
.viewport { position: absolute; inset: 2px; overflow: hidden; background: #fff repeating-conic-gradient(#e6e6e6 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.viewport iframe {
  position: absolute; inset: 0; border: 0; background: #fff;
  width: calc(100% / var(--s, 1)); height: calc(100% / var(--s, 1));
  transform: scale(var(--s, 1)); transform-origin: 0 0;
  opacity: 0; transition: opacity .35s ease;
}
.viewport.is-ready iframe { opacity: 1; }
.viewport.is-loading { cursor: var(--cur-wait); }
.placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(.4) brightness(.92); }
.viewport.is-ready .placeholder, .viewport.is-ready .connect { display: none; }
.connect {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(300px, 90%); background: var(--silver); box-shadow: var(--win), 3px 3px 0 rgba(0, 0, 0, .35); padding: 3px;
}
.connect .win-bar { background: linear-gradient(90deg, var(--navy), var(--navy-2)); color: #fff; }
.connect-body { display: flex; gap: 10px; align-items: flex-start; padding: 10px 8px 8px; }
.connect-body svg { width: 32px; height: 32px; flex: none; shape-rendering: crispEdges; }
.connect-body p { margin: 0 0 8px; overflow-wrap: anywhere; }
.connect-body > div { flex: 1; min-width: 0; }
.fallback { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgba(0, 0, 0, .25); }
.fallback[hidden] { display: none; }
.fallback .msgbox { width: min(320px, 92%); }

/* message box */
.msgbox { background: var(--silver); box-shadow: var(--win), 3px 3px 0 rgba(0, 0, 0, .35); padding: 3px; }
.msgbox .win-bar { background: linear-gradient(90deg, var(--navy), var(--navy-2)); color: #fff; }
.msg-body { display: flex; gap: 12px; align-items: flex-start; padding: 14px 12px 8px; }
.msg-body svg { width: 32px; height: 32px; flex: none; shape-rendering: crispEdges; }
.msg-body p { margin: 0 0 6px; }
/* Tips window: the sticky note's list in Win95 type */
.hint-list ul { margin: 0; padding-left: 14px; display: grid; gap: 6px; }
.hint-list button { padding: 0; border: 0; background: none; font: inherit; color: var(--navy); text-decoration: underline; }

/* ---------- Explorer (Works catalog) ---------- */
.explorer { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(130px, 28%) 1fr; gap: 3px; }
.tree { overflow: auto; padding: 4px 2px; }
.tree ul { list-style: none; margin: 0; padding-left: 16px; position: relative; }
.tree > ul { padding-left: 2px; }
.tree li { position: relative; }
.tree ul ul li::before { content: ""; position: absolute; left: -10px; top: 0; bottom: 0; border-left: 1px dotted var(--shade); }
.tree ul ul li:last-child::before { bottom: auto; height: 10px; }
.tree ul ul li::after { content: ""; position: absolute; left: -10px; top: 10px; width: 8px; border-top: 1px dotted var(--shade); }
.tree-node { display: inline-flex; align-items: center; gap: 4px; padding: 1px 3px; border: 0; background: none; white-space: nowrap; }
.tree-node svg { width: 16px; height: 16px; shape-rendering: crispEdges; }
.tree-node.is-current span { background: var(--navy); color: #fff; outline: 1px dotted #fff; outline-offset: -1px; }
.pane { position: relative; min-width: 0; overflow: auto; }
.details { width: 100%; border-collapse: collapse; white-space: nowrap; }
.details th { position: sticky; top: 0; z-index: 1; padding: 0; text-align: left; font-weight: 400; }
.details th button { width: 100%; height: 19px; padding: 0 6px; text-align: left; background: var(--silver); border: 0; box-shadow: var(--out); }
.details th button:active { box-shadow: var(--in); }
.details td { padding: 2px 6px; }
.details td:first-child { display: flex; align-items: center; gap: 5px; }
.details td svg, .details td img { width: 16px; height: 16px; shape-rendering: crispEdges; flex: none; }
.details tr.row-link:hover td, .details tr.row-link:focus-visible td { background: var(--navy); color: #fff; outline: none; }
.details tr.row-link:focus-visible td:first-child { outline: 1px dotted #fff; outline-offset: -1px; }

/* Large icons view = MSCHF shop page */
.shop { background: #fff; color: #000; container-type: inline-size; min-height: 100%; }
.shop-head { position: relative; background: var(--m-yellow); padding: 10px 12px 0; overflow: hidden; border-bottom: 3px solid var(--m-blue); }
.logo-box { display: inline-block; border: 2px solid var(--m-blue); background: #fff; padding: 2px 8px 3px; line-height: 1; text-align: center; }
.logo-box b { display: block; font: italic 900 18px/1 var(--sans); color: var(--m-red); letter-spacing: -.04em; }
.logo-box span { font: 400 13px/1 var(--serif); color: var(--m-blue); }
.shop-title { margin: 6px 0 0; font: 700 clamp(28px, 9.5cqw, 88px)/.86 var(--serif); color: var(--m-blue); text-transform: uppercase; letter-spacing: -.045em; }
.shop-title em { font-style: italic; color: var(--m-red); font-family: var(--sans); font-weight: 400; letter-spacing: -.05em; }
.shop-burst { position: absolute; right: 2cqw; top: 6px; width: clamp(60px, 14cqw, 116px); font-size: clamp(16px, 4cqw, 32px); transform: rotate(12deg); }
.shop-bar { background: var(--m-blue); color: #fff; font: 700 10px/1 var(--mono); padding: 5px 12px; letter-spacing: .08em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); padding: 12px; }
.tile { position: relative; border: 1px solid var(--m-gray); margin: -1px 0 0 -1px; padding: 0 12px 14px; display: flex; flex-direction: column; background: #fff; }
.tile:nth-child(odd) { box-shadow: inset 3px 0 0 var(--m-red); }
.tile-strip { margin: 0 -12px 10px; padding: 4px 12px; font: 700 10px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: #a3aab8; color: #fff; }
.tile:nth-child(4n+2) .tile-strip, .tile:nth-child(4n+3) .tile-strip { background: var(--m-blue); }
.tile-media { position: relative; aspect-ratio: 16 / 10; background: repeating-conic-gradient(#e9e9e9 0 25%, #fff 0 50%) 0 0 / 14px 14px; display: grid; place-items: center; margin: 0 22px; }
.tile-media img { width: 78%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid #000; display: block; transition: transform .25s ease; }
.tile:hover .tile-media img { transform: translateY(-3px) rotate(-1deg); }
.qr { position: absolute; right: -18px; top: -4px; width: 46px; height: 46px; background: #fff; padding: 2px; }
.qr svg { display: block; width: 100%; height: 100%; }
.bars { position: absolute; display: block; height: 12px; width: 70px; }
.bars svg { display: block; width: 100%; height: 100%; }
.tile-media .bars.l { left: -34px; top: 46%; }
.tile-media .bars.r { right: -34px; top: 46%; }
.oval { position: absolute; right: -12px; bottom: -14px; padding: 10px 16px; background: var(--m-yellow); border-radius: 50%; font: 400 22px/1 var(--sans); color: var(--m-red); letter-spacing: -.03em; transform: rotate(-9deg); }
.tile h3 { margin: 22px 0 0; font: 400 clamp(20px, 3.6cqw, 28px)/1 var(--sans); text-transform: uppercase; letter-spacing: -.03em; }
.tile .sub { margin: 4px 0 0; padding-bottom: 6px; border-bottom: 1px solid #000; font: italic 700 13px/1.3 var(--serif); }
.tile .tags { margin: 6px 0 0; font: 400 10px/1.4 var(--mono); color: #333; text-transform: uppercase; }
.cta { align-self: center; margin-top: 10px; background: none; border: 0; padding: 0; font: 700 clamp(20px, 3.8cqw, 30px)/1 var(--serif); text-transform: uppercase; color: var(--m-blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cta:hover { color: var(--m-red); }
.cta-note { align-self: center; margin-top: 4px; font: italic 400 11px/1 var(--serif); }

/* ---------- System Properties / Bin / Calendar / Display ---------- */
.sys-general { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.sys-general svg.big { width: 96px; height: 92px; shape-rendering: crispEdges; }
.sys-general h3, .sys-h { margin: 0 0 4px; font-size: 11px; font-weight: 700; }
.sys-general p { margin: 0 0 10px; }
/* System + Registered to on the left, the owner's photo on the right */
.sys-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sys-photo { flex: none; width: 110px; height: 110px; object-fit: cover; padding: 2px; background: var(--silver); box-shadow: var(--field); }
.sys-general .credit { color: #444; }
.sys-general .credit a, .sys-general .contacts a { color: var(--navy); }
.sys-list { margin: 0; padding: 0; list-style: none; }
.sys-list li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--lite); }
.sys-list li::before { content: "✓"; color: var(--navy); font-weight: 700; }
.bin-empty { padding: 2px 4px 6px; }
.cal { display: grid; grid-template-columns: 1fr auto; gap: 14px; }
.cal-head { display: flex; gap: 6px; margin-bottom: 8px; }
.cal-head select { flex: 1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); background: #fff; box-shadow: var(--field); padding: 3px; text-align: center; }
.cal-grid span { padding: 3px 0; }
.cal-grid .dow { background: var(--shade); color: #fff; }
.cal-grid .today { background: var(--navy); color: #fff; }
.cal-grid .muted { color: var(--shade); }
.analog { width: 120px; height: 120px; border-radius: 50%; background: #fff; box-shadow: var(--field); position: relative; }
.analog i { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; background: #000; }
.analog .h { width: 4px; height: 30px; margin-left: -2px; }
.analog .m { width: 2px; height: 44px; margin-left: -1px; }
.analog .s { width: 1px; height: 48px; background: var(--m-red); }
.analog .tick { position: absolute; inset: 6px; border-radius: 50%; background: repeating-conic-gradient(#000 0 1deg, transparent 1deg 30deg); -webkit-mask: radial-gradient(circle, transparent 82%, #000 83%); mask: radial-gradient(circle, transparent 82%, #000 83%); }
.cal-time { text-align: center; margin-top: 8px; }
.wall-preview { width: 180px; margin: 0 auto 12px; padding: 10px 10px 18px; background: var(--beige); border-radius: 8px; box-shadow: inset 0 -3px 0 var(--beige-3); }
.wall-preview div { aspect-ratio: 4 / 3; border-radius: 6px; box-shadow: inset 0 0 0 2px #333; background-size: cover !important; }
.wall-list { height: 92px; overflow: auto; background: #fff; box-shadow: var(--field); padding: 2px; }
.wall-list button { display: block; width: 100%; text-align: left; padding: 1px 4px; border: 0; background: none; }
.wall-list button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* ---------- Order wizard ---------- */
.wizard { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wiz-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 12px 0; }
.wiz-art {
  position: relative; background: linear-gradient(180deg, var(--navy) 0%, #0a2db0 60%, var(--teal, #008080) 100%);
  box-shadow: var(--sunk); overflow: hidden; display: grid; place-items: center;
}
.wiz-art .burst { width: 96px; font-size: 26px; transform: rotate(-10deg); }
.wiz-art .disk { position: absolute; left: 10px; bottom: 12px; width: 48px; height: 48px; shape-rendering: crispEdges; }
.wiz-art .wiz-tag { position: absolute; right: 8px; top: 10px; font: 700 10px/1 var(--mono); background: var(--m-yellow); padding: 3px 5px; transform: rotate(4deg); }
.wiz-step { min-width: 0; overflow: auto; padding-bottom: 8px; }
.wiz-step h2 { margin: 0 0 10px; font: 700 15px/1.2 var(--ui); }
.wiz-step p { margin: 0 0 10px; }
.wiz-step .hint { color: #444; }
.wiz-step .err { color: #b00000; min-height: 15px; margin: 4px 0 0; }
.wiz-row { display: grid; gap: 4px; margin-bottom: 10px; }
.wiz-row input:not([type="radio"]):not([type="checkbox"]), .wiz-row select, .wiz-row textarea { width: 100%; }
.wiz-count { color: var(--shade); margin: 0 0 8px; }
.wiz-foot { flex: none; padding: 8px 12px 6px; }
.wiz-foot hr { margin: 0 0 8px; border: 0; height: 2px; box-shadow: inset 0 1px var(--shade), inset 0 -1px var(--hi); }
.wiz-btns { display: flex; justify-content: flex-end; gap: 4px; }
.wiz-btns .gap { width: 8px; }
.summary { margin: 0 0 10px; padding: 6px 8px; background: #fff; box-shadow: var(--field); font: 12px/1.5 var(--mono); white-space: pre-wrap; max-height: 150px; overflow: auto; }
.install-file { font: 11px var(--mono); color: #333; min-height: 15px; margin: 6px 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.next-steps { margin: 0 0 10px; padding-left: 18px; }
.next-steps li { margin-bottom: 4px; }
.send-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }

/* no-JS fallback inside the screen */
.nojs { position: absolute; inset: 24px; z-index: 50; padding: 16px 18px; background: var(--silver); box-shadow: var(--win); overflow: auto; }
.nojs h2 { margin: 0 0 10px; font-size: 14px; }
.nojs li { margin: 4px 0; }

/* ---------- Small screens: no housing, desktop fills the viewport ---------- */
@media (max-width: 767px) {
  body { background: #000; }
  .room { padding: 0; justify-content: flex-start; }
  .crt { width: 100%; aspect-ratio: auto; }
  .crt::after, .crt-body::after, .crt-chin, .ticker { display: none; }
  /* no monitor case on phones: the tips window (APPS.hint) says the same */
  .note { display: none; }
  .crt-body, .crt-well { position: static; width: auto; height: auto; }
  .screen { height: 100svh; }
  .os, .boot { inset: 0; border-radius: 0; box-shadow: none; }
  .glass { box-shadow: none; background: none; }
  .glass::before { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .9) 0 1px, transparent 1px 3px); opacity: .05; }
  .desk { padding: 10px 6px; }
  .icons { display: grid; grid-template-columns: repeat(4, 1fr); height: auto; gap: 8px 0; flex-direction: row; }
  .icon { width: auto; }
  .sticker { transform: rotate(-8deg) scale(.8); transform-origin: bottom right; }
  .wbtn-max, .win-resize { display: none; }
  .task { width: auto; flex: 0 1 110px; }
  .tray { padding: 0 4px; }
  .sound { display: none; }
  .explorer { grid-template-columns: 1fr; }
  .tree { display: none; }
  .wiz-main { grid-template-columns: 1fr; }
  .wiz-art { display: none; }
  .cal { grid-template-columns: 1fr; justify-items: center; }
  .sys-general { grid-template-columns: 1fr; }
  .sys-general svg.big { width: 72px; height: 69px; }
  .statusbar .meta { display: none; }
  .flyout { left: 22px; top: calc(100% - 2px); }

  /* touch: ~40px targets for fingers, 13px text, 16px fields so iOS doesn't zoom in */
  .win, .menu, .taskbar { font-size: 13px; }
  .taskbar { height: 42px; }
  .desk, .windows { bottom: 42px; }
  .start-menu { bottom: 40px; }
  .btn, .start, .task, .tray { height: 34px; }
  .lang { height: 22px; min-width: 28px; font-size: 12px; line-height: 22px; }
  .win-bar { height: 32px; }
  .wbtn { width: 34px; height: 26px; }
  .win-ctl [data-act="close"] { margin-left: 4px; }
  .menu-item, .start-menu .menu-item { min-height: 42px; }
  .tab { padding: 8px 14px 9px; }
  .check { gap: 10px; padding: 9px 0; }
  input[type="radio"], input[type="checkbox"] { width: 20px; height: 20px; }
  input[type="radio"]:checked::after { width: 8px; height: 8px; }
  input[type="checkbox"]:checked::after { transform: scale(1.7); }
  input[type="text"], input[type="email"], textarea, select { min-height: 38px; font-size: 16px; }
  .wiz-step h2 { font-size: 18px; }
  .wiz-btns .btn, .dlg-buttons .btn, .send-row .btn { height: 40px; min-width: 88px; }
  .hint-list button, .note button { padding: 4px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .glass::before, .glass::after { display: none; }
  .ticker-track { animation: none; }
}
.lang:empty, .tray-btn:empty { display: none; }
