/* Small behavior affordances; the original Webflow design remains unchanged. */
/* The OS desktop is a viewport, not a page that inner controls can scroll. */
body.travos {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: clip;
  overscroll-behavior: none;
}

/* The work area physically starts below the menu. Its inner plane retains
   the original viewport origin for normal, fixed and tiled window positions.
   Layout containment keeps fixed windows inside the overflow clip without
   clip-path's separate backdrop root, preserving the native glass blur. */
body.travos > .os-workarea {
  position: fixed;
  inset: var(--os-menu-height, 38px) 0 0;
  overflow: clip;
}
body.travos .os-window-plane {
  position: absolute;
  inset: calc(-1 * var(--os-menu-height, 38px)) 0 0;
  contain: layout;
}

body.travos .os-window-plane > .viewport {
  width: 100%;
  height: 100%;
}

body.travos .os-window-plane > .viewport,
body.travos .desktop,
body.travos .window > .wrapped {
  /* Unlike hidden, clip also prevents focus/scrollIntoView from scrolling. */
  overflow: clip;
}

body.travos .tabs-container,
body.travos .list,
body.travos .tab-pane.scroll {
  overscroll-behavior: contain;
}

body.travos .window .handle,
body.travos .dragon .handle {
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}
body.travos .handle img { -webkit-user-drag: none; }

body.travos .window,
body.travos .dragon {
  transition: none !important;
}

/* Even a short browser must fit the whole window below the 38px menu. */
body.travos .window {
  min-height: 0;
  max-height: calc(100dvh - 46px);
}
body.travos .window.writing {
  max-height: min(900px, calc(100dvh - 46px));
}

.desktop-dragging .is-dragging { will-change: transform; }
.desktop-dragging iframe { pointer-events: none !important; }

.control-button[role="button"]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.control-button[data-os-action="minimize"] { background-color: var(--os-control-minimize); }
.control-button[data-os-action="maximize"] { background-color: var(--os-control-maximize); }

.window .list-tab-wrapper { min-height: 180px; }

/* Desktop selection uses window stacking, without a browser focus border. */
body.travos .window:focus,
body.travos .icon:focus { outline: none; }

/* A compact paper-plane action composes a draft in the visitor's email app. */
#window4 .send {
  display: grid;
  place-items: center;
  width: 42px;
  height: 30px;
  padding: 5px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--os-selection);
  appearance: none;
}
#window4 .send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
#window4 .send:hover { filter: brightness(1.15); }
#window4 .send:active { filter: brightness(.9); }
#window4 .send:focus-visible { outline: 2px solid var(--os-focus); outline-offset: 2px; }

/* Finder lists fill every window state, including first maximize/restore. */
#window1 #finder-sections > .w-tab-content {
  min-width: 0;
  min-height: 0;
}
#window1 #finder-sections > .w-tab-content > .w--tab-active {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
#window1 #finder-sections > .w-tab-content > .w--tab-active > .tab-title { flex: none; }
#window1 #finder-sections > .w-tab-content > .w--tab-active > .lists,
#window1 .list-tab-wrapper {
  flex: 1;
  min-height: 0;
  height: auto;
}
#window1 .list-tab-wrapper { margin-top: 0; padding-top: 0; }
#window1 .list.wide,
#window1 .list-tab-wrapper > .lists { height: 100%; }
/* Keep Mail's fields, paper-plane action and body inside shorter/taller windows. */
#window4.os-user-sized > .wrapped,
#window4.os-user-sized .form { display: flex; flex-direction: column; }
#window4.os-user-sized .content-wrap.browser-contents {
  flex: 1;
  min-width: 0;
  min-height: 0;
}
#window4.os-user-sized .field-wrapper { flex: none; }
#window4.os-user-sized #Body {
  flex: 1;
  height: auto;
  min-height: 60px;
}
