:root {
  --paper: #f2f0ea;
  --ink: #171512;
  --white: #fffaf0;
  --muted: rgba(23, 21, 18, 0.62);
  --glass: rgba(255, 255, 255, 0.19);
  --glass-edge: rgba(255, 255, 255, 0.64);
  --glass-shade: rgba(255, 255, 255, 0.1);
  --glass-ink: rgba(18, 17, 15, 0.52);
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow: hidden;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.hero-desktop {
  position: relative;
  height: 100svh;
  overflow: hidden;
  background: #f4f1ee;
}

.background-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 250, 246, 0.54) 0 7%, rgba(255, 250, 246, 0.08) 34% 66%, rgba(255, 250, 246, 0.58) 95%),
    linear-gradient(180deg, rgba(255, 250, 246, 0.48), rgba(255, 250, 246, 0.04) 34%, rgba(255, 250, 246, 0.54)),
    url("jackson_files/bg-group-2.jpg") center / cover;
  filter: saturate(1.02) contrast(0.98) brightness(1.04);
  pointer-events: none;
}

.project-cloud {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100svh;
}

.project-cloud.dragging-project {
  z-index: 8;
}

.desktop-project {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  width: 112px;
  gap: 7px;
  justify-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: grab;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  touch-action: none;
  user-select: none;
  transform: translate(-50%, -50%);
}

.desktop-project:hover,
.desktop-project.active,
.desktop-project.dragging {
  z-index: 5;
}

.desktop-project:hover .thumb,
.desktop-project.active .thumb,
.desktop-project.dragging .thumb {
  transform: translateY(-4px) scale(1.05);
}

.desktop-project.dragging {
  cursor: grabbing;
  z-index: 10;
}

.trash-drop-ghost {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  transform: none;
  transition:
    left 260ms cubic-bezier(0.22, 1, 0.36, 1),
    top 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease 80ms,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.thumb {
  width: var(--size, 64px);
  height: var(--size, 64px);
  overflow: hidden;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  transition: transform 160ms ease;
}

.thumb img,
.folder-card img,
.image-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-project strong {
  max-width: 124px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.05;
}

.preview-panel {
  position: fixed;
  z-index: 7;
  right: clamp(18px, 4vw, 60px);
  top: 50%;
  display: none;
  width: min(620px, calc(100vw - 36px));
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.72), transparent 28%),
    radial-gradient(circle at 85% 88%, rgba(255, 255, 255, 0.26), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.13);
  color: rgba(18, 17, 15, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 1px 0 0 rgba(255, 255, 255, 0.42),
    inset -1px -1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -22px 44px rgba(255, 255, 255, 0.12),
    0 22px 70px rgba(0, 0, 0, 0.3);
  transform: translateY(-50%);
  backdrop-filter: blur(18px) saturate(1.85) contrast(1.12) brightness(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.85) contrast(1.12) brightness(1.08);
  isolation: isolate;
}

.preview-panel.open {
  display: block;
}

.preview-panel::before,
.dock::before,
.folder-window::before {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at 8% 0%, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.16) 34%, transparent 56%),
    radial-gradient(90% 80% at 100% 100%, rgba(255, 255, 255, 0.26), transparent 58%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.44), transparent 28%, rgba(255, 255, 255, 0.16) 48%, transparent 72%);
  content: "";
  opacity: 0.88;
  pointer-events: none;
  z-index: -1;
}

.preview-panel::after,
.dock::after,
.folder-window::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 18px 26px rgba(255, 255, 255, 0.16),
    inset 0 -18px 32px rgba(255, 255, 255, 0.08),
    inset 18px 0 28px rgba(255, 255, 255, 0.08),
    inset -18px 0 28px rgba(0, 0, 0, 0.04);
  content: "";
  pointer-events: none;
  z-index: -1;
}

.preview-panel,
.dock,
.folder-window {
  outline: 1px solid rgba(255, 255, 255, 0.16);
  outline-offset: -2px;
}

.preview-panel > *,
.dock > *,
.folder-window > * {
  position: relative;
  z-index: 1;
}

.preview-close {
  display: grid;
  width: 12px;
  height: 12px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: none;
  color: transparent;
  cursor: pointer;
}

.preview-titlebar {
  display: grid;
  grid-template-columns: 92px 1fr 92px;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  cursor: grab;
  user-select: none;
}

.preview-panel.dragging-window .preview-titlebar {
  cursor: grabbing;
}

.preview-titlebar > span {
  color: rgba(18, 17, 15, 0.62);
  font-size: 13px;
  font-weight: 760;
  text-align: center;
}

.preview-controls span:nth-child(2) {
  background: #febc2e;
}

.preview-controls span:nth-child(3) {
  background: #28c840;
}

.preview-window-body {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 350px;
  max-height: min(720px, calc(100svh - 88px));
  overflow: auto;
  overscroll-behavior: contain;
}

.preview-meta span {
  display: block;
  margin-bottom: 6px;
  color: rgba(18, 17, 15, 0.58);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.preview-content {
  display: grid;
  grid-template-rows: auto auto;
  gap: 16px;
  padding: 16px;
}

.preview-gallery {
  display: grid;
  gap: 14px;
}

.preview-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.folder-card p {
  margin: 0;
  color: rgba(255, 250, 240, 0.56);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.preview-meta h1 {
  margin: 0;
  color: rgba(18, 17, 15, 0.9);
  font-size: 24px;
  font-weight: 930;
  line-height: 1;
}

.preview-meta p {
  width: 100%;
  max-width: none;
  margin: 10px 0 0;
  color: rgba(18, 17, 15, 0.7);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  white-space: pre-line;
}

.dock {
  --dock-size: 42px;
  --dock-gap: calc(var(--dock-size) * 0.19);
  position: fixed;
  z-index: 6;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: var(--dock-gap);
  overflow: visible;
  padding: calc(var(--dock-size) * 0.28) calc(var(--dock-size) * 0.35);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.66), transparent 32%),
    radial-gradient(circle at 85% 100%, rgba(255, 255, 255, 0.24), transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08) 46%, rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -18px 32px rgba(255, 255, 255, 0.1),
    inset 1px 0 0 rgba(255, 255, 255, 0.36),
    0 18px 54px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
  backdrop-filter: blur(18px) saturate(1.95) contrast(1.16) brightness(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.95) contrast(1.16) brightness(1.1);
  isolation: isolate;
}

.app-icon {
  --dock-lift: 0px;
  --dock-scale: 1;
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: var(--dock-size);
  height: var(--dock-size);
  place-items: center;
  overflow: visible;
  border-radius: calc(var(--dock-size) * 0.14);
  background: transparent;
  box-shadow: none;
  transform: translateY(var(--dock-lift)) scale(var(--dock-scale));
  transform-origin: center bottom;
  transition:
    border-radius 120ms ease,
    transform 150ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.dock.magnifying .app-icon {
  transition-duration: 70ms;
}

.app-icon::before {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 11px);
  max-width: 132px;
  padding: 4px 7px 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(28, 28, 30, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.24);
  color: rgba(255, 255, 255, 0.94);
  content: attr(aria-label);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  text-overflow: ellipsis;
  transform: translate(-50%, 7px) scale(0.96);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
  white-space: nowrap;
  z-index: 4;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}

.app-icon::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(28, 28, 30, 0.84);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 7px) rotate(45deg) scale(0.96);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
  z-index: 3;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}

.app-icon:hover::before,
.app-icon:focus-visible::before,
.app-icon:hover::after,
.app-icon:focus-visible::after {
  opacity: 1;
}

.app-icon:hover::before,
.app-icon:focus-visible::before {
  transform: translate(-50%, 0) scale(1);
}

.app-icon:hover::after,
.app-icon:focus-visible::after {
  transform: translate(-50%, 0) rotate(45deg) scale(1);
}

.image-icon img {
  object-fit: contain;
  padding: 1px;
}

.app-bin img {
  --bin-scale: 0.96;
  width: var(--dock-size);
  height: var(--dock-size);
  object-fit: contain;
  object-position: center;
  padding: 0;
  transform: scale(var(--bin-scale));
  transition: transform 180ms ease;
}

.app-bin.trash-receiving img {
  --bin-scale: 1.08;
}

.dock-divider {
  flex: 0 0 auto;
  display: grid;
  width: calc(var(--dock-size) * 0.16);
  height: calc(var(--dock-size) * 0.72);
  place-items: center;
  border-radius: 999px;
  background: transparent;
  cursor: ns-resize;
  transition: height 120ms ease;
}

.dock-divider::before {
  display: block;
  width: 1px;
  height: 72%;
  background: rgba(31, 36, 42, 0.28);
  box-shadow:
    1px 0 0 rgba(255, 255, 255, 0.36),
    -1px 0 0 rgba(255, 255, 255, 0.12);
  content: "";
}

.dock.resizing,
.dock.resizing * {
  cursor: ns-resize;
  user-select: none;
}

.folder-modal,
.chat-modal,
.trash-modal,
.notes-modal,
.music-modal,
.wechat-modal,
.xiaohongshu-modal,
.instagram-modal,
.error-modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 42px);
  background: transparent;
  pointer-events: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.folder-modal[hidden],
.chat-modal[hidden],
.trash-modal[hidden],
.notes-modal[hidden],
.music-modal[hidden],
.wechat-modal[hidden],
.xiaohongshu-modal[hidden],
.instagram-modal[hidden],
.error-modal[hidden] {
  display: none;
}

.folder-modal > *,
.chat-modal > *,
.trash-modal > *,
.notes-modal > *,
.music-modal > *,
.wechat-modal > *,
.xiaohongshu-modal > *,
.instagram-modal > *,
.error-modal > *,
.dock-floating-window {
  pointer-events: auto;
}

.dock-floating-window {
  position: fixed;
}

.folder-window {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(760px, calc(100vw - 28px));
  max-height: min(640px, calc(100svh - 44px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.72), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08) 44%, rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.12);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -28px 48px rgba(255, 255, 255, 0.11),
    inset 1px 0 0 rgba(255, 255, 255, 0.42),
    0 30px 90px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(20px) saturate(1.9) contrast(1.12) brightness(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.9) contrast(1.12) brightness(1.08);
  isolation: isolate;
}

.trash-window {
  position: fixed;
  left: 50%;
  top: 50%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(480px, calc(100vw - 28px));
  height: min(420px, calc(100svh - 44px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.72), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.1) 44%, rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.14);
  color: rgba(18, 17, 15, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -28px 48px rgba(255, 255, 255, 0.11),
    inset 1px 0 0 rgba(255, 255, 255, 0.42),
    0 30px 90px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(20px) saturate(1.9) contrast(1.12) brightness(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.9) contrast(1.12) brightness(1.08);
  isolation: isolate;
}

.notes-window {
  position: fixed;
  left: 50%;
  top: 50%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(360px, calc(100vw - 56px), calc(100svh - 140px));
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(194, 161, 61, 0.24);
  border-radius: 14px;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 30px,
      rgba(117, 95, 32, 0.16) 31px
    ),
    linear-gradient(180deg, #fff3a8, #ffe987);
  color: rgba(49, 38, 13, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 18px 34px rgba(95, 73, 20, 0.18),
    0 28px 60px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, -50%);
  isolation: isolate;
}

.notes-window .folder-titlebar {
  min-height: 42px;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(49, 38, 13, 0.82);
}

.notes-window .folder-titlebar h2 {
  color: rgba(49, 38, 13, 0.82);
  font-size: 13px;
}

.chat-window {
  position: fixed;
  left: 50%;
  top: 50%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(520px, calc(100vw - 28px));
  height: min(620px, calc(100svh - 44px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.74), transparent 31%),
    radial-gradient(circle at 96% 100%, rgba(196, 214, 255, 0.28), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.1) 45%, rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.16);
  color: rgba(18, 17, 15, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -28px 48px rgba(255, 255, 255, 0.12),
    inset 1px 0 0 rgba(255, 255, 255, 0.42),
    0 30px 90px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(20px) saturate(1.9) contrast(1.12) brightness(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.9) contrast(1.12) brightness(1.08);
  isolation: isolate;
}

.music-window {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(460px, calc(100vw - 28px));
  max-height: min(720px, calc(100svh - 44px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.72), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08) 44%, rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.12);
  color: rgba(18, 17, 15, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -28px 48px rgba(255, 255, 255, 0.11),
    inset 1px 0 0 rgba(255, 255, 255, 0.42),
    0 30px 90px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(20px) saturate(1.9) contrast(1.12) brightness(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.9) contrast(1.12) brightness(1.08);
  isolation: isolate;
}

.wechat-window {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(360px, calc(100vw - 28px));
  max-height: min(720px, calc(100svh - 44px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.72), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08) 44%, rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.12);
  color: rgba(18, 17, 15, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -28px 48px rgba(255, 255, 255, 0.11),
    inset 1px 0 0 rgba(255, 255, 255, 0.42),
    0 30px 90px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(20px) saturate(1.9) contrast(1.12) brightness(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.9) contrast(1.12) brightness(1.08);
  isolation: isolate;
}

.instagram-window {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(430px, calc(100vw - 28px));
  max-height: min(720px, calc(100svh - 44px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.72), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08) 44%, rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.12);
  color: rgba(18, 17, 15, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -28px 48px rgba(255, 255, 255, 0.11),
    inset 1px 0 0 rgba(255, 255, 255, 0.42),
    0 30px 90px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(20px) saturate(1.9) contrast(1.12) brightness(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.9) contrast(1.12) brightness(1.08);
  isolation: isolate;
}

.xiaohongshu-window {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(430px, calc(100vw - 28px));
  max-height: min(720px, calc(100svh - 44px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.72), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08) 44%, rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.12);
  color: rgba(18, 17, 15, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -28px 48px rgba(255, 255, 255, 0.11),
    inset 1px 0 0 rgba(255, 255, 255, 0.42),
    0 30px 90px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(20px) saturate(1.9) contrast(1.12) brightness(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(1.9) contrast(1.12) brightness(1.08);
  isolation: isolate;
}

.error-window {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  width: min(392px, calc(100vw - 36px));
  padding: 22px 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(242, 247, 255, 0.74)),
    rgba(246, 248, 252, 0.76);
  color: rgba(18, 17, 15, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(26px) saturate(1.45);
  -webkit-backdrop-filter: blur(26px) saturate(1.45);
  cursor: grab;
  user-select: none;
}

.error-window.dragging-window {
  cursor: grabbing;
}

.error-symbol {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(180deg, #f36b7b 0%, #d74b62 100%);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 10px 22px rgba(196, 46, 72, 0.22);
}

.error-content h2 {
  margin: 1px 0 7px;
  color: rgba(18, 17, 15, 0.84);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
}

.error-content {
  min-width: 0;
}

.error-content p {
  width: 100%;
  max-width: none;
  margin: 0;
  color: rgba(18, 17, 15, 0.66);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.error-close {
  display: block;
  min-width: 74px;
  margin: 20px 0 0 auto;
  padding: 4px 20px 5px;
  border: 1px solid rgba(0, 97, 255, 0.58);
  border-radius: 12px;
  background:
    linear-gradient(180deg, #69b7ff 0%, #0878ff 100%);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(22, 119, 242, 0.18);
}

.folder-titlebar {
  display: grid;
  grid-template-columns: 88px 1fr 88px;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.folder-titlebar h2 {
  margin: 0;
  color: rgba(18, 17, 15, 0.86);
  text-align: center;
  font-size: 14px;
  font-weight: 780;
}

.chat-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-height: 0;
  padding: 16px;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 0;
  overflow: auto;
  padding: 2px 2px 14px;
}

.chat-message {
  display: flex;
  width: 100%;
}

.chat-message p {
  max-width: min(82%, 380px);
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 17px;
  color: rgba(18, 17, 15, 0.82);
  font-size: 14px;
  font-weight: 430;
  line-height: 1.45;
  white-space: pre-line;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 18px rgba(0, 0, 0, 0.08);
}

.chat-message.assistant {
  justify-content: flex-start;
}

.chat-message.assistant p {
  background: rgba(255, 255, 255, 0.52);
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message.user p {
  border-color: rgba(24, 126, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(63, 154, 255, 0.92), rgba(0, 111, 255, 0.84)),
    rgba(0, 122, 255, 0.82);
  color: #fff;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 9px;
  align-items: end;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 14px 28px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px) saturate(1.42);
  -webkit-backdrop-filter: blur(16px) saturate(1.42);
}

.chat-form textarea {
  width: 100%;
  max-height: 116px;
  min-height: 34px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(18, 17, 15, 0.86);
  font-size: 14px;
  font-weight: 430;
  line-height: 1.35;
  text-align: left;
}

.chat-form textarea::placeholder {
  color: rgba(18, 17, 15, 0.42);
}

.chat-form button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 17, 15, 0.92);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 820;
  line-height: 1;
}

.chat-form button:disabled {
  cursor: default;
  opacity: 0.38;
}

.chat-status {
  height: 16px;
  margin: 7px 4px 0;
  color: rgba(18, 17, 15, 0.46);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.2;
}

.music-open-link {
  justify-self: end;
  color: rgba(18, 17, 15, 0.66);
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.music-open-link:hover {
  color: rgba(18, 17, 15, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.instagram-open-link {
  justify-self: end;
  color: rgba(18, 17, 15, 0.66);
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.xiaohongshu-open-link {
  justify-self: end;
  color: rgba(18, 17, 15, 0.66);
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.instagram-open-link:hover {
  color: rgba(18, 17, 15, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.xiaohongshu-open-link:hover {
  color: rgba(18, 17, 15, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.music-window .folder-titlebar {
  cursor: grab;
  user-select: none;
}

.chat-window .folder-titlebar {
  cursor: grab;
  user-select: none;
}

.trash-window .folder-titlebar {
  cursor: grab;
  user-select: none;
}

.notes-window .folder-titlebar {
  cursor: grab;
  user-select: none;
}

.instagram-window .folder-titlebar {
  cursor: grab;
  user-select: none;
}

.xiaohongshu-window .folder-titlebar {
  cursor: grab;
  user-select: none;
}

.wechat-window .folder-titlebar {
  cursor: grab;
  user-select: none;
}

.folder-window .folder-titlebar {
  cursor: grab;
  user-select: none;
}

.music-window.dragging-window .folder-titlebar {
  cursor: grabbing;
}

.chat-window.dragging-window .folder-titlebar {
  cursor: grabbing;
}

.trash-window.dragging-window .folder-titlebar {
  cursor: grabbing;
}

.notes-window.dragging-window .folder-titlebar {
  cursor: grabbing;
}

.instagram-window.dragging-window .folder-titlebar {
  cursor: grabbing;
}

.xiaohongshu-window.dragging-window .folder-titlebar {
  cursor: grabbing;
}

.wechat-window.dragging-window .folder-titlebar {
  cursor: grabbing;
}

.folder-window.dragging-window .folder-titlebar {
  cursor: grabbing;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.window-controls span,
.window-controls button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
}

.window-controls button:nth-child(1),
.window-controls span:nth-child(1) {
  background: #ff5f57;
}

.window-controls span:nth-child(2) {
  background: #febc2e;
}

.window-controls span:nth-child(3) {
  background: #28c840;
}

.folder-close,
.chat-close,
.trash-close,
.notes-close,
.music-close,
.wechat-close,
.xiaohongshu-close,
.instagram-close {
  cursor: pointer;
}

.music-content,
.notes-content,
.wechat-content,
.xiaohongshu-content,
.instagram-content {
  position: relative;
  overflow: hidden;
}

.notes-content {
  overflow: auto;
  padding: 10px 22px 22px;
}

.notes-page {
  display: grid;
  gap: 0;
  padding: 0 0 8px;
  background: transparent;
  box-shadow: none;
}

.notes-page p {
  margin: 0;
  padding: 5px 0 6px;
  color: rgba(49, 38, 13, 0.82);
  font-family: "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 520;
  line-height: 1.7;
}

.music-content {
  display: grid;
  max-height: calc(100svh - 92px);
  overflow: auto;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 250, 237, 0.78), rgba(255, 255, 255, 0.54)),
    rgba(255, 255, 255, 0.42);
}

.music-album {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  padding-bottom: 16px;
}

.music-cover-wrap {
  overflow: hidden;
  border: 1px solid rgba(77, 61, 22, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 14px 28px rgba(56, 43, 18, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.music-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.music-album-meta {
  min-width: 0;
  padding-bottom: 2px;
}

.music-album-meta span,
.music-now span {
  display: block;
  margin-bottom: 6px;
  color: rgba(49, 38, 13, 0.52);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.music-album-meta h3 {
  margin: 0;
  color: rgba(18, 17, 15, 0.92);
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 880;
  line-height: 0.94;
}

.music-album-meta p {
  margin: 10px 0 0;
  color: rgba(49, 38, 13, 0.66);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.35;
}

.music-now {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 11px 14px 12px;
  border: 1px solid rgba(18, 17, 15, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.42)),
    rgba(244, 239, 228, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -18px 28px rgba(255, 255, 255, 0.16),
    0 12px 28px rgba(56, 43, 18, 0.1);
}

.music-controls {
  display: grid;
  grid-template-columns: 34px 46px 34px;
  gap: 3px;
  align-items: center;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(46, 45, 42, 0.96), rgba(22, 21, 19, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -10px 18px rgba(0, 0, 0, 0.22),
    0 12px 24px rgba(18, 17, 15, 0.18);
}

.music-play-toggle,
.music-step {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition:
    background 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.music-play-toggle {
  width: 46px;
  height: 46px;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.22), transparent 32%),
    rgba(255, 250, 240, 0.96);
  color: rgba(18, 17, 15, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -8px 14px rgba(18, 17, 15, 0.08),
    0 7px 14px rgba(0, 0, 0, 0.24);
}

.music-step {
  width: 34px;
  height: 34px;
  background: transparent;
  color: rgba(255, 250, 240, 0.82);
}

.music-play-toggle::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
  content: "";
}

.music-playing .music-play-toggle::before,
.music-playing .music-play-toggle::after {
  width: 4px;
  height: 16px;
  border: 0;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.music-playing .music-play-toggle::before {
  margin-left: 0;
  transform: translateX(-4px);
}

.music-playing .music-play-toggle::after {
  position: absolute;
  transform: translateX(4px);
}

.music-step::before,
.music-step::after {
  position: absolute;
  background: currentColor;
  content: "";
}

.music-step::before {
  left: 9px;
  width: 3px;
  height: 13px;
  border-radius: 2px;
}

.music-step::after {
  left: 12px;
  width: 14px;
  height: 14px;
  clip-path: polygon(0 50%, 7px 0, 7px 38%, 14px 0, 14px 100%, 7px 62%, 7px 100%);
}

.music-next::before {
  right: 9px;
  left: auto;
}

.music-next::after {
  right: 12px;
  left: auto;
  transform: scaleX(-1);
}

.music-play-toggle:hover,
.music-step:hover {
  background: rgba(255, 250, 240, 0.16);
  color: #fffaf0;
  transform: translateY(-1px);
}

.music-play-toggle:hover {
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.26), transparent 32%),
    rgba(255, 250, 240, 1);
  color: rgba(18, 17, 15, 0.92);
}

.music-play-toggle:focus-visible,
.music-step:focus-visible {
  outline: 2px solid rgba(18, 17, 15, 0.28);
  outline-offset: 3px;
}

.music-now-meta {
  position: relative;
  min-width: 0;
  padding: 2px 0 12px;
}

.music-now-meta::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 17, 15, 0.09);
  content: "";
}

.music-now-meta::before {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 34%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(18, 17, 15, 0.72), rgba(18, 17, 15, 0.22));
  content: "";
}

.music-current-title {
  display: block;
  overflow: hidden;
  color: rgba(18, 17, 15, 0.88);
  font-size: 18px;
  font-weight: 820;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-audio {
  display: none;
}

.music-track-list {
  display: grid;
  max-height: clamp(150px, calc(100svh - 430px), 280px);
  min-height: 160px;
  gap: 6px;
  overflow: auto;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.music-track {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: rgba(18, 17, 15, 0.78);
  cursor: pointer;
  text-align: left;
}

.music-track:hover,
.music-track.active {
  border-color: rgba(77, 61, 22, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

.music-track span,
.music-track em {
  color: rgba(49, 38, 13, 0.5);
  font-size: 12px;
  font-style: normal;
  font-weight: 680;
}

.music-track strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  margin: 12px -18px -18px;
  padding: 0 18px;
  border-top: 1px solid rgba(77, 61, 22, 0.1);
  background: rgba(255, 250, 237, 0.82);
  color: rgba(49, 38, 13, 0.62);
  font-size: 12px;
}

.music-fallback a {
  flex: 0 0 auto;
  color: rgba(49, 38, 13, 0.88);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.instagram-embed-wrap {
  display: grid;
  min-height: min(610px, calc(100svh - 130px));
  place-items: start center;
  overflow: auto;
  padding: 20px 16px 64px;
  background: rgba(255, 255, 255, 0.82);
}

.xiaohongshu-content {
  background: rgba(255, 255, 255, 0.82);
}

.xiaohongshu-content iframe {
  display: block;
  width: 100%;
  height: min(610px, calc(100svh - 130px));
  border: 0;
  background: #fff;
}

.instagram-media {
  width: min(100%, 540px) !important;
  min-width: 0 !important;
  margin: 0 auto !important;
}

.instagram-fallback {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(18, 17, 15, 0.58);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.xiaohongshu-fallback {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(18, 17, 15, 0.58);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wechat-content {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 30px 24px 28px;
  text-align: center;
}

.wechat-qr-card {
  width: min(224px, calc(100vw - 104px));
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 38px rgba(0, 0, 0, 0.16);
}

.wechat-qr-card img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.wechat-guide {
  width: 100%;
  max-width: none;
}

.wechat-guide strong {
  display: block;
  color: rgba(18, 17, 15, 0.86);
  font-size: 20px;
  font-weight: 760;
  line-height: 1.1;
}

.wechat-guide p {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 8px;
  color: rgba(18, 17, 15, 0.6);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.trash-content {
  position: relative;
  min-height: 0;
  padding: 16px;
}

.trash-grid {
  display: grid;
  align-content: start;
  gap: 10px;
  height: 100%;
  min-height: 0;
  overflow: auto;
}

.trash-empty {
  position: absolute;
  inset: 0;
  display: grid;
  margin: 0;
  place-items: center;
  color: rgba(18, 17, 15, 0.48);
  font-size: 13px;
  font-weight: 680;
  pointer-events: none;
}

.trash-empty[hidden] {
  display: none;
}

.trash-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 10px 22px rgba(0, 0, 0, 0.08);
}

.trash-card img {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 7px;
  object-fit: cover;
}

.trash-card div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.trash-card strong,
.trash-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trash-card strong {
  color: rgba(18, 17, 15, 0.86);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.15;
}

.trash-card span {
  color: rgba(18, 17, 15, 0.52);
  font-size: 12px;
  font-weight: 680;
}

.trash-card button {
  justify-self: start;
  width: fit-content;
  margin-top: 4px;
  padding: 4px 10px 5px;
  border: 1px solid rgba(0, 97, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(18, 17, 15, 0.78);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.folder-content {
  display: grid;
  grid-template-columns: 1fr;
  height: calc(min(640px, 100svh - 44px) - 46px);
  min-height: 0;
  max-height: calc(min(640px, 100svh - 44px) - 46px);
}

.folder-sidebar {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-right: 1px solid rgba(255, 250, 240, 0.12);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.05);
}

.folder-sidebar strong {
  font-size: 15px;
  line-height: 1.05;
}

.folder-sidebar span,
.folder-sidebar a {
  color: rgba(255, 250, 240, 0.62);
  font-size: 13px;
  font-weight: 650;
}

.folder-sidebar a {
  margin-top: auto;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.folder-grid {
  display: grid;
  align-content: start;
  align-items: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.folder-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.1);
  border-radius: 8px;
  background: #23211d;
  cursor: pointer;
}

.folder-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.94);
  transition: transform 220ms ease;
}

.folder-card:hover img {
  transform: scale(1.04);
}

.folder-card div {
  min-height: 76px;
  padding: 12px;
}

.folder-card h3 {
  margin: 6px 0 0;
  color: var(--white);
  font-size: 16px;
  font-weight: 880;
  line-height: 1.02;
}

@media (max-width: 1020px) {
  .folder-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .desktop-project {
    left: var(--mx, var(--x));
    top: var(--my, var(--y));
    width: 84px;
  }

  .desktop-project strong {
    font-size: 10px;
  }

  .thumb {
    width: calc(var(--size, 64px) * 0.78);
    height: calc(var(--size, 64px) * 0.78);
  }

  .dock {
    bottom: 14px;
    width: calc(100% - 24px);
    justify-content: center;
    gap: 6px;
    padding: 7px;
  }

  .app-icon {
    border-radius: 8px;
    transform: none;
  }

  .dock-divider {
    height: 28px;
  }

  .preview-panel {
    left: 18px;
    right: 18px;
    top: auto;
    bottom: 82px;
    width: auto;
    transform: none;
  }

  .preview-window-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .preview-content {
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 12px;
  }

  .preview-art {
    width: 100%;
  }

  .preview-meta h1 {
    font-size: 24px;
  }

  .preview-meta p {
    font-size: 14px;
  }

  .folder-window {
    max-height: calc(100svh - 28px);
  }

  .chat-window {
    width: calc(100vw - 28px);
    height: min(620px, calc(100svh - 102px));
  }

  .folder-content {
    grid-template-columns: 1fr;
    height: calc(100svh - 74px);
    max-height: calc(100svh - 74px);
  }

  .folder-sidebar {
    display: none;
  }

  .folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .background-photo {
    background-position: 47% center;
  }

  .desktop-project {
    width: 74px;
  }

  .desktop-project strong {
    max-width: 84px;
  }

  .dock {
    --dock-size: clamp(29px, 8.5vw, 38px);
    bottom: 10px;
    width: calc(100% - 16px);
    gap: 4px;
    padding: 6px;
  }

  .dock-divider {
    width: 4px;
    height: 24px;
  }

  .music-content {
    padding: 14px;
  }

  .music-album {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }

  .music-album-meta h3 {
    font-size: 30px;
  }

  .music-track-list {
    max-height: clamp(160px, calc(100svh - 360px), 300px);
  }

  .music-fallback {
    align-items: flex-start;
    flex-direction: column;
    margin: 12px -14px -14px;
    padding: 10px 14px;
  }

  .preview-titlebar {
    grid-template-columns: 72px 1fr 72px;
  }

  .chat-window .folder-titlebar {
    grid-template-columns: 72px 1fr 72px;
  }

  .folder-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .folder-card div {
    min-height: auto;
  }
}
