/* The pixel rung: the desktop as the product paints it (shell-desktop scene `pixels`), the stylesheet both pages load
   after UI's document.css, which lays each window's document out. Every
   region stands at the box the product answers, in the order it answers them; nothing here decides a place, a size, a
   color or a type: it lays text out inside the product's boxes, and holds structure alone (.schema/PAINTER.json
   `structure`). A window the product places partly past the screen's edge is cut there: the desk clips and never
   scrolls, so focusing what lies past the edge cannot shift a box. Every length here that no region's box decides, a
   gap, a padding, an icon, the desk's own type, is the frame's (`lengths`, set on the desk as the custom property of
   its name), so it grows as the form and the person's text size grow it, and the page scales nothing itself: a literal
   is a hairline, 1px, or none. Every paint and type a part takes that no region answers, a weight, a tracking, a
   family, a share, an opacity, a shadow, is the frame's too (`styles`, which painter.js sets where each part stands). */
#desk, #desk * { box-sizing: border-box; }
#desk { font-size: var(--type); }
#desk { position: absolute; inset: 0; overflow: hidden; overflow: clip; outline: none; user-select: none; }
/* One finger's motion is the page's to send (a drag, a resize, a gesture) but where a window's content pans on its own
   axis, and two fingers zoom the page, as a person asks of any page. */
#desk { touch-action: pinch-zoom; }
#desk [data-region] { position: absolute; }
#desk .icon { display: flex; flex-direction: column; align-items: center; gap: var(--icon-gap); padding: var(--icon-pad-y) var(--icon-pad-x); cursor: default; }
#desk .tile { width: var(--icon-tile); height: var(--icon-tile); flex: none; display: grid; place-items: center; position: relative; overflow: hidden; }
#desk .tile .hi { position: absolute; }
/* A tile's initial in white or black wherever each reads on what shows through the tile: the product's stops. */
#desk .tile .initial { position: absolute; inset: 0; display: grid; place-items: center; background-image: linear-gradient(180deg, var(--ink));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
#desk .icon .name { text-align: center; max-width: var(--icon-name); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#desk .win { overflow: hidden; }
#desk .win .bg, #desk .win .edge { position: absolute; inset: 0; pointer-events: none; }
#desk .bar { cursor: default; }
#desk .title { display: flex; align-items: center; overflow: hidden; white-space: nowrap; pointer-events: none; }
#desk .title.center { justify-content: center; }
#desk .title span { min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 0 var(--title-pad); }
#desk .title img + span { padding-left: var(--title-gap); }
#desk .title span.plate { flex: none; margin: auto; }
#desk .ctl { border: 0; padding: 0; background: transparent; display: grid; place-items: center; cursor: default; font: inherit; }
#desk .ctl > span { grid-area: 1 / 1; display: grid; place-items: center; }
#desk .ctl .glyph.hide { color: transparent; }
#desk .win:has(.ctl:hover) .ctl .glyph.hide { color: inherit; }
#desk .grip.se { cursor: nwse-resize; } #desk .grip.e { cursor: ew-resize; } #desk .grip.s { cursor: ns-resize; }
#desk .menubar { display: flex; align-items: center; justify-content: space-between; }
#desk .menubar .left, #desk .menubar .right { display: flex; align-items: center; gap: var(--bar-gap); min-width: 0; }
#desk .menubar .app { padding: 0 var(--app-pad); white-space: nowrap; }
#desk .menubar button, #desk .dock button, #desk .task button { border: 0; background: transparent; font: inherit; cursor: default; white-space: nowrap; position: relative; display: inline-flex; align-items: center; padding: 0 var(--button-pad); flex: none; min-width: 0; }
#desk .menubar button .t, #desk .dock button .t, #desk .task button .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#desk .task { display: grid; align-items: center; }
#desk .task button { padding: 0 var(--task-pad); }
#desk .task [data-task] { flex: 0 1 auto; min-width: var(--task-least); }
#desk .task .left, #desk .task .mid, #desk .task .right { display: flex; align-items: center; gap: var(--task-gap); min-width: 0; }
#desk .task .mid { justify-content: center; } #desk .task .right { justify-content: flex-end; overflow: hidden; }
#desk .task .left button { max-width: var(--task-most); }
#desk .task .left, #desk .menubar .left, #desk .dock .col { overflow: auto; scrollbar-width: none; }
#desk .menubar .right { flex: none; }
#desk .tray { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 var(--tray-pad); min-width: 0; }
#desk .mark { position: absolute; left: 0; right: 0; margin: 0 auto; bottom: var(--mark-off); height: var(--mark); border-radius: var(--mark-radius); }
#desk .sep { width: 1px; background: currentColor; margin: 0 var(--sep-margin); flex: none; }
#desk .dots { display: grid; grid-template-columns: repeat(3, var(--dot)); gap: var(--dots-gap); } #desk .dots i { width: var(--dot); height: var(--dot); background: currentColor; }
#desk .snap { display: none; pointer-events: none; }
#desk .menu { display: flex; overflow: hidden; }
#desk .menu.screen { justify-content: center; padding-top: var(--screen-top); }
#desk .menu .mbanner { flex: none; position: relative; }
/* The band's words in black or white wherever each reads on it: the product's stops, clipped to the words. */
#desk .menu .mbanner span { position: absolute; inset: 0; display: flex; align-items: center; padding: var(--banner-pad) 0; writing-mode: sideways-lr;
  background-image: linear-gradient(180deg, var(--ink)); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: var(--banner-type); white-space: nowrap; overflow: hidden; }
@supports not (writing-mode: sideways-lr) { #desk .menu .mbanner span { writing-mode: vertical-rl; transform: rotate(180deg); background-image: linear-gradient(0deg, var(--ink)); } }
#desk .menu .mmain { flex: 1; display: flex; flex-direction: column; min-width: 0; }
#desk .menu .mbody { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: var(--menu-gap); }
#desk .menu .mcols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
#desk .menu .mcol { padding: var(--column-pad); }
#desk .menu .mlist { display: flex; flex-direction: column; gap: var(--list-gap); }
#desk .menu .mlist.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--grid-least), 1fr)); gap: var(--grid-gap); }
#desk .menu .mlist.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tiles-least), 1fr)); gap: var(--grid-gap); }
#desk .menu .mi { border: 0; background: transparent; color: inherit; font: inherit; cursor: default; display: flex; align-items: center; gap: var(--item-gap); padding: 0 var(--item-pad); text-align: left; flex: none; position: relative; }
#desk .menu .mi span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#desk .menu .mi.cell { flex-direction: column; justify-content: center; padding: 0 var(--cell-pad); gap: var(--cell-gap); text-align: center; }
#desk .menu .mi.cell .init { width: var(--init); height: var(--init); display: grid; place-items: center; flex: none; }
#desk .menu .mi.tile { flex-direction: column; align-items: flex-start; justify-content: space-between; padding: var(--tile-pad); }
#desk .menu .mrule { flex: none; margin: 0 var(--rule-margin); }
#desk .menu .msearch { display: flex; align-items: center; gap: var(--search-gap); padding: 0 var(--search-pad); flex: none; }
#desk .menu .mhead, #desk .menu .mfoot { display: flex; align-items: center; padding: 0 var(--head-pad); flex: none; }
#desk .menu .mhead { margin: calc(-1 * var(--menu-pad)) calc(-1 * var(--menu-pad)) 0; } #desk .menu .muser { display: flex; align-items: center; gap: var(--user-gap); }
#desk .menu.screen .mhead { margin: 0; }
/* The kiosk's word when its host does not answer: over the desk, in the page's own type, never the product's look. */
#failed { position: fixed; left: 0; right: 0; bottom: 0; margin: 1em; padding: 0.75em 1em; background: #000; color: #fff; border: 0.125em solid #fff; font: 1rem/1.4 system-ui, sans-serif; }
