@font-face {
  font-family: "Woodridge Moss";
  src: url("font/woodridgemoss-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===============================
   GLOBAL BUTTON RESET (Win95)
================================ */
button {
  border-radius: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* ===============================
   GLOBAL
================================ */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden; /* prevents tiny scroll = floating taskbar */
}

body {
  background: #008080;
  font-family: "MS Sans Serif", Arial, sans-serif;
}

/* ===============================
   DESKTOP
================================ */
#desktop {
  position: fixed; /* lock to viewport */
  inset: 0;
  padding: 20px;
  padding-bottom: 56px; /* reserve space for taskbar */
  background: transparent;
  overflow: hidden;
}

.desktop-label {
  color: white;
  font-weight: bold;
  margin-bottom: 20px;
}

/* ===============================
   TASKBAR (PINNED)
================================ */
#taskbar {
  position: fixed; /* <-- CRITICAL */
  left: 0;
  right: 0;
  bottom: 0;

  height: 36px;
  background: #c0c0c0;
  display: flex;
  align-items: center;
  padding: 4px;
  border-top: 2px solid #fff;
  z-index: 9999;
}

#start {
  height: 28px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  gap: 4px;
  width: auto;
  white-space: nowrap;
  box-sizing: border-box;
}

#start .start-icon {
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  display: block;
  image-rendering: pixelated;
  flex: 0 0 auto;
  pointer-events: none;
}

#start .start-text {
  line-height: 1;
}

#tasks {
  display: flex;
  align-items: center;
  height: 28px;
  margin-left: 6px;
  overflow: hidden;
  flex: 1;
}

.task {
  min-width: 90px;
  max-width: 180px;
  height: 28px;
  padding: 4px 10px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  cursor: pointer;
  margin-right: 6px;
  font-size: 12px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.task.active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

#clock {
  min-width: 70px;
  height: 28px;
  padding: 4px 8px;
  margin-left: auto;
  background: #c0c0c0;
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FORCE Win95 button text colour on mobile Safari */
#start,
#taskbar button {
  color: #000 !important;
  -webkit-text-fill-color: #000;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

/* ===============================
   START MENU: ICONS (Win95 style)
================================ */
#start-menu button {
  position: relative;
  padding-left: 46px;
}


/* default: folder icon */
#start-menu button::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);

  width: 18px;
  height: 12px;

  background: #f5c542;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
}

/* little folder tab */
#start-menu button::after {
  content: "";
  position: absolute;
  left: 10px;
  top: calc(50% - 10px);

  width: 9px;
  height: 6px;

  background: #f5c542;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
}

/* ===============================
   START MENU
================================ */
#start-menu {
  position: fixed;      /* <-- keep it pinned too */
  bottom: 36px;
  left: 0;
  width: 200px;
  background: #c0c0c0;
  border: 2px solid #000;
  display: none;
  z-index: 10000;
}

#start-menu button {
  width: 100%;
padding: 8px 8px 8px 46px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

#start-menu button:hover {
  background: navy;
  color: white !important;
  -webkit-text-fill-color: white !important;
}




/* ===============================
   OUTLOOK-STYLE MAIL APP (LOOK ONLY)
================================ */
.mail-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #c0c0c0;
  padding: 6px;
}

.mail-toolbar {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
}

.mail-btn, .mail-mini-btn {
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  padding: 2px 10px;
  font-family: inherit;
  font-size: 12px;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;

}

.mail-mini-btn { padding: 2px 8px; }

.mail-head {
  margin-top: 6px;
  padding: 6px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
}

.mail-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.mail-row:nth-child(2),
.mail-row:nth-child(3) {
  grid-template-columns: 56px 1fr;
}

.mail-row label {
  font-size: 12px;
}

.mail-row input {
  height: 22px;
  padding: 2px 6px;
  background: #fff;
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  font-family: inherit;
  font-size: 12px;
}

.mail-row input[readonly] {
  background: #e9e9e9;
  color: #000;
}

.mail-body {
  flex: 1;
  margin-top: 6px;
  padding: 6px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  display: flex;
}

.mail-body textarea {
  width: 100%;
  resize: none;
  background: #fff;
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  padding: 6px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
}

.mail-status {
  margin-top: 6px;
  padding: 4px 6px;
  font-size: 12px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
}

/* Desktop icon: simple envelope (no image asset needed) */
.mail-icon {
  width: 32px;
  height: 32px;
  display: block;
  margin: 0 auto 6px;
  image-rendering: pixelated;
}


/* Remove white frame around Outlook Express window */
.window-body:has(.mail-app) {
  background: #c0c0c0;
  padding: 0;
}


/* ===============================
   WINDOWS (DEFAULT)
================================ */
.window {
  position: absolute;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  min-width: 320px;
  min-height: 220px;
}

.titlebar {
  height: 24px;
  background: navy;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px;
  cursor: move;
  font-weight: bold;
  user-select: none;
  overflow: hidden;
}

.titlebar.inactive { background: gray; }

.titlebar > :first-child {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-controls {
  display: flex;
  gap: 2px;
  flex: 0 0 auto;
}

.window-controls button {
  width: 18px;
  height: 18px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

.window-controls button[data-action="min"]::before {
  content: "";
  width: 10px;
  height: 2px;
  background: black;
  position: relative;
  top: 6px;
}

/* Default window content is WHITE (Logan, Bio, etc.) */
.window-body {
  position: relative;
  padding: 10px;
  background: white;
  height: calc(100% - 24px);
  overflow: auto;
}

/* ===============================
   RECYCLE BIN TOOLBAR (FIX FLOATING BUTTONS)
================================ */
.recycle-toolbar {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #c0c0c0;

  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
}


/* ===============================
   MY DOCUMENTS: CLEAN GRID LAYOUT
================================ */
.window-icon-area.docs-grid {
  display: flex !important;
  gap: 18px !important;
  padding: 12px 16px !important;
  align-items: flex-start !important;

  position: relative !important;
  min-height: auto !important; /* override the 240px default if you want */
}

/* override the global absolute icon behaviour */
.docs-grid .window-icon {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 90px !important;      /* match your Pictures footprint */
}

/* keep labels aligned nicely */
.docs-grid .icon-label {
  display: block !important;
  text-align: center !important;
  min-height: 28px !important;
}

/* ===============================
   ART ICON AREA
================================ */
.window-icon-area { position: relative; min-height: 240px; }

.window-icon { position: absolute; width: 110px; text-align: center; font-size: 12px; user-select: none; cursor: default; }

.window-icon img { width: 48px; height: 48px; object-fit: contain; image-rendering: pixelated; }

.window-icon .thumb-box {
  width: 96px;
  height: 72px;
  margin: 0 auto;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.window-icon .thumb-box img { width: 100%; height: 100%; object-fit: cover; display: block; }

.window-icon .icon-label { margin-top: 6px; padding: 2px 4px; display: inline-block; line-height: 1.2; color: black; }

.window-icon.selected .icon-label { background: navy; color: white; }

/* ===============================
   LIST STYLES (BIO)
================================ */
.facts { margin: 10px 0 0; padding-left: 18px; }
.facts li { margin: 6px 0; }

/* ===============================
   DESKTOP ICONS
================================ */
.desktop-icon {
  position: absolute;
  width: 90px;
  text-align: center;
  color: white;
  font-size: 12px;
  cursor: default;
  user-select: none;
}

.desktop-icon .icon-label {
  margin-top: 6px;
  line-height: 1.2;
  padding: 2px 4px;
  display: inline-block;
}

.desktop-icon.selected .icon-label { background: navy; color: white; }

.desktop-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
  margin: 0 auto 4px;
}


.folder-icon {
  width: 40px;
  height: 28px;
  margin: 0 auto;
  background: #f5c542;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  position: relative;
}

.folder-icon::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 2px;
  width: 20px;
  height: 8px;
  background: #f5c542;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
}

/* Internet shortcuts inside windows should look like desktop icons */
.window .window-icon.internet-shortcut {
  width: 90px;            /* match your desktop icon footprint */
  background: transparent;
  border: none;
  padding: 0;
}

.window .window-icon.internet-shortcut .desktop-icon-img {
  width: 32px;            /* classic icon size */
  height: 32px;
  display: block;
  margin: 0 auto 6px;
}

.window .window-icon.internet-shortcut .icon-label {
  text-align: center;
  max-width: 90px;
}


/* ===============================
   ESSAY VIEW (LOGAN)
================================ */
.essay { max-width: 640px; margin: 0 auto; color: #000; }
.essay-title { font-size: 20px; font-weight: bold; margin: 0 0 6px 0; }
.essay-meta { font-size: 12px; color: #555; margin-bottom: 16px; }
.essay-body { font-size: 14px; line-height: 1.45; }
.essay-body p { margin: 0 0 14px 0; }

/* ===============================
   PAINT APP (FIX WHITE WINDOW)
   Apply these when the window has class "paint-app"
================================ */
.paint-app .window-body {
  background: #c0c0c0;
  height: calc(100% - 24px);
  overflow: hidden;      /* IMPORTANT: kills the mobile right-side gutter */
  padding: 6px;          /* nice consistent chrome padding */
  display: flex;         /* makes toolbar + canvas behave */
  flex-direction: column;
}


.paint-toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.paint-toolbar button {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  cursor: pointer;
}

.paint-toolbar button.active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.paint-toolbar button:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(1px, 1px);
}

.paint-palette {
  display: grid;
  grid-template-columns: repeat(8, 18px);
  gap: 4px;
  align-items: center;
}

.paint-swatch {
  width: 18px;
  height: 18px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  cursor: pointer;
}

.paint-swatch.selected {
  outline: 2px dotted #000;
  outline-offset: 1px;
}

.paint-canvas-wrap {
  background: #fff;
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;

  flex: 1 1 auto;
  overflow: auto;   /* allows scroll instead of stretch */
}


#paint-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  image-rendering: pixelated;
  touch-action: none;
}

/* ==============================
   TEXT APP ONLY — FIXES GREY GAP
   Applies when the window has class "text-app"
   (keeps Logan etc white)
================================ */
.text-app .window-body {
  display: flex;
  flex-direction: column;
  background: #c0c0c0;
  padding: 0;
  height: calc(100% - 24px);
  overflow: hidden;
}

.text-app .text-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 2px 6px;
  background: #c0c0c0;
  border-bottom: 1px solid #808080;
  font-size: 12px;
  flex: 0 0 auto;
}

.text-app .text-toolbar button,
.text-app .text-toolbar select {
  height: 22px;
  padding: 0 6px;
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  font-family: "MS Sans Serif", Arial, sans-serif;
  font-size: 12px;
}

.text-app .text-toolbar button:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

.text-app .content {
  flex: 1 1 auto;
  padding: 6px;
  overflow: hidden;
}

.text-app .text-editor {
  width: 100%;
  height: 100%;
  resize: none;
  box-sizing: border-box;
  background: #ffffff;
  color: #000000;
  padding: 8px;
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  overflow: auto;
}

.text-app .statusbar {
  height: 24px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 8px;
  background: #c0c0c0;
  border-top: 1px solid #808080;
  font-size: 12px;
}

/* ===============================
   MOBILE WINDOW BEHAVIOUR
================================ */
@media (max-width: 768px) {
  .window {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: calc(100% - 36px) !important;
    min-width: unset;
    min-height: unset;
  }
}


/* ===============================
   PAINT: FORCE PALETTE + SWATCHES VISIBLE
================================ */
.paint-app #paint-palette {
  display: grid !important;
  grid-template-columns: repeat(8, 18px) !important;
  gap: 4px !important;
  align-items: center !important;
}

.paint-app #paint-palette .paint-swatch {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  background: #000; /* will be overridden by inline style */
  border-top: 2px solid #fff !important;
  border-left: 2px solid #fff !important;
  border-right: 2px solid #404040 !important;
  border-bottom: 2px solid #404040 !important;
  cursor: pointer !important;
}


/* ==============================
   WIN95 CUSTOM DROPDOWN (TEXT APP)
================================ */
.text-app .w95-combo {
  position: relative;
  display: inline-block;
}

.text-app .w95-combo-btn {
  height: 22px;
  min-width: 140px;
  padding: 0 6px;
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  font-family: "MS Sans Serif", Arial, sans-serif;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.text-app .w95-combo-btn:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}

.text-app .w95-combo-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.text-app .w95-combo-arrow {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
  background: #c0c0c0;
  font-size: 10px;
  line-height: 1;
}

.text-app .w95-combo-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 2px;
  background: #c0c0c0;
  border: 2px solid #000;
  min-width: 100%;
  z-index: 99999;
  padding: 2px;
}

.text-app .w95-combo-item {
  width: 100%;
  text-align: left;
  padding: 6px 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "MS Sans Serif", Arial, sans-serif;
  font-size: 12px;
  color: #000;
}

.text-app .w95-combo-item:hover,
.text-app .w95-combo-item:focus-visible {
  background: navy;
  color: white;
  outline: none;
}

.text-app .text-editor{
  font-family: "Woodridge Moss", monospace !important;
}


.text-app .text-editor {
  font-family: "Woodridge Moss", monospace !important;
}

/* ==============================
   MOBILE SAFARI: STOP BLUE UI TEXT
================================ */
.text-app button,
.text-app .w95-combo-btn,
.text-app .w95-combo-item {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important; /* iOS fix */
}

.text-app button,
.text-app .w95-combo-btn {
  -webkit-appearance: none;
  appearance: none;
  background: #c0c0c0;
}

/* removes blue tap highlight */
.text-app * {
  -webkit-tap-highlight-color: transparent;
}


/* ==============================
   MOBILE SAFARI: RECYCLE BIN
   FORCE BLACK TEXT
================================ */
.recycle-toolbar button,
.recycle-toolbar .recycle-btn {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  -webkit-appearance: none;
  appearance: none;
}

/* ==============================
   TEXT APP – COMBO WIDTH TWEAKS
============================== */

.text-app #font-combo .w95-combo-btn {
  width: 150px;
}

.text-app #size-combo .w95-combo-btn {
  width: 50px;
  min-width: 80px;        /* ✅ THIS is the missing part */
  justify-content: space-between;
}


.text-app #size-combo {
  flex: 0 0 auto;
}

.text-app #size-combo .w95-combo-btn {
  width: 50px;
}

/* ============================= */
/* MOBILE: TEXT TOOLBAR ONLY     */
/* (keeps dropdown menu visible) */
/* ============================= */
@media (max-width: 520px) {
  .text-app .text-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;

    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    overflow-x: auto;            /* allow sideways scroll */
    overflow-y: visible;         /* KEY: DO NOT CLIP dropdown menu */
    -webkit-overflow-scrolling: touch;

    padding-right: 16px;
    position: relative;          /* helps z-index/menu layering */
    z-index: 2;
  }

  .text-app .text-toolbar > * {
    flex: 0 0 auto;              /* keep items from stretching weirdly */
  }

  /* Let the FONT combo shrink a bit if needed */
  .text-app #font-combo .w95-combo-btn {
    max-width: 55vw;
  }
}

/* ===============================
   MOBILE: PIN RECYCLE BIN ABOVE TASKBAR
================================ */
@media (max-width: 768px) {
  #recycle-bin {
    position: fixed !important;
    right: 12px !important;
    left: auto !important;
    top: auto !important;
    bottom: 44px !important;
    z-index: 9000;
  }

  /* Hide bin when a window is open (mobile only) */
  body:has(.window) #recycle-bin {
    display: none;
  }
}

/* ===============================
   RECYCLE BIN DESKTOP ICON (fixed start position)
================================ */
#recycle-bin .icon-label {
  color: #fff;
}

/* ===============================
   RECYCLE BIN ICON (uses PNG as an icon, not a thumbnail)
================================ */
#recycle-bin .bin-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 4px;
  background: url("images/icons/bin.png") no-repeat center;
  background-size: contain;
  image-rendering: pixelated;
}

/* ===============================
   RECYCLE BIN: SCALE ICON + LABEL
================================ */
#recycle-bin {
  transform: scale(0.9);
  transform-origin: bottom right;
}


/* WIN95 hourglass cursor (custom) */
body.waiting {
  cursor: url("images/cursors/hourglass.png") 10 6, auto !important;
}


@media (max-width: 768px) {
  #desktop {
    padding-bottom: 90px;
  }
}



/* ===============================
   RECYCLE BIN — MAKE TOOLBAR BEHAVE LIKE MAIL / NOTEBOOK
   (fixes grey dead zone + weird seam)
================================ */

/* Turn the recycle window-body into: toolbar (top) + content (fills rest) */
.window[data-win-id="recycle"] .window-body{
  padding: 0 !important;
  background: #fff !important;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* important: prevents the grey "void" look */
}

/* Toolbar flush under titlebar, full width */
.window[data-win-id="recycle"] .recycle-toolbar{
  flex: 0 0 auto;
  width: 100%;
  margin: 0 !important;
  box-sizing: border-box;

  /* override any “button floating” borders that create seams */
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid #808080;
}

/* The icon area fills the remaining height and scrolls if needed */
.window[data-win-id="recycle"] .window-icon-area{
  flex: 1 1 auto;
  overflow: auto;
  padding: 10px;
  background: #fff;
}

