/* Finder is the single source for desktop window chrome and popup materials. */
:root {
  --os-menu-height: 38px;
  --os-chrome-height: 52px;
  --os-radius: 12px;
  --os-inner-radius: 8px;
  --os-frame: #ffffff24;
  --os-frame-top: #ffffff40;
  --os-chrome: #202020;
  --os-surface: #202020;
  --os-surface-raised: #282828;
  --os-surface-reading: #1e1e1e;
  --os-surface-sidebar: #1d1d1d;
  --os-surface-alternate: #252525;
  --os-field: #303131;
  --os-hover: #ffffff0d;
  --os-accent: #0a9fff;
  --os-sidebar: var(--os-surface-sidebar);
  --os-text: #e8e8e8;
  --os-muted: #a0a0a0;
  --os-subtle: #808282;
  --os-selection: #0050c0;
  --os-line: #363838;
  --os-link: #70b4ff;
  --os-focus: #80bfff;
  --os-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --os-glass-blur: 28px;
  --os-menu-surface: linear-gradient(155deg, #ffffff08, #ffffff00 45%), #262626eb;
  --os-bar-surface: #18181860;
  --os-shadow: 0 0 0 1px #0005, 0 14px 32px -8px #0009, 0 3px 8px #0005;
  --os-control-fill: #ffffff08;
  --os-control-stroke: #ffffff1f;
  --os-control-pressed: #ffffff18;
  --os-glass-rim: inset 0 1px 0 #ffffff14, inset 0 -1px 0 #0003;
  --os-shadow-inactive: 0 8px 20px 4px #0005;
  --os-control-size: 14px;
  --os-control-gap: 9px;
  --os-control-close: #ff5f57;
  --os-control-minimize: #febc2e;
  --os-control-maximize: #28c840;
  --os-control-inactive: #4a4b4b;
  /* Document-window materials are shared without changing menu/control curves. */
  --os-window-radius: 30px;
  --os-window-inner-radius: calc(var(--os-window-radius) - 1px);
  --os-window-frame: #ffffff2b;
  --os-window-material: linear-gradient(155deg, #ffffff05, #ffffff00 38%), #222222e0;
  --os-window-chrome: transparent;
  --os-window-content: var(--os-surface);
  --os-window-sidebar: transparent;
  --os-window-divider: #151616;
  --os-window-rule: var(--os-line);
  --os-window-shadow: 0 12px 32px -8px #0005, 0 2px 8px -2px #0003;
  --os-window-shadow-inactive: 0 8px 24px -8px #0004, 0 1px 6px -2px #0002;
  /* Finder's retained CSS consumes aliases of these same tokens. */
  --dark-background: var(--os-surface);
  --light-navbar-2: var(--os-chrome);
  --offwhite-lettering: var(--os-text);
  --blue-link: var(--os-selection);
  --light-line: var(--os-line);
  --menu-background: var(--os-surface-raised);
  --mobile-dropdown: var(--os-field);
}
body.travos .os-window,
.legal-window.os-window {
  box-sizing: border-box;
  border: 1px solid #0003;
  border-radius: var(--os-window-radius);
  color: var(--os-text);
  background: var(--os-window-material);
  box-shadow: var(--os-window-shadow);
  font: 14px/20px var(--os-font);
  -webkit-font-smoothing: antialiased;
  -webkit-backdrop-filter: blur(var(--os-glass-blur)) saturate(130%);
  backdrop-filter: blur(var(--os-glass-blur)) saturate(130%);
  color-scheme: dark;
}
.os-window *, .os-window *::before, .os-window *::after { box-sizing: border-box; }
.os-window [hidden] { display: none !important; }
.os-window:focus { outline: none; }
.os-window-frame {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--os-window-frame);
  border-radius: var(--os-window-inner-radius);
  overflow: clip;
}
.os-window .os-window-bar {
  position: relative;
  flex: none;
  height: var(--os-chrome-height);
  min-height: var(--os-chrome-height);
  border-bottom: 1px solid var(--os-window-rule);
  color: var(--os-text);
  background: var(--os-window-chrome);
  box-shadow: none;
  font: 14px/20px var(--os-font);
  user-select: none;
}
.os-window .os-window-controls {
  position: absolute;
  z-index: 6;
  inset: 16px auto auto 19px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--os-control-gap);
  height: 20px;
  margin: 0;
  padding: 1px 0 0;
}
.os-window-controls [data-window-action] {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: var(--os-control-size);
  height: var(--os-control-size);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #000b;
  background: var(--os-control-inactive);
  font: 14px/12px var(--os-font);
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  cursor: auto;
  transition: none;
}
.os-window-controls [data-window-action]::before { content: ""; position: absolute; inset: -4px; }
.os-window-controls [data-window-action] svg { display: none; }
.os-window-controls [data-window-action="close"] { background: var(--os-control-close); }
.os-window-controls [data-window-action="minimize"] { background: var(--os-control-minimize); }
.os-window-controls [data-window-action="maximize"] { background: var(--os-control-maximize); }
.os-window-controls [data-window-action]:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.os-window-controls [data-window-action="close"]:active { filter: brightness(1.25); }
body.travos .os-window[data-active="false"],
.legal-window.os-window[data-active="false"] { box-shadow: var(--os-window-shadow-inactive); }
/* Inactive chrome recedes; content and the user's blue row selections stay intact. */
body.os-shell .os-window[data-active="false"] {
  --os-window-material: #202020f0;
  --os-window-frame: #ffffff18;
  --os-glass-rim: inset 0 1px 0 #ffffff08, inset 0 -1px 0 #0002;
  -webkit-backdrop-filter: blur(var(--os-glass-blur)) saturate(100%);
  backdrop-filter: blur(var(--os-glass-blur)) saturate(100%);
}
.os-window[data-active="false"] .os-window-controls [data-window-action] {
  background: linear-gradient(#505050, var(--os-control-inactive) 50%, #454545);
  box-shadow: inset 0 0 0 1px #ffffff13, inset 0 1px 1px #ffffff66, inset 0 -1px 1px #ffffff59;
}
.os-window[data-active="false"] .os-window-bar { color: var(--os-muted); }
.os-window[data-active="false"] .preview-toolbar-actions { color: var(--os-muted); }
.os-window[data-active="false"] .preview-toolbar-actions .preview-tool { color: var(--os-muted); }
body.os-shell .os-window.os-maximized {
  position: fixed !important;
  inset: var(--os-menu-height) 0 0 !important;
  width: 100vw !important;
  height: calc(100dvh - var(--os-menu-height)) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0;
}
body.os-shell .os-window.os-tiled {
  position: fixed !important;
  inset: auto !important;
  left: var(--os-tile-left) !important;
  top: var(--os-tile-top) !important;
  width: var(--os-tile-width) !important;
  height: var(--os-tile-height) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0;
}
/* Explicit geometry for release seeding and symmetric expand/restore motion. */
body.os-shell .os-window.os-placement-origin {
  position: fixed !important;
  inset: auto !important;
  left: var(--os-placement-left) !important;
  top: var(--os-placement-top) !important;
  width: var(--os-placement-width) !important;
  height: var(--os-placement-height) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0;
}
/* During a pull-away drag only size eases; percentage translation keeps the
   grabbed point anchored to the pointer as the width changes. */
body.os-shell .os-window.os-drag-placed {
  position: fixed !important;
  inset: auto !important;
  left: var(--os-drag-left) !important;
  top: var(--os-drag-top) !important;
  width: var(--os-drag-width) !important;
  height: var(--os-drag-height) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0;
}
/* The same subtle glass stroke follows each available-desktop snap target. */
html::after {
  content: "";
  position: fixed;
  z-index: 2147483500;
  box-sizing: border-box;
  left: var(--desktop-snap-left, 0px);
  top: var(--desktop-snap-top, var(--os-menu-height));
  width: var(--desktop-snap-width, 100vw);
  height: var(--desktop-snap-height, calc(100dvh - var(--os-menu-height)));
  pointer-events: none;
  border: 2px solid #d8eaffb3;
  border-radius: var(--os-window-radius);
  box-shadow: inset 0 0 0 1px #ffffff99, inset 0 0 0 6px #ffffff14, inset 0 0 18px #80bfff40;
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease-out, visibility 0s linear 120ms;
}
html.desktop-snap-moving::after {
  transition: opacity 120ms ease-out, visibility 0s linear 120ms,
    left 100ms ease-out, top 100ms ease-out, width 100ms ease-out, height 100ms ease-out;
}
html.desktop-snap-ready::after { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  html::after, html.desktop-snap-moving::after { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  :root {
    --os-window-material: #1d1d1d;
    --os-menu-surface: #242424;
    --os-bar-surface: #1d1d1d;
  }
  body.os-shell .os-window, body.os-shell .os-window[data-active] { --os-window-material: #202020; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* Refine the retained Finder panes; every column and control keeps its geometry. */
.os-window .nav:is(.controller, .left-menu) {
  background: var(--os-window-sidebar);
  border-right-color: var(--os-window-divider);
}
#window1 .finder-contents { background: var(--os-window-content); }
#window1 > .os-window-frame { background: var(--os-window-chrome); }
/* Finder's title bar and profile rail share the frame's continuous base. */
#window1 .bar.handle { background: transparent; }
#window1 .bar.handle .nav.controller {
  background: transparent;
  border-right: 0;
}
#window1 .bar.handle .os-window-bar { background: transparent; }
#window1 .list { border-right-color: var(--os-window-divider); }
/* The compact section picker overlays content, so it needs an opaque surface. */
#window1 #tabs1 { background: var(--os-surface-raised); }
#window1 .tab-title {
  border-bottom-color: var(--os-window-rule);
  background: var(--os-window-content);
  color: var(--os-muted);
}
#window1 .tabs-content { background: var(--os-window-content); }
#window1 .list-item.w--current,
#window1 .list-item.pressed:focus { border-radius: 7px; }
#window1 .sub-details-wrapper { border-color: var(--os-window-rule); }
#window1 .sub-details:not(.light) { flex: none; color: var(--os-muted); white-space: nowrap; }
#window1 .main-details.sub { color: var(--os-text); }
#window1 .photo:not(.file):not(.menu-icon-wrapper) { border-radius: 10px; }
@media (min-width: 768px) {
  #window1 #tabs1 { background: transparent; }
  /* Join the inner reading pane's top and left rules with a modest curve. */
  #window1 .finder-contents { border-top-left-radius: 8px; }
  #window1 .finder-contents::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    border-top: 1px solid var(--os-window-rule);
    border-left: 1px solid var(--os-window-rule);
    border-top-left-radius: 8px;
  }
  #window1 .bar.handle .os-window-bar { border-bottom-color: transparent; }
  /* macOS 27 returns the sidebar to the window edges under a uniform bar. */
  #window1 .nav.controller { background: transparent; border-right-color: transparent; }
  #window1 .nav.left-menu { background: transparent; border-right-color: transparent; }
}

/* Native system typography is limited to interface labels and window tools. */
.os-window :is(.list-text, .tab-title, .main-details, .sub-details, .nameplate) { font-family: var(--os-font); }
/* The Notes and Mail tiles share the desktop shortcut footprint. */
.desktop-app-icon {
  position: relative;
  display: block;
  width: 70px;
  height: 70px;
}
.desktop-app-icon > span {
  position: absolute;
  inset: 5px;
  overflow: hidden;
  border-radius: 17px;
  box-shadow: inset 0 0 0 1px #ffffff70, 0 3px 8px #0007;
}
.notes-desktop-icon > span {
  background: linear-gradient(180deg, #ffe266, #f8c719 25%, #f8f7f2 25%, #fff 100%);
}
.notes-desktop-icon > span::before {
  content: "";
  position: absolute;
  inset: 26.5% 3.3% auto;
  height: 2.6%;
  background: radial-gradient(circle, #a7a7a7 0.55px, transparent 0.85px) left center / calc(100% / 15) 100% repeat-x;
}
.notes-desktop-icon > span::after {
  content: "";
  position: absolute;
  inset: 49% 12.5% auto;
  height: 1.2px;
  border-radius: 99px;
  background: #bcbcbc;
  box-shadow: 0 15px #bcbcbc;
}
.mail-desktop-icon > span {
  background: linear-gradient(160deg, #0daaff, #0084f8 55%, #086ef0);
  box-shadow: inset 0 0 0 1px #ffffff32, 0 3px 8px #0007;
}
.mail-desktop-icon > span::before,
.mail-desktop-icon > span::after {
  content: "";
  position: absolute;
  inset: 15px 8px;
  border-radius: 5px;
}
.mail-desktop-icon > span::before {
  background:
    linear-gradient(139deg, transparent 49%, #eaf5ff 50%) left bottom / 51% 68% no-repeat,
    linear-gradient(221deg, transparent 49%, #dcecff 50%) right bottom / 51% 68% no-repeat,
    linear-gradient(#d3e7fe, #b4d7f9);
  box-shadow: 0 2px 5px #0c4e9d66;
}
.mail-desktop-icon > span::after {
  background: linear-gradient(#fff, #f4f9ff);
  clip-path: polygon(0 0, 100% 0, 100% 15%, 60% 60%, 55% 66%, 50% 68%, 45% 66%, 40% 60%, 0 15%);
}
#window2 .notes-navigation {
  border-radius: 999px;
  background: var(--os-control-fill);
  box-shadow: inset 0 0 0 1px var(--os-control-stroke), var(--os-glass-rim);
}
#window2 .notes-navigation .navigate { border-radius: 999px; }
#window2 .notes-navigation .navigate:hover { opacity: .8; background-color: transparent; }
#window2 .notes-navigation .navigate:active { opacity: 1; background-color: var(--os-control-pressed); }
/* Use the same continuous curve on the shell, its inset frame and the snap
   outline, including while a window moves between floating and tiled. */
@supports (corner-shape: superellipse(1.6)) {
  :root { --os-window-radius: 38px; }
  .os-window, .os-window-frame, html::after { corner-shape: superellipse(1.6); }
}
@supports (corner-shape: squircle) {
  #desktop-menu, #preview-window-menu { corner-shape: squircle; }
}

/* Content surfaces use the same restrained neutral hierarchy as the shell. */
#window1 .list-item { color: var(--os-text); }
#window1 .list-item.w--current { color: #fff; background: var(--os-selection); }
#window1 .list-item-wrapper:nth-child(even) .list-item:not(.w--current),
#window1 .library-tabs > .w-tab-menu > .list-item:nth-child(even):not(.w--current) {
  background: var(--os-surface-alternate);
}
#window1 .nav.left-menu > .profile-link {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 10px 15px 18px;
}
#window1 .nameplate { min-width: 0; color: var(--os-text); text-align: left; line-height: 17px; }
#window1 .profile-name { display: block; font-size: 13.5px; font-weight: 650; letter-spacing: -.25px; overflow-wrap: anywhere; }
#window1 .profile-role { display: block; color: #a0a0a0; font-size: 12px; font-weight: 500; }
#window1 .ava { flex: 0 0 36px; width: 36px; height: 36px; margin: 0; background-size: 43px; }
@media (min-width: 768px) {
  #window1 .nav.controller, #window1 .nav.left-menu {
    width: var(--finder-rail-width);
    min-width: var(--finder-rail-width);
    flex: 0 0 var(--finder-rail-width);
  }
}
#window1 .out-link { color: var(--os-link); }
#window1 .drop-arrow { background-color: var(--os-selection); }
@media (max-width: 767px) {
  #window1 #tabs1 .list-item.w--current { color: var(--os-text); background: var(--os-field); }
  /* Only the selected compact picker row owns the dropdown affordance. */
  #window1 #tabs1 .list-item:not(.w--current) .drop-arrow { display: none; }
  /* Moving the pointer does not create a second highlighted section. */
  #window1 #tabs1 .list-item:not(.w--current):hover {
    margin-left: 0;
    margin-right: 0;
    padding-left: 10px;
    background: transparent;
    border-radius: 0;
  }
}
/* The opaque Notes panes do not need a live backdrop on their scrolling shell. */
#window2.os-window {
  background: var(--os-surface-reading);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
#window2 > .os-window-frame,
#window2 #article-panel { background: var(--os-surface-reading); }
#window2 :is(.date, .subtext, .subtext .text) { color: var(--os-muted); }
#window2 :is(.title, .words, .words p, .words li, .words blockquote, .words h1, .words h2, .words h3) { color: var(--os-text); }
#window2 .words a { color: var(--os-link); }
#article-panel .email-button { background-color: #3b3b3b; }
#article-panel .email-button:hover { background-color: #4a4a4a; }
#window4 > .os-window-frame,
#window4 .browser-contents { background: var(--os-surface-reading); }
#window4 :is(.field, .recipient) { color: var(--os-text); caret-color: var(--os-accent); }
#window4 .box-label,
#window4 .field::placeholder { color: var(--os-muted); }
#window4 .field-wrapper { border-color: var(--os-line); }
#window4 .subject-button { color: var(--os-muted); }
#window4 .mail-form { position: relative; }
#window4 .mail-form :is(.w-form-done, .w-form-fail) {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--os-line);
  border-radius: 6px;
  color: var(--os-text);
  background: var(--os-surface-reading);
  pointer-events: none;
}

body.os-shell ::selection { color: #fff; background: var(--os-selection); }

/* Desktop hover cursors are arrows or hands; text keeps its insertion caret. */
body.os-shell { --desktop-cursor: default; cursor: default; }
body.os-shell * { cursor: var(--desktop-cursor, default); }
body.os-shell :is(
  a[href], button, summary, select,
  input[type="button"], input[type="submit"], input[type="reset"],
  input[type="checkbox"], input[type="radio"], input[type="range"],
  [role="button"], [role="tab"], [role="menuitem"], [role="menuitemradio"], [role="option"],
  .icon, .subject-button, [data-preview-src],
  :where(.words img, .custom-collection-item .photo:not(.file):not(.small))
):not(:disabled):not([aria-disabled="true"]):not(.discontinued) {
  --desktop-cursor: pointer;
  cursor: pointer;
}
body.os-shell :is(:disabled, [aria-disabled="true"], .discontinued) {
  --desktop-cursor: default;
  cursor: default;
}

/* Copy belongs to reading/editing areas, rather than desktop control labels. */
body.os-shell :is(
  .travos-menu, .spotlight-stage, [role="menu"], [role="tablist"], [role="listbox"],
  .os-window-bar, .os-window-controls, .icon, .list-item, .notes-list,
  .tab-title, .preview-tools, .preview-info-heading, :where(.preview-info) dt,
  button, [role="button"], summary, .subject-button, .box-label, .recipient,
  select, :where(input):is([type="button"], [type="submit"], [type="reset"], [type="checkbox"], [type="radio"], [type="range"]),
  .linkedin-button, .email-button, .mini_button
),
body.os-shell :is(
  .travos-menu, .spotlight-stage, [role="menu"], [role="tablist"], [role="listbox"],
  .os-window-bar, .os-window-controls, .icon, .list-item, .notes-list,
  .tab-title, .preview-tools, .preview-info-heading, :where(.preview-info) dt,
  button, [role="button"], summary, .subject-button, .box-label, .recipient,
  select, :where(input):is([type="button"], [type="submit"], [type="reset"], [type="checkbox"], [type="radio"], [type="range"]),
  .linkedin-button, .email-button, .mini_button
) * {
  -webkit-user-select: none;
  user-select: none;
}
body.os-shell :where(
  .legal-window-content, #article-panel .words, #article-panel .title,
  #article-panel .date, #article-panel .subtext, #finder-sections .details,
  .preview-text, .preview-info dd, .preview-pdf-page .textLayer
),
body.os-shell :where(
  .legal-window-content, #article-panel .words, #article-panel .title,
  #article-panel .date, #article-panel .subtext, #finder-sections .details,
  .preview-text, .preview-info dd, .preview-pdf-page .textLayer
) * {
  -webkit-user-select: text;
  user-select: text;
}
body.os-shell :is(
  input:not([type]), input[type="text"], input[type="email"], input[type="search"],
  input[type="number"], input[type="tel"], input[type="url"], input[type="password"],
  textarea, [contenteditable="true"], [contenteditable=""]
),
body.os-shell :is([contenteditable="true"], [contenteditable=""]) * {
  -webkit-user-select: text;
  user-select: text;
}

/* All desktop document windows share edge and corner resize targets. */
.os-window.os-resizable {
  --os-min-width: 330px;
  --os-min-height: 220px;
}
#window1.os-resizable { --os-min-width: 700px; --os-min-height: 300px; }
#window2.os-resizable { --os-min-width: 900px; --os-min-height: 300px; }
/* Notes opens with breathing room above/below and a generous reading column. */
#window2.os-resizable:not(.os-user-sized):not(.os-tiled):not(.os-maximized) {
  width: min(1100px, 100vw);
  max-width: 100vw;
  height: calc(100dvh - var(--os-menu-height) - 16px);
  max-height: calc(100dvh - var(--os-menu-height) - 16px);
}
body.os-shell #window2.os-resizable:not(.os-tiled):not(.os-maximized) {
  min-width: min(900px, 100vw);
}
#window4.os-resizable { --os-min-width: 400px; --os-min-height: 300px; }
#legal-window.os-resizable { --os-min-width: 420px; --os-min-height: 280px; }
body.os-shell .os-window.os-resizable {
  min-width: min(var(--os-min-width), var(--os-accepted-width, 100vw), 100vw);
  min-height: min(var(--os-min-height), var(--os-accepted-height, 100dvh), calc(100dvh - var(--os-menu-height)));
  /* The inner frame clips content. Resize handles can extend past the border. */
  overflow: visible;
  resize: none;
  transition: left 300ms ease-out, top 300ms ease-out,
    width 300ms ease-out, height 300ms ease-out,
    margin 300ms ease-out, border-radius 300ms ease-out !important;
}
/* Startup/fitting measure final bounds; dragging stays attached to the pointer. */
html:is(.desktop-fitting, [data-intro-state="loading"]) body.os-shell .os-window.os-resizable,
body.os-shell .os-window.os-resizable.is-dragging,
body.os-shell .os-window.os-resizable.is-resizing,
body.os-shell .os-window.os-resizable.os-layout-seeding { transition: none !important; }
body.os-shell .os-window.os-resizable.is-dragging.os-drag-placed.is-detaching {
  transition: width 300ms ease-out, height 300ms ease-out !important;
}
@media (prefers-reduced-motion: reduce) {
  body.os-shell .os-window.os-resizable,
  body.os-shell .os-window.os-resizable.is-dragging.os-drag-placed.is-detaching { transition: none !important; }
}
/* Retained export size caps apply to the initial layout, rather than user sizing. */
body.os-shell .os-window.os-user-sized:not(.os-maximized) {
  max-width: 100vw;
  max-height: calc(100dvh - var(--os-menu-height));
}
.os-window > .os-resize-handle {
  position: absolute;
  z-index: 20;
  display: block;
  /* Extend the corners outward while keeping their inside reach at 20px. */
  width: 28px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.os-resize-handle:is([data-resize-corner="nw"], [data-resize-corner="ne"]) { top: -8px; height: 28px; }
.os-resize-handle:is([data-resize-corner="sw"], [data-resize-corner="se"]) { bottom: 0; }
.os-resize-handle:is([data-resize-corner="nw"], [data-resize-corner="sw"]) { left: -8px; }
.os-resize-handle:is([data-resize-corner="ne"], [data-resize-corner="se"]) { right: -8px; }
.os-resize-handle:is([data-resize-edge="n"], [data-resize-edge="s"]) { left: 20px; right: 20px; width: auto; height: 6px; }
.os-resize-handle:is([data-resize-edge="e"], [data-resize-edge="w"]) { top: 20px; bottom: 20px; width: 14px; height: auto; }
.os-resize-handle[data-resize-edge="n"] { top: -8px; height: 14px; }
.os-resize-handle[data-resize-edge="e"] { right: -8px; }
.os-resize-handle[data-resize-edge="s"] { bottom: 0; }
.os-resize-handle[data-resize-edge="w"] { left: -8px; }
body.os-shell .os-resize-handle:is([data-resize-edge="n"], [data-resize-edge="s"]) { cursor: ns-resize; }
body.os-shell .os-resize-handle:is([data-resize-edge="e"], [data-resize-edge="w"]) { cursor: ew-resize; }
body.os-shell .os-resize-handle:is([data-resize-corner="nw"], [data-resize-corner="se"]) { cursor: nwse-resize; }
body.os-shell .os-resize-handle:is([data-resize-corner="ne"], [data-resize-corner="sw"]) { cursor: nesw-resize; }
.os-window.os-maximized > .os-resize-handle { display: none; }
html.desktop-resizing body.os-shell,
html.desktop-resizing body.os-shell * {
  cursor: var(--os-resize-cursor, nwse-resize) !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}
.desktop-resizing iframe { pointer-events: none !important; }

/* Column resizing uses fixed pixel preferences, independently of window size. */
.os-sidebar-divider { display: none; }
@media (min-width: 768px) {
  #window1 #tabs1 {
    width: var(--os-finder-sidebar-width, 145px);
    min-width: var(--os-finder-sidebar-width, 145px);
    flex: 0 0 var(--os-finder-sidebar-width, 145px);
  }
  .os-sidebar-divider {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8px;
    z-index: 12;
    cursor: col-resize;
    touch-action: none;
    user-select: none;
    background: transparent;
  }
  #window1 .os-sidebar-divider { top: var(--os-chrome-height); left: calc(var(--finder-rail-width) + var(--os-finder-sidebar-width, 145px) - 4px); }
  .os-sidebar-divider:focus-visible { outline: none; box-shadow: inset 2px 0 var(--os-accent); }
  html.desktop-column-resizing, html.desktop-column-resizing * { cursor: col-resize !important; user-select: none !important; }
}

/* Center the default Notes window, including its sidebar. */
@media (min-width: 768px) {
  #window2.os-resizable:not(.os-user-sized):not(.os-tiled):not(.os-maximized) {
    --os-notes-default-width: min(1100px, max(900px, calc(100vw - var(--notes-list-width) - 32px)), 100vw);
    width: var(--os-notes-default-width);
    left: calc((100vw - var(--os-notes-default-width)) / 2);
  }
}

/* Permanent Finder destinations, scaled to the native sidebar reference. */
#window1 .nav.left-menu { flex-direction: column; overflow-y: auto; }
.finder-locations { width: 100%; padding: 5px 8px 12px; flex: none; font-family: var(--os-font); }
#finder-locations-title { margin: 0 0 1px; padding: 0 6px; color: #969696; opacity: .86; font-size: 11px; font-weight: 600; line-height: 14px; letter-spacing: 0; }
#window1 .finder-location { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 9px; border-radius: 9px; color: #ededed; font-size: 13.5px; font-weight: 500; letter-spacing: -.15px; line-height: 20px; text-decoration: none; white-space: nowrap; }
.finder-location svg { width: 18px; height: 18px; flex: none; color: var(--os-accent); stroke-width: 2; }
#window1 .finder-location[aria-current="page"] { background: #2b3036; color: #fff; }
#window1 .finder-location:focus-visible { outline: 2px solid var(--os-focus); outline-offset: -2px; }
@media (max-width: 767px) {
  #window1 .nav.left-menu { display: flex; width: 122px; min-width: 122px; flex: 0 0 122px; }
  #window1 .nav.left-menu > .profile-link { display: none; }
  .finder-locations { padding: 5px 5px 10px; }
  #window1 .finder-location { gap: 4px; padding-inline: 6px; font-size: 13px; }
  .finder-location svg { width: 16px; height: 16px; }
  #finder-locations-title { padding-inline: 6px; }
}

/* Finder-scoped search lives in the toolbar and the existing content pane. */
#window1 .bar.handle { z-index: 8; }
#window1 > .os-window-frame > .os-window-controls { top: calc((var(--os-chrome-height) - 20px) / 2); z-index: 9; }
#window1 .bar.handle > .naval { flex: 1 1 0; min-width: 0; width: auto; }
#window1 .finder-search-field {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin: 0 7px 0 auto;
  padding: 0;
  border: 1px solid var(--os-control-stroke);
  border-radius: 999px;
  background: linear-gradient(165deg, #ffffff06, transparent 55%, #0000000c), var(--os-control-fill);
  color: var(--os-text);
  overflow: hidden;
  box-shadow: var(--os-glass-rim);
  transition: width 240ms cubic-bezier(.2,.8,.2,1), background-color 140ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
#window1 .finder-search-field.is-expanded { width: min(244px, calc(100vw - 124px)); padding-right: 10px; border-color: #515151; }
#window1 .finder-search-field.is-expanded:focus-within { border-color: #9aabb5; box-shadow: 0 0 0 3px #286c94; }
#window1 .finder-search-toggle { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 0; border-radius: 50%; padding: 0; background: transparent; color: inherit; }
.finder-search-toggle svg { display: block; width: 20px; height: 20px; }
@media (hover: hover) {
  #window1 .finder-search-field:not(.is-expanded):hover { background-color: var(--os-hover); border-color: var(--os-frame); }
}
@media (prefers-reduced-transparency: reduce) {
  #window1 .finder-search-field { background: var(--os-surface-raised); }
}
#window1 .finder-search-toggle:focus-visible { outline: 2px solid #4296c6; outline-offset: -3px; }
#window1 .is-expanded .finder-search-toggle { color: #999; }
#finder-search { flex: 1 1 0; min-width: 0; width: 0; border: 0; outline: 0; background: transparent; color: #e5e5e5; font: 14px var(--os-font); letter-spacing: -.2px; padding: 0; box-shadow: none; opacity: 0; visibility: hidden; transition: opacity 150ms ease; }
.is-expanded #finder-search { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { #window1 .finder-search-field, #finder-search { transition: none; } }
#finder-search::-webkit-search-cancel-button { display: none; }
#finder-search::placeholder { color: #969696; }
#window1 .finder-search-clear { border: 0; border-radius: 50%; flex: 0 0 15px; height: 15px; padding: 0; background: #999; color: #292929; font: 15px/14px var(--os-font); }
.finder-search-panel[hidden], .finder-search-clear[hidden], .finder-search-retry[hidden], .finder-search-empty[hidden], .finder-search-columns[hidden], #finder-search-results[hidden] { display: none !important; }
.finder-search-panel { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; overflow: hidden; background: #202020; font: 13px var(--os-font); color: var(--os-text); }
.finder-search-columns { display: grid; grid-template-columns: minmax(0, 1fr) 80px; align-items: center; padding-right: 20px; flex: none; }
#finder-search-results { flex: 1; min-height: 0; overflow: auto; }
#window1 .finder-search-result {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 80px;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
  color: var(--os-text);
  text-decoration: none;
}
.finder-search-result:nth-child(even) { background: var(--os-surface-alternate); }
#window1 .finder-search-result[aria-selected="true"] { background: var(--os-selection); color: #fff; }
.finder-search-result-icon { display: grid; place-items: center; height: 24px; }
.finder-search-result-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finder-search-result-kind { font-size: 11px; opacity: .75; }
.finder-search-empty { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.finder-search-empty-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border: 1px solid #454545; border-radius: 16px; background: linear-gradient(145deg,#353535,#292929); color: #b8b8b8; box-shadow: 0 5px 16px #0003; }
.finder-search-empty-icon svg { width: 30px; height: 30px; }
.finder-search-message { color: #eee; font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.finder-search-help { max-width: 290px; margin: 8px 0 0; color: #a7a7a7; font-size: 13px; line-height: 1.45; }
.finder-search-retry { margin-top: 18px; padding: 8px 16px; border-radius: 8px; background: #3a3a3a; color: #f2f2f2; border: 1px solid #606060; font: 600 13px var(--os-font); cursor: pointer; }
.finder-search-retry:hover { background: #484848; }
.finder-search-retry:focus-visible { outline: 2px solid #4296c6; outline-offset: 2px; }
.finder-search-status:empty { display: none; }
.finder-search-status { flex: none; padding: 5px 10px; min-height: 25px; border-top: 1px solid #383838; text-align: center; font-size: 11px; color: #999; }
@media (max-width: 767px) {
  #window1 .finder-search-field.is-expanded { width: min(244px, calc(100vw - 124px)); }
  #window1 #tabs1 { display: none; }
  .finder-search-columns { grid-template-columns: 1fr; }
  .finder-search-columns > :last-child, .finder-search-result-kind { display: none; }
  #window1 .finder-search-result { grid-template-columns: 20px minmax(0, 1fr); }
}

.finder-search-result-icon svg { width: 17px; height: 19px; display: block; }

/* Locations owns section navigation; reclaim the former picker column. */
#window1 #tabs1, #window1 .os-sidebar-divider { display: none !important; }

#window1 .profile-link { text-decoration: none; cursor: pointer; }
#window1 .profile-link:focus-visible { outline: 2px solid var(--os-focus); outline-offset: -3px; border-radius: 8px; }

/* Products shares the Finder list rhythm and alternating-row selection rules. */
#window1 .product-files { margin-bottom: 0; }
#window1 .product-file { justify-content: flex-start; gap: 6px; opacity: 1; padding-right: 10px; font-family: var(--os-font); }
.product-file-icon { width: 16px; height: 16px; flex: none; color: #b5bdc8; }
.product-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-file-status { margin-left: auto; padding-left: 12px; flex: none; font-size: 11px; color: var(--os-muted); }
#window1 .product-file.w--current :is(.product-file-icon, .product-file-status) { color: inherit; }
@media (prefers-contrast: no-preference) {
  .product-file[data-product-status="sunset"] > :is(.product-file-name, .product-file-icon, .product-file-status) { opacity: .34; }
}

/* One continuous sidebar surface underneath the toolbar and profile. */
#window1 > .os-window-frame::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--finder-rail-width);
  border-right: 1px solid #3c3c3e;
  background: #262628;
  pointer-events: none;
}
#window1 .finder-locations { padding-inline: 9px 12px; }
@media (max-width: 767px) {
  #window1 { --finder-rail-width: 122px; }
  #window1 .finder-locations { padding-inline: 10px; }
}

/* Align the Locations rail, file lists and Finder search on one row rhythm. */
#window1 { --finder-rail-width: 204px; --finder-column-inset: 15px; --os-surface-alternate: #242424; --os-chrome-height: 50px; }
#window1 > .os-window-frame { background: #202020; }
#window1 .finder-contents { background: #202020; border-top-left-radius: 0; }
#window1 .finder-contents::after { display: none; }
#window1 .bar.handle .os-window-bar { border-bottom: 0; }
#window1 .tab-title, #window1 .finder-search-columns { height: 30px; border-bottom: 1px solid #363636; padding-left: var(--finder-column-inset); color: #a8a8a8; }
#window1 .tab-title { background: #202020; }
#window1 #finder-sections .list, #window1 #finder-search-results { padding-block: 6px; }
#window1 #finder-sections .list-item, #window1 .finder-search-result {
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  padding: 4px 9px;
  margin-inline: 6px;
  border-radius: 7px;
  font: 450 13px/20px var(--os-font);
  letter-spacing: -.1px;
}
#window1 #finder-sections .list-item-wrapper { flex: 0 0 auto; }
#window1 #finder-sections .list-item.img .photo.menu-icon-wrapper { width: 17px; height: 20px; flex: none; }
#window1 #finder-sections .list-item.img .menu-icon { max-width: 17px; max-height: 20px; object-fit: contain; }

#window1 .library-tabs {
  display: grid;
  grid-template-columns: minmax(0, clamp(168px, 39%, 400px)) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  container-type: size;
}
#window1 .library-tabs > .w-tab-menu {
  min-width: 0;
  border-right: 1px solid #343434;
  overflow-x: hidden;
}
#window1 .library-tabs > .tabs-content {
  min-width: 0;
  min-height: 0;
  width: 100%;
}
#window1 .library-tabs .tab-details { width: 100%; min-width: 0; gap: 8px; }
#window1 :is(.library-tabs .truncate, .finder-file-name) {
  width: auto;
  max-width: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#window1 .library-tabs .detail-wrapper {
  gap: 12px;
  justify-content: flex-start;
  width: min(100%, 720px);
  max-width: none;
  min-height: 0;
  margin-inline: auto;
  padding: clamp(12px, 2.5cqi, 22px);
}
#window1 .library-tabs .details { width: 100%; min-width: 0; overflow-wrap: anywhere; }
#window1 .library-tabs .finder-preview-media {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 10px;
  color: var(--os-text);
  text-decoration: none;
  background: #252626;
  border: 1px solid #343636;
  border-radius: 12px;
}
#window1 .library-tabs .finder-preview-media:focus-visible {
  outline: 2px solid var(--os-focus);
  outline-offset: -2px;
}
#window1 .library-tabs .finder-preview-media .photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(88px, 32cqh, 250px);
  max-height: none;
  object-fit: contain;
}
.finder-document-icon {
  position: relative;
  display: block;
  height: 18px;
  flex: none;
  aspect-ratio: 0.76;
  overflow: hidden;
  border-radius: 12%;
  clip-path: polygon(0 0, 69% 0, 100% 25%, 100% 100%, 0 100%);
  --finder-paper-tone: #f5f5f5;
  --finder-fold-tone: #dedede;
  color: #777;
  background:
    linear-gradient(currentColor, currentColor) 25% 45% / 50% 2% no-repeat,
    linear-gradient(currentColor, currentColor) 25% 53% / 40% 2% no-repeat,
    linear-gradient(145deg, #fff, var(--finder-paper-tone));
}
.finder-document-icon[data-file-kind="WEB"] {
  --finder-paper-tone: #cfdfd6;
  --finder-fold-tone: #9cb6ac;
  color: #3d6255;
}
.finder-document-icon::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 31%;
  height: 25%;
  border-bottom-left-radius: 22%;
  background: var(--finder-fold-tone);
}
.finder-preview-media .finder-document-icon {
  height: clamp(96px, 35cqh, 230px);
}
#window1 .library-tabs .finder-preview-media:has([data-file-kind="PDF"]) {
  background: #242322;
  border-color: #373534;
}
.finder-preview-media .finder-document-icon[data-file-kind="PDF"] {
  color: #b0b0b0;
  border-radius: 7% / 5%;
  background:
    linear-gradient(currentColor, currentColor) 50% 46% / 50% 2% no-repeat,
    linear-gradient(currentColor, currentColor) 50% 54% / 34% 2% no-repeat,
    linear-gradient(155deg, #e8e8e8, var(--finder-paper-tone) 45%);
}
.finder-preview-media .finder-document-icon[data-file-kind="PDF"]::before {
  background: linear-gradient(145deg, var(--finder-fold-tone), #fff 75%);
  box-shadow: -3px 4px 9px #0003;
}
.finder-preview-media .finder-document-icon::after {
  content: attr(data-file-kind);
  position: absolute;
  inset: auto 0 11%;
  color: inherit;
  text-align: center;
  font: 700 clamp(12px, 3.2cqh, 20px)/1 var(--os-font);
  letter-spacing: .13em;
  padding-inline-start: .13em;
}
.finder-preview-media .finder-document-icon[data-file-kind="PDF"]::after {
  font-weight: 500;
  letter-spacing: .035em;
  padding-inline-start: .035em;
}
.finder-preview-label {
  padding: 4px 12px;
  border: 1px solid #ffffff18;
  border-radius: 999px;
  background: #ffffff0a;
  font: 550 12px/17px var(--os-font);
  text-align: center;
}
.finder-preview-media:hover .finder-preview-label,
.finder-preview-media:focus-visible .finder-preview-label { background: #ffffff16; }
#window1 .library-tabs [data-record-heading] {
  margin: 0 0 10px;
  color: var(--os-text);
  font: 620 clamp(15px, 2.6cqi, 19px)/1.3 var(--os-font);
  letter-spacing: -.25px;
}
#window1 .library-tabs .main-details.sub { margin: 0 0 4px; font-weight: 600; }
#window1 .library-tabs .sub-details-wrapper {
  align-items: baseline;
  gap: 10px;
  margin: 0;
  border-bottom: 0;
  border-top: 1px solid #363636;
}
#window1 .library-tabs .sub-details {
  margin: 0;
  padding: 5px 0;
  font-size: 12px;
  line-height: 1.4;
}
#window1 .library-tabs .sub-details:not(.light) { color: #a8a8a8; font-weight: 500; }
#window1 .library-tabs .sub-details.light { min-width: 0; color: var(--os-text); }
#window1 .library-tabs .out-link { min-width: 0; justify-content: flex-end; }
#window1 .library-tabs .out-link .sub-details { color: var(--os-link); }
#window1 .library-tabs .out-link .arrow { flex: none; }

@media (max-width: 640px) {
  #window1 > .os-window-frame > .view { flex-direction: column; }
  #window1 > .os-window-frame::before { display: none; }
  #window1 .nav.left-menu {
    flex: none;
    width: 100%;
    height: auto;
    min-width: 0;
    overflow: hidden;
    background: #242424;
  }
  #window1 .finder-locations {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 4px 6px;
    border-bottom: 1px solid #363636;
  }
  #finder-locations-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
  #window1 .finder-location {
    flex-direction: column;
    justify-content: center;
    min-height: 42px;
    gap: 2px;
    padding: 4px 0;
    font: 550 11px/15px var(--os-font);
  }
  .finder-location svg { width: 15px; height: 15px; }
  #window1 .finder-contents { flex: 1 1 0; min-height: 0; overflow: hidden; }
  #window1 .library-tabs {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(86px, 30%, 184px) minmax(0, 1fr);
  }
  #window1 .library-tabs > .w-tab-menu { border-right: 0; border-bottom: 1px solid #343434; }
  #window1 .library-tabs .finder-preview-media :is(.photo, .finder-document-icon) {
    height: clamp(78px, 24cqh, 155px);
  }
}

/* The grouped chevrons fit beside the traffic lights without shifting desktop titles. */
.finder-history {
  position: absolute;
  right: calc(100% + 12px);
  display: flex;
  flex: none;
  align-items: center;
  width: 72px;
  height: 34px;
  border: 1px solid var(--os-control-stroke);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff10, #ffffff03), var(--os-control-fill);
  box-shadow: var(--os-glass-rim);
}
.finder-history button {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1;
  align-self: stretch;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--os-text);
}
.finder-history button + button::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 0;
  border-left: 1px solid var(--os-control-stroke);
}
.finder-history svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.finder-history button:disabled { color: var(--os-muted); opacity: .48; }
.finder-history button:not(:disabled):hover { background: var(--os-hover); }
.finder-history button:focus-visible { outline: 2px solid var(--os-focus); outline-offset: -2px; }

/* Section titles occupy the toolbar title position. */
.finder-toolbar-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 16px 0 var(--finder-column-inset); color: #e8e8e8; font: 700 16px/22px var(--os-font); letter-spacing: -.4px; }
#window1 .tab-title { font-size: 0; }
#window1 .tab-title::after { content: "Name"; }
#window1 .tab-title::after, #window1 .finder-search-columns { font: 500 12px/18px var(--os-font); letter-spacing: 0; }
@media (max-width: 767px) {
  .finder-history { position: relative; right: auto; width: 60px; height: 30px; margin-left: 86px; }
  .finder-toolbar-title { padding-left: 7px; padding-right: 8px; font-size: 13px; }
  #window1 .naval:has(.finder-search-field.is-expanded) .finder-history { display: none; }
  #window1 .naval:has(.finder-search-field.is-expanded) .finder-toolbar-title { display: none; }
}

/* Keep Finder's content aligned with its toolbar. */
#window1 > .os-window-frame > .view {
  margin-top: calc(-1 * var(--os-chrome-height));
  padding-top: var(--os-chrome-height);
}
