.attachment-status {
  font-size: 13px;
  color: var(--muted);
  white-space: pre-line;
  line-height: 1.8;
}
.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.attachment-empty {
  padding: 24px;
  margin: 0;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
}
.attachment-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 12px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fff;
  align-items: center;
}
.attachment-card .attachment-media {
  display: flex;
  width: 160px;
  height: 110px;
  min-height: 0;
  padding: 4px;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  background: #fafafa;
}
.attachment-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.attachment-content {
  min-width: 0;
}
.attachment-content > label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}
.attachment-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.attachment-actions {
  display: grid;
  grid-template-columns: repeat(2, 36px);
  gap: 6px;
}
.attachment-actions button {
  min-width: 36px;
  min-height: 36px;
  padding: 6px;
}
.attachment-dialog {
  width: min(1100px, calc(100vw - 32px));
}
.attachment-dialog img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  margin: 16px auto;
}
@media (max-width: 800px) {
  .attachment-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }
  .attachment-card .attachment-media {
    width: 100px;
    height: 90px;
  }
  .attachment-actions {
    grid-column: 1/-1;
    display: flex;
    justify-content: flex-end;
  }
}
@media (max-width: 440px) {
  .attachment-card {
    grid-template-columns: 1fr;
  }
  .attachment-card .attachment-media {
    width: 100%;
    height: 150px;
  }
}
