/* The interactive Dew window: a copy of the app's window, laid out in the app's own points (1 CSS px = 1 pt) at
   --dw x --dh and scaled to fit its box. Every size, colour and radius below comes from the app's code
   (Sources/DewCore/DesignSystem/Tokens.swift `Metrics`, Embossed.swift, AppletGrid.swift, the sidebar rows and the top
   bar) and was checked against a 2x capture of the real window, then against the owner's Chef window in Dew's Light
   theme (site/research/style-ref-chef-window.png): an opaque warm frame, white applet cards, the top bar's grey band. */
.dew-stage { position: relative; width: 100%; aspect-ratio: var(--dw, 1200) / var(--dh, 780); }
.dew-scaler { position: absolute; left: 0; top: 0; width: calc(var(--dw, 1200) * 1px); height: calc(var(--dh, 780) * 1px); transform-origin: 0 0; }

.dew {
  /* Brand colours (DesignSystem.xcassets Colors/Brand). */
  --mandarin: #ff9638; --raspberry: #ff4d70; --fig: #9272ff;
  --accent: var(--mandarin);
  --ink: rgba(0, 0, 0, .85);            /* labelColor */
  --ink-2: rgba(0, 0, 0, .5);           /* secondaryLabelColor */
  --ink-3: rgba(0, 0, 0, .26);
  --line: rgba(0, 0, 0, .05);
  --pill: color-mix(in srgb, var(--accent) 25%, transparent);          /* the selected page's pill: accent at 25 % */
  --pill-hover: color-mix(in srgb, var(--accent) 16.7%, transparent);  /* hover: two thirds of it */
  --tile-on: color-mix(in srgb, var(--raspberry) 25%, transparent);    /* the current workspace's tile */
  --chip: rgba(0, 0, 0, .08);                                          /* frameHighlight on glass */
  --side-tint: color-mix(in srgb, var(--fig) 25%, transparent);
  /* The colour behind the glass welcome page (mock.js `magic`). */
  --behind: #fffcfa;
  position: relative; width: 100%; height: 100%;
  border-radius: 20px; overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .22), 0 22px 60px -8px rgba(8, 30, 70, .42), 0 8px 22px -6px rgba(8, 30, 70, .22);
  font: 13px/16px var(--dew-font, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif);
  color: var(--ink); user-select: none; -webkit-user-select: none; outline: none;
  -webkit-font-smoothing: antialiased;
}
.dew * { box-sizing: border-box; }
:where(.dew) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.dew svg { display: block; }

/* The frame: Light's static background, opaque (Color.staticBackground #fffcfa; the Chef window's frame measures #fffdf9).
   --dew-frame replaces it (the themed windows paint their theme's frame there, with --dew-glass for their glass). Under a
   glass page it's cut away (mock.js `cutFrame`). */
.dew-frame { position: absolute; inset: 0; z-index: 0;
  background: var(--dew-frame, #fffcfa); transition: background-color .45s ease;
  -webkit-backdrop-filter: var(--dew-glass, none); backdrop-filter: var(--dew-glass, none); }
.dew-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .55); }

/* Stoplights: 12 pt circles, 7 apart, raspberry / mandarin / fig with a 1 pt rim of their colour at 50 % (multiply). */
.dew-lights { position: absolute; z-index: 8; left: 15px; top: 21.5px; display: flex; gap: 7px; pointer-events: none; }
.dew-lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.dew-lights i:nth-child(1) { background: var(--raspberry); box-shadow: inset 0 0 0 1px #fe3957; }
.dew-lights i:nth-child(2) { background: var(--mandarin); box-shadow: inset 0 0 0 1px #fe7d29; }
.dew-lights i:nth-child(3) { background: var(--fig); box-shadow: inset 0 0 0 1px #7859ff; }

/* Top-bar buttons: 28 pt tall, 5 pt corners, 16 pt symbols in the secondary colour. */
.dew-icon { width: 28px; height: 28px; border-radius: 5px; display: grid; place-items: center; color: var(--dew-band-ink, var(--ink-2)); flex: none; }
.dew-icon:hover { background: var(--chip); }

/* The app's icons (assets/icons): each file drawn in its role's colour through a mask, at its own size. */
.dew .ic { display: block; flex: none; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.dew svg.ic { background: none; -webkit-mask: none; mask: none; }

/* Sidebar, Tara safe space off (the owner's): no workspace column; the workspace's title over the page column, the
   workspaces dropping under the title in a row, and the corner buttons along its foot. 242 pt wide (--sb; the owner,
   24 Nov: 15 % wider than the 210 pt it was): the page column 8 pt in from both sides, the search button 39 pt in from
   its right edge, the page card 1 pt past it, as a real window at a given width has them. */
.dew { --sb: 242px; }
.dew-sidewrap { position: absolute; z-index: 4; left: 0; top: 0; bottom: 0; width: calc(var(--sb) + 1px);
  transition: transform .21s cubic-bezier(.3, .7, .2, 1), opacity .15s; }
.dew-sbtn { position: absolute; left: 83.5px; top: 14.5px; }
.dew-sfind { position: absolute; left: calc(var(--sb) - 39px); top: 14px; }
.dew-sbtn2 { display: none; }
.dew-side { position: absolute; left: 8px; top: 49px; bottom: 49px; width: calc(var(--sb) - 16px); display: flex; flex-direction: column; }

/* Applets: favicon tiles, three to a row 16 pt apart (AppletGrid.columnSpacing), each a light chip in the applets'
   emboss (AppletTileSurface: white at 42 %, EmbossedEdges); empty, the dashed box that says what to do. */
.dew-applets { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 16px; row-gap: 6px; flex: none; position: relative; }
.dew-applet { height: 42px; border-radius: 10px; display: grid; place-items: center; position: relative; background: rgba(255, 255, 255, .42); transition: background-color .1s; }
.dew-applet .fav { width: 18px; height: 18px; border-radius: 3.8px; }
/* The open applet takes the selection tint at 28 %, a hovered one 14 % (AppletTile `lit`). */
.dew-applet:hover { background: color-mix(in srgb, var(--accent) 14%, rgba(255, 255, 255, .42)); }
.dew-applet.on { background: color-mix(in srgb, var(--accent) 28%, rgba(255, 255, 255, .42)); }
/* A free place (AppletSlot): 13 pt plus at 28 % (50 % hovered) on a 1 pt dashed 3 / 3 outline at 20 %, solid at 32 %
   hovered. While a page is dragged its place stays empty. */
.dew-appslot, .dew-addbox { height: 42px; border-radius: 10px; display: grid; place-items: center; color: rgba(0, 0, 0, .28);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect x='.5' y='.5' width='calc(100%25 - 1px)' height='calc(100%25 - 1px)' rx='9.5' fill='none' stroke='%23000' stroke-opacity='.2' stroke-dasharray='3 3'/%3E%3C/svg%3E");
  transition: color .1s, transform .1s; }
.dew-appslot:hover, .dew-addbox:hover { color: rgba(0, 0, 0, .5); background: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .32); }
.dew-appslot:active, .dew-addbox:active { transform: scale(.95); }
.dew-slot-empty { height: 42px; }
/* No applet yet (AppletAddBox): one dashed box, "Add applets +" over "or drag a page here to pin it". */
.dew-applets.empty { grid-template-columns: 1fr; }
.dew-addbox { width: 100%; color: rgba(0, 0, 0, .38); text-align: center; align-content: center; }
.dew-addbox:hover { color: rgba(0, 0, 0, .6); }
.dew-addbox b { font-weight: 400; font-size: 13px; line-height: 15px; display: flex; gap: 6px; align-items: center; justify-content: center; }
.dew-addbox span { font-size: 11px; line-height: 13px; margin-top: 1px; }
/* Where a dragged page is pinned: around the whole set while it has room (PageDropOutline in the applets' tint). */
.dew.dragging .dew-applets:not(.full) { outline: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; border-radius: 12px; }
.dew-applets.hot { background: color-mix(in srgb, var(--accent) 12%, transparent); outline-color: var(--accent) !important; }

/* The emboss (EmbossedEdges): a soft shadow outside, down and right, and a thin light from the bottom-right corner
   up the right side and along the top. */
.dew-emboss { box-shadow: .75px 1.25px 3px rgba(0, 0, 0, .115); }
.dew-emboss::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: .75px;
  background: linear-gradient(to bottom right, rgba(255,255,255,0) 0%, rgba(255,255,255,.47) 4%, rgba(255,255,255,.55) 70%, rgba(255,255,255,.47) 92%, rgba(255,255,255,.14) 100%);
  -webkit-mask: linear-gradient(to top right, transparent 50%, #000 50%), linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: source-in, xor;
  mask: linear-gradient(to top right, transparent 50%, #000 50%), linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: intersect, exclude; }

/* The workspace's title (WorkspaceRowTitleView): its icon (14 pt emoji in the 25 pt icon column), then its name in
   15 pt semibold, kerning 0.1. Its icon and name are the workspaces button: resting on them drops the row; while the
   row is out the title sits on a pill, its icon raised on a white disc, and the ⋯ shows at its end. */
.dew-ws-title { position: relative; display: flex; align-items: center; height: 36px; margin-top: 16.5px; border-radius: 10px; flex: none; }
.dew-ws-title .who { flex: 1; min-width: 0; display: flex; align-items: center; height: 36px; padding: 0 10px 0 3px; gap: 5px; cursor: default; }
.dew-ws-title .wi { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; line-height: 1; transition: background .15s, box-shadow .15s; }
.dew-ws-title .nm { font-weight: 600; font-size: 15px; letter-spacing: .1px; color: var(--ink); }
.dew-ws-title .more { margin-left: auto; width: 25px; height: 28px; display: grid; place-items: center; color: rgba(0, 0, 0, .51); opacity: 0; }
.dew-ws-title .more .ic { transform: rotate(-90deg); }
.dew.wsrow-open .dew-ws-title, .dew-ws-title:hover { background: rgba(0, 0, 0, .075); }
.dew.wsrow-open .dew-ws-title .more, .dew-ws-title:hover .more { opacity: 1; }
.dew.wsrow-open .dew-ws-title .wi { background: rgba(240, 243, 243, .85); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }

/* The workspace row (WorkspaceRowController, WorkspaceRowView): under the title's pill, its bottom + 4 pt (mock.js
   places it), as wide as it; at rest the page rows' emboss on the frame's own colour, opaque, 10 pt corners, so the
   pages under it don't show. Tiles 28 pt, 12 pt in, 18 pt apart at least (WorkspaceGridPlan). */
.dew-wsrow { position: absolute; z-index: 6; left: 0; right: 0; top: 0; height: 52px;
  opacity: 0; transform: translateY(-6px) scaleY(.9); transform-origin: 50% 0; pointer-events: none; transition: opacity .16s, transform .2s cubic-bezier(.3, .7, .2, 1); }
.dew.wsrow-open .dew-wsrow { opacity: 1; transform: none; pointer-events: auto; }
.dew-wsrow .card { position: relative; height: 100%; border-radius: 10px; background: var(--dew-frame, #fffcfa);
  box-shadow: .75px 1.25px 3px rgba(0, 0, 0, .115), 0 0 0 .5px rgba(0, 0, 0, .05); }
.dew-wsrow .tile { position: absolute; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; font-size: 12.5px; line-height: 1; }
.dew-wsrow .tile:hover { background: rgba(0, 0, 0, .06); }
.dew-wsrow .tile.on { background: color-mix(in srgb, var(--accent) 8%, rgba(220, 220, 222, .9)); }
.dew-wsrow .tile.ring { box-shadow: 0 0 0 2px var(--accent); }

/* The pages (TabColumnView): locked ones above the line, the rest under it, from New Page down. */
/* The list scrolls itself (TabListTable's scroll view): the wheel moves it and never the page around the window; no
   scroll bar at rest; a fade at its foot while more is below. */
.dew-scroll { flex: 1; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: none; margin-top: 5.75px; padding-top: 3.5px; }
.dew-scroll::-webkit-scrollbar { display: none; }
.dew-scroll.more { -webkit-mask: linear-gradient(#000 calc(100% - 28px), transparent); mask: linear-gradient(#000 calc(100% - 28px), transparent); }
/* Scrolled down, the list also fades in under the workspace's title instead of cutting a row in half. */
.dew-scroll.scrolled { -webkit-mask: linear-gradient(transparent, #000 18px); mask: linear-gradient(transparent, #000 18px); }
.dew-scroll.scrolled.more { -webkit-mask: linear-gradient(transparent, #000 18px, #000 calc(100% - 28px), transparent); mask: linear-gradient(transparent, #000 18px, #000 calc(100% - 28px), transparent); }
.dew-list { position: relative; display: flex; flex-direction: column; padding-bottom: 8px; }
/* The pages under the line keep the 40 pt rhythm (TabListTable): a column, so the rows' 2 pt margins don't collapse
   (as a plain block they did, and the rows after a folder sat 38 pt apart). */
.dew-items { display: flex; flex-direction: column; }
.dew-sect { height: 12px; line-height: 12px; display: flex; align-items: center; gap: 6px; padding-left: 10px; font-weight: 600; font-size: 12px; color: rgba(0, 0, 0, .52); flex: none; }
.dew-sect.main { color: var(--accent); margin: -3.5px 0 7.75px; }
.dew.dragging .dew-sect.main { margin: 4.5px 0 8.5px; }
.dew-sect.side { margin: 14.5px 0 8.25px; }

/* The line under the locked pages (WorkspaceActionsRow): the lock (when there are locked pages), the hairline, Tidy's
   broom and Clear (12 pt medium). */
.dew-divider { display: flex; align-items: center; height: 34.5px; padding: 0 0 0 10px; flex: none; color: rgba(0, 0, 0, .55); }
.dew-divider .lk { margin: 0 4px 0 1.5px; }
.dew-divider .line { flex: 1; height: 1px; background: rgba(0, 0, 0, .06); margin: 0 10px 0 4px; }
.dew-divider:not(.has-lock) .line { margin-left: 0; }
/* Tidy's broom (TidyBroomButton): 65 % at rest, 90 % on an 8 % chip hovered; it sweeps while Tidy works. Both buttons
   0.45 while they have nothing to do. */
.dew-divider .broom { width: 26px; height: 22px; display: grid; place-items: center; color: rgba(0, 0, 0, .55); border-radius: 7px; margin-right: 2px; }
.dew-divider .broom:not([disabled]):hover { color: rgba(0, 0, 0, .78); background: rgba(0, 0, 0, .08); }
.dew-divider .broom.busy .ic { animation: dew-sweep 1.1s ease-in-out infinite; transform-origin: 62% 91%; }
@keyframes dew-sweep { 50% { transform: translate(1.5px, -2px) rotate(-17deg); } }
.dew-divider button[disabled] { opacity: .45; cursor: default; }
.dew-divider.hot .line { background: var(--accent); height: 2px; }
.dew-divider.side-line { height: 20px; }
.dew-divider.side-line[data-drop] { height: 30px; }
.dew-divider .clear { font-size: 12px; font-weight: 500; color: rgba(0, 0, 0, .55); padding: 0 8px 0 7px; height: 24px; border-radius: 6px; }
.dew-divider .clear:not([disabled]):hover { color: var(--raspberry); background: color-mix(in srgb, var(--raspberry) 12%, transparent); }
.dew-divider .above { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: rgba(0, 0, 0, .45); padding-right: 8px; }
.dew-divider .above .ic { opacity: .9; }

/* While a page is dragged: "Drop here to lock" above the line, the page's place as a dashed slot, the Side drop area
   (the app's drop outline: a 2 pt dashed line). */
.dew-lockdrop, .dew-slot, .dew-sidedrop { flex: none; border-radius: 10px; border: 2px dashed color-mix(in srgb, var(--accent) 50%, transparent);
  display: flex; align-items: center; justify-content: center; gap: 6px; }
.dew-lockdrop { height: 38px; margin: 5px 0 6.75px; color: var(--accent); font-weight: 500; }
.dew-slot { height: 34px; margin: 2.5px 0 3.5px; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.dew-sidedrop { height: 40px; margin-top: 4px; border-color: color-mix(in srgb, var(--fig) 40%, transparent); color: color-mix(in srgb, var(--fig) 75%, #fff); font-weight: 500; }
.dew-lockdrop.hot { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.dew-sidedrop.hot { background: color-mix(in srgb, var(--fig) 14%, transparent); }

/* Page rows: a 36 pt pill in a 40 pt row, 10 pt corners; a 15 pt favicon 10.5 pt in, the title 10 pt after it, in the
   label colour (the Chef window's rows all measure it). Hovered: ⋯, the lock, and Done (unlocked pages). */
.dew-row { display: flex; flex: none; align-items: center; height: 36px; margin: 2px 0; padding: 0 6px 0 10.5px; border-radius: 10px; gap: 10px;
  position: relative; cursor: default; touch-action: none; color: var(--ink); }
.dew-row:hover { background: var(--pill-hover); }
.dew-row.active { background: var(--pill); color: var(--ink); }
.dew-row.side-active { background: rgba(0, 0, 0, .08); color: var(--ink); }
.dew-row .fav { width: 15px; height: 15px; border-radius: 3.2px; flex: none; display: grid; place-items: center; object-fit: contain; margin: 0 1px 0 -1px; }
.dew-row .fav.none, .dew-tbar .fav.none { color: rgba(0, 0, 0, .1); }
/* Dew's own pages, and sites with no icon of their own: the Dew icon's sun and water, no tile. */
.dew .fav.mark { border-radius: 0; object-fit: contain; }
.dew-row .fav.plus { color: rgba(0, 0, 0, .4); }
.dew-row .fav.plus .ic { transform: translateX(-.5px); }
.dew-row .t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dew-row.strike .t, .dew-row.striking .t { text-decoration: line-through; text-decoration-thickness: 1px; }
.dew-row:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: -2px; }
/* Hovered (TabRowView): ✓ at once on an unlocked page; ⋯ and the lock slide in after 0.3 s (`.long`); a locked page
   shows its lock with the pointer at once. */
.dew-row .acts { display: none; align-items: center; margin-left: auto; }
.dew-row:hover .acts { display: flex; }
.dew-row .act { width: 25px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: rgba(0, 0, 0, .6); opacity: .85; }
.dew-row .act.more .ic { transform: rotate(-90deg); }
.dew-row .act:hover { opacity: 1; background: rgba(0, 0, 0, .08); }
.dew-row .act.more, .dew-row:not(.locked) .act.lockb { display: none; }
.dew-row.long .act.more, .dew-row.long .act.lockb { display: grid; animation: dew-slide .15s ease-out; }
@keyframes dew-slide { from { opacity: 0; transform: translateX(10px); } }
.dew-row.frow .acts .act { display: grid; }
.dew-row.new { color: rgba(0, 0, 0, .4); }
.dew-row.new:hover { background: var(--chip); color: rgba(0, 0, 0, .55); }
.dew-row.new .fav { overflow: visible; }
.dew-row.leaving { animation: dew-leave .2s ease forwards; }
/* A sub-page (TabRowView `isSubTab`): its pill one icon column in (5 + 25 pt), and in that column the L-dot mark
   (SubTabIndicator): 2 pt dots 4 pt apart, one above, then the corner and one to its right (a third while the page is
   open), at 35 % (the accent, full, on the open page). */
.dew-row.sub { margin-left: 30px; }
.dew-row.sub .subdots { position: absolute; left: -25px; top: 9px; width: 18px; height: 18px; margin-left: 3.5px; pointer-events: none; color: #000; opacity: .35; }
.dew-row.sub .subdots i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: currentColor; top: 8px; }
.dew-row.sub .subdots i:nth-child(1) { left: 8px; top: 4px; } .dew-row.sub .subdots i:nth-child(2) { left: 8px; }
.dew-row.sub .subdots i:nth-child(3) { left: 12px; } .dew-row.sub .subdots i:nth-child(4) { left: 16px; display: none; }
.dew-row.sub .subdots.on { color: var(--accent); opacity: 1; } .dew-row.sub .subdots.on i:nth-child(4) { display: block; }
.dew-row.sub:hover .subdots { opacity: 1; }
@keyframes dew-leave { to { opacity: 0; transform: translateX(-20px); } }

/* Folders (FolderMetrics): the caret where a favicon is, the folder's icon one indent in (its emoji, 16 pt; without one,
   its outline in the accent colour), its name in semibold; its pages on a card pressed into the frame (a darker rim, a
   light edge under it), 4 pt in from them, 14 pt corners. */
.dew-folder { display: flex; flex-direction: column; flex: none; }
.dew-row.frow { color: var(--ink); font-weight: 600; gap: 0; }
/* The header hovered: a third of a page's tint (SidebarTint.headerHover) in the emboss; closed, "· 3 pages". */
.dew-row.frow:hover { background: color-mix(in srgb, var(--accent) 8.33%, transparent); box-shadow: .75px 1.25px 3px rgba(0, 0, 0, .115); }
.dew-row.frow .count { font-weight: 400; font-size: 12px; color: rgba(0, 0, 0, .5); margin-left: 5px; }
/* Opened and closed in place (mock.js): the pages and the count follow the class. */
.dew-folder:not(.open) > .kids, .dew-folder.open > .frow .count { display: none; }
.dew-row.frow .count i { font-style: normal; color: rgba(0, 0, 0, .35); }
.dew-row.frow .ficon .em { font-size: 16px; line-height: 1; font-weight: 400; }
.dew-row.frow .caret { width: 15px; margin-left: -1px; display: grid; place-items: center; color: rgba(0, 0, 0, .42); flex: none; }
.dew-row.frow .caret .ic { transform: scale(.5, .62); transition: transform .14s; }
.dew-folder.open > .frow .caret .ic { transform: rotate(90deg) scale(.5, .62); }
.dew-row.frow .ficon { color: var(--accent); width: 25px; margin-left: 10px; display: grid; place-items: center; flex: none; }
.dew-row.frow .t { margin-left: 5px; }
.dew-folder .kids { position: relative; display: flex; flex-direction: column; margin: 0 3px 0 23px; padding: 2px 4px; border-radius: 14px; background: rgba(0, 0, 0, .045);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .045), inset 1px 1.5px 4px rgba(0, 0, 0, .09), inset 0 -1px 3px rgba(0, 0, 0, .03), 0 1px 0 rgba(255, 255, 255, .3); }

/* The sidebar's foot (Tara safe space off): All workspaces (the clutter box) at the left, the create "+" at the right
   (Quick shows between them only once it holds pages); 35 pt cells with 7.5 pt corners. */
.dew-bottombar { position: absolute; left: 8px; width: calc(var(--sb) - 16px); bottom: 8px; height: 35px; display: flex; align-items: center; justify-content: space-between; }
.dew-corner { width: 35px; height: 35px; border-radius: 7.5px; display: grid; place-items: center; flex: none; }
.dew-corner:hover { background: rgba(0, 0, 0, .06); }
.dew-corner.box { color: rgba(0, 0, 0, .25); }
.dew-corner.pressed, .dew-icon.pressed { background: rgba(0, 0, 0, .08); }
.dew-corner.box:hover { color: rgba(0, 0, 0, .5); }
.dew-corner.plus { color: rgba(0, 0, 0, .42); }
.dew-corner.plus .turn { display: grid; transform: translate(.5px, 1px); transition: transform .9s linear(0.000, 0.049, 0.169, 0.324, 0.488, 0.643, 0.778, 0.887, 0.970, 1.027, 1.062, 1.079, 1.083, 1.079, 1.068, 1.055, 1.041, 1.029, 1.017, 1.009, 1.002, 0.997, 0.995, 0.993, 0.993, 0.994, 0.994, 0.996, 0.997, 0.998, 0.999, 0.999, 1.000, 1.000, 1.000, 1.001, 1.001, 1.001, 1.000, 1.000, 1.000); }
.dew-corner.plus .turn > .ic { grid-area: 1 / 1; transition: opacity .12s ease-out; }
.dew-corner.plus .turn > .held { opacity: 0; }
.dew-corner.plus.open { color: rgba(0, 0, 0, .85); background: rgba(0, 0, 0, .06); }
.dew-corner.plus.open .turn { transform: translate(.5px, 1px) rotate(45deg); }
.dew-corner.plus.open .turn > .rest { opacity: 0; }
.dew-corner.plus.open .turn > .held { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .dew-corner.plus .turn { transition: none; } }
.dew-corner.plus:hover { color: rgba(0, 0, 0, .6); }

/* Pages: cards 8 pt in from the window and each other, concentric corners, a 1 pt outline at 5 %. */
.dew-main { position: absolute; z-index: 2; left: calc(var(--sb) + 1px); top: 9px; right: 9px; bottom: 9px; display: flex; gap: 12px;
  transition: left .21s cubic-bezier(.3, .7, .2, 1), top .2s, right .2s, bottom .2s; }
.dew-pane { position: relative; flex: 1 1 0; min-width: 0; background: var(--card, #fff); border-radius: 9px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .04); }
.dew-pane.side { flex: 0 0 var(--side-w, min(388px, 45%)); }
.dew-pane[hidden] { display: none; }
/* A glass page (Magic, mock.js `magic`): the colour behind it at 26 % (30 % when that's dark; SetupLookThumbnail.faces) on
   clear glass, so what's behind the window shows through, sharp; its edge the glass panels' (GlassRim: a 0.75 pt line at
   14 %, inside it 1 pt of light, 90 % at the top, 45 % a quarter down, 20 % at 70 %, 35 % at the foot); its top bar clear
   with no line under it, as New Page's band over its backdrop (PaneToolbarTint.overBackdrop). */
.dew-pane.glass { background: color-mix(in srgb, var(--behind) 26%, transparent); box-shadow: none; transition: background-color .45s ease;
  -webkit-backdrop-filter: var(--dew-page-glass, blur(2px)); backdrop-filter: var(--dew-page-glass, blur(2px)); }
.dew.behind-dark .dew-pane.glass { background: color-mix(in srgb, var(--behind) 30%, transparent); }
.dew-pane.glass::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 .75px rgba(0, 0, 0, .14); }
.dew-pane.glass::before { content: ""; position: absolute; inset: .75px; z-index: 4; border-radius: 8.25px; pointer-events: none; padding: 1px;
  background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.405) 25%, rgba(255,255,255,.18) 70%, rgba(255,255,255,.315));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.dew-pane.glass > .dew-tbar { border-bottom-color: transparent; }
.dew.behind-dark .dew-pane.glass > .dew-tbar, .dew.behind-dark .dew-pane.glass .dew-crumb { color: rgba(255, 255, 255, .6); }
.dew.behind-dark .dew-pane.glass .dew-icon { color: rgba(255, 255, 255, .6); }
.dew.behind-dark .dew-pane.glass .dew-icon:hover { background: rgba(255, 255, 255, .1); }

/* The top bar, on the page's card: 39.5 pt on Light's title-bar band (Palette.staticTitleBar; the Chef window's measures
   #f6f5f4) whatever the page's colour, a hairline under it, the title in the middle (13 pt medium). --dew-band and
   --dew-band-ink set another theme's band. */
.dew-tbar { position: relative; height: 39.5px; flex: none; display: flex; align-items: center; padding: 0 10px 0 9px; gap: 8px;
  color: var(--dew-band-ink, var(--ink-2)); background: var(--dew-band, #f6f5f4); border-bottom: .5px solid rgba(0, 0, 0, .05); transition: padding-left .21s; }
.dew-pane.glass > .dew-tbar { background: none; }
/* The title pill (TitleBarPill): the page's favicon and title, centred; it takes a click (its menu) on a chip; while
   the sidebar is hidden the workspace leads it. */
.dew-crumb { flex: 1; min-width: 0; height: 28px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 500; color: var(--dew-band-ink, rgba(0, 0, 0, .54)); white-space: nowrap; border-radius: 6px; max-width: max-content; margin: 0 auto; padding: 0 8px; }
.dew-crumb:hover, .dew-crumb.pressed { background: rgba(0, 0, 0, .05); }
.dew-crumb .fav { width: 15px; height: 15px; border-radius: 3.2px; flex: none; opacity: .82; }
.dew-crumb .tt { overflow: hidden; text-overflow: ellipsis; }
.dew-crumb .ws, .dew-crumb .sep { display: none; }
.dew.side-hidden:not(.focus) .dew-pane.main .dew-crumb .ws, .dew.side-hidden:not(.focus) .dew-pane.main .dew-crumb .sep { display: inline; }
.dew-crumb .sep { color: rgba(0, 0, 0, .25); }
/* Summary and Copy link are a page's: Dew's own pages have neither. */
.dew-pane.native .dew-reader, .dew-pane.native .dew-link { visibility: hidden; }
.dew-pane.side:not(.focused) .dew-crumb { opacity: .7; }
.dew-tools { display: flex; align-items: center; gap: 8px; margin-left: 28.5px; }
.dew-tools [data-act=search] .ic { transform: translate(-1px, .25px); }
.dew-tools:empty { display: none; }
.dew-tools [data-act=toside] { margin-left: 6px; }
/* The split screen's focus mark (15 pt semibold, a 24 pt frame) where the summary button was; the button moves one frame on. */
.dew-paneicon { display: none; width: 24px; height: 30px; place-items: center; color: rgba(0, 0, 0, .85); margin: 0 -10.25px 0 2px; }
.dew.split .dew-pane.main .dew-paneicon { display: grid; }
.dew-close { width: 28px; height: 28px; border-radius: 5px; display: grid; place-items: center; color: var(--ink-2); }
.dew-close:hover { background: var(--chip); color: var(--ink); }
.dew-page { flex: 1; overflow: hidden; position: relative; }
.dew-divider-v { position: absolute; z-index: 3; top: 0; bottom: 0; width: 12px; cursor: col-resize; }
.dew-divider-v::after { content: ""; position: absolute; left: 4px; top: calc(50% - 20px); width: 4px; height: 40px; border-radius: 5px; background: rgba(0, 0, 0, .16); opacity: 0; transition: opacity .15s; }
.dew-divider-v:hover::after { opacity: 1; }

/* Sidebar hidden (⌘←): the page takes the window; the stoplights (23 pt in), the sidebar button and Lazy Search's sit
   in its top bar; the sidebar slides out over the page at the left edge, on its own glass (in Focus too). */
.dew.side-hidden .dew-sidewrap { transform: translateX(-320px); }
.dew.side-hidden.side-peek .dew-sidewrap { transform: none; }
.dew.side-hidden.side-peek .dew-sidewrap::before { content: ""; position: absolute; inset: 6px -2px 6px 6px; border-radius: 14px; z-index: -1;
  background: rgba(255, 252, 250, .82); -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 18px 50px -10px rgba(0, 0, 0, .35); }
.dew.side-hidden .dew-main { left: 9px; }
.dew.side-hidden .dew-pane.main .dew-tbar { padding-left: 74px; }
.dew.side-hidden .dew-pane.main .dew-sbtn2, .dew.side-hidden .dew-pane.main .dew-sfind2 { display: grid; }
.dew-sfind2 { display: none; }
.dew.side-hidden .dew-lights { left: 23px; }
.dew-edge { position: absolute; left: 0; top: 0; bottom: 0; width: 14px; z-index: 5; display: none; }
.dew.side-hidden .dew-edge { display: block; }

/* Focus (F): only the page; the top bar and the stoplights go, the sidebar floats at the left edge. */
.dew.focus .dew-lights { opacity: 0; }
.dew.focus .dew-main { left: 9px; }
.dew.focus .dew-pane > .dew-tbar { height: 0; overflow: hidden; border: 0; padding: 0; }
.dew.focus .dew-pane > .dew-tbar > * { display: none; }

/* Drag and drop */
.dew-ghost { position: absolute; z-index: 30; pointer-events: none; height: 36px; padding: 0 12px 0 10px; border-radius: 10px; display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .92); box-shadow: 0 10px 30px -6px rgba(0,0,0,.3), 0 0 0 .5px rgba(0,0,0,.1); }
.dew-ghost .fav { width: 15px; height: 15px; border-radius: 3.2px; }
/* While a page is dragged the side opens as a drop card (SplitScreenDropTargets): the side colour at 10 % on glass, the
   "send to side" symbol in the secondary colour at 40 %; 30 % and the side colour while the page is over it. It lies over the
   right of the page, below the top bar, so its buttons stay clear (a glass page's bar can't stack over it). */
.dew-sidedrop-pane { display: none; position: absolute; z-index: 1; right: 0; top: 39.5px; bottom: 0; width: min(391px, 45%); border-radius: 9px; place-items: center; color: rgba(0, 0, 0, .2);
  background: color-mix(in srgb, var(--fig) 9%, #fdfbfb); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06); }
.dew-pane.main .dew-tbar { z-index: 2; }
.dew.dragging:not(.split) .dew-sidedrop-pane { display: grid; }
.dew-sidedrop-pane.hot { background: color-mix(in srgb, var(--fig) 30%, #fdfbfb); color: var(--fig); }

/* Lazy Search */
.dew-search { position: absolute; inset: 0; z-index: 40; display: none; background: rgba(20, 20, 30, .08); }
.dew-search.open { display: block; }
.dew-search .box { position: absolute; left: 50%; top: 70px; width: 560px; transform: translateX(-50%); background: rgba(255,255,255,.97); border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.4), 0 0 0 .5px rgba(0,0,0,.12); overflow: hidden; animation: dew-pop .16s ease; }
@keyframes dew-pop { from { opacity: 0; transform: translateX(-50%) scale(.97); } }
.dew-search input { width: 100%; height: 50px; border: 0; outline: 0; padding: 0 18px 0 46px; font: 17px var(--dew-font, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif); background: transparent; color: var(--ink); }
.dew-search .mag { position: absolute; left: 16px; top: 16px; color: var(--ink-2); }
.dew-search .res { border-top: 1px solid var(--line); padding: 6px; max-height: 330px; overflow: auto; }
.dew-search .grp { padding: 6px 10px 3px; color: var(--ink-2); font-size: 11px; font-weight: 600; }
.dew-search .it { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; width: 100%; text-align: left; }
.dew-search .it .fav { width: 15px; height: 15px; border-radius: 3.2px; display: grid; place-items: center; flex: none; color: var(--ink-2); }
.dew-search .it .where { color: var(--ink-2); font-size: 12px; }
.dew-search .it .act { margin-left: auto; color: var(--ink-2); font-size: 12px; }
.dew-search .it.sel { background: var(--pill); }
.dew-search .it .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dew-search.side .box { left: auto; right: 40px; transform: none; width: 460px; animation: none; }

/* Toasts (ToastStackView, ToastStack): a 350 pt card at the window's foot, 13 pt over its bottom edge; the frame's
   colour with a 0.5 pt line at 30 % and the stack's three soft shadows, 10 pt corners; its symbol (18 pt bold, the
   accent; the side colour for a side page; red for leaving Focus) in a 30 pt column, the title in medium, a line in
   the secondary colour, Undo in the accent with its key. */
.dew-toast { position: absolute; left: 50%; bottom: 13px; z-index: 45; width: 350px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s cubic-bezier(.3, 1.3, .5, 1); }
.dew-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.dew-toast .card { padding: 15px 18px; border-radius: 10px; background: var(--dew-frame, #fffcfa); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .3), 0 0 20px rgba(0, 0, 0, .05), 0 0 10px rgba(0, 0, 0, .06), 0 0 2px rgba(0, 0, 0, .18); }
.dew-toast .head { display: flex; align-items: center; }
.dew-toast .sym { width: 30px; flex: none; display: flex; color: var(--accent); }
.dew-toast .sym.alt { color: var(--fig); } .dew-toast .sym.fail { color: #e5484d; }
.dew-toast b { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dew-toast p { margin: 5px 0 0 30px; color: var(--ink-2); }
.dew-toast .pill { margin: 6px 0 0 30px; display: inline-flex; align-items: center; gap: 4px; font: 600 12px var(--dew-font, -apple-system, BlinkMacSystemFont, system-ui, sans-serif); color: var(--accent) !important; }
.dew kbd { min-width: 0; height: auto; }
.dew-toast kbd, .dew-pop kbd, .dew-modal kbd { font: 500 11px var(--dew-font, -apple-system, BlinkMacSystemFont, system-ui, sans-serif); padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, .06); color: inherit; }

/* Dialogs (ContentModalCard): 300 pt, 20 pt in, 18 pt corners on the window's dimmed page; the icon, a bold title, the
   text in the secondary colour, the buttons in a row (the main one on the right, in the accent). */
.dew-modal { position: absolute; inset: 0; z-index: 50; display: none; place-items: center; background: rgba(20, 20, 30, .12); }
.dew-modal.open { display: grid; }
.dew-modal .card { width: 300px; padding: 20px; border-radius: 18px; background: var(--dew-frame, #fffcfa); text-align: center; animation: dew-pop-in .16s ease;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 24px 60px -16px rgba(0, 0, 0, .35); }
@keyframes dew-pop-in { from { opacity: 0; transform: scale(.96); } }
.dew-modal .icon { display: grid; place-items: center; height: 40px; color: var(--accent); }
.dew-modal .icon .emoji { font-size: 30px; line-height: 1; }
.dew-modal h3 { margin: 10px 0 0; font: 700 22px/1.2 var(--dew-font, -apple-system, BlinkMacSystemFont, system-ui, sans-serif); color: var(--ink); }
.dew-modal p { margin: 12px 0 20px; color: var(--ink-2); line-height: 1.45; }
.dew-modal p b { color: var(--ink); }
.dew-modal .btns { display: flex; gap: 8px; }
.dew-modal .btns button { flex: 1; height: 32px; border-radius: 10px; background: rgba(0, 0, 0, .06); font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 6px; }
.dew-modal .btns button.main { background: var(--accent); color: rgba(0, 0, 0, .85); font-weight: 600; }
.dew-modal .btns button.main kbd { background: rgba(255, 255, 255, .35); }

/* Menus: one anchored card for the page, folder, workspace, title, applet and create menus. */
.dew-pop { position: absolute; z-index: 48; padding: 5px; border-radius: 10px; background: var(--dew-frame, #fffcfa); animation: dew-pop-in .12s ease;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .14), 0 12px 32px -8px rgba(0, 0, 0, .28); }
.dew-pop[hidden] { display: none; }
.dew-pop .mi { width: 100%; height: 26px; display: flex; align-items: center; gap: 8px; padding: 0 9px; border-radius: 6px; text-align: left; color: var(--ink); }
.dew-pop .mi span { flex: 1; }
.dew-pop .mi.sel, .dew-pop .mi:hover:not([disabled]) { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.dew-pop .mi[disabled] { opacity: .4; }
.dew-pop .mi.danger { color: #e5484d; }
.dew-pop hr { border: 0; height: 1px; background: rgba(0, 0, 0, .07); margin: 4px 6px; }
.dew-pop .hd { padding: 6px 9px 4px; }
.dew-pop .wshd { display: flex; align-items: center; gap: 8px; } .dew-pop .wshd span { font-size: 18px; } .dew-pop .wshd b { font-size: 14px; }
.dew-pop .summary { display: flex; flex-direction: column; gap: 7px; padding: 4px 0 8px; }
.dew-pop .summary b { display: flex; align-items: center; gap: 6px; } .dew-pop .summary .fav { width: 15px; height: 15px; border-radius: 3.2px; }
.dew-pop .summary .ln { height: 9px; border-radius: 5px; background: linear-gradient(90deg, rgba(0,0,0,.06), rgba(0,0,0,.11), rgba(0,0,0,.06)); background-size: 200% 100%; animation: dew-shimmer 1.4s linear infinite; }
.dew-pop .summary .ln.short { width: 60%; }
.dew-pop .summary .body { display: flex; flex-direction: column; gap: 7px; }
.dew-pop .summary ul { margin: 0; padding: 0 0 0 16px; display: flex; flex-direction: column; gap: 5px; color: var(--ink); line-height: 1.4; animation: dew-pop-in .2s ease; }
.dew-pop .summary li::marker { color: var(--accent); }
.dew-pop:has(.summary) { padding-bottom: 10px; }
.dew-pop .summary small { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes dew-shimmer { to { background-position: -200% 0; } }

/* Airis (toggleAssistant): its panel at the window's right, beside the page. */
.dew-pane.airis { flex: 0 0 320px; }
.dew-airis-title { flex: 1; display: flex; align-items: center; gap: 7px; color: var(--ink); }
.dew-airis-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; }
.dew-airis-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin-top: 120px; color: var(--ink); }
.dew-airis-empty span { opacity: .7; } .dew-airis-empty p { margin: 0; color: var(--ink-2); max-width: 220px; }
.dew-airis-input { height: 38px; border-radius: 10px; padding: 0 12px; display: flex; align-items: center; color: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }

/* Rename: the name becomes a field in place. */
.dew-rename { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 0; outline: 0; border-radius: 5px; padding: 1px 4px; margin-left: -4px;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, transparent); }

/* The applet picker (AppletPickerModalView): its title and places left, a field, the apps in a grid of six (favicon over
   the name), one already pinned dimmed with its check, the highlighted one in the selection tint. */
.dew-modal .card.picker { width: 560px; text-align: left; padding: 22px 22px 16px; }
.dew-modal .picker h3 { margin: 0; display: flex; align-items: center; gap: 9px; }
.dew-modal .picker .gridic { width: 18px; height: 14px; border-radius: 2px; background:
  linear-gradient(var(--accent) 0 0) 0 0 / 5px 6px no-repeat, linear-gradient(var(--accent) 0 0) 6.5px 0 / 5px 6px no-repeat, linear-gradient(var(--accent) 0 0) 13px 0 / 5px 6px no-repeat,
  linear-gradient(var(--accent) 0 0) 0 8px / 5px 6px no-repeat, linear-gradient(var(--accent) 0 0) 6.5px 8px / 5px 6px no-repeat, linear-gradient(var(--accent) 0 0) 13px 8px / 5px 6px no-repeat; }
.dew-modal .picker p { margin: 4px 0 14px; }
.dew-modal .pfield { width: 100%; height: 36px; border: 0; outline: 0; border-radius: 10px; padding: 0 12px; font: 15px var(--dew-font, -apple-system, BlinkMacSystemFont, system-ui, sans-serif); color: var(--ink);
  background: rgba(0, 0, 0, .04); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .06); }
.dew-modal .pbody { max-height: 300px; overflow: auto; overscroll-behavior: contain; }
.dew-modal .psect { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 12px 0 8px; }
.dew-modal .pgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.dew-modal .ptile { position: relative; height: 84px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; font-size: 12px; color: rgba(0, 0, 0, .72); }
.dew-modal .ptile .fav { width: 28px; height: 28px; border-radius: 6px; }
.dew-modal .ptile span { max-width: 100%; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dew-modal .ptile:hover:not([disabled]), .dew-modal .ptile.hi { background: color-mix(in srgb, var(--accent) 25%, transparent); color: var(--ink); }
.dew-modal .ptile.pinned { opacity: 1; } .dew-modal .ptile.pinned > :not(i) { opacity: .45; }
/* Already an applet: the accent's check in a 14 pt disc (AppletChoiceTile). */
.dew-modal .ptile i { position: absolute; top: 8px; right: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.dew-modal .ptile i::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font: 900 8px/1 var(--dew-font, -apple-system, system-ui, sans-serif); color: #fff; }
.dew-modal .paddr { width: 100%; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 12px; text-align: left; }
.dew-modal .paddr span { flex: 1; font-size: 14px; } .dew-modal .paddr.hi { background: color-mix(in srgb, var(--accent) 25%, transparent); }
.dew-modal .paddr kbd { font-size: 11.5px; padding: 1px 6px; border-radius: 5px; background: none; box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--ink-2) 50%, transparent); }
.dew-modal .paddr em { font-style: normal; font-size: 12.5px; color: var(--ink-2); }
.dew-modal .paddr[disabled] { opacity: 1; cursor: default; }
.dew-modal .pnone { text-align: center; padding: 30px 0; }

/* ---- Workspaces (WorkspaceOverviewModalView), from the sidebar's box or ⌘⇧A ----
   The modal layer's dim (ModalBackdrop: grey at 30 % in luminosity, black at 8 % in luminosity, #D6D6D6 at 45 % in
   colour burn), fading in on slowSmooth (a critically damped 0.4 s spring at the app's 0.75) and gone at once on close.
   Each layer blends with the window under it, so none of them sits in a group of its own. */
.dew-ov { position: absolute; inset: 0; }
.dew-ov[hidden] { display: none; }
.dew-ov .dim { position: absolute; inset: 0; }
.dew-ov .dim i { position: absolute; inset: 0; z-index: 43; opacity: 0; pointer-events: none;
  transition: opacity .44s linear(0, .067, .205, .358, .499, .619, .715, .79, .848, .89, .921, .944, .96, .972, .981, .986, .991, .993, .995, .997, .998, .999, 1); }
.dew-ov.shown .dim i { opacity: 1; }
.dew-ov .dim i:nth-child(1) { background: rgba(153, 153, 153, .3); mix-blend-mode: luminosity; }
.dew-ov .dim i:nth-child(2) { background: rgba(0, 0, 0, .08); mix-blend-mode: luminosity; }
.dew-ov .dim i:nth-child(3) { background: rgba(214, 214, 214, .45); mix-blend-mode: color-burn; }
.dew-ov .dim::after { content: ""; position: absolute; inset: 0; z-index: 43; }
/* The sheet: the frame's glass (the theme's background at 65 %, 85 % dark, frosted: on the window's dim Apple's glass
   lifts it to about 86 % in a light window, measured on a 2x capture of the real sheet) clipped 1 pt in at 17 pt corners,
   a 1 pt line at 5 % round it on its 18 pt edge (panelOverlay), the glass panels' rim on the glass's edge (GlassRim) and
   their faint shadow all round (GlassPanelShadow). */
.dew-ov .sheet { --ov-bg: var(--frame-solid, #fffcfa); --ov-fill: 86%; --ov-rgb: 0, 0, 0; --ov-2: rgba(0, 0, 0, .5);
  position: absolute; z-index: 44; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(var(--ov-rgb), .05); }
.dew-ov .glass { position: absolute; inset: 1px; border-radius: 17px;
  background: color-mix(in srgb, var(--ov-bg) var(--ov-fill), transparent);
  -webkit-backdrop-filter: blur(13px) saturate(1.2); backdrop-filter: blur(13px) saturate(1.2);
  box-shadow: 0 3px 32px rgba(0, 0, 0, .11), 0 .5px 3px rgba(0, 0, 0, .07), 0 1px 6px rgba(26, 26, 26, .03); }
.dew-ov .glass::before, .dew-ov .glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.dew-ov .glass::before { box-shadow: inset 0 0 0 .75px rgba(0, 0, 0, .14); }
.dew-ov .glass::after { inset: .75px; border-radius: 16.25px; padding: 1px;
  background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.405) 25%, rgba(255,255,255,.18) 70%, rgba(255,255,255,.315));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.dew.magic-dark .dew-ov .sheet { --ov-fill: 85%; --ov-rgb: 255, 255, 255; --ov-2: rgba(255, 255, 255, .55); }
.dew.magic-dark .dew-ov .glass { box-shadow: 0 3px 32px rgba(0, 0, 0, .32), 0 .5px 3px rgba(0, 0, 0, .3), 0 1px 6px rgba(26, 26, 26, .03); }
.dew.magic-dark .dew-ov .glass::before { box-shadow: inset 0 0 0 .75px rgba(0, 0, 0, .3); }
.dew.magic-dark .dew-ov .glass::after { background: linear-gradient(rgba(255,255,255,.32), rgba(255,255,255,.144) 25%, rgba(255,255,255,.064) 70%, rgba(255,255,255,.112)); }
.dew.magic-dark .dew-ov .dim i:nth-child(1) { background: rgba(102, 102, 102, .3); }
/* One line over the cards, 18 pt down, 28 pt in: the box (15 pt bold, the accent) and "Workspaces" (19 pt bold) at the
   left; the search in the middle, 38 pt tall, at most 380 wide. */
.ov-head { position: absolute; left: 28px; right: 28px; top: 18px; height: 38px; display: flex; align-items: center; }
.ov-title { display: flex; align-items: center; gap: 7px; font: 700 19px/23px var(--dew-font, -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif); color: rgba(var(--ov-rgb), .85); white-space: nowrap; }
.ov-title .ic { color: var(--accent); }
.ov-search { position: absolute; left: 50%; top: 0; width: min(380px, 100% - 356px); height: 38px; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 0 12px;
  border-radius: 10px; background: rgba(var(--ov-rgb), .028); box-shadow: inset 0 0 0 .5px rgba(var(--ov-rgb), .06); color: var(--ov-2); cursor: text; }
.dew.magic-dark .ov-search { background: rgba(255, 255, 255, .05); }
.ov-search .ic { flex: none; }
.ov-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0; background: none; font: 15px var(--dew-font, -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif);
  color: rgba(var(--ov-rgb), .85); caret-color: var(--accent); }
.ov-search input::placeholder { color: rgba(var(--ov-rgb), .25); }
/* The strip: the cards in a row, 28 pt in, room above for a raised card's shadow and below for its lift; its sides fade
   over 64 pt while more cards lie past them (WorkspaceOverviewEdgeFade). */
.ov-strip { position: absolute; left: 1px; right: 1px; top: 64px; bottom: 1px; border-radius: 0 0 17px 17px; overflow: auto hidden; scrollbar-width: none; overscroll-behavior: contain; }
.ov-strip::-webkit-scrollbar { display: none; }
.ov-strip.fade-l { -webkit-mask: linear-gradient(to right, transparent, #000 64px); mask: linear-gradient(to right, transparent, #000 64px); }
.ov-strip.fade-r { -webkit-mask: linear-gradient(to left, transparent, #000 64px); mask: linear-gradient(to left, transparent, #000 64px); }
.ov-strip.fade-l.fade-r { -webkit-mask: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 64px), transparent); mask: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 64px), transparent); }
.ov-cards { display: flex; align-items: stretch; gap: 14px; height: 100%; width: max-content; padding: 6px 27px 23px; }
.ov-none { position: absolute; left: 0; right: 0; top: 64px; bottom: 30px; display: grid; place-items: center; color: var(--ov-2); pointer-events: none; }
.ov-none[hidden] { display: none; }
/* A card (WorkspaceOverviewCardView): 280 pt, the cards' 11 pt corners; at rest the theme's background at 60 % (55 %
   dark) with a 0.5 pt line at 14 % of the secondary colour; raised, the background whole, the page rows' emboss and a
   lift under it (radius 7, 3 down, 10 %; 35 % dark), easing over 0.15 s. */
.ov-card { position: relative; flex: none; width: 280px; height: 100%; display: flex; flex-direction: column; border-radius: 11px; overflow: hidden; cursor: pointer;
  background: color-mix(in srgb, var(--ov-bg) 60%, transparent); box-shadow: inset 0 0 0 .5px rgba(var(--ov-rgb), .07);
  transition: background-color .1125s ease-out, box-shadow .1125s ease-out; }
.dew-ov.fresh .ov-card { transition: none; }
.ov-card.raised { background: var(--ov-bg); box-shadow: .75px 1.25px 3px rgba(0, 0, 0, .115), 0 3px 14px rgba(0, 0, 0, .1); }
.dew.magic-dark .ov-card { background: color-mix(in srgb, var(--ov-bg) 55%, transparent); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .077); }
.dew.magic-dark .ov-card.raised { background: linear-gradient(rgba(255, 255, 255, .055), rgba(255, 255, 255, .055)), var(--ov-bg); box-shadow: .75px 1.25px 3px rgba(0, 0, 0, .45), 0 3px 14px rgba(0, 0, 0, .35); }
.dew.magic-dark .ov-card.dew-emboss::before { background: linear-gradient(to bottom right, rgba(255,255,255,0) 0%, rgba(255,255,255,.17) 4%, rgba(255,255,255,.2) 70%, rgba(255,255,255,.17) 92%, rgba(255,255,255,.05) 100%); }
.ov-card.dew-emboss::before { z-index: 3; }
/* Its name (15 pt semibold, kerning 0.1, primary at 90 %, whole under the pointer) and its icon after it; how many pages
   under it (the caption, medium, secondary at 80 %). */
.ov-chead { flex: none; padding: 12px 15px 10px; }
.ov-chead .nm { display: flex; align-items: center; gap: 5px; height: 18px; }
.ov-chead .tt { font-weight: 600; font-size: 15px; letter-spacing: .1px; color: rgba(var(--ov-rgb), .765); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-card.pointed .ov-chead .tt { color: rgba(var(--ov-rgb), .85); }
.ov-chead .em { font-size: 14px; line-height: 18px; flex: none; }
.ov-chead .ct { margin-top: 3px; font-size: 10px; line-height: 13px; font-weight: 500; color: rgba(var(--ov-rgb), .4); }
.dew.magic-dark .ov-chead .ct { color: rgba(255, 255, 255, .44); }
/* Its pages (WorkspaceOverviewPageRow): 32 pt rows 2 apart, 8 pt in; a 15 pt favicon, the title in 13 pt at 82 %; a
   sub-page 16 pt further in, a folder's page 14; the list's top and foot fade while more lies past them. */
.ov-list { flex: 1; min-height: 0; overflow: hidden auto; scrollbar-width: none; overscroll-behavior: contain; }
.ov-list::-webkit-scrollbar { display: none; }
.ov-list.fade-t { -webkit-mask: linear-gradient(transparent, #000 20px); mask: linear-gradient(transparent, #000 20px); }
.ov-list.fade-b { -webkit-mask: linear-gradient(#000 calc(100% - 32px), transparent); mask: linear-gradient(#000 calc(100% - 32px), transparent); }
.ov-list.fade-t.fade-b { -webkit-mask: linear-gradient(transparent, #000 20px, #000 calc(100% - 32px), transparent); mask: linear-gradient(transparent, #000 20px, #000 calc(100% - 32px), transparent); }
.ov-rows { display: flex; flex-direction: column; gap: 2px; padding: 0 8px 10px; }
.ov-row { display: flex; align-items: center; gap: 8px; height: 32px; flex: none; padding: 0 8px; border-radius: 10px; font-size: 13px; color: rgba(var(--ov-rgb), .697); }
.ov-row .fav { width: 15px; height: 15px; border-radius: 3.2px; flex: none; }
.ov-row .lk { flex: none; color: var(--ov-2); }
.ov-row .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-row.sub { padding-left: 24px; } .ov-row.infolder { padding-left: 22px; } .ov-row.sub.infolder { padding-left: 38px; }
.ov-row.context { color: var(--ov-2); }
.ov-row.hi { background: color-mix(in srgb, var(--accent) 25%, transparent); }
/* A folder's own row (12 pt emoji in the favicon's place, its name in medium, how many pages) and Side's label. */
.ov-frow { display: flex; align-items: center; gap: 8px; height: 30px; margin-top: 4px; flex: none; padding: 0 8px; font-size: 13px; color: rgba(var(--ov-rgb), .68); }
.ov-frow .fi { width: 15px; height: 15px; display: grid; place-items: center; flex: none; color: var(--accent); }
.ov-frow .fi .em { font-size: 12px; line-height: 1; }
.ov-frow .t { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-frow .n { font-size: 10px; color: var(--ov-2); }
.ov-label { display: flex; align-items: center; gap: 5px; height: 24px; margin-top: 4px; flex: none; padding: 0 8px; font-size: 12px; font-weight: 600; color: var(--fig); }
.ov-empty { display: grid; place-items: center; height: 200px; color: rgba(var(--ov-rgb), .6); font-weight: 500; }
/* The pages' glide in (WorkspaceOverviewFan): each row from 6 pt up and clear, over 0.22 s, 30 ms after the one above. */
.ov-glide { animation: ov-glide .165s ease-out both; }
@keyframes ov-glide { from { opacity: 0; transform: translateY(-6px); } }
/* The box in the sidebar's corner stays lit while its sheet is up (AllWorkspacesButton). */
.dew-corner.box.lit { background: rgba(0, 0, 0, .06); color: rgba(0, 0, 0, .5); }
.dew.magic-dark .dew-corner.box.lit { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .55); }

/* Where a dragged page lands under the line. */
.dew-dropline { position: absolute; z-index: 31; height: 2px; border-radius: 1px; background: var(--accent); pointer-events: none; display: none; }

/* Pages */
.pg { position: absolute; inset: 0; overflow: hidden; padding: 34px 44px; color: #1d1d1f; animation: pg-in .22s ease; line-height: 1.35; }
@keyframes pg-in { from { opacity: 0; transform: translateY(4px); } }
.pg h1 { font: 767 28px/1.1 "Jokker", -apple-system, sans-serif; margin: 6px 0 8px; letter-spacing: -.01em; }
.pg p { margin: 0 0 8px; color: #55555b; max-width: 560px; }
/* A real page: its capture at the pane's width, scrolled inside the pane like the page itself; no scroll bar at rest, as
   a Mac's web view has none. */
.pg.shot { padding: 0; overflow: hidden auto; overscroll-behavior: auto contain; scrollbar-width: none; background: var(--card, #fff); }
/* A sideways swipe over a page passes on to a phone's pan; up and down stay the page's. */
/* The story's window (C3) until the visitor clicks into it: a wheel over it scrolls the story, not its pages. */
.dew.story:not(.active) .pg.shot, .dew.story:not(.active) .dew-scroll { overflow-y: hidden; overscroll-behavior: auto; }
/* On touch, rows let swipes through to the page and the pan (a row drag needs a mouse there). */
@media (pointer: coarse) { .dew-row { touch-action: pan-x pan-y; } }
/* A new page (Lazy Search's Go to or a web search): white while it would load. */
.pg.blank { background: #fff; }
.pg.shot::-webkit-scrollbar { display: none; }
.pg.shot img { display: block; width: 100%; height: auto; -webkit-user-drag: none; }
/* Dew's own page on glass: the app's words in its inks (labelColor, secondaryLabelColor), light ones when what's behind
   is dark; its tips on the sidebar's tile glass (the applet tiles' 42 % white, embossed). */
.pg.glass { color: rgba(0, 0, 0, .85); }
.pg.glass p { color: rgba(0, 0, 0, .6); }
.dew.behind-dark .pg.glass { color: rgba(255, 255, 255, .92); }
/* A plain page (the pixel check's fixture): what a browser draws for <h1> and <p> in the system font. */
.pg.plain { padding: 0 24px; animation: none; color: #000; }
.pg.plain h1 { font: 700 27px/32px var(--dew-font, -apple-system, BlinkMacSystemFont, system-ui, sans-serif); margin: 45px 0 0; letter-spacing: 0; }
.pg.plain p { color: #000; font-size: 16px; line-height: 19px; margin: 16.5px 0 0; }

@media (prefers-reduced-motion: reduce) { .dew *, .dew { animation: none !important; transition: none !important; } }
/* Lazy Search sits where the app puts it (ModalLayout.topOffset: 26 % of the window's height, under the top bar). */
.dew-search .box { top: calc(26% + 40px); }
