/* The Blue Square (concepts/desk.md): no title bar, a thin blue rule for
   an edge, a viewfinder's corner marks in the look's ink, above every
   window and menu. Its paper is the look's window background; the part
   paints the weave and the camera's readouts in the look's ink and face. */
.square {
  position: fixed;
  z-index: 200000;
  box-sizing: border-box;
  border: 2px solid #2B4BD7;
  background: var(--window-bg, #F6F4EE);   /* the look's paper; the part sets it again as the look changes */
  color: var(--text-main, var(--text-primary, #17150F));   /* the look's ink, for the corner marks; set again as the look changes */
  padding: 0;
  cursor: move;
  touch-action: none;
  user-select: none;
}
.square-weave { display: block; cursor: default; }
/* A viewfinder's corner marks, thick, in the ink; each is a handle that resizes. */
.square-handle { position: absolute; width: 24px; height: 24px; background: none; border: 0 solid currentColor; }
.square-handle.nw { top: -2px; left: -2px; border-top-width: 4px; border-left-width: 4px; cursor: nw-resize; }
.square-handle.ne { top: -2px; right: -2px; border-top-width: 4px; border-right-width: 4px; cursor: ne-resize; }
.square-handle.se { bottom: -2px; right: -2px; border-bottom-width: 4px; border-right-width: 4px; cursor: se-resize; }
.square-handle.sw { bottom: -2px; left: -2px; border-bottom-width: 4px; border-left-width: 4px; cursor: sw-resize; }
/* On a phone it is a fixed size at the bottom corner, above the taskbar. */
@media (max-width: 599px) {
  .square { left: auto !important; top: auto !important; right: 8px; bottom: calc(var(--taskbar-height, 48px) + 8px); width: 200px !important; height: 200px !important; }
  body.taskbar-top .square { bottom: 8px; }
  .square-handle { pointer-events: none; }   /* the marks stay; the size is fixed */
}
