Skip to content

Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.

31.9 KB
Raw Blame
/**
 * Onboarding window (800x640, opaque). Layers, bottom to top: the sky canvas,
 * the other-app window for the drag demo, the real shelf, the laptop frame,
 * the pointer and keys, the text, the intro fog, then the glass lettering.
 * Everything that moves is transform/opacity (or the sky canvas while the
 * camera glides), so the software compositor has little to repaint.
 */
.ob {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #1430d8;
  color: #fff;
  font-family: var(--font-ui);
  user-select: none;
}
.ob-stage,
.ob-scene {
  position: absolute;
  inset: 0;
}
.ob-scene {
  transform: scale(1.06);
  transform-origin: 50% 46%;
}
.ob-focus .ob-scene {
  transform: none;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* The camera over the scene (lens.ts sets its transform and transition per move, and CSS zoom while it
   holds). A fixed size, not inset: under zoom the scene inside must keep its 800 x 640 layout. No
   will-change: it would keep the layer drawn at its unzoomed size and stretch it. */
.ob-lens {
  position: absolute;
  left: 0;
  top: 0;
  width: 800px;
  height: 640px;
  transform-origin: 0 0;
}
[data-motion='reduce'] .ob-lens {
  transform: none !important;
  transition: none !important;
  zoom: 1 !important;
}
/* ...except the last step's pull-back for its choice (CHOICE_VIEW in tour.ts), which makes room for the
   options: there at once. */
[data-motion='reduce'] .ob-choosing .ob-lens {
  transform: var(--ob-choice-move) !important;
  zoom: var(--ob-choice-zoom) !important;
}
.ob-sky {
  position: absolute;
  left: 0;
  top: 0;
  width: 800px;
  height: 640px;
  max-width: none;
  image-rendering: pixelated;
}

/* ---------- the real shelf (inert) ---------- */
.ob-shelf,
.ob-shelf * {
  pointer-events: none !important;
}
.ob-shelf {
  position: absolute;
  inset: 0;
  /* scaled from the middle of the top edge (set inline: shelfTransform), moving with the camera */
  transform-origin: 50% 0;
  transition: transform 0.9s cubic-bezier(0.3, 0.7, 0.2, 1);
  /* The layer stands for the screen: what Panel draws past its edges (the copy tab's part behind the
     edge) is off-screen in the app, so it must not show above the laptop's screen here. The margin lets
     the backing below (and that part of the tab) reach behind the bezel, which covers it. */
  overflow: clip;
  overflow-clip-margin: 6px;
}
/* The bezel and the shelf are separate layers: wherever the camera, or a fractional display scale,
   leaves the screen's top edge between pixels, each covers only part of that row of pixels, and the
   wallpaper behind showed through as a blue line between them. So both get a dark backing at the edge:
   the shelf's black carries on a little way up behind the bezel (::before), and under the shelf's own
   first rows, the width of the bar or of the open shelf (::after; black on black, never seen), so the
   row blends with black, never with sky. */
.ob-shelf::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 6px;
  background: #000;
}
.ob-shelf::after {
  content: '';
  position: absolute;
  /* across the edge, overlapping ::before: no soft edge of either falls on the edge's row */
  top: -2px;
  left: 50%;
  width: var(--ob-bar-w);
  height: 4px;
  transform: translateX(-50%);
  background: #000;
}
/* the open shelf: the dock's width (Panel: the window's width less 60px) */
.ob-shelf.is-open::after {
  width: calc(100% - 60px);
}
/* The last step: the shelf laid out as a 1920 x 1080 monitor at 100% and drawn on the laptop's screen
   (realScreenTransform), so on every edge it is the size it really is on such a screen. Panel sizes a few
   things from the window, which here is not that monitor: the top blade's width (100vw), a side blade's
   height (panelHeight in vh) and its middle (from the window's height); they get the monitor's here
   (realSidePanel, --ob-real-*). The screen's edges land on whole pixels: no backing strips. */
.ob-shelf.is-real {
  right: auto;
  bottom: auto;
  width: 1920px;
  height: 1080px;
}
.ob-shelf.is-real::before,
.ob-shelf.is-real::after {
  display: none;
}
.ob-shelf.is-real .blade-container.blade-top .blade {
  width: 1080px !important;
}
.ob-shelf.is-real .blade-container:not(.blade-top) {
  top: var(--ob-real-mid) !important;
}
.ob-shelf.is-real .blade-container:not(.blade-top) .blade {
  height: var(--ob-real-h) !important;
}
/* A side edge's reverse curves sit just above and below the blade, edge to edge with it (the top edge's
   overlap it): drawn this small, that edge falls between pixels and the wallpaper showed through as a
   line between the curve and the body. Tucked 3px behind the blade (they are under it), the blade's
   edge lies over their black. */
.ob-shelf.is-real .blade-container .flare-top {
  top: -27px;
}
.ob-shelf.is-real .blade-container .flare-bottom {
  bottom: -27px;
}
/* The cards' pictures (file icons, the folders and photos of a stack, the grain) are each kept on a
   pre-drawn layer in the app, sharp there because the shelf is shown 1:1 (item.css). Here the shelf is
   shown scaled (0.72, and the camera zooms it), so those layers were resampled and the glass folders read
   as a milky smear; in the tour they are drawn at the size they are shown. Except while the camera moves
   (.is-moving, lens.ts): redrawing the folders' blur and grain filters on every frame of a move dropped
   frames, so for the move they stay on their layers and are drawn again, sharp, once it holds. */
.ob-lens:not(.is-moving) .ob-shelf .single-file-hero svg,
.ob-lens:not(.is-moving) .ob-shelf .single-file-hero img.file-kind-img,
.ob-lens:not(.is-moving) .ob-shelf .file-kind-opening > .fko-plain,
.ob-lens:not(.is-moving) .ob-shelf .fko-layers > .fil,
.ob-lens:not(.is-moving) .ob-shelf .image-folder-stack-item,
.ob-lens:not(.is-moving) .ob-shelf .file-stack-folder,
.ob-lens:not(.is-moving) .ob-shelf .is-textured::before {
  will-change: auto !important;
}
.ob-shelf .root {
  position: absolute;
}
/* The preview flyout is portaled to <body>, outside the scaled shelf. Same scale around the same point
   (the middle of the top edge) and the same drop to the screen's top edge: zoom scales its own left/top
   too, so the margins add back 400px * (1 - scale) and the shelf's top, in zoomed pixels (/ scale).
   The variables are set from SHELF_SCALE and TOUR_SCREEN_TOP (Onboarding). */
.ob-tour > .pf-wrap {
  zoom: var(--ob-shelf-scale);
  margin-left: calc(400px * (1 - var(--ob-shelf-scale)) / var(--ob-shelf-scale));
  margin-top: calc(var(--ob-shelf-top) / var(--ob-shelf-scale));
}
/* The flyout (only the preview step opens it) can reach nearly to the window's bottom (the app's 460px),
   where the step's text is. The text keeps its place, as on every step (top 444); the flyout's last stretch (its file list
   carries on below, as in a scrolled list) fades out just above it instead of running under it: gone by
   y 434 even at the flyout's full height. The fade is a gradient sized to 77% of the flyout (nothing shows
   past it), so it can give way smoothly: while the camera pans
   the screen up (.ob-preview-pan, PREVIEW_PAN in tour.ts) the flyout moves up with it (translate: in its
   own zoomed pixels, hence / scale) and the fade's size grows past the bottom, so all of it is in view.
   These belong to the flyout itself, not to the step: when the step ends while panned, the flyout glides
   back down with the camera as it closes, instead of jumping. The pan's 0.9s matches the camera's. */
.ob-tour > .pf-wrap {
  mask-image: linear-gradient(to bottom, #000 86%, transparent);
  mask-size: 100% 77%;
  mask-repeat: no-repeat;
  translate: 0 0;
  transition: mask-size 0.9s cubic-bezier(0.5, 0, 0.25, 1), translate 0.9s cubic-bezier(0.5, 0, 0.25, 1);
}
.ob-tour.ob-preview-pan > .pf-wrap {
  mask-size: 100% 130%;
  translate: 0 calc(var(--ob-preview-pan) / var(--ob-shelf-scale));
}
/* The card's right-click menu (and the note editor it turns into) is portaled to <body> too. It opens at
   the pointer (in window pixels) and grows from that corner (its inline transform-origin), so it is scaled
   there to the shelf as the camera shows it: the shelf's scale times the camera's (--ob-menu-scale, set
   by the tour as it opens it). Inert like the shelf: the tour plays it. */
.ob-tour > .card-menu {
  scale: var(--ob-menu-scale, var(--ob-shelf-scale));
}
.ob-tour > .card-menu,
.ob-tour > .card-menu * {
  pointer-events: none !important;
}
/* What the pointer is over (the tour's pointer has no real hover). */
.ob-tour > .card-menu .card-menu-row.is-hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}
.ob-tour > .card-menu .card-menu-row.is-hover .card-menu-icon {
  color: #ffffff;
}
.ob-tour > .card-menu .card-meta-btn.is-primary.is-hover {
  background: #e6e6e6;
}
/* The pointer's twin above the menu, which is drawn above the whole scene (tour.ts twinPointer). */
.ob-cursor.ob-cursor-top {
  position: fixed;
  z-index: 2147483000;
  transform-origin: 0 0;
}
/* Hidden with opacity, not visibility: parts of Panel set visibility inline, which would show through. */
.ob-shelf.is-hidden {
  opacity: 0;
}

/* ---------- the laptop frame ---------- */
/* Welcome and settings: dim only below the laptop, so its screen stays the lit object. */
.ob-below {
  position: absolute;
  /* past the window's sides and bottom: the last step's camera pulls back (lens.ts), and it must still
     reach the window's edges */
  left: -200px;
  right: -200px;
  top: 420px;
  bottom: -200px;
  pointer-events: none;
  background: linear-gradient(rgba(4, 8, 40, 0), rgba(4, 8, 40, 0.5) 88px, rgba(4, 8, 40, 0.62) 220px);
  transition: opacity 0.5s ease;
}
.ob-below.is-off {
  opacity: 0;
}
/* The camera on the laptop. Settings: a close-up framed on the edge the bar is on (that corner of the
   bezel in view, the far side out of frame, the taskbar readable), gliding to another edge when the user
   picks one, and drifting in slowly while it rests (on `translate`, apart from the framing). */
.ob-cam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-origin: 400px 10px;
  transition: transform 0.9s cubic-bezier(0.3, 0.7, 0.2, 1), transform-origin 0.9s cubic-bezier(0.3, 0.7, 0.2, 1);
}
/* The tour: pushed in on the top edge. The top of the laptop stays in view with the bar on it; the
   bezel's sides fade out a little way down and the bottom and base go (TOUR in edgeBar.ts must match). */
.ob-cam.is-tour {
  transform-origin: 400px 10px;
  transform: scale(1.125);
}
.ob-bezel {
  mask-image: linear-gradient(#000 30%, transparent 62%);
  mask-repeat: no-repeat;
  mask-size: 100% 2000px;
  transition: mask-size 0.9s cubic-bezier(0.3, 0.7, 0.2, 1), box-shadow 0.5s ease;
}
.ob-base {
  transition: opacity 0.5s ease;
}
.ob-cam.is-tour .ob-bezel {
  mask-size: 100% 420px;
  box-shadow: none;
}
.ob-cam.is-tour .ob-base {
  opacity: 0;
}
/* Welcome: the camera pushes in on the bar, and the laptop's lower half (bezel, taskbar, base) fades as
   it would run down under the step's text. */
.ob-cam.is-push .ob-bezel {
  mask-size: 100% 420px;
  box-shadow: none;
}
.ob-cam.is-push .ob-base,
.ob-cam.is-push .ob-taskbar.is-on {
  opacity: 0;
  transition: opacity 0.4s ease;
}
/* The screen's taskbar runs 4px past the screen's sides and bottom, under the bezel (painted above it,
   .ob-laptop), so its edges never meet the bezel's edge to edge: wherever that edge fell between pixels
   (the last step's pulled-back camera, a display scale like 125%) the wallpaper showed through the
   see-through bar as a line. What shows is the same 704 x 22 bar: its contents keep their places
   (the extra bottom 4px is padding; the tray sits 4px further in). */
.ob-taskbar {
  position: absolute;
  left: 44px;
  top: 386px;
  width: 712px;
  height: 26px;
  padding-bottom: 4px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 16, 34, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
}
.ob-taskbar.is-on {
  opacity: 1;
}
/* Into the tour it goes at once, before the push-in brings it under the step's text. */
.ob-taskbar:not(.is-on) {
  transition: opacity 0.2s ease;
}
.ob-task-apps {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ob-task-apps i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
}
.ob-task-apps .ob-start {
  display: block;
  flex: none;
  filter: drop-shadow(0 0 2px rgba(80, 170, 255, 0.35));
}
.ob-task-apps .ob-search {
  width: 46px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
}
.ob-task-tray {
  position: absolute;
  right: 12px;
  top: 0;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ob-task-tray span {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 5.6px;
  line-height: 7px;
  color: #fff;
}
.ob-task-tray b {
  font-weight: 500;
}
.ob-laptop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  isolation: isolate;
}
.ob-bezel {
  position: absolute;
  z-index: 1;
  left: 40px;
  top: 10px;
  width: 720px;
  height: 412px;
  box-sizing: border-box;
  border: solid #07080b;
  border-width: 8px 8px 14px;
  border-radius: 14px 14px 6px 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 30, 0.35);
}
.ob-bezel::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -5.5px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #1a1d26;
}
.ob-base {
  position: absolute;
  left: 30px;
  top: 422px;
  width: 740px;
  height: 7px;
  border-radius: 0 0 7px 7px;
  background: linear-gradient(#2b2f3a, #16181f);
  box-shadow: 0 6px 14px rgba(0, 0, 30, 0.4);
}
.ob-bar {
  position: absolute;
  background: #000;
  pointer-events: none;
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1), top 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: ob-bar-in 0.3s ease-out;
}
@keyframes ob-bar-in {
  from {
    opacity: 0;
  }
}
.ob-bar.is-hidden {
  visibility: hidden;
  transition: none;
}

/* ---------- drawn helpers: another app, keys, pointer, drag image ---------- */
.ob-notes {
  position: absolute;
  left: 230px;
  top: 222px;
  width: 340px;
  height: 188px;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  /* a dark Windows 11 window, in the shelf's own greys */
  background: #1d1e22;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 56px rgba(0, 4, 60, 0.5);
  color: #ececef;
  font-size: 11px;
}
.ob-notes-bar {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 12px;
  color: #b8bac2;
  background: #17181b;
}
.ob-notes-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
}
/* the app's icon: a small notepad */
.ob-notes-title i {
  width: 11px;
  height: 12px;
  border-radius: 2.5px;
  background: linear-gradient(#8fb4ff, #4f7bff);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.ob-notes-body {
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ob-notes-body b {
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.ob-notes-body p {
  margin: 0 0 3px;
  color: #a4a7b1;
  font-size: 10.5px;
}
.ob-notes-image {
  margin-top: 8px;
  width: 112px;
  height: 70px;
  border-radius: 6px;
  opacity: 0;
  background: url('../assets/onboarding/summit.png') center / cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: scale(0.8);
  transition: opacity 0.3s cubic-bezier(0.3, 0.8, 0.2, 1), transform 0.3s cubic-bezier(0.3, 0.8, 0.2, 1);
}
/* The card's picture, dropped into the document (tour.ts demoDrag): a class, so a step change leaves it to
   fade out with its window. */
.ob-notes-image.is-in {
  opacity: 1;
  transform: none;
}
/* The browser (copy demo) and File Explorer (drag-in demo): the same dark Windows 11 windows as the notes app. */
.ob-win {
  position: absolute;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  background: #1d1e22;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 56px rgba(0, 4, 60, 0.5);
  color: #ececef;
  font-size: 11px;
}
.ob-win-bar {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 8px;
  color: #b8bac2;
  background: #17181b;
}
.ob-browser {
  left: 168px;
  top: 104px;
  width: 430px;
  height: 208px;
}
.ob-tab {
  height: 22px;
  margin-top: 8px;
  padding: 0 12px 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 7px 7px 0 0;
  background: #1d1e22;
  color: #dfe0e5;
  font-size: 10.5px;
}
.ob-tab i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eceef2;
  color: #222;
  font: 700 8px Georgia, serif;
  font-style: normal;
}
.ob-address {
  margin: 6px 10px 0;
  height: 24px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  background: #2a2c31;
  color: #c9cbd2;
  font-size: 10.5px;
}
.ob-url {
  white-space: nowrap;
}
.ob-site {
  flex: none;
  margin-right: 8px;
  color: #c9cbd2;
}
/* A text selection: Windows' selection blue behind the text, grown from the left as the pointer drags. */
.ob-hl {
  position: absolute;
  inset: -1px -1px;
  z-index: -1;
  border-radius: 2px;
  background: rgba(51, 144, 255, 0.55);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.ob-line {
  isolation: isolate;
}
.ob-page {
  display: flex;
  gap: 16px;
  padding: 14px 18px 0;
}
.ob-article {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.ob-article b {
  font: 400 17px/1.2 Georgia, 'Times New Roman', serif;
  color: #f1f2f5;
  padding-bottom: 6px;
  margin-bottom: 8px;
  align-self: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ob-line,
.ob-rest {
  position: relative;
  white-space: nowrap;
  line-height: 17px;
  font-size: 10.5px;
  color: #c9cbd2;
}
.ob-rest {
  margin-top: 3px;
  color: #8e919b;
}
.ob-photo {
  flex: none;
  width: 124px;
  height: 84px;
  margin-top: 30px;
  border-radius: 6px;
  background: url('../assets/onboarding/summit.png') center / cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
/* The browser's context menu on the photo. */
.ob-menu {
  position: absolute;
  padding: 4px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: #2b2d33;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 28px rgba(0, 0, 30, 0.5);
  font-size: 10px;
  color: #dfe0e5;
  opacity: 0;
  transform: scale(0.96);
  transform-origin: 0 0;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.ob-menu.is-open {
  opacity: 1;
  transform: none;
}
.ob-menu span {
  padding: 5px 26px 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
}
.ob-menu span.is-hover {
  background: rgba(255, 255, 255, 0.1);
}
.ob-explorer {
  left: 196px;
  top: 166px;
  width: 330px;
  height: 260px;
}
.ob-explorer .ob-win-bar {
  padding-left: 12px;
}
/* File Explorer's folder icon */
.ob-folder {
  background: linear-gradient(#ffd66b, #f0b429) !important;
  border-radius: 2px 2px 2.5px 2.5px !important;
  height: 10px !important;
  width: 13px !important;
}
.ob-files {
  position: relative;
  padding: 8px 10px;
}
/* Explorer's selection box, drawn from empty space across the files (left/top/size animated). */
.ob-band {
  position: absolute;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(76, 160, 255, 0.9);
  background: rgba(51, 144, 255, 0.2);
}
.ob-files-head,
.ob-file {
  display: grid;
  grid-template-columns: 1fr 64px;
  align-items: center;
  padding: 0 8px;
}
.ob-files-head {
  height: 22px;
  color: #8e919b;
  font-size: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 4px;
}
.ob-file {
  grid-template-columns: 22px 1fr 64px;
  height: 27px;
  border-radius: 5px;
  transition: background 0.2s;
}
.ob-files-head span:last-child,
.ob-file em {
  text-align: right;
  font-style: normal;
  color: #8e919b;
}
.ob-file img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.ob-file.is-on {
  background: rgba(51, 144, 255, 0.28);
}

/* The other apps' windows: up (is-up, tour.ts showWindow) with a short rise, gone with a fade. */
.ob-win,
.ob-notes {
  transition: opacity 0.26s ease;
}
.ob-win.is-up,
.ob-notes.is-up {
  opacity: 1;
  animation: ob-win-rise 0.42s cubic-bezier(0.3, 0.8, 0.2, 1);
}
@keyframes ob-win-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
}

.ob-keys {
  position: absolute;
  left: 0;
  right: 0;
  top: 282px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  font-size: 12px;
}
.ob-keys > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ob-keys kbd {
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  box-sizing: border-box;
  border-radius: 9px;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  font: 600 13px var(--font-ui);
  box-shadow: 0 3px 0 rgba(0, 0, 40, 0.35), 0 10px 24px rgba(0, 0, 40, 0.3);
}
.ob-cursor {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  filter: drop-shadow(0 1.5px 2.5px rgba(0, 0, 0, 0.45));
}
.ob-cursor svg {
  display: block;
}
.ob-ghost {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 25;
  pointer-events: none;
}
.ob-ghost svg {
  display: block;
}
/* Files dragged out of File Explorer: their icons, see-through (several: a pile, each a step up and to the
   right behind the first, with their count), and "+ Copy" once over a drop target. */
.ob-file-ghost img {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  translate: calc(var(--i, 0) * 5px) calc(var(--i, 0) * -5px);
  opacity: 0.78;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 30, 0.35));
}
.ob-file-ghost b {
  position: absolute;
  left: 30px;
  top: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 9px;
  background: #0067c0;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9);
  color: #fff;
  font: 600 10px/17px var(--font-ui);
  text-align: center;
}
.ob-file-ghost span {
  position: absolute;
  left: 30px;
  top: 50px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 10px;
  color: #ececef;
  background: #2b2d33;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 30, 0.4);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.ob-file-ghost.is-copy span {
  opacity: 1;
}
/* A link dragged out of the browser's address bar: the page's icon, title and address. */
.ob-link-ghost {
  position: absolute;
  left: 0;
  top: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 6px 7px;
  border-radius: 7px;
  white-space: nowrap;
  background: rgba(43, 45, 51, 0.88);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 6px 16px rgba(0, 0, 30, 0.35);
}
.ob-link-ghost i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eceef2;
  color: #222;
  font: 700 9px Georgia, serif;
  font-style: normal;
}
.ob-link-ghost div {
  display: flex;
  flex-direction: column;
  line-height: 12px;
}
.ob-link-ghost strong {
  font-size: 10px;
  font-weight: 600;
  color: #ececef;
}
.ob-link-ghost em {
  font-size: 9px;
  font-style: normal;
  color: #a4a7b0;
}

/* ---------- text ---------- */
.ob-ui {
  position: absolute;
  left: 0;
  right: 0;
  top: 444px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ob-ui.is-locked {
  pointer-events: none;
}
/* Settings: the close-up brings the screen's bottom edge lower, and this step carries the most (the
   options and the last button), so its text sits on the window's bottom edge instead, level with the
   corner buttons: however long the description runs in a language, the button stays in the window. */
.ob-ui.is-low {
  top: auto;
  bottom: 16px;
}
.ob-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 14px;
}
.ob-dots i {
  position: relative;
  overflow: hidden;
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.3s, background 0.3s;
}
.ob-dots i.on {
  width: 18px;
  background: rgba(255, 255, 255, 0.36);
}
/* The active dash's fill: the step's progress under autoplay (scaleX set by Autoplay). */
.ob-dots i b {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.ob-dots i b.is-full {
  transform: none;
}
/* The dots stay centred; the play/pause button hangs off their right end. */
.ob-progress {
  position: relative;
  display: flex;
  justify-content: center;
}
.ob-play {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background 0.2s;
}
.ob-play:hover {
  background: rgba(255, 255, 255, 0.26);
}
.ob-play:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}
.ob-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: ob-copy-in 0.36s cubic-bezier(0.3, 0.8, 0.2, 1);
}
/* New text comes into focus in place (a short blur on a small block, only while it changes). */
@keyframes ob-copy-in {
  from {
    opacity: 0;
    filter: blur(6px);
  }
}
.ob-text {
  display: grid;
  justify-items: center;
}
.ob-text > div {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ob-text > .is-ghost {
  visibility: hidden;
}
.ob-copy h1 {
  margin: 10px 0 0;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.ob-copy p {
  margin: 8px 0 0;
  max-width: 470px;
  font-size: 13px;
  line-height: 18px;
  color: #d6dcf0;
  text-align: center;
}
.ob-primary {
  margin-top: 16px;
  min-width: 156px;
  height: 34px;
  padding: 0 20px;
  border-radius: 17px;
  border: 0;
  background: #0a84ff;
  color: #fff;
  font: 600 13px var(--font-ui);
  cursor: pointer;
  transition: transform 0.1s, filter 0.2s;
}
.ob-primary:hover {
  filter: brightness(1.1);
}
.ob-primary:active {
  transform: scale(0.97);
}
.ob-skip {
  margin-top: 6px;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: #bec4d2;
  font: 13px var(--font-ui);
  cursor: pointer;
}
.ob-skip:hover {
  color: #fff;
}
.ob-controls {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12px;
  color: #d6dcf0;
}
/* The last step's button ends the options row (see Onboarding), sized to its label, so the row clears
   the corner buttons in every language (widest, Spanish: 76px from each side). */
.ob-controls .ob-primary {
  margin: 0 0 0 4px;
  min-width: 0;
  padding: 0 24px;
}
/* The last step's choice opens out under the text once the shelf has shown every edge (a row that grows
   from nothing, so the text above glides up as the camera pulls back to make room). */
.ob-choose {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 0.9s cubic-bezier(0.5, 0, 0.25, 1), opacity 0.25s ease, visibility 0s linear 0.9s;
}
.ob-choose.is-up {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition: grid-template-rows 0.9s cubic-bezier(0.5, 0, 0.25, 1), opacity 0.5s ease 0.4s, visibility 0s;
}
.ob-choose > div {
  min-height: 0;
  /* clipped while it grows; the padding keeps the focus rings and the picked outline inside */
  overflow: hidden;
  padding: 0 6px 4px;
}
.ob-edges {
  display: flex;
  /* the edges in the order they are on the screen, in every language (right-to-left ones too) */
  direction: ltr;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 3px;
}
/* An edge: a small screen in the wallpaper's blue with the bar on that edge, and its name. */
.ob-edge {
  width: 104px;
  padding: 11px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #d6dcf0;
  font: 600 12px var(--font-ui);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.1s;
}
.ob-edge:hover {
  background: rgba(255, 255, 255, 0.14);
}
.ob-edge:active {
  transform: scale(0.97);
}
.ob-edge:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}
.ob-edge[aria-checked='true'] {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 2px #fff;
  color: #fff;
}
.ob-edge-screen {
  position: relative;
  width: 64px;
  height: 40px;
  border-radius: 4px;
  background: linear-gradient(160deg, #4a6cff, #1f3bd6);
  box-shadow: 0 0 0 2px #07080b;
  overflow: hidden;
}
.ob-edge-screen i {
  position: absolute;
  background: #000;
  transition: transform 0.25s ease;
}
.ob-edge-screen.is-left i,
.ob-edge-screen.is-right i {
  top: 10px;
  width: 3px;
  height: 20px;
}
.ob-edge-screen.is-left i {
  left: 0;
  border-radius: 0 3px 3px 0;
}
.ob-edge-screen.is-right i {
  right: 0;
  border-radius: 3px 0 0 3px;
}
.ob-edge-screen.is-top i {
  top: 0;
  left: 20px;
  width: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
}
/* the picked edge's bar stands out a little more */
.ob-edge[aria-checked='true'] .ob-edge-screen.is-left i {
  transform: scaleX(1.5);
  transform-origin: 0 50%;
}
.ob-edge[aria-checked='true'] .ob-edge-screen.is-right i {
  transform: scaleX(1.5);
  transform-origin: 100% 50%;
}
.ob-edge[aria-checked='true'] .ob-edge-screen.is-top i {
  transform: scaleY(1.5);
  transform-origin: 50% 0;
}
.ob-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #d6dcf0;
  font: 12px var(--font-ui);
  cursor: pointer;
}
.ob-toggle i {
  width: 30px;
  height: 18px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  transition: background 0.2s;
}
.ob-toggle i::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 7px;
  background: #fff;
  transition: transform 0.2s;
}
.ob-toggle[aria-pressed='true'] i {
  background: #0a84ff;
}
.ob-toggle[aria-pressed='true'] i::after {
  transform: translateX(12px);
}
.ob-back,
.ob-close {
  position: absolute;
  bottom: 16px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 40;
  -webkit-app-region: no-drag;
}
.ob-back {
  left: 16px;
}
.ob-close {
  right: 16px;
}
.ob-back:hover,
.ob-close:hover {
  background: rgba(0, 0, 0, 0.55);
}
.ob button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- the intro: fog over the scene, the glass word and its out-of-focus copy ---------- */
.ob-fog {
  position: absolute;
  left: 0;
  top: 0;
  width: 800px;
  height: 640px;
  max-width: none;
  pointer-events: none;
}
.ob-focus .ob-fog-heavy {
  opacity: 0;
  transition: opacity 0.55s ease-out;
}
.ob-focus .ob-fog-mid {
  opacity: 0;
  transition: opacity 0.8s ease-out 0.18s;
}
.ob-done .ob-fog {
  visibility: hidden;
}
.ob-letters {
  position: absolute;
  left: 0;
  top: 0;
  width: 800px;
  height: 640px;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  z-index: 50;
}
.ob-letters svg {
  display: block;
}
.ob-focus .ob-letters {
  opacity: 0 !important;
  transition: opacity 0.3s ease-in !important;
}
.ob-done .ob-letters,
.ob-done .ob-letters-blur {
  visibility: hidden;
}
.ob-letters-blur {
  position: absolute;
  max-width: none;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
}
.ob-focus .ob-letters-blur {
  animation: ob-defocus 0.9s ease-out forwards;
}
@keyframes ob-defocus {
  0% {
    opacity: 0;
    transform: none;
  }
  25% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateY(-6px) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ob-copy {
    animation: none;
  }
}