/* macOS-inspired UI — layout & chrome only */

:root {
  --menu-bar-height: 28px;
  --dock-margin: 12px;
  --dock-reserve: 96px;
  --finder-radius: 10px;
  --shadow-window: 0 22px 70px rgba(0, 0, 0, 0.35), 0 0 1px rgba(0, 0, 0, 0.25);
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --wallpaper-1: #6b8cff;
  --wallpaper-2: #9b7dff;
  --wallpaper-3: #ff7eb3;
  /* Heavy “liquid glass” — strong blur over wallpaper */
  --glass-saturate: 235%;
  --glass-blur-huge: 88px;
  --glass-blur-bar: 52px;
  --glass-bg-dark: rgba(16, 16, 22, 0.38);
  --glass-bg-dark-mid: rgba(26, 26, 34, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-ui);
  color: #1d1d1f;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow: hidden;
  position: relative;
}

.desktop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
      120% 90% at 20% 15%,
      rgba(255, 255, 255, 0.35),
      transparent 55%
    ),
    radial-gradient(90% 80% at 85% 20%, rgba(255, 200, 220, 0.45), transparent 50%),
    linear-gradient(165deg, var(--wallpaper-1), var(--wallpaper-2) 45%, var(--wallpaper-3));
}

.desktop-items {
  position: fixed;
  inset: 34px 12px 104px 12px;
  z-index: 5;
  pointer-events: auto;
  touch-action: none;
}

/* Full-area hit target behind icons so empty desktop always receives clicks */
.desktop-board {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
}

.desktop-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 74px;
  margin: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  font: inherit;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 4px 2px;
  border-radius: 8px;
  cursor: default;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  z-index: 1;
  user-select: none;
  -webkit-user-select: none;
}

.desktop-item--dragging {
  z-index: 50;
  cursor: grabbing;
}

.desktop-item:hover,
.desktop-item:focus-visible {
  background: rgba(90, 140, 230, 0.26);
  outline: none;
}

.desktop-item--selected {
  background: rgba(64, 156, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28) inset;
}

.desktop-item--selected:hover,
.desktop-item--selected:focus-visible {
  background: rgba(64, 156, 255, 0.5);
}

/* Desktop rubber-band — light tint, NOT blurred so wallpaper shows through */
.desktop-marquee,
.finder-marquee {
  position: absolute;
  z-index: 40;
  pointer-events: none;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18);
}

.finder-marquee {
  border-color: rgba(120, 156, 220, 0.78);
  background: rgba(120, 156, 220, 0.16);
  box-shadow: 0 0 0 0.5px rgba(40, 80, 160, 0.18);
}

/* Drag ghost — always on top */
.drag-ghost {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.drag-ghost__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: #ff453a;
  color: #fff;
  font: 600 12px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32), 0 0 0 1.5px rgba(255, 255, 255, 0.92);
}

/* Source items become ghosted while dragged */
.being-dragged {
  opacity: 0.32;
}

/* Drop target highlights */
.drop-target-hover {
  outline: 2px solid rgba(0, 122, 255, 0.85);
  outline-offset: 1px;
  background: rgba(0, 122, 255, 0.18) !important;
}

.finder-tile.drop-target-hover {
  background: rgba(0, 122, 255, 0.22) !important;
  outline-offset: -1px;
}

.dock__item--trash.drop-target-hover {
  outline: none;
  background: transparent !important;
}

.desktop-items--drop-target::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px dashed rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.desktop-item__icon {
  width: 54px;
  height: 42px;
  border-radius: 8px;
  position: relative;
}

.desktop-item__icon--folder {
  background: linear-gradient(180deg, #6fb8ff, #2f8de3);
}

.desktop-item__icon--folder::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -5px;
  width: 19px;
  height: 8px;
  border-radius: 6px 6px 2px 2px;
  background: #94ccff;
}

/* Generic document icon */
.desktop-item__icon--file {
  width: 38px;
  height: 48px;
  margin: 0 auto;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #e9eef3 100%);
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}
.desktop-item__icon--file::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 10px 10px 0;
  border-color: transparent #cdd5dc transparent transparent;
}

/* PDF document icon */
.desktop-item__icon--pdf {
  width: 38px;
  height: 48px;
  margin: 0 auto;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
  border: 1px solid rgba(0, 0, 0, 0.22);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.24);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.desktop-item__icon--pdf::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 10px 10px 0;
  border-color: transparent #cdd5dc transparent transparent;
}
.desktop-item__icon--pdf::after {
  content: "PDF";
  display: block;
  width: 100%;
  background: linear-gradient(180deg, #e7332a, #b8261d);
  color: #fff;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 3px 0 3px;
  line-height: 1;
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
}

.desktop-item__label {
  font-size: 11px;
  line-height: 1.25;
  max-width: 70px;
  word-break: break-word;
}

/* Menu bar — light “Liquid Glass” over wallpaper (black SF-style type + status cluster) */
.menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--menu-bar-height);
  padding: 0 14px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  line-height: 1;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.88);
  letter-spacing: -0.01em;
  background: rgba(255, 255, 255, 0.34);
  backdrop-filter: saturate(var(--glass-saturate)) blur(var(--glass-blur-bar));
  -webkit-backdrop-filter: saturate(var(--glass-saturate)) blur(var(--glass-blur-bar));
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.menu-bar__left {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.menu-bar--menus-open {
  z-index: 20000;
}

.menu-bar__apple-wrap {
  position: relative;
  flex-shrink: 0;
}

.menu-bar__apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 4px 8px 4px 6px;
  border: none;
  border-radius: 4px;
  cursor: default;
  font: inherit;
  font-size: 15px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.92);
  font-weight: 400;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.menu-bar__apple:hover,
.menu-bar__apple.menu-bar__apple--open {
  background: rgba(0, 0, 0, 0.06);
}

.menu-bar__apple:focus-visible {
  outline: 2px solid rgba(0, 125, 250, 0.45);
  outline-offset: 1px;
}

.menu-bar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.menu-bar__status-img {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.9;
}

.menu-bar__status-img--wifi {
  width: 15px;
  height: 15px;
}

.menu-bar__status-img--battery {
  width: 30px;
  height: 15px;
}

.menu-bar__control-img {
  display: block;
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.88;
  pointer-events: none;
}

.menu-bar__clock {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.02em;
  padding-left: 2px;
  margin-left: 2px;
  cursor: default;
  color: rgba(0, 0, 0, 0.88);
  white-space: nowrap;
}

/* Shared dark dropdown glass (Apple menu + menu bar + status + context) */
.apple-menu,
.liquid-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  min-width: 276px;
  max-width: min(340px, calc(100vw - 16px));
  padding: 5px 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.25;
  background: linear-gradient(
      155deg,
      rgba(58, 52, 72, 0.42) 0%,
      rgba(22, 22, 32, 0.48) 42%,
      rgba(12, 12, 20, 0.52) 100%
    ),
    var(--glass-bg-dark);
  backdrop-filter: saturate(var(--glass-saturate)) blur(var(--glass-blur-huge));
  -webkit-backdrop-filter: saturate(var(--glass-saturate)) blur(var(--glass-blur-huge));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.09) inset,
    0 24px 60px rgba(0, 0, 0, 0.48),
    0 10px 28px rgba(0, 0, 0, 0.28);
  z-index: 3;
}

.apple-menu {
  min-width: 276px;
}

.liquid-dropdown--anchor-right {
  left: auto;
  right: 0;
}

.liquid-dropdown--wifi {
  width: min(340px, calc(100vw - 20px));
}

.liquid-dropdown--battery {
  width: min(300px, calc(100vw - 20px));
}

.liquid-dropdown--control-center {
  position: fixed;
  left: auto;
  top: calc(var(--menu-bar-height) + 6px);
  right: 12px;
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100vh - var(--menu-bar-height) - 24px);
  overflow-y: auto;
  padding: 12px;
  z-index: 4;
}

.apple-menu[hidden],
.liquid-dropdown[hidden] {
  display: none !important;
}

.apple-menu__sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.apple-menu__row,
.liquid-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 5px 14px 5px 12px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.apple-menu__row--spread .apple-menu__label,
.liquid-row--spread .liquid-row__label {
  flex: 1;
  min-width: 0;
}

.apple-menu__row:hover,
.apple-menu__row:focus-visible,
.liquid-row:hover:not(:disabled),
.liquid-row:focus-visible:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
}

.apple-menu__row:focus-visible,
.liquid-row:focus-visible {
  outline: none;
}

.liquid-row--disabled {
  opacity: 0.42;
  pointer-events: none;
}

.apple-menu__ico {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0.98;
}

.apple-menu__label,
.liquid-row__label {
  flex: 1;
}

.liquid-row__check {
  flex-shrink: 0;
  width: 1em;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.apple-menu__sep,
.liquid-sep {
  height: 1px;
  margin: 5px 10px;
  background: rgba(255, 255, 255, 0.1);
}

.apple-menu__chev,
.liquid-row__chev {
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 8px;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1;
}

.apple-menu__keys,
.liquid-row__keys {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 10px;
}

.apple-menu__kbd,
.liquid-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35em;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.menu-bar__menu-wrap {
  position: relative;
  flex-shrink: 0;
}

.menu-bar__menus {
  display: flex;
  gap: 1px;
  margin-left: 2px;
  flex-wrap: nowrap;
  overflow: hidden;
  align-items: center;
}

.menu-bar__trigger {
  margin: 0;
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  cursor: default;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.86);
  background: transparent;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

.menu-bar__trigger:hover {
  background: rgba(0, 0, 0, 0.06);
}

.menu-bar__trigger.menu-bar__trigger--open {
  background: rgba(255, 255, 255, 0.48);
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.menu-bar__trigger--app {
  font-weight: 600;
  padding: 4px 9px;
  letter-spacing: -0.02em;
}

.menu-bar__status-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 4px;
  margin: 0;
  border: none;
  border-radius: 5px;
  background: transparent;
  cursor: default;
  line-height: 0;
  -webkit-appearance: none;
  appearance: none;
}

.menu-bar__status-trigger:hover {
  background: rgba(0, 0, 0, 0.06);
}

.menu-bar__status-trigger.menu-bar__trigger--open {
  background: rgba(255, 255, 255, 0.44);
}

.menu-bar__status-trigger img {
  pointer-events: none;
  display: block;
}

.menu-bar__menu-wrap--align-right .liquid-dropdown:not(.liquid-dropdown--control-center) {
  left: auto;
  right: 0;
}

/* Help menu search */
.liquid-help-search {
  padding: 8px 12px 10px;
  margin-bottom: 2px;
}

.liquid-help-search__field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.liquid-help-search__field svg {
  flex-shrink: 0;
  opacity: 0.45;
}

.liquid-help-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.liquid-help-search__input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.liquid-section-label {
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.42);
  text-transform: none;
}

.liquid-muted-line {
  padding: 6px 14px 8px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
}

/* Wi‑Fi menu */
.liquid-wifi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.liquid-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) inset;
  cursor: default;
  flex-shrink: 0;
}

.liquid-toggle:has(input:checked) {
  background: linear-gradient(180deg, #ff6b8a, #e0254a);
}

.liquid-toggle:has(input:not(:checked)) {
  background: rgba(255, 255, 255, 0.22);
}

.liquid-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.liquid-toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease;
  pointer-events: none;
}

.liquid-toggle input:checked ~ .liquid-toggle__knob {
  transform: translateX(18px);
}

.liquid-hotspot-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  font-size: 13px;
}

.liquid-hotspot-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.liquid-hotspot-row__meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.liquid-icon-chip {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.liquid-net-active {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 13px;
}

.liquid-net-active__wifi {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff5fa8, #e02070);
  flex-shrink: 0;
}

/* Battery menu */
.liquid-batt-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 14px 4px;
  gap: 12px;
}

.liquid-batt-head__title {
  font-weight: 600;
  font-size: 15px;
}

.liquid-batt-head__pct {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}

.liquid-batt-sub {
  padding: 0 14px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}

.liquid-energy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin: 0 8px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.liquid-energy-row:hover {
  background: rgba(255, 255, 255, 0.07);
}

.liquid-energy-ico {
  width: 34px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* Tag dots (File menu) */
.liquid-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 6px;
}

.liquid-tag-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.liquid-tag-dot--red {
  background: #ff5a5a;
}
.liquid-tag-dot--orange {
  background: #ffb340;
}
.liquid-tag-dot--yellow {
  background: #ffe060;
}
.liquid-tag-dot--green {
  background: #5cd97c;
}
.liquid-tag-dot--blue {
  background: #5ab0ff;
}
.liquid-tag-dot--purple {
  background: #c86bff;
}
.liquid-tag-dot--gray {
  background: #9a9aa3;
}

/* Control Center */
.cc-root {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cc-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.cc-tile-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-tile {
  border: none;
  border-radius: 16px;
  padding: 12px;
  text-align: left;
  cursor: default;
  font: inherit;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}

.cc-tile:hover {
  background: rgba(255, 255, 255, 0.16);
}

.cc-tile--accent {
  background: linear-gradient(160deg, rgba(255, 120, 160, 0.55), rgba(200, 60, 120, 0.45));
}

.cc-tile__small {
  font-size: 11px;
  opacity: 0.8;
}

.cc-tile__large {
  font-size: 14px;
  font-weight: 600;
}

.cc-media {
  flex: 1.15;
  border-radius: 18px;
  padding: 12px;
  min-height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cc-round-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.cc-round {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: default;
}

.cc-round:hover {
  background: rgba(255, 255, 255, 0.22);
}

.cc-slider-block {
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cc-slider-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.85);
}

.cc-slider {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0, 0, 0, 0.35);
  outline: none;
}

.cc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: default;
}

.cc-edit {
  align-self: center;
  margin-top: 4px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 13px;
  cursor: default;
}

.cc-edit:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Context menu */
.context-menu {
  position: fixed;
  min-width: 220px;
  max-width: 280px;
  padding: 5px 0;
  z-index: 25000;
}

.context-menu .liquid-row {
  padding: 5px 12px;
  font-size: 13px;
}

/* About This Mac */
.about-mac-overlay {
  position: fixed;
  inset: 0;
  z-index: auto;
  pointer-events: none;
}

.about-mac-overlay[hidden] {
  display: none !important;
}

.about-mac-window {
  position: fixed;
  left: 50%;
  top: calc(var(--menu-bar-height) + 34px);
  transform: translateX(-50%);
  width: min(360px, calc(100vw - 24px));
  border-radius: 22px;
  background: #decde0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.35);
  color: #22202a;
  overflow: hidden;
  pointer-events: auto;
  user-select: none;
  z-index: 1;
}

.about-mac-window__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 7px;
  cursor: move;
}

.about-mac-window__traffic {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  background: rgba(163, 142, 171, 0.45);
}

.about-mac-window__traffic--close {
  border: none;
  cursor: pointer;
  pointer-events: auto;
  background: #ff5d56;
  box-shadow: 0 0 0 1px rgba(190, 39, 37, 0.42) inset;
}

.about-mac-window__content {
  display: grid;
  justify-items: center;
  padding: 6px 20px 18px;
}

.about-mac-window__hero {
  width: 228px;
  margin-top: 12px;
  margin-bottom: 10px;
}

.about-mac-window__laptop-screen {
  width: 188px;
  height: 116px;
  margin: 0 auto;
  border: 4px solid #050507;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(135deg, #4b90c8, #5fa7e6);
}

.about-mac-window__laptop-base {
  width: 228px;
  height: 13px;
  margin: -2px auto 0;
  border-radius: 2px 2px 14px 14px;
  background: linear-gradient(180deg, #ede7e6, #bab0b4);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.7) inset;
}

.about-mac-window__name {
  margin: 8px 0 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.about-mac-window__specs {
  margin: 0;
  display: grid;
  gap: 7px;
}

.about-mac-window__specs div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 12px;
  letter-spacing: -0.02em;
}

.about-mac-window__specs dt {
  margin: 0;
  text-align: right;
  font-weight: 500;
}

.about-mac-window__specs dd {
  margin: 0;
  color: #6f6677;
  font-weight: 500;
}

.about-mac-window__more-btn {
  margin-top: 16px;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  background: rgba(171, 151, 177, 0.28);
  color: #25212b;
  cursor: default;
}

.about-mac-window__legal {
  margin: 14px 0 2px;
  text-align: center;
  font-size: 10px;
  line-height: 1.22;
  color: rgba(110, 95, 115, 0.58);
}

.about-mac-window__legal a {
  color: inherit;
}

/* Window layer + Finder (NSWindow-style chrome) */
.windows-stack {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.finder-window {
  pointer-events: auto;
  position: fixed;
  left: 0;
  top: 0;
  width: min(920px, calc(100vw - 48px));
  height: min(560px, calc(100vh - var(--menu-bar-height) - 120px));
  min-width: 380px;
  min-height: 320px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - var(--menu-bar-height) - 88px);
  background: rgba(236, 236, 236, 0.74);
  backdrop-filter: saturate(180%) blur(34px);
  -webkit-backdrop-filter: saturate(180%) blur(34px);
  border-radius: var(--finder-radius);
  box-shadow: var(--shadow-window);
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.finder-window--zoomed {
  border-radius: 8px;
}

.finder-window__resize {
  position: absolute;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.finder-window__resize-handle {
  pointer-events: auto;
  position: absolute;
}

.finder-window__resize-handle--s {
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 7px;
  cursor: ns-resize;
}

.finder-window__resize-handle--e {
  top: 52px;
  right: 0;
  width: 7px;
  bottom: 8px;
  cursor: ew-resize;
}

.finder-window__resize-handle--w {
  top: 52px;
  left: 0;
  width: 7px;
  bottom: 8px;
  cursor: ew-resize;
}

.finder-window__resize-handle--se {
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
}

.finder-window__resize-handle--sw {
  left: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  cursor: nesw-resize;
}

.finder-app-icon-img {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.finder-app-icon-img--tiny {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  box-shadow: none;
}

.finder-window[hidden] {
  display: none !important;
}

.finder-window.finder-window--minimizing {
  pointer-events: none;
  will-change: transform, opacity;
}

.finder-window.finder-window--restoring {
  pointer-events: none;
  will-change: transform, opacity;
}

.finder-window.is-dragging,
.finder-window.is-dragging * {
  cursor: grabbing;
  user-select: none;
}

.finder-window.is-resizing,
.finder-window.is-resizing * {
  user-select: none;
}

/* Unified toolbar — traffic lights + Finder controls in one strip (macOS 11+) */
.finder-unified-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 52px;
  padding: 8px 10px 8px 12px;
  background: linear-gradient(to bottom, #f6f6f6 0%, #ececec 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.finder-unified-toolbar__leading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.finder-unified-toolbar__nav {
  display: flex;
  gap: 4px;
}

.finder-unified-toolbar__center {
  flex: 1;
  min-width: 12px;
  min-height: 28px;
  margin: 0 6px;
  cursor: grab;
  border-radius: 4px;
}

.finder-unified-toolbar__center:hover {
  background: rgba(0, 0, 0, 0.03);
}

.finder-unified-toolbar__trailing {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.finder-path-control {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  max-width: 220px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.finder-path-control__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.finder-path-control__chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #6d6d70;
  margin-left: 2px;
  opacity: 0.75;
}

.finder-view-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  padding: 2px;
  gap: 1px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.finder-view-switcher__btn {
  width: 28px;
  height: 24px;
  border: none;
  border-radius: 4px;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3c3c43;
  cursor: default;
}

.finder-view-switcher__btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.finder-view-switcher__btn--active {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  color: #007aff;
}

.finder-view-switcher__glyph {
  display: block;
  width: 14px;
  height: 12px;
  background: currentColor;
  opacity: 0.85;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.finder-view-switcher__btn--active .finder-view-switcher__glyph {
  opacity: 1;
}

.finder-view-switcher__glyph--icons {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z'/%3E%3C/svg%3E");
}

.finder-view-switcher__glyph--list {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3 14h4v-2H3v2zm0 4h4v-2H3v2zm0-8h4V8H3v2zm0-4h4V4H3v2zm5 8h14v-2H8v2zm0 4h14v-2H8v2zM8 4v2h14V4H8z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M3 14h4v-2H3v2zm0 4h4v-2H3v2zm0-8h4V8H3v2zm0-4h4V4H3v2zm5 8h14v-2H8v2zm0 4h14v-2H8v2zM8 4v2h14V4H8z'/%3E%3C/svg%3E");
}

.finder-view-switcher__glyph--columns {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 4h5v16H4V4zm7 0h9v7h-9V4zm0 9h9v7h-9v-7z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 4h5v16H4V4zm7 0h9v7h-9V4zm0 9h9v7h-9v-7z'/%3E%3C/svg%3E");
}

.finder-view-switcher__glyph--gallery {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 6h16v12H4V6zm2 2v8h12V8H6zm2 2h8v4H8v-4z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 6h16v12H4V6zm2 2v8h12V8H6zm2 2h8v4H8v-4z'/%3E%3C/svg%3E");
}

.traffic-lights {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-right: 4px;
}

.traffic-lights__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
  border: none;
  padding: 0;
  flex-shrink: 0;
  cursor: default;
  position: relative;
}

.traffic-lights__dot--close {
  background: #ff5f57;
}
.traffic-lights__dot--min {
  background: #febc2e;
}
.traffic-lights__dot--zoom {
  background: #28c840;
}

/* macOS-style symbols on hover (× − +) */
.traffic-lights__glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.07s ease;
  pointer-events: none;
  font-family: system-ui, -apple-system, sans-serif;
}

.traffic-lights__dot:hover .traffic-lights__glyph {
  opacity: 1;
}

.traffic-lights__glyph--close {
  color: rgba(76, 28, 28, 0.88);
  font-size: 11px;
  margin-top: -1px;
}

.traffic-lights__glyph--min {
  color: rgba(92, 58, 0, 0.92);
  font-size: 12px;
  font-weight: 600;
  margin-top: -2px;
}

.traffic-lights__glyph--zoom {
  color: rgba(12, 72, 28, 0.9);
  font-size: 11px;
  margin-top: -1px;
}

.icon-btn {
  width: 26px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(to bottom, #fff, #f0f0f0);
  color: #888;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  padding: 0;
}

.icon-btn:disabled {
  opacity: 0.45;
}

.finder-toolbar__search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  padding: 4px 8px;
  min-width: 160px;
  border: 1px solid transparent;
}

.finder-toolbar__search:focus-within {
  background: #fff;
  border-color: rgba(0, 122, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.15);
}

.finder-toolbar__search-icon {
  width: 14px;
  height: 14px;
  opacity: 0.45;
  background: #666;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.finder-toolbar__search-input {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  width: 100%;
  outline: none;
  min-width: 0;
}

.finder-toolbar__search-input::placeholder {
  color: #8e8e93;
}

.finder-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.finder-sidebar {
  width: 188px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: saturate(var(--glass-saturate)) blur(56px);
  -webkit-backdrop-filter: saturate(var(--glass-saturate)) blur(56px);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  padding: 10px 8px;
  overflow-y: auto;
}

.finder-sidebar__group + .finder-sidebar__group {
  margin-top: 14px;
}

.finder-sidebar__heading {
  margin: 0 8px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #6d6d70;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.finder-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.finder-sidebar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 13px;
  cursor: default;
  color: #222;
}

.finder-sidebar__item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.finder-sidebar__item--active {
  background: rgba(0, 122, 255, 0.18);
  color: #007aff;
  font-weight: 500;
}

.finder-sidebar__icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
}

.finder-sidebar__icon--airdrop {
  background: linear-gradient(135deg, #5ac8fa, #007aff);
}
.finder-sidebar__icon--recents {
  background: linear-gradient(135deg, #8e8e93, #636366);
}
.finder-sidebar__icon--apps {
  background: linear-gradient(135deg, #34c759, #30d158);
}
.finder-sidebar__icon--desktop {
  background: linear-gradient(135deg, #ff9f0a, #ffcc00);
}
.finder-sidebar__icon--documents {
  background: linear-gradient(135deg, #0a84ff, #64d2ff);
}
.finder-sidebar__icon--downloads {
  background: linear-gradient(135deg, #bf5af2, #ff375f);
}
.finder-sidebar__icon--icloud {
  background: linear-gradient(135deg, #64d2ff, #0a84ff);
}
.finder-sidebar__icon--disk {
  background: linear-gradient(135deg, #8e8e93, #48484a);
}

.finder-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}

.finder-content__header {
  padding: 10px 16px 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 12px;
  color: #6d6d70;
}

.finder-content__crumb {
  font-weight: 500;
  color: #3a3a3c;
}

.finder-content__grid {
  flex: 1;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 20px 16px;
  align-content: start;
  overflow-y: auto;
  position: relative;
}

.finder-content__grid--drop-target::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed rgba(10, 132, 255, 0.75);
  border-radius: 10px;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.22);
}

.finder-content__grid--list,
.finder-content__grid--columns,
.finder-content__grid--gallery {
  display: block;
}

.finder-tile {
  border: none;
  background: none;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font: inherit;
  color: inherit;
  text-align: center;
}

.finder-tile:hover,
.finder-tile:focus-visible {
  background: rgba(0, 122, 255, 0.1);
  outline: none;
}

.finder-tile[aria-selected="true"] {
  background: rgba(10, 132, 255, 0.16);
  outline: 1px solid rgba(10, 132, 255, 0.45);
}

.finder-tile__icon {
  width: 64px;
  height: 52px;
  border-radius: 8px 8px 6px 6px;
  position: relative;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}

.finder-tile__icon--folder {
  background: linear-gradient(180deg, #7eb6ff 0%, #4a90d9 40%, #3d7ccc 100%);
}

.finder-tile__icon--folder::before {
  content: "";
  position: absolute;
  left: 0;
  top: -6px;
  width: 42%;
  height: 10px;
  background: linear-gradient(180deg, #9ccaff, #6ba8f0);
  border-radius: 4px 6px 0 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.finder-tile__icon--file {
  width: 44px;
  height: 52px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #e9eef3 100%);
  border: 1px solid rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.finder-tile__icon--file::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 12px 12px 0;
  border-color: transparent #cdd5dc transparent transparent;
}

.finder-tile__icon--pdf {
  width: 44px;
  height: 52px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f6fa 100%);
  border: 1px solid rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.finder-tile__icon--pdf::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 12px 12px 0;
  border-color: transparent #cdd5dc transparent transparent;
}
.finder-tile__icon--pdf::after {
  content: "PDF";
  display: block;
  width: 100%;
  background: linear-gradient(180deg, #e7332a, #b8261d);
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 3px 0;
  line-height: 1;
}

.finder-tile--list-row .finder-tile__icon--pdf,
.finder-tile--list-row .finder-tile__icon--file,
.finder-tile--column-row .finder-tile__icon--pdf,
.finder-tile--column-row .finder-tile__icon--file {
  width: 18px;
  height: 18px;
  border-radius: 3px;
}
.finder-tile--list-row .finder-tile__icon--pdf::after,
.finder-tile--column-row .finder-tile__icon--pdf::after {
  font-size: 6px;
  padding: 1px 0;
  letter-spacing: 0.2px;
}
.finder-tile--gallery-thumb .finder-tile__icon--pdf,
.finder-tile--gallery-thumb .finder-tile__icon--file {
  width: 32px;
  height: 40px;
}
.finder-tile--gallery-thumb .finder-tile__icon--pdf::after {
  font-size: 8px;
  padding: 2px 0;
}

.finder-tile__label {
  font-size: 12px;
  line-height: 1.25;
  max-width: 100px;
  word-break: break-word;
}

.finder-list {
  display: grid;
  gap: 2px;
}

.finder-list__head {
  display: grid;
  grid-template-columns: 1.8fr 1fr 0.6fr 0.7fr;
  gap: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: #6a6a70;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.finder-tile--list-row {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: default;
  display: grid;
  grid-template-columns: 1.8fr 1fr 0.6fr 0.7fr;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  text-align: left;
  font: inherit;
  color: #2b2b30;
}

.finder-list__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.finder-tile--list-row .finder-tile__icon {
  width: 22px;
  height: 16px;
}

.finder-columns {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) 1fr;
  min-height: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.finder-column {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 3px;
}

.finder-column--empty {
  background: rgba(255, 255, 255, 0.35);
}

.finder-tile--column-row {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: default;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 6px 8px;
  font: inherit;
  color: #2b2b30;
}

.finder-tile--column-row .finder-tile__icon {
  width: 18px;
  height: 14px;
  border-radius: 4px;
  box-shadow: none;
}

.finder-tile--column-row .finder-tile__icon--folder::before {
  top: -3px;
  height: 5px;
  border-radius: 2px 3px 0 0;
}

.finder-tile--column-row .finder-tile__label {
  max-width: none;
  text-align: left;
  font-size: 13px;
  line-height: 1.2;
}

.finder-column__chev {
  color: #888;
  font-size: 14px;
}

.finder-gallery {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100%;
}

.finder-gallery__preview {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
}

.finder-gallery__big-icon {
  width: 260px;
  height: 192px;
  border-radius: 24px;
}

.finder-gallery__meta {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.finder-gallery__meta strong {
  font-size: 18px;
  font-weight: 600;
}

.finder-gallery__meta span {
  color: #666;
  font-size: 13px;
}

.finder-gallery__filmstrip {
  display: flex;
  gap: 8px;
  padding: 10px 8px;
  overflow-x: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.finder-tile--gallery-thumb {
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 6px;
  min-width: 74px;
  display: grid;
  justify-items: center;
  gap: 4px;
  cursor: default;
}

.finder-tile--gallery-thumb .finder-tile__icon {
  width: 42px;
  height: 30px;
}

.finder-tile--gallery-thumb .finder-tile__label {
  font-size: 11px;
  max-width: 70px;
  word-break: break-word;
}

.finder-statusbar {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 14px;
  font-size: 11px;
  color: #6d6d70;
  background: #f3f3f3;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.finder-statusbar__hint {
  opacity: 0.85;
}

/* Dock */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--dock-margin);
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.dock__surface {
  pointer-events: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: saturate(var(--glass-saturate)) blur(40px);
  -webkit-backdrop-filter: saturate(var(--glass-saturate)) blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.dock__section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.dock__divider {
  flex-shrink: 0;
  width: 1px;
  height: 52px;
  margin: 0 10px;
  align-self: center;
  border-radius: 1px;
  background: rgba(60, 60, 67, 0.22);
  box-shadow: 0.5px 0 0 rgba(255, 255, 255, 0.35);
}

.dock__section--minimized:empty {
  display: none;
}
.dock__section--minimized[hidden] {
  display: none !important;
}
.dock__section--trash {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.dock__item {
  position: relative;
  border: none;
  background: none;
  padding: 4px 6px;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 56px;
  transition: transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dock__indicator {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
  transition: opacity 0.2s ease;
}

.dock__item--running .dock__indicator {
  opacity: 1;
  background: rgba(60, 60, 67, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65);
  transform: scale(1);
}

/* Minimized windows — separate Dock section (macOS-style) */
.dock__section--minimized {
  align-items: center;
  padding-left: 2px;
  justify-content: flex-end;
}

.dock__section--minimized .dock__item--trash {
  margin-left: 8px;
}

.dock__minimized-tile {
  position: relative;
  border: none;
  padding: 0;
  cursor: default;
  background: none;
  border-radius: 7px;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dock__minimized-tile:hover,
.dock__minimized-tile:focus-visible {
  transform: scale(1.06);
  outline: none;
}

.dock__minimized-tile__preview {
  display: flex;
  flex-direction: column;
  width: 58px;
  height: 42px;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.dock__minimized-tile__chrome {
  height: 11px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, #ececec, #dedede);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dock__minimized-tile__body {
  flex: 1;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 28%, transparent 28%),
    linear-gradient(to bottom, #fafafa, #eaeaea);
}

.dock__minimized-tile__badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25), 0 0 0 1.5px rgba(255, 255, 255, 0.9);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock__minimized-tile__badge img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}

.dock__item:hover,
.dock__item:focus-visible {
  transform: scale(1.12) translateY(-4px);
  outline: none;
}

.dock__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.dock__indicator--finder {
  opacity: 1;
}

.dock__item--finder .dock__indicator {
  opacity: 1;
}

.dock__item--trash .dock__indicator,
.dock__indicator--trash-hidden {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

.dock__icon--preview {
  position: relative;
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.08) 42%, transparent 55%),
    linear-gradient(175deg, #7ec9ff 0%, #3b8fd9 42%, #1e6dbd 62%, #0f4f8c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.28);
}

.dock__icon--preview::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 60, 120, 0.25);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 55%);
}

.dock__icon--preview::before {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.9);
  transform: rotate(42deg);
  transform-origin: left center;
  box-shadow: 2px 6px 0 0 rgba(255, 255, 255, 0.88);
}

.dock__icon--finder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 40%);
}

.dock__icon--trash {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock__icon--trash-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
  pointer-events: none;
  user-select: none;
}

.dock__item--drop-target .dock__icon--trash {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 16px rgba(0, 120, 255, 0.5));
}

.dock__icon--finder .finder-app-icon-img {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

@media (max-width: 640px) {
  .menu-bar__menus .menu-bar__menu-wrap:nth-child(n + 5) {
    display: none;
  }

  .finder-unified-toolbar__center {
    display: none;
  }

  .finder-view-switcher {
    display: none;
  }

  .finder-sidebar {
    width: 160px;
  }
}

/* =====================================================================
 * PDF Viewer Window — full Preview-style app
 * ===================================================================== */

.pdf-viewer-window {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, calc(100vw - 80px));
  height: min(78vh, 820px);
  min-width: 480px;
  min-height: 360px;
  background: #f3f3f3;
  border-radius: 12px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    0 8px 22px rgba(0, 0, 0, 0.26),
    0 0 0 0.5px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2000;
  font: 13px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  color: #1d1d1f;
}

.pdf-viewer-window[hidden] {
  display: none !important;
}

.pdf-viewer-window--maximized {
  top: 30px !important;
  left: 8px !important;
  right: 8px !important;
  bottom: 96px !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  border-radius: 8px;
}

.pdf-viewer-window__chrome {
  flex-shrink: 0;
  height: 42px;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  padding: 0 12px;
  background: linear-gradient(180deg, #f4f4f5 0%, #e6e7e9 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  cursor: default;
  user-select: none;
}

.pdf-viewer-window__traffic-lights {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pdf-viewer-window__traffic {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18);
}

.pdf-viewer-window__traffic--close {
  background: #ff5f57;
}
.pdf-viewer-window__traffic--min {
  background: #febc2e;
}
.pdf-viewer-window__traffic--zoom {
  background: #28c840;
}

.pdf-viewer-window__traffic:hover::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
}

.pdf-viewer-window__title {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #2b2b30;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 8px;
}

.pdf-viewer-window__spacer {
  visibility: hidden;
}

.pdf-viewer-window__toolbar {
  flex-shrink: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pdf-viewer-window__toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdf-viewer-window__toolbar-group--center {
  flex: 1;
  justify-content: center;
}

.pdf-viewer-window__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1d1d1f;
  cursor: default;
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 120ms ease;
}

.pdf-viewer-window__btn:hover,
.pdf-viewer-window__btn:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  outline: none;
}

.pdf-viewer-window__btn:active {
  background: rgba(0, 0, 0, 0.12);
}

.pdf-viewer-window__btn--text {
  padding: 0 10px;
  font-size: 12px;
  color: #1d1d1f;
}

.pdf-viewer-window__btn--text.is-active {
  background: rgba(0, 122, 255, 0.18);
  color: #007aff;
}

.pdf-viewer-window__btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.pdf-viewer-window__page-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #3a3a3c;
  padding: 0 6px;
}

.pdf-viewer-window__page-input {
  width: 44px;
  height: 22px;
  padding: 0 4px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
  text-align: center;
  outline: none;
  color: #1d1d1f;
  -moz-appearance: textfield;
}
.pdf-viewer-window__page-input::-webkit-outer-spin-button,
.pdf-viewer-window__page-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pdf-viewer-window__page-input:focus {
  border-color: #007aff;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.24);
}

.pdf-viewer-window__zoom-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #3a3a3c;
}

.pdf-viewer-window__body {
  flex: 1;
  background: #525659;
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pdf-viewer-window__stage {
  flex: 1;
  position: relative;
  overflow: auto;
  background: #525659;
  scroll-behavior: smooth;
}

.pdf-viewer-window__pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 0 32px;
  min-height: 100%;
}

.pdf-viewer-window__page {
  position: relative;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.pdf-viewer-window__page canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.pdf-viewer-window__page-num {
  position: absolute;
  bottom: 6px;
  right: 8px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 0.4px;
  pointer-events: none;
}

.pdf-viewer-window__page--placeholder {
  width: 612px;
  height: 792px;
  background: linear-gradient(180deg, #fafafa, #ededed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 13px;
}

.pdf-viewer-window__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(50, 53, 56, 0.86);
  pointer-events: none;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.pdf-viewer-window__loading[hidden],
.pdf-viewer-window__empty[hidden] {
  display: none !important;
}

.pdf-viewer-window__loading-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  animation: pdf-spin 0.9s linear infinite;
}

@keyframes pdf-spin {
  to {
    transform: rotate(360deg);
  }
}

.pdf-viewer-window__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(50, 53, 56, 0.92);
  color: #ffffff;
  font-size: 13px;
}

.pdf-viewer-window__empty p {
  margin: 0;
  padding: 0 16px;
  text-align: center;
}

.pdf-viewer-window__statusbar {
  flex-shrink: 0;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #f4f4f5;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 11.5px;
  color: #6d6d70;
}

.pdf-viewer-window__status-name {
  font-weight: 500;
  color: #3a3a3c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}

/* Resize handles */
.pdf-viewer-window__resize-handles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pdf-viewer-window__resize {
  position: absolute;
  pointer-events: auto;
}

.pdf-viewer-window__resize--n {
  top: 0;
  left: 14px;
  right: 14px;
  height: 6px;
  cursor: ns-resize;
}
.pdf-viewer-window__resize--s {
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 6px;
  cursor: ns-resize;
}
.pdf-viewer-window__resize--e {
  top: 14px;
  bottom: 14px;
  right: 0;
  width: 6px;
  cursor: ew-resize;
}
.pdf-viewer-window__resize--w {
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 6px;
  cursor: ew-resize;
}
.pdf-viewer-window__resize--ne {
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  cursor: nesw-resize;
}
.pdf-viewer-window__resize--nw {
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
}
.pdf-viewer-window__resize--se {
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
}
.pdf-viewer-window__resize--sw {
  bottom: 0;
  left: 0;
  width: 14px;
  height: 14px;
  cursor: nesw-resize;
}

.pdf-viewer-window--maximized .pdf-viewer-window__resize {
  pointer-events: none;
}

@media (max-width: 720px) {
  .pdf-viewer-window {
    width: calc(100vw - 24px);
    height: calc(100vh - 140px);
  }
  .pdf-viewer-window__toolbar {
    flex-wrap: wrap;
    height: auto;
    padding: 6px 8px;
    gap: 6px;
  }
  .pdf-viewer-window__btn--text {
    display: none;
  }
}
