.fourthBox {
  margin: 32px 0;
  font-family: sans-serif;
}

.attachmentListFrame {
  width: 100%;
  padding: 36px 36px 32px;
  box-sizing: border-box;
  border-radius: 32px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.025) 60%,
    rgba(120, 80, 255, 0.04) 100%
  );
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
    0 32px 80px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  position: relative;

  min-height: 0;
  max-height: none;

  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.attachmentListHeader {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.attachmentListHeaderLeft {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.attachmentListTitleRow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.attachmentListTitleRow h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.7) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.attachmentListHeaderLeft p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* count badge */
.attachmentListCountBadge {
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.28),
    rgba(125, 211, 252, 0.18)
  );
  border: 1px solid rgba(167, 139, 250, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #c4b5fd;
  font-family: "Syne", sans-serif;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.22);
}

/* ── Stats card ── */
.attachmentListHeaderRight {
  width: 100%;
  max-width: 380px;
  flex-shrink: 0;
}

.attachmentStatsCard {
  width: 100%;
  padding: 22px 22px 22px 20px;
  box-sizing: border-box;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Donut */
.attachmentDonut {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(0, 0, 0, 0.28),
    inset 0 2px 8px rgba(255, 255, 255, 0.04);
  position: relative;
}

.attachmentDonutInner {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(14, 17, 26, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}

.attachmentDonutInner strong {
  font-family: "Syne", sans-serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  color: #fff;
}

.attachmentDonutInner span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Stats meta */
.attachmentStatsMeta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.attachmentStatsItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.attachmentStatsLabel {
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.48);
  letter-spacing: 0.01em;
}

.attachmentStatsItem strong {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}

/* Legend */
.attachmentStatsLegend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.attachmentLegendItem {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
}

.attachmentLegendColor {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.attachmentLegendColor.image {
  background: #7dd3fc;
  box-shadow: 0 0 8px rgba(125, 211, 252, 0.6);
}
.attachmentLegendColor.doc {
  background: #a78bfa;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
}
.attachmentLegendColor.other {
  background: #f9a8d4;
  box-shadow: 0 0 8px rgba(249, 168, 212, 0.6);
}

.attachmentListBody {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.attachmentListBody::-webkit-scrollbar {
  width: 5px;
}
.attachmentListBody::-webkit-scrollbar-track {
  background: transparent;
}
.attachmentListBody::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}
.attachmentListBody::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ── Individual attachment card ── */
.projectAttachmentItem {
  width: 100%;
  padding: 15px 18px;
  box-sizing: border-box;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(255, 255, 255, 0.065);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition:
    transform 0.2s cubic-bezier(0.22, 0.68, 0, 1.2),
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* shimmer line on hover */
.projectAttachmentItem::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.projectAttachmentItem:hover {
  transform: translateY(-2px) scale(1.003);
  background: rgba(255, 255, 255, 0.062);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(167, 139, 250, 0.1);
}

.projectAttachmentItem:hover::before {
  opacity: 1;
}

/* Main area (icon + info) */
.projectAttachmentMain {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Icon block */
.projectAttachmentIcon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  position: relative;
  color: white;
}

/* image type */
.projectAttachmentItem[data-type="image"] .projectAttachmentIcon {
  background: linear-gradient(
    135deg,
    rgba(125, 211, 252, 0.18) 0%,
    rgba(56, 189, 248, 0.08) 100%
  );
  border: 1px solid rgba(125, 211, 252, 0.22);
  box-shadow: 0 4px 16px rgba(125, 211, 252, 0.12);
}
/* doc type */
.projectAttachmentItem[data-type="doc"] .projectAttachmentIcon {
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.2) 0%,
    rgba(139, 92, 246, 0.08) 100%
  );
  border: 1px solid rgba(167, 139, 250, 0.24);
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.14);
}
/* other / default */
.projectAttachmentItem:not([data-type]) .projectAttachmentIcon,
.projectAttachmentItem[data-type="other"] .projectAttachmentIcon {
  background: linear-gradient(
    135deg,
    rgba(249, 168, 212, 0.18) 0%,
    rgba(236, 72, 153, 0.08) 100%
  );
  border: 1px solid rgba(249, 168, 212, 0.22);
  box-shadow: 0 4px 16px rgba(249, 168, 212, 0.12);
}

/* Info */
.projectAttachmentInfo {
  flex: 1;
  min-width: 0;
}

.projectAttachmentTop {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.projectAttachmentName {
  display: block;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.projectAttachmentSize {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.projectAttachmentMeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.42);
}

.projectAttachmentMeta span {
  white-space: nowrap;
}

.projectAttachmentType {
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}

.projectAttachmentTask {
  color: rgba(255, 255, 255, 0.5);
}

.projectAttachmentSharer {
  color: rgba(167, 139, 250, 0.85);
  font-weight: 600;
}

.projectAttachmentDate {
  color: rgba(255, 255, 255, 0.32);
}

/* meta separator dot */
.projectAttachmentMeta .sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
}

/* ── Action buttons ── */
.projectAttachmentActions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.projectAttachmentActionBtn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  outline: none;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.17s cubic-bezier(0.22, 0.68, 0, 1.3),
    background 0.17s ease,
    border-color 0.17s ease,
    color 0.17s ease,
    box-shadow 0.17s ease;
}

.projectAttachmentActionBtn:hover {
  transform: translateY(-2px) scale(1.08);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.projectAttachmentActionBtn.danger {
  background: rgba(255, 80, 80, 0.1);
  border-color: rgba(255, 80, 80, 0.18);
  color: rgba(255, 180, 180, 0.8);
}

.projectAttachmentActionBtn.danger:hover {
  background: rgba(255, 80, 80, 0.22);
  border-color: rgba(255, 80, 80, 0.35);
  color: #fca5a5;
  box-shadow: 0 8px 20px rgba(255, 80, 80, 0.15);
}

/* ── Staggered entrance animation ── */
@keyframes attachItemIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.attachmentListBody .projectAttachmentItem {
  animation: attachItemIn 0.35s ease both;
}

.attachmentListBody .projectAttachmentItem:nth-child(1) {
  animation-delay: 0.04s;
}
.attachmentListBody .projectAttachmentItem:nth-child(2) {
  animation-delay: 0.08s;
}
.attachmentListBody .projectAttachmentItem:nth-child(3) {
  animation-delay: 0.12s;
}
.attachmentListBody .projectAttachmentItem:nth-child(4) {
  animation-delay: 0.16s;
}
.attachmentListBody .projectAttachmentItem:nth-child(5) {
  animation-delay: 0.2s;
}
.attachmentListBody .projectAttachmentItem:nth-child(n + 6) {
  animation-delay: 0.24s;
}

/* ── Empty state ── */
.attachmentListEmpty {
  min-height: 220px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 36px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.attachmentListEmptyIcon {
  font-size: 40px;
  line-height: 1;
  filter: grayscale(30%) opacity(0.7);
}

.attachmentListEmpty strong {
  font-family: "Syne", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: -0.01em;
}

.attachmentListEmpty p {
  margin: 0;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 300;
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  .attachmentListHeader {
    flex-direction: column;
  }
  .attachmentListHeaderRight {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .attachmentListFrame {
    padding: 22px 18px 20px;
    border-radius: 24px;
  }
  .attachmentListTitleRow h2 {
    font-size: 21px;
  }
  .attachmentStatsCard {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .attachmentDonut {
    width: 90px;
    height: 90px;
  }
  .attachmentDonutInner {
    width: 58px;
    height: 58px;
  }
  .projectAttachmentItem {
    align-items: flex-start;
    flex-direction: column;
  }
  .projectAttachmentMain {
    width: 100%;
  }
  .projectAttachmentTop {
    flex-wrap: wrap;
  }
  .projectAttachmentName {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }
  .projectAttachmentActions {
    width: 100%;
    justify-content: flex-end;
    padding-top: 4px;
  }
}
