@import url("../shared/xp-system.css?v=4");

/* ============================================================
   OPTION A — DESKTOP XP
   Windows XP "Luna" (blue) system chrome · the About document ·
   media-player case studies · Y2K red skin for contact
   Type: Noto Sans throughout, from Google Fonts.
   ============================================================ */



* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
/* every press is drawn by the control itself (its :active), so Android's blue tap box stays off; the page never bounces or
   reloads on a pull, and a window's page keeps its scrolling to itself (A-32) */
html { -webkit-tap-highlight-color: transparent; }
html, body { overscroll-behavior: none; }
:is(.win-body, .screen-view, .files, .xp-pane) { overscroll-behavior: contain; }
:is(button, a, input, select, label, [role="button"]) { touch-action: manipulation; }
body {
  /* the wallpaper's own ground: it shows in the taskbar's place while the taskbar is still to come up */
  background: var(--desk-deep);
  color: #000;
  font: 12px/1.3 var(--ui);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: var(--cur-arrow, default);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: var(--cur-arrow, default); }
a { color: var(--link); }
/* Phosphor OS's own colour, the green of its mark (tools/phosphor-mark): selected text, and the keyboard's focus ring.
   A ring takes the green mixed with the ink it was drawn in before, dark on light ground and light on dark, so it
   holds better than 3:1 on both; the dotted line before each one stays for a browser without color-mix(). XP's blue
   still marks what is selected in a list, a menu or on the desktop */
:root { --ph: #4cda50; --ph-ink: #04220b; }
/* the monitors' beige plastic and its grain: fractal noise, grey about the middle, laid on in soft light so it only
   lifts and sinks the beige by a shade (the CRT's case and bezel, and Home's remote) */
:root {
  --crt-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='.45 .45 .45 0 -.175 .45 .45 .45 0 -.175 .45 .45 .45 0 -.175 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 180px 180px;
}
::selection { background: var(--ph); color: var(--ph-ink); }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* index.html's head defines .sr-only (the loading screen uses it before this stylesheet arrives) and keeps the page
   unseen until this stylesheet is in: from here it shows */
:where(body > :not(#boot)) { visibility: visible; }

/* ---- Luna scrollbars: pale blue rounded thumb with a ribbed grip ---- */
::-webkit-scrollbar { width: 17px; height: 17px; }
::-webkit-scrollbar-track:vertical { background: linear-gradient(90deg, #eeede5, #fcfcfa 25%, #f7f6f1 75%, #eeede5); }
::-webkit-scrollbar-track:horizontal { background: linear-gradient(180deg, #eeede5, #fcfcfa 25%, #f7f6f1 75%, #eeede5); }
::-webkit-scrollbar-thumb { border: 1px solid #fff; border-radius: 3px; box-shadow: inset 0 0 0 1px #9eb7f2; background-repeat: no-repeat; background-position: center; }
::-webkit-scrollbar-thumb:vertical { background-color: #c1d3fb; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h7v1H0zM0 2h7v1H0zM0 4h7v1H0zM0 6h7v1H0z' fill='%23eef4fe'/%3E%3Cpath d='M1 1h7v1H1zM1 3h7v1H1zM1 5h7v1H1zM1 7h7v1H1z' fill='%238cb0f8'/%3E%3C/svg%3E"), linear-gradient(90deg, #c9d8fc, #bdd0fb 50%, #b0c6f7); }
::-webkit-scrollbar-thumb:horizontal { background-color: #c1d3fb; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v7H0zM2 0h1v7H2zM4 0h1v7H4zM6 0h1v7H6z' fill='%23eef4fe'/%3E%3Cpath d='M1 1h1v7H1zM3 1h1v7H3zM5 1h1v7H5zM7 1h1v7H7z' fill='%238cb0f8'/%3E%3C/svg%3E"), linear-gradient(180deg, #c9d8fc, #bdd0fb 50%, #b0c6f7); }
::-webkit-scrollbar-thumb:hover { box-shadow: inset 0 0 0 1px #7fa0ea; }
::-webkit-scrollbar-corner { background: var(--face); }
::-webkit-scrollbar-button:single-button { display: block; width: 17px; height: 17px; border: 1px solid #fff; border-radius: 3px; background-color: #c1d3fb; background-repeat: no-repeat; background-position: center; box-shadow: inset 0 0 0 1px #9eb7f2; }
::-webkit-scrollbar-button:single-button:hover { box-shadow: inset 0 0 0 1px #7fa0ea; background-color: #d4e1fd; }
::-webkit-scrollbar-button:single-button:active { background-color: #9fbaf5; }
::-webkit-scrollbar-button:vertical:decrement { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='5' shape-rendering='crispEdges'%3E%3Cpath d='M4 0h1v1H4zM3 1h3v1H3zM2 2h2v1H2zM5 2h2v1H5zM1 3h2v1H1zM6 3h2v1H6zM0 4h2v1H0zM7 4h2v1H7z' fill='%234d6185'/%3E%3C/svg%3E"); }
::-webkit-scrollbar-button:vertical:increment { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='5' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h2v1H0zM7 0h2v1H7zM1 1h2v1H1zM6 1h2v1H6zM2 2h2v1H2zM5 2h2v1H5zM3 3h3v1H3zM4 4h1v1H4z' fill='%234d6185'/%3E%3C/svg%3E"); }
::-webkit-scrollbar-button:horizontal:decrement { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='9' shape-rendering='crispEdges'%3E%3Cpath d='M4 0v2H3V0zM3 1v2H2V1zM2 2v2H1V2zM1 3v3H0V3zM2 5v2H1V5zM3 6v2H2V6zM4 7v2H3V7z' fill='%234d6185'/%3E%3C/svg%3E"); }
::-webkit-scrollbar-button:horizontal:increment { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='9' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v2H0zM1 1h1v2H1zM2 2h1v2H2zM3 3h2v3H3zM2 5h1v2H2zM1 6h1v2H1zM0 7h1v2H0z' fill='%234d6185'/%3E%3C/svg%3E"); }
@supports (-moz-appearance: none) { * { scrollbar-color: #bdd0fb #f7f6f1; } }

/* focus: XP kept the dotted focus rectangle, drawn in the control's own label colour, so it reads on every face:
   black on the beige buttons, white on the blue caption keys, the taskbar and the green start button */
:focus { outline: none; }
:focus-visible { outline: 1px dotted currentColor; outline: 2px solid color-mix(in srgb, var(--ph) 55%, currentColor); outline-offset: -4px; }
/* focus the page handed over without a key (a window opening, a click) shows no ring: app.js focusIn() marks it
   data-quiet; a window's frame and its page never draw one, the active title bar says where the keys are */
[data-quiet]:focus-visible, .win:focus-visible, .win-body:focus-visible { outline: none; }

/* ---- controls ---- */


/* ---- page keys: one set of buttons for the pages themselves (Home and About). The page's main step is the REC key,
   the next step a Silver key, and a way on is a printed link. Dialogs, the programs drawn in a page (New Message,
   Help Topics), toolbars and the game keep XP's push buttons; the case player and the contact skin keep their own. ---- */
.page-key { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 20px;
  border: 1px solid; border-radius: 4px; font: 700 14px/1 var(--ui); white-space: nowrap; }
.page-key .px { width: 16px; height: 16px; flex: none; }
.page-key:not(:disabled):active > * { translate: 1px 1px; }
/* the REC key: a gloss kept above the label, a lit rim, a shaded lip, and the soft lift of a key resting on the page */
.page-key.rec { border-color: var(--rec-edge); color: #fff; text-shadow: 0 1px 0 rgba(90, 0, 0, .55);
  background: linear-gradient(180deg, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, .1) 29%, rgba(255, 255, 255, 0) 30%), var(--rec-face);
  box-shadow: inset 0 1px 0 rgba(255, 214, 208, .6), inset 0 -2px 3px rgba(90, 0, 0, .35), 0 1px 1px rgba(60, 0, 0, .25), 0 8px 14px -8px rgba(126, 20, 16, .6); }
.page-key.rec .px { --ic-line: #fff; --ic-fill: rgba(255, 255, 255, .22); }
.page-key.rec .px .lu { display: none; }
.page-key.rec .px .fl { display: inline; }
.page-key.rec .rec-dot { background: radial-gradient(circle at 35% 35%, #fff, #ffd9d4 60%, #f3a79f); box-shadow: none; transition: box-shadow .15s; }
.page-key.rec:not(:disabled):hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), inset 0 -2px 3px rgba(90, 0, 0, .35), 0 0 14px rgba(214, 38, 28, .45), 0 8px 14px -8px rgba(126, 20, 16, .6); }
/* the REC lamp (Start a project only) lights under the pointer and burns bright while the key is held */
.page-key.rec:not(:disabled):hover .rec-dot { box-shadow: 0 0 6px 1px rgba(255, 255, 255, .7); }
.page-key.rec:not(:disabled):active { background: linear-gradient(180deg, #a8170f, #c4241b 40%, #d83127); box-shadow: inset 0 2px 4px rgba(60, 0, 0, .55); }
.page-key.rec:not(:disabled):active .rec-dot { box-shadow: 0 0 8px 2px #fff; }
.page-key.rec:focus-visible { outline: 1px dotted #fff; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #fff); outline-offset: -5px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--rec-edge), inset 0 -2px 3px rgba(90, 0, 0, .35); }
/* the Silver key: the remote's and the TV's silver under the same gloss and lift; its edge is a step darker than Silver
   Edge so it stands off the hero's steel as well as the white page. Under the pointer it takes XP's orange glow */
.page-key.silver { border-color: #4a4f59; color: #1d2a3a; text-shadow: 0 1px 0 rgba(255, 255, 255, .75);
  background: linear-gradient(180deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, .15) 29%, rgba(255, 255, 255, 0) 30%), var(--silver-face);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(40, 44, 60, .25), 0 1px 1px rgba(0, 0, 0, .15), 0 8px 14px -8px rgba(0, 20, 70, .4); }
.page-key.silver .px { --ic-line: #1d2a3a; }
.page-key.silver:not(:disabled):hover { box-shadow: var(--btn-hot), 0 1px 1px rgba(0, 0, 0, .15), 0 8px 14px -8px rgba(0, 20, 70, .4); }
.page-key.silver:not(:disabled):active { background: linear-gradient(180deg, #b3b8c2, #d4d7de 55%, #e4e6ea); box-shadow: inset 0 2px 4px rgba(20, 24, 40, .35); }
.page-key.silver:focus-visible { outline: 1px dotted #1d2a3a; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #1d2a3a); outline-offset: -5px; }
/* off: no page key is off today; drawn anyway, so the fifth state never repeats the resting one */
.page-key:disabled { border-color: #c9c7ba; background: #f5f4ea; color: var(--shade); text-shadow: 1px 1px var(--hi); box-shadow: none; }
.page-key:disabled svg { opacity: .45; filter: grayscale(1); }
/* the printed link: a way on after the keys, Noto Sans bold in Ink over a 35% underline that goes solid under the pointer */
.page-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 4px; border: 0; background: none; color: var(--ink);
  font: 700 14px/1.2 var(--ui); text-decoration: underline; text-decoration-color: rgba(20, 20, 20, .35); text-underline-offset: 4px; }
.page-link .px { width: 16px; height: 16px; flex: none; }
.page-link:hover { text-decoration-color: currentColor; }
.page-link:active { color: #000; text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.page-link:focus-visible { outline-offset: 1px; }
/* the hand on the page, the arrow on the system: Home and About read like web pages, so everything that acts on
   them takes the hand; the Luna chrome keeps XP's arrow, except the hyperlinks XP itself drew with the hand */
:is(.home, .doc) :is(button, select, label.chk, [role="button"]):not(:disabled), .tp-links button, .pl-ask { cursor: var(--cur-hand, pointer); }

.radio { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.radio input { appearance: none; width: 13px; height: 13px; margin: 0; border-radius: 50%; border: 1px solid var(--check-line); background: linear-gradient(135deg, #dcdcd7, #fff); display: grid; place-items: center; }
.radio input:hover { box-shadow: inset 0 0 0 2px #fbc761; }
.radio input:checked::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9ce695, #21a121 70%); }
.hr { height: 1px; margin: 6px 0; background: var(--shade); box-shadow: 0 1px var(--hi); }

/* the LOADING SCREEN's rules (boot.js, crt3d/) are in index.html's head, so it draws before this stylesheet arrives */

/* ============================================================
   ICON COLOURS
   Every icon is <svg class="px px-NAME"> with a fill layer (.f) and an
   outline layer (.l). Change a colour here, or per call: I('folder', 16, { fill: '#fff' }).
   ============================================================ */


/* ============================================================
   DESKTOP + ICONS
   ============================================================ */
.desktop {
  position: fixed; inset: 0 0 var(--tb-h) 0; overflow: hidden;
  /* wallpaper: a still of the live Phosphor Signal (tools/wallpaper-still), calm blue on the left and the trace's
     swell on the right; anchored right so the swell survives narrow crops */
  background: var(--desk-deep) url("../asset/wallpaper-phosphor.webp") 100% 50% / cover no-repeat;
}
/* a wider window takes a wider still (each the scene at 10s, 1200px tall): the narrowest one wider than the desktop
   is scaled by its height from the right edge, as the live wallpaper frames itself, so the live frame fades in over
   the same picture */
@media (min-aspect-ratio: 155/100) { .desktop { background-image: url("../asset/wallpaper-phosphor-2160.webp"); } }
@media (min-aspect-ratio: 174/100) { .desktop { background-image: url("../asset/wallpaper-phosphor-2400.webp"); } }
@media (min-aspect-ratio: 193/100) { .desktop { background-image: url("../asset/wallpaper-phosphor-2700.webp"); } }
/* live wallpaper canvas (wallpaper3d.js): low-res render scaled up with hard pixels, faded in over the static image */
.wall3d { position: absolute; inset: 0; display: block; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease-out); }
.wall3d.on { opacity: 1; }
.desk-icons {
  list-style: none; margin: 0; padding: 0;
  position: absolute; top: 10px; left: 8px; bottom: 10px;
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 84px); gap: 6px 4px;
}
.dicon {
  width: 80px; padding: 3px 2px; background: none; border: 0; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: #fff; text-align: center; font: 12px/1.25 var(--ui); cursor: var(--cur-hand, pointer);
}
.dicon .px { width: 32px; height: 32px; filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, .35)); }
.dicon .lbl { padding: 0 3px; border-radius: 1px; text-shadow: 1px 1px 1px #000, 0 0 3px rgba(0, 0, 0, .6); }
.dicon:hover .lbl { text-decoration: underline; }
.dicon:focus-visible { outline: none; }
/* XP selects an icon the moment it is pressed, before the double-click opens it */
.dicon:focus-visible .lbl, .dicon.sel .lbl, .dicon:active .lbl { background: var(--sel); outline: 1px dotted #fff; text-shadow: none; }
.dicon:focus-visible .px, .dicon.sel .px, .dicon:active .px { filter: url(#selTint); }

/* ============================================================
   WINDOWS — the Luna frame: rounded top corners, a 3px blue
   frame, a glossy 30px title bar, blue and red caption buttons
   ============================================================ */
.win {
  position: absolute; display: flex; flex-direction: column;
  min-width: 260px; min-height: 140px; padding: 0 3px 3px;
  border-radius: 8px 8px 0 0;
  background: var(--face); box-shadow: var(--frame-off), 0 8px 22px -10px rgba(0, 20, 70, .5);
}
.win.active { box-shadow: var(--frame), 0 10px 28px -10px rgba(0, 20, 70, .6); }
.win.max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; }
.win .title {
  flex: 0 0 30px; display: flex; align-items: center; gap: 5px; margin: 0 -3px; padding: 0 5px 0 7px;
  border-radius: 7px 7px 0 0; background: var(--cap-off); color: #dce6fb;
  font: 700 14px/1 var(--ui); user-select: none; touch-action: none;
}
.win.active .title { background: var(--cap); color: #fff; text-shadow: 1px 1px var(--cap-shadow); }
.win.max .title { border-radius: 0; }

.win-body { flex: 1; min-height: 0; overflow: auto; container-type: inline-size; position: relative; }
.win-body.sunk { background: #fff; box-shadow: var(--well); padding: 1px; }
/* the XP size grip: a triangle of raised dots */
.resize { position: absolute; right: 3px; bottom: 3px; width: 12px; height: 12px; cursor: var(--cur-nwse, nwse-resize); touch-action: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' shape-rendering='crispEdges'%3E%3Cg fill='%23fff'%3E%3Crect x='9' y='1' width='2' height='2'/%3E%3Crect x='5' y='5' width='2' height='2'/%3E%3Crect x='9' y='5' width='2' height='2'/%3E%3Crect x='1' y='9' width='2' height='2'/%3E%3Crect x='5' y='9' width='2' height='2'/%3E%3Crect x='9' y='9' width='2' height='2'/%3E%3C/g%3E%3Cg fill='%23aca899'%3E%3Crect x='8' y='0' width='2' height='2'/%3E%3Crect x='4' y='4' width='2' height='2'/%3E%3Crect x='8' y='4' width='2' height='2'/%3E%3Crect x='0' y='8' width='2' height='2'/%3E%3Crect x='4' y='8' width='2' height='2'/%3E%3Crect x='8' y='8' width='2' height='2'/%3E%3C/g%3E%3C/svg%3E") no-repeat; }

/* menubar + dropdown */
.menubar { flex: 0 0 auto; display: flex; padding: 1px 0; position: relative; box-shadow: inset 0 -1px #d8d2bd, 0 1px var(--hi); margin-bottom: 1px; }
.menubar > button { min-height: 24px; padding: 3px 7px; background: none; border: 0; }
.menubar > button:hover, .menubar > button:active, .menubar > button[aria-expanded="true"] { background: var(--sel); color: #fff; }
.menu {
  position: fixed; z-index: 9800; min-width: 170px; padding: 2px;
  background: #fff; border: 1px solid var(--shade); box-shadow: var(--menu-shadow);
  animation: menudrop .14s var(--ease-out);
}
@keyframes menudrop { from { opacity: 0; transform: translateY(-3px); } }
.menu button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 4px 22px 4px 6px; background: none; border: 0; text-align: left; white-space: nowrap; }
.menu button .mk { width: 12px; display: inline-flex; justify-content: center; }
.menu button:hover, .menu button:active, .menu button:focus-visible { background: var(--sel); color: #fff; outline: none; }
/* once the arrow keys lead (.kb), only the focused item is lit, not the one a resting pointer happens to be over */
.menu.kb button:hover:not(:focus-visible):not(:active) { background: none; color: inherit; }
.menu .hr { margin: 3px 1px; box-shadow: none; }

/* toolbar, address bar, status bar */
.toolbar { flex: 0 0 auto; display: flex; align-items: stretch; gap: 2px; padding: 3px 4px; box-shadow: inset 0 -1px #d8d2bd, inset 0 1px var(--hi); }
.tbtn { min-width: 58px; padding: 3px 6px 2px; border: 1px solid transparent; border-radius: 3px; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tbtn:not(:disabled):hover { border-color: var(--tool-hot-edge); background: var(--tool-hot); }
.tbtn[aria-pressed="true"], .tbtn:not(:disabled):active { border-color: #9d9d92; background: #e3e3db; box-shadow: inset 1px 1px 2px rgba(0, 0, 0, .15); }
.tbtn svg { width: 24px; height: 24px; }
.tsep { width: 1px; margin: 3px 4px; background: #d8d2bd; box-shadow: 1px 0 var(--hi); }
.addr { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 3px 4px 4px; box-shadow: inset 0 -1px #d8d2bd; }
.addr .field { flex: 1; min-width: 0; height: 22px; display: flex; align-items: center; gap: 4px; padding: 0 4px; white-space: nowrap; overflow: hidden; }
.addr .field .px { width: 16px; height: 16px; flex: none; }
.statusbar { flex: 0 0 auto; display: flex; gap: 0; margin-top: 2px; box-shadow: inset 0 1px var(--hi); }
.statusbar > span { flex: 1; min-width: 0; padding: 4px 6px 3px; box-shadow: inset -1px 0 #d8d2bd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.statusbar > span:last-child { box-shadow: none; }
.statusbar > span:first-child { flex: 0 0 auto; min-width: 96px; }
.statusbar .px { width: 16px; height: 16px; }
.statusbar .short { display: none; }

/* zoom rect (window open/minimize animation) */
.zoom-rect { position: fixed; z-index: 9990; pointer-events: none; display: none; border: 2px solid #9a9a9a; mix-blend-mode: difference; }

/* ============================================================
   TASKBAR + START MENU
   ============================================================ */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--tb-h); z-index: 9000;
  display: flex; align-items: center; gap: 4px; padding: 0;
  background: linear-gradient(180deg, #1f2f86 0, #3165c4 3%, #3682e5 6%, #4490e6 10%, #3883e5 12%, #2b71e0 15%, #2663da 18%, #235bd6 20%, #2258d5 23%, #2157d6 38%, #245ddb 54%, #2562df 86%, #245fdc 89%, #2158d4 92%, #1d4ec0 95%, #1941a5 98%);
  color: #fff;
}
.start-btn {
  height: 100%; padding: 0 24px 0 16px; margin-right: 8px; border: 0; border-radius: 0 12px 12px 0;
  background: radial-gradient(120% 90% at 30% 30%, #5eb84f 0%, #3c9a3c 45%, #2d8a2d 70%, #237a23 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .45), inset -3px -2px 4px rgba(0, 40, 0, .35), 2px 0 4px rgba(0, 0, 40, .35);
  display: flex; align-items: center; gap: 5px; flex: none; color: #fff;
  font: italic 700 16px/1 var(--ui); text-transform: lowercase; letter-spacing: .01em; text-shadow: 1px 1px 2px rgba(0, 0, 0, .55);
}
.start-btn .start-mark { flex: none; width: 20px; height: 20px; image-rendering: pixelated; filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, .45)); }
.start-btn:hover { background: radial-gradient(120% 90% at 30% 30%, #74cc63 0%, #4bab45 45%, #389a38 70%, #2b8a2b 100%); }
/* pressed, and while the Start menu is open, it goes in: darker, lit from the corner, the label a pixel down */
.start-btn:active, .start-btn[aria-expanded="true"] { background: radial-gradient(120% 90% at 30% 30%, #3d8e36 0%, #2a7a2a 50%, #1d661d 100%); box-shadow: inset 2px 2px 4px rgba(0, 30, 0, .5); }
.start-btn:active > * { translate: 1px 1px; }
.tb-grip { display: none; }
.tasks { flex: 1; min-width: 0; display: flex; gap: 3px; overflow: hidden; }
.task {
  flex: 0 1 164px; min-width: 34px; height: 24px; padding: 0 8px; border: 0; border-radius: 3px;
  background: var(--task);
  box-shadow: inset -1px -1px rgba(0, 0, 60, .3), inset 1px 1px rgba(255, 255, 255, .35);
  display: flex; align-items: center; gap: 5px; text-align: left; color: #fff;
}
.task:hover { background: var(--task-hot); }
.task .px { width: 16px; height: 16px; flex: none; }
.task span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task[aria-pressed="true"] { background: var(--task-on); box-shadow: inset 1px 1px 2px rgba(0, 0, 40, .6), inset -1px -1px rgba(255, 255, 255, .12); font-weight: 700; }
/* the active window's task lifts a shade under the pointer; any task goes in while it is pressed */
.task[aria-pressed="true"]:hover { background: #2a5fc6; }
.task:active, .task[aria-pressed="true"]:active { background: #1a4aa6; box-shadow: inset 1px 1px 2px rgba(0, 0, 40, .6), inset -1px -1px rgba(255, 255, 255, .12); }
.task:active > * { translate: 1px 1px; }
.task:focus-visible { outline-offset: -3px; }
.tray {
  flex: none; height: 100%; margin-left: auto; padding: 0 10px 0 12px; display: flex; align-items: center; gap: 8px;
  border-left: 1px solid var(--tray-edge); box-shadow: inset 1px 0 1px #18bbff;
  background: var(--tray);
}
.tray .px { width: 16px; height: 16px; }
.tray-lang { position: relative; height: 18px; min-width: 24px; padding: 0 4px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 3px; background: #1a5bd1; color: #fff; font-weight: 700; display: grid; place-items: center; }
/* the chip is drawn 18px tall, but the pointer finds a 26px key round it */
.tray-lang::before { content: ""; position: absolute; inset: -4px; }
.tray-lang:hover { background: #2c6fe6; }
.tray-lang:active { background: #134aa8; box-shadow: inset 1px 1px 2px rgba(0, 0, 40, .5); }
.tray-lang:focus-visible { outline-offset: -2px; }
.tray time { min-width: 52px; text-align: right; text-shadow: 1px 1px rgba(0, 0, 60, .35); }

/* the XP Start menu: a user header, a white programs column, a blue places column, a footer */
.start-menu {
  position: fixed; left: 0; bottom: var(--tb-h); z-index: 9500; width: min(390px, 100vw);
  display: flex; flex-direction: column; border-radius: 8px 8px 0 0;
  background: #fff; box-shadow: 0 0 0 1px #0f4fc6, 3px 3px 10px rgba(0, 0, 40, .45);
  animation: startup .16s var(--ease-out);
}
@keyframes startup { from { opacity: 0; transform: translateY(6px); } }
.sm-head {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px 9px; border-radius: 7px 7px 0 0; color: #fff;
  background: linear-gradient(180deg, #1868ce 0%, #0e60cb 12%, #1164cf 32%, #1b6cd3 47%, #2476dc 60%, #3482e3 77%, #428ee9 90%, #4791eb 100%);
  font: 700 14px/1.2 var(--ui); text-shadow: 1px 1px 1px rgba(0, 0, 40, .55);
}
.sm-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, transparent, var(--orange-rule) 30%, var(--orange-rule) 70%, transparent); }
.sm-head img { width: 42px; height: 42px; object-fit: cover; border: 2px solid #d8e4f8; border-radius: 3px; box-shadow: 1px 1px 2px rgba(0, 0, 40, .45); background: #fff; }
.sm-cols { display: flex; min-height: 0; }
.sm-list { list-style: none; margin: 0; padding: 6px 0; flex: 1 1 50%; min-width: 0; }
.sm-list.places { background: #d3e5fa; border-left: 1px solid #95bdee; color: #00136b; }
.sm-list > li { position: relative; }
.sm-item { width: 100%; min-height: 34px; padding: 4px 22px 4px 8px; display: flex; align-items: center; gap: 8px; background: none; border: 0; text-align: left; position: relative; color: inherit; text-decoration: none; }
.sm-list:not(.places) > li > .sm-item { font-weight: 700; }
.sm-item .px { width: 24px; height: 24px; flex: none; }
.sm-item:hover, .sm-item:active, .sm-item:focus-visible, .sm-list > li.open > .sm-item { background: var(--sel); color: #fff; outline: none; }
.sm-item .arrow { position: absolute; right: 8px; display: flex; }
.sm-sub {
  position: absolute; left: calc(100% - 2px); top: -3px; list-style: none; margin: 0; padding: 2px; min-width: 200px; z-index: 1;
  background: #fff; border: 1px solid var(--shade); box-shadow: var(--menu-shadow); color: #000; display: none;
}
/* openSub() turns one upward when going down would reach the taskbar */
.sm-sub.up { top: auto; bottom: -4px; }
.sm-list > li.open > .sm-sub { display: block; }
.sm-sub .sm-item { min-height: 26px; font-weight: 400; }
.sm-sub .sm-item .px { width: 16px; height: 16px; }
.sm-sep { height: 1px; margin: 4px 8px; background: linear-gradient(90deg, transparent, #d0d0bf 20%, #d0d0bf 80%, transparent); }
.sm-list.places .sm-sep { background: linear-gradient(90deg, transparent, #95bdee 20%, #95bdee 80%, transparent); }
.sm-foot {
  display: flex; justify-content: flex-end; padding: 5px 8px;
  background: linear-gradient(180deg, #4282d6 0%, #3b85e0 3%, #418ae3 17%, #3786e4 26%, #2e7ee1 39%, #2374df 49%, #196edb 62%, #1468d8 75%, #0e5dd2 83%, #1464cf 88%, #1b5bc4 100%);
}
.sm-foot .sm-list { flex: 0 0 auto; padding: 0; }
.sm-foot .sm-item { min-height: 30px; padding: 3px 10px 3px 6px; border-radius: 3px; color: #fff; font-weight: 400; }
/* the Start menu fills a phone's width, so its submenus keep inside the screen: the programs column's open over the
   places column, and the places column's (Network, Language) open to the left, over the programs */
@media (max-width: 720px) {
  .sm-sub { min-width: 0; width: max-content; max-width: calc(100vw - 100%); }
  .sm-list.places .sm-sub { left: auto; right: calc(100% - 2px); }
}
.sm-foot .sm-item:hover, .sm-foot .sm-item:active, .sm-foot .sm-item:focus-visible { background: rgba(255, 255, 255, .2); }
.start-menu.kb .sm-cols .sm-item:hover:not(:focus-visible):not(:active):not(li.open > .sm-item) { background: none; color: inherit; }
.start-menu.kb .sm-foot .sm-item:hover:not(:focus-visible):not(:active) { background: none; }

/* ============================================================
   ABOUT — a white document with XP task-pane panels
   ============================================================ */
.doc {
  min-height: 100%;
  padding: clamp(14px, 3.6cqi, 40px) clamp(14px, 3.6cqi, 40px) 24px;
  background: var(--paper);
  color: #141414;
  font: 14px/1.6 var(--read);
}
/* the profile card, read top-down like the head of a CV: portrait and name, three facts, the intro, then Download CV first */
.doc { container: doc / inline-size; }
.sp-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.sp-id { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; }
.ad-photo { margin: 0; aspect-ratio: 1; padding: 4px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px var(--paper-line), 0 10px 18px -12px rgba(0, 20, 70, .45); }
.ad-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.sp-name { min-width: 0; }
.sp-name h2 { margin: 0; font: 700 24px/1.2 var(--display); letter-spacing: -0.02em; color: var(--heading-ink); text-wrap: balance; }
.ad-role { margin: 8px 0 0; font-size: 16px; line-height: 1.4; }
/* availability wears the work log's current-role marker: the same green square, the same green ink */
.sp-status { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font: 700 12px/1.3 var(--ui); color: var(--ok-ink); }
.sp-status::before { content: ""; flex: none; width: 8px; height: 8px; background: #1fb85a; box-shadow: 0 0 0 1px #0b4d26; }
/* the facts: label beside value on a phone, three ruled columns once they fit */
.sp-facts { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; border-block: 1px solid var(--paper-rule); }
.sp-facts > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 8px 0; }
.sp-facts > div + div { border-top: 1px solid var(--paper-rule); }
.sp-facts dt { font: 700 12px/20px var(--ui); color: var(--muted); }
.sp-facts dd { margin: 0; font-size: 14px; line-height: 20px; }
.ad-lede { margin: 0; max-width: 62ch; font-size: 14px; line-height: 1.6; }
/* the card's two ways out as page keys: the CV is the main step (REC), the portfolio the next (Silver); a message is
   the order form's, at the foot of the page. No new class here starts with ad-: ad blockers hide names like ad-link
   (EasyList ##.ad-link) */
.ad-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
@container doc (min-width: 480px) {
  .sp-id { grid-template-columns: 128px minmax(0, 1fr); gap: 24px; }
  .sp-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 16px; }
  .sp-facts > div:first-child { padding-left: 0; }
  .sp-facts > div + div { border-top: 0; border-left: 1px solid var(--paper-rule); }
}
@container doc (min-width: 720px) {
  .sp-id { grid-template-columns: 144px minmax(0, 1fr); gap: 32px; }
  .sp-name h2 { font-size: 32px; }
}
/* a maximised window: the facts stand beside the name, as rows again, instead of spreading three columns across the page */
@container doc (min-width: 960px) {
  .sp-hero { grid-template-columns: minmax(0, 1fr) 360px; column-gap: 48px; }
  .sp-facts { grid-column: 2; grid-row: 1; align-self: center; grid-template-columns: minmax(0, 1fr); }
  .sp-facts > div { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 8px 0; }
  .sp-facts > div + div { border-left: 0; border-top: 1px solid var(--paper-rule); }
  .ad-lede, .ad-actions { grid-column: 1 / -1; }
}

/* panels */
.panel { --pad: clamp(20px, 3.6cqi, 32px); min-width: 0; display: flex; flex-direction: column; border-radius: 4px 4px 0 0; background: var(--paper-2); border: 1px solid var(--paper-line); }
.panel > h2 { margin: 0; padding: 9px var(--pad) 8px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, #fff 0%, #c6d3f7 100%); color: #215dc6; font: 700 14px/1.3 var(--display); }
.panel .pb { flex: 1; padding: var(--pad) var(--pad) calc(var(--pad) + 4px); }
.lead { margin: 0 0 20px; max-width: 60ch; font-size: 14px; line-height: 1.55; color: #2b2a26; }
.sp-sec { margin-top: 38px; }

/* work log */
.wlog { list-style: none; margin: 0; padding: 0; }
.wlog li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 32px; padding: 18px 0; border-top: 1px solid var(--paper-rule); }
.wlog li:first-child { border-top: 0; padding-top: 0; }
.wl-date { font: 700 12px/1.5 var(--ui); color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.wl-date b { color: var(--ok-ink); }
.wlog li.now .wl-date::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: #1fb85a; box-shadow: 0 0 0 1px #0b4d26; vertical-align: 0; }
.wl-main h3 { margin: 0 0 5px; padding-bottom: 5px; border-bottom: 1px solid var(--paper-rule); font: 700 14px/1.3 var(--display); }
.wl-main p { margin: 0; font-size: 14px; line-height: 1.55; }
.wl-main .wl-place { color: var(--muted); }
@container doc (min-width: 560px) { .wlog li { grid-template-columns: 160px minmax(0, 1fr); } }

/* personal projects and off the clock follow the work log */
.sp-row { display: grid; gap: 14px; margin-top: 14px; grid-template-columns: minmax(0, 1fr); }
/* off the clock across a wide document: the lead beside the pictures window, which stops at four 200px photos (874px) */
@container doc (1050px <= width < 1600px) {
  .oc { display: grid; grid-template-columns: minmax(30ch, 1fr) minmax(0, 874px); column-gap: 48px; align-items: start; }
  .oc > .lead { margin: 0; }
}
/* the disk rests on the panel: a short contact shadow, then the navy lift the page's other objects cast */
.floppy { position: relative; width: 118px; margin: 6px 0 0 4px; transform: rotate(-6deg); filter: drop-shadow(0 1px 1px rgba(4, 14, 32, .35)) drop-shadow(3px 7px 6px rgba(0, 20, 70, .28)); }
.floppy-art { display: block; width: 100%; height: auto; }
.floppy-art text { fill: #1a1a1a; }
.floppy-art .fl-t1 { font: 700 10.5px var(--display); letter-spacing: -0.02em; }
.floppy-art .fl-t2 { font: 400 10.5px var(--display); }
.floppy-art .fl-hd { font: 700 6px var(--display); letter-spacing: .02em; fill: #fff; }
/* the personal projects are a list of rows, like Tonight's features on Home: the cover beside its heading, text and
   link, rows split by a dashed rule. Nothing sits over a cover. Where the document is narrow the cover goes over its
   text, and the link rests at the foot of the text so it lines up with the cover's bottom edge */
.pj { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.pj li { min-width: 0; padding: 24px 0; }
.pj li:first-child { padding-top: 0; }
.pj li:last-child { padding-bottom: 0; }
.pj li + li { background: repeating-linear-gradient(90deg, var(--paper-line) 0 4px, transparent 4px 8px) top / 100% 1px no-repeat; }
.pj-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; color: var(--ink); text-decoration: none; }
.pj-card:focus-visible { outline: 3px solid var(--sel); outline: 3px solid color-mix(in srgb, var(--ph) 55%, #000); outline-offset: 6px; }
.pj-image { display: block; align-self: start; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--paper-line); border-radius: 4px; background: #182034; box-shadow: 0 5px 14px rgba(0, 20, 70, .12); }
.pj-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.pj-card:hover .pj-image img, .pj-card:focus-visible .pj-image img { transform: scale(1.04); }
.pj-info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pj-name { margin: 0; font: 700 22px/1.15 var(--display); }
.pj-card:hover .pj-name, .pj-card:focus-visible .pj-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pj-desc { display: block; font: 14px/1.5 var(--ui); color: var(--ink-2); }
.pj-visit { display: block; margin-top: auto; padding-top: 4px; font: 700 13px/1.3 var(--ui); color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
@container doc (min-width: 560px) { .pj-card { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 24px; align-items: stretch; } }
@media (prefers-reduced-motion: reduce) { .pj-image img { transition: none; } }
.cpl { container: cpl / inline-size; padding: 0 3px 3px; border-radius: 8px 8px 0 0; background: var(--face); box-shadow: var(--frame); font: 12px var(--ui); }
.cpl-t { display: flex; align-items: center; gap: 5px; height: 26px; margin: 0 -3px; padding: 0 8px; border-radius: 7px 7px 0 0; color: #fff; font-weight: 700; font-size: 12px; text-shadow: 1px 1px var(--cap-shadow); background: var(--cap); }
.cpl-t .px { width: 16px; height: 16px; }
/* the owner's 9:16 photos: two across, all four in a row once the well gives each about 108px */
.cpl-grid { list-style: none; margin: 0; padding: 16px; background: #fff; box-shadow: var(--well); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
@container cpl (min-width: 500px) { .cpl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hb { position: relative; min-width: 0; }
/* content-box, so the 9:16 falls on the photo inside the white mat and nothing is cropped */
.hb-pic { position: relative; display: block; box-sizing: content-box; width: calc(100% - 8px); aspect-ratio: 9 / 16; padding: 0; overflow: hidden; border: 4px solid #fff; border-radius: 4px;
  background: linear-gradient(180deg, #eef2fb, #dfe6f5); box-shadow: 0 0 0 1px var(--paper-line), 0 3px 6px -2px rgba(0, 20, 70, .3); }
.hb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the name tag and the infotip it opens into are XP's tooltip: cream behind a black hairline */
.hb-tag, .hb-tip { position: absolute; background: var(--tip); color: #000; border: 1px solid #000; box-shadow: var(--menu-shadow); }
.hb-tag { right: 6px; bottom: 6px; padding: 4px 8px; font: 700 12px/1 var(--ui); white-space: nowrap; transition: opacity .12s; }
.hb-tip { left: 10px; right: 10px; bottom: 10px; padding: 6px 8px 8px; pointer-events: none; visibility: hidden; opacity: 0; transform: scale(.6); transform-origin: 100% 100%;
  transition: opacity .16s, transform .2s var(--ease-out), visibility 0s .2s; }
.hb-tip h3 { margin: 0 0 2px; font: 700 12px/1.3 var(--ui); }
.hb-tip p { margin: 0; font: 12px/1.4 var(--ui); }
/* open while pointed at (mouse only, so a tap never leaves it stuck), while focused, or kept open by a click or tap */
@media (hover: hover) {
  .hb:hover .hb-tip { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .hb:hover .hb-tag { opacity: 0; }
}
.hb-pic:focus-visible + .hb-tip, .hb-pic[aria-expanded="true"] + .hb-tip { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.hb-pic:focus-visible .hb-tag, .hb-pic[aria-expanded="true"] .hb-tag { opacity: 0; }
.hb[data-hush] .hb-tip { visibility: hidden; opacity: 0; }
.hb[data-hush] .hb-tag { opacity: 1; }
.hb-pic:focus-visible { outline: 1px dotted #000; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #000); outline-offset: 2px; }
.hb-pic[aria-expanded="true"], .hb-pic:active { box-shadow: 0 0 0 2px var(--sel), 0 3px 6px -2px rgba(0, 20, 70, .3); }
@media (forced-colors: active) { .hb-pic[aria-expanded="true"] { outline: 2px solid Highlight; } }

/* let's build: the order form at the bottom of the document (spacing on a 4px scale) */
.order { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 48px; padding: clamp(28px, 5cqi, 44px); border: 1px solid var(--paper-line); border-radius: 4px; background: var(--paper-2); }
.bd-main { min-width: 0; }
.bd-main h2 { margin: 0; font: 700 24px/1.2 var(--display); letter-spacing: -0.02em; color: var(--heading-ink); text-wrap: balance; }
@container doc (min-width: 720px) { .bd-main h2 { font-size: 32px; } }
.bd-lead { margin: 12px 0 0; max-width: 48ch; font-size: 16px; line-height: 1.55; }
.bd-need { min-inline-size: 0; margin: 28px 0 0; padding: 12px 20px 16px; border: 1px solid #d0d0bf; border-radius: 4px; }
.bd-need legend { padding: 0 6px; margin-left: -6px; font: 700 12px/1.2 var(--ui); color: var(--group-ink); }
.bd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; }
.chk { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 14px; cursor: var(--cur-hand, pointer); }
.chk input { appearance: none; -webkit-appearance: none; flex: none; width: 13px; height: 13px; margin: 0; border: 1px solid var(--check-line); background: linear-gradient(135deg, #dcdcd7, #fff); cursor: var(--cur-hand, pointer); }
.chk input:hover { box-shadow: inset 0 0 0 2px #fbc761; }
.chk input:checked { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' shape-rendering='crispEdges'%3E%3Cpath d='M6 0h1v3H6zM5 1h1v3H5zM4 2h1v3H4zM3 3h1v3H3zM2 2h1v3H2zM1 1h1v3H1zM0 0h1v3H0z' fill='%2321a121' transform='translate(0 1) scale(1 .85)'/%3E%3C/svg%3E") 2px 2px / 7px 7px no-repeat, linear-gradient(135deg, #dcdcd7, #fff); }
.chk input:focus-visible + span { outline: 1px dotted #000; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #000); outline-offset: 2px; }
.bd-send { margin-top: 24px; }
.bd-side { min-width: 0; padding-top: 28px; border-top: 1px solid var(--paper-rule); }
.bd-side h3 { margin: 0 0 12px; font: 700 14px/1.3 var(--display); color: #1a1a1a; }
.bd-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bd-links a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: center; margin: 0 -8px; padding: 8px; border-radius: 3px; color: #141414; text-decoration: none; }
.bd-links a:hover, .bd-links a:active { background: var(--sel); color: #fff; }
.bd-links a:hover small, .bd-links a:active small { color: #d9e2ff; }
.bd-links a:focus-visible { outline: 1px dotted #000; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #000); outline-offset: -1px; }
.bd-links .px { width: 24px; height: 24px; }
.bd-links b { display: block; font: 700 14px/1.25 var(--ui); }
.bd-links small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
@container doc (min-width: 680px) {
  .order { grid-template-columns: minmax(0, 1fr) minmax(220px, 260px); gap: 0; }
  .bd-main { padding-right: clamp(28px, 4.4cqi, 44px); }
  .bd-side { padding: 4px 0 0 clamp(28px, 4.4cqi, 44px); border-top: 0; border-left: 1px solid var(--paper-rule); }
}

.ad-foot { margin: 18px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

/* ============================================================
   EXPLORER (portfolio list): XP's task pane beside the folder,
   the covers as thumbnails or a details list
   ============================================================ */
.xp-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 216px minmax(0, 1fr); background: #fff; box-shadow: var(--well); padding: 2px; }
.xp-pane { min-height: 0; overflow: auto; scrollbar-gutter: stable; display: flex; flex-direction: column; gap: 12px; padding: 12px; background: var(--taskpane); }
.xp-pane .panel { --pad: 12px; flex: none; }
.xp-pane .panel > h2 { padding: 8px 12px; }
.tp-links { margin: 0; padding: 8px 12px; list-style: none; display: grid; }
.tp-links button { width: 100%; min-height: 24px; padding: 0; border: 0; background: none; display: flex; align-items: center; gap: 8px; text-align: left; color: #215dc6; font: 12px/1.3 var(--ui); }
/* "Ask me about <case>" runs to one line or two by the case's name; it keeps room for two so the pane never shifts
   (on a phone or a coarse pointer the 44px task links already have it) */
@media (min-width: 721px) and (pointer: fine) { .tp-tasks [data-act="ask-case"] { min-height: 32px; } }
.tp-links button:hover { text-decoration: underline; }
.tp-links button:active { color: #0a3a93; text-decoration: underline; }
.tp-links button:focus-visible { outline-offset: 1px; }
.tp-links .px { width: 16px; height: 16px; }
.tp-links .px-questionCircle { --ic-fill: var(--ic-blue); }
.tp-details .pb { padding: 12px 12px 16px; font: 12px/1.5 var(--read); }
.tp-details p { margin: 0 0 8px; }
.tp-details .tp-name { margin: 0; font: 700 12px/1.3 var(--ui); }
.tp-details .tp-type, .tp-details .tp-kw { font: 12px/1.4 var(--ui); color: var(--muted); }
.tp-details .tp-kw { margin: 0; }
.tp-pic { display: block; margin: 0 0 8px; padding: 4px; background: #fff; border: 1px solid var(--paper-line); border-radius: 4px; }
/* Thumbnails already show the cover large, so the details keep its preview for the Details list only */
.xp-main:has(.thumbs) .tp-pic { display: none; }
/* a cover: the owner's exports carry 10px corners on white, so every cover clips a hair inside them at any size */
.cv { display: block; width: 100%; height: auto; aspect-ratio: 32 / 21; object-fit: cover; border-radius: 2% / 3%; }
.cover-ph { width: 100%; aspect-ratio: 32 / 21; }
.files { min-height: 0; overflow: auto; padding: 16px; outline: none; }
.files:has(> .details) { padding: 0; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 16px; }
.thumb { min-width: 0; padding: 0; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.thumb .frame { display: block; width: 100%; padding: 4px; background: #fff; border: 1px solid #c9c9c9; }
.thumb .name { max-width: 100%; padding: 1px 4px; line-height: 1.3; }
.thumb .kw { display: none; }
@media (hover: hover) { .thumb:hover .name { text-decoration: underline; color: var(--link); } }
/* pressed, the file is chosen at once, the way Explorer selects on the press */
.thumb:active .frame { border-color: var(--sel); box-shadow: 0 0 0 1px var(--sel); }
.thumb[aria-selected="true"] .frame { border-color: var(--sel); box-shadow: 0 0 0 1px var(--sel); }
.thumb[aria-selected="true"] .name { background: var(--sel); color: #fff; text-decoration: none; }
.files:focus-visible:not([data-quiet]) .thumb[aria-selected="true"] .name { outline: 1px dotted #fff; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #fff); outline-offset: -1px; }
.details { width: 100%; border-collapse: collapse; }
.details th { position: sticky; top: 0; z-index: 1; padding: 0; background: var(--col-head); box-shadow: var(--col-head-edge); font-weight: 400; text-align: left; }
.details th button { width: 100%; padding: 4px 8px; border: 0; background: none; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 8px; white-space: nowrap; }
.details th.num button { justify-content: flex-end; }
.details th button:hover { box-shadow: inset 0 -3px #f9b119; }
.details th button:active { background: #dedcd0; }
.details td { padding: 4px 8px; white-space: nowrap; }
.details td.num { width: 1%; text-align: right; font-variant-numeric: tabular-nums; }
.details td:last-child { width: 100%; }
.details td.nm .px { width: 16px; height: 16px; margin-right: 4px; vertical-align: -4px; }
.details tbody tr:not([aria-selected="true"]):hover td { color: var(--link); }
.details tbody tr:not([aria-selected="true"]):hover td.nm span { text-decoration: underline; }
.details tr[aria-selected="true"] td { background: var(--sel); color: #fff; }
.files:focus-visible:not([data-quiet]) tr[aria-selected="true"] td.nm span { outline: 1px dotted #fff; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #fff); outline-offset: 1px; }

/* ============================================================
   CASE STUDY PLAYER: a skinned window drawn after the Windows
   Media Player 7 skins. A caption plate, the chapter list and
   the LCD in a tray beside the screen, and a deck with the
   chapter timeline, the transport keys and a text-size wedge
   ============================================================ */
.skin {
  position: relative; isolation: isolate;
  flex: 1; min-height: 0;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); gap: 8px;
  padding: 0 8px 8px; border-radius: 18px 18px 26px 26px; container: skin / inline-size;
  background:
    radial-gradient(90% 55% at 18% 0%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 1px, rgba(0, 0, 0, .035) 1px 3px),
    linear-gradient(180deg, #eef0f3 0%, #cdcfd6 38%, #aeb0b9 78%, #9a9ca6 100%);
  box-shadow: inset 0 1px #fff, inset 0 -4px 6px rgba(40, 42, 52, .35), inset 2px 0 1px rgba(255, 255, 255, .8), inset -2px 0 2px rgba(60, 62, 72, .4), 0 12px 28px -10px rgba(0, 20, 70, .6);
  font: 12px/1.3 var(--ui); -webkit-font-smoothing: antialiased;
}
.win.max .skin { border-radius: 0; }
/* printed on the silver: dark ink with a white emboss, like the remote's labels on Home */
.pl-print, .pl-tool small, .pl-kgrp small, .pl-vol small, .pl-vrow b { font: 12px/1 var(--ui); color: #2b2c33; text-shadow: 0 1px rgba(255, 255, 255, .7); white-space: nowrap; }
.pl-well { display: flex; gap: 8px; padding: 4px; border-radius: 24px; background: #1b1d22; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7), 0 1px rgba(255, 255, 255, .8); }
/* the caption plate: the skin's own title strip, dragged like a title bar; its keys sit in a dark well */
.pl-cap { display: flex; align-items: center; gap: 8px; min-height: 40px; margin: 0 -8px; padding: 4px 8px; border-radius: 18px 18px 0 0; touch-action: none; user-select: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 70%);
  border-bottom: 1px solid #9a9ca6; box-shadow: 0 1px rgba(255, 255, 255, .8); }
.win.max .pl-cap { border-radius: 0; }
.pl-badge { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #1b1d22; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6), 0 1px rgba(255, 255, 255, .8); }
.pl-badge .px { width: 16px; height: 16px; --ic-fill: var(--lcd); }
.pl-cap-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 14px/1.2 var(--ui); color: #1d1e26; text-shadow: 0 1px rgba(255, 255, 255, .7); }
.win:not(.active) .pl-cap-t { color: #50525e; }
.pl-caps { flex: none; display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: #1b1d22; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6), 0 1px rgba(255, 255, 255, .8); }
.pl-cb { width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 1px solid #55575f; display: grid; place-items: center; color: #1d1e26; font: 700 14px/1 var(--ui);
  background: radial-gradient(circle at 36% 30%, #ffffff 0, #d6d7dd 42%, #9a9ca6 100%); box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .25); }
.pl-cb svg { fill: currentColor; }
@media (hover: hover) { .pl-cb:hover, .orb:hover, .pl-key:hover { background: radial-gradient(circle at 36% 30%, #ffffff 0, #e3e4ff 42%, #9a9ccf 100%); } }
.pl-cb:active, .orb:active, .pl-key:active { box-shadow: inset 0 2px 4px rgba(0, 0, 0, .4); }
.pl-caps :focus-visible, .pl-well :focus-visible { outline: 1px dotted #fff; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #fff); outline-offset: 2px; }
.orb { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid #62646e; display: grid; place-items: center;
  background: radial-gradient(circle at 36% 30%, #ffffff 0, #d6d7dd 42%, #9a9ca6 100%);
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .25), 0 1px 0 rgba(255, 255, 255, .8); }
.orb svg { width: 16px; height: 16px; }
/* the screen is what the client came for, so the tray and the deck around it stay slim (owner's request, 2026-09-28) */
.skin-body { min-height: 0; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px; }
/* the side tray: the programmes as the playlist (the case on the screen lit, with the play mark), the LCD and the
   tools. The case picker over them (an LCD field, like WMP's playlist picker) is the phone's, whose tray lists nothing */
.pl-side { min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(40, 42, 52, .08), rgba(255, 255, 255, .2)); box-shadow: inset 0 1px 3px rgba(40, 42, 52, .35), 0 1px rgba(255, 255, 255, .8); }
.pl-print { margin: 4px 4px 0; font-weight: 700; }
.pl-select { position: relative; flex: none; height: 32px; display: none; align-items: center; border-radius: 6px; background: #070707; box-shadow: inset 0 0 0 1px #3e4048, inset 0 1px 3px rgba(0, 0, 0, .8), 0 1px 0 #fff; }
.pl-select select { flex: 1; min-width: 0; height: 100%; padding: 0 24px 0 8px; border: 0; background: transparent; color: var(--lcd); font: 700 12px var(--ui); text-shadow: 0 0 6px rgba(99, 240, 107, .45); -webkit-appearance: none; appearance: none; outline: none; }
.pl-select option { color: #000; background: #fff; text-shadow: none; }
.pl-select .dd { position: absolute; right: 8px; top: 50%; margin-top: -2px; display: flex; color: var(--lcd); pointer-events: none; }
.pl-select:has(select:focus-visible) { outline: 1px dotted #000; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #000); outline-offset: 2px; }
.skin-nav { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px; overflow: auto; }
/* the programmes, as Media Player's playlist with the album playing shown big: each case a row with a small cover and
   its title, the one on the screen opened up into its cover over its number (with the LCD's play mark), title and
   tag (owner's pick, 2026-10-15) */
.skin-nav button {
  flex: 0 0 auto; min-height: 36px; padding: 4px; display: flex; align-items: center; gap: 8px; text-align: left;
  border: 1px solid #7f818b; border-radius: 3px 12px 12px 3px;
  background: linear-gradient(180deg, #f4f4f7, #c9cad1 62%, #b5b6be);
  box-shadow: inset 0 1px #fff, inset 0 -1px rgba(0, 0, 0, .18);
  font: 700 12px/16px var(--ui); color: #1d1e26;
}
.pl-art { flex: none; display: block; width: 36px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 2px; background: #1b1d22; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.pl-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.skin-nav .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) { .skin-nav button:hover { background: linear-gradient(180deg, #ffffff, #d9daf4 62%, #bfc1e4); } }
.skin-nav button:not([aria-current="true"]):active { background: linear-gradient(180deg, #bfc1e4, #d9daf4 38%, #ffffff); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .25); }
/* the case on the screen: its cover across the item, then its title and tag, lit indigo; one radius all round, the
   cover's set inside it by the padding so the two curves run parallel */
.skin-nav button.on { flex-direction: column; align-items: stretch; gap: 6px; padding: 4px 4px 8px; border-radius: 8px;
  background: linear-gradient(180deg, #5153b8, #2f3190); color: #fff; border-color: #22246b; box-shadow: inset 0 1px rgba(255, 255, 255, .45); }
.skin-nav button.on .pl-art { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 4px; animation: pl-art-in .4s var(--ease-out) both; }
@keyframes pl-art-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .skin-nav button.on .pl-art { animation: none; } }
/* now playing: the LCD's play mark on a dark chip in the cover's corner */
.pl-live { position: absolute; left: 6px; bottom: 6px; width: 20px; height: 20px; border-radius: 50%; background: rgba(4, 22, 63, .78);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.pl-live::after { content: ""; position: absolute; left: 8px; top: 6px; width: 6px; height: 8px; background: var(--lcd); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.pl-pmeta { display: block; padding: 0 4px; }
.pl-pmeta .nm { display: block; }
.pl-pmeta small { display: block; font: 400 12px/16px var(--ui); color: #d8d9ff; }
.skin-nav button.on:focus-visible { outline-color: #fff; }
.pl-tools { flex: none; display: flex; gap: 12px; padding: 8px 0 0; border-top: 1px solid rgba(40, 42, 52, .2); box-shadow: inset 0 1px rgba(255, 255, 255, .6); }
.pl-tool { display: grid; justify-items: center; gap: 4px; }
.pl-tool .orb { width: 32px; height: 32px; }
.screen {
  position: relative; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: #000;
  border-radius: 34px 16px 16px 16px; border: 7px solid #2c2e36;
  box-shadow: 0 0 0 1px #0c0d10, 0 0 0 3px #8e909a, 0 0 0 4px #f4f5f7, 0 10px 18px rgba(20, 22, 30, .35), inset 0 0 0 1px #000;
}
/* a programme page plays behind convex glass, as an old TV's tube (owner's idea, 2026-10-15): what comes in at its
   foot stretches a little wide (#crtBarrel), and its edges fall into shade, the foot more, under a faint sheen at
   the top. Without motion the picture stays true */
@media (prefers-reduced-motion: no-preference) { .crt-barrel-on .screen-view:has(> .pg) { filter: url(#crtBarrel); } }
.screen:has(> .screen-view .pg)::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: 27px 9px 9px 9px;
  background: radial-gradient(140% 26% at 50% 104%, rgba(0, 0, 0, .55), transparent 70%),
    radial-gradient(140% 16% at 50% -3%, rgba(0, 0, 0, .4), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 8%);
}
/* keyboard focus on the page lights the screen's ring indigo; a dotted line would vanish into the dark hero */
.screen:has(> .screen-view:focus-visible:not([data-quiet])) { box-shadow: 0 0 0 1px #0c0d10, 0 0 0 4px #5153b8, 0 0 0 5px #f4f5f7, 0 10px 18px rgba(20, 22, 30, .35), inset 0 0 0 1px #000; }
.screen-view:focus-visible { outline: none; }
/* the screen plays the case's page as the owner laid it out in Figma: a dark hero, then its sections on cream and white */
.screen-view {
  /* the reader's text size (S, M or L, set by the player): body, lede and quote, all on the type scale */
  --pl-size: 16px; --pl-lede: 18px; --pl-quote: 24px;
  /* each case's page takes its own palette from its Figma: a tint behind its first sections and its hero's ground
     (KROOL's cream and ember by default) */
  --tint: #fffaf4; --ground: linear-gradient(180deg, #130e0a, #351b08 56%, #6a2f06);
  position: relative; flex: 1; min-height: 0; overflow: auto; container-type: inline-size;
  background: #fff; color: var(--muted); font: var(--pl-size)/1.6 var(--read);
}
/* the scrollbar runs in the bezel's own dark: a silver thumb in a rail beside the page */
.screen-view[data-case="sensorstack"] { --tint: #f4f3ff; --ground: linear-gradient(180deg, #484fd0, #272979 56%, #1c1746); }
.screen-view[data-case="findmentor"] { --tint: #edf6f6; --ground: linear-gradient(180deg, #0a1a19, #05332e 56%, #00463c); }
.screen-view[data-case="serenity-spa"] { --tint: #f5f7f4; --ground: linear-gradient(180deg, #0e140f, #253828 56%, #34503a); }
.screen-view::-webkit-scrollbar-track { background-image: none; background: #2c2e36; }
.screen-view::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #9a9ca6, #d4d5db 50%, #9a9ca6); box-shadow: none; border-radius: 8px; border: 3px solid #2c2e36; }
.screen-view::-webkit-scrollbar-button { display: none; }
/* a chapter is one section of the page, on the owner's Figma lines (the KROOL page at the player's 1029): 60px
   gutters, the tags' column (244.8 of the 909 between them, with a step in at a third of it) and the content column;
   under 760px of screen everything stacks in one column. --feat is the space above a feature of the showcase */
.cs-ch {
  --g: 20px; --sec: 64px; --blk: 40px; --lead: 24px; --feat: var(--sec);
  display: grid; grid-template-columns: [full-start] var(--g) [tag-start wide-start main-start] minmax(0, 1fr) [main-end] var(--g) [full-end];
  row-gap: var(--blk); align-content: start; padding: var(--sec) 0 40px; background: #fff;
}
.cs-ch > * { grid-column: main-start / main-end; min-width: 0; }
.cs-ch.tint { background: var(--tint); }
/* a window at the foot of a section casts its shadow inside it, so the section keeps 40px under its last block */
.cs-ch.hero { padding: 0; }
.cs-ch:last-child { padding-bottom: var(--sec); }
@container (min-width: 640px) { .cs-ch { --g: 32px; --sec: 96px; --blk: 64px; --lead: 32px; } }
@container (min-width: 760px) {
  .cs-ch { --g: 60px; --sec: 180px; --feat: 112px; grid-template-columns: [full-start] var(--g) [tag-start] minmax(0, 408fr) [wide-start] minmax(0, 816fr) [main-start] minmax(0, 3321fr) [main-end] var(--g) [full-end]; }
  /* the first section opens 96px under the hero; the charts' section keeps 80px under its collage */
  .cs-ch.hero + .cs-ch { padding-top: 96px; }
  .cs-ch:has(> .cs-trio:last-child) { padding-bottom: 80px; }
}
/* the hero: the case's name, logline and tags on the dark-to-ember ground of the owner's hero, centred over its big
   screen on a CRT; a case without a page shows its cover behind the words instead */
.cs-hero {
  grid-column: full-start / full-end; position: relative; isolation: isolate;
  display: grid; align-content: start; justify-items: center; gap: 40px; padding: 48px var(--g) 40px; color: #fff; text-align: center;
  background: var(--ground);
}
.cs-hero.on-cover { min-height: 440px; align-content: end; justify-items: start; padding-top: 96px; text-align: left; }
.cs-hero-pic { position: absolute; inset: 0; z-index: -2; }
.cs-hero-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; border: 0; border-radius: 0; box-shadow: none; }
/* on a cover a shade under the words keeps them readable */
.cs-hero.on-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, rgba(12, 8, 5, .85), rgba(12, 8, 5, 0) 64%); }
.cs-hero-text { max-width: 560px; display: grid; gap: 16px; }
.cs-hero h2 { margin: 0; font: 700 40px/1.1 var(--display); letter-spacing: -0.03em; }
.cs-hero p { margin: 0; font-size: var(--pl-size); line-height: 1.5; color: rgba(255, 255, 255, .8); }
.cs-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.on-cover .cs-chips { justify-content: flex-start; }
.cs-chips li { padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 16px; background: rgba(255, 255, 255, .14); color: #fff; font: 12px/16px var(--read); letter-spacing: .02em; }
.cs-hero-crt { margin: 0; width: min(100%, 640px); }
@container (min-width: 640px) {
  .cs-hero { padding: 64px 48px 48px; }
  .cs-hero.on-cover { padding-top: 96px; }
  .cs-hero h2 { font-size: 44px; }
}
@container (min-width: 760px) { .cs-hero.on-cover { min-height: 0; aspect-ratio: 1440 / 929; } }
@container (min-width: 1100px) { .cs-hero { gap: 48px; padding: 80px 60px 64px; } .cs-hero.on-cover { padding-top: 128px; } .cs-hero-crt { width: min(100%, 720px); } }
/* a screen the owner has not supplied yet: Placeholder Grey, tagged with the file it waits for and the size to export */
.cs-pic { position: relative; margin: 0; min-width: 0; }
.cs-img { display: block; width: 100%; height: auto; }
.cs-ph { position: relative; background: linear-gradient(180deg, #e8e8e8, #d6d6d6); }
.cs-ph-tag { position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); display: grid; padding: 4px 8px; border-radius: 3px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); font: 12px/16px var(--ui); color: #000; }
.cs-ph-tag b { overflow-wrap: anywhere; }
.cs-ph-tag small { font-size: 12px; color: #5b5f6b; }
/* on a local preview, the owner's export in a slot (app.js, DRAFTS): its name tag is XP's tooltip, shown on hover,
   and it stays up with the warning icon when the picture's ratio is not the slot's */
.cs-draft-tag { position: absolute; left: 8px; top: 8px; z-index: 3; max-width: calc(100% - 16px); display: grid; padding: 4px 8px; background: var(--tip); color: #000; border: 1px solid #000; box-shadow: var(--menu-shadow); font: 12px/16px var(--ui); text-align: left; pointer-events: none; opacity: 0; }
.cs-draft-tag b { overflow-wrap: anywhere; }
.cs-draft-tag small { font-size: 12px; }
.cs-win-body:hover > .cs-draft-tag, .crt-glass:hover > .cs-draft-tag, .cs-pic.pic-bare:hover > .cs-draft-tag, .cs-draft-tag.off { opacity: 1; }
.cs-draft-tag .dt-off { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.cs-draft-tag .dt-off svg { flex: none; }
.cs-pic.apart { margin-top: calc(var(--sec) - var(--blk)); }
/* the design focus's device shot, bare: edge to edge across its section and flush with its foot, a lead under the
   quote */
.cs-ch > .cs-pic.pic-bare { grid-column: full-start / full-end; }
.cs-quote + .cs-pic.pic-bare { margin-top: calc(var(--lead) - var(--blk)); }
.cs-ch:has(> .cs-pic.pic-bare:last-child) { padding-bottom: 0; }
/* an XP window of the case's app around its screen: Home's mini window, its caption buttons drawn faded, since it is
   a picture of a window and not one to close */
.cs-win { display: flex; flex-direction: column; padding: 0 3px 3px; border-radius: 8px 8px 0 0; background: var(--face); box-shadow: var(--frame), 0 20px 30px -10px rgba(0, 20, 70, .08); }
.cs-win-body { position: relative; display: block; background: #fff; }
/* a CRT monitor of the XP years around a big screen, drawn front on: a case of one beige plastic with a fine matte
   grain, lit along its top and left and shaded along its right and foot; the tube sunk in a moulded recess whose walls
   slope in to the glass; a chin with a pierced speaker grille, a blank badge, four menu keys under their printed
   symbols, the power lamp behind its lens and the power key; then its stand */
.cs-crt { display: grid; justify-items: center; }
.crt-case {
  width: 100%; padding: 4% 4% 0; border-radius: 16px;
  background: var(--crt-grain), linear-gradient(180deg, #f4f1e7, var(--face) 30%, #ddd7c4);
  background-blend-mode: soft-light, normal;
  box-shadow: inset 0 0 0 1px var(--shade), inset 0 2px 1px #fff, inset 4px 0 4px -2px rgba(255, 255, 255, .8), inset -4px 0 6px -2px rgba(20, 16, 8, .18), inset 0 -4px 6px rgba(20, 16, 8, .2), 0 26px 40px -24px rgba(0, 20, 70, .6);
}
/* the recess the tube sits in: the face steps in under a shaded upper lip and a lit lower one, and its four walls slope
   in to the glass, mitred where they meet. Lit from the top left, the top wall faces away and is the darkest, the
   left one is in shade, the right one catches the light and the foot faces it, the lightest; each wall darkens a
   little toward the top. The angles are the corners of the recess as seen from its middle (it is 0.77 as tall as it
   is wide), and a quarter degree either side of each joint keeps the mitre's line smooth */
.crt-bezel {
  display: block; padding: 3.5%; border-radius: 14px;
  background: var(--crt-grain), linear-gradient(180deg, rgba(20, 16, 8, .05), rgba(20, 16, 8, 0) 45%, rgba(255, 255, 255, .25)),
    conic-gradient(from -52.5deg, #cbc4ae 0 104.75deg, #e7e2d2 105.25deg 179.75deg, #f6f3ea 180.25deg 284.75deg, #d8d2be 285.25deg 359.75deg, #cbc4ae);
  background-blend-mode: soft-light, normal, normal;
  box-shadow: inset 0 3px 5px rgba(20, 16, 8, .3), inset 0 -1px #fff, 0 -1px rgba(20, 16, 8, .08), 0 1px rgba(255, 255, 255, .7);
}
/* the tube: dark glass, grey rather than black, showing round the picture; the walls' joint is a dark line round it
   and they fall into its shadow */
.crt-glass { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: radial-gradient(90% 80% at 50% 40%, #262b2c, #0c0e0f); box-shadow: 0 0 0 1px rgba(20, 16, 8, .5), 0 0 12px 2px rgba(20, 16, 8, .3); }
.crt-glass > .cs-img { width: 100%; height: 100%; object-fit: cover; }
/* the tube over whatever it shows: scanlines and the grille's fine columns; then the glass: its bare rim, dark round
   the picture, which softens into it; the curve, darkening the picture toward its corners; the bulge catching the
   light high on the left, a faint band of reflected room, and the rim's top edge lit */
.crt-glass::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .08) 0 1px, rgba(0, 0, 0, 0) 1px 3px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, rgba(0, 0, 0, .03) 1px 3px); }
.crt-glass::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 22% 6%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 44%), linear-gradient(115deg, rgba(255, 255, 255, 0) 56%, rgba(255, 255, 255, .06) 61%, rgba(255, 255, 255, 0) 68%),
    radial-gradient(75% 75% at 50% 50%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .3));
  box-shadow: inset 0 1px rgba(255, 255, 255, .22), inset 0 0 0 5px #141718, inset 0 0 8px 6px rgba(8, 10, 11, .7), inset 0 0 40px rgba(0, 0, 0, .3);
}
/* no screen yet: a dark tube and the monitor's own navy On-Screen Display box, naming the file and the size to export */
.crt-osd { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(80% 70% at 50% 45%, #141414, #000); }
.osd-box { max-width: calc(100% - 32px); display: grid; gap: 4px; justify-items: center; padding: 12px 20px; border: 1px solid #7a96df; background: #00138c; box-shadow: 0 0 16px rgba(9, 151, 255, .35); color: #fff; font: 12px/16px var(--ui); text-align: center; }
.osd-box b { font-size: 14px; }
.osd-box span { overflow-wrap: anywhere; }
.osd-box small { font-size: 12px; color: #d3e5fa; }
/* the chin: the speaker grille at the left, the blank badge on the monitor's middle line (under the stand's neck,
   whatever stands beside it), and at the right one row on the chin's middle line: the menu keys in their slot, then
   the power lamp, half as far from the power key as from the keys. The key's collar is drawn outside it, so the key
   keeps 4px clear either side for it, and the collar ends as far in from the edge as the grille starts */
.crt-chin { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 4%; }
/* a speaker grille of pierced holes, each dark with the light on its lower rim, and a blank badge: a plate moulded
   proud of the plastic */
.crt-grille { flex: none; width: 16%; height: 16px; border-radius: 3px; background: radial-gradient(circle at 50% 42%, rgba(36, 29, 14, .6) 0 1px, rgba(36, 29, 14, 0) 1.4px) 0 0 / 5px 5px, radial-gradient(circle at 50% 66%, rgba(255, 255, 255, .9) 0 1px, rgba(255, 255, 255, 0) 1.4px) 0 0 / 5px 5px; box-shadow: inset 0 1px 1px rgba(20, 16, 8, .15); }
.crt-badge { position: absolute; left: 50%; top: 50%; width: 12%; height: 8px; border-radius: 4px; transform: translate(-50%, -50%); background: linear-gradient(180deg, #fbfaf6, #e1dcc9); box-shadow: inset 0 1px #fff, 0 0 0 1px rgba(20, 16, 8, .1), 0 1px 2px rgba(20, 16, 8, .3); }
/* the menu keys stand in a slot in the plastic, each with its symbol printed in the middle of its face: menu, left,
   right and select */
.crt-keys { flex: none; display: flex; gap: 4px; margin-left: auto; padding: 2px; border-radius: 4px; background: rgba(20, 16, 8, .1); box-shadow: inset 0 1px 1px rgba(20, 16, 8, .25), 0 1px rgba(255, 255, 255, .8); }
.crt-keys i { position: relative; width: 16px; height: 10px; border-radius: 3px; background: linear-gradient(180deg, #fff, #d8d2bd); box-shadow: 0 1px rgba(20, 16, 8, .3), inset 0 0 0 1px rgba(20, 16, 8, .15); }
.crt-keys i::after { content: ""; position: absolute; inset: 0; background: rgba(70, 60, 40, .6); -webkit-mask: var(--sym) 50% 50% / 7px 5px no-repeat; mask: var(--sym) 50% 50% / 7px 5px no-repeat; }
.crt-keys i:nth-child(1) { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6'%3E%3Cpath d='M0 .6h8M0 3h8M0 5.4h8' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E"); }
.crt-keys i:nth-child(2) { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6'%3E%3Cpath d='M6 0v6L1.5 3z'/%3E%3C/svg%3E"); }
.crt-keys i:nth-child(3) { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6'%3E%3Cpath d='M2 0v6l4.5-3z'/%3E%3C/svg%3E"); }
.crt-keys i:nth-child(4) { --sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 6'%3E%3Crect x='1.6' y='.6' width='4.8' height='4.8' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E"); }
/* the power lamp: a green LED under a domed lens, set in a hole in the plastic, glowing */
.crt-lamp { flex: none; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #eaffdf 0 14%, #74f075 34%, #2fbf3b 70%, #1d8a29); box-shadow: 0 0 0 1px rgba(20, 16, 8, .3), 0 0 6px 1px rgba(76, 218, 80, .6); }
/* the power key: a round key in a 4px collar, the power symbol printed on its face */
.crt-power {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23786d55' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M6 2v3.6M3.4 3.9a3.6 3.6 0 1 0 5.2 0'/%3E%3C/svg%3E") 50% 50% / 60% no-repeat;
  flex: none; width: 16px; height: 16px; margin: 0 4px; border-radius: 50%;
  background: var(--glyph), radial-gradient(circle at 40% 35%, #fff, #d8d2bd 70%);
  box-shadow: 0 1px 1px rgba(20, 16, 8, .35), inset 0 0 0 1px rgba(20, 16, 8, .2), 0 0 0 3px #e2ddcb, 0 0 0 4px rgba(20, 16, 8, .14);
}
/* the stand (drawn in app.js) scales with the monitor and casts one soft shadow on the ground */
.crt-stand { display: block; width: 50%; height: auto; overflow: visible; filter: drop-shadow(0 10px 8px rgba(0, 20, 70, .35)); }
.cs-pic.pic-crt { width: min(100%, 640px); }
/* a small monitor keeps its chin plain: grille and badge go under 640px of screen */
@container (max-width: 639px) { .crt-grille, .crt-badge { display: none; } }
/* a section's tag, a black badge; its heading and text in the content column */
.cs-intro, .cs-quote, .cs-feat { grid-column: full-start / full-end; display: grid; grid-template-columns: subgrid; row-gap: var(--lead); }
.cs-intro > *, .cs-quote > *, .cs-feat > * { grid-column: main-start / main-end; min-width: 0; }
.cs-tag { justify-self: start; align-self: start; margin: 0; padding: 4px 8px; background: #141414; color: #fff; font: 700 12px/16px var(--ui); }
.cs-title { margin: 0; max-width: 13em; font: 700 28px/1.1 var(--display); letter-spacing: -0.025em; color: #141414; text-wrap: balance; }
.cs-lede { display: grid; gap: 16px; max-width: 700px; }
.cs-lede p { margin: 0; font-size: var(--pl-size); line-height: 1.5; }
/* the solution's tag and text share a row from 760px up; on a narrow screen the tag heads the section like the others */
.cs-under { display: contents; }
.cs-under > * { grid-column: main-start / main-end; min-width: 0; }
.cs-under > .cs-tag { order: -1; }
/* the challenge as a quote, its opening mark hung in the margin once there is room */
.cs-quote blockquote { margin: 0; max-width: 640px; }
.cs-quote blockquote p { position: relative; margin: 0; font-size: var(--pl-lede); line-height: 1.45; color: #141414; }
.cs-quote blockquote p::before { content: "\201C"; }
.cs-quote blockquote p::after { content: "\201D"; }
/* the showcase: each screen of the app as a feature, its bulleted label, heading and line of text over its window */
.cs-feat { row-gap: 12px; margin-top: calc(var(--feat) - var(--blk)); }
.cs-feat > .cs-pic { margin-top: calc(var(--lead) - 12px); }
.cs-flabel { display: list-item; list-style: disc outside; margin: 0 0 0 20px; font: 700 14px/20px var(--ui); color: #1d2939; }
/* where the page stacks (a phone), the label heads its feature as a badge like a section's tag, filled in the feature's
   ink (owner's request, 2026-09-28) */
@container (max-width: 759px) {
  .cs-flabel { display: block; justify-self: start; margin: 0; padding: 4px 8px; background: #1d2939; color: #fff; font: 700 12px/16px var(--ui); }
}
.cs-ftitle { margin: 0; max-width: 500px; font: 700 20px/1.2 var(--display); letter-spacing: -0.01em; color: #1d2939; text-wrap: balance; }
.cs-body { margin: 0; max-width: 500px; font-size: var(--pl-size); line-height: 1.5; }
/* the inbox's teammate card opens over its window, the way an XP dialog does (under it on a narrow screen) */
.cs-pop { display: block; width: min(100%, 320px); margin: 16px 0 0 auto; }
.cs-trio { display: grid; gap: var(--blk); }
/* where the page stacks, the three windows stand at one width (the column's, up to 520px) so a small card is not
   left beside two wide ones; their own max-width, set from each export's size, gives way. The exports are 2x, so the
   smallest card still has pixels to spare */
@container (max-width: 759px) {
  .cs-trio { justify-items: center; }
  .cs-trio .cs-win { width: min(100%, 520px); max-width: none !important; }
}
/* a row of screens side by side: a flow of phone screens, or a pair of dialogs; phones pair up on a narrow screen */
.cs-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 24px; }
.cs-row > .cs-pic { flex: 1 1 0; }
.cs-row.phones > .cs-pic { max-width: 286px; }
.cs-row .cs-win { margin: 0 auto; }
.cs-feat > .cs-row { margin-top: calc(var(--lead) - 12px); }
@container (max-width: 639px) {
  .cs-row { gap: 12px; }
  .cs-row > .cs-pic { flex: 1 1 100%; }
}
/* below the wide layout a row of phone screens slides sideways instead of stacking down the page: it runs edge to
   edge, each phone snaps to the gutter and the next one peeks in. The bottom padding keeps the windows' shadow */
@container (max-width: 759px) {
  .cs-row.phones { flex-wrap: nowrap; justify-content: flex-start; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--g); margin-inline: calc(-1 * var(--g)); margin-bottom: -24px; padding: 0 var(--g) 24px; scrollbar-width: thin; }
  .cs-row.phones > .cs-pic { flex: 0 0 min(72%, 240px); max-width: none; scroll-snap-align: start; }
}
@container (min-width: 640px) {
  .cs-title { font-size: 32px; }
  .cs-ftitle { font-size: 24px; }
  .cs-lede p { font-size: var(--pl-lede); }
  .cs-quote blockquote p { font-size: var(--pl-quote); }
}
@container (min-width: 760px) {
  .cs-intro > .cs-tag, .cs-quote .cs-tag, .cs-feat .cs-flabel { grid-column: tag-start / main-start; grid-row: 1; margin-top: 8px; }
  .cs-intro > .cs-title, .cs-quote > blockquote, .cs-feat > .cs-ftitle { grid-row: 1; }
  .cs-intro > .cs-lede { grid-row: 2; }
  /* a section's heading runs the content column at the Figma's 44px */
  .cs-title { max-width: none; font-size: 44px; line-height: 52px; letter-spacing: -0.03em; text-wrap: pretty; }
  /* a heading with no text under it (the showcase's) sits 44px over its CRT */
  .cs-intro:not(:has(.cs-lede)) + .cs-pic { margin-top: calc(44px - var(--blk)); }
  /* the solution's tag sits under its heading and its text is stepped in beside it: 19.5% in, or past a wider tag
     (a longer label, the Indonesian one), so the text never runs over the tag */
  .cs-under { grid-row: 2; display: grid; grid-template-columns: minmax(max-content, calc(19.5% - 32px)) minmax(0, 480px); column-gap: 32px; align-items: start; }
  .cs-under > * { grid-column: auto; }
  .cs-under > .cs-tag { margin-top: 4px; }
  .cs-quote blockquote p::before { position: absolute; right: 100%; padding-right: 8px; }
  .cs-pic.has-pop { margin-bottom: 48px; }
  .cs-pop { position: absolute; right: 4%; bottom: -48px; width: 41%; margin: 0; }
  /* over a phone the dialog opens across the phone's right edge */
  .cs-pic.phone .cs-pop { right: auto; left: 238px; }
  .cs-ch > .cs-row, .cs-feat > .cs-row { grid-column: wide-start / main-end; }
  /* the three charts overlap down the page as in the Figma: the widest up top, a small one lower at the right over
     its corner, one below at the left over the small one's. Places are shares of the 909px they span at 1029, and
     each laps the one above by a share too, so a case with taller charts still stacks without spilling; 1064px is
     where the windows reach their exports at 1x */
  .cs-trio { grid-column: tag-start / main-end; justify-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; max-width: 1064px; }
  .cs-trio .t1 { width: 51.52%; margin: 2.54% 0 0 15.56%; }
  .cs-trio .t2 { width: 33.88%; margin: -6.64% 0 0 57.54%; }
  .cs-trio .t3 { width: 52.3%; margin: -5.95% 0 2.54% 8.69%; }
}
@container (min-width: 1100px) {
  .cs-ftitle { font-size: 28px; }
}
/* a case whose write-up is not published yet says so in a dashed note, with a way to ask about it */
.pl-pending { max-width: 64ch; padding: 16px 20px 20px; border: 1px dashed var(--shade); border-radius: 4px; background: var(--tint); }
.pl-pending p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: #3d3b34; }
.pl-ask { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 16px; border: 1px solid #141414; border-radius: 4px; background: #fff; color: #141414; font: 700 14px/1.2 var(--read); }
.pl-ask:hover { background: var(--face); }
.pl-ask:focus-visible { outline: 1px dotted #000; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #000); outline-offset: 2px; }

/* ============================================================
   PROGRAMME PAGE: a case told pictures first (cases.js screens, app.js progSections; the owner's choice, 2026-10-15)
   on the broadcast stage of Home's Tonight's features, with no panels of facts: the words go on the pictures, as
   the owner's references set them (a Y2K picture viewer, the NASA standards manual). The cover carries the about as a
   subtitle, the facts read as one line of a file's metadata, each screen stands under its file name on a rule, and a
   few screens carry a green detection box like Home's hero TV. The stage's blues and tag pills are Home's own
   (home.css); its deep blue carries the channel band's dither tile, unbroken behind the page
   ============================================================ */
.pg {
  --bc-deep: #04163f; --bc-mid: #0d3a8f; --bc-hi: #1d56b8; --bc-soft: #d6e2f8;
  --glow-face: linear-gradient(180deg, #9af59b, #2fb233); --glow-edge: #c8fcc9; --glow-halo: rgba(76, 218, 80, .55);
  --mono: "Noto Sans Mono", ui-monospace, monospace;
  --pg-g: 20px; --pg-w: 1100px;
  position: relative; isolation: isolate; min-height: 100%; color: #fff;
}
/* the stage's deep blue and its dither tile sit behind the page, on the screen itself, out of reach of the glass
   (#crtBarrel): the page runs on a clear ground, so where the glass stretches what passes, the dots behind stay
   the same dots, one a screen pixel, and the blue reads the same at the foot as above it */
.screen:has(> .screen-view > .pg) { background: #04163f; }
.screen:has(> .screen-view > .pg)::before { content: ""; position: absolute; inset: 0; pointer-events: none; image-rendering: pixelated;
  background: url("../asset/Home/band-deep-dither-16.png") 0 0 / var(--bc-tile, 16px) var(--bc-tile, 16px); }
.screen-view:has(> .pg) { z-index: 1; background: none; }
.pg :focus-visible { outline-color: #fff; }
.cs-ch.pg { display: block; padding: 0 var(--pg-g) 64px; background: none; }
/* the header: the band's lit blue from the top right over the wallpaper's faint graticule, dithered like Home's (the
   same picture again on a layer beneath, through #bcDither), settling into the deep blue the page runs on */
.cs-ch.pg-head { position: relative; isolation: isolate; padding-top: 40px; padding-bottom: 72px;
  background: linear-gradient(rgba(214, 226, 248, .05) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(90deg, rgba(214, 226, 248, .05) 1px, transparent 1px) 0 0 / 64px 64px,
    radial-gradient(90% 60% at 88% 0%, var(--bc-hi), transparent 72%), linear-gradient(180deg, var(--bc-mid), var(--bc-deep) 92%); }
.cs-ch.pg-head::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: inherit; filter: url(#bcDither); }
.pg-title, .pg-facts, .pg-poster, .pg-about, .pg-shot, .pg-pair { max-width: var(--pg-w); margin-inline: auto; }
/* the header, set as basement.studio sets a project (owner's pick, 2026-10-15): the title, the facts as hairline
   rows with a dim label and a bright value, the cover across the column, then the about */
.pg-title { margin-top: 0; margin-bottom: 32px; font: 700 44px/1.05 var(--display); letter-spacing: -0.025em; color: #fff; text-wrap: balance; }
.pg-facts { margin-top: 0; margin-bottom: 40px; border-top: 1px solid rgba(214, 226, 248, .22); }
.pg-facts > div { display: grid; grid-template-columns: minmax(96px, 30%) minmax(0, 1fr); column-gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(214, 226, 248, .22); }
.pg-facts dt { font: 14px/1.5 var(--read); color: var(--bc-soft); }
.pg-facts dd { margin: 0; font: 500 14px/1.5 var(--read); color: #fff; }
/* on a local preview, a fact the owner has not given yet: a dashed slot (the site leaves its row out) */
.pg-link { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.pg-link:hover { text-decoration-color: currentColor; }
.pg-link:focus-visible { outline: 2px solid var(--ph); outline-offset: 2px; border-radius: 2px; }
.pg-todo { padding: 0 8px; border: 1px dashed rgba(214, 226, 248, .6); border-radius: 3px; font-size: 12px; color: var(--bc-soft); }
/* the cover across the column, cut to a wide frame, the channel's bug in its corner as a station marks its picture */
/* the cover and the screens stand square, as the files they are named for (owner's call, 2026-10-15): no corner
   cuts the design's own edges, and no ground shows under them */
.pg-poster { position: relative; overflow: hidden; box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .8); }
.pg-poster .cv, .pg-poster .ph { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: inherit; }
/* the covers carry their 10px corners baked in on white (content.js): a square poster crops a hair past them */
.pg-poster .cv { transform: scale(1.035); }
.pg-bug { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 4px;
  background: rgba(4, 22, 63, .55); font: 700 10px/1 var(--mono); letter-spacing: .08em; color: rgba(255, 255, 255, .85); }
.pg-bug i { width: 6px; height: 6px; border-radius: 50%; background: var(--ph); box-shadow: 0 0 6px var(--glow-halo); }
.pg-about { margin-top: 32px; margin-bottom: 0; font-size: var(--pl-lede); line-height: 1.6; color: #e3ecff; text-wrap: pretty; }
.pg-about { max-width: min(var(--pg-w), 62ch); margin-left: max(0px, (100% - var(--pg-w)) / 2); }
/* a screen under its file name on a hairline: the tally lamp, the name in mono, its number at the right. While its
   row is on the screen the lamp lights and the name brightens */
.pg-shot { margin-top: 0; margin-bottom: 0; }
.pg-file { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding-top: 10px; border-top: 1px solid rgba(214, 226, 248, .22); font: 12px/1 var(--mono); color: var(--bc-soft); }
.pg-fname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .3s; }
.pg-of { margin-left: auto; color: rgba(214, 226, 248, .55); }
.pg-tally { flex: none; width: 8px; height: 8px; border-radius: 2px; background: #3a3f4a; transition: background .3s, box-shadow .3s; }
.on-air .pg-tally { background: var(--ph); box-shadow: 0 0 6px var(--glow-halo); }
.on-air .pg-fname { color: #fff; }
.pg-pic { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; box-shadow: 0 30px 50px -26px rgba(0, 0, 0, .8);
  font: inherit; color: inherit; text-align: inherit; cursor: zoom-in; }
.pg-pic:focus-visible { outline: 2px solid var(--ph); outline-offset: 4px; }
/* a page taller than a screen, in a screen's frame: it scrolls through as its row passes (pgPan), its scroll bar's
   thumb at the right keeping pace; the eased step smooths a wheel's notches. Without motion it stands whole */
.pg-shot.long .pg-pic, .pg-shot.run .pg-pic { padding: 40px; background: var(--shot-bg, #fff); }
.pg-vp { display: block; overflow: hidden; }
.pg-shot.long .pg-vp { aspect-ratio: 16 / 10; }
.pg-shot.long .cs-img { border-radius: 0; will-change: transform; transition: transform .35s var(--ease-out); }
.pg-sb { position: absolute; top: 8px; right: 6px; bottom: 8px; width: 4px; border-radius: 2px; background: rgba(0, 0, 0, .1); }
.pg-sb i { position: absolute; left: 0; right: 0; top: 0; height: 30%; border-radius: 2px; background: rgba(0, 0, 0, .42); }
/* a whole page: the frame (a screen's 16:10) sticks below the screen's top while its run passes, the page moving
   through it; without motion the run is just the frame, and the page scrolls inside it by hand */
.pg-shot.run .pg-vp { aspect-ratio: 16 / 10; }
.pg-shot.run .cs-img { border-radius: 0; will-change: transform; transition: transform .2s var(--ease-out); }
.pg-stick { position: sticky; top: 24px; }
@media (prefers-reduced-motion: reduce) {
  .pg-run { height: auto !important; }
  .pg-stick { position: static; }
  .pg-shot.run .pg-vp { overflow-y: auto; }
  .pg-shot.run .cs-img { transform: none !important; transition: none; }
  .pg-shot.long .pg-vp { aspect-ratio: auto; }
  .pg-shot.long .cs-img { transform: none !important; transition: none; }
  .pg-sb { display: none; }
}
.pg-pic .cs-img { display: block; width: 100%; height: auto; border-radius: inherit; }
/* the device shot on its clear ground stands bare */
.pg-shot.bare .pg-pic { background: none; box-shadow: none; border-radius: 0; }
.pg-shot.phone { max-width: 320px; }
/* the colours and typefaces (layout B): a thin strip of the colours, the signature one wide, then the typefaces by
   name beside the colours on hairline rows (one column on a narrow page) */
.pg-strip { display: flex; height: 28px; overflow: hidden; border-radius: 4px; }
.pg-strip i { background: var(--c); }
.pg-spec { display: grid; gap: 24px 40px; margin-top: 24px; }
.pg-faces { display: flex; flex-wrap: wrap; gap: 24px 40px; }
.pg-k { display: block; margin: 0 0 4px; font: 400 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bc-soft); }
.pg-fn { margin: 0; font: 400 32px/1.2 var(--display); color: #fff; }
.pg-faces { align-content: start; }
.pg-cols { margin: 0; padding: 0; list-style: none; align-self: start; }
.pg-cols li { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 0; border-top: 1px solid rgba(214, 226, 248, .18); }
.pg-cols li:last-child { border-bottom: 1px solid rgba(214, 226, 248, .18); }
.pg-chips { flex: none; display: flex; gap: 4px; }
.pg-chips i { width: 16px; height: 16px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.pg-role { flex: 1; min-width: 0; font: 400 14px/20px var(--read); color: #fff; }
.pg-hex { font: 400 12px/16px var(--mono); letter-spacing: .04em; color: rgba(214, 226, 248, .7); text-align: right; }
/* two or three screens side by side (--n, the phones three), each at its share of the column, so their file names line up */
.pg-pair { display: grid; gap: 24px; }
@container (min-width: 640px) {
  .pg { --pg-g: 40px; }
  .cs-ch.pg-head { padding-top: 56px; }
  .pg-pair { grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); align-items: start; }
  .pg-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-fn { font-size: 44px; }
  .pg-spec.two .pg-fn { font-size: 32px; }
  .pg-spec.two .pg-faces { flex-direction: column; }
}
@container (min-width: 760px) {
  .cs-ch.pg { padding-bottom: 88px; }
}
@container (min-width: 1100px) {
  .pg { --pg-g: 64px; }
  .cs-ch.pg-head { padding-top: 72px; padding-bottom: 88px; }
  .pg-title { font-size: 64px; }
}
/* the deck: a raised plate under the tray, one slim row so the screen gets the height: the transport, the timeline
   and the wordmark (the text size went, owner's call, 2026-10-15). The keys carry their names as tooltips instead of printed labels */
.pl-deck { container-type: inline-size; display: grid; grid-template-columns: auto minmax(160px, 1fr) auto; grid-template-areas: "keys tl logo"; align-items: center; gap: 8px 16px; padding: 8px 16px; border-radius: 16px 16px 18px 18px;
  background: linear-gradient(180deg, #dcdee3, #b2b4bd 55%, #a0a2ab);
  box-shadow: inset 0 1px #fff, inset 0 -2px 3px rgba(40, 42, 52, .3), 0 1px 0 rgba(255, 255, 255, .8), 0 3px 6px rgba(20, 22, 30, .25); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; background: none; margin: 0; }
.range::-webkit-slider-runnable-track { height: 6px; background: #fdfdfd; border-radius: 3px; box-shadow: inset 1px 1px #6d6f78, inset -1px -1px #e5e5ea; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 20px; margin-top: -7px; border-radius: 3px; border: 1px solid #55575f; background: linear-gradient(90deg, #f7f7f9, #b8bac2); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.range::-moz-range-track { height: 6px; background: #fdfdfd; border-radius: 3px; box-shadow: inset 1px 1px #6d6f78; }
.range::-moz-range-thumb { width: 12px; height: 20px; border-radius: 3px; border: 1px solid #55575f; background: linear-gradient(90deg, #f7f7f9, #b8bac2); }
/* the timeline: each chapter a stretch of the groove, the part read filled lilac, a notch where a chapter starts;
   an unpublished chapter is a hatched slot, the way a player shows what has not loaded yet */
.pl-tl { --tl-h: 20px; grid-area: tl; position: relative; height: var(--tl-h); }
.tl-track { position: absolute; left: 0; right: 0; top: calc((var(--tl-h) - 12px) / 2); height: 12px; overflow: hidden; border-radius: 6px; background: #1b1d22; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7), 0 1px rgba(255, 255, 255, .8); }
.tl-seg { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; background: #3e4048; }
.tl-seg.off { background: repeating-linear-gradient(135deg, #2c2e36 0 3px, #55575f 3px 5px); }
/* the fill runs in the chapters' lane, 3px in from the track's rim all round, to the thumb's centre; its light is
   kept inside it, so it reads as the lane lit rather than a bar laid over the track */
.tl-fill { position: absolute; left: 3px; top: 3px; bottom: 3px; width: 0; border-radius: 3px; background: linear-gradient(180deg, #cdb4ff, #b58fe8 50%, #5153b8); box-shadow: inset 0 1px rgba(255, 255, 255, .45); }
.tl-mark { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #d8d9ff; }
.tl-mark.off { background: #8e909a; }
.pl-tl .seek { position: absolute; left: 0; top: 0; height: var(--tl-h); }
.pl-tl .seek::-webkit-slider-runnable-track { height: var(--tl-h); background: none; box-shadow: none; }
.pl-tl .seek::-webkit-slider-thumb { margin-top: calc((var(--tl-h) - 20px) / 2); }
.pl-tl .seek::-moz-range-track { background: none; box-shadow: none; }
/* the transport: the big play key in its chrome rings, the portfolio key and the case pair in dark wells, labels printed under them */
.pl-keys { grid-area: keys; display: grid; grid-auto-flow: column; grid-template-rows: auto; align-items: center; justify-items: center; gap: 12px; }
.pl-keys small, .pl-vol small { display: none; }
.pl-kgrp { display: contents; }
.pl-key { width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid #55575f; display: grid; place-items: center;
  background: radial-gradient(circle at 36% 30%, #ffffff 0, #d9dae0 40%, #9fa1aa 80%, #7c7e87 100%); box-shadow: inset 0 -3px 5px rgba(0, 0, 0, .22); }
.pl-key .px { width: 16px; height: 16px; }
.pl-key.big { width: 44px; height: 44px; margin: 4px; box-shadow: 0 0 0 4px #b6b8c0, 0 0 0 5px #6f717a, 0 0 0 6px rgba(255, 255, 255, .7), 0 4px 8px rgba(0, 0, 0, .3), inset 0 -3px 6px rgba(0, 0, 0, .2); }
.pl-key.big:active { box-shadow: 0 0 0 4px #b6b8c0, 0 0 0 5px #6f717a, inset 0 3px 6px rgba(0, 0, 0, .45); }
.pl-key.big .px { width: 24px; height: 24px; }
/* the LCD, kept simple: a seven-segment clock (the unlit segments ghost through), then the case over the chapter being read */
.lcd { grid-area: lcd; width: 100%; min-width: 0; height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 8px;
  background: #070707; border: 1px solid #3e4048; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8), 0 1px 0 #fff;
  color: var(--lcd); text-shadow: 0 0 6px rgba(99, 240, 107, .45); white-space: nowrap; overflow: hidden; }
.lcd-clock { flex: none; display: flex; align-items: center; gap: 2px; filter: drop-shadow(0 0 3px rgba(99, 240, 107, .45)); }
.seg { width: 16px; height: 24px; }
.seg polygon { fill: var(--lcd); opacity: .12; }
.seg polygon.on { opacity: 1; }
.seg-colon { width: 5px; height: 24px; fill: var(--lcd); }
.lcd-text { flex: 1; min-width: 0; display: grid; gap: 4px; padding-left: 12px; border-left: 1px solid rgba(99, 240, 107, .2); }
.lcd-title, .lcd-now { overflow: hidden; text-overflow: ellipsis; }
.lcd-title { font: 700 14px/1.1 var(--ui); }
.lcd-now { font: 12px/1.2 var(--ui); }
/* the LCD stands in the side tray over the tools (owner's request, 2026-09-29). The tray is too narrow for one row, so
   the clock sits over the case and the chapter, the green divider between them. A phone's tray lists nothing, so
   there the deck's LCD shows instead */
.pl-side .lcd { flex: none; height: auto; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 12px; }
.pl-side .lcd-text { flex: none; padding: 8px 0 0; border-left: 0; border-top: 1px solid rgba(99, 240, 107, .2); }
.pl-deck .lcd { display: none; }
/* a narrow deck drops the wordmark, and the narrowest (a 320px phone) the LCD's clock, so the case and chapter still read */
@container (max-width: 960px) { .skin-logo { display: none; } }
@container (max-width: 299px) { .lcd-clock { display: none; } .lcd .lcd-text { padding-left: 0; border-left: 0; } }
/* text size as a volume wedge that rises to the right, a notch under each of its three sizes */
.pl-vol { --wg-h: 20px; grid-area: vol; display: grid; justify-items: center; gap: 4px; }
.pl-vrow { display: flex; align-items: center; gap: 8px; }
.pl-vrow b { font-weight: 700; }
.pl-vrow b.lg { font-size: 18px; }
.pl-wedge { position: relative; display: block; width: 96px; height: var(--wg-h); }
.pl-wedge::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--wg-h) / 2 - 6px); height: 12px; background: linear-gradient(to top left, #55575f 50%, transparent 50%); filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .7)); }
.pl-wedge i { position: absolute; top: calc(var(--wg-h) / 2 + 8px); width: 1px; height: 4px; background: #2b2c33; }
.pl-wedge i:nth-of-type(1) { left: 6px; }
.pl-wedge i:nth-of-type(2) { left: 50%; }
.pl-wedge i:nth-of-type(3) { right: 6px; }
.pl-wedge .tsize { position: absolute; inset: 0; height: 100%; }
.pl-wedge .tsize::-webkit-slider-runnable-track { height: var(--wg-h); background: none; box-shadow: none; }
.pl-wedge .tsize::-webkit-slider-thumb { margin-top: calc((var(--wg-h) - 20px) / 2); }
.pl-wedge .tsize::-moz-range-track { background: none; box-shadow: none; }
.skin-logo { grid-area: logo; font: 700 12px/1 var(--ui); color: #2b2c33; letter-spacing: .02em; text-shadow: 0 1px rgba(255, 255, 255, .7); white-space: nowrap; }

/* ============================================================
   CONTACT — Y2K red skin
   ============================================================ */
.win.skinned { padding: 0; background: transparent; box-shadow: none; }
.nero {
  position: relative;
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  padding: 8px 12px 10px; border-radius: 24px; color: #fff;
  background: linear-gradient(180deg, #ea5a52 0%, #bf2721 26%, #931612 68%, #6c0d0b 100%);
  box-shadow: 0 0 0 1px #5a0b09, inset 0 2px 1px rgba(255, 255, 255, .55), inset 0 -3px 5px rgba(0, 0, 0, .35), 0 12px 30px rgba(0, 0, 0, .45);
  font: 12px var(--read); -webkit-font-smoothing: antialiased;
}
.nero::before { content: ""; position: absolute; left: 18px; right: 18px; top: 3px; height: 24px; border-radius: 22px 22px 60% 60% / 18px 18px 10px 10px; background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .04)); pointer-events: none; }
/* on the red and the dark screen XP's black dotted focus would vanish, so the skin draws it in white */
.nero :focus-visible { outline: 1px dotted #fff; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #fff); outline-offset: 2px; }

/* top: the slanted wordmark, the category combo in its socket, and the caption keys in a dark well like the player's */
.nero-top { position: relative; flex: 0 0 46px; display: flex; align-items: center; gap: 10px; padding: 0 2px; touch-action: none; user-select: none; }
.nero-logo { font: italic 700 28px/1 var(--display); letter-spacing: -0.04em; text-shadow: 0 -1px 0 rgba(255, 255, 255, .25), 0 2px 0 #5a0b09, 0 3px 4px rgba(0, 0, 0, .35); padding-right: 6px; }
.nero-pick { position: relative; margin: 0 auto; height: 28px; min-width: 164px; display: flex; align-items: center; gap: 6px; padding: 0 3px 0 8px; border-radius: 4px; border: 1px solid #5a0b09; background: linear-gradient(#ffffff, #e2e2e2); color: #111; font: 700 12px var(--read);
  box-shadow: 0 0 0 2px #6c0d0b, 0 1px 0 2px rgba(255, 255, 255, .3), inset 0 1px rgba(255, 255, 255, .9); }
.nero-pick:hover { box-shadow: 0 0 0 2px #6c0d0b, 0 1px 0 2px rgba(255, 255, 255, .3), inset 0 0 0 1px var(--hover-glow-amber, #fbc761), inset 0 0 4px var(--hover-glow-gold, #e5a01a); }
.nero-pick:focus-within { outline: 1px dotted #fff; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #fff); outline-offset: 4px; }
.nero-pick .px { width: 16px; height: 16px; }
/* the select covers the whole field, the red arrow key under it is only drawn */
.nero-pick select { flex: 1; height: 100%; margin-right: -24px; padding: 0 24px 0 0; border: 0; background: none; color: inherit; font: inherit; outline: none; appearance: none; -webkit-appearance: none; cursor: var(--cur-hand, pointer); position: relative; z-index: 1; }
.nero-pick select:focus-visible { outline: none; }
.nero-pick .dd { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 3px; border: 1px solid #5a0b09; color: #fff; background: linear-gradient(#e95a53, #bf2721 55%, #a31a15); box-shadow: inset 0 1px rgba(255, 255, 255, .5); }
.nero-pick .dd svg { width: 8px; height: 14px; transform: rotate(90deg); }
.nero-ctrl { display: flex; gap: 4px; padding: 3px; border-radius: 16px; background: #3a0504; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .75), 0 1px rgba(255, 255, 255, .3); }
.nero-ctrl button { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid #3a0504; display: grid; place-items: center; color: #222;
  background: radial-gradient(circle at 36% 30%, #ffffff, #dadada 45%, #8f8f8f); box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .2); }
.nero-ctrl .q { font: 700 13px/1 var(--read); }
.nero-ctrl button:hover { background: radial-gradient(circle at 36% 30%, #ffffff, #e0e0e0 45%, #8d8d8d); box-shadow: inset 0 0 0 1px var(--hover-glow-amber, #fbc761), inset 0 -2px 3px rgba(0, 0, 0, .15); }
.nero-ctrl .x:hover { background: radial-gradient(circle at 36% 30%, #ffffff, #ffd9d7 45%, #e95a53); color: #3a0504; }
.nero-ctrl button:active { background: radial-gradient(circle at 50% 60%, #e0e0e0, #8f8f8f); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .45); }

/* the screen, set in the red body like a bezel: a dark rim, then a light lip */
.nero-body {
  flex: 1; min-height: 0; overflow: auto; padding: 14px 18px 16px; border-radius: 16px;
  background:
    radial-gradient(70% 55% at 88% 78%, rgba(146, 186, 206, .28), transparent 62%),
    radial-gradient(62% 48% at 72% 64%, transparent 56%, rgba(255, 255, 255, .08) 58%, transparent 61%),
    radial-gradient(80% 64% at 78% 70%, transparent 56%, rgba(255, 255, 255, .06) 58%, transparent 61%),
    linear-gradient(180deg, #36586d, #1e3544 58%, #132330);
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, .65), 0 0 0 1px #5a0b09, 0 1px 0 1px rgba(255, 255, 255, .28);
}
.nero-cats { display: flex; flex-wrap: wrap; gap: 6px 8px; padding-bottom: 12px; border-bottom: 1px solid rgba(0, 0, 0, .5); box-shadow: 0 1px rgba(255, 255, 255, .1); }
/* one width for every tab, so the icons sit on an even rhythm whatever the label length */
.nero-cat { width: 68px; padding: 6px 4px 4px; border: 1px solid transparent; border-radius: 10px; background: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 5px; opacity: .8; cursor: var(--cur-hand, pointer); transition: background-color .15s, opacity .15s; }
.nero-cat .px { width: 40px; height: 40px; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .6)) drop-shadow(0 3px 2px rgba(0, 0, 0, .5)); transition: transform .15s; }
.nero-cat span { font-weight: 700; font-size: 12px; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nero-cat:hover { opacity: 1; background-color: rgba(255, 255, 255, .06); }
.nero-cat:hover .px { transform: translateY(-2px); }
.nero-cat:active .px { transform: translateY(1px); }
/* the chosen tab is a lit glass pad with the orange tab line (Orange Is Light) */
.nero-cat[aria-selected="true"] { opacity: 1; border-color: rgba(255, 255, 255, .22); background: linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .04)); box-shadow: inset 0 1px rgba(255, 255, 255, .3), 0 2px 4px rgba(0, 0, 0, .3); }
.nero-cat[aria-selected="true"] span { border-bottom-color: #ffc83c; }

/* the actions: raised strips, the icon in a dark socket, a silver key on the right naming what the row does */
.nero-actions { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.nero-act { width: 100%; min-height: 56px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 5px 12px 5px 5px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; color: #fff; text-decoration: none; text-align: left; font: 700 14px var(--read); cursor: var(--cur-hand, pointer);
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)); box-shadow: inset 0 1px rgba(255, 255, 255, .14), 0 1px 2px rgba(0, 0, 0, .25); transition: background-color .15s, box-shadow .15s; }
.nero-act:hover { background-color: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(251, 199, 97, .6), inset 0 0 10px rgba(251, 199, 97, .16), 0 1px 2px rgba(0, 0, 0, .25); }
.nero-act:active { transform: translateY(1px); background: rgba(0, 0, 0, .14); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .4); }
.nero-sock { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: radial-gradient(circle at 50% 35%, #36586d, #132330 75%); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6), 0 1px rgba(255, 255, 255, .14); }
.nero-sock .px { width: 32px; height: 32px; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .6)) drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.nero-txt { min-width: 0; }
.nero-txt small { display: block; margin-top: 3px; font-weight: 400; font-size: 12px; color: #c8dbe6; overflow-wrap: anywhere; }
.nero-go { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #132330; color: #1d2a3a;
  background: radial-gradient(circle at 36% 30%, #ffffff, #dadada 45%, #8f8f8f); box-shadow: 0 1px 2px rgba(0, 0, 0, .45); transition: transform .15s; }
/* the pixel arrow's weight sits on its left edge, so it moves 2px right to look centred in the dome */
.nero-go svg { width: 8px; height: 14px; margin-left: 2px; }
.nero-go svg[width="11"] { width: 11px; height: 11px; }
.nero-go .px { display: none; width: 16px; height: 16px; }
.nero-act:hover .nero-go { transform: translateX(2px); }
/* copied: the key turns Status Green and shows the check while the toast is up */
.nero-act.done .nero-go { background: radial-gradient(circle at 36% 30%, #ffffff, #1fb85a 55%, #0b4d26); border-color: #0b4d26; transform: none; }
.nero-act.done .nero-go svg:not(.px) { display: none; }
.nero-act.done .nero-go .px { display: block; }
/* the availability note is information, not a control: no strip, a dashed rule above, a steady green lamp on the status */
.nero-note { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 4px; padding: 10px 12px 2px 5px; border-top: 1px dashed rgba(255, 255, 255, .2); font: 700 14px var(--read); }
.nero-note .nero-sock { background: none; box-shadow: none; }
.nero-lamp { display: inline-flex; align-items: center; gap: 8px; }
.nero-lamp::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff, #1fb85a 55%, #11703a); box-shadow: 0 0 0 1px #0b4d26; }

/* bottom: the address on a recessed readout, then the two round keys in their sockets with printed labels */
.nero-bottom { flex: 0 0 74px; display: flex; align-items: center; gap: 12px; padding: 8px 4px 0; }
.nero-readout { flex: 0 1 300px; min-width: 0; height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 16px;
  background: linear-gradient(180deg, #3a0504, #5a0b09); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6), 0 1px rgba(255, 255, 255, .22); }
.nero-readout small { flex: none; font: 400 11px var(--read); color: #ffd9d7; }
.nero-readout .url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 12px var(--read); color: #ffd9d7; }
.nero-round { margin-left: auto; display: flex; align-items: flex-end; gap: 14px; }
.nero-key { display: grid; justify-items: center; gap: 5px; }
.nero-key small { font: 700 11px/1 var(--read); color: #ffd9d7; text-shadow: 0 1px rgba(0, 0, 0, .45); }
.nero-round button, .nero-round .hot { width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid #3a0504; display: grid; place-items: center; cursor: var(--cur-hand, pointer);
  background: radial-gradient(circle at 36% 30%, #ffffff, #e0e0e0 42%, #8d8d8d); box-shadow: 0 0 0 3px #6c0d0b, 0 0 0 4px rgba(255, 255, 255, .22), 0 3px 4px 2px rgba(0, 0, 0, .4); }
.nero-round .hot { background: radial-gradient(circle at 36% 30%, #ffe2a8, #ff8a2a 45%, #b0260b); }
.nero-round button:hover { background: radial-gradient(circle at 36% 30%, #ffffff, #e0e0e0 55%, #8d8d8d); box-shadow: 0 0 0 3px #6c0d0b, 0 0 0 4px rgba(255, 255, 255, .22), 0 3px 4px 2px rgba(0, 0, 0, .4), inset 0 0 0 2px rgba(251, 199, 97, .85); }
.nero-round .hot:hover { background: radial-gradient(circle at 36% 30%, #ffffff, #ffe2a8 30%, #ff8a2a 60%, #b0260b); box-shadow: 0 0 0 3px #6c0d0b, 0 0 0 4px rgba(255, 255, 255, .22), 0 3px 4px 2px rgba(0, 0, 0, .4), inset 0 0 0 2px rgba(255, 240, 200, .8); }
.nero-round button:active, .nero-round .hot:active { box-shadow: 0 0 0 3px #6c0d0b, 0 0 0 4px rgba(255, 255, 255, .22), inset 0 3px 5px rgba(0, 0, 0, .45); }
.nero-round button.done { background: radial-gradient(circle at 36% 30%, #ffffff, #1fb85a 55%, #0b4d26); }
.nero-round :focus-visible { outline-offset: 6px; }
.nero-round button svg, .nero-round .hot svg { width: 24px; height: 24px; }
.toast { position: fixed; z-index: 9950; padding: 4px 8px; border-radius: 3px; background: var(--tip); color: #000; border: 1px solid #000; box-shadow: var(--menu-shadow); font: 12px var(--ui); pointer-events: none; }

/* ============================================================
   DIALOGS
   ============================================================ */
.dlg { padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.dlg-row { display: flex; gap: 14px; align-items: flex-start; }
.dlg-row .px { width: 32px; height: 32px; flex: none; }
.dlg p { margin: 0 0 6px; }
.dlg .btns { display: flex; justify-content: flex-end; gap: 6px; }
.dlg .note { color: #5a5a5a; }
.dlg.credits { max-width: 360px; }
.credits-mark { flex: none; width: 40px; height: 40px; image-rendering: pixelated; }
.credit-line { margin: 0; padding: 8px 10px; background: #fff; box-shadow: var(--well); line-height: 1.45; }
.credit-line a { color: var(--link); }
/* Picture Viewer: the picture on white with its name right under it, XP's toolbar on the face strip at the
   foot; picture and caption stay one group, centred in whatever height the window has */
.pview { display: flex; flex-direction: column; overflow: hidden; background: #fff; box-shadow: var(--well); }
.pv-stage { flex: 1 1 auto; min-height: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; container-type: size; }
.pv-stage .pv-img { flex: none; display: block; width: min(100cqw, calc((100cqh - 30px) * 4 / 3)); height: auto; aspect-ratio: 4 / 3; object-fit: contain; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.pv-cap { flex: none; display: flex; justify-content: center; align-items: baseline; gap: 10px; font: 12px/1.4 var(--ui); color: #444; }
.pv-cap b { color: #000; }
.pv-bar { flex: none; display: flex; justify-content: center; align-items: center; gap: 2px; padding: 5px 8px; background: var(--face); box-shadow: inset 0 1px #d8d2bd; }
.pv-b { width: 30px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 3px; background: none; color: #000; }
.pv-b .px { width: 16px; height: 16px; }
.pv-b:hover, .pv-b:focus-visible { border-color: var(--tool-hot-edge); background: var(--tool-hot); }
.pv-b[aria-pressed="true"], .pv-b:active { border-color: #9d9d92; background: #e3e3db; box-shadow: inset 1px 1px 2px rgba(0, 0, 0, .15); }
.pv-b:active .px { translate: 1px 1px; }
.pv-sep { width: 1px; height: 20px; margin: 0 5px; background: #c5c2b2; box-shadow: 1px 0 #fff; }
/* a case's screen: at its own shape, as big as the stage lets it and no bigger than its slot; a page taller than
   that scrolls in the stage from its top */
.pview.set .pv-stage { overflow-y: auto; justify-content: safe center; }
.pview.set .pv-img.fit { width: min(100%, var(--w), calc((100cqh - 30px) * (var(--ar)))); aspect-ratio: var(--ar); }
.pview.set .pv-img.long { width: min(100%, var(--w)); }
@media (pointer: coarse) { .pv-b { width: 44px; height: 44px; } .pv-b .px { width: 20px; height: 20px; } }

.bin-list { width: 100%; border-collapse: collapse; }
.bin-list th { padding: 0; background: var(--col-head); box-shadow: var(--col-head-edge); text-align: left; font-weight: 400; }
.bin-list th span { display: block; padding: 3px 6px; }
.bin-list td { padding: 3px 6px; white-space: nowrap; }
.bin-list td:first-child { display: flex; align-items: center; gap: 5px; }
.bin-list .px { width: 16px; height: 16px; }

.shutdown-screen { position: fixed; inset: 0; z-index: 10001; background: linear-gradient(180deg, #5a7edc, #1d3fa4); display: grid; place-items: center; text-align: center; color: #fff; font: 700 18px/1.3 var(--display); }
@media (min-width: 720px) { .shutdown-screen { font-size: 24px; } }
@media (min-width: 1000px) { .shutdown-screen { font-size: 28px; } }
.shutdown-screen small { display: block; margin-top: 18px; font: 12px var(--ui); color: #dce6fb; }

/* ============================================================
   BOSS RUSH XP — the hidden game (Recycle Bin → jangan-dibuka.exe,
   or the Konami code). The canvas carries the games' own period
   colours; its dialogs are Luna mini windows.
   ============================================================ */
.bin-list .bin-run { display: flex; align-items: center; gap: 5px; min-height: 24px; padding: 0; border: 0; background: none; text-align: left; }
.bin-list tr.bin-exe:hover td, .bin-list tr.bin-exe:focus-within td, .bin-list tr.bin-exe:active td { background: var(--sel); color: #fff; }
/* the deleted files can't be opened: only the .exe answers a click */
.bin-list tbody tr:not(.bin-exe) { cursor: not-allowed; }
.game-body { background: #000; box-shadow: var(--well); overflow: hidden; }
.gm-note { margin: 0; padding: 12px; color: #fff; }
.gm-stage { position: absolute; inset: 1px; display: grid; place-items: center; overflow: hidden; background: #000; }
.gm-stage > canvas, .gm-stage > .gm-layer { grid-area: 1 / 1; }
.gm-canvas { display: block; }
.gm-canvas:focus-visible { outline: 1px dotted #fff; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #fff); outline-offset: -4px; }
.gm-layer { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); pointer-events: none; }
/* the title's Start menu: the whole game menu, risen from the in-game taskbar's start button (--gm-floor is the
   canvas taskbar's height, --gm-k the canvas scale; both set by the game). It is the portfolio's own Start menu
   (.sm-head, .sm-item …) at the game's size, with XP's two-line pinned programs */
.gm-start {
  pointer-events: auto; position: absolute; left: 0; bottom: var(--gm-floor, 50px); width: clamp(300px, calc(var(--gm-k, 1) * 330px), 348px);
  display: flex; flex-direction: column; border-radius: 8px 8px 0 0; background: #fff; color: #000; font: 12px/1.2 var(--ui);
  box-shadow: 0 0 0 1px #0f4fc6, 3px 3px 10px rgba(0, 0, 40, .45);
  animation: startup .15s var(--ease-out);
}
.gm-start .sm-head { font-size: 14px; }
.gm-start .sm-head canvas { width: 38px; height: 38px; flex: none; border: 2px solid #d8e4f8; border-radius: 3px; box-shadow: 1px 1px 2px rgba(0, 0, 40, .45); }
.gm-start .sm-cols > .sm-list { flex-basis: 55%; }
.gm-start .sm-cols > .sm-list.places { flex-basis: 45%; }
.gm-start .sm-item { min-height: 30px; padding-right: 8px; white-space: nowrap; }
.gm-start .sm-item.pin { min-height: 44px; }
.gm-start .sm-item.pin .px { width: 32px; height: 32px; }
.gm-start .sm-item small { display: block; font-weight: 400; color: var(--muted); }
.gm-start .sm-item:hover small, .gm-start .sm-item:focus-visible small { color: #fff; }
.gm-start .sm-item em { margin-left: auto; font-style: normal; color: var(--muted); }
.gm-start .sm-item:hover em, .gm-start .sm-item:focus-visible em { color: #fff; }
.gm-start .places .sm-item { font-weight: 400; }
.gm-start .sm-stat { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 8px; }
.gm-start .sm-stat .px { width: 24px; height: 24px; flex: none; }
.gm-start .sm-stat b { display: block; font-size: 14px; }
.gm-start .sm-foot { padding: 4px 8px; }
/* on a small stage (the game drawn under 900px wide) the menu tightens so the title keeps its desktop */
.gm-small .gm-start { width: 300px; }
.gm-small .gm-start .sm-cols > .sm-list { flex-basis: 52%; }
.gm-small .gm-start .sm-cols > .sm-list.places { flex-basis: 48%; }
.gm-small .gm-start .sm-head { padding: 4px 8px; font-size: 12px; }
.gm-small .gm-start .sm-head canvas { width: 30px; height: 30px; }
.gm-small .gm-start .sm-cols > .sm-list { padding: 4px 0; }
.gm-small .gm-start .sm-item { min-height: 28px; }
.gm-small .gm-start .sm-item.pin { min-height: 38px; }
.gm-small .gm-start .sm-item.pin .px { width: 24px; height: 24px; }
.gm-small .gm-start .places .sm-item, .gm-small .gm-start .sm-stat { padding-left: 4px; }
.gm-small .gm-start .sm-foot { padding: 4px 8px; }
@media (prefers-reduced-motion: reduce) { .gm-start { animation: none; } }
/* the title's front: the leaderboard and the guide, Luna windows on the title desktop right of the Start menu. The
   game sets their box (layoutFront); a narrow stage gets one tabbed card, and game dialogs always sit above them */
.gm-front { position: absolute; z-index: 1; display: flex; justify-content: flex-end; gap: 10px; pointer-events: none; }
.gm-front[hidden] { display: none; }
.gm-dlg { position: relative; z-index: 2; }
/* the title's start button is painted on the canvas taskbar; this invisible button over it takes the clicks and the
   keyboard, and the canvas draws its states (up, lit, in) */
.gm-sbtn { pointer-events: auto; position: absolute; left: 0; bottom: 0; z-index: 2; width: calc(var(--gm-k, 1) * 140px); height: var(--gm-floor, 64px); margin: 0; padding: 0; border: 0; background: none; cursor: var(--cur-arrow, default); }
.gm-sbtn:focus-visible { outline: 1px dotted #fff; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #fff); outline-offset: calc(var(--gm-k, 1) * -10px); }
/* a card is as tall as what it holds, up to --front-h (the game sets it near 60% of the stage). Beside the board the
   guide takes the board's height and scrolls its page; a lone card takes the whole height */
.gm-fcard { pointer-events: auto; display: flex; flex-direction: column; min-width: 0; min-height: min(220px, var(--front-h, 300px)); max-height: var(--front-h, 300px); padding: 0 3px 3px; border-radius: 8px 8px 0 0; background: var(--face); color: #000; font: 12px/1.35 var(--ui); box-shadow: var(--frame), 0 16px 28px -16px rgba(0, 0, 0, .6); }
.gm-lbcard { flex: 0 1 340px; }
.gm-guide { flex: 0 1 300px; }
.gm-front[data-mode="two"] .gm-pane { contain: size; }
.gm-front[data-mode="one"] .gm-guide { flex-basis: 340px; height: var(--front-h, 300px); }
.gm-fcard-body { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 8px; padding: 8px; }
.gm-fcard h3 { margin: 0; font-size: 14px; color: #0046d5; }
.gm-fcard p { margin: 0; text-wrap: pretty; }
.gm-moves li { text-wrap: pretty; }
.gm-fcard .note { margin: 8px 0 0; line-height: 1.4; color: var(--dark); }
.gm-fb-note { color: var(--muted); }
/* the podium: first in the middle and tallest in Icon Yellow, second in Silver, third in Orange Rule, on a Places
   Blue riser; the DOM keeps the order 1, 2, 3 for screen readers */
.gm-podium { display: flex; align-items: flex-end; gap: 6px; margin: 0; padding: 6px 6px 0; list-style: none; border: 1px solid #95bdee; background: linear-gradient(180deg, #fff, #d3e5fa); }
.gm-place { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: 2px; text-align: center; }
.gm-place.p1 { order: 2; }
.gm-place.p2 { order: 1; }
.gm-place.p3 { order: 3; }
.gm-ava { width: 28px; height: 28px; border: 2px solid #fff; border-radius: 3px; box-shadow: 0 0 0 1px var(--shade); }
.gm-q { width: 28px; height: 28px; display: grid; place-items: center; border: 1px dashed var(--shade); border-radius: 3px; background: #fff; color: var(--muted); font: 700 16px/1 var(--ui); }
.gm-pname { max-width: 100%; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-place.me .gm-pname { background: var(--sel); color: #fff; }
.gm-pname small, .gm-ranks small { font-size: 12px; font-weight: 400; }
.gm-ptime { display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.gm-step { justify-self: stretch; display: grid; place-items: center; margin-top: 2px; border: 1px solid var(--shade); border-bottom: 0; border-radius: 3px 3px 0 0; font: 700 18px/1 var(--ui); }
.gm-place.p1 .gm-step { height: 36px; background: #f7c948; }
.gm-place.p2 .gm-step { height: 28px; background: #d4d7de; }
.gm-place.p3 .gm-step { height: 22px; background: var(--orange-rule); }
.gm-podium.open .gm-step, .gm-place.none .gm-step { opacity: .6; }
.gm-ranks { display: grid; margin: 0; padding: 0; list-style: none; background: #fff; box-shadow: var(--well); }
.gm-ranks li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto 20px; align-items: center; gap: 6px; height: 22px; padding: 0 6px; }
.gm-ranks li + li { border-top: 1px solid #d3e5fa; }
.gm-ranks .n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.gm-ranks .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-ranks .t { font-variant-numeric: tabular-nums; }
.gm-ranks li.me, .gm-ranks li.me .n { background: var(--sel); color: #fff; }
.gm-ranks li.gap { display: block; height: 16px; line-height: 14px; text-align: center; color: var(--muted); }
/* the grade as a chip in the grade's own colour, as on the win screen's stamp */
.gm-gd { display: inline-grid; place-items: center; width: 20px; height: 16px; border-radius: 3px; font: 700 12px/1 var(--ui); }
.gm-gd.gS { background: #f7c948; color: #000; }
.gm-gd.gA { background: #11703a; color: #fff; }
.gm-gd.gB { background: #0046d5; color: #fff; }
.gm-gd.gC { background: var(--muted); color: #fff; }
.gm-empty { display: grid; justify-items: center; gap: 8px; padding: 4px 0; text-align: center; }
.gm-fcard-body:has(> .gm-empty), .gm-pane:has(> .gm-empty) { align-content: center; }
.gm-empty .gm-podium { justify-self: stretch; }
.gm-empty > .px { width: 32px; height: 32px; }
.gm-fb-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
/* under the board: a cream line while the player's name isn't on it, then the count and See all */
.gm-join { margin: 0; padding: 4px 8px; border: 1px solid var(--shade); background: var(--tip); }
.gm-fb-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; color: var(--muted); }
.gm-link { padding: 0; border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; cursor: var(--cur-hand, pointer); }
.gm-link:focus-visible { outline: 1px dotted #000; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #000); outline-offset: 1px; }
/* the guide: XP tabs (the selected one lit by Tab Highlight over Orange Rule) over one scrolling page */
.gm-tabs { position: relative; z-index: 1; display: flex; margin: 6px 6px -1px; }
.gm-tab { padding: 4px 10px; border: 1px solid var(--tab-line); border-bottom: 0; border-radius: 3px 3px 0 0; background: var(--tab-face); color: #000; font: 12px var(--ui); cursor: var(--cur-hand, pointer); }
.gm-tab + .gm-tab { margin-left: -1px; }
.gm-tab[aria-selected="true"] { position: relative; padding-bottom: 5px; background: #fcfcfe; box-shadow: inset 0 2px #ffc83c, inset 0 3px var(--orange-rule); }
.gm-tab:focus-visible { outline: 1px dotted #000; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #000); outline-offset: -4px; }
.gm-pane { flex: 1; min-height: 0; overflow-y: auto; margin: 0 6px 6px; padding: 8px; border: 1px solid var(--tab-line); background: #fcfcfe; }
.gm-pane:focus-visible { outline: 1px dotted #000; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #000); outline-offset: -3px; }
.gm-pane > .gm-podium, .gm-pane > .gm-ranks, .gm-pane > .gm-join { margin-bottom: 8px; }
.gm-bosses, .gm-items, .gm-moves { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gm-bosses li, .gm-items li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; align-items: start; }
.gm-art { width: 32px; height: 32px; display: grid; place-items: center; }
.gm-mhead { margin: 12px 0 6px; font: 700 12px var(--ui); color: var(--group-ink); }
.gm-mhead:first-child { margin-top: 0; }
.gm-art .px { width: 32px; height: 32px; }
.gm-bosses b, .gm-items b, .gm-bosses small { display: block; }
.gm-bosses small { color: var(--muted); font-size: 12px; }
.gm-bosses p, .gm-items p { margin-top: 2px; }
.gm-lock { border: 1px dashed var(--shade); border-radius: 3px; background: #fff; color: var(--muted); font: 700 20px/1 var(--ui); }
.gm-bosses li.locked b { color: var(--muted); }
.gm-moves li { display: grid; gap: 2px; }
.gm-seq { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.gm-seq kbd { padding: 0 6px; line-height: 16px; border: 1px solid var(--tab-line); border-radius: 3px; background: var(--btn-face); font: 12px var(--ui); }
.gm-seq i { font-style: normal; color: var(--muted); }
.gm-dlg { pointer-events: auto; place-self: center; width: min(340px, calc(100% - 24px)); display: flex; flex-direction: column; padding: 0 3px 3px; border-radius: 8px 8px 0 0; background: var(--face); color: #000; box-shadow: var(--frame), 0 20px 34px -18px rgba(0, 0, 0, .7); }
.gm-dlg[role="status"] { place-self: end center; margin-bottom: 14%; }
/* a note in a game dialog is quiet text on the face, not the case player's dashed sample note */
.gm-dlg .note { display: block; margin: 0; padding: 0; border: 0; border-radius: 0; font-size: 12px; line-height: 1.4; color: var(--dark); }
/* on the smallest window the how-to-play dialog nearly fills the canvas: past that, its body scrolls */
.gm-dlg { max-height: calc(100% - 8px); }
.gm-dlg > .dlg { min-height: 0; overflow-y: auto; }
.gm-dlg .dlg-row > div { min-width: 0; }
.gm-keys { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; margin: 4px 0 8px; }
.gm-keys kbd { justify-self: start; padding: 0 8px; line-height: 16px; border: 1px solid var(--tab-line); border-radius: 3px; background: var(--btn-face); font: 12px var(--ui); white-space: nowrap; }
.gm-bar { height: 16px; margin: 4px 0 2px; padding: 2px; border: 1px solid var(--dark); border-radius: 3px; background: #fff; }
.gm-bar i { display: block; width: 0; height: 100%; background: repeating-linear-gradient(90deg, transparent 0 8px, #fff 8px 10px), var(--progress); animation: gm-load 1.5s steps(14, end) forwards; }
@keyframes gm-load { to { width: 100%; } }
.gm-stats { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 8px 0; padding: 8px 12px; background: #fff; box-shadow: var(--well); }
.gm-stats dt { color: var(--muted); }
.gm-stats dd { margin: 0; font-weight: 700; text-align: right; }
.gm-new { color: var(--ok-ink); font-weight: 700; }
.gm-gift { display: flex; align-items: center; gap: 6px; color: var(--heading-ink); font-weight: 700; }
/* the win screen: the rank lands like a stamp; under it, the portfolio's offer to talk in an information bar */
.gm-rank { flex: none; width: 56px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; border-radius: 3px; background: var(--muted); color: var(--hi); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25), inset 0 2px rgba(255, 255, 255, .28); animation: gm-stamp .45s var(--ease-out) .2s both; }
.gm-rank small { font: 12px var(--ui); }
.gm-rank b { font: 700 32px/1 var(--ui); }
/* S is gold from the icon palette: orange is XP's light, never a fill */
.gm-rank[data-rank="S"] { background: var(--ic-yellow); color: #000; }
.gm-rank[data-rank="A"] { background: var(--ok-ink); }
.gm-rank[data-rank="B"] { background: var(--group-ink); }
@keyframes gm-stamp { from { opacity: 0; transform: scale(1.7) rotate(-10deg); } 70% { opacity: 1; transform: scale(.94) rotate(1deg); } to { opacity: 1; transform: none; } }
.gm-share { display: grid; gap: 4px; color: var(--dark); }
.gm-share[hidden] { display: none; }
.gm-share textarea { resize: none; padding: 4px 8px; border: 1px solid var(--line); font: 12px var(--ui); }
/* on a small stage the win screen drops its flavour line so the result, the name field and the ways out fit */
.gm-small .gm-flavor { display: none; }
.gm-cta { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border: 1px solid var(--shade); background: var(--tip); }
.gm-cta p { flex: 1; margin: 0; }
.gm-cta .btn { flex: none; }
/* achievements: a list in a white well, the locked ones greyed */
.gm-dlg.wide { width: min(420px, calc(100% - 24px)); }
/* the key list is long; wide enough that each move fits one or two lines, so it still fits a small stage */
.gm-dlg.keys { width: min(560px, calc(100% - 24px)); }
.gm-ach { list-style: none; margin: 0; padding: 4px; max-height: 250px; overflow-y: auto; background: var(--paper); box-shadow: var(--well); }
.gm-ach li { display: flex; gap: 8px; align-items: center; padding: 4px; color: var(--muted); }
.gm-ach li + li { border-top: 1px solid var(--paper-rule); }
.gm-ach li.on { color: #000; }
.gm-ach b { display: block; color: #000; }
.gm-medal { flex: none; display: grid; }
.gm-ach li:not(.on) .gm-medal { filter: grayscale(1); opacity: .4; }
/* the leaderboard: the win screen's place and name field, and the board itself */
.gm-lb { display: grid; gap: 4px; justify-items: start; padding: 8px 12px; background: #fff; box-shadow: var(--well); }
.gm-lb:empty { display: none; }
.gm-lb p { margin: 0; }
.gm-lb-form { display: grid; gap: 4px; justify-self: stretch; }
.gm-lb-row { display: flex; align-items: center; gap: 8px; }
.gm-lb-row input { flex: 1; min-width: 0; height: 23px; padding: 0 4px; border: 1px solid var(--line); background: #fff; }
.gm-lb-row input:disabled { background: var(--face); color: var(--shade); }
.gm-lb-err { display: flex; align-items: center; gap: 4px; }
.gm-lb-err .px { width: 16px; height: 16px; flex: none; }
.gm-board { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--well); }
.gm-board th { padding: 0; background: var(--col-head); box-shadow: var(--col-head-edge); font-weight: 400; text-align: left; }
.gm-board th span { display: block; padding: 4px 8px; }
.gm-board td { height: 20px; padding: 0 8px; white-space: nowrap; }
.gm-board td:nth-child(2) { width: 100%; }
.gm-board .num { text-align: right; font-variant-numeric: tabular-nums; }
.gm-board .grade { font-weight: 700; text-align: center; }
.gm-board tr.me td { background: var(--sel); color: #fff; }
.gm-board tr.gap td { padding: 0 8px; color: var(--muted); text-align: center; line-height: 1.2; }
.gm-board-body { display: grid; gap: 8px; justify-items: start; }
.gm-board-body > p { margin: 0; }
.gm-board-body > .gm-board { justify-self: stretch; }
.gm-board-note { color: #5a5a5a; }
/* the "bigger screen" gate's copy of the board: top five, room kept while it loads so the dialog doesn't jump */
.gate-board { display: grid; gap: 8px; align-content: start; }
.gate-board.load { min-height: 164px; }
.gate-board p { margin: 0; }
/* the share dialog: the result card's preview (its room kept while it draws), and the ways to send it */
.gm-card-frame { display: grid; place-items: center; aspect-ratio: 1200 / 630; padding: 1px; background: #fff; box-shadow: var(--well); }
.gm-card { display: block; width: 100%; height: auto; }
.gm-card-wait { margin: 0; color: #5a5a5a; }
.gm-share-note { padding: 4px 8px; border: 1px solid var(--shade); background: var(--tip); }
.gm-share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-share-msg { margin: 0; }
.gm-share-msg:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .gm-bar i { width: 100%; } .gm-rank { animation: none; } }

/* ============================================================
   THE STICKMAN ON THE TASKBAR (pet.js): the reward for beating Boss Rush XP
   ============================================================ */
/* his canvas stands on the taskbar's top edge, 78px down its 96px; only his body takes the pointer */
.pet { position: fixed; left: 0; bottom: calc(var(--tb-h) - 18px); z-index: 9100; width: 64px; height: 96px; pointer-events: none; will-change: transform; }
.pet[hidden] { display: none; }
.pet canvas { display: block; width: 64px; height: 96px; }
.pet-hit { position: absolute; left: 18px; top: 20px; width: 28px; height: 58px; padding: 0; border: 0; background: none; pointer-events: auto; cursor: var(--cur-hand, pointer); }
.pet-hit:focus-visible { outline: 1px dotted #000; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #000); outline-offset: 1px; }
/* what he says: an XP balloon over his head */
.pet-say { position: absolute; bottom: calc(100% - 12px); left: 0; margin: 0; width: max-content; max-width: 210px; padding: 4px 8px 8px; background: var(--tip); color: #000; border: 1px solid #000; border-radius: 7px; box-shadow: var(--menu-shadow); font: 12px/1.35 var(--ui); pointer-events: none; }
.pet-say { text-wrap: pretty; }
.pet-say b { display: block; }
.pet-say::before, .pet-say::after { content: ''; position: absolute; left: var(--tail, 50%); border-style: solid; border-color: transparent; }
.pet-say::before { top: 100%; margin-left: -6px; border-width: 6px 6px 0; border-top-color: #000; }
.pet-say::after { top: calc(100% - 1px); margin-left: -5px; border-width: 5px 5px 0; border-top-color: var(--tip); }
/* the tray's note when he is first installed */
.pet-note { position: fixed; right: 10px; bottom: calc(var(--tb-h) + 14px); z-index: 9950; width: min(290px, calc(100vw - 20px)); padding: 8px 28px 8px 12px; background: var(--tip); color: #000; border: 1px solid #000; border-radius: 7px; box-shadow: var(--menu-shadow); font: 12px/1.4 var(--ui); }
.pet-note::before, .pet-note::after { content: ''; position: absolute; right: 44px; border-style: solid; border-color: transparent; }
.pet-note::before { top: 100%; border-width: 12px 0 0 12px; border-top-color: #000; }
.pet-note::after { top: calc(100% - 1px); right: 45px; border-width: 10px 0 0 10px; border-top-color: var(--tip); }
.pet-note b { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.pet-note p { margin: 0; }
/* XP's balloon close box: a drawn cross that raises a hairline box under the pointer */
.pet-x { position: absolute; top: 5px; right: 6px; width: 16px; height: 16px; padding: 0; border: 1px solid transparent; border-radius: 2px; background: none; cursor: var(--cur-hand, pointer); }
.pet-x::before, .pet-x::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6.5px; height: 1.5px; background: #000; }
.pet-x::before { transform: rotate(45deg); }
.pet-x::after { transform: rotate(-45deg); }
.pet-x:hover { border-color: var(--shade); background: var(--hi); }

/* ============================================================
   SCREEN SAVER XP: the second game (the desktop's right-click
   menu → Properties, the screensaver's offer, Boss Rush XP's
   phone gate, Start > Accessories, #/screensaver). Its screen
   draws itself in a shadow root (screensaver.js); the portfolio
   gives it its device, the desktop's balloons, the idle
   screensaver and the reward.
   ============================================================ */
/* the window is a device, after the owner's reference (2026-09-30): warm grey matte plastic lit from above, the screen
   on the left and a panel on the right, parted by seams, with the window's keys, the game's mark, the two keys (sound
   and start/pause, each with its printed name and key) and the game's name at its foot. In a narrow window (a phone, a
   tablet held upright) the keys go into a strip under the screen */
/* a finger steers from anywhere on the device, so the browser must not take a drag that starts off the screen as a scroll */
.win[data-id="screensaver"] { container: saver / size; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.dev { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 176px; grid-template-areas: "scr panel"; column-gap: 12px; padding: 12px 0 12px 12px; border-radius: 24px; color: #211e1b; font: 12px/1.3 var(--ui); -webkit-font-smoothing: antialiased;
  background:
    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%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #928c88 0%, #88827e 70%, #6a6663 100%);
  box-shadow: inset 0 2px rgba(255, 255, 255, .22), inset 0 -3px 6px rgba(0, 0, 0, .28), 0 24px 44px -18px rgba(0, 0, 0, .75), 0 2px 6px rgba(0, 0, 0, .3); }
.win.max .dev { border-radius: 0; }
.dev-scr { grid-area: scr; position: relative; min-width: 0; min-height: 0; }
.dev-scr .gm-note { color: #f1eee9; }
.dev-panel { grid-area: panel; display: grid; grid-template-rows: 112px minmax(0, 1fr) 112px; margin: -12px 0; }
/* a seam between two parts of the plastic: a dark groove over a lit edge */
.dev-keys, .dev-bot { box-shadow: inset 0 1px #57534f, inset 0 2px #a39f9b; }
.dev-top { display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 16px 0 20px; touch-action: none; user-select: none; -webkit-user-select: none; }
.dev-mark { display: flex; align-items: flex-start; gap: 2px; }
.dev-mark .px { --ic-line: #211e1b; --ic-fill: #211e1b; }
.dev-mark i { width: 6px; height: 6px; background: linear-gradient(#c4552e, #c4552e) center / 2px 6px no-repeat, linear-gradient(#c4552e, #c4552e) center / 6px 2px no-repeat; }
.dev-caps { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: #1e1b19; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7), 0 1px rgba(255, 255, 255, .25); }
.dev-cb { position: relative; width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 1px solid #3c3734; display: grid; place-items: center; color: #2a2622; background: radial-gradient(circle at 36% 30%, #e4e0dc 0, #b0aca8 55%, #98948f 100%); box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .25); }
.dev-cb svg { fill: currentColor; }
.dev-cb:hover { background: radial-gradient(circle at 36% 30%, #fff 0, #c9c5c1 55%, #a39f9b 100%); }
.dev-cb:active { box-shadow: inset 0 2px 4px rgba(0, 0, 0, .4); }
.dev-caps :focus-visible { outline: 1px dotted #fff; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #fff); outline-offset: 2px; }
.dev-keys { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.dev-kg { display: grid; justify-items: center; gap: 8px; }
/* the keys' printed names in black, which holds 4.5:1 on the plastic where they sit */
.dev-kg small { font: 700 12px/16px var(--ui); color: #000; white-space: nowrap; }
.dev-kg small span { font-weight: 400; }
.dev-k, .dev-go { position: relative; display: grid; place-items: center; padding: 0; cursor: var(--cur-hand, pointer); transition: transform .06s ease; }
.dev-k { width: 64px; height: 44px; border-radius: 22px; border: 1px solid #3c3734; color: #2a2622; background: linear-gradient(180deg, #cfcbc7, #b0aca8 55%, #98948f); box-shadow: inset 0 1px rgba(255, 255, 255, .6), 0 3px 0 #45403c, 0 6px 8px rgba(0, 0, 0, .35); }
.dev-go { width: 64px; height: 64px; margin-top: 12px; border-radius: 50%; border: 1px solid #3a2419; color: #24130c; background: radial-gradient(circle at 40% 32%, #de7348, #c4552e 55%, #8c391b); box-shadow: 0 3px 0 #5c2814, 0 7px 10px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .25); }
.dev-go::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px dotted rgba(40, 14, 4, .55); }
.dev-k:hover { background: linear-gradient(180deg, #dcd8d4, #bdb9b5 55%, #a39f9b); }
.dev-go:hover { background: radial-gradient(circle at 40% 32%, #e8805a, #cf6038 55%, #973f1e); }
.dev-k:active { transform: translateY(2px); box-shadow: inset 0 1px rgba(255, 255, 255, .6), 0 1px 0 #45403c, 0 3px 5px rgba(0, 0, 0, .35); }
.dev-go:active { transform: translateY(2px); box-shadow: 0 1px 0 #5c2814, 0 4px 6px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .25); }
.dev-k:focus-visible, .dev-go:focus-visible { outline: 2px solid #f1eee9; outline-offset: 3px; }
.dev-bot { display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 20px 20px; }
.dev-print { font: 700 14px/1 var(--ui); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .dev-k, .dev-go { transition: none; } }
@media (pointer: coarse) {
  .dev-caps { gap: 12px; border-radius: 20px; }
  .dev-cb { width: 32px; height: 32px; }
  .dev-cb::after { content: ""; position: absolute; inset: -6px; }
}
/* in a narrow window (a phone, a tablet held upright) the screen is larger with the keys in a 64px strip under it: the
   window's keys on the left, sound and start/pause on the right, without their printed names. The device at a desk is
   near square, so the turn comes a little under square */
@container saver (aspect-ratio < 9 / 10) {
  .dev { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "scr" "panel"; column-gap: 0; row-gap: 8px; padding: 8px 8px 0; }
  .dev-panel { grid-template-rows: none; grid-template-columns: auto minmax(0, 1fr); margin: 0 -8px; min-height: 64px; box-shadow: inset 0 1px #57534f, inset 0 2px #a39f9b; }
  .dev-top { align-items: center; padding: 0 12px; }
  .dev-mark, .dev-bot, .dev-kg small { display: none; }
  .dev-keys { flex-direction: row; justify-content: flex-end; padding: 0 12px; box-shadow: none; }
  .dev-k { width: 56px; }
  .dev-go { width: 52px; height: 52px; margin: 0; }
}
.px-moon { --ic-fill: var(--ic-blue); }
/* a tray balloon whose body is one button beside its close box: the Recycle Bin hint and the screensaver's offer */
.tray-note .note-go { display: grid; gap: 4px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: var(--cur-hand, pointer); }
.tray-note .note-go b { margin-bottom: 0; }
.tray-note .note-go:focus-visible { outline: 1px dotted #000; outline: 2px solid color-mix(in srgb, var(--ph) 55%, #000); outline-offset: 2px; }
/* on a touch screen a balloon's close box keeps its drawn cross inside a 44px press, as Home's mail balloon does (Touch
   Size Rule); the stickman's install note has the same box */
@media (max-width: 720px), (pointer: coarse) {
  .pet-note { padding-right: 44px; }
  .pet-note .pet-x { top: 0; right: 0; width: 44px; height: 44px; border: 0; }
  .pet-note .pet-x::before, .pet-note .pet-x::after { left: 16px; right: 16px; top: 21px; }
}
/* a menu item that would do nothing just then (the game's Pause out of a fight) is greyed, as XP greyed it */
.menu button:disabled, .menu button:disabled:hover { background: none; color: var(--shade); text-shadow: 1px 1px #fff; cursor: var(--cur-arrow, default); }
/* XP's Starfield over everything once the desktop has sat still, the pointer hidden, and the reward's trail of arrows */
.ss-idle { position: fixed; inset: 0; z-index: 10002; width: 100vw; height: 100vh; background: #000; cursor: none; touch-action: none; }
.trails { position: fixed; inset: 0; z-index: 9990; width: 100vw; height: 100vh; pointer-events: none; }

/* ============================================================
   SMALL SCREENS: one maximized window at a time. A phone turned sideways (a short touch screen) counts too;
   app.js, boot.js and wallpaper3d.js ask the same question
   ============================================================ */
@media (max-width: 720px), (max-height: 500px) and (pointer: coarse) {
  .wall3d { display: none; }
  :root { --tb-h: 48px; }
  .task { height: 44px; }
  .task { flex: 0 0 46px; justify-content: center; padding: 0; }
  .tray-lang { height: 32px; min-width: 44px; }
  .win .title { flex-basis: 34px; }
  .tb { width: 28px; height: 28px; }
  .start-btn { height: 100%; }
  .menubar > button { padding: 8px 10px; }
  .chk { min-height: 44px; }
  .statusbar .long { display: none; }
  .statusbar .short { display: inline; }
  .toolbar .tbtn { min-height: 44px; }
  .desk-icons { right: 8px; bottom: auto; grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(4, 1fr); justify-items: center; }
  .win, .win.skinned { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
  .win .tb.max, .win .resize { display: none; }
  /* on a phone the device fills the screen over the taskbar: square at the top, round at its foot, and no maximise */
  .dev { border-radius: 0 0 24px 24px; }
  .dev-caps [data-wact="max"] { display: none; }
  .win.dialog { left: 8px !important; right: 8px; top: 20% !important; width: calc(100% - 16px) !important; height: auto !important; }
  /* Boss Rush XP's gate, taller with its board and Screen Saver XP's button, centres between the top and the taskbar
     and scrolls inside itself rather than run under the taskbar */
  .win[data-id="gamegate"] { top: 8px !important; bottom: 8px; height: fit-content !important; max-height: calc(100% - 16px); margin-block: auto; }
  .toolbar .tbtn { min-width: 44px; }
  .toolbar .tbtn span { display: none; }
  .xp-main { grid-template-columns: 1fr; }
  .xp-pane { display: none; }
  .thumbs { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .thumb .name { font: 700 14px/1.3 var(--ui); }
  .thumb .kw { display: block; max-width: 100%; color: var(--muted); }
  .skin { padding: 0 8px 8px; border-radius: 0; gap: 8px; }
  .pl-cap { margin: 0 -8px; padding: 4px 8px; border-radius: 0; }
  .pl-caps [data-wact="max"] { display: none; }
  .skin-body { display: flex; flex-direction: column; gap: 8px; }
  .skin-body .screen { flex: 1; }
  /* a phone keeps the screen tall: the tray is only the case picker, across the width. It lists nothing (owner's
     request, 2026-09-28): the timeline's notches and the play key move through the page, and the deck's LCD names
     where it is */
  .pl-side { flex: none; padding: 0; background: none; box-shadow: none; }
  .pl-print, .pl-tools, .skin-nav, .pl-side .lcd { display: none; }
  .pl-side .pl-select { display: flex; }
  /* on a phone the deck is two compact rows, laid out like a pocket player and 8px apart everywhere (owner's request,
     2026-09-28): play and the timeline, then the LCD beside the case pair, at the desktop deck's sizes.
     The picker and the Start menu already reach the Portfolio, so its key and the printed labels go */
  .pl-deck { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "play tl tl" "lcd lcd case"; gap: 8px; padding: 8px; border-radius: 16px; }
  .pl-keys { display: contents; }
  .pl-key.big { grid-area: play; }
  .pl-kgrp:has([data-act="prev-case"]) .pl-well { grid-area: case; justify-self: end; }
  .pl-kgrp:has([data-act="stop"]), .pl-keys small { display: none; }
  .skin-logo, .pl-vol small { display: none; }
  .pl-wedge { width: 56px; }
  /* a phone's play key and LCD are smaller still (owner's request, 2026-09-28): a 36px play dome in its rings, and a
     36px LCD with a smaller clock and 12px lines. The case pair follows at 28px so the LCD's row keeps one height;
     every key keeps its 44px reach */
  .pl-key.big { width: 36px; height: 36px; }
  .pl-well .pl-key { width: 28px; height: 28px; }
  .pl-well .pl-key::after { inset: -9px; }
  /* the pair's reaches meet in the middle of the 8px between them, so neither key takes the other's */
  .pl-well .pl-key:first-child::after { right: -5px; }
  .pl-well .pl-key:last-child::after { left: -5px; }
  .pl-deck .lcd { display: flex; height: 36px; gap: 8px; padding: 0 8px; }
  .lcd-text { gap: 0; padding-left: 8px; }
  .lcd-title { font-size: 12px; line-height: 16px; }
  .lcd-now { line-height: 16px; }
  .seg { width: 12px; height: 18px; }
  .seg-colon { width: 4px; height: 18px; }
  .screen { border-radius: 16px; border-width: 5px; }
  .nero { border-radius: 0; }
  /* the tabs already choose the category on a phone, so the combo gives its room to the caption keys */
  .nero-pick { display: none; }
  .nero-ctrl { margin-left: auto; }
  .nero-readout small { display: none; }
  .task { flex-basis: 44px; }
  .task span { display: none; }
  .tray .speaker { display: none; }
}

/* a 320px phone gives the badge's room to the caption, so the player title reads whole */
@media (max-width: 340px) { .pl-badge { display: none; } }

/* Serenity follows the spa palette inside the player: each change of subject has its own visual pause. */
.screen-view[data-case="serenity-spa"] .cs-ch[data-sec="challenge"],
.screen-view[data-case="serenity-spa"] .cs-ch[data-sec="outcome"] {
  background: #253828;
  color: #f5f7f4;
}
.screen-view[data-case="serenity-spa"] .cs-ch[data-sec="challenge"] .cs-quote blockquote p,
.screen-view[data-case="serenity-spa"] .cs-ch[data-sec="outcome"] .cs-title,
.screen-view[data-case="serenity-spa"] .cs-ch[data-sec="outcome"] .cs-lede p { color: #f5f7f4; }
.screen-view[data-case="serenity-spa"] .cs-ch[data-sec="challenge"] .cs-tag,
.screen-view[data-case="serenity-spa"] .cs-ch[data-sec="outcome"] .cs-tag {
  background: #d8f089;
  color: #253828;
}
.screen-view[data-case="serenity-spa"] .cs-ch[data-sec="pages"] {
  row-gap: 0;
  padding-bottom: 0;
  counter-reset: serenity-page;
}
.screen-view[data-case="serenity-spa"] .cs-ch[data-sec="pages"] > .cs-intro {
  padding-bottom: var(--sec);
}
.screen-view[data-case="serenity-spa"] .cs-ch[data-sec="pages"] > .cs-feat {
  counter-increment: serenity-page;
  margin-top: 0;
  padding-block: var(--sec);
  border-top: 1px solid #d6dfd2;
}
.screen-view[data-case="serenity-spa"] .cs-ch[data-sec="pages"] > .cs-feat:nth-child(even) {
  background: #e9efe6;
}
.screen-view[data-case="serenity-spa"] .cs-ch[data-sec="pages"] .cs-flabel {
  display: block;
  list-style: none;
  margin-left: 0;
  color: #253828;
  font: 700 12px/20px var(--ui);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.screen-view[data-case="serenity-spa"] .cs-ch[data-sec="pages"] .cs-flabel::before {
  content: counter(serenity-page, decimal-leading-zero) " / ";
  opacity: .7;
}
.screen-view[data-case="serenity-spa"] .cs-ch[data-sec="mobile"] {
  background: #f0f4ec;
  border-top: 1px solid #d6dfd2;
}
@container (min-width: 760px) {
  .screen-view[data-case="serenity-spa"] .cs-ch[data-sec="mobile"] .cs-row.phones {
    justify-content: center;
    gap: clamp(12px, 3vw, 32px);
  }
}
.screen-view[data-case="serenity-spa"] .cs-ch[data-sec="outcome"] {
  border-top: 8px solid #d8f089;
  padding-bottom: var(--sec);
}
@container (max-width: 759px) {
  .screen-view[data-case="serenity-spa"] .cs-ch[data-sec="pages"] .cs-flabel {
    color: #f5f7f4;
    background: #253828;
  }
}
/* a wide phone window has room for a wider deck: the timeline across the top, then play, the LCD, the text size and
   the case pair in one row, so the LCD is not a long empty strip */
@media (min-width: 560px) and (max-width: 720px) {
  .pl-deck { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "tl tl tl" "play lcd case"; }
}

/* a phone on its side: the screen keeps the whole height, and the caption, the case picker and the deck stand in a
   rail beside it, the deck as the timeline over play and the case pair. The LCD and the text size come back when the
   phone stands up */
@media (max-height: 500px) and (orientation: landscape) and (pointer: coarse), (max-width: 720px) and (max-height: 500px) and (orientation: landscape) {
  .skin { grid-template-columns: minmax(0, 1fr) 224px; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "screen cap" "screen side" "screen deck"; padding: 8px; }
  .skin-body { display: contents; }
  .screen { grid-area: screen; }
  .pl-cap, .win.max .pl-cap { grid-area: cap; margin: 0; padding: 4px 4px 4px 12px; border-radius: 12px; }
  .pl-cap-t { display: none; }
  .pl-caps { margin-left: auto; }
  .pl-side { grid-area: side; }
  .pl-deck { grid-area: deck; grid-template-columns: auto auto; grid-template-areas: "tl tl" "play case"; justify-content: start; }
  .skin .lcd, .pl-vol { display: none; }
}

/* touch: every control in the Portfolio window and the case player is at least 44px, on a phone and on any coarse pointer */
@media (max-width: 720px), (pointer: coarse) {
  /* the chrome takes a finger too: keys XP drew small keep their drawing and get a 44px key round it */
  :root { --tb-h: 48px; }
  .task { height: 44px; }
  .tray-lang::before { inset: -7px -4px; }
  .title .t-btns { gap: 16px; }
  /* the key's reach lies over the window's first 8px, so it stacks above the body */
  .tb { position: relative; z-index: 1; width: 28px; height: 28px; }
  .tb::after { content: ""; position: absolute; inset: -9px; }
  .btn, .btn.lg { min-height: 44px; }
  .page-key, .page-link { min-height: 44px; }
  /* the keys share one width, so where they stack (a phone) they stand as an even pair */
  .page-key { min-width: 240px; }
  .sm-item, .sm-sub .sm-item, .sm-foot .sm-item, .menu button { min-height: 44px; }
  .bin-list .bin-run { min-height: 44px; }
  .radio, .chk { min-height: 44px; }
  .menubar > button { min-width: 44px; min-height: 44px; }
  .tp-links button, .details th button, .pl-ask { min-height: 44px; }
  .details td { height: 44px; }
  .pl-cap { min-height: 48px; }
  /* the caption keys draw a 32px dome inside a 44px reach, 12px apart, so the plate stays light (owner's request,
     2026-09-28); the deck's keys draw the whole 44px */
  .pl-caps { gap: 12px; border-radius: 20px; }
  .pl-cb { position: relative; width: 32px; height: 32px; }
  .pl-cb::after { content: ""; position: absolute; inset: -7px; }
  /* the tray's tools keep their 32px domes 12px apart with the same 44px reach, so the row fits the tray */
  .skin .orb { position: relative; }
  .skin .orb::after { content: ""; position: absolute; inset: -7px; }
  /* the deck's small keys draw 36px domes inside the same 44px reach, 8px apart in their wells (owner's request,
     2026-09-28); the wells stay pills */
  .pl-key { position: relative; width: 36px; height: 36px; }
  .pl-key::after { content: ""; position: absolute; inset: -5px; }
  .pl-well { border-radius: 22px; }
  .skin-nav button { min-height: 44px; }
  .pl-select { height: 44px; }
  .nero-top { flex-basis: 56px; }
  .nero-ctrl { border-radius: 26px; }
  .nero-ctrl button { width: 44px; height: 44px; }
  .nero-pick { height: 44px; }
  .pl-tl { --tl-h: 44px; }
  .pl-vol { --wg-h: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  /* every animation and transition jumps to its end yet still ends, so what waits for an end (a channel number, the
     snow, a pressed key) clears itself even when the setting is switched on mid-visit; loops play once and stop */
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important; }
  .screen-view { scroll-behavior: auto; }
}
